nodejs (20.18.0+dfsg-2) unstable; urgency=medium
authorJérémy Lal <kapouer@melix.org>
Fri, 8 Nov 2024 19:05:21 +0000 (20:05 +0100)
committerJérémy Lal <kapouer@melix.org>
Fri, 8 Nov 2024 19:05:21 +0000 (20:05 +0100)
  * Fix remove of deps/* dirs that breaks Makefile.

[dgit import unpatched nodejs 20.18.0+dfsg-2]

318 files changed:
1  2  3  4 
ada/.clang-format
ada/.editorconfig
ada/.github/FUNDING.yml
ada/.github/ISSUE_TEMPLATE/1-bug-report.yml
ada/.github/ISSUE_TEMPLATE/2-feature-request.yml
ada/.github/ISSUE_TEMPLATE/config.yml
ada/.github/dependabot.yml
ada/.github/workflows/aarch64.yml
ada/.github/workflows/alpine.yml
ada/.github/workflows/cifuzz.yml
ada/.github/workflows/codeql.yml
ada/.github/workflows/dependency-review.yml
ada/.github/workflows/documentation.yml
ada/.github/workflows/emscripten.yml
ada/.github/workflows/lint_and_format_check.yml
ada/.github/workflows/macos_install.yml
ada/.github/workflows/release-script-tests.yml
ada/.github/workflows/release_create.yml
ada/.github/workflows/release_prepare.yml
ada/.github/workflows/scorecard.yml
ada/.github/workflows/ubuntu-release.yml
ada/.github/workflows/ubuntu-s390x.yml
ada/.github/workflows/ubuntu-sanitized.yml
ada/.github/workflows/ubuntu-undef.yml
ada/.github/workflows/ubuntu.yml
ada/.github/workflows/ubuntu_install.yml
ada/.github/workflows/ubuntu_old.yml
ada/.github/workflows/ubuntu_pedantic.yml
ada/.github/workflows/visual_studio.yml
ada/.github/workflows/visual_studio_clang.yml
ada/.github/workflows/wpt-updater.yml
ada/.gitignore
ada/.python-version
ada/CMakeLists.txt
ada/Dockerfile
ada/LICENSE-APACHE
ada/LICENSE-MIT
ada/README.md
ada/SECURITY.md
ada/benchmarks/CMakeLists.txt
ada/benchmarks/bbc_bench.cpp
ada/benchmarks/bench.cpp
ada/benchmarks/bench_search_params.cpp
ada/benchmarks/benchmark_header.h
ada/benchmarks/benchmark_template.cpp
ada/benchmarks/competitors/servo-url/Cargo.lock
ada/benchmarks/competitors/servo-url/Cargo.toml
ada/benchmarks/competitors/servo-url/README.md
ada/benchmarks/competitors/servo-url/cbindgen.toml
ada/benchmarks/competitors/servo-url/lib.rs
ada/benchmarks/competitors/servo-url/servo_url.h
ada/benchmarks/model_bench.cpp
ada/benchmarks/percent_encode.cpp
ada/benchmarks/performancecounters/apple_arm_events.h
ada/benchmarks/performancecounters/event_counter.h
ada/benchmarks/performancecounters/linux-perf-events.h
ada/benchmarks/wpt_bench.cpp
ada/clang-format-ignore.txt
ada/cmake/CPM.cmake
ada/cmake/ada-config.cmake.in
ada/cmake/ada-flags.cmake
ada/cmake/add-cpp-test.cmake
ada/cmake/codecoverage.cmake
ada/docs/RELEASE.md
ada/docs/cli.md
ada/docs/doxygen/footer.html
ada/docs/doxygen/header.html
ada/doxygen
ada/fuzz/ada_c.c
ada/fuzz/ada_c.options
ada/fuzz/build.sh
ada/fuzz/can_parse.cc
ada/fuzz/idna.cc
ada/fuzz/parse.cc
ada/fuzz/parse.options
ada/fuzz/url.dict
ada/fuzz/url_search_params.cc
ada/include/ada.h
ada/include/ada/ada_idna.h
ada/include/ada/ada_version.h
ada/include/ada/character_sets-inl.h
ada/include/ada/character_sets.h
ada/include/ada/checkers-inl.h
ada/include/ada/checkers.h
ada/include/ada/common_defs.h
ada/include/ada/encoding_type.h
ada/include/ada/expected.h
ada/include/ada/helpers.h
ada/include/ada/implementation.h
ada/include/ada/log.h
ada/include/ada/parser.h
ada/include/ada/scheme-inl.h
ada/include/ada/scheme.h
ada/include/ada/serializers.h
ada/include/ada/state.h
ada/include/ada/unicode-inl.h
ada/include/ada/unicode.h
ada/include/ada/url-inl.h
ada/include/ada/url.h
ada/include/ada/url_aggregator-inl.h
ada/include/ada/url_aggregator.h
ada/include/ada/url_base-inl.h
ada/include/ada/url_base.h
ada/include/ada/url_components.h
ada/include/ada/url_search_params-inl.h
ada/include/ada/url_search_params.h
ada/include/ada_c.h
ada/pyproject.toml
ada/singleheader/CMakeLists.txt
ada/singleheader/README.md
ada/singleheader/amalgamate.py
ada/singleheader/demo.c
ada/singleheader/demo.cpp
ada/src/CMakeLists.txt
ada/src/ada.cpp
ada/src/ada_c.cpp
ada/src/ada_idna.cpp
ada/src/checkers.cpp
ada/src/helpers.cpp
ada/src/implementation.cpp
ada/src/parser.cpp
ada/src/serializers.cpp
ada/src/unicode.cpp
ada/src/url-getters.cpp
ada/src/url-setters.cpp
ada/src/url.cpp
ada/src/url_aggregator.cpp
ada/src/url_components.cpp
ada/tests/CMakeLists.txt
ada/tests/ada_c.cpp
ada/tests/basic_fuzzer.cpp
ada/tests/basic_tests.cpp
ada/tests/from_file_tests.cpp
ada/tests/installation/CMakeLists.txt
ada/tests/url_components.cpp
ada/tests/url_search_params.cpp
ada/tests/wasm/CMakeLists.txt
ada/tests/wasm/test.js.in
ada/tests/wasm/wasm.cpp
ada/tests/wpt/CMakeLists.txt
ada/tests/wpt/IdnaTestV2.json
ada/tests/wpt/ada_extra_setters_tests.json
ada/tests/wpt/ada_extra_urltestdata.json
ada/tests/wpt/ada_long_urltestdata.json
ada/tests/wpt/percent-encoding.json
ada/tests/wpt/setters_tests.json
ada/tests/wpt/toascii.json
ada/tests/wpt/urltestdata-javascript-only.json
ada/tests/wpt/urltestdata.json
ada/tests/wpt/verifydnslength_tests.json
ada/tests/wpt_tests.cpp
ada/tools/CMakeLists.txt
ada/tools/cli/CMakeLists.txt
ada/tools/cli/adaparse.cpp
ada/tools/cli/benchmark_adaparse.sh
ada/tools/cli/benchmark_write_to_file.sh
ada/tools/cli/line_iterator.h
ada/tools/prepare-doxygen.sh
ada/tools/release/__init__.py
ada/tools/release/create_release.py
ada/tools/release/lib/__init__.py
ada/tools/release/lib/release.py
ada/tools/release/lib/tests/__init__.py
ada/tools/release/lib/tests/samples/ada_version_h.txt
ada/tools/release/lib/tests/samples/ada_version_h_expected.txt
ada/tools/release/lib/tests/samples/cmakelists.txt
ada/tools/release/lib/tests/samples/cmakelists_expected.txt
ada/tools/release/lib/tests/samples/doxygen.txt
ada/tools/release/lib/tests/samples/doxygen_expected.txt
ada/tools/release/lib/tests/test_release.py
ada/tools/release/lib/tests/test_update_versions.py
ada/tools/release/lib/versions.py
ada/tools/release/requirements.txt
ada/tools/release/update_versions.py
ada/tools/run-clangcldocker.sh
ada/tools/update-wpt.sh
debian/README.source
debian/changelog
debian/control
debian/copyright
debian/copyright_hints
debian/doc-generator/LICENSE
debian/doc-generator/README.md
debian/doc-generator/addon-verify.mjs
debian/doc-generator/allhtml.mjs
debian/doc-generator/alljson.mjs
debian/doc-generator/apilinks.mjs
debian/doc-generator/checkLinks.mjs
debian/doc-generator/common.mjs
debian/doc-generator/generate.mjs
debian/doc-generator/html.mjs
debian/doc-generator/json.mjs
debian/doc-generator/links-mapper.json
debian/doc-generator/markdown.mjs
debian/doc-generator/package-lock.json
debian/doc-generator/package.json
debian/doc-generator/type-parser.mjs
debian/doc-generator/versions.mjs
debian/gbp.conf
debian/libnode-dev.dirs
debian/libnode-dev.install
debian/libnode-dev.links.in
debian/libnode.install.in
debian/node
debian/nodejs-doc.doc-base
debian/nodejs-doc.docs
debian/nodejs.README.Debian
debian/nodejs.dirs
debian/nodejs.install.in
debian/nodejs.links
debian/nodejs.manpages
debian/nodejs.pm
debian/nodejs.postinst
debian/nodejs.prerm
debian/openssl.cnf
debian/patches/arm64/stacksize.patch
debian/patches/armel/configure.patch
debian/patches/build/ada.patch
debian/patches/build/builtins_module_paths_not_shareable.patch
debian/patches/build/cctest_disable.patch
debian/patches/build/doc.patch
debian/patches/build/doc_template_home.html
debian/patches/build/flag_atomic.patch
debian/patches/build/more_shareable_builtins.patch
debian/patches/build/no-deps.patch
debian/patches/build/openssl-3-2-2-tests.patch
debian/patches/build/openssl_3011_without_new_error_message.patch
debian/patches/build/skip-buffer-nan-internal-check.patch
debian/patches/build/test_ci.patch
debian/patches/build/test_process_versions.patch
debian/patches/deps/cares.patch
debian/patches/deps/localhost-no-addrconfig.patch
debian/patches/deps/node_gyp.patch
debian/patches/deps/v8-no-static-zlib.patch
debian/patches/dfsg/benchmark_without_alice.patch
debian/patches/dfsg/multilib_modules.patch
debian/patches/dfsg/privacy_breach.patch
debian/patches/loong64/tests.patch
debian/patches/mips/flaky_tests.patch
debian/patches/mips/less_mem.patch
debian/patches/mips/mipsel_even_register_fix.patch
debian/patches/mips/mipsel_is_32.patch
debian/patches/riscv/disable_failing_tests.patch
debian/patches/riscv/flaky_tests.patch
debian/patches/series
debian/rules
debian/salsa-ci.yml
debian/source/format
debian/source/lintian-overrides
debian/tests/control
debian/upstream/metadata
debian/watch
types-node/LICENSE
types-node/README.md
types-node/assert.d.ts
types-node/assert/strict.d.ts
types-node/async_hooks.d.ts
types-node/buffer.buffer.d.ts
types-node/buffer.d.ts
types-node/child_process.d.ts
types-node/cluster.d.ts
types-node/compatibility/disposable.d.ts
types-node/compatibility/index.d.ts
types-node/compatibility/indexable.d.ts
types-node/compatibility/iterators.d.ts
types-node/console.d.ts
types-node/constants.d.ts
types-node/crypto.d.ts
types-node/dgram.d.ts
types-node/diagnostics_channel.d.ts
types-node/dns.d.ts
types-node/dns/promises.d.ts
types-node/dom-events.d.ts
types-node/domain.d.ts
types-node/events.d.ts
types-node/fs.d.ts
types-node/fs/promises.d.ts
types-node/globals.d.ts
types-node/globals.typedarray.d.ts
types-node/http.d.ts
types-node/http2.d.ts
types-node/https.d.ts
types-node/index.d.ts
types-node/inspector.d.ts
types-node/module.d.ts
types-node/net.d.ts
types-node/os.d.ts
types-node/package.json
types-node/path.d.ts
types-node/perf_hooks.d.ts
types-node/process.d.ts
types-node/punycode.d.ts
types-node/querystring.d.ts
types-node/readline.d.ts
types-node/readline/promises.d.ts
types-node/repl.d.ts
types-node/sea.d.ts
types-node/stream.d.ts
types-node/stream/consumers.d.ts
types-node/stream/promises.d.ts
types-node/stream/web.d.ts
types-node/string_decoder.d.ts
types-node/test.d.ts
types-node/timers.d.ts
types-node/timers/promises.d.ts
types-node/tls.d.ts
types-node/trace_events.d.ts
types-node/ts5.6/buffer.buffer.d.ts
types-node/ts5.6/globals.typedarray.d.ts
types-node/ts5.6/index.d.ts
types-node/tty.d.ts
types-node/url.d.ts
types-node/util.d.ts
types-node/v8.d.ts
types-node/vm.d.ts
types-node/wasi.d.ts
types-node/worker_threads.d.ts
types-node/zlib.d.ts

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1acba5a7b179ea4635daf46fa2b2f2efe0b3c101
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,2 @@@@@
++++BasedOnStyle: Google
++++SortIncludes: false
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..0b3779e53d03e4e3ef029ca132067f1eba7138d2
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,5 @@@@@
++++root = true
++++
++++[*]
++++end_of_line = lf
++++insert_final_newline = true
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..de203636be59ecfa673ca7aa9e6310041baa4bb8
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1 @@@@@
++++github: [anonrig, lemire]
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c11dae7518e61835c9b2b39bb94337a96dd3c407
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,40 @@@@@
++++name: 🐛 Bug report
++++description: Create a report to help us improve
++++body:
++++  - type: markdown
++++    attributes:
++++      value: |
++++        Thank you for reporting an issue.
++++
++++        Please fill in as much of the following form as you're able.
++++  - type: input
++++    attributes:
++++      label: Version
++++      description: Which Ada version are you referring to?
++++  - type: input
++++    attributes:
++++      label: Platform
++++      description: |
++++        UNIX: output of `uname -a`
++++        Windows: output of `"$([Environment]::OSVersion.VersionString) $(('x86', 'x64')[[Environment]::Is64BitOperatingSystem])"` in PowerShell console
++++  - type: textarea
++++    attributes:
++++      label: What steps will reproduce the bug?
++++      description: Enter details about your bug, preferably a simple code snippet that can be run directly without installing third-party dependencies.
++++  - type: textarea
++++    attributes:
++++      label: How often does it reproduce? Is there a required condition?
++++  - type: textarea
++++    attributes:
++++      label: What is the expected behavior?
++++      description: If possible please provide textual output instead of screenshots.
++++  - type: textarea
++++    attributes:
++++      label: What do you see instead?
++++      description: If possible please provide textual output instead of screenshots.
++++    validations:
++++      required: true
++++  - type: textarea
++++    attributes:
++++      label: Additional information
++++      description: Tell us anything else you think we should know.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f7cae8c0e12e5cc02c267b8d6e47b116e6443c5e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,23 @@@@@
++++name: 🚀 Feature request
++++description: Suggest an idea for this project
++++labels: [feature request]
++++body:
++++  - type: markdown
++++    attributes:
++++      value: |
++++        Thank you for suggesting an idea to make Node.js better.
++++
++++        Please fill in as much of the following form as you're able.
++++  - type: textarea
++++    attributes:
++++      label: What is the problem this feature will solve?
++++    validations:
++++      required: true
++++  - type: textarea
++++    attributes:
++++      label: What is the feature you are proposing to solve the problem?
++++    validations:
++++      required: true
++++  - type: textarea
++++    attributes:
++++      label: What alternatives have you considered?
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3159b474e4e5096344c373670ddd97c93f514ded
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,5 @@@@@
++++blank_issues_enabled: true
++++contact_links:
++++  - name: Looking for documentation?
++++    url: https://ada-url.github.io/ada
++++    about: Please navigate to our documentation website.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1cfc22ead31c214ff5a35235dacf3d4728809e22
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,23 @@@@@
++++# Set update schedule for GitHub Actions
++++
++++version: 2
++++updates:
++++  - package-ecosystem: github-actions
++++    directory: /
++++    schedule:
++++      interval: monthly
++++
++++  - package-ecosystem: docker
++++    directory: /
++++    schedule:
++++      interval: monthly
++++
++++  - package-ecosystem: cargo
++++    directory: /benchmarks/competitors/servo-url
++++    schedule:
++++      interval: monthly
++++
++++  - package-ecosystem: pip
++++    directory: /tools/release
++++    schedule:
++++      interval: monthly
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1d544bf762dd9938158841446cbb168b56442782
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,46 @@@@@
++++name: Ubuntu aarch64 (GCC 12)
++++
++++on:
++++  pull_request:
++++    types: [opened, synchronize, reopened, ready_for_review]
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++  push:
++++    branches:
++++      - main
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++
++++permissions:
++++  contents: read
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++jobs:
++++  build:
++++    runs-on: ubuntu-latest
++++    strategy:
++++      matrix:
++++        shared: [OFF]
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++      - uses: uraimo/run-on-arch-action@b0ffb25eb00af00468375982384441f063da1741 # v2.7.2
++++        name: Build and Test
++++        id: runcmd
++++        env:
++++          CXX: g++-12
++++        with:
++++          arch: aarch64
++++          githubToken: ${{ github.token }}
++++          distro: ubuntu22.04
++++          install: |
++++            apt-get update -q -y
++++            apt-get install -y cmake make g++ ninja-build git
++++          run: |
++++            cmake -DADA_SANITIZE_BOUNDS_STRICT=ON -DBUILD_SHARED_LIBS=${{matrix.shared}} -B build
++++            cmake --build build
++++            ctest --test-dir build
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..058b74e3e16e00e845f5be52fe1aefdd6e82abb5
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,45 @@@@@
++++name: Alpine Linux
++++
++++on:
++++  pull_request:
++++    types: [opened, synchronize, reopened, ready_for_review]
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++  push:
++++    branches:
++++      - main
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++
++++permissions:
++++  contents: read
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++jobs:
++++  ubuntu-build:
++++    runs-on: ubuntu-latest
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++      - name: start docker
++++        run: |
++++          docker run -w /src -dit --name alpine -v $PWD:/src alpine:latest
++++          echo 'docker exec alpine "$@";' > ./alpine.sh
++++          chmod +x ./alpine.sh
++++      - name: install packages
++++        run: |
++++          ./alpine.sh apk update
++++          ./alpine.sh apk add build-base cmake g++ linux-headers git bash icu-dev
++++      - name: cmake
++++        run: |
++++          ./alpine.sh cmake -DADA_BENCHMARKS=ON -B build_for_alpine
++++      - name: build
++++        run: |
++++          ./alpine.sh cmake --build build_for_alpine
++++      - name: test
++++        run: |
++++          ./alpine.sh bash -c "cd build_for_alpine && ctest  ."
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7f1f1f02df514b7f2ff86fede080ebd5d055e42c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,41 @@@@@
++++name: CIFuzz
++++
++++on:
++++  pull_request:
++++    branches:
++++      - main
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++permissions: read-all
++++
++++jobs:
++++  Fuzzing:
++++    runs-on: ubuntu-latest
++++    strategy:
++++      fail-fast: false
++++      matrix:
++++        sanitizer: [address, undefined, memory]
++++    steps:
++++      - name: Build Fuzzers (${{ matrix.sanitizer }})
++++        id: build
++++        uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
++++        with:
++++         oss-fuzz-project-name: 'ada-url'
++++         language: c++
++++         sanitizer: ${{ matrix.sanitizer }}
++++      - name: Run Fuzzers (${{ matrix.sanitizer }})
++++        uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
++++        with:
++++         oss-fuzz-project-name: 'ada-url'
++++         language: c++
++++         fuzz-seconds: 600
++++         sanitizer: ${{ matrix.sanitizer }}
++++      - name: Upload Crash
++++        uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
++++        if: steps.build.outcome == 'success'
++++        with:
++++          name: ${{ matrix.sanitizer }}-artifacts
++++          path: ./out/artifacts
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a993f294022b9d5ce3ac33e85b7ebee88ebb16a9
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,47 @@@@@
++++name: "CodeQL"
++++
++++on:
++++  schedule:
++++    - cron: '0 0 * * 1'
++++
++++permissions:
++++  contents: read
++++  security-events: write
++++  pull-requests: read
++++  actions: read
++++
++++jobs:
++++  analyze:
++++    name: Analyze
++++
++++    runs-on: ubuntu-latest
++++
++++    permissions:
++++      actions: read
++++      contents: read
++++      security-events: write
++++
++++    strategy:
++++      fail-fast: false
++++      matrix:
++++        language: [ 'cpp', 'python' ]
++++
++++    steps:
++++      - name: Checkout repository
++++        uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++
++++      # Initializes the CodeQL tools for scanning.
++++      - name: Initialize CodeQL
++++        uses: github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v2.2.5
++++        with:
++++          languages: ${{ matrix.language }}
++++
++++      # Autobuild attempts to build any compiled languages  (C/C++, C#, Go, or Java).
++++      # If this step fails, then you should remove it and run the build manually (see below)
++++      - name: Autobuild
++++        uses: github/codeql-action/autobuild@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v2.2.5
++++
++++      - name: Perform CodeQL Analysis
++++        uses: github/codeql-action/analyze@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v2.2.5
++++        with:
++++          category: "/language:${{matrix.language}}"
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..913b995bd15d4e9b84472d6f9b18110189f88a0f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,14 @@@@@
++++name: 'Dependency Review'
++++on: [pull_request]
++++
++++permissions:
++++  contents: read
++++
++++jobs:
++++  dependency-review:
++++    runs-on: ubuntu-latest
++++    steps:
++++      - name: 'Checkout Repository'
++++        uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++      - name: 'Dependency Review'
++++        uses: actions/dependency-review-action@5a2ce3f5b92ee19cbb1541a4984c76d921601d7c # v4.3.4
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..87458661e5cd84de6e06b331b6c5f36991a57829
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,35 @@@@@
++++name: Doxygen GitHub Pages
++++
++++on:
++++  push:
++++    branches:
++++      - main
++++  # Allows you to run this workflow manually from the Actions tab
++++  workflow_dispatch:
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++permissions:
++++  contents: read
++++
++++jobs:
++++  deploy:
++++    permissions:
++++      contents: write
++++      pages: write
++++      id-token: write
++++    runs-on: ubuntu-latest
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++      - name: Install theme
++++        run: ./tools/prepare-doxygen.sh
++++      - uses: mattnotmitt/doxygen-action@e0c8cd4cd05e28b88e723b25b30188ecf2505b40 # edge
++++        with:
++++          doxyfile-path: './doxygen'
++++      - name: Deploy to GitHub Pages
++++        uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
++++        with:
++++          github_token: ${{ secrets.GITHUB_TOKEN }}
++++          publish_dir: docs/html
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..92471dfee0efec7c9b15ffb5e874387d74f386a0
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,39 @@@@@
++++name: emscripten
++++
++++on:
++++  pull_request:
++++    types: [opened, synchronize, reopened, ready_for_review]
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++  push:
++++    branches:
++++      - main
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++
++++permissions:
++++  contents: read
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++jobs:
++++  build:
++++    runs-on: ubuntu-latest
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++      - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
++++      - uses: mymindstorm/setup-emsdk@6ab9eb1bda2574c4ddb79809fc9247783eaf9021 # v14
++++      - name: Verify
++++        run: emcc -v
++++      - name: Checkout
++++        uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.6.0
++++      - name: Configure
++++        run: emcmake cmake -B buildwasm -D ADA_TOOLS=OFF
++++      - name: Build
++++        run: cmake --build buildwasm
++++      - name: Test
++++        run: ctest --test-dir buildwasm
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..416008d288d12d37ced97166281f9f27822e4c94
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,38 @@@@@
++++name: Lint and format
++++
++++on:
++++  pull_request:
++++    types: [opened, synchronize, reopened, ready_for_review]
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++  push:
++++    branches:
++++      - main
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++
++++permissions:
++++  contents: read
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++jobs:
++++  lint-and-format:
++++    runs-on: ubuntu-latest
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++
++++      - name: Run clang-format
++++        uses: jidicula/clang-format-action@c74383674bf5f7c69f60ce562019c1c94bc1421a # v4.13.0
++++        with:
++++          clang-format-version: '17'
++++          fallback-style: 'Google'
++++
++++      - uses: chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4 # v1.0.0
++++        name: Lint with Ruff
++++        with:
++++          version: 0.4.4
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..55e1e7639c33dbbd6eeb0e38c2a580d8dd693ce5
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,44 @@@@@
++++name: macos (Installation)
++++
++++on:
++++  pull_request:
++++    types: [opened, synchronize, reopened, ready_for_review]
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++  push:
++++    branches:
++++      - main
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++
++++permissions:
++++  contents: read
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++jobs:
++++  ubuntu-build:
++++    runs-on: macos-latest
++++    strategy:
++++      matrix:
++++        include:
++++          - {shared: ON}
++++          - {shared: OFF}
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++      - name: Prepare
++++        run: cmake -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCMAKE_INSTALL_PREFIX:PATH=destination -B build
++++      - name: Build
++++        run: cmake --build build -j=2
++++      - name: Install
++++        run: cmake --install build
++++      - name: Prepare test package
++++        run: cmake -DCMAKE_INSTALL_PREFIX:PATH=../../destination -S tests/installation -B buildbabyada
++++      - name: Build test package
++++        run: cmake --build buildbabyada
++++      - name: Run example
++++        run: ./buildbabyada/main
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..11279fa0c221b265cff2e14a32d7dbc07117cb80
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,40 @@@@@
++++name: Release Script Tests
++++
++++on:
++++  # workflow_call is used to indicate that a workflow can be called by another workflow.
++++  workflow_call:
++++  pull_request:
++++    types: [opened, synchronize, reopened, ready_for_review]
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++  push:
++++    branches:
++++      - main
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++
++++permissions:
++++  contents: read
++++
++++jobs:
++++  release-script-test:
++++    runs-on: ubuntu-latest
++++    defaults:
++++      run:
++++        working-directory: ./tools/release
++++
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++
++++      - name: Prepare Python
++++        uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
++++        with:
++++          cache: 'pip' # caching pip dependencies
++++
++++      - name: Install dependencies
++++        run: pip install -r requirements.txt
++++
++++      - name: Run tests
++++        run: pytest -v
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f5b8732093babbf6fafec9cbef6eaa398d8bd8f1
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,61 @@@@@
++++name: Release Create
++++
++++on:
++++  pull_request:
++++    types: [closed]
++++
++++env:
++++  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
++++
++++jobs:
++++  check-release-conditions:
++++    runs-on: ubuntu-latest
++++    if: |
++++      github.event.pull_request.merged == true &&
++++      github.event.pull_request.base.ref == 'main' &&
++++      startsWith(github.event.pull_request.head.ref, 'release/v') &&
++++      startsWith(github.event.pull_request.user.login, 'github-actions')
++++
++++    steps:
++++      - name: Check release conditions
++++        run: |
++++          echo "All conditions have been met!"
++++
++++  release-script-test:
++++    needs: check-release-conditions
++++    uses: ./.github/workflows/release-script-tests.yml
++++
++++  create-release:
++++    permissions:
++++      contents: write
++++    needs: release-script-test
++++    runs-on: ubuntu-latest
++++    if: ${{ needs.release-script-test.result == 'success' }}
++++
++++    env:
++++      NEXT_RELEASE_TAG: ${{ github.event.pull_request.head.ref }}
++++    steps:
++++      - name: Checkout
++++        uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++
++++      - name: Prepare Python
++++        uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
++++        with:
++++          cache: 'pip' # caching pip dependencies
++++
++++      - name: Install dependencies
++++        run: pip install -r ./tools/release/requirements.txt
++++
++++      - name: Extract Tag from branch name
++++        run: |
++++          NEXT_RELEASE_TAG=$(echo $NEXT_RELEASE_TAG | sed 's/^release\///')
++++          echo "NEXT_RELEASE_TAG=${NEXT_RELEASE_TAG}" >> $GITHUB_ENV
++++
++++      - name: Target release Tag
++++        run: echo "New tag $NEXT_RELEASE_TAG"
++++
++++      - name: Amalgamation
++++        run: ./singleheader/amalgamate.py
++++
++++      - name: "Create release"
++++        run: ./tools/release/create_release.py
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3e9fc6a9f5d6768a8a454f37cb6ed74345cd61c5
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,57 @@@@@
++++name: Release Prepare
++++
++++on:
++++  workflow_dispatch:
++++    inputs:
++++      tag:
++++        type: string
++++        required: true
++++        description: "Tag for the next release. Ex.: v5.0.0"
++++
++++env:
++++  NEXT_RELEASE_TAG: ${{ github.event.inputs.tag }}
++++  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
++++
++++jobs:
++++  release-script-test:
++++    uses: ./.github/workflows/release-script-tests.yml
++++
++++  prepare-release-and-pull-request:
++++    permissions:
++++      contents: write
++++      pull-requests: write
++++    needs: release-script-test
++++    runs-on: ubuntu-latest
++++    if: ${{ needs.release-script-test.result == 'success' }}
++++    env:
++++      CXX: clang++-14
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++
++++      - name: Prepare Python
++++        uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
++++        with:
++++          cache: 'pip' # caching pip dependencies
++++
++++      - name: Install dependencies
++++        run: pip install -r ./tools/release/requirements.txt
++++
++++      - name: Update source code versions
++++        run: ./tools/release/update_versions.py
++++
++++      - name: Ada Build
++++        run: cmake -B build && cmake --build build
++++      - name: Ada Test
++++        run: ctest --output-on-failure --test-dir build
++++
++++      - name: Create PR with code updates for new release
++++        uses: peter-evans/create-pull-request@f3a21bf3404eae73a97f65817ab35f351a1a63fe #v5.0.0
++++        with:
++++          commit-message: "chore: release ${{ env.NEXT_RELEASE_TAG }}"
++++          branch: "release/${{ env.NEXT_RELEASE_TAG }}"
++++          title: "chore: release ${{ env.NEXT_RELEASE_TAG }}"
++++          token: ${{ env.GITHUB_TOKEN }}
++++          body: |
++++            This pull PR updates the source code version to ${{ env.NEXT_RELEASE_TAG }}
++++          delete-branch: true
++++          reviewers: "lemire,anonrig"
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..39433ad6e10e4a9b3a54f5daa5d3f1d1fe367741
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,70 @@@@@
++++# This workflow uses actions that are not certified by GitHub. They are provided
++++# by a third-party and are governed by separate terms of service, privacy
++++# policy, and support documentation.
++++
++++name: Scorecard supply-chain security
++++on:
++++  # For Branch-Protection check. Only the default branch is supported. See
++++  # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
++++  branch_protection_rule:
++++  # To guarantee Maintained check is occasionally updated. See
++++  # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
++++  schedule:
++++    - cron: '0 0 * * 1'
++++
++++# Declare default permissions as read only.
++++permissions: read-all
++++
++++jobs:
++++  analysis:
++++    name: Scorecard analysis
++++    runs-on: ubuntu-latest
++++    permissions:
++++      # Needed to upload the results to code-scanning dashboard.
++++      security-events: write
++++      # Needed to publish results and get a badge (see publish_results below).
++++      id-token: write
++++      # Uncomment the permissions below if installing in a private repository.
++++      # contents: read
++++      # actions: read
++++
++++    steps:
++++      - name: "Checkout code"
++++        uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++        with:
++++          persist-credentials: false
++++
++++      - name: "Run analysis"
++++        uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
++++        with:
++++          results_file: results.sarif
++++          results_format: sarif
++++          # (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
++++          # - you want to enable the Branch-Protection check on a *public* repository, or
++++          # - you are installing Scorecard on a *private* repository
++++          # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
++++          # repo_token: ${{ secrets.SCORECARD_TOKEN }}
++++
++++          # Public repositories:
++++          #   - Publish results to OpenSSF REST API for easy access by consumers
++++          #   - Allows the repository to include the Scorecard badge.
++++          #   - See https://github.com/ossf/scorecard-action#publishing-results.
++++          # For private repositories:
++++          #   - `publish_results` will always be set to `false`, regardless
++++          #     of the value entered here.
++++          publish_results: true
++++
++++      # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
++++      # format to the repository Actions tab.
++++      - name: "Upload artifact"
++++        uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
++++        with:
++++          name: SARIF file
++++          path: results.sarif
++++          retention-days: 5
++++
++++      # Upload the results to GitHub's code scanning dashboard.
++++      - name: "Upload to code-scanning"
++++        uses: github/codeql-action/upload-sarif@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
++++        with:
++++          sarif_file: results.sarif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..93ef62702c2cb48d2551cfe025afb076e2929ba1
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,40 @@@@@
++++name: Ubuntu 22.04 (Release build)
++++
++++on:
++++  pull_request:
++++    types: [opened, synchronize, reopened, ready_for_review]
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++  push:
++++    branches:
++++      - main
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++
++++permissions:
++++  contents: read
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++jobs:
++++  ubuntu-release-build:
++++    runs-on: ubuntu-22.04
++++    strategy:
++++      matrix:
++++        cxx: [g++-12, clang++-14]
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++      - name: Setup Ninja
++++        run: sudo apt-get install ninja-build
++++      - name: Prepare
++++        run: cmake -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -G Ninja -B build
++++        env:
++++          CXX: ${{matrix.cxx}}
++++      - name: Build
++++        run: cmake --build build -j=2
++++      - name: Test
++++        run: ctest --output-on-failure --test-dir build
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4404d36a9fcdd329597e12db2aecbdfe569c72d0
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,43 @@@@@
++++name: Ubuntu s390x (GCC 11)
++++
++++on:
++++  pull_request:
++++    types: [opened, synchronize, reopened, ready_for_review]
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++  push:
++++    branches:
++++      - main
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++
++++permissions:
++++  contents: read
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++jobs:
++++  build:
++++    runs-on: ubuntu-latest
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++      - uses: uraimo/run-on-arch-action@b0ffb25eb00af00468375982384441f063da1741 # v2.7.2
++++        name: Test
++++        id: runcmd
++++        with:
++++          arch: s390x
++++          distro: ubuntu_latest
++++          githubToken: ${{ github.token }}
++++          install: |
++++            apt-get update -q -y
++++            apt-get install -y cmake make g++ git
++++            apt-get install -y ninja-build
++++          run: |
++++            cmake -DCMAKE_BUILD_TYPE=Release -G Ninja -B build
++++            rm -r -f dependencies
++++            cmake --build build -j=2
++++            ctest --output-on-failure --test-dir build
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..bd3be3f56ad0f9fc3407dc5ffecf4f0dfd9773d4
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,40 @@@@@
++++name: Ubuntu 22.04 (GCC 12 SANITIZED)
++++
++++on:
++++  pull_request:
++++    types: [opened, synchronize, reopened, ready_for_review]
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++  push:
++++    branches:
++++      - main
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++
++++permissions:
++++  contents: read
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++jobs:
++++  ubuntu-build:
++++    runs-on: ubuntu-22.04
++++    strategy:
++++      matrix:
++++        shared: [ON, OFF]
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++      - name: Setup Ninja
++++        run: sudo apt-get install ninja-build
++++      - name: Prepare
++++        run: cmake -DADA_SANITIZE=ON -DADA_DEVELOPMENT_CHECKS=ON -DBUILD_SHARED_LIBS=${{matrix.shared}} -G Ninja -B build
++++        env:
++++          CXX: g++-12
++++      - name: Build
++++        run: cmake --build build -j=2
++++      - name: Test
++++        run: ctest --output-on-failure --test-dir build
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4214d186abde816a4813fbe0a2623c97dbfded69
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,40 @@@@@
++++name: Ubuntu 22.04 (GCC 12 SANITIZE UNDEFINED)
++++
++++on:
++++  pull_request:
++++    types: [opened, synchronize, reopened, ready_for_review]
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++  push:
++++    branches:
++++      - main
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++
++++permissions:
++++  contents: read
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++jobs:
++++  ubuntu-build:
++++    runs-on: ubuntu-22.04
++++    strategy:
++++      matrix:
++++        shared: [ON, OFF]
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++      - name: Setup Ninja
++++        run: sudo apt-get install ninja-build
++++      - name: Prepare
++++        run: cmake -D ADA_SANITIZE_UNDEFINED=ON -DADA_DEVELOPMENT_CHECKS=ON -DBUILD_SHARED_LIBS=${{matrix.shared}} -G Ninja -B build
++++        env:
++++          CXX: g++-12
++++      - name: Build
++++        run: cmake --build build -j=2
++++      - name: Test
++++        run: ctest --output-on-failure --test-dir build
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b340168a7390d0fe88bbcef05b5c9a059d6ef7fd
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,43 @@@@@
++++name: Ubuntu 22.04
++++
++++on:
++++  pull_request:
++++    types: [opened, synchronize, reopened, ready_for_review]
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++  push:
++++    branches:
++++      - main
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++
++++permissions:
++++  contents: read
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++jobs:
++++  ubuntu-build:
++++    runs-on: ubuntu-22.04
++++    strategy:
++++      matrix:
++++        shared: [ON, OFF]
++++        cxx: [g++-12, clang++-14]
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++      - name: Setup Ninja
++++        run: sudo apt-get install ninja-build
++++      - name: Prepare
++++        run: cmake -D ADA_BENCHMARKS=ON -DBUILD_SHARED_LIBS=${{matrix.shared}} -G Ninja -B build
++++        env:
++++          CXX: ${{matrix.cxx}}
++++      - name: Build
++++        run: cmake --build build -j=2
++++      - name: Test
++++        run: ctest --output-on-failure --test-dir build
++++      - name: Run default benchmark
++++        run: cd build && benchmarks/bench
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7bce37fb9376a184462167c53156029f911d2106
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,46 @@@@@
++++name: Ubuntu 22.04 (Installation)
++++
++++on:
++++  pull_request:
++++    types: [opened, synchronize, reopened, ready_for_review]
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++  push:
++++    branches:
++++      - main
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++
++++permissions:
++++  contents: read
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++jobs:
++++  ubuntu-build:
++++    runs-on: ubuntu-22.04
++++    strategy:
++++      matrix:
++++        include:
++++          - {shared: ON}
++++          - {shared: OFF}
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++      - name: Setup Ninja
++++        run: sudo apt-get install ninja-build
++++      - name: Prepare
++++        run: cmake -G Ninja -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCMAKE_INSTALL_PREFIX:PATH=destination -B build
++++      - name: Build
++++        run: cmake --build build -j=2
++++      - name: Install
++++        run: cmake --install build
++++      - name: Prepare test package
++++        run: cmake -DCMAKE_INSTALL_PREFIX:PATH=../../destination -S tests/installation -B buildbabyada
++++      - name: Build test package
++++        run: cmake --build buildbabyada
++++      - name: Run example
++++        run: ./buildbabyada/main
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..8447b29fd61ec4d1fcbd4d84d668d82aa7807fc7
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,41 @@@@@
++++name: Ubuntu 20.04
++++
++++on:
++++  pull_request:
++++    types: [opened, synchronize, reopened, ready_for_review]
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++  push:
++++    branches:
++++      - main
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++
++++permissions:
++++  contents: read
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++jobs:
++++  ubuntu-build:
++++    runs-on: ubuntu-20.04
++++    strategy:
++++      matrix:
++++        shared: [ON, OFF]
++++        cxx: [g++-9, clang++-10]
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++      - name: Setup Ninja
++++        run: sudo apt-get install ninja-build
++++      - name: Prepare
++++        run: cmake -DBUILD_SHARED_LIBS=${{matrix.shared}} -G Ninja -B build
++++        env:
++++          CXX: ${{matrix.cxx}}
++++      - name: Build
++++        run: cmake --build build -j=2
++++      - name: Test
++++        run: ctest --output-on-failure --test-dir build
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..56d72c253f6c2d8f4f7c5431c38efa752ae64c5b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,41 @@@@@
++++name: Ubuntu 22.04 (GCC 12) Fails On Compiler Warnings
++++
++++on:
++++  pull_request:
++++    types: [opened, synchronize, reopened, ready_for_review]
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++  push:
++++    branches:
++++      - main
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++
++++permissions:
++++  contents: read
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++jobs:
++++  ubuntu-build:
++++    runs-on: ubuntu-22.04
++++    strategy:
++++      matrix:
++++        shared: [ON, OFF]
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++      - name: Setup Ninja
++++        run: sudo apt-get install ninja-build
++++      - name: Prepare
++++        run: cmake -DBUILD_SHARED_LIBS=${{matrix.shared}} -G Ninja -B build
++++        env:
++++          CXX: g++-12
++++          CXXFLAGS: -Werror
++++      - name: Build
++++        run: cmake --build build -j=2
++++      - name: Test
++++        run: ctest --output-on-failure --test-dir build
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..71171ec6cca04e6b5a1f033b24cb4a392c28dab3
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,45 @@@@@
++++name: VS17-CI
++++
++++on:
++++  pull_request:
++++    types: [opened, synchronize, reopened, ready_for_review]
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++  push:
++++    branches:
++++      - main
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++
++++permissions:
++++  contents: read
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++jobs:
++++  ci:
++++    name: windows-vs17
++++    runs-on: windows-latest
++++    strategy:
++++      fail-fast: false
++++      matrix:
++++        include:
++++          - {gen: Visual Studio 17 2022, arch: x64, devchecks: OFF, shared: OFF, config: Release}
++++          - {gen: Visual Studio 17 2022, arch: x64, devchecks: ON, shared: OFF, config: Debug}
++++          - {gen: Visual Studio 17 2022, arch: x64, devchecks: ON, shared: ON, config: Debug}
++++          - {gen: Visual Studio 17 2022, arch: Win32, devchecks: ON, shared: OFF, config: Debug}
++++          - {gen: Visual Studio 17 2022, arch: Win32, devchecks: ON, shared: ON, config: Debug}
++++    steps:
++++    - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++    - name: Configure
++++      run: |
++++        cmake -DADA_DEVELOPMENT_CHECKS="${{matrix.devchecks}}" -G "${{matrix.gen}}" -A ${{matrix.arch}} -DBUILD_SHARED_LIBS=${{matrix.shared}} -B build
++++    - name: Build
++++      run: cmake --build build --config "${{matrix.config}}" --verbose
++++    - name: Run  tests
++++      working-directory: build
++++      run: ctest -C "${{matrix.config}}"  --output-on-failure
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..349bc8c33568a850450a8fe28019bf7d08c3bbd9
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,46 @@@@@
++++name: VS17-clang-CI
++++
++++on:
++++  pull_request:
++++    types: [opened, synchronize, reopened, ready_for_review]
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++  push:
++++    branches:
++++      - main
++++    paths-ignore:
++++      - '**.md'
++++      - 'docs/**'
++++
++++permissions:
++++  contents: read
++++
++++concurrency:
++++  group: ${{ github.workflow }}-${{ github.ref }}
++++  cancel-in-progress: true
++++
++++jobs:
++++  ci:
++++    name: windows-vs17
++++    runs-on: windows-latest
++++    strategy:
++++      fail-fast: false
++++      matrix:
++++        include:
++++          - {gen: Visual Studio 17 2022, arch: x64, devchecks: ON}
++++    steps:
++++    - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++    - name: Configure
++++      run: |
++++        cmake -DADA_DEVELOPMENT_CHECKS="${{matrix.devchecks}}" -G "${{matrix.gen}}" -A ${{matrix.arch}} -T ClangCL -B build
++++    - name: Build Debug
++++      run: cmake --build build --config Debug --verbose
++++    - name: Run Debug tests
++++      working-directory: build
++++      run: ctest -C Debug  --output-on-failure
++++    - name: Build Release
++++      run: cmake --build build --config Release --verbose
++++    - name: Run Release tests
++++      working-directory: build
++++      run: ctest -C Release  --output-on-failure
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..fdca9ab0a8ee6ca927957a08f983c8f558067032
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,40 @@@@@
++++name: Update WPT
++++
++++on:
++++  schedule:
++++    - cron: '0 0 * * *'
++++
++++env:
++++  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
++++
++++concurrency:
++++  group: wpt-updater
++++  cancel-in-progress: true
++++
++++permissions:
++++  contents: read
++++
++++jobs:
++++  issue:
++++    runs-on: ubuntu-latest
++++    permissions:
++++      contents: write
++++      pull-requests: write
++++    steps:
++++      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
++++      - name: Fetch tests
++++        run: tools/update-wpt.sh
++++      - name: Open pull request
++++        uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e #v6.0.5
++++        with:
++++          token: ${{ secrets.GH_PAT }}
++++          commit-message: "test: update web platform tests"
++++          branch: "automatic-update-wpt"
++++          title: "Update web platform tests"
++++          body: |
++++            This is an automated pull request for updating the WPT.
++++            - [Web Platform Tests](https://github.com/web-platform-tests/wpt/tree/master/url)
++++            - [Commit History](https://github.com/web-platform-tests/wpt/commits/master/url/resources)
++++            cc @anonrig @lemire
++++          team-reviewers: core
++++          delete-branch: true
diff --cc ada/.gitignore
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..bb1f23e33a949cf22608964f507eca71710971fc
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,27 @@@@@
++++# common build directory
++++build
++++*-build-*
++++
++++# Python cache
++++__pycache__
++++venv
++++
++++cmake-build-debug
++++
++++.cache
++++docs/html
++++docs/theme
++++
++++# Generated using only the Github workflow
++++benchmark_result.json
++++
++++singleheader/ada.h
++++singleheader/ada_c.h
++++singleheader/ada.cpp
++++singleheader/singleheader.zip
++++
++++benchmarks/competitors/servo-url/debug
++++benchmarks/competitors/servo-url/target
++++
++++#ignore VScode
++++.vscode/
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e4fba2183587225f216eeada4c78dfab6b2e65f5
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1 @@@@@
++++3.12
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a7ce379655fe0442e6df14f6be57dc32139d9148
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,182 @@@@@
++++cmake_minimum_required(VERSION 3.16)
++++
++++project(ada
++++  DESCRIPTION "Fast spec-compliant URL parser"
++++  LANGUAGES C CXX
++++  VERSION 2.9.2
++++)
++++set(CMAKE_CXX_STANDARD 17)
++++set(ADA_LIB_VERSION "2.9.2" CACHE STRING "ada library version")
++++set(ADA_LIB_SOVERSION "2" CACHE STRING "ada library soversion")
++++
++++include(GNUInstallDirs)
++++
++++include(CTest)
++++include(cmake/ada-flags.cmake)
++++
++++set(ADA_SOURCE_DIR src)
++++
++++add_subdirectory(src)
++++
++++set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake)
++++
++++option(ADA_BENCHMARKS "Build benchmarks" OFF)
++++option(ADA_TESTING "Build tests" ${BUILD_TESTING})
++++
++++# There are cases where when embedding ada as a dependency for other CMake
++++# projects as submodules or subdirectories (via FetchContent) can lead to
++++# errors due to CPM, so this is here to support disabling all the testing
++++# and tooling for ada if one only wishes to use the ada library.
++++if(ADA_TESTING OR ADA_BENCHMARKS OR ADA_TOOLS)
++++  include(cmake/CPM.cmake)
++++  # CPM requires git as an implicit dependency
++++  find_package(Git QUIET)
++++  # We use googletest in the tests
++++  if(Git_FOUND AND ADA_TESTING)
++++    CPMAddPackage(
++++      NAME GTest
++++      GITHUB_REPOSITORY google/googletest
++++      VERSION 1.14.0
++++      OPTIONS  "BUILD_GMOCK OFF" "INSTALL_GTEST OFF"
++++    )
++++  endif()
++++  # We use simdjson in both the benchmarks and tests
++++  if(Git_FOUND AND (ADA_TESTING OR ADA_BENCHMARKS))
++++    CPMAddPackage("gh:simdjson/simdjson@3.9.1")
++++  endif()
++++  # We use Google Benchmark, but it does not build under several 32-bit systems.
++++  if(Git_FOUND AND ADA_BENCHMARKS AND (CMAKE_SIZEOF_VOID_P EQUAL 8))
++++    CPMAddPackage(
++++      NAME benchmark
++++      GITHUB_REPOSITORY google/benchmark
++++      GIT_TAG f91b6b4
++++      OPTIONS "BENCHMARK_ENABLE_TESTING OFF"
++++              "BENCHMARK_ENABLE_INSTALL OFF"
++++              "BENCHMARK_ENABLE_WERROR OFF"
++++
++++    )
++++  endif()
++++
++++  if (ADA_TESTING AND NOT EMSCRIPTEN)
++++    if(Git_FOUND)
++++      set(CTEST_TEST_TIMEOUT 5)
++++      message(STATUS "The tests are enabled.")
++++      add_subdirectory(tests)
++++    else()
++++      message(STATUS "The tests are disabled because git was not found.")
++++    endif()
++++  else()
++++    if(is_top_project)
++++      message(STATUS "The tests are disabled.")
++++    endif()
++++  endif(ADA_TESTING AND NOT EMSCRIPTEN)
++++
++++  If(ADA_BENCHMARKS AND NOT EMSCRIPTEN)
++++    if(Git_FOUND)
++++      message(STATUS "Ada benchmarks enabled.")
++++      add_subdirectory(benchmarks)
++++    else()
++++      message(STATUS "The benchmarks are disabled because git was not found.")
++++    endif()
++++  else(ADA_BENCHMARKS AND NOT EMSCRIPTEN)
++++    if(is_top_project)
++++      message(STATUS "Ada benchmarks disabled. Set ADA_BENCHMARKS=ON to enable them.")
++++    endif()
++++  endif(ADA_BENCHMARKS AND NOT EMSCRIPTEN)
++++
++++  if (ADA_TESTING AND EMSCRIPTEN)
++++    add_subdirectory(tests/wasm)
++++  endif(ADA_TESTING AND EMSCRIPTEN)
++++endif()
++++
++++
++++add_library(ada::ada ALIAS ada)
++++
++++set_target_properties(
++++  ada PROPERTIES
++++  VERSION "${ADA_LIB_VERSION}"
++++  SOVERSION "${ADA_LIB_SOVERSION}"
++++  WINDOWS_EXPORT_ALL_SYMBOLS YES
++++)
++++
++++include(CMakePackageConfigHelpers)
++++include(GNUInstallDirs)
++++
++++if(NOT ADA_COVERAGE AND NOT EMSCRIPTEN)
++++  add_subdirectory(singleheader)
++++endif()
++++
++++if(ADA_TOOLS)
++++  if(Git_FOUND)
++++    add_subdirectory(tools)
++++  else()
++++    message(STATUS "The tools are disabled because git was not found.")
++++  endif()
++++endif()
++++
++++install(
++++  FILES include/ada.h include/ada_c.h
++++  DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
++++  COMPONENT ada_development
++++)
++++
++++install(
++++  DIRECTORY include/ada
++++  DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
++++  COMPONENT ada_development
++++)
++++
++++install(
++++  TARGETS ada
++++  EXPORT ada_targets
++++  RUNTIME COMPONENT ada_runtime
++++  LIBRARY COMPONENT ada_runtime
++++  NAMELINK_COMPONENT ada_development
++++  ARCHIVE COMPONENT ada_development
++++  INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
++++)
++++
++++configure_file(cmake/ada-config.cmake.in ada-config.cmake @ONLY)
++++
++++write_basic_package_version_file(
++++  ada-config-version.cmake
++++  COMPATIBILITY SameMinorVersion
++++)
++++
++++set(
++++  ADA_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/ada"
++++  CACHE STRING "CMake package config location relative to the install prefix"
++++)
++++mark_as_advanced(ADA_INSTALL_CMAKEDIR)
++++
++++install(
++++  FILES
++++  "${PROJECT_BINARY_DIR}/ada-config.cmake"
++++  "${PROJECT_BINARY_DIR}/ada-config-version.cmake"
++++  DESTINATION "${ADA_INSTALL_CMAKEDIR}"
++++  COMPONENT ada_development
++++)
++++
++++install(
++++  EXPORT ada_targets
++++  NAMESPACE ada::
++++  DESTINATION "${ADA_INSTALL_CMAKEDIR}"
++++  COMPONENT ada_development
++++)
++++
++++install(
++++  EXPORT ada_targets
++++  NAMESPACE ada::
++++  DESTINATION "${ADA_INSTALL_CMAKEDIR}"
++++  COMPONENT example_development
++++)
++++
++++if(is_top_project)
++++  set(CPACK_PACKAGE_VENDOR "Ada Authors")
++++  set(CPACK_PACKAGE_CONTACT "yagiz@nizipli.com")
++++  set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE-MIT")
++++  set(CPACK_RPM_PACKAGE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE-MIT")
++++  set(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/README.md")
++++  set(CPACK_SOURCE_GENERATOR "TGZ;ZIP")
++++  include(CPack)
++++endif()
diff --cc ada/Dockerfile
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..9882798ed267592c78cdc3b032915e2f6982995d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,12 @@@@@
++++FROM debian:12-slim@sha256:2ccc7e39b0a6f504d252f807da1fc4b5bcd838e83e4dec3e2f57b2a4a64e7214
++++
++++RUN apt-get update && apt-get install -y \
++++    apt-transport-https \
++++    gcc \
++++    clang \
++++    clang-tools \
++++    cmake
++++
++++WORKDIR /repo
++++
++++CMD ["bash", "-c", "cmake -B build && cmake --build build && cd build && ctest --output-on-failure"]
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1204b0aabba61db2b8aa888827cd13e05e3066d3
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,201 @@@@@
++++              Apache License
++++                           Version 2.0, January 2004
++++                        http://www.apache.org/licenses/
++++
++++   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
++++
++++   1. Definitions.
++++
++++      "License" shall mean the terms and conditions for use, reproduction,
++++      and distribution as defined by Sections 1 through 9 of this document.
++++
++++      "Licensor" shall mean the copyright owner or entity authorized by
++++      the copyright owner that is granting the License.
++++
++++      "Legal Entity" shall mean the union of the acting entity and all
++++      other entities that control, are controlled by, or are under common
++++      control with that entity. For the purposes of this definition,
++++      "control" means (i) the power, direct or indirect, to cause the
++++      direction or management of such entity, whether by contract or
++++      otherwise, or (ii) ownership of fifty percent (50%) or more of the
++++      outstanding shares, or (iii) beneficial ownership of such entity.
++++
++++      "You" (or "Your") shall mean an individual or Legal Entity
++++      exercising permissions granted by this License.
++++
++++      "Source" form shall mean the preferred form for making modifications,
++++      including but not limited to software source code, documentation
++++      source, and configuration files.
++++
++++      "Object" form shall mean any form resulting from mechanical
++++      transformation or translation of a Source form, including but
++++      not limited to compiled object code, generated documentation,
++++      and conversions to other media types.
++++
++++      "Work" shall mean the work of authorship, whether in Source or
++++      Object form, made available under the License, as indicated by a
++++      copyright notice that is included in or attached to the work
++++      (an example is provided in the Appendix below).
++++
++++      "Derivative Works" shall mean any work, whether in Source or Object
++++      form, that is based on (or derived from) the Work and for which the
++++      editorial revisions, annotations, elaborations, or other modifications
++++      represent, as a whole, an original work of authorship. For the purposes
++++      of this License, Derivative Works shall not include works that remain
++++      separable from, or merely link (or bind by name) to the interfaces of,
++++      the Work and Derivative Works thereof.
++++
++++      "Contribution" shall mean any work of authorship, including
++++      the original version of the Work and any modifications or additions
++++      to that Work or Derivative Works thereof, that is intentionally
++++      submitted to Licensor for inclusion in the Work by the copyright owner
++++      or by an individual or Legal Entity authorized to submit on behalf of
++++      the copyright owner. For the purposes of this definition, "submitted"
++++      means any form of electronic, verbal, or written communication sent
++++      to the Licensor or its representatives, including but not limited to
++++      communication on electronic mailing lists, source code control systems,
++++      and issue tracking systems that are managed by, or on behalf of, the
++++      Licensor for the purpose of discussing and improving the Work, but
++++      excluding communication that is conspicuously marked or otherwise
++++      designated in writing by the copyright owner as "Not a Contribution."
++++
++++      "Contributor" shall mean Licensor and any individual or Legal Entity
++++      on behalf of whom a Contribution has been received by Licensor and
++++      subsequently incorporated within the Work.
++++
++++   2. Grant of Copyright License. Subject to the terms and conditions of
++++      this License, each Contributor hereby grants to You a perpetual,
++++      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
++++      copyright license to reproduce, prepare Derivative Works of,
++++      publicly display, publicly perform, sublicense, and distribute the
++++      Work and such Derivative Works in Source or Object form.
++++
++++   3. Grant of Patent License. Subject to the terms and conditions of
++++      this License, each Contributor hereby grants to You a perpetual,
++++      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
++++      (except as stated in this section) patent license to make, have made,
++++      use, offer to sell, sell, import, and otherwise transfer the Work,
++++      where such license applies only to those patent claims licensable
++++      by such Contributor that are necessarily infringed by their
++++      Contribution(s) alone or by combination of their Contribution(s)
++++      with the Work to which such Contribution(s) was submitted. If You
++++      institute patent litigation against any entity (including a
++++      cross-claim or counterclaim in a lawsuit) alleging that the Work
++++      or a Contribution incorporated within the Work constitutes direct
++++      or contributory patent infringement, then any patent licenses
++++      granted to You under this License for that Work shall terminate
++++      as of the date such litigation is filed.
++++
++++   4. Redistribution. You may reproduce and distribute copies of the
++++      Work or Derivative Works thereof in any medium, with or without
++++      modifications, and in Source or Object form, provided that You
++++      meet the following conditions:
++++
++++      (a) You must give any other recipients of the Work or
++++          Derivative Works a copy of this License; and
++++
++++      (b) You must cause any modified files to carry prominent notices
++++          stating that You changed the files; and
++++
++++      (c) You must retain, in the Source form of any Derivative Works
++++          that You distribute, all copyright, patent, trademark, and
++++          attribution notices from the Source form of the Work,
++++          excluding those notices that do not pertain to any part of
++++          the Derivative Works; and
++++
++++      (d) If the Work includes a "NOTICE" text file as part of its
++++          distribution, then any Derivative Works that You distribute must
++++          include a readable copy of the attribution notices contained
++++          within such NOTICE file, excluding those notices that do not
++++          pertain to any part of the Derivative Works, in at least one
++++          of the following places: within a NOTICE text file distributed
++++          as part of the Derivative Works; within the Source form or
++++          documentation, if provided along with the Derivative Works; or,
++++          within a display generated by the Derivative Works, if and
++++          wherever such third-party notices normally appear. The contents
++++          of the NOTICE file are for informational purposes only and
++++          do not modify the License. You may add Your own attribution
++++          notices within Derivative Works that You distribute, alongside
++++          or as an addendum to the NOTICE text from the Work, provided
++++          that such additional attribution notices cannot be construed
++++          as modifying the License.
++++
++++      You may add Your own copyright statement to Your modifications and
++++      may provide additional or different license terms and conditions
++++      for use, reproduction, or distribution of Your modifications, or
++++      for any such Derivative Works as a whole, provided Your use,
++++      reproduction, and distribution of the Work otherwise complies with
++++      the conditions stated in this License.
++++
++++   5. Submission of Contributions. Unless You explicitly state otherwise,
++++      any Contribution intentionally submitted for inclusion in the Work
++++      by You to the Licensor shall be under the terms and conditions of
++++      this License, without any additional terms or conditions.
++++      Notwithstanding the above, nothing herein shall supersede or modify
++++      the terms of any separate license agreement you may have executed
++++      with Licensor regarding such Contributions.
++++
++++   6. Trademarks. This License does not grant permission to use the trade
++++      names, trademarks, service marks, or product names of the Licensor,
++++      except as required for reasonable and customary use in describing the
++++      origin of the Work and reproducing the content of the NOTICE file.
++++
++++   7. Disclaimer of Warranty. Unless required by applicable law or
++++      agreed to in writing, Licensor provides the Work (and each
++++      Contributor provides its Contributions) on an "AS IS" BASIS,
++++      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
++++      implied, including, without limitation, any warranties or conditions
++++      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
++++      PARTICULAR PURPOSE. You are solely responsible for determining the
++++      appropriateness of using or redistributing the Work and assume any
++++      risks associated with Your exercise of permissions under this License.
++++
++++   8. Limitation of Liability. In no event and under no legal theory,
++++      whether in tort (including negligence), contract, or otherwise,
++++      unless required by applicable law (such as deliberate and grossly
++++      negligent acts) or agreed to in writing, shall any Contributor be
++++      liable to You for damages, including any direct, indirect, special,
++++      incidental, or consequential damages of any character arising as a
++++      result of this License or out of the use or inability to use the
++++      Work (including but not limited to damages for loss of goodwill,
++++      work stoppage, computer failure or malfunction, or any and all
++++      other commercial damages or losses), even if such Contributor
++++      has been advised of the possibility of such damages.
++++
++++   9. Accepting Warranty or Additional Liability. While redistributing
++++      the Work or Derivative Works thereof, You may choose to offer,
++++      and charge a fee for, acceptance of support, warranty, indemnity,
++++      or other liability obligations and/or rights consistent with this
++++      License. However, in accepting such obligations, You may act only
++++      on Your own behalf and on Your sole responsibility, not on behalf
++++      of any other Contributor, and only if You agree to indemnify,
++++      defend, and hold each Contributor harmless for any liability
++++      incurred by, or claims asserted against, such Contributor by reason
++++      of your accepting any such warranty or additional liability.
++++
++++   END OF TERMS AND CONDITIONS
++++
++++   APPENDIX: How to apply the Apache License to your work.
++++
++++      To apply the Apache License to your work, attach the following
++++      boilerplate notice, with the fields enclosed by brackets "{}"
++++      replaced with your own identifying information. (Don't include
++++      the brackets!)  The text should be enclosed in the appropriate
++++      comment syntax for the file format. We also recommend that a
++++      file or class name and description of purpose be included on the
++++      same "printed page" as the copyright notice for easier
++++      identification within third-party archives.
++++
++++   Copyright 2023 Yagiz Nizipli and Daniel Lemire
++++
++++   Licensed under the Apache License, Version 2.0 (the "License");
++++   you may not use this file except in compliance with the License.
++++   You may obtain a copy of the License at
++++
++++       http://www.apache.org/licenses/LICENSE-2.0
++++
++++   Unless required by applicable law or agreed to in writing, software
++++   distributed under the License is distributed on an "AS IS" BASIS,
++++   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
++++   See the License for the specific language governing permissions and
++++   limitations under the License.
diff --cc ada/LICENSE-MIT
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..bd2abacfc1dd51abee6d41399ed228d7945dbea3
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,18 @@@@@
++++Copyright 2023 Yagiz Nizipli and Daniel Lemire
++++
++++Permission is hereby granted, free of charge, to any person obtaining a copy of
++++this software and associated documentation files (the "Software"), to deal in
++++the Software without restriction, including without limitation the rights to
++++use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
++++the Software, and to permit persons to whom the Software is furnished to do so,
++++subject to the following conditions:
++++
++++The above copyright notice and this permission notice shall be included in all
++++copies or substantial portions of the Software.
++++
++++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++++IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
++++FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
++++COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
++++IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
++++CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --cc ada/README.md
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3cd30dd84aede6dedbe96c68fdc8f6153d5e8765
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,329 @@@@@
++++# Ada
++++[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/ada-url/ada/badge)](https://securityscorecards.dev/viewer/?uri=github.com/ada-url/ada)
++++[![OpenSSF Best Practices](https://bestpractices.coreinfrastructure.org/projects/7085/badge)](https://bestpractices.coreinfrastructure.org/projects/7085)
++++[![Ubuntu 22.04](https://github.com/ada-url/ada/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/ada-url/ada/actions/workflows/ubuntu.yml)
++++[![VS17-CI](https://github.com/ada-url/ada/actions/workflows/visual_studio.yml/badge.svg)](https://github.com/ada-url/ada/actions/workflows/visual_studio.yml)
++++[![VS17-clang-CI](https://github.com/ada-url/ada/actions/workflows/visual_studio_clang.yml/badge.svg)](https://github.com/ada-url/ada/actions/workflows/visual_studio_clang.yml)
++++[![Ubuntu s390x (GCC 11)](https://github.com/ada-url/ada/actions/workflows/ubuntu-s390x.yml/badge.svg)](https://github.com/ada-url/ada/actions/workflows/ubuntu-s390x.yml)
++++
++++Ada is a fast and spec-compliant URL parser written in C++.
++++Specification for URL parser can be found from the
++++[WHATWG](https://url.spec.whatwg.org/#url-parsing) website.
++++
++++The Ada library passes the full range of tests from the specification,
++++across a wide range of platforms (e.g., Windows, Linux, macOS). It fully
++++supports the relevant [Unicode Technical Standard](https://www.unicode.org/reports/tr46/#ToUnicode).
++++
++++A common use of a URL parser is to take a URL string and normalize it.
++++The WHATWG URL specification has been adopted by most browsers.  Other tools, such as curl and many
++++standard libraries, follow the RFC 3986. The following table illustrates possible differences in practice
++++(encoding of the host, encoding of the path):
++++
++++| string source | string value |
++++|:--------------|:--------------|
++++| input string | https://www.7‑Eleven.com/Home/Privacy/Montréal |
++++| ada's normalized string | https://www.xn--7eleven-506c.com/Home/Privacy/Montr%C3%A9al |
++++| curl 7.87 | (returns the original unchanged) |
++++
++++### Requirements
++++
++++The project is otherwise self-contained and it has no dependency.
++++A recent C++ compiler supporting C++17. We test GCC 9 or better, LLVM 10 or better and Microsoft Visual Studio 2022.
++++
++++## Ada is fast.
++++
++++On a benchmark where we need to validate and normalize [thousands URLs found
++++on popular websites](https://github.com/ada-url/url-various-datasets/tree/main/top100),
++++we find that ada can be several times faster than popular competitors (system: Apple MacBook 2022
++++with LLVM 14).
++++
++++
++++```
++++      ada ▏  188 ns/URL ███▏
++++servo url ▏  664 ns/URL ███████████▎
++++     CURL ▏ 1471 ns/URL █████████████████████████
++++```
++++
++++Ada has improved the performance of the popular JavaScript environment Node.js:
++++
++++> Since Node.js 18, a new URL parser dependency was added to Node.js — Ada. This addition bumped the Node.js performance when parsing URLs to a new level. Some results could reach up to an improvement of **400%**. ([State of Node.js Performance 2023](https://blog.rafaelgss.dev/state-of-nodejs-performance-2023))
++++
++++The Ada library is used by important systems besides Node.js such as Redpanda and Cloudflare Workers.
++++
++++
++++
++++[![the ada library](http://img.youtube.com/vi/tQ-6OWRDsZg/0.jpg)](https://www.youtube.com/watch?v=tQ-6OWRDsZg)<br />
++++
++++## Quick Start
++++
++++
++++
++++Linux or macOS users might follow the following instructions if they have a recent C++ compiler installed and a standard utility (`wget`)
++++
++++
++++1. Pull the library in a directory
++++   ```
++++   wget https://github.com/ada-url/ada/releases/download/v2.6.10/ada.cpp
++++   wget https://github.com/ada-url/ada/releases/download/v2.6.10/ada.h
++++   ```
++++2. Create a new file named `demo.cpp` with this content:
++++   ```C++
++++    #include "ada.cpp"
++++    #include "ada.h"
++++    #include <iostream>
++++
++++    int main(int, char *[]) {
++++      auto url = ada::parse<ada::url>("https://www.google.com");
++++      if (!url) {
++++        std::cout << "failure" << std::endl;
++++        return EXIT_FAILURE;
++++      }
++++      url->set_protocol("http");
++++      std::cout << url->get_protocol() << std::endl;
++++      std::cout << url->get_host() << std::endl;
++++      return EXIT_SUCCESS;
++++    }
++++   ```
++++2. Compile
++++   ```
++++   c++ -std=c++17 -o demo demo.cpp
++++   ```
++++3. `./demo`
++++
++++   ```
++++   http:
++++   www.google.com
++++   ```
++++
++++## Bindings of Ada
++++
++++We provide clients for different programming languages through our C API.
++++
++++- [Rust](https://github.com/ada-url/rust): Rust bindings for Ada
++++- [Go](https://github.com/ada-url/goada): Go bindings for Ada
++++- [Python](https://github.com/ada-url/python): Python bindings for Ada
++++- [R](https://github.com/schochastics/adaR): R wrapper for Ada
++++
++++## Usage
++++
++++Ada supports two types of URL instances, `ada::url` and `ada::url_aggregator`. The usage is
++++the same in either case: we have an parsing function template `ada::parse` which can return
++++either a result of type `ada::result<ada::url>` or of type `ada::result<ada::url_aggregator>`
++++depending on your needs. The `ada::url_aggregator` class is smaller and it is backed by a precomputed
++++serialized URL string. The `ada::url` class is made of several separate strings for the various
++++components (path, host, and so forth).
++++
++++### Parsing & Validation
++++
++++- Parse and validate a URL from an ASCII or a valid UTF-8 string.
++++
++++```cpp
++++ada::result<ada::url_aggregator> url = ada::parse<ada::url_aggregator>("https://www.google.com");
++++if (url) { /* URL is valid */ }
++++```
++++
++++After calling 'parse', you *must* check that the result is valid before
++++accessing it when you are not sure that it will succeed. The following
++++code is unsafe:
++++
++++```cpp
++++ada::result<ada::url_aggregator> url = ada::parse<ada::url_aggregator>("some bad url");
++++url->get_href();
++++```
++++
++++You should do...
++++
++++```cpp
++++ada::result<ada::url_aggregator> url = ada::parse<ada::url_aggregator>("some bad url");
++++if(url) {
++++  // next line is now safe:
++++  url->get_href();
++++} else {
++++  // report a parsing failure
++++}
++++```
++++
++++For simplicity, in the examples below, we skip the check because
++++we know that parsing succeeds. All strings are assumed to be valid
++++UTF-8 strings.
++++
++++### Examples
++++
++++- Get/Update credentials
++++
++++```cpp
++++ada::result<ada::url_aggregator> url = ada::parse<ada::url_aggregator>("https://www.google.com");
++++url->set_username("username");
++++url->set_password("password");
++++// ada->get_href() will return "https://username:password@www.google.com/"
++++```
++++
++++- Get/Update Protocol
++++
++++```cpp
++++ada::result<ada::url_aggregator> url = ada::parse<ada::url_aggregator>("https://www.google.com");
++++url->set_protocol("wss");
++++// url->get_protocol() will return "wss:"
++++// url->get_href() will return "wss://www.google.com/"
++++```
++++
++++- Get/Update host
++++
++++```cpp
++++ada::result<ada::url_aggregator> url = ada::parse<ada::url_aggregator>("https://www.google.com");
++++url->set_host("github.com");
++++// url->get_host() will return "github.com"
++++// you can use `url.set_hostname` depending on your usage.
++++```
++++
++++- Get/Update port
++++
++++```cpp
++++ada::result<ada::url_aggregator> url = ada::parse<ada::url_aggregator>("https://www.google.com");
++++url->set_port("8080");
++++// url->get_port() will return "8080"
++++```
++++
++++- Get/Update pathname
++++
++++```cpp
++++ada::result<ada::url_aggregator> url = ada::parse<ada::url_aggregator>("https://www.google.com");
++++url->set_pathname("/my-super-long-path")
++++// url->get_pathname() will return "/my-super-long-path"
++++```
++++
++++- Get/Update search/query
++++
++++```cpp
++++ada::result<ada::url_aggregator> url = ada::parse<ada::url_aggregator>("https://www.google.com");
++++url->set_search("target=self");
++++// url->get_search() will return "?target=self"
++++```
++++
++++- Get/Update hash/fragment
++++
++++```cpp
++++ada::result<ada::url_aggregator> url = ada::parse<ada::url_aggregator>("https://www.google.com");
++++url->set_hash("is-this-the-real-life");
++++// url->get_hash() will return "#is-this-the-real-life"
++++```
++++For more information about command-line options, please refer to the [CLI documentation](docs/cli.md).
++++
++++- URL search params
++++
++++```cpp
++++ada::url_search_params search_params("a=b&c=d&e=f");
++++search_params.append("g=h");
++++
++++search_params.get("g");  // will return "h"
++++
++++auto keys = search_params.get_keys();
++++while (keys.has_next()) {
++++  auto key = keys.next();  // "a", "c", "e", "g"
++++}
++++```
++++
++++### C wrapper
++++
++++See the file `include/ada_c.h` for our C interface. We expect ASCII or UTF-8 strings.
++++
++++```C
++++#include "ada_c.h"
++++#include <stdio.h>
++++#include <stdlib.h>
++++#include <stdbool.h>
++++#include <string.h>
++++
++++static void ada_print(ada_string string) {
++++  printf("%.*s\n", (int)string.length, string.data);
++++}
++++
++++int main(int c, char *arg[] ) {
++++  const char* input =
++++      "https://username:password@www.google.com:8080/"
++++      "pathname?query=true#hash-exists";
++++  ada_url url = ada_parse(input, strlen(input));
++++  if(!ada_is_valid(url)) { puts("failure"); return EXIT_FAILURE; }
++++  ada_print(ada_get_href(url)); // prints https://username:password@host:8080/pathname?query=true#hash-exists
++++  ada_print(ada_get_protocol(url)); // prints https:
++++  ada_print(ada_get_username(url)); // prints username
++++  ada_set_href(url, "https://www.yagiz.co", strlen("https://www.yagiz.co"));  
++++  if(!ada_is_valid(url)) { puts("failure"); return EXIT_FAILURE; }
++++  ada_set_hash(url, "new-hash", strlen("new-hash"));
++++  ada_set_hostname(url, "new-host", strlen("new-host"));
++++  ada_set_host(url, "changed-host:9090", strlen("changed-host:9090"));
++++  ada_set_pathname(url, "new-pathname", strlen("new-pathname"));
++++  ada_set_search(url, "new-search", strlen("new-search"));
++++  ada_set_protocol(url, "wss", 3);  
++++  ada_print(ada_get_href(url)); // will print wss://changed-host:9090/new-pathname?new-search#new-hash
++++
++++  // Manipulating search params
++++  ada_string search = ada_get_search(url);
++++  ada_url_search_params search_params =
++++      ada_parse_search_params(search.data, search.length);
++++  ada_search_params_append(search_params, "a", 1, "b", 1);
++++  ada_owned_string result = ada_search_params_to_string(search_params);
++++  ada_set_search(url, result.data, result.length);
++++  ada_free_owned_string(result);
++++  ada_free_search_params(search_params);
++++
++++  ada_free(url);
++++  return EXIT_SUCCESS;
++++}
++++```
++++
++++When linking against the ada library from C++, be minding that ada requires access to the standard
++++C++ library. E.g., you may link with the C++ compiler.
++++
++++E.g., if you grab our single-header C++ files (`ada.cpp` and `ada.h`), as well as the C header (`ada_c.h`),
++++you can often compile a C program (`demo.c`) as follows under Linux/macOS systems:
++++
++++```
++++c++ -c ada.cpp -std=c++17
++++cc -c demo.c
++++c++ demo.o ada.o -o cdemo
++++./cdemo
++++```
++++
++++### CMake dependency
++++
++++See the file `tests/installation/CMakeLists.txt` for an example of how you might use ada from your own
++++CMake project, after having installed ada on your system.
++++
++++## Installation
++++
++++### Homebrew
++++
++++Ada is available through [Homebrew](https://formulae.brew.sh/formula/ada-url#default).
++++You can install Ada using `brew install ada-url`.
++++
++++## Contributing
++++
++++### Building
++++
++++Ada uses cmake as a build system. It's recommended you to run the following commands to build it locally.
++++
++++- **Build**: `cmake -B build && cmake --build build`
++++- **Test**: `ctest --output-on-failure --test-dir build`
++++
++++Windows users need additional flags to specify the build configuration, e.g. `--config Release`.
++++
++++The project can also be built via docker using default docker file of repository with following commands.
++++
++++`docker build -t ada-builder . && docker run --rm -it -v ${PWD}:/repo ada-builder`
++++
++++### Amalgamation
++++
++++You may amalgamate all source files into only two files (`ada.h` and `ada.cpp`) by typing executing the Python
++++3 script `singleheader/amalgamate.py`. By default, the files are created in the `singleheader` directory.
++++
++++### License
++++
++++This code is made available under the Apache License 2.0 as well as the MIT license.
++++
++++Our tests include third-party code and data. The benchmarking code includes third-party code: it is provided for research purposes only and not part of the library.
++++
++++### Further reading
++++
++++
++++* Yagiz Nizipli, Daniel Lemire, [Parsing Millions of URLs per Second](https://doi.org/10.1002/spe.3296), Software: Practice and Experience 54(5) May 2024.
diff --cc ada/SECURITY.md
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..255f50955d0ab84fb304f6b23c6afb959d65b54d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,8 @@@@@
++++# Security Policy
++++
++++## Reporting a Vulnerability
++++
++++Please use the following contact information for reporting a vulnerability:
++++
++++- [Daniel Lemire](https://github.com/lemire) - daniel@lemire.me
++++- [Yagiz Nizipli](https://github.com/anonrig) - yagiz@nizipli.com
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a20c2b82c7544683ce02732de66b84e77a38d005
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,304 @@@@@
++++# bench_search_params
++++add_executable(bench_search_params bench_search_params.cpp)
++++target_link_libraries(bench_search_params PRIVATE ada)
++++
++++# Bench
++++add_executable(wpt_bench wpt_bench.cpp)
++++target_link_libraries(wpt_bench PRIVATE ada)
++++target_link_libraries(wpt_bench PRIVATE simdjson)
++++target_include_directories(wpt_bench PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>")
++++target_include_directories(wpt_bench PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/benchmarks>")
++++
++++# Bench
++++add_executable(bench bench.cpp)
++++target_link_libraries(bench PRIVATE ada)
++++target_include_directories(bench PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>")
++++target_include_directories(bench PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/benchmarks>")
++++
++++# Benchdata
++++CPMAddPackage("gh:ada-url/url-dataset#9749b92c13e970e70409948fa862461191504ccc")
++++add_executable(benchdata bench.cpp)
++++target_link_libraries(benchdata PRIVATE ada)
++++target_include_directories(benchdata PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>")
++++target_include_directories(benchdata PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/benchmarks>")
++++target_compile_definitions(benchdata PRIVATE ADA_URL_FILE="${url-dataset_SOURCE_DIR}/out.txt")
++++
++++
++++# BBC Bench
++++add_executable(bbc_bench bbc_bench.cpp)
++++target_link_libraries(bbc_bench PRIVATE ada)
++++target_include_directories(bbc_bench PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>")
++++target_include_directories(bbc_bench PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/benchmarks>")
++++
++++# Percent Encode
++++add_executable(percent_encode percent_encode.cpp)
++++target_link_libraries(percent_encode PRIVATE ada)
++++target_include_directories(percent_encode PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>")
++++target_include_directories(percent_encode PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/benchmarks>")
++++if(MSVC AND BUILD_SHARED_LIBS)
++++  # Copy the ada dll into the directory
++++  add_custom_command(TARGET percent_encode POST_BUILD        # Adds a post-build event
++++    COMMAND ${CMAKE_COMMAND} -E copy_if_different  # which executes "cmake -E copy_if_different..."
++++        "$<TARGET_FILE:ada>"      # <--this is in-file
++++        "$<TARGET_FILE_DIR:percent_encode>")                 # <--this is out-file path
++++endif()
++++
++++if(CMAKE_SYSTEM_NAME MATCHES "Linux")
++++    # The model_bench program requires accurate/low-overhead performance counters.
++++    # We only have such support under Linux.
++++    add_executable(model_bench model_bench.cpp)
++++    target_link_libraries(model_bench PRIVATE ada)
++++    target_compile_definitions(model_bench PRIVATE ADA_URL_FILE="${url-dataset_SOURCE_DIR}/out.txt")
++++endif()
++++
++++target_link_libraries(wpt_bench PRIVATE benchmark::benchmark)
++++target_link_libraries(bench PRIVATE benchmark::benchmark)
++++target_link_libraries(benchdata PRIVATE benchmark::benchmark)
++++target_link_libraries(bbc_bench PRIVATE benchmark::benchmark)
++++target_link_libraries(percent_encode PRIVATE benchmark::benchmark)
++++target_link_libraries(bench_search_params PRIVATE benchmark::benchmark)
++++
++++option(ADA_COMPETITION "Whether to install various competitors." OFF)
++++
++++# We only build url_whatwg if ICU is found, so we need to make
++++# finding ICU easy.
++++
++++if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
++++  message(STATUS "Apple system detected.")
++++  # People who run macOS often use brew.
++++  if(EXISTS /opt/homebrew/opt/icu4c)
++++    message(STATUS "icu is provided by homebrew at /opt/homebrew/opt/icu4c.")
++++    ## This is a bit awkward, but it is a lot better than asking the
++++    ## user to figure that out.
++++    list(APPEND CMAKE_PREFIX_PATH "/opt/homebrew/opt/icu4c/include")
++++    list(APPEND CMAKE_LIBRARY_PATH "/opt/homebrew/opt/icu4c/lib")
++++  elseif(EXISTS /usr/local/opt/icu4c)
++++    message(STATUS "icu is provided by homebrew at /usr/local/opt/icu4c.")
++++    list(APPEND CMAKE_PREFIX_PATH "/usr/local/opt/icu4c/include")
++++    list(APPEND CMAKE_LIBRARY_PATH "/usr/local/opt/icu4c/lib")
++++  endif()
++++endif()
++++
++++find_package(ICU COMPONENTS uc i18n)
++++### If the user does not have ICU, let us help them with instructions:
++++if(NOT ICU_FOUND)
++++  if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
++++      if(EXISTS /opt/homebrew)
++++        message(STATUS "Under macOS, you may install ICU with brew, using 'brew install icu4c'.")
++++      else()
++++        message(STATUS "Under macOS, you should install brew (see https://brew.sh) and then icu4c ('brew install icu4c').")
++++      endif()
++++  elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
++++      message(STATUS "Under Linux, you may be able to install ICU with a command such as 'apt-get install libicu-dev'." )
++++  endif()
++++endif(NOT ICU_FOUND)
++++
++++if(ICU_FOUND)
++++    CPMAddPackage(
++++      NAME url_whatwg
++++      GITHUB_REPOSITORY rmisev/url_whatwg
++++      GIT_TAG 72bcabf
++++      OPTIONS  "URL_BUILD_TESTS OFF" "URL_USE_LIBS OFF"
++++    )
++++    add_library(url_whatwg_lib STATIC "${url_whatwg_SOURCE_DIR}/src/url.cpp"
++++      "${url_whatwg_SOURCE_DIR}/src/url_idna.cpp"
++++      "${url_whatwg_SOURCE_DIR}/src/url_ip.cpp"
++++      "${url_whatwg_SOURCE_DIR}/src/url_percent_encode.cpp"
++++      "${url_whatwg_SOURCE_DIR}/src/url_search_params.cpp"
++++      "${url_whatwg_SOURCE_DIR}/src/url_utf.cpp"
++++      "${url_whatwg_SOURCE_DIR}/src/url.cpp")
++++    target_include_directories(url_whatwg_lib PUBLIC "${url_whatwg_SOURCE_DIR}/include")
++++    target_link_libraries(url_whatwg_lib PRIVATE ICU::uc ICU::i18n)
++++
++++
++++    target_link_libraries(bench PRIVATE url_whatwg_lib)
++++    target_link_libraries(benchdata PRIVATE url_whatwg_lib)
++++    target_link_libraries(bbc_bench PRIVATE url_whatwg_lib)
++++    target_link_libraries(wpt_bench PRIVATE url_whatwg_lib)
++++
++++    target_include_directories(bench PUBLIC "${url_whatwg_SOURCE_DIR}")
++++    target_include_directories(benchdata PUBLIC "${url_whatwg_SOURCE_DIR}")
++++    target_include_directories(bbc_bench PUBLIC "${url_whatwg_SOURCE_DIR}")
++++    target_include_directories(wpt_bench PUBLIC "${url_whatwg_SOURCE_DIR}")
++++
++++    target_compile_definitions(bench PRIVATE ADA_url_whatwg_ENABLED=1)
++++    target_compile_definitions(benchdata PRIVATE ADA_url_whatwg_ENABLED=1)
++++    target_compile_definitions(bbc_bench PRIVATE ADA_url_whatwg_ENABLED=1)
++++    target_compile_definitions(wpt_bench PRIVATE ADA_url_whatwg_ENABLED=1)
++++
++++endif(ICU_FOUND)
++++
++++if(ADA_COMPETITION)
++++    # URI Parser
++++    CPMAddPackage(
++++      NAME uriparser
++++      GITHUB_REPOSITORY uriparser/uriparser
++++      GIT_TAG 634b678
++++      OPTIONS "URIPARSER_BUILD_TESTS OFF" "URIPARSER_BUILD_DOCS OFF"
++++    )
++++    target_link_libraries(bench PRIVATE uriparser)
++++    target_link_libraries(bbc_bench PRIVATE uriparser)
++++    # URL Parser
++++    CPMAddPackage(
++++      NAME urlparser
++++      GITHUB_REPOSITORY netmindms/urlparser
++++      GIT_TAG 69c09ed
++++    )
++++    add_library(urlparser STATIC "${urlparser_SOURCE_DIR}/src/EdUrlParser.cpp")
++++    target_include_directories(urlparser PUBLIC "${urlparser_SOURCE_DIR}/src")
++++    target_link_libraries(bench PRIVATE urlparser)
++++    target_link_libraries(bbc_bench PRIVATE urlparser)
++++
++++    # HTTP Parser
++++    CPMAddPackage(
++++      NAME httpparser
++++      GITHUB_REPOSITORY nodejs/http-parser
++++      VERSION 2.9.4
++++    )
++++    add_library(httpparser STATIC "${httpparser_SOURCE_DIR}/http_parser.c")
++++    set_source_files_properties("${httpparser_SOURCE_DIR}/http_parser.c" PROPERTIES LANGUAGE C)
++++    target_include_directories(httpparser PUBLIC "${httpparser_SOURCE_DIR}")
++++    target_link_libraries(bench PRIVATE httpparser)
++++    target_link_libraries(bbc_bench PRIVATE httpparser)
++++
++++
++++    target_compile_definitions(bench PRIVATE ADA_VARIOUS_COMPETITION_ENABLED=1)
++++    target_compile_definitions(bbc_bench PRIVATE ADA_VARIOUS_COMPETITION_ENABLED=1)
++++endif(ADA_COMPETITION)
++++
++++# CURL
++++find_package(CURL)
++++if(CURL_FOUND)
++++    message(STATUS "curl version " ${CURL_VERSION_STRING})
++++    if (CURL_VERSION_STRING VERSION_LESS "7.62.0")
++++        message(STATUS "curl is too old, we need version 7.62.0 or better")
++++    else()
++++        include_directories(${CURL_INCLUDE_DIRS})
++++        if(NOT CURL_LIBRARIES)
++++            target_link_libraries(bench PRIVATE CURL::libcurl)
++++            target_link_libraries(benchdata PRIVATE CURL::libcurl)
++++            target_link_libraries(bbc_bench PRIVATE CURL::libcurl)
++++        else()
++++            target_link_libraries(bench PRIVATE ${CURL_LIBRARIES})
++++            target_link_libraries(benchdata PRIVATE ${CURL_LIBRARIES})
++++            target_link_libraries(bbc_bench PRIVATE ${CURL_LIBRARIES})
++++        endif()
++++        target_compile_definitions(bench PRIVATE ADA_CURL_ENABLED=1)
++++        target_compile_definitions(benchdata PRIVATE ADA_CURL_ENABLED=1)
++++        target_compile_definitions(bbc_bench PRIVATE ADA_CURL_ENABLED=1)
++++    endif()
++++else(CURL_FOUND)
++++    message(STATUS "Curl not found! Please install the curl library.")
++++endif(CURL_FOUND)
++++
++++option(ADA_BOOST_URL "Whether to install boost URL." OFF)
++++
++++message(STATUS "Compiler is " ${CMAKE_CXX_COMPILER_ID})
++++
++++if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
++++message(STATUS "Compiler version " ${CMAKE_CXX_COMPILER_VERSION})
++++
++++if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9)
++++message(STATUS "Compiler is too old, disabling boost url.")
++++SET(ADA_BOOST_URL OFF CACHE BOOL "Whether to install boost URL." FORCE)
++++endif()
++++endif()
++++
++++# Boost
++++if(ADA_BOOST_URL)
++++find_package(
++++    Boost 1.80
++++    COMPONENTS system
++++)
++++endif(ADA_BOOST_URL)
++++
++++if(Boost_FOUND)
++++    CPMAddPackage(
++++      NAME boost_url
++++      GITHUB_REPOSITORY  boostorg/url
++++      GIT_TAG boost-1.81.0
++++    )
++++    add_library(boost_url INTERFACE)
++++    target_include_directories(boost_url INTERFACE
++++           "${boost_url_SOURCE_DIR}/include")
++++
++++    target_link_libraries(bench PRIVATE Boost::system)
++++    target_link_libraries(bench PRIVATE boost_url)
++++    target_compile_definitions(bench PRIVATE ADA_BOOST_ENABLED=1)
++++
++++    target_link_libraries(benchdata PRIVATE Boost::system)
++++    target_link_libraries(benchdata PRIVATE boost_url)
++++    target_compile_definitions(benchdata PRIVATE ADA_BOOST_ENABLED=1)
++++
++++    target_link_libraries(bbc_bench PRIVATE Boost::system)
++++    target_link_libraries(bbc_bench PRIVATE boost_url)
++++    target_compile_definitions(bbc_bench PRIVATE ADA_BOOST_ENABLED=1)
++++else(Boost_FOUND)
++++if(ADA_BOOST_URL)
++++    message(STATUS "Boost 1.80 or better was not found, please install it for benchmarking purposes.")
++++endif(ADA_BOOST_URL)
++++endif(Boost_FOUND)
++++
++++# Zuri
++++find_package(ZURI QUIET)
++++if(ZURI_FOUND)
++++    message(STATUS "Zuri found")
++++    target_link_libraries(bench PRIVATE zuri)
++++    target_link_libraries(benchdata PRIVATE zuri)
++++    target_link_libraries(bbc_bench PRIVATE zuri)
++++    target_compile_definitions(bench PRIVATE ADA_ZURI_ENABLED=1)
++++    target_compile_definitions(benchdata PRIVATE ADA_ZURI_ENABLED=1)
++++    target_compile_definitions(bbc_bench PRIVATE ADA_ZURI_ENABLED=1)
++++else(ZURI_FOUND)
++++    message(STATUS "Zuri not found! Please install to include in benchmark.")
++++endif(ZURI_FOUND)
++++
++++if(NOT WIN32)
++++# We want the check whether Rust is available before trying to build a crate.
++++CPMAddPackage(
++++  NAME corrosion
++++  GITHUB_REPOSITORY corrosion-rs/corrosion
++++  VERSION 0.4.4
++++  DOWNLOAD_ONLY ON
++++  OPTIONS "Rust_FIND_QUIETLY OFF"
++++)
++++include("${corrosion_SOURCE_DIR}/cmake/FindRust.cmake")
++++endif()
++++
++++if(RUST_FOUND)
++++  message(STATUS "Rust found: " ${Rust_VERSION} )
++++  add_subdirectory("${corrosion_SOURCE_DIR}" "${PROJECT_BINARY_DIR}/_deps/corrosion" EXCLUDE_FROM_ALL)
++++  # Important: we want to build in release mode!
++++  corrosion_import_crate(MANIFEST_PATH "competitors/servo-url/Cargo.toml" NO_LINKER_OVERRIDE PROFILE release)
++++
++++  # Check if servo-url target was created successfully
++++  if(TARGET servo-url)
++++    message(STATUS "servo-url target was created. Linking benchmarks and servo-url.")
++++    target_link_libraries(bench PRIVATE servo-url)
++++    target_compile_definitions(bench PRIVATE ADA_RUST_VERSION="${Rust_VERSION}")
++++
++++    target_link_libraries(benchdata PRIVATE servo-url)
++++    target_compile_definitions(benchdata PRIVATE ADA_RUST_VERSION="${Rust_VERSION}")
++++
++++    target_link_libraries(bbc_bench PRIVATE servo-url)
++++    target_compile_definitions(bbc_bench PRIVATE ADA_RUST_VERSION="${Rust_VERSION}")
++++
++++    target_link_libraries(percent_encode PRIVATE servo-url)
++++    target_compile_definitions(percent_encode PRIVATE ADA_RUST_VERSION="${Rust_VERSION}")
++++
++++    target_link_libraries(wpt_bench PRIVATE servo-url)
++++    target_compile_definitions(wpt_bench PRIVATE ADA_RUST_VERSION="${Rust_VERSION}")
++++  endif()
++++else()
++++  message(STATUS "Rust/Cargo is unavailable." )
++++  message(STATUS "We will not benchmark servo-url." )
++++  if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
++++    message(STATUS "Under macOS, you may be able to install rust with")
++++    message(STATUS "curl https://sh.rustup.rs -sSf | sh")
++++  elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
++++    message(STATUS "Under Linux, you may be able to install rust with a command such as")
++++    message(STATUS "apt-get install cargo" )
++++    message(STATUS "or" )
++++    message(STATUS "curl https://sh.rustup.rs -sSf | sh")
++++  endif()
++++endif()
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..907d49189f95e6a8151b2d5b70bcaa71bafd9021
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,36 @@@@@
++++#include "benchmark_header.h"
++++
++++/**
++++ * Realistic URL examples collected from the BBC homepage.
++++ */
++++std::string url_examples[] = {
++++    "https://static.files.bbci.co.uk/orbit/737a4ee2bed596eb65afc4d2ce9af568/js/"
++++    "polyfills.js",
++++    "https://static.files.bbci.co.uk/orbit/737a4ee2bed596eb65afc4d2ce9af568/"
++++    "css/orbit-v5-ltr.min.css",
++++    "https://static.files.bbci.co.uk/orbit/737a4ee2bed596eb65afc4d2ce9af568/js/"
++++    "require.min.js",
++++    "https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_Rg.woff2",
++++    "https://nav.files.bbci.co.uk/searchbox/c8bfe8595e453f2b9483fda4074e9d15/"
++++    "css/box.css",
++++    "https://static.files.bbci.co.uk/cookies/d3bb303e79f041fec95388e04f84e716/"
++++    "cookie-banner/cookie-library.bundle.js",
++++    "https://static.files.bbci.co.uk/account/id-cta/597/style/id-cta.css",
++++    "https://gn-web-assets.api.bbc.com/wwhp/"
++++    "20220908-1153-091014d07889c842a7bdc06e00fa711c9e04f049/responsive/css/"
++++    "old-ie.min.css",
++++    "https://gn-web-assets.api.bbc.com/wwhp/"
++++    "20220908-1153-091014d07889c842a7bdc06e00fa711c9e04f049/modules/vendor/"
++++    "bower/modernizr/modernizr.js"};
++++
++++void init_data(const char* v = nullptr) {}
++++
++++double url_examples_bytes = []() -> double {
++++  size_t bytes{0};
++++  for (std::string& url_string : url_examples) {
++++    bytes += url_string.size();
++++  }
++++  return double(bytes);
++++}();
++++
++++#include "benchmark_template.cpp"
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..8986c936ff2233825ad51109c5bf2e944637b1d5
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,72 @@@@@
++++#include "benchmark_header.h"
++++
++++/**
++++ * Realistic URL examples collected on the actual web.
++++ */
++++std::string url_examples_default[] = {
++++    "https://www.google.com/"
++++    "webhp?hl=en&amp;ictx=2&amp;sa=X&amp;ved=0ahUKEwil_"
++++    "oSxzJj8AhVtEFkFHTHnCGQQPQgI",
++++    "https://support.google.com/websearch/"
++++    "?p=ws_results_help&amp;hl=en-CA&amp;fg=1",
++++    "https://en.wikipedia.org/wiki/Dog#Roles_with_humans",
++++    "https://www.tiktok.com/@aguyandagolden/video/7133277734310038830",
++++    "https://business.twitter.com/en/help/troubleshooting/"
++++    "how-twitter-ads-work.html?ref=web-twc-ao-gbl-adsinfo&utm_source=twc&utm_"
++++    "medium=web&utm_campaign=ao&utm_content=adsinfo",
++++    "https://images-na.ssl-images-amazon.com/images/I/"
++++    "41Gc3C8UysL.css?AUIClients/AmazonGatewayAuiAssets",
++++    "https://www.reddit.com/?after=t3_zvz1ze",
++++    "https://www.reddit.com/login/?dest=https%3A%2F%2Fwww.reddit.com%2F",
++++    "postgresql://other:9818274x1!!@localhost:5432/"
++++    "otherdb?connect_timeout=10&application_name=myapp",
++++    "http://192.168.1.1",             // ipv4
++++    "http://[2606:4700:4700::1111]",  // ipv6
++++};
++++
++++std::vector<std::string> url_examples;
++++
++++double url_examples_bytes = []() -> double {
++++  size_t bytes{0};
++++  for (std::string& url_string : url_examples) {
++++    bytes += url_string.size();
++++  }
++++  return double(bytes);
++++}();
++++
++++#ifdef ADA_URL_FILE
++++const char* default_file = ADA_URL_FILE;
++++#else
++++const char* default_file = nullptr;
++++#endif
++++
++++size_t init_data(const char* input = default_file) {
++++  // compute the number of bytes.
++++  auto compute = []() -> double {
++++    size_t bytes{0};
++++    for (std::string& url_string : url_examples) {
++++      bytes += url_string.size();
++++    }
++++    return double(bytes);
++++  };
++++  if (input == nullptr) {
++++    for (const std::string& s : url_examples_default) {
++++      url_examples.emplace_back(s);
++++    }
++++    url_examples_bytes = compute();
++++    return url_examples.size();
++++  }
++++
++++  if (!file_exists(input)) {
++++    std::cout << "File not found !" << input << std::endl;
++++    for (const std::string& s : url_examples_default) {
++++      url_examples.emplace_back(s);
++++    }
++++  } else {
++++    std::cout << "Loading " << input << std::endl;
++++    url_examples = split_string(read_file(input));
++++  }
++++  url_examples_bytes = compute();
++++  return url_examples.size();
++++}
++++#include "benchmark_template.cpp"
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..26cf53e26d69a58da9bd1b394e610cc145f654da
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,343 @@@@@
++++#include "benchmark_header.h"
++++
++++/**
++++ * Realistic URL examples collected from Indeed.com, see
++++ * https://github.com/ada-url/ada/pull/459#issuecomment-1624187633
++++ */
++++std::string url_examples_default[] = {
++++    "https://secure.indeed.com/"
++++    "auth?continue=https%3A%2F%2Fm5.apply.indeed.com%2Fbeta%2Findeedapply%"
++++    "2Fresumeapply%3FdraftId%3Dd2f89678-c675-4dd6-8776-c7de2df808cc-Y21o%"
++++    "26draftDc%3Dcmh%26postUrl%3Dhttp%253A%252F%252Fmuffit%252Fprocess-"
++++    "indeedapply%26jk%3D4ce8c8f85737012d%26mob%3D0%26referer%3Dhttps%253A%252F%"
++++    "252Fwww.indeed.com%252F%26formParent%3D%26hl%3Den_US%26jobTitle%"
++++    "3DEmbedded%2BSoftware%2BEngineer%26questions%3Diq%253A%252F%"
++++    "252F5a5f158dfd632ec505eb%253Fv%253D1%26twoPaneVjAllocId%3D%"
++++    "26onappliedstatus%3D_updateIndeedApplyStatus%26preload%3D0%26autoString%"
++++    "3Dnone%26iip%3D1%26recentsearchquery%3D%257B%2522what%2522%253A%"
++++    "2522software%2Bengineer%2522%252C%2522where%2522%253A%2522austin%252C%"
++++    "2Btx%2522%257D%26isCreateIAJobApiSuccess%3Dfalse%26onclose%"
++++    "3DindeedApplyHandleModalClose%26onContinueClick%"
++++    "3DindeedApplyHandleModalClose%26jobUrl%3Dhttps%253A%252F%252Fwww.indeed."
++++    "com%252Fviewjob%253Fjk%253D4ce8c8f85737012d%26onready%3D_onButtonReady%"
++++    "26onapplied%3DindeedApplyHandleApply%26href%3Dhttps%253A%252F%252Fwww."
++++    "indeed.com%252Fviewjob%253Fjk%253D4ce8c8f85737012d%2526from%253Dmobhp_"
++++    "jobfeed_auto%2526tk%253D1h4m9jbiui7lq801%2526viewtype%253Dembedded%"
++++    "2526advn%253D2919294681304046%2526adid%253D409899006%2526xkcb%253DSoCq-_"
++++    "M3NWbCoeUCiZ0LbzkdCdPP%2526topwindowlocation%253D%25252F%26coverletter%"
++++    "3DOPTIONAL%26resume%3Drequired%26twoPaneAllocId%3D%26jobMeta%3D%257B%"
++++    "2526quot%253Bvtk%2526quot%253B%253A%2526quot%253B1h4m9jddo28q3001%"
++++    "2526quot%253B%252C%2526quot%253Btk%2526quot%253B%253A%2526quot%"
++++    "253B1h4m9jbiui7lq801%2526quot%253B%257D%26src%3Didd%26ms%3D1688670424981%"
++++    "26jobCompany%3DSigmaSense%252C%2BLLC%26onclick%"
++++    "3DindeedApplyHandleButtonClick%26pingbackUrl%3Dhttps%253A%252F%252Fgdc."
++++    "indeed.com%252Fconv%252ForgIndApp%253Fco%253DUS%2526vjtk%"
++++    "253D1h4m9jddo28q3001%2526jk%253D4ce8c8f85737012d%2526mvj%253D0%2526tk%"
++++    "253D1h4m9jbiui7lq801%2526trk.origin%253Djobsearch%2526sj%253D1%2526vjfrom%"
++++    "253Dmobhp_jobfeed_auto%2526advn%253D2919294681304046%2526adid%"
++++    "253D409899006%2526ad%253D-6NYlbfkN0BLmp7eN89U-"
++++    "imdIS3k1HPy83nFSQVS0CyWSe3vCO57TwIlXkEWIh-"
++++    "pJhJKr5e0ECbg2AnsbYecK2l6IQRkcmJAo04wMd0HwXw9frAU8JSwJ1mjwcEN4QeCXiILN_"
++++    "wIA4Wr_ywZCGdozVPXXsoaJzqbyZBeGNAHJQuiHvWOxPzh1LKLSr_"
++++    "pFbOxn1NmCOkmvvMW36P569CcM6K7a7vOkj32OJUAg8NT_"
++++    "oipaaUGwXpvKlH6ebfTW6B3WWuJtZ9tsQNwH330zZOVkF1mhjr837W2e-OaEjikG0Nrqh-"
++++    "9DFBdDUmSLosfcp0hGtARFGYWfp7xU-897-fsivVLte1sPZhzSqWn9P_"
++++    "D9hHnfmG2LZnTVBp3Jx6QcGng4-U5K8v9KFx7XN9GjcqQum735VDirUpQ61ZT-"
++++    "WOT5Ilm1xI3nNocOcUQJELhqt6WiAgSIyvTKw7SAfCj2fzp0DshQHzxqVdhe-"
++++    "iJ9apJI0JWZa195l_ZNFYvu8-rusj79RaBev9_"
++++    "LPbejUXOZON2MDA37bFHRZsyWNXOCCKl0tswubGZku70sD7HVHm5aYYINKdL_"
++++    "uKogRuW4r7C99AU69eZMUJF78gl%2526xkcb%253DSoCq-_M3NWbCoeUCiZ0LbzkdCdPP%"
++++    "2526astse%253Dad9474a7b6ec862d%2526assa%253D8360%26co%3DUS%26advNum%"
++++    "3D2919294681304046%26noButtonUI%3Dtrue%26iaUid%3D1h4m9je9qjcbf800%26spn%"
++++    "3D1%26jobId%3D5a5f158dfd632ec505eb%26isITA%3D0%26apiToken%"
++++    "3Daa102235a5ccb18bd3668c0e14aa3ea7e2503cfac2a7a9bf3d6549899e125af4%"
++++    "26jobLocation%3DAustin%252C%2BTX%2B78758%26twoPaneGroup%3D-1%"
++++    "26indeedcsrftoken%3D7bG1QaY6YSlr3rfgMbu9YRVPyk1v2TF0%26phone%3DOPTIONAL%"
++++    "26jobApplies%3D-1%26twoPaneVjGroup%3D-1%26returnToJobSearchUrl%3Dhttp%"
++++    "253A%252F%252Fwww.indeed.com%252F%26indeedApplyableJobApiURI%3D&cfb=2&obo="
++++    "http%3A%2F%2Fwww.indeed.com%2F&hl=en_US&from=indapply-login-SmartApply&"
++++    "branding=indeed-apply",
++++    //
++++    "https://secure.indeed.com/"
++++    "auth?continue=https%3A%2F%2Fm5.apply.indeed.com%2Fbeta%2Findeedapply%"
++++    "2Fresumeapply%3FdraftId%3Dcd45b794-ede7-48a2-a143-6023319e90a4-Y21o%"
++++    "26draftDc%3Dcmh%26postUrl%3Dhttps%253A%252F%252Fapply.workable.com%"
++++    "252Fapi%252Fv1%252Fjobboards%252Findeed%252Fjobs%252FEC33BF8806%252Fapply%"
++++    "26jk%3D0ffb6f7ed64d3bae%26mob%3D0%26referer%3Dhttps%253A%252F%252Fwww."
++++    "indeed.com%252F%26formParent%3D%26hl%3Den_US%26jobTitle%3DEmbedded%"
++++    "2BSoftware%2BEngineer%26questions%3Dhttps%253A%252F%252Fapply.workable."
++++    "com%252Fapi%252Fv1%252Fjobboards%252Findeed%252Fjobs%252FEC33BF8806%"
++++    "252Fquestions%26twoPaneVjAllocId%3D%26onappliedstatus%3D_"
++++    "updateIndeedApplyStatus%26preload%3D0%26autoString%3Dnone%26iip%3D1%"
++++    "26recentsearchquery%3D%257B%2522what%2522%253A%2522software%2Bengineer%"
++++    "2522%252C%2522where%2522%253A%2522austin%252C%2Btx%2522%257D%"
++++    "26isCreateIAJobApiSuccess%3Dfalse%26onclose%3DindeedApplyHandleModalClose%"
++++    "26onContinueClick%3DindeedApplyHandleModalClose%26jobUrl%3Dhttps%253A%"
++++    "252F%252Fwww.indeed.com%252Fviewjob%253Fjk%253D0ffb6f7ed64d3bae%26onready%"
++++    "3D_onButtonReady%26onapplied%3DindeedApplyHandleApply%26href%3Dhttps%253A%"
++++    "252F%252Fwww.indeed.com%252Fviewjob%253Fjk%253D0ffb6f7ed64d3bae%2526from%"
++++    "253Dhp%2526tk%253D1h4m9jbiui7lq801%2526viewtype%253Dembedded%2526advn%"
++++    "253D2169897021852324%2526adid%253D412530207%2526xkcb%253DSoDv-_"
++++    "M3NWbCoe0CiZ0LbzkdCdPP%2526topwindowlocation%253D%25252F%26coverletter%3D%"
++++    "26twoPaneAllocId%3D%26src%3Didd%26ms%3D1688670502027%26jobCompany%3DShift%"
++++    "2BRobotics%26onclick%3DindeedApplyHandleButtonClick%26pingbackUrl%3Dhttps%"
++++    "253A%252F%252Fgdc.indeed.com%252Fconv%252ForgIndApp%253Fco%253DUS%"
++++    "2526vjtk%253D1h4m9ltcgii2t800%2526jk%253D0ffb6f7ed64d3bae%2526mvj%253D0%"
++++    "2526tk%253D1h4m9jbiui7lq801%2526trk.origin%253Djobsearch%2526sj%253D1%"
++++    "2526vjfrom%253Dhp%2526advn%253D2169897021852324%2526adid%253D412530207%"
++++    "2526ad%253D-6NYlbfkN0ADTLHW1lVcttxG1n9WEfcRI1-"
++++    "ixIWqaQXrnishWQ6BGJjne4HH5OGRzbL9TFjFzxuxk65rhcUupJlJ21QkpPLqd89n0B4cMJw-"
++++    "xmaYdF9-dzypunDDP4jQEuuhT-tpejJCNc8jlBI6FGBAtkAXuipq96Z-"
++++    "vOtd24jCWqboqknQBia2fKh5sYbqLv3E7C6vlBmxO2FH4-qm1_"
++++    "vkeeUq1lsktOtkKCFK2RSR5V5xbkBHcu0hkuZAShjpg2ro3F4e9VbP5_"
++++    "tC3BKSqdL9un4SibeC59V880-mAhOnU_"
++++    "yhuURbniZCCFxjEH66D3euJEOSBZDVnpK0jsbAbxwAnx9dtEdC_"
++++    "HG3BG2PgUf9uwPA8SgdtHuhTAkToYjDBF1l5ENrF3WSXIMTCANToEbE3FpgMwNgOkTDf_"
++++    "4E0Zf-vZ5LjmNY_8q8gL9SwhL6dAsnb-iH5Nm9OGEI32LTlhl9KtszAFZ99UGlzmRjo_"
++++    "iD7ienJa3zd_Ebh_NZWkb_4pEKal6--pSAPlVPbC6azvhPiBzQgMhzpUS9Z-7YYhU%25253D%"
++++    "2526xkcb%253DSoDv-_M3NWbCoe0CiZ0LbzkdCdPP%2526astse%253Dc630be9cfe791df9%"
++++    "2526assa%253D240%26co%3DUS%26advNum%3D2169897021852324%26noButtonUI%"
++++    "3Dtrue%26iaUid%3D1h4m9lujpkblm800%26spn%3D1%26jobId%3D5F6DD26C1B%26isITA%"
++++    "3D0%26apiToken%"
++++    "3D3a51613a4d8b9799d352130065868b0c34bce36cee7f4dffa3ed16b0c7936634%"
++++    "26jobLocation%3DAustin%252C%2BTexas%252C%2BUnited%2BStates%26twoPaneGroup%"
++++    "3D-1%26indeedcsrftoken%3D7bG1QaY6YSlr3rfgMbu9YRVPyk1v2TF0%26phone%"
++++    "3Doptional%26jobApplies%3D-1%26twoPaneVjGroup%3D-1%26returnToJobSearchUrl%"
++++    "3Dhttp%253A%252F%252Fwww.indeed.com%252F%26indeedApplyableJobApiURI%3D&"
++++    "cfb=2&obo=http%3A%2F%2Fwww.indeed.com%2F&hl=en_US&from=indapply-login-"
++++    "SmartApply&branding=indeed-apply",
++++    //
++++    "https://secure.indeed.com/"
++++    "auth?hl=en_US&co=US&continue=https%3A%2F%2Fwww.indeed.com%"
++++    "2Fthirdpartysignin%3Fjk%3D67557c870d9debaf%26from%3Dhp%26from%3Djsfe-"
++++    "3pintercept-viewjob%26tk%3D1h4m9jbiui7lq801%26viewtype%3Dembedded%26advn%"
++++    "3D8187210054516026%26adid%3D378267801%26ad%3D-6NYlbfkN0CfpH2aSe_"
++++    "yWN7pjV6WFrWU4hEZi9Btn9eCdDUBIhjK5M5mY81rEexvugfeSup1QuHOvw9d5hvgsJ79xiL2b"
++++    "Cis9Y8r23bY8qvwxN3cXtMQH5eaPpn4zk1QcFRVOjQFg-"
++++    "0YX6StKUcjnJroSlWw3vVqor9zKJ4mUJ-Ksql7DBTYyyZGXojbnMo-"
++++    "neBlW1zDoHnAAl1ZZZa38U8p1jl35T8o9uwhvY3mVw2XDdmKpKawVuyFfiNGl3_"
++++    "jyLBWarAGLeTBHVsVlBONBK8GK4zH1pVL31V4M43uQUjWUhjRqH4lnq92jt7uCHE97bhKm2hMo"
++++    "6dpJ6I-"
++++    "1REKDf9gE0gloVW3r2lBI2TpIWbePg2zuBg4CnvYaRAm7elrbL8hYuiPYtB3hjTkldS_IYH3-"
++++    "NgunawHQ-"
++++    "LwIxAO35DyDhaY1DrGuFWaTQj6f1JlddpnImKhUaKP3jgV0q9uKoQxvyyFhLOlLGDxfMsVecGZ"
++++    "B4lwuUK0TE74Qix1iR26X1QtEguPk8yp8DQZ-AfOqT_"
++++    "S7A0PtcI2eI0sLM1y3BHB3p0KdpYJUsDv02t7UYO_gNEmMOmcsr5gLsmE-cu52BF_"
++++    "n2lEDE3kKpIKqMu91dFTmI25H393tb-"
++++    "PfCUfVAVaUveXuO2hjWSctjtFCo9RPl6ix3ilDs1QgKt08BtT4IUb5I24JlxIJXNvkHhkH75vw"
++++    "PH9SHKr5XfuN32rOCTUr9JWLmVEcQ4x5A0pHUXQRyz8OxdfsifIibHB8SpDYTtyY50lSL4sAe3"
++++    "M4PDq0d54xfqWuSQqhGqo0lE944k8JjiQue8M1cIcqpssOOqE8SIi-"
++++    "hDdv1KG0G1kQuLBIYMzzrGCJ6WDZm_KbLiyK0wTrPf2cWfHIyU1JI1pdWKbK6fop_"
++++    "kuNd3OBEAl00YETNwOrg4HrZdK8NXEkG_QWXA-A0nYxFWz58uoHND5rkyVDO0o%26xkcb%"
++++    "3DSoBZ-_M3NWbCoZUCiZ0LbzkdCdPP%26topwindowlocation%3D%252F%253Fadvn%"
++++    "253D2169897021852324%2526vjk%253D0ffb6f7ed64d3bae%26vjtk%"
++++    "3D1h4m9npiq21a4002&from=jsfe-3pintercept-viewjob&branding=third-party-"
++++    "applies",
++++    //
++++    "https://secure.indeed.com/"
++++    "auth?continue=https%3A%2F%2Fm5.apply.indeed.com%2Fbeta%2Findeedapply%"
++++    "2Fresumeapply%3FdraftId%3Dde4f06da-7b31-465c-96d2-80f791a85bf7-Y21o%"
++++    "26draftDc%3Dcmh%26postUrl%3Dhttp%253A%252F%252Fmuffit%252Fprocess-"
++++    "indeedapply%26jk%3D7590bdb1fe928d49%26mob%3D0%26referer%3Dhttps%253A%252F%"
++++    "252Fwww.indeed.com%252F%253Fvjk%253D4ce8c8f85737012d%2526advn%"
++++    "253D2919294681304046%26formParent%3D%26hl%3Den_US%26jobTitle%3DSenior%"
++++    "2BSoftware%2BDeveloper%2B%2528onsite%2529%26questions%3Diq%253A%252F%"
++++    "252F0efc2325f6b4a2c5bc27%253Fv%253D1%26twoPaneVjAllocId%3D%"
++++    "26onappliedstatus%3D_updateIndeedApplyStatus%26preload%3D0%26autoString%"
++++    "3Dnone%26iip%3D1%26recentsearchquery%3D%257B%2522what%2522%253A%"
++++    "2522software%2Bengineer%2522%252C%2522where%2522%253A%2522austin%252C%"
++++    "2Btx%2522%257D%26isCreateIAJobApiSuccess%3Dfalse%26onclose%"
++++    "3DindeedApplyHandleModalClose%26onContinueClick%"
++++    "3DindeedApplyHandleModalClose%26jobUrl%3Dhttps%253A%252F%252Fwww.indeed."
++++    "com%252Fviewjob%253Fjk%253D7590bdb1fe928d49%26onready%3D_onButtonReady%"
++++    "26onapplied%3DindeedApplyHandleApply%26href%3Dhttps%253A%252F%252Fwww."
++++    "indeed.com%252Fviewjob%253Fjk%253D7590bdb1fe928d49%2526from%253Dhp%2526tk%"
++++    "253D1h4m9jbiui7lq801%2526viewtype%253Dembedded%2526advn%"
++++    "253D5522285726153717%2526adid%253D414206073%2526xkcb%253DSoDt-_"
++++    "M3NWbCoZUCiZ0KbzkdCdPP%2526topwindowlocation%253D%25252F%25253Fvjk%"
++++    "25253D4ce8c8f85737012d%252526advn%25253D2919294681304046%26coverletter%"
++++    "3DOPTIONAL%26resume%3Drequired%26twoPaneAllocId%3D%26jobMeta%3D%257B%"
++++    "2526quot%253Bvtk%2526quot%253B%253A%2526quot%253B1h4m9oh7mirks800%"
++++    "2526quot%253B%252C%2526quot%253Btk%2526quot%253B%253A%2526quot%"
++++    "253B1h4m9jbiui7lq801%2526quot%253B%257D%26src%3Didd%26ms%3D1688670587917%"
++++    "26jobCompany%3DCitizens%2BInc%26onclick%3DindeedApplyHandleButtonClick%"
++++    "26pingbackUrl%3Dhttps%253A%252F%252Fgdc.indeed.com%252Fconv%252ForgIndApp%"
++++    "253Fco%253DUS%2526vjtk%253D1h4m9oh7mirks800%2526jk%253D7590bdb1fe928d49%"
++++    "2526mvj%253D0%2526tk%253D1h4m9jbiui7lq801%2526trk.origin%253Djobsearch%"
++++    "2526sj%253D1%2526vjfrom%253Dhp%2526advn%253D5522285726153717%2526adid%"
++++    "253D414206073%2526ad%253D-"
++++    "6NYlbfkN0CHSAkotDdvvZVbhOqFdbxXOHJMhXe1DXuaBPnaU5fYte-"
++++    "aud5Z0lqoqFyp33jrJfy1DYFhCWCqBjAqfX3PBXom-d5E4gy3cqbwZuMtWn4flXO-"
++++    "Fd9DkMZrQjqK002kTnGqvqfkH0ftIspK3hwJPRmAEy7EY87A9OOFRyFmxA9AdiimsdRWyksA-"
++++    "nCQ0w1VI28XDuVMu7qO_D46dH-"
++++    "dtW5jWIG4jTe8HCv21447lFobYgFb9oJdF8NrjyCNP4fdGeojlELmcjS5cvC5dKfXi8IZm4sWW"
++++    "-7b5SBQKvBMmSVDjiTsgYZS6lb8B-"
++++    "a3YF1Lny7hpNfClmOcLe49wiZAG9LWJ7uRUEfzOPrUCwxdHNQK-vEo3ZhDK4AeER-"
++++    "LfOUabNSjrKz7_91l8sQjBNOR-FJ25ioX0sqoNByLfJC7cWzjDxqvW-l82GsWQR2O_"
++++    "6Khe2oq91fjVXMAFQdSQWdr_DWCf_"
++++    "e2FYtN69Qql9maXH550XNcfynxCicTL71xLstYfWqbSMpADJhrW_"
++++    "0pf4x58zLVfYLBJ7MPQaW15uKzbFn68lAlyF5GXDqWxowOm58EyeS7OmQkBdGyxYanZ6452m6O"
++++    "%2526xkcb%253DSoDt-_M3NWbCoZUCiZ0KbzkdCdPP%2526astse%253Db4f6f6ed591bacca%"
++++    "2526assa%253D6102%26co%3DUS%26advNum%3D5522285726153717%26noButtonUI%"
++++    "3Dtrue%26iaUid%3D1h4m9oi2qj4h4800%26spn%3D1%26jobId%"
++++    "3D0efc2325f6b4a2c5bc27%26isITA%3D0%26apiToken%"
++++    "3Daa102235a5ccb18bd3668c0e14aa3ea7e2503cfac2a7a9bf3d6549899e125af4%"
++++    "26jobLocation%3DAustin%252C%2BTX%2B78758%26twoPaneGroup%3D-1%"
++++    "26indeedcsrftoken%3D7bG1QaY6YSlr3rfgMbu9YRVPyk1v2TF0%26phone%3DOPTIONAL%"
++++    "26jobApplies%3D-1%26twoPaneVjGroup%3D-1%26returnToJobSearchUrl%3Dhttp%"
++++    "253A%252F%252Fwww.indeed.com%252F%253Fvjk%253D4ce8c8f85737012d%2526advn%"
++++    "253D2919294681304046%26indeedApplyableJobApiURI%3D&cfb=2&obo=http%3A%2F%"
++++    "2Fwww.indeed.com%2F&hl=en_US&from=indapply-login-SmartApply&branding="
++++    "indeed-apply"};
++++
++++std::vector<std::string> url_examples;
++++
++++double url_examples_bytes = []() -> double {
++++  size_t bytes{0};
++++  for (std::string& url_string : url_examples) {
++++    bytes += url_string.size();
++++  }
++++  return double(bytes);
++++}();
++++
++++#ifdef ADA_URL_FILE
++++const char* default_file = ADA_URL_FILE;
++++#else
++++const char* default_file = nullptr;
++++#endif
++++
++++size_t init_data(const char* input = default_file) {
++++  // compute the number of bytes.
++++  auto compute = []() -> double {
++++    size_t bytes{0};
++++    for (std::string& url_string : url_examples) {
++++      bytes += url_string.size();
++++    }
++++    return double(bytes);
++++  };
++++  if (input == nullptr) {
++++    for (const std::string& s : url_examples_default) {
++++      url_examples.emplace_back(s);
++++    }
++++    url_examples_bytes = compute();
++++    return url_examples.size();
++++  }
++++
++++  if (!file_exists(input)) {
++++    std::cout << "File not found !" << input << std::endl;
++++    for (const std::string& s : url_examples_default) {
++++      url_examples.emplace_back(s);
++++    }
++++  } else {
++++    std::cout << "Loading " << input << std::endl;
++++    url_examples = split_string(read_file(input));
++++  }
++++  url_examples_bytes = compute();
++++  return url_examples.size();
++++}
++++
++++size_t count_ada_invalid() {
++++  size_t how_many = 0;
++++  for (std::string& url_string : url_examples) {
++++    auto url = ada::parse(url_string);
++++    if (!url) {
++++      how_many++;
++++    }
++++  }
++++  return how_many;
++++}
++++
++++template <class result_type = ada::url_aggregator>
++++static void BasicBench_AdaURL(benchmark::State& state) {
++++  // volatile to prevent optimizations.
++++  volatile size_t param_count = 0;
++++
++++  for (auto _ : state) {
++++    for (std::string& url_string : url_examples) {
++++      ada::result<result_type> url = ada::parse<result_type>(url_string);
++++      if (url) {
++++        auto params = ada::url_search_params{url->get_search()};
++++        param_count += params.size();
++++      }
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (std::string& url_string : url_examples) {
++++        ada::result<result_type> url = ada::parse<result_type>(url_string);
++++        if (url) {
++++          auto params = ada::url_search_params{url->get_search()};
++++          param_count += params.size();
++++        }
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    state.counters["cycles/url"] =
++++        aggregate.best.cycles() / std::size(url_examples);
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(url_examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.best.instructions() / aggregate.best.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / url_examples_bytes;
++++    state.counters["instructions/ns"] =
++++        aggregate.best.instructions() / aggregate.best.elapsed_ns();
++++    state.counters["GHz"] =
++++        aggregate.best.cycles() / aggregate.best.elapsed_ns();
++++    state.counters["ns/url"] =
++++        aggregate.best.elapsed_ns() / std::size(url_examples);
++++    state.counters["cycle/byte"] = aggregate.best.cycles() / url_examples_bytes;
++++  }
++++  (void)param_count;
++++  state.counters["time/byte"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                              benchmark::Counter::kInvert);
++++  state.counters["time/url"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate |
++++                             benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate);
++++}
++++
++++auto url_search_params_AdaURL = BasicBench_AdaURL<ada::url_aggregator>;
++++BENCHMARK(url_search_params_AdaURL);
++++
++++int main(int argc, char** argv) {
++++  if (argc > 1 && file_exists(argv[1])) {
++++    init_data(argv[1]);
++++  } else {
++++    init_data();
++++  }
++++#if (__APPLE__ && __aarch64__) || defined(__linux__)
++++  if (!collector.has_events()) {
++++    benchmark::AddCustomContext("performance counters",
++++                                "No privileged access (sudo may help).");
++++  }
++++#else
++++  if (!collector.has_events()) {
++++    benchmark::AddCustomContext("performance counters", "Unsupported system.");
++++  }
++++#endif
++++  benchmark::AddCustomContext("input bytes",
++++                              std::to_string(size_t(url_examples_bytes)));
++++  benchmark::AddCustomContext("number of URLs",
++++                              std::to_string(std::size(url_examples)));
++++  benchmark::AddCustomContext(
++++      "bytes/URL",
++++      std::to_string(url_examples_bytes / std::size(url_examples)));
++++  if (collector.has_events()) {
++++    benchmark::AddCustomContext("performance counters", "Enabled");
++++  }
++++  benchmark::Initialize(&argc, argv);
++++  benchmark::RunSpecifiedBenchmarks();
++++  benchmark::Shutdown();
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3351e27250252c9116c73615ea73818af64c36de
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,65 @@@@@
++++#include <iostream>
++++#include <memory>
++++#include <cstdlib>
++++#include <sstream>
++++#include <fstream>
++++#include <filesystem>
++++
++++#if ADA_VARIOUS_COMPETITION_ENABLED
++++#include <uriparser/Uri.h>
++++#include <EdUrlParser.h>
++++#include <http_parser.h>
++++#endif
++++#if ADA_url_whatwg_ENABLED
++++#include <upa/url.h>
++++#endif
++++
++++#include "ada.h"
++++#include "performancecounters/event_counter.h"
++++event_collector collector;
++++size_t N = 1000;
++++
++++#include <benchmark/benchmark.h>
++++
++++bool file_exists(const char* filename) {
++++  namespace fs = std::filesystem;
++++  std::filesystem::path f{filename};
++++  if (std::filesystem::exists(filename)) {
++++    return true;
++++  } else {
++++    return false;
++++  }
++++}
++++
++++std::string read_file(std::string filename) {
++++  constexpr size_t read_size = 4096;
++++  auto stream = std::ifstream(filename.c_str());
++++  stream.exceptions(std::ios_base::badbit);
++++  std::string out;
++++  std::string buf(read_size, '\0');
++++  while (stream.read(&buf[0], read_size)) {
++++    out.append(buf, 0, size_t(stream.gcount()));
++++  }
++++  out.append(buf, 0, size_t(stream.gcount()));
++++  return out;
++++}
++++
++++std::vector<std::string> split_string(const std::string& str) {
++++  std::vector<std::string> result;
++++  std::stringstream ss{str};
++++  for (std::string line; std::getline(ss, line, '\n');) {
++++    std::string_view view = line;
++++    // Some parsers like boost/url will refuse to parse a URL with trailing
++++    // whitespace.
++++    while (!view.empty() && std::isspace(view.back())) {
++++      view.remove_suffix(1);
++++    }
++++    while (!view.empty() && std::isspace(view.front())) {
++++      view.remove_prefix(1);
++++    }
++++    if (!view.empty()) {
++++      result.emplace_back(view);
++++    }
++++  }
++++  return result;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..18205b7d6f6b5d587a736816eb4649f0e21623b1
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,878 @@@@@
++++/**
++++ * The main benchmark is to take an input string, and convert it into a
++++ * normalized URL (or 'href').
++++ */
++++
++++size_t count_ada_invalid() {
++++  size_t how_many = 0;
++++  for (std::string& url_string : url_examples) {
++++    auto url = ada::parse(url_string);
++++    if (!url) {
++++      how_many++;
++++    }
++++  }
++++  return how_many;
++++}
++++
++++enum { JUST_PARSE = 1, PARSE_AND_HREF = 0 };
++++
++++template <bool just_parse = PARSE_AND_HREF,
++++          class result_type = ada::url_aggregator>
++++static void BasicBench_AdaURL(benchmark::State& state) {
++++  // volatile to prevent optimizations.
++++  volatile size_t success = 0;
++++  volatile size_t href_size = 0;
++++
++++  for (auto _ : state) {
++++    for (std::string& url_string : url_examples) {
++++      ada::result<result_type> url = ada::parse<result_type>(url_string);
++++      if (url) {
++++        success++;
++++        if constexpr (!just_parse) {
++++          href_size += url->get_href().size();
++++        }
++++      }
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (std::string& url_string : url_examples) {
++++        ada::result<result_type> url = ada::parse<result_type>(url_string);
++++        if (url) {
++++          success++;
++++          if constexpr (!just_parse) {
++++            href_size += url->get_href().size();
++++          }
++++        }
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    state.counters["cycles/url"] =
++++        aggregate.best.cycles() / std::size(url_examples);
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(url_examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.best.instructions() / aggregate.best.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / url_examples_bytes;
++++    state.counters["instructions/ns"] =
++++        aggregate.best.instructions() / aggregate.best.elapsed_ns();
++++    state.counters["GHz"] =
++++        aggregate.best.cycles() / aggregate.best.elapsed_ns();
++++    state.counters["ns/url"] =
++++        aggregate.best.elapsed_ns() / std::size(url_examples);
++++    state.counters["cycle/byte"] = aggregate.best.cycles() / url_examples_bytes;
++++  }
++++  (void)success;
++++  state.counters["time/byte"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                              benchmark::Counter::kInvert);
++++  state.counters["time/url"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate |
++++                             benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate);
++++}
++++
++++auto BasicBench_AdaURL_href = BasicBench_AdaURL<PARSE_AND_HREF, ada::url>;
++++BENCHMARK(BasicBench_AdaURL_href);
++++auto BasicBench_AdaURL_aggregator_href =
++++    BasicBench_AdaURL<PARSE_AND_HREF, ada::url_aggregator>;
++++BENCHMARK(BasicBench_AdaURL_aggregator_href);
++++
++++static void BasicBench_AdaURL_CanParse(benchmark::State& state) {
++++  // volatile to prevent optimizations.
++++  volatile size_t success = 0;
++++
++++  for (auto _ : state) {
++++    for (std::string& url_string : url_examples) {
++++      bool can_parse = ada::can_parse(url_string);
++++      if (can_parse) {
++++        success++;
++++      }
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (std::string& url_string : url_examples) {
++++        bool can_parse = ada::can_parse(url_string);
++++        if (can_parse) {
++++          success++;
++++        }
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    state.counters["cycles/url"] =
++++        aggregate.best.cycles() / std::size(url_examples);
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(url_examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.best.instructions() / aggregate.best.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / url_examples_bytes;
++++    state.counters["instructions/ns"] =
++++        aggregate.best.instructions() / aggregate.best.elapsed_ns();
++++    state.counters["GHz"] =
++++        aggregate.best.cycles() / aggregate.best.elapsed_ns();
++++    state.counters["ns/url"] =
++++        aggregate.best.elapsed_ns() / std::size(url_examples);
++++    state.counters["cycle/byte"] = aggregate.best.cycles() / url_examples_bytes;
++++  }
++++  (void)success;
++++  state.counters["time/byte"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                              benchmark::Counter::kInvert);
++++  state.counters["time/url"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate |
++++                             benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate);
++++}
++++
++++BENCHMARK(BasicBench_AdaURL_CanParse);
++++
++++#if ADA_url_whatwg_ENABLED
++++size_t count_whatwg_invalid() {
++++  size_t how_many = 0;
++++  for (std::string& url_string : url_examples) {
++++    upa::url url;
++++    if (!upa::success(url.parse(url_string, nullptr))) {
++++      how_many++;
++++    }
++++  }
++++  return how_many;
++++}
++++
++++template <bool just_parse = PARSE_AND_HREF>
++++static void BasicBench_whatwg(benchmark::State& state) {
++++  // volatile to prevent optimizations.
++++  volatile size_t success = 0;
++++  volatile size_t href_size = 0;
++++  for (auto _ : state) {
++++    for (std::string& url_string : url_examples) {
++++      upa::url url;
++++      if (upa::success(url.parse(url_string, nullptr))) {
++++        success++;
++++        if (!just_parse) {
++++          href_size += url.href().size();
++++        }
++++      }
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (std::string& url_string : url_examples) {
++++        upa::url url;
++++        if (upa::success(url.parse(url_string, nullptr))) {
++++          success++;
++++          if (!just_parse) {
++++            href_size += url.href().size();
++++          }
++++        }
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    state.counters["cycles/url"] =
++++        aggregate.best.cycles() / std::size(url_examples);
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(url_examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.best.instructions() / aggregate.best.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / url_examples_bytes;
++++    state.counters["instructions/ns"] =
++++        aggregate.best.instructions() / aggregate.best.elapsed_ns();
++++    state.counters["GHz"] =
++++        aggregate.best.cycles() / aggregate.best.elapsed_ns();
++++    state.counters["ns/url"] =
++++        aggregate.best.elapsed_ns() / std::size(url_examples);
++++    state.counters["cycle/byte"] = aggregate.best.cycles() / url_examples_bytes;
++++  }
++++  (void)success;
++++  (void)href_size;
++++  state.counters["time/byte"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                              benchmark::Counter::kInvert);
++++  state.counters["time/url"] = benchmark::Counter(
++++      std::size(url_examples), benchmark::Counter::kIsIterationInvariantRate |
++++                                   benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] = benchmark::Counter(
++++      std::size(url_examples), benchmark::Counter::kIsIterationInvariantRate);
++++}
++++BENCHMARK(BasicBench_whatwg);
++++// There is no need for BasicBench_whatwg_just_parse because whatwg appears to
++++// provide the href at a minimal cost, probably because it is already
++++// materialized. auto BasicBench_whatwg_just_parse =
++++// BasicBench_whatwg<JUST_PARSE>; BENCHMARK(BasicBench_whatwg_just_parse);
++++
++++#endif  // ADA_url_whatwg_ENABLED
++++
++++#if ADA_CURL_ENABLED
++++#include <curl/curl.h>
++++
++++size_t count_curl_invalid() {
++++  size_t how_many = 0;
++++  CURLU* url = curl_url();
++++  for (std::string& url_string : url_examples) {
++++    CURLUcode rc = curl_url_set(url, CURLUPART_URL, url_string.c_str(), 0);
++++    // Returns a CURLUcode error value, which is (0) if everything went fine.
++++    if (rc != 0) {
++++      how_many++;
++++    }
++++  }
++++  curl_url_cleanup(url);
++++  return how_many;
++++}
++++
++++// curl follows RFC3986+
++++template <bool just_parse = false>
++++static void BasicBench_CURL(benchmark::State& state) {
++++  // volatile to prevent optimizations.
++++  volatile size_t success = 0;
++++  volatile size_t href_size = 0;
++++
++++  CURLU* url = curl_url();
++++  for (auto _ : state) {
++++    for (std::string& url_string : url_examples) {
++++      CURLUcode rc = curl_url_set(url, CURLUPART_URL, url_string.c_str(), 0);
++++      // Returns a CURLUcode error value, which is (0) if everything went fine.
++++      if (rc == 0) {
++++        success++;
++++        if (!just_parse) {
++++          char* buffer;
++++          // When asked to return the full URL, curl_url_get will return a
++++          // normalized and possibly cleaned up version of what was previously
++++          // parsed.
++++          rc = curl_url_get(url, CURLUPART_URL, &buffer, 0);
++++          if (rc == 0) {
++++            href_size += strlen(buffer);
++++            curl_free(buffer);
++++          }
++++        }
++++      }
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (std::string& url_string : url_examples) {
++++        CURLUcode rc = curl_url_set(url, CURLUPART_URL, url_string.c_str(), 0);
++++        // Returns a CURLUcode error value, which is (0) if everything went
++++        // fine.
++++        if (!just_parse) {
++++          char* buffer;
++++          rc = curl_url_get(url, CURLUPART_URL, &buffer, 0);
++++          if (rc == 0) {
++++            href_size += strlen(buffer);
++++            curl_free(buffer);
++++          }
++++        }
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    state.counters["cycles/url"] =
++++        aggregate.best.cycles() / std::size(url_examples);
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(url_examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.best.instructions() / aggregate.best.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / url_examples_bytes;
++++    state.counters["instructions/ns"] =
++++        aggregate.best.instructions() / aggregate.best.elapsed_ns();
++++    state.counters["GHz"] =
++++        aggregate.best.cycles() / aggregate.best.elapsed_ns();
++++    state.counters["ns/url"] =
++++        aggregate.best.elapsed_ns() / std::size(url_examples);
++++    state.counters["cycle/byte"] = aggregate.best.cycles() / url_examples_bytes;
++++  }
++++  (void)success;
++++  curl_url_cleanup(url);
++++  state.counters["time/byte"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                              benchmark::Counter::kInvert);
++++  state.counters["time/url"] = benchmark::Counter(
++++      std::size(url_examples), benchmark::Counter::kIsIterationInvariantRate |
++++                                   benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] = benchmark::Counter(
++++      std::size(url_examples), benchmark::Counter::kIsIterationInvariantRate);
++++}
++++BENCHMARK(BasicBench_CURL);
++++// 'just parsing' is faster with curl, but maybe not so important for us.
++++// auto BasicBench_CURL_just_parse = BasicBench_CURL<JUST_PARSE>;
++++// BENCHMARK(BasicBench_CURL_just_parse);
++++#endif
++++
++++#if ADA_BOOST_ENABLED
++++#include <boost/url/src.hpp>
++++using namespace boost::urls;
++++
++++size_t count_boosturl_invalid() {
++++  size_t how_many = 0;
++++  for (std::string& url_string : url_examples) {
++++    try {
++++      url u(url_string);
++++      u.normalize();
++++    } catch (...) {
++++      how_many++;
++++    }
++++  }
++++  return how_many;
++++}
++++
++++// Boost URL follows RFC3986
++++template <bool just_parse = false>
++++static void BasicBench_BoostURL(benchmark::State& state) {
++++  // volatile to prevent optimizations.
++++  volatile size_t success = 0;
++++  volatile size_t href_size = 0;
++++
++++  for (auto _ : state) {
++++    for (std::string& url_string : url_examples) {
++++      try {
++++        url u(url_string);
++++        u.normalize();
++++        success++;
++++        if (!just_parse) {
++++          href_size += u.buffer().size();
++++        }
++++      } catch (...) {
++++      }
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (std::string& url_string : url_examples) {
++++        try {
++++          url u(url_string);
++++          u.normalize();
++++          success++;
++++          if (!just_parse) {
++++            href_size += u.buffer().size();
++++          }
++++        } catch (...) {
++++        }
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    state.counters["cycles/url"] =
++++        aggregate.best.cycles() / std::size(url_examples);
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(url_examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.best.instructions() / aggregate.best.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / url_examples_bytes;
++++    state.counters["instructions/ns"] =
++++        aggregate.best.instructions() / aggregate.best.elapsed_ns();
++++    state.counters["GHz"] =
++++        aggregate.best.cycles() / aggregate.best.elapsed_ns();
++++    state.counters["ns/url"] =
++++        aggregate.best.elapsed_ns() / std::size(url_examples);
++++    state.counters["cycle/byte"] = aggregate.best.cycles() / url_examples_bytes;
++++  }
++++  (void)success;
++++  (void)href_size;
++++
++++  state.counters["time/byte"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                              benchmark::Counter::kInvert);
++++  state.counters["time/url"] = benchmark::Counter(
++++      std::size(url_examples), benchmark::Counter::kIsIterationInvariantRate |
++++                                   benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] = benchmark::Counter(
++++      std::size(url_examples), benchmark::Counter::kIsIterationInvariantRate);
++++}
++++BENCHMARK(BasicBench_BoostURL);
++++// There is no need for 'just_parse' because BoostURL materializes the href.
++++// auto BasicBench_BoostURL_just_parse = BasicBench_BoostURL<JUST_PARSE>;
++++// BENCHMARK(BasicBench_BoostURL_just_parse);
++++#endif  // ADA_BOOST_ENABLED
++++
++++#if ADA_ZURI_ENABLED
++++#include <zuri.h>
++++
++++size_t count_zuri_invalid() {
++++  size_t how_many = 0;
++++  for (std::string& url_string : url_examples) {
++++    struct zuri2k uri;
++++    zuri_error err = zuri_parse2k(&uri, url_string.c_str());
++++    if (err) how_many++;
++++  }
++++  return how_many;
++++}
++++
++++// ZURI follows RFC3986
++++template <bool just_parse = false>
++++static void BasicBench_ZURI(benchmark::State& state) {
++++  // volatile to prevent optimizations.
++++  volatile size_t success = 0;
++++  volatile size_t href_size = 0;
++++
++++  for (auto _ : state) {
++++    for (std::string& url_string : url_examples) {
++++      struct zuri2k uri;
++++      benchmark::DoNotOptimize(uri);
++++      zuri_error err = zuri_parse2k(&uri, url_string.c_str());
++++      if (!err) {
++++        success++;
++++        if constexpr (!just_parse) {
++++          char buf[2048];
++++          benchmark::DoNotOptimize(href_size +=
++++                                   zuri_read2k(&uri, &buf[0], sizeof(buf)));
++++        }
++++      }
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (std::string& url_string : url_examples) {
++++        struct zuri2k uri;
++++        benchmark::DoNotOptimize(uri);
++++        zuri_error err = zuri_parse2k(&uri, url_string.c_str());
++++        if (!err) {
++++          success++;
++++          if constexpr (!just_parse) {
++++            char buf[2048];
++++            benchmark::DoNotOptimize(href_size +=
++++                                     zuri_read2k(&uri, &buf[0], sizeof(buf)));
++++          }
++++        }
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    state.counters["cycles/url"] =
++++        aggregate.best.cycles() / std::size(url_examples);
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(url_examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.best.instructions() / aggregate.best.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / url_examples_bytes;
++++    state.counters["instructions/ns"] =
++++        aggregate.best.instructions() / aggregate.best.elapsed_ns();
++++    state.counters["GHz"] =
++++        aggregate.best.cycles() / aggregate.best.elapsed_ns();
++++    state.counters["ns/url"] =
++++        aggregate.best.elapsed_ns() / std::size(url_examples);
++++    state.counters["cycle/byte"] = aggregate.best.cycles() / url_examples_bytes;
++++  }
++++  (void)success;
++++  (void)href_size;
++++
++++  state.counters["time/byte"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                              benchmark::Counter::kInvert);
++++  state.counters["time/url"] = benchmark::Counter(
++++      std::size(url_examples), benchmark::Counter::kIsIterationInvariantRate |
++++                                   benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] = benchmark::Counter(
++++      std::size(url_examples), benchmark::Counter::kIsIterationInvariantRate);
++++}
++++
++++BENCHMARK(BasicBench_ZURI);
++++#endif  // ADA_ZURI_ENABLED
++++
++++#if ADA_VARIOUS_COMPETITION_ENABLED
++++static void BasicBench_uriparser_just_parse(benchmark::State& state) {
++++  // volatile to prevent optimizations.
++++  volatile bool is_valid = true;
++++  const char* errorPos;
++++  UriUriA uri;
++++  for (auto _ : state) {
++++    for (std::string& url_string : url_examples) {
++++      is_valid &= (uriParseSingleUriA(&uri, url_string.c_str(), &errorPos) ==
++++                   URI_SUCCESS);
++++    }
++++  }
++++  if (!is_valid) {
++++    std::cout << "uri-parser: invalid? " << std::endl;
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (std::string& url_string : url_examples) {
++++        is_valid &= (uriParseSingleUriA(&uri, url_string.c_str(), &errorPos) ==
++++                     URI_SUCCESS);
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    state.counters["cycles/url"] =
++++        aggregate.best.cycles() / std::size(url_examples);
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(url_examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.best.instructions() / aggregate.best.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / url_examples_bytes;
++++    state.counters["instructions/ns"] =
++++        aggregate.best.instructions() / aggregate.best.elapsed_ns();
++++    state.counters["GHz"] =
++++        aggregate.best.cycles() / aggregate.best.elapsed_ns();
++++    state.counters["ns/url"] =
++++        aggregate.best.elapsed_ns() / std::size(url_examples);
++++    state.counters["cycle/byte"] = aggregate.best.cycles() / url_examples_bytes;
++++  }
++++  uriFreeUriMembersA(&uri);
++++
++++  state.counters["time/byte"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                              benchmark::Counter::kInvert);
++++  state.counters["time/url"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate |
++++                             benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate);
++++}
++++BENCHMARK(BasicBench_uriparser_just_parse);
++++#endif  // ADA_VARIOUS_COMPETITION_ENABLED
++++
++++#if ADA_VARIOUS_COMPETITION_ENABLED
++++static void BasicBench_urlparser_just_parse(benchmark::State& state) {
++++  // volatile to prevent optimizations.
++++  for (auto _ : state) {
++++    for (std::string& url_string : url_examples) {
++++      std::unique_ptr<EdUrlParser> url(EdUrlParser::parseUrl(url_string));
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (std::string& url_string : url_examples) {
++++        std::unique_ptr<EdUrlParser> url(EdUrlParser::parseUrl(url_string));
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    state.counters["cycles/url"] =
++++        aggregate.best.cycles() / std::size(url_examples);
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(url_examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.best.instructions() / aggregate.best.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / url_examples_bytes;
++++    state.counters["instructions/ns"] =
++++        aggregate.best.instructions() / aggregate.best.elapsed_ns();
++++    state.counters["GHz"] =
++++        aggregate.best.cycles() / aggregate.best.elapsed_ns();
++++    state.counters["ns/url"] =
++++        aggregate.best.elapsed_ns() / std::size(url_examples);
++++    state.counters["cycle/byte"] = aggregate.best.cycles() / url_examples_bytes;
++++  }
++++
++++  state.counters["time/byte"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                              benchmark::Counter::kInvert);
++++  state.counters["time/url"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate |
++++                             benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate);
++++}
++++BENCHMARK(BasicBench_urlparser_just_parse);
++++#endif  // ADA_VARIOUS_COMPETITION_ENABLED
++++
++++#if ADA_VARIOUS_COMPETITION_ENABLED
++++static void BasicBench_http_parser_just_parse(benchmark::State& state) {
++++  volatile bool is_valid{true};
++++  struct http_parser_url u;
++++  http_parser_url_init(&u);
++++  for (auto _ : state) {
++++    for (std::string& url_string : url_examples) {
++++      is_valid &=
++++          !http_parser_parse_url(url_string.data(), url_string.size(), 0, &u);
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (std::string& url_string : url_examples) {
++++        is_valid &=
++++            !http_parser_parse_url(url_string.data(), url_string.size(), 0, &u);
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    state.counters["cycles/url"] =
++++        aggregate.best.cycles() / std::size(url_examples);
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(url_examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.best.instructions() / aggregate.best.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / url_examples_bytes;
++++    state.counters["instructions/ns"] =
++++        aggregate.best.instructions() / aggregate.best.elapsed_ns();
++++    state.counters["GHz"] =
++++        aggregate.best.cycles() / aggregate.best.elapsed_ns();
++++    state.counters["ns/url"] =
++++        aggregate.best.elapsed_ns() / std::size(url_examples);
++++    state.counters["cycle/byte"] = aggregate.best.cycles() / url_examples_bytes;
++++  }
++++
++++  if (!is_valid) {
++++    std::cout << "http_parser: invalid? " << std::endl;
++++  }
++++  state.counters["time/byte"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                              benchmark::Counter::kInvert);
++++  state.counters["time/url"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate |
++++                             benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate);
++++}
++++BENCHMARK(BasicBench_http_parser_just_parse);
++++#endif  // ADA_VARIOUS_COMPETITION_ENABLED
++++
++++#if defined(ADA_RUST_VERSION)
++++#include "competitors/servo-url/servo_url.h"
++++size_t count_rust_invalid() {
++++  size_t how_many = 0;
++++  for (std::string& url_string : url_examples) {
++++    servo_url::Url* url =
++++        servo_url::parse_url(url_string.c_str(), url_string.length());
++++    servo_url::free_url(url);
++++    if (!url) {
++++      how_many++;
++++    }
++++  }
++++  return how_many;
++++}
++++
++++// Emilio from Mozilla recommended that using an opaque-pointer will improve the
++++// performance of this benchmark. It has indeed improved but with the cost of
++++// validating the output. Reference:
++++// https://twitter.com/ecbos_/status/1627494441656238082?s=61&t=vCdcfSGWHH056CBdklWfCg
++++static void BasicBench_ServoUrl(benchmark::State& state) {
++++  // Other benchmarks copy the 'standard url' to a structure.
++++  // We try to mimic the effect.
++++  volatile size_t success = 0;
++++
++++  for (auto _ : state) {
++++    for (std::string& url_string : url_examples) {
++++      // benchmark::DoNotOptimize is unnecessary and potentially misleading.
++++      const char* url_href =
++++          servo_url::parse_url_to_href(url_string.c_str(), url_string.length());
++++      if (url_href) {
++++        // if you'd like you could print it: printf("%s\n", url_href);
++++        success++;
++++        servo_url::free_string(url_href);
++++      }
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (std::string& url_string : url_examples) {
++++        const char* url_href = servo_url::parse_url_to_href(
++++            url_string.c_str(), url_string.length());
++++        if (url_href) {
++++          success++;
++++          servo_url::free_string(url_href);
++++        }
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    (void)success;
++++    state.counters["cycles/url"] =
++++        aggregate.best.cycles() / std::size(url_examples);
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(url_examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.best.instructions() / aggregate.best.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / url_examples_bytes;
++++    state.counters["instructions/ns"] =
++++        aggregate.best.instructions() / aggregate.best.elapsed_ns();
++++    state.counters["GHz"] =
++++        aggregate.best.cycles() / aggregate.best.elapsed_ns();
++++    state.counters["ns/url"] =
++++        aggregate.best.elapsed_ns() / std::size(url_examples);
++++    state.counters["cycle/byte"] = aggregate.best.cycles() / url_examples_bytes;
++++  }
++++
++++  state.counters["time/byte"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                              benchmark::Counter::kInvert);
++++  state.counters["time/url"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate |
++++                             benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate);
++++}
++++BENCHMARK(BasicBench_ServoUrl);
++++#endif  // ADA_RUST
++++
++++int main(int argc, char** argv) {
++++  if (argc > 1 && file_exists(argv[1])) {
++++    init_data(argv[1]);
++++  } else {
++++    init_data();
++++  }
++++  benchmark::AddCustomContext("ada spec", "Ada follows whatwg/url");
++++  size_t ada_bad_url = count_ada_invalid();
++++#if ADA_url_whatwg_ENABLED
++++  size_t whatwg_bad_url = count_whatwg_invalid();
++++#endif
++++#if defined(ADA_RUST_VERSION)
++++  benchmark::AddCustomContext("rust version ", ADA_RUST_VERSION);
++++  size_t servo_bad_url = count_rust_invalid();
++++#endif
++++#if ADA_CURL_ENABLED
++++  // the curl dependency will depend on the system.
++++  benchmark::AddCustomContext("curl version ", LIBCURL_VERSION);
++++  benchmark::AddCustomContext("curl spec",
++++                              "Curl follows RFC3986, not whatwg/url");
++++  size_t curl_bad_url = count_curl_invalid();
++++#else
++++  benchmark::AddCustomContext("curl ", "OMITTED");
++++#endif
++++#if ADA_BOOST_ENABLED
++++  benchmark::AddCustomContext("boost-url spec",
++++                              "Boost URL follows RFC3986, not whatwg/url");
++++  size_t boost_bad_url = count_boosturl_invalid();
++++#endif
++++#if ADA_ZURI_ENABLED
++++  benchmark::AddCustomContext("zuri spec",
++++                              "Zuri follows RFC3986, not whatwg/url");
++++  size_t zuri_bad_url = count_zuri_invalid();
++++#else
++++  benchmark::AddCustomContext("zuri ", "OMITTED");
++++#endif
++++#if (__APPLE__ && __aarch64__) || defined(__linux__)
++++  if (!collector.has_events()) {
++++    benchmark::AddCustomContext("performance counters",
++++                                "No privileged access (sudo may help).");
++++  }
++++#else
++++  if (!collector.has_events()) {
++++    benchmark::AddCustomContext("performance counters", "Unsupported system.");
++++  }
++++#endif
++++  benchmark::AddCustomContext("input bytes",
++++                              std::to_string(size_t(url_examples_bytes)));
++++  benchmark::AddCustomContext("number of URLs",
++++                              std::to_string(std::size(url_examples)));
++++  benchmark::AddCustomContext(
++++      "bytes/URL",
++++      std::to_string(url_examples_bytes / std::size(url_examples)));
++++#if ADA_VARIOUS_COMPETITION_ENABLED
++++  benchmark::AddCustomContext("WARNING",
++++                              "BasicBench_urlparser and BasicBench_uriparser "
++++                              "do not use a normalized task.");
++++#endif
++++  if (collector.has_events()) {
++++    benchmark::AddCustomContext("performance counters", "Enabled");
++++  }
++++  std::stringstream badcounts;
++++  badcounts << "---------------------\n";
++++  badcounts << "ada---count of bad URLs       " << std::to_string(ada_bad_url)
++++            << "\n";
++++#if defined(ADA_RUST_VERSION)
++++  badcounts << "servo/url---count of bad URLs " << std::to_string(servo_bad_url)
++++            << "\n";
++++#endif
++++#if ADA_url_whatwg_ENABLED
++++  badcounts << "whatwg---count of bad URLs    "
++++            << std::to_string(whatwg_bad_url) << "\n";
++++#endif
++++#if ADA_CURL_ENABLED
++++  badcounts << "curl---count of bad URLs      " << std::to_string(curl_bad_url)
++++            << "\n";
++++#endif
++++#if ADA_BOOST_ENABLED
++++  badcounts << "boost-url---count of bad URLs " << std::to_string(boost_bad_url)
++++            << "\n";
++++#endif
++++#if ADA_ZURI_ENABLED
++++  badcounts << "zuri---count of bad URLs      " << std::to_string(zuri_bad_url)
++++            << "\n";
++++#endif
++++  badcounts << "-------------------------------\n";
++++  benchmark::AddCustomContext("bad urls", badcounts.str());
++++
++++  if (size_t(url_examples_bytes) > 1000000) {
++++    N = 10;
++++  }
++++
++++  benchmark::Initialize(&argc, argv);
++++  benchmark::RunSpecifiedBenchmarks();
++++  benchmark::Shutdown();
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..141f378770b14615515591eb5b3a134f3874d15a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,83 @@@@@
++++# This file is automatically @generated by Cargo.
++++# It is not intended for manual editing.
++++version = 3
++++
++++[[package]]
++++name = "form_urlencoded"
++++version = "1.2.1"
++++source = "registry+https://github.com/rust-lang/crates.io-index"
++++checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"
++++dependencies = [
++++ "percent-encoding",
++++]
++++
++++[[package]]
++++name = "idna"
++++version = "0.5.0"
++++source = "registry+https://github.com/rust-lang/crates.io-index"
++++checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6"
++++dependencies = [
++++ "unicode-bidi",
++++ "unicode-normalization",
++++]
++++
++++[[package]]
++++name = "libc"
++++version = "0.2.153"
++++source = "registry+https://github.com/rust-lang/crates.io-index"
++++checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
++++
++++[[package]]
++++name = "percent-encoding"
++++version = "2.3.1"
++++source = "registry+https://github.com/rust-lang/crates.io-index"
++++checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
++++
++++[[package]]
++++name = "servo-url"
++++version = "0.1.0"
++++dependencies = [
++++ "libc",
++++ "url",
++++]
++++
++++[[package]]
++++name = "tinyvec"
++++version = "1.6.0"
++++source = "registry+https://github.com/rust-lang/crates.io-index"
++++checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50"
++++dependencies = [
++++ "tinyvec_macros",
++++]
++++
++++[[package]]
++++name = "tinyvec_macros"
++++version = "0.1.1"
++++source = "registry+https://github.com/rust-lang/crates.io-index"
++++checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
++++
++++[[package]]
++++name = "unicode-bidi"
++++version = "0.3.10"
++++source = "registry+https://github.com/rust-lang/crates.io-index"
++++checksum = "d54675592c1dbefd78cbd98db9bacd89886e1ca50692a0692baefffdeb92dd58"
++++
++++[[package]]
++++name = "unicode-normalization"
++++version = "0.1.22"
++++source = "registry+https://github.com/rust-lang/crates.io-index"
++++checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921"
++++dependencies = [
++++ "tinyvec",
++++]
++++
++++[[package]]
++++name = "url"
++++version = "2.5.2"
++++source = "registry+https://github.com/rust-lang/crates.io-index"
++++checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c"
++++dependencies = [
++++ "form_urlencoded",
++++ "idna",
++++ "percent-encoding",
++++]
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..17aacb42cdf3bb8b0fae1e4020cbaaecec5adb5d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,16 @@@@@
++++[package]
++++name = "servo-url"
++++version = "0.1.0"
++++
++++[lib]
++++path = "lib.rs"
++++crate-type = ["cdylib"]
++++
++++[dependencies]
++++url = "2.5.2"
++++libc = "0.2"
++++
++++[profile.release]
++++opt-level = 3
++++debug = false
++++lto = true
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..47a3c7823bf10432cd337d418162f5aaf4e14e4e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,17 @@@@@
++++## Servo URL FFI
++++
++++This folder includes FFI bindings for servo/url.
++++
++++### Links
++++
++++- https://github.com/eqrion/cbindgen/blob/master/docs.md
++++- https://gist.github.com/zbraniecki/b251714d77ffebbc73c03447f2b2c69f
++++- https://michael-f-bryan.github.io/rust-ffi-guide/setting_up.html
++++
++++### Building
++++
++++- Generating cbindgen output
++++  - Install dependencies with `brew install cbindgen`
++++  - Generate with `cbindgen --config cbindgen.toml --crate servo-url --output servo_url.h`
++++- Building
++++  - Run with `cargo build --release`
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..0daad0cf834d5d913461fc010a4f3fe80cf92bc7
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,12 @@@@@
++++autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
++++include_version = true
++++braces = "SameLine"
++++line_length = 100
++++tab_width = 2
++++language = "C++"
++++namespaces = ["servo_url"]
++++include_guard = "servo_url_ffi_h"
++++
++++[parse]
++++parse_deps = true
++++include = ["url"]
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..700ebf37ea21bbdc54b3ac10e5dcf29a7480ce0e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,44 @@@@@
++++use url::Url;
++++use std::slice;
++++use libc::{c_char, size_t};
++++
++++extern crate url;
++++extern crate libc;
++++
++++#[no_mangle]
++++pub unsafe extern "C" fn parse_url(raw_input: *const c_char, raw_input_length: size_t) -> *mut Url {
++++  let input = std::str::from_utf8_unchecked(slice::from_raw_parts(raw_input as *const u8, raw_input_length));
++++  // This code would assume that the URL is parsed successfully:
++++  // let result = Url::parse(input).unwrap();
++++  // Box::into_raw(Box::new(result))
++++  // But we might get an invalid input. So we want to return null in case of
++++  // error. We can do it in such a manner:
++++  match Url::parse(input) {
++++    Ok(result) => Box::into_raw(Box::new(result)),
++++    Err(_) => std::ptr::null_mut(),
++++  }
++++}
++++
++++#[no_mangle]
++++pub unsafe extern "C" fn parse_url_to_href(raw_input: *const c_char, raw_input_length: size_t) -> *const c_char {
++++  let input = std::str::from_utf8_unchecked(slice::from_raw_parts(raw_input as *const u8, raw_input_length));
++++  match Url::parse(input) {
++++    Ok(result) => std::ffi::CString::new(result.as_str()).unwrap().into_raw(),
++++    Err(_) => std::ptr::null_mut(),
++++  }
++++}
++++
++++#[no_mangle]
++++pub unsafe extern "C" fn free_url(raw: *mut Url) {
++++  if raw.is_null() {
++++    return;
++++  }
++++
++++  drop(Box::from_raw(raw))
++++}
++++
++++#[no_mangle]
++++pub unsafe extern fn free_string(ptr: *const c_char) {
++++    // Take the ownership back to rust and drop the owner
++++    let _ = std::ffi::CString::from_raw(ptr as *mut _);
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..406d5fc2f0c241d7eaf67381efd0fdd9f1a57f7d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,30 @@@@@
++++#ifndef servo_url_ffi_h
++++#define servo_url_ffi_h
++++
++++/* This file was modified manually. */
++++
++++#include <cstdarg>
++++#include <cstdint>
++++#include <cstdlib>
++++#include <ostream>
++++#include <new>
++++
++++namespace servo_url {
++++
++++/// A parsed URL record.
++++struct Url;
++++
++++extern "C" {
++++
++++Url *parse_url(const char *raw_input, size_t raw_input_length);
++++
++++void free_url(Url *raw);
++++
++++const char *parse_url_to_href(const char *raw_input, size_t raw_input_length);
++++
++++void free_string(const char *);
++++}  // extern "C"
++++
++++}  // namespace servo_url
++++
++++#endif  // servo_url_ffi_h
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e9d1501d9923740666e14f2b1b8a31d3f94b5bff
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,280 @@@@@
++++#include <cstdlib>
++++#include <filesystem>
++++#include <fstream>
++++#include <iostream>
++++#include <memory>
++++#include <sstream>
++++
++++#include "ada.h"
++++#include "performancecounters/event_counter.h"
++++event_collector collector;
++++
++++bool file_exists(const char *filename) {
++++  namespace fs = std::filesystem;
++++  std::filesystem::path f{filename};
++++  if (std::filesystem::exists(filename)) {
++++    return true;
++++  } else {
++++    std::cout << "  file missing: " << filename << std::endl;
++++    return false;
++++  }
++++}
++++
++++std::string read_file(std::string filename) {
++++  constexpr size_t read_size = 4096;
++++  std::ifstream stream(filename.c_str());
++++  stream.exceptions(std::ios_base::badbit);
++++  std::string out;
++++  std::string buf(read_size, '\0');
++++  while (stream.read(&buf[0], read_size)) {
++++    out.append(buf, 0, size_t(stream.gcount()));
++++  }
++++  out.append(buf, 0, size_t(stream.gcount()));
++++  return out;
++++}
++++
++++std::vector<std::string> split_string(const std::string &str) {
++++  auto result = std::vector<std::string>{};
++++  std::stringstream ss{str};
++++  for (std::string line; std::getline(ss, line, '\n');) {
++++    std::string_view view = line;
++++    // Some parsers like boost/url will refuse to parse a URL with trailing
++++    // whitespace.
++++    while (!view.empty() && std::isspace(view.back())) {
++++      view.remove_suffix(1);
++++    }
++++    while (!view.empty() && std::isspace(view.front())) {
++++      view.remove_prefix(1);
++++    }
++++    if (!view.empty()) {
++++      result.emplace_back(view);
++++    }
++++  }
++++  return result;
++++}
++++
++++struct stat_numbers {
++++  std::string url_string{};
++++  std::string href{};
++++  ada::url_components components{};
++++  event_aggregate counters{};
++++  bool is_valid = true;
++++  bool has_port = false;
++++  bool has_credentials = false;
++++  bool has_fragment = false;
++++  bool has_search = false;
++++};
++++
++++size_t count_ascii_bytes(const std::string &s) {
++++  size_t counter = 0;
++++  for (uint8_t c : s) {
++++    if (c < 128) {
++++      counter++;
++++    }
++++  }
++++  return counter;
++++}
++++
++++template <class result_type = ada::url_aggregator>
++++std::vector<stat_numbers> collect_values(
++++    const std::vector<std::string> &url_examples, size_t trials) {
++++  std::vector<stat_numbers> numbers(url_examples.size());
++++  for (size_t i = 0; i < url_examples.size(); i++) {
++++    numbers[i].url_string = url_examples[i];
++++    ada::result<result_type> url = ada::parse<result_type>(url_examples[i]);
++++    if (url) {
++++      numbers[i].is_valid = true;
++++      numbers[i].href = url->get_href();
++++      numbers[i].components = url->get_components();
++++      numbers[i].has_port = url->has_port();
++++      numbers[i].has_credentials = url->has_credentials();
++++      numbers[i].has_fragment = url->has_hash();
++++      numbers[i].has_search = url->has_search();
++++    } else {
++++      numbers[i].is_valid = false;
++++    }
++++  }
++++  volatile size_t href_size = 0;
++++  for (size_t i = 0; i < trials; i++) {
++++    for (stat_numbers &n : numbers) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      ada::result<result_type> url = ada::parse<result_type>(n.url_string);
++++      if (url) {
++++        href_size += url->get_href().size();
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      n.counters << allocate_count;
++++    }
++++  }
++++  return numbers;
++++}
++++
++++#ifdef ADA_URL_FILE
++++const char *default_file = ADA_URL_FILE;
++++#else
++++const char *default_file = nullptr;
++++#endif
++++
++++std::vector<std::string> init_data(const char *input = default_file) {
++++  std::vector<std::string> input_urls;
++++  if (input == nullptr) {
++++    return input_urls;
++++  }
++++
++++  if (!file_exists(input)) {
++++    std::cout << "File not found !" << input << std::endl;
++++    return input_urls;
++++  } else {
++++    std::cout << "# Loading " << input << std::endl;
++++    input_urls = split_string(read_file(input));
++++  }
++++  return input_urls;
++++}
++++
++++void print(const stat_numbers &n) {
++++  std::cout << std::setw(15) << n.url_string.size() << ",";
++++  std::cout << std::setw(15) << n.counters.best.cycles() << "," << std::setw(15)
++++            << size_t(n.counters.cycles()) << ",";
++++  std::cout << std::setw(15) << n.counters.best.instructions() << ","
++++            << std::setw(15) << n.counters.instructions() << ",";
++++  std::cout << std::setw(15) << n.is_valid << ",";
++++
++++  // hash size
++++
++++  std::cout << std::setw(15) << n.href.size() << ",";
++++  size_t end = n.href.size();
++++  if (n.components.hash_start != ada::url_components::omitted) {
++++    std::cout << std::setw(15) << (end - n.components.hash_start) << ",";
++++    end = n.components.hash_start;
++++  } else {
++++    std::cout << std::setw(15) << 0 << ",";
++++  }
++++  // search size
++++  if (n.components.search_start != ada::url_components::omitted) {
++++    std::cout << std::setw(15) << (end - n.components.search_start) << ",";
++++    end = n.components.search_start;
++++  } else {
++++    std::cout << std::setw(15) << 0 << ",";
++++  }
++++  // path size
++++  std::cout << std::setw(15) << (end - n.components.pathname_start) << ",";
++++  end = n.components.pathname_start;
++++  // port size
++++  std::cout << std::setw(15) << (end - n.components.host_end) << ",";
++++  end = n.components.host_end;
++++  // host size
++++  std::cout << std::setw(15) << (end - n.components.host_start) << ",";
++++  end = n.components.host_start;
++++  // user/pass size
++++  std::cout << std::setw(15) << (end - n.components.protocol_end) << ",";
++++  end = n.components.protocol_end;
++++  // protocol type
++++  ada::result<ada::url_aggregator> url =
++++      ada::parse<ada::url_aggregator>(n.url_string);
++++  if (url) {
++++    std::cout << std::setw(15) << int(url->type);
++++  } else {
++++    std::cout << std::setw(15) << -1;
++++  }
++++  std::cout << ",";
++++  std::cout << std::setw(15) << n.has_port << ",";
++++  std::cout << std::setw(15) << n.has_credentials << ",";
++++  std::cout << std::setw(15) << n.has_fragment << ",";
++++  std::cout << std::setw(15) << n.has_search << ",";
++++  std::cout << std::setw(15)
++++            << (n.url_string.size() - count_ascii_bytes(n.url_string)) << ",";
++++  std::cout << std::setw(15) << (n.href.size() - count_ascii_bytes(n.href))
++++            << ",";
++++  std::cout << std::setw(15)
++++            << (count_ascii_bytes(n.url_string) == n.url_string.size()) << ",";
++++  std::cout << std::setw(15) << (n.href == n.url_string);
++++}
++++void print(const std::vector<stat_numbers> numbers) {
++++  std::cout << std::setw(15) << "input_size"
++++            << ",";
++++  std::cout << std::setw(15) << "best_cycles"
++++            << ",";
++++  std::cout << std::setw(15) << "mean_cycles"
++++            << ",";
++++  std::cout << std::setw(15) << "best_instr"
++++            << ",";
++++  std::cout << std::setw(15) << "mean_instr"
++++            << ",";
++++  std::cout << std::setw(15) << "is_valid"
++++            << ",";
++++  std::cout << std::setw(15) << "href_size"
++++            << ",";
++++  std::cout << std::setw(15) << "hash_size"
++++            << ",";
++++  std::cout << std::setw(15) << "search_size"
++++            << ",";
++++  std::cout << std::setw(15) << "path_size"
++++            << ",";
++++  std::cout << std::setw(15) << "port_size"
++++            << ",";
++++  std::cout << std::setw(15) << "host_size"
++++            << ",";
++++  std::cout << std::setw(15) << "credential_size"
++++            << ",";
++++  std::cout << std::setw(15) << "protocol_type"
++++            << ",";
++++  std::cout << std::setw(15) << "has_port"
++++            << ",";
++++  std::cout << std::setw(15) << "has_authority"
++++            << ",";
++++  std::cout << std::setw(15) << "has_fragment"
++++            << ",";
++++  std::cout << std::setw(15) << "has_search"
++++            << ",";
++++  std::cout << std::setw(15) << "non_ascii_bytes"
++++            << ",";
++++  std::cout << std::setw(15) << "href_non_ascii_bytes"
++++            << ",";
++++  std::cout << std::setw(15) << "is_ascii"
++++            << ",";
++++  std::cout << std::setw(15) << "input_is_href";
++++
++++  std::cout << std::endl;
++++
++++  for (const stat_numbers &n : numbers) {
++++    print(n);
++++    std::cout << std::endl;
++++  }
++++}
++++
++++int main(int argc, char **argv) {
++++  std::vector<std::string> input_urls;
++++  if (argc == 1) {
++++    input_urls = init_data();
++++  } else {
++++    input_urls = init_data(argv[1]);
++++  }
++++  if (input_urls.empty()) {
++++    std::cout << "pass the path to a file containing a list of URL (one per "
++++                 "line) as a parameter."
++++              << std::endl;
++++    return EXIT_FAILURE;
++++  }
++++  if (!collector.has_events()) {
++++    std::cout << "We require access to performance counters. (Try sudo.)"
++++              << std::endl;
++++    return EXIT_FAILURE;
++++  }
++++  std::string empty;
++++  // We always start with a null URL for calibration.
++++  input_urls.insert(input_urls.begin(), empty);
++++  bool use_ada_url = (getenv("USE_URL") != nullptr);
++++  size_t trials = 100;
++++  std::cout << "# trials " << trials << std::endl;
++++  if (use_ada_url) {
++++    std::cout << "# ada::url" << std::endl;
++++    print(collect_values<ada::url>(input_urls, trials));
++++  } else {
++++    std::cout << "# ada::url_aggregator" << std::endl;
++++    print(collect_values<ada::url_aggregator>(input_urls, trials));
++++  }
++++
++++  return EXIT_SUCCESS;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..97f969f5431bed37a769e22003320f98dec91ca5
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,266 @@@@@
++++#include <memory>
++++
++++#include "ada.h"
++++#include "ada/character_sets.h"
++++#include "ada/unicode.h"
++++#include "performancecounters/event_counter.h"
++++event_collector collector;
++++size_t N = 1000;
++++
++++#include <benchmark/benchmark.h>
++++
++++std::string examples[] = {"á|", "other:9818274x1!!",
++++                          "ref=web-twc-ao-gbl-adsinfo&utm_source=twc&utm_",
++++                          "connect_timeout=10&application_name=myapp"};
++++
++++void init_data() {}
++++
++++double examples_bytes = []() -> double {
++++  size_t bytes{0};
++++  for (std::string& url_string : examples) {
++++    bytes += url_string.size();
++++  }
++++  return double(bytes);
++++}();
++++
++++static void Fragment(benchmark::State& state) {
++++  for (auto _ : state) {
++++    for (std::string& url_string : examples) {
++++      benchmark::DoNotOptimize(ada::unicode::percent_encode(
++++          url_string, ada::character_sets::FRAGMENT_PERCENT_ENCODE));
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (std::string& url_string : examples) {
++++        benchmark::DoNotOptimize(ada::unicode::percent_encode(
++++            url_string, ada::character_sets::FRAGMENT_PERCENT_ENCODE));
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.total.instructions() / aggregate.total.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / examples_bytes;
++++    state.counters["GHz"] =
++++        aggregate.total.cycles() / aggregate.total.elapsed_ns();
++++  }
++++  state.counters["time/byte"] = benchmark::Counter(
++++      examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                          benchmark::Counter::kInvert);
++++  state.counters["time/url"] =
++++      benchmark::Counter(double(std::size(examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate |
++++                             benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] =
++++      benchmark::Counter(double(std::size(examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate);
++++}
++++BENCHMARK(Fragment);
++++
++++static void Query(benchmark::State& state) {
++++  for (auto _ : state) {
++++    for (std::string& url_string : examples) {
++++      benchmark::DoNotOptimize(ada::unicode::percent_encode(
++++          url_string, ada::character_sets::QUERY_PERCENT_ENCODE));
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (std::string& url_string : examples) {
++++        benchmark::DoNotOptimize(ada::unicode::percent_encode(
++++            url_string, ada::character_sets::QUERY_PERCENT_ENCODE));
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.total.instructions() / aggregate.total.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / examples_bytes;
++++    state.counters["GHz"] =
++++        aggregate.total.cycles() / aggregate.total.elapsed_ns();
++++  }
++++  state.counters["time/byte"] = benchmark::Counter(
++++      examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                          benchmark::Counter::kInvert);
++++  state.counters["time/url"] =
++++      benchmark::Counter(double(std::size(examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate |
++++                             benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] =
++++      benchmark::Counter(double(std::size(examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate);
++++}
++++BENCHMARK(Query);
++++
++++static void SpecialQuery(benchmark::State& state) {
++++  for (auto _ : state) {
++++    for (std::string& url_string : examples) {
++++      benchmark::DoNotOptimize(ada::unicode::percent_encode(
++++          url_string, ada::character_sets::FRAGMENT_PERCENT_ENCODE));
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (std::string& url_string : examples) {
++++        benchmark::DoNotOptimize(ada::unicode::percent_encode(
++++            url_string, ada::character_sets::SPECIAL_QUERY_PERCENT_ENCODE));
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.total.instructions() / aggregate.total.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / examples_bytes;
++++    state.counters["GHz"] =
++++        aggregate.total.cycles() / aggregate.total.elapsed_ns();
++++  }
++++  state.counters["time/byte"] = benchmark::Counter(
++++      examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                          benchmark::Counter::kInvert);
++++  state.counters["time/url"] =
++++      benchmark::Counter(double(std::size(examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate |
++++                             benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] =
++++      benchmark::Counter(double(std::size(examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate);
++++}
++++BENCHMARK(SpecialQuery);
++++
++++static void UserInfo(benchmark::State& state) {
++++  for (auto _ : state) {
++++    for (std::string& url_string : examples) {
++++      benchmark::DoNotOptimize(ada::unicode::percent_encode(
++++          url_string, ada::character_sets::USERINFO_PERCENT_ENCODE));
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (std::string& url_string : examples) {
++++        benchmark::DoNotOptimize(ada::unicode::percent_encode(
++++            url_string, ada::character_sets::USERINFO_PERCENT_ENCODE));
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.total.instructions() / aggregate.total.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / examples_bytes;
++++    state.counters["GHz"] =
++++        aggregate.total.cycles() / aggregate.total.elapsed_ns();
++++  }
++++  state.counters["time/byte"] = benchmark::Counter(
++++      examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                          benchmark::Counter::kInvert);
++++  state.counters["time/url"] =
++++      benchmark::Counter(double(std::size(examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate |
++++                             benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] =
++++      benchmark::Counter(double(std::size(examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate);
++++}
++++BENCHMARK(UserInfo);
++++
++++static void C0Control(benchmark::State& state) {
++++  for (auto _ : state) {
++++    for (std::string& url_string : examples) {
++++      benchmark::DoNotOptimize(ada::unicode::percent_encode(
++++          url_string, ada::character_sets::C0_CONTROL_PERCENT_ENCODE));
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (std::string& url_string : examples) {
++++        benchmark::DoNotOptimize(ada::unicode::percent_encode(
++++            url_string, ada::character_sets::C0_CONTROL_PERCENT_ENCODE));
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.total.instructions() / aggregate.total.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / examples_bytes;
++++    state.counters["GHz"] =
++++        aggregate.total.cycles() / aggregate.total.elapsed_ns();
++++  }
++++  state.counters["time/byte"] = benchmark::Counter(
++++      examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                          benchmark::Counter::kInvert);
++++  state.counters["time/url"] =
++++      benchmark::Counter(double(std::size(examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate |
++++                             benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] =
++++      benchmark::Counter(double(std::size(examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate);
++++}
++++BENCHMARK(C0Control);
++++
++++int main(int argc, char** argv) {
++++#if defined(ADA_RUST_VERSION)
++++  benchmark::AddCustomContext("rust version ", ADA_RUST_VERSION);
++++#endif
++++#if (__APPLE__ && __aarch64__) || defined(__linux__)
++++  if (!collector.has_events()) {
++++    benchmark::AddCustomContext("performance counters",
++++                                "No privileged access (sudo may help).");
++++  }
++++#else
++++  if (!collector.has_events()) {
++++    benchmark::AddCustomContext("performance counters", "Unsupported system.");
++++  }
++++#endif
++++  if (collector.has_events()) {
++++    benchmark::AddCustomContext("performance counters", "Enabled");
++++  }
++++  benchmark::Initialize(&argc, argv);
++++  benchmark::RunSpecifiedBenchmarks();
++++  benchmark::Shutdown();
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..60881727728884867681d4e43afbdec6407b5ab6
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1110 @@@@@
++++/* clang-format off */
++++
++++// Original design from:
++++// =============================================================================
++++// XNU kperf/kpc
++++// Available for 64-bit Intel/Apple Silicon, macOS/iOS, with root privileges
++++//
++++// References:
++++//
++++// XNU source (since xnu 2422.1.72):
++++// https://github.com/apple/darwin-xnu/blob/main/osfmk/kern/kpc.h
++++// https://github.com/apple/darwin-xnu/blob/main/bsd/kern/kern_kpc.c
++++//
++++// Lightweight PET (Profile Every Thread, since xnu 3789.1.32):
++++// https://github.com/apple/darwin-xnu/blob/main/osfmk/kperf/pet.c
++++// https://github.com/apple/darwin-xnu/blob/main/osfmk/kperf/kperf_kpc.c
++++//
++++// System Private frameworks (since macOS 10.11, iOS 8.0):
++++// /System/Library/PrivateFrameworks/kperf.framework
++++// /System/Library/PrivateFrameworks/kperfdata.framework
++++//
++++// Xcode framework (since Xcode 7.0):
++++// /Applications/Xcode.app/Contents/SharedFrameworks/DVTInstrumentsFoundation.framework
++++//
++++// CPU database (plist files)
++++// macOS (since macOS 10.11):
++++//     /usr/share/kpep/<name>.plist
++++// iOS (copied from Xcode, since iOS 10.0, Xcode 8.0):
++++//     /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
++++//     /DeviceSupport/<version>/DeveloperDiskImage.dmg/usr/share/kpep/<name>.plist
++++//
++++//
++++// Created by YaoYuan <ibireme@gmail.com> on 2021.
++++// Released into the public domain (unlicense.org).
++++// =============================================================================
++++
++++#ifndef M1CYCLES_H
++++#define M1CYCLES_H
++++
++++#include <stdbool.h>
++++#include <stdint.h>
++++#include <stdio.h>
++++#include <stdlib.h>
++++#include <string.h>
++++
++++#include <dlfcn.h>           // for dlopen() and dlsym()
++++#include <mach/mach_time.h>  // for mach_absolute_time()
++++#include <sys/kdebug.h>      // for kdebug trace decode
++++#include <sys/sysctl.h>      // for sysctl()
++++#include <unistd.h>          // for usleep()
++++
++++struct performance_counters {
++++  double cycles;
++++  double branches;
++++  double missed_branches;
++++  double instructions;
++++  performance_counters(uint64_t c, uint64_t b, uint64_t m, uint64_t i)
++++      : cycles(c), branches(b), missed_branches(m), instructions(i) {}
++++  performance_counters(double c, double b, double m, double i)
++++      : cycles(c), branches(b), missed_branches(m), instructions(i) {}
++++  performance_counters(double init)
++++      : cycles(init),
++++        branches(init),
++++        missed_branches(init),
++++        instructions(init) {}
++++
++++  inline performance_counters &operator-=(const performance_counters &other) {
++++    cycles -= other.cycles;
++++    branches -= other.branches;
++++    missed_branches -= other.missed_branches;
++++    instructions -= other.instructions;
++++    return *this;
++++  }
++++  inline performance_counters &min(const performance_counters &other) {
++++    cycles = other.cycles < cycles ? other.cycles : cycles;
++++    branches = other.branches < branches ? other.branches : branches;
++++    missed_branches = other.missed_branches < missed_branches
++++                          ? other.missed_branches
++++                          : missed_branches;
++++    instructions =
++++        other.instructions < instructions ? other.instructions : instructions;
++++    return *this;
++++  }
++++  inline performance_counters &operator+=(const performance_counters &other) {
++++    cycles += other.cycles;
++++    branches += other.branches;
++++    missed_branches += other.missed_branches;
++++    instructions += other.instructions;
++++    return *this;
++++  }
++++
++++  inline performance_counters &operator/=(double numerator) {
++++    cycles /= numerator;
++++    branches /= numerator;
++++    missed_branches /= numerator;
++++    instructions /= numerator;
++++    return *this;
++++  }
++++};
++++
++++inline performance_counters operator-(const performance_counters &a,
++++                                      const performance_counters &b) {
++++  return performance_counters(a.cycles - b.cycles, a.branches - b.branches,
++++                              a.missed_branches - b.missed_branches,
++++                              a.instructions - b.instructions);
++++}
++++
++++typedef float f32;
++++typedef double f64;
++++typedef int8_t i8;
++++typedef uint8_t u8;
++++typedef int16_t i16;
++++typedef uint16_t u16;
++++typedef int32_t i32;
++++typedef uint32_t u32;
++++typedef int64_t i64;
++++typedef uint64_t u64;
++++typedef size_t usize;
++++
++++// -----------------------------------------------------------------------------
++++// <kperf.framework> header (reverse engineered)
++++// This framework wraps some sysctl calls to communicate with the kpc in kernel.
++++// Most functions requires root privileges, or process is "blessed".
++++// -----------------------------------------------------------------------------
++++
++++// Cross-platform class constants.
++++#define KPC_CLASS_FIXED (0)
++++#define KPC_CLASS_CONFIGURABLE (1)
++++#define KPC_CLASS_POWER (2)
++++#define KPC_CLASS_RAWPMU (3)
++++
++++// Cross-platform class mask constants.
++++#define KPC_CLASS_FIXED_MASK (1u << KPC_CLASS_FIXED)                // 1
++++#define KPC_CLASS_CONFIGURABLE_MASK (1u << KPC_CLASS_CONFIGURABLE)  // 2
++++#define KPC_CLASS_POWER_MASK (1u << KPC_CLASS_POWER)                // 4
++++#define KPC_CLASS_RAWPMU_MASK (1u << KPC_CLASS_RAWPMU)              // 8
++++
++++// PMU version constants.
++++#define KPC_PMU_ERROR (0)      // Error
++++#define KPC_PMU_INTEL_V3 (1)   // Intel
++++#define KPC_PMU_ARM_APPLE (2)  // ARM64
++++#define KPC_PMU_INTEL_V2 (3)   // Old Intel
++++#define KPC_PMU_ARM_V2 (4)     // Old ARM
++++
++++// The maximum number of counters we could read from every class in one go.
++++// ARMV7: FIXED: 1, CONFIGURABLE: 4
++++// ARM32: FIXED: 2, CONFIGURABLE: 6
++++// ARM64: FIXED: 2, CONFIGURABLE: CORE_NCTRS - FIXED (6 or 8)
++++// x86: 32
++++#define KPC_MAX_COUNTERS 32
++++
++++// Bits for defining what to do on an action.
++++// Defined in https://github.com/apple/darwin-xnu/blob/main/osfmk/kperf/action.h
++++#define KPERF_SAMPLER_TH_INFO (1U << 0)
++++#define KPERF_SAMPLER_TH_SNAPSHOT (1U << 1)
++++#define KPERF_SAMPLER_KSTACK (1U << 2)
++++#define KPERF_SAMPLER_USTACK (1U << 3)
++++#define KPERF_SAMPLER_PMC_THREAD (1U << 4)
++++#define KPERF_SAMPLER_PMC_CPU (1U << 5)
++++#define KPERF_SAMPLER_PMC_CONFIG (1U << 6)
++++#define KPERF_SAMPLER_MEMINFO (1U << 7)
++++#define KPERF_SAMPLER_TH_SCHEDULING (1U << 8)
++++#define KPERF_SAMPLER_TH_DISPATCH (1U << 9)
++++#define KPERF_SAMPLER_TK_SNAPSHOT (1U << 10)
++++#define KPERF_SAMPLER_SYS_MEM (1U << 11)
++++#define KPERF_SAMPLER_TH_INSCYC (1U << 12)
++++#define KPERF_SAMPLER_TK_INFO (1U << 13)
++++
++++// Maximum number of kperf action ids.
++++#define KPERF_ACTION_MAX (32)
++++
++++// Maximum number of kperf timer ids.
++++#define KPERF_TIMER_MAX (8)
++++
++++// x86/arm config registers are 64-bit
++++typedef u64 kpc_config_t;
++++
++++/// Print current CPU identification string to the buffer (same as snprintf),
++++/// such as "cpu_7_8_10b282dc_46". This string can be used to locate the PMC
++++/// database in /usr/share/kpep.
++++/// @return string's length, or negative value if error occurs.
++++/// @note This method does not requires root privileges.
++++/// @details sysctl get(hw.cputype), get(hw.cpusubtype),
++++///                 get(hw.cpufamily), get(machdep.cpu.model)
++++static int (*kpc_cpu_string)(char *buf, usize buf_size);
++++
++++/// Get the version of KPC that's being run.
++++/// @return See `PMU version constants` above.
++++/// @details sysctl get(kpc.pmu_version)
++++static u32 (*kpc_pmu_version)(void);
++++
++++/// Get running PMC classes.
++++/// @return See `class mask constants` above,
++++///         0 if error occurs or no class is set.
++++/// @details sysctl get(kpc.counting)
++++static u32 (*kpc_get_counting)(void);
++++
++++/// Set PMC classes to enable counting.
++++/// @param classes See `class mask constants` above, set 0 to shutdown counting.
++++/// @return 0 for success.
++++/// @details sysctl set(kpc.counting)
++++static int (*kpc_set_counting)(u32 classes);
++++
++++/// Get running PMC classes for current thread.
++++/// @return See `class mask constants` above,
++++///         0 if error occurs or no class is set.
++++/// @details sysctl get(kpc.thread_counting)
++++static u32 (*kpc_get_thread_counting)(void);
++++
++++/// Set PMC classes to enable counting for current thread.
++++/// @param classes See `class mask constants` above, set 0 to shutdown counting.
++++/// @return 0 for success.
++++/// @details sysctl set(kpc.thread_counting)
++++static int (*kpc_set_thread_counting)(u32 classes);
++++
++++/// Get how many config registers there are for a given mask.
++++/// For example: Intel may returns 1 for `KPC_CLASS_FIXED_MASK`,
++++///                        returns 4 for `KPC_CLASS_CONFIGURABLE_MASK`.
++++/// @param classes See `class mask constants` above.
++++/// @return 0 if error occurs or no class is set.
++++/// @note This method does not requires root privileges.
++++/// @details sysctl get(kpc.config_count)
++++static u32 (*kpc_get_config_count)(u32 classes);
++++
++++/// Get config registers.
++++/// @param classes see `class mask constants` above.
++++/// @param config Config buffer to receive values, should not smaller than
++++///               kpc_get_config_count(classes) * sizeof(kpc_config_t).
++++/// @return 0 for success.
++++/// @details sysctl get(kpc.config_count), get(kpc.config)
++++static int (*kpc_get_config)(u32 classes, kpc_config_t *config);
++++
++++/// Set config registers.
++++/// @param classes see `class mask constants` above.
++++/// @param config Config buffer, should not smaller than
++++///               kpc_get_config_count(classes) * sizeof(kpc_config_t).
++++/// @return 0 for success.
++++/// @details sysctl get(kpc.config_count), set(kpc.config)
++++static int (*kpc_set_config)(u32 classes, kpc_config_t *config);
++++
++++/// Get how many counters there are for a given mask.
++++/// For example: Intel may returns 3 for `KPC_CLASS_FIXED_MASK`,
++++///                        returns 4 for `KPC_CLASS_CONFIGURABLE_MASK`.
++++/// @param classes See `class mask constants` above.
++++/// @note This method does not requires root privileges.
++++/// @details sysctl get(kpc.counter_count)
++++static u32 (*kpc_get_counter_count)(u32 classes);
++++
++++/// Get counter accumulations.
++++/// If `all_cpus` is true, the buffer count should not smaller than
++++/// (cpu_count * counter_count). Otherwise, the buffer count should not smaller
++++/// than (counter_count).
++++/// @see kpc_get_counter_count(), kpc_cpu_count().
++++/// @param all_cpus true for all CPUs, false for current cpu.
++++/// @param classes See `class mask constants` above.
++++/// @param curcpu A pointer to receive current cpu id, can be NULL.
++++/// @param buf Buffer to receive counter's value.
++++/// @return 0 for success.
++++/// @details sysctl get(hw.ncpu), get(kpc.counter_count), get(kpc.counters)
++++static int (*kpc_get_cpu_counters)(bool all_cpus, u32 classes, int *curcpu,
++++                                   u64 *buf);
++++
++++/// Get counter accumulations for current thread.
++++/// @param tid Thread id, should be 0.
++++/// @param buf_count The number of buf's elements (not bytes),
++++///                  should not smaller than kpc_get_counter_count().
++++/// @param buf Buffer to receive counter's value.
++++/// @return 0 for success.
++++/// @details sysctl get(kpc.thread_counters)
++++static int (*kpc_get_thread_counters)(u32 tid, u32 buf_count, u64 *buf);
++++
++++/// Acquire/release the counters used by the Power Manager.
++++/// @param val 1:acquire, 0:release
++++/// @return 0 for success.
++++/// @details sysctl set(kpc.force_all_ctrs)
++++static int (*kpc_force_all_ctrs_set)(int val);
++++
++++/// Get the state of all_ctrs.
++++/// @return 0 for success.
++++/// @details sysctl get(kpc.force_all_ctrs)
++++static int (*kpc_force_all_ctrs_get)(int *val_out);
++++
++++/// Set number of actions, should be `KPERF_ACTION_MAX`.
++++/// @details sysctl set(kperf.action.count)
++++static int (*kperf_action_count_set)(u32 count);
++++
++++/// Get number of actions.
++++/// @details sysctl get(kperf.action.count)
++++static int (*kperf_action_count_get)(u32 *count);
++++
++++/// Set what to sample when a trigger fires an action, e.g.
++++/// `KPERF_SAMPLER_PMC_CPU`.
++++/// @details sysctl set(kperf.action.samplers)
++++static int (*kperf_action_samplers_set)(u32 actionid, u32 sample);
++++
++++/// Get what to sample when a trigger fires an action.
++++/// @details sysctl get(kperf.action.samplers)
++++static int (*kperf_action_samplers_get)(u32 actionid, u32 *sample);
++++
++++/// Apply a task filter to the action, -1 to disable filter.
++++/// @details sysctl set(kperf.action.filter_by_task)
++++static int (*kperf_action_filter_set_by_task)(u32 actionid, i32 port);
++++
++++/// Apply a pid filter to the action, -1 to disable filter.
++++/// @details sysctl set(kperf.action.filter_by_pid)
++++static int (*kperf_action_filter_set_by_pid)(u32 actionid, i32 pid);
++++
++++/// Set number of time triggers, should be `KPERF_TIMER_MAX`.
++++/// @details sysctl set(kperf.timer.count)
++++static int (*kperf_timer_count_set)(u32 count);
++++
++++/// Get number of time triggers.
++++/// @details sysctl get(kperf.timer.count)
++++static int (*kperf_timer_count_get)(u32 *count);
++++
++++/// Set timer number and period.
++++/// @details sysctl set(kperf.timer.period)
++++static int (*kperf_timer_period_set)(u32 actionid, u64 tick);
++++
++++/// Get timer number and period.
++++/// @details sysctl get(kperf.timer.period)
++++static int (*kperf_timer_period_get)(u32 actionid, u64 *tick);
++++
++++/// Set timer number and actionid.
++++/// @details sysctl set(kperf.timer.action)
++++static int (*kperf_timer_action_set)(u32 actionid, u32 timerid);
++++
++++/// Get timer number and actionid.
++++/// @details sysctl get(kperf.timer.action)
++++static int (*kperf_timer_action_get)(u32 actionid, u32 *timerid);
++++
++++/// Set which timer ID does PET (Profile Every Thread).
++++/// @details sysctl set(kperf.timer.pet_timer)
++++static int (*kperf_timer_pet_set)(u32 timerid);
++++
++++/// Get which timer ID does PET (Profile Every Thread).
++++/// @details sysctl get(kperf.timer.pet_timer)
++++static int (*kperf_timer_pet_get)(u32 *timerid);
++++
++++/// Enable or disable sampling.
++++/// @details sysctl set(kperf.sampling)
++++static int (*kperf_sample_set)(u32 enabled);
++++
++++/// Get is currently sampling.
++++/// @details sysctl get(kperf.sampling)
++++static int (*kperf_sample_get)(u32 *enabled);
++++
++++/// Reset kperf: stop sampling, kdebug, timers and actions.
++++/// @return 0 for success.
++++static int (*kperf_reset)(void);
++++
++++/// Nanoseconds to CPU ticks.
++++static u64 (*kperf_ns_to_ticks)(u64 ns);
++++
++++/// CPU ticks to nanoseconds.
++++static u64 (*kperf_ticks_to_ns)(u64 ticks);
++++
++++/// CPU ticks frequency (mach_absolute_time).
++++static u64 (*kperf_tick_frequency)(void);
++++
++++/// Get lightweight PET mode (not in kperf.framework).
++++static int kperf_lightweight_pet_get(u32 *enabled) {
++++  if (!enabled) return -1;
++++  usize size = 4;
++++  return sysctlbyname("kperf.lightweight_pet", enabled, &size, NULL, 0);
++++}
++++
++++/// Set lightweight PET mode (not in kperf.framework).
++++static int kperf_lightweight_pet_set(u32 enabled) {
++++  return sysctlbyname("kperf.lightweight_pet", NULL, NULL, &enabled, 4);
++++}
++++
++++// -----------------------------------------------------------------------------
++++// <kperfdata.framework> header (reverse engineered)
++++// This framework provides some functions to access the local CPU database.
++++// These functions do not require root privileges.
++++// -----------------------------------------------------------------------------
++++
++++// KPEP CPU architecture constants.
++++#define KPEP_ARCH_I386 0
++++#define KPEP_ARCH_X86_64 1
++++#define KPEP_ARCH_ARM 2
++++#define KPEP_ARCH_ARM64 3
++++
++++/// KPEP event (size: 48/28 bytes on 64/32 bit OS)
++++typedef struct kpep_event {
++++  const char *name;  ///< Unique name of a event, such as "INST_RETIRED.ANY".
++++  const char *description;  ///< Description for this event.
++++  const char *errata;       ///< Errata, currently NULL.
++++  const char *alias;        ///< Alias name, such as "Instructions", "Cycles".
++++  const char *fallback;     ///< Fallback event name for fixed counter.
++++  u32 mask;
++++  u8 number;
++++  u8 umask;
++++  u8 reserved;
++++  u8 is_fixed;
++++} kpep_event;
++++
++++/// KPEP database (size: 144/80 bytes on 64/32 bit OS)
++++typedef struct kpep_db {
++++  const char *name;            ///< Database name, such as "haswell".
++++  const char *cpu_id;          ///< Plist name, such as "cpu_7_8_10b282dc".
++++  const char *marketing_name;  ///< Marketing name, such as "Intel Haswell".
++++  void *plist_data;            ///< Plist data (CFDataRef), currently NULL.
++++  void *event_map;  ///< All events (CFDict<CFSTR(event_name), kpep_event *>).
++++  kpep_event
++++      *event_arr;  ///< Event struct buffer (sizeof(kpep_event) * events_count).
++++  kpep_event **fixed_event_arr;  ///< Fixed counter events (sizeof(kpep_event *)
++++                                 ///< * fixed_counter_count)
++++  void *alias_map;  ///< All aliases (CFDict<CFSTR(event_name), kpep_event *>).
++++  usize reserved_1;
++++  usize reserved_2;
++++  usize reserved_3;
++++  usize event_count;  ///< All events count.
++++  usize alias_count;
++++  usize fixed_counter_count;
++++  usize config_counter_count;
++++  usize power_counter_count;
++++  u32 architecture;  ///< see `KPEP CPU architecture constants` above.
++++  u32 fixed_counter_bits;
++++  u32 config_counter_bits;
++++  u32 power_counter_bits;
++++} kpep_db;
++++
++++/// KPEP config (size: 80/44 bytes on 64/32 bit OS)
++++typedef struct kpep_config {
++++  kpep_db *db;
++++  kpep_event **ev_arr;  ///< (sizeof(kpep_event *) * counter_count), init NULL
++++  usize *ev_map;        ///< (sizeof(usize *) * counter_count), init 0
++++  usize *ev_idx;        ///< (sizeof(usize *) * counter_count), init -1
++++  u32 *flags;           ///< (sizeof(u32 *) * counter_count), init 0
++++  u64 *kpc_periods;     ///< (sizeof(u64 *) * counter_count), init 0
++++  usize event_count;    /// kpep_config_events_count()
++++  usize counter_count;
++++  u32 classes;  ///< See `class mask constants` above.
++++  u32 config_counter;
++++  u32 power_counter;
++++  u32 reserved;
++++} kpep_config;
++++
++++/// Error code for kpep_config_xxx() and kpep_db_xxx() functions.
++++typedef enum {
++++  KPEP_CONFIG_ERROR_NONE = 0,
++++  KPEP_CONFIG_ERROR_INVALID_ARGUMENT = 1,
++++  KPEP_CONFIG_ERROR_OUT_OF_MEMORY = 2,
++++  KPEP_CONFIG_ERROR_IO = 3,
++++  KPEP_CONFIG_ERROR_BUFFER_TOO_SMALL = 4,
++++  KPEP_CONFIG_ERROR_CUR_SYSTEM_UNKNOWN = 5,
++++  KPEP_CONFIG_ERROR_DB_PATH_INVALID = 6,
++++  KPEP_CONFIG_ERROR_DB_NOT_FOUND = 7,
++++  KPEP_CONFIG_ERROR_DB_ARCH_UNSUPPORTED = 8,
++++  KPEP_CONFIG_ERROR_DB_VERSION_UNSUPPORTED = 9,
++++  KPEP_CONFIG_ERROR_DB_CORRUPT = 10,
++++  KPEP_CONFIG_ERROR_EVENT_NOT_FOUND = 11,
++++  KPEP_CONFIG_ERROR_CONFLICTING_EVENTS = 12,
++++  KPEP_CONFIG_ERROR_COUNTERS_NOT_FORCED = 13,
++++  KPEP_CONFIG_ERROR_EVENT_UNAVAILABLE = 14,
++++  KPEP_CONFIG_ERROR_ERRNO = 15,
++++  KPEP_CONFIG_ERROR_MAX
++++} kpep_config_error_code;
++++
++++/// Error description for kpep_config_error_code.
++++static const char *kpep_config_error_names[KPEP_CONFIG_ERROR_MAX] = {
++++    "none",
++++    "invalid argument",
++++    "out of memory",
++++    "I/O",
++++    "buffer too small",
++++    "current system unknown",
++++    "database path invalid",
++++    "database not found",
++++    "database architecture unsupported",
++++    "database version unsupported",
++++    "database corrupt",
++++    "event not found",
++++    "conflicting events",
++++    "all counters must be forced",
++++    "event unavailable",
++++    "check errno"};
++++
++++/// Error description.
++++static const char *kpep_config_error_desc(int code) {
++++  if (0 <= code && code < KPEP_CONFIG_ERROR_MAX) {
++++    return kpep_config_error_names[code];
++++  }
++++  return "unknown error";
++++}
++++
++++/// Create a config.
++++/// @param db A kpep db, see kpep_db_create()
++++/// @param cfg_ptr A pointer to receive the new config.
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_config_create)(kpep_db *db, kpep_config **cfg_ptr);
++++
++++/// Free the config.
++++static void (*kpep_config_free)(kpep_config *cfg);
++++
++++/// Add an event to config.
++++/// @param cfg The config.
++++/// @param ev_ptr A event pointer.
++++/// @param flag 0: all, 1: user space only
++++/// @param err Error bitmap pointer, can be NULL.
++++///            If return value is `CONFLICTING_EVENTS`, this bitmap contains
++++///            the conflicted event indices, e.g. "1 << 2" means index 2.
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_config_add_event)(kpep_config *cfg, kpep_event **ev_ptr,
++++                                    u32 flag, u32 *err);
++++
++++/// Remove event at index.
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_config_remove_event)(kpep_config *cfg, usize idx);
++++
++++/// Force all counters.
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_config_force_counters)(kpep_config *cfg);
++++
++++/// Get events count.
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_config_events_count)(kpep_config *cfg, usize *count_ptr);
++++
++++/// Get all event pointers.
++++/// @param buf A buffer to receive event pointers.
++++/// @param buf_size The buffer's size in bytes, should not smaller than
++++///                 kpep_config_events_count() * sizeof(void *).
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_config_events)(kpep_config *cfg, kpep_event **buf,
++++                                 usize buf_size);
++++
++++/// Get kpc register configs.
++++/// @param buf A buffer to receive kpc register configs.
++++/// @param buf_size The buffer's size in bytes, should not smaller than
++++///                 kpep_config_kpc_count() * sizeof(kpc_config_t).
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_config_kpc)(kpep_config *cfg, kpc_config_t *buf,
++++                              usize buf_size);
++++
++++/// Get kpc register config count.
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_config_kpc_count)(kpep_config *cfg, usize *count_ptr);
++++
++++/// Get kpc classes.
++++/// @param classes See `class mask constants` above.
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_config_kpc_classes)(kpep_config *cfg, u32 *classes_ptr);
++++
++++/// Get the index mapping from event to counter.
++++/// @param buf A buffer to receive indexes.
++++/// @param buf_size The buffer's size in bytes, should not smaller than
++++///                 kpep_config_events_count() * sizeof(kpc_config_t).
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_config_kpc_map)(kpep_config *cfg, usize *buf, usize buf_size);
++++
++++/// Open a kpep database file in "/usr/share/kpep/" or "/usr/local/share/kpep/".
++++/// @param name File name, for example "haswell", "cpu_100000c_1_92fb37c8".
++++///             Pass NULL for current CPU.
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_db_create)(const char *name, kpep_db **db_ptr);
++++
++++/// Free the kpep database.
++++static void (*kpep_db_free)(kpep_db *db);
++++
++++/// Get the database's name.
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_db_name)(kpep_db *db, const char **name);
++++
++++/// Get the event alias count.
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_db_aliases_count)(kpep_db *db, usize *count);
++++
++++/// Get all alias.
++++/// @param buf A buffer to receive all alias strings.
++++/// @param buf_size The buffer's size in bytes,
++++///        should not smaller than kpep_db_aliases_count() * sizeof(void *).
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_db_aliases)(kpep_db *db, const char **buf, usize buf_size);
++++
++++/// Get counters count for given classes.
++++/// @param classes 1: Fixed, 2: Configurable.
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_db_counters_count)(kpep_db *db, u8 classes, usize *count);
++++
++++/// Get all event count.
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_db_events_count)(kpep_db *db, usize *count);
++++
++++/// Get all events.
++++/// @param buf A buffer to receive all event pointers.
++++/// @param buf_size The buffer's size in bytes,
++++///        should not smaller than kpep_db_events_count() * sizeof(void *).
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_db_events)(kpep_db *db, kpep_event **buf, usize buf_size);
++++
++++/// Get one event by name.
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_db_event)(kpep_db *db, const char *name, kpep_event **ev_ptr);
++++
++++/// Get event's name.
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_event_name)(kpep_event *ev, const char **name_ptr);
++++
++++/// Get event's alias.
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_event_alias)(kpep_event *ev, const char **alias_ptr);
++++
++++/// Get event's description.
++++/// @return kpep_config_error_code, 0 for success.
++++static int (*kpep_event_description)(kpep_event *ev, const char **str_ptr);
++++
++++// -----------------------------------------------------------------------------
++++// load kperf/kperfdata dynamic library
++++// -----------------------------------------------------------------------------
++++
++++typedef struct {
++++  const char *name;
++++  void **impl;
++++} lib_symbol;
++++
++++#define lib_nelems(x) (sizeof(x) / sizeof((x)[0]))
++++#define lib_symbol_def(name) \
++++  { #name, (void **)&name }
++++
++++static const lib_symbol lib_symbols_kperf[] = {
++++    lib_symbol_def(kpc_pmu_version),
++++    lib_symbol_def(kpc_cpu_string),
++++    lib_symbol_def(kpc_set_counting),
++++    lib_symbol_def(kpc_get_counting),
++++    lib_symbol_def(kpc_set_thread_counting),
++++    lib_symbol_def(kpc_get_thread_counting),
++++    lib_symbol_def(kpc_get_config_count),
++++    lib_symbol_def(kpc_get_counter_count),
++++    lib_symbol_def(kpc_set_config),
++++    lib_symbol_def(kpc_get_config),
++++    lib_symbol_def(kpc_get_cpu_counters),
++++    lib_symbol_def(kpc_get_thread_counters),
++++    lib_symbol_def(kpc_force_all_ctrs_set),
++++    lib_symbol_def(kpc_force_all_ctrs_get),
++++    lib_symbol_def(kperf_action_count_set),
++++    lib_symbol_def(kperf_action_count_get),
++++    lib_symbol_def(kperf_action_samplers_set),
++++    lib_symbol_def(kperf_action_samplers_get),
++++    lib_symbol_def(kperf_action_filter_set_by_task),
++++    lib_symbol_def(kperf_action_filter_set_by_pid),
++++    lib_symbol_def(kperf_timer_count_set),
++++    lib_symbol_def(kperf_timer_count_get),
++++    lib_symbol_def(kperf_timer_period_set),
++++    lib_symbol_def(kperf_timer_period_get),
++++    lib_symbol_def(kperf_timer_action_set),
++++    lib_symbol_def(kperf_timer_action_get),
++++    lib_symbol_def(kperf_sample_set),
++++    lib_symbol_def(kperf_sample_get),
++++    lib_symbol_def(kperf_reset),
++++    lib_symbol_def(kperf_timer_pet_set),
++++    lib_symbol_def(kperf_timer_pet_get),
++++    lib_symbol_def(kperf_ns_to_ticks),
++++    lib_symbol_def(kperf_ticks_to_ns),
++++    lib_symbol_def(kperf_tick_frequency),
++++};
++++
++++static const lib_symbol lib_symbols_kperfdata[] = {
++++    lib_symbol_def(kpep_config_create),
++++    lib_symbol_def(kpep_config_free),
++++    lib_symbol_def(kpep_config_add_event),
++++    lib_symbol_def(kpep_config_remove_event),
++++    lib_symbol_def(kpep_config_force_counters),
++++    lib_symbol_def(kpep_config_events_count),
++++    lib_symbol_def(kpep_config_events),
++++    lib_symbol_def(kpep_config_kpc),
++++    lib_symbol_def(kpep_config_kpc_count),
++++    lib_symbol_def(kpep_config_kpc_classes),
++++    lib_symbol_def(kpep_config_kpc_map),
++++    lib_symbol_def(kpep_db_create),
++++    lib_symbol_def(kpep_db_free),
++++    lib_symbol_def(kpep_db_name),
++++    lib_symbol_def(kpep_db_aliases_count),
++++    lib_symbol_def(kpep_db_aliases),
++++    lib_symbol_def(kpep_db_counters_count),
++++    lib_symbol_def(kpep_db_events_count),
++++    lib_symbol_def(kpep_db_events),
++++    lib_symbol_def(kpep_db_event),
++++    lib_symbol_def(kpep_event_name),
++++    lib_symbol_def(kpep_event_alias),
++++    lib_symbol_def(kpep_event_description),
++++};
++++
++++#define lib_path_kperf "/System/Library/PrivateFrameworks/kperf.framework/kperf"
++++#define lib_path_kperfdata \
++++  "/System/Library/PrivateFrameworks/kperfdata.framework/kperfdata"
++++
++++static bool lib_inited = false;
++++static bool lib_has_err = false;
++++static char lib_err_msg[256];
++++
++++static void *lib_handle_kperf = NULL;
++++static void *lib_handle_kperfdata = NULL;
++++
++++static void lib_deinit(void) {
++++  lib_inited = false;
++++  lib_has_err = false;
++++  if (lib_handle_kperf) dlclose(lib_handle_kperf);
++++  if (lib_handle_kperfdata) dlclose(lib_handle_kperfdata);
++++  lib_handle_kperf = NULL;
++++  lib_handle_kperfdata = NULL;
++++  for (usize i = 0; i < lib_nelems(lib_symbols_kperf); i++) {
++++    const lib_symbol *symbol = &lib_symbols_kperf[i];
++++    *symbol->impl = NULL;
++++  }
++++  for (usize i = 0; i < lib_nelems(lib_symbols_kperfdata); i++) {
++++    const lib_symbol *symbol = &lib_symbols_kperfdata[i];
++++    *symbol->impl = NULL;
++++  }
++++}
++++
++++static bool lib_init(void) {
++++#define return_err()    \
++++  do {                  \
++++    lib_deinit();       \
++++    lib_inited = true;  \
++++    lib_has_err = true; \
++++    return false;       \
++++  } while (false)
++++
++++  if (lib_inited) return !lib_has_err;
++++
++++  // load dynamic library
++++  lib_handle_kperf = dlopen(lib_path_kperf, RTLD_LAZY);
++++  if (!lib_handle_kperf) {
++++    snprintf(lib_err_msg, sizeof(lib_err_msg),
++++             "Failed to load kperf.framework, message: %s.", dlerror());
++++    return_err();
++++  }
++++  lib_handle_kperfdata = dlopen(lib_path_kperfdata, RTLD_LAZY);
++++  if (!lib_handle_kperfdata) {
++++    snprintf(lib_err_msg, sizeof(lib_err_msg),
++++             "Failed to load kperfdata.framework, message: %s.", dlerror());
++++    return_err();
++++  }
++++
++++  // load symbol address from dynamic library
++++  for (usize i = 0; i < lib_nelems(lib_symbols_kperf); i++) {
++++    const lib_symbol *symbol = &lib_symbols_kperf[i];
++++    *symbol->impl = dlsym(lib_handle_kperf, symbol->name);
++++    if (!*symbol->impl) {
++++      snprintf(lib_err_msg, sizeof(lib_err_msg),
++++               "Failed to load kperf function: %s.", symbol->name);
++++      return_err();
++++    }
++++  }
++++  for (usize i = 0; i < lib_nelems(lib_symbols_kperfdata); i++) {
++++    const lib_symbol *symbol = &lib_symbols_kperfdata[i];
++++    *symbol->impl = dlsym(lib_handle_kperfdata, symbol->name);
++++    if (!*symbol->impl) {
++++      snprintf(lib_err_msg, sizeof(lib_err_msg),
++++               "Failed to load kperfdata function: %s.", symbol->name);
++++      return_err();
++++    }
++++  }
++++
++++  lib_inited = true;
++++  lib_has_err = false;
++++  return true;
++++
++++#undef return_err
++++}
++++
++++// -----------------------------------------------------------------------------
++++// kdebug private structs
++++// https://github.com/apple/darwin-xnu/blob/main/bsd/sys_private/kdebug_private.h
++++// -----------------------------------------------------------------------------
++++
++++/*
++++ * Ensure that both LP32 and LP64 variants of arm64 use the same kd_buf
++++ * structure.
++++ */
++++#if defined(__arm64__)
++++typedef uint64_t kd_buf_argtype;
++++#else
++++typedef uintptr_t kd_buf_argtype;
++++#endif
++++
++++typedef struct {
++++  uint64_t timestamp;
++++  kd_buf_argtype arg1;
++++  kd_buf_argtype arg2;
++++  kd_buf_argtype arg3;
++++  kd_buf_argtype arg4;
++++  kd_buf_argtype arg5; /* the thread ID */
++++  uint32_t debugid;    /* see <sys/kdebug.h> */
++++
++++/*
++++ * Ensure that both LP32 and LP64 variants of arm64 use the same kd_buf
++++ * structure.
++++ */
++++#if defined(__LP64__) || defined(__arm64__)
++++  uint32_t cpuid; /* cpu index, from 0 */
++++  kd_buf_argtype unused;
++++#endif
++++} kd_buf;
++++
++++/* bits for the type field of kd_regtype */
++++#define KDBG_CLASSTYPE 0x10000
++++#define KDBG_SUBCLSTYPE 0x20000
++++#define KDBG_RANGETYPE 0x40000
++++#define KDBG_TYPENONE 0x80000
++++#define KDBG_CKTYPES 0xF0000
++++
++++/* only trace at most 4 types of events, at the code granularity */
++++#define KDBG_VALCHECK 0x00200000U
++++
++++typedef struct {
++++  unsigned int type;
++++  unsigned int value1;
++++  unsigned int value2;
++++  unsigned int value3;
++++  unsigned int value4;
++++} kd_regtype;
++++
++++typedef struct {
++++  /* number of events that can fit in the buffers */
++++  int nkdbufs;
++++  /* set if trace is disabled */
++++  int nolog;
++++  /* kd_ctrl_page.flags */
++++  unsigned int flags;
++++  /* number of threads in thread map */
++++  int nkdthreads;
++++  /* the owning pid */
++++  int bufid;
++++} kbufinfo_t;
++++
++++// -----------------------------------------------------------------------------
++++// kdebug utils
++++// -----------------------------------------------------------------------------
++++
++++/// Clean up trace buffers and reset ktrace/kdebug/kperf.
++++/// @return 0 on success.
++++static int kdebug_reset(void) {
++++  int mib[3] = {CTL_KERN, KERN_KDEBUG, KERN_KDREMOVE};
++++  return sysctl(mib, 3, NULL, NULL, NULL, 0);
++++}
++++
++++/// Disable and reinitialize the trace buffers.
++++/// @return 0 on success.
++++static int kdebug_reinit(void) {
++++  int mib[3] = {CTL_KERN, KERN_KDEBUG, KERN_KDSETUP};
++++  return sysctl(mib, 3, NULL, NULL, NULL, 0);
++++}
++++
++++/// Set debug filter.
++++static int kdebug_setreg(kd_regtype *kdr) {
++++  int mib[3] = {CTL_KERN, KERN_KDEBUG, KERN_KDSETREG};
++++  usize size = sizeof(kd_regtype);
++++  return sysctl(mib, 3, kdr, &size, NULL, 0);
++++}
++++
++++/// Set maximum number of trace entries (kd_buf).
++++/// Only allow allocation up to half the available memory (sane_size).
++++/// @return 0 on success.
++++static int kdebug_trace_setbuf(int nbufs) {
++++  int mib[4] = {CTL_KERN, KERN_KDEBUG, KERN_KDSETBUF, nbufs};
++++  return sysctl(mib, 4, NULL, NULL, NULL, 0);
++++}
++++
++++/// Enable or disable kdebug trace.
++++/// Trace buffer must already be initialized.
++++/// @return 0 on success.
++++static int kdebug_trace_enable(bool enable) {
++++  int mib[4] = {CTL_KERN, KERN_KDEBUG, KERN_KDENABLE, enable};
++++  return sysctl(mib, 4, NULL, 0, NULL, 0);
++++}
++++
++++/// Retrieve trace buffer information from kernel.
++++/// @return 0 on success.
++++static int kdebug_get_bufinfo(kbufinfo_t *info) {
++++  if (!info) return -1;
++++  int mib[3] = {CTL_KERN, KERN_KDEBUG, KERN_KDGETBUF};
++++  size_t needed = sizeof(kbufinfo_t);
++++  return sysctl(mib, 3, info, &needed, NULL, 0);
++++}
++++
++++/// Retrieve trace buffers from kernel.
++++/// @param buf Memory to receive buffer data, array of `kd_buf`.
++++/// @param len Length of `buf` in bytes.
++++/// @param count Number of trace entries (kd_buf) obtained.
++++/// @return 0 on success.
++++static int kdebug_trace_read(void *buf, usize len, usize *count) {
++++  if (count) *count = 0;
++++  if (!buf || !len) return -1;
++++
++++  // Note: the input and output units are not the same.
++++  // input: bytes
++++  // output: number of kd_buf
++++  int mib[3] = {CTL_KERN, KERN_KDEBUG, KERN_KDREADTR};
++++  int ret = sysctl(mib, 3, buf, &len, NULL, 0);
++++  if (ret != 0) return ret;
++++  *count = len;
++++  return 0;
++++}
++++
++++/// Block until there are new buffers filled or `timeout_ms` have passed.
++++/// @param timeout_ms timeout milliseconds, 0 means wait forever.
++++/// @param suc set true if new buffers filled.
++++/// @return 0 on success.
++++static int kdebug_wait(usize timeout_ms, bool *suc) {
++++  if (timeout_ms == 0) return -1;
++++  int mib[3] = {CTL_KERN, KERN_KDEBUG, KERN_KDBUFWAIT};
++++  usize val = timeout_ms;
++++  int ret = sysctl(mib, 3, NULL, &val, NULL, 0);
++++  if (suc) *suc = !!val;
++++  return ret;
++++}
++++
++++// -----------------------------------------------------------------------------
++++// Demo
++++// -----------------------------------------------------------------------------
++++
++++#define EVENT_NAME_MAX 8
++++typedef struct {
++++  const char *alias;                  /// name for print
++++  const char *names[EVENT_NAME_MAX];  /// name from pmc db
++++} event_alias;
++++
++++/// Event names from /usr/share/kpep/<name>.plist
++++static const event_alias profile_events[] = {
++++    {"cycles",
++++     {
++++         "FIXED_CYCLES",             // Apple A7-A15
++++         "CPU_CLK_UNHALTED.THREAD",  // Intel Core 1th-10th
++++         "CPU_CLK_UNHALTED.CORE",    // Intel Yonah, Merom
++++     }},
++++    {"instructions",
++++     {
++++         "FIXED_INSTRUCTIONS",  // Apple A7-A15
++++         "INST_RETIRED.ANY"     // Intel Yonah, Merom, Core 1th-10th
++++     }},
++++    {"branches",
++++     {
++++         "INST_BRANCH",                   // Apple A7-A15
++++         "BR_INST_RETIRED.ALL_BRANCHES",  // Intel Core 1th-10th
++++         "INST_RETIRED.ANY",              // Intel Yonah, Merom
++++     }},
++++    {"branch-misses",
++++     {
++++         "BRANCH_MISPRED_NONSPEC",  // Apple A7-A15, since iOS 15, macOS 12
++++         "BRANCH_MISPREDICT",       // Apple A7-A14
++++         "BR_MISP_RETIRED.ALL_BRANCHES",  // Intel Core 2th-10th
++++         "BR_INST_RETIRED.MISPRED",       // Intel Yonah, Merom
++++     }},
++++};
++++
++++static kpep_event *get_event(kpep_db *db, const event_alias *alias) {
++++  for (usize j = 0; j < EVENT_NAME_MAX; j++) {
++++    const char *name = alias->names[j];
++++    if (!name) break;
++++    kpep_event *ev = NULL;
++++    if (kpep_db_event(db, name, &ev) == 0) {
++++      return ev;
++++    }
++++  }
++++  return NULL;
++++}
++++
++++struct AppleEvents {
++++  kpc_config_t regs[KPC_MAX_COUNTERS] = {0};
++++  usize counter_map[KPC_MAX_COUNTERS] = {0};
++++  u64 counters_0[KPC_MAX_COUNTERS] = {0};
++++  u64 counters_1[KPC_MAX_COUNTERS] = {0};
++++  static constexpr usize ev_count =
++++      sizeof(profile_events) / sizeof(profile_events[0]);
++++  bool init = false;
++++  bool worked = false;
++++  inline bool setup_performance_counters() {
++++    if (init) {
++++      return worked;
++++    }
++++    init = true;
++++
++++    // load dylib
++++    if (!lib_init()) {
++++      printf("Error: %s\n", lib_err_msg);
++++      return (worked = false);
++++    }
++++
++++    // check permission
++++    int force_ctrs = 0;
++++    if (kpc_force_all_ctrs_get(&force_ctrs)) {
++++      printf("Permission denied, xnu/kpc requires root privileges.\n");
++++      return (worked = false);
++++    }
++++    int ret;
++++    // load pmc db
++++    kpep_db *db = NULL;
++++    if ((ret = kpep_db_create(NULL, &db))) {
++++      printf("Error: cannot load pmc database: %d.\n", ret);
++++      return (worked = false);
++++    }
++++    printf("loaded db: %s (%s)\n", db->name, db->marketing_name);
++++    // printf("number of fixed counters: %zu\n", db->fixed_counter_count);
++++    // printf("number of configurable counters: %zu\n",
++++    // db->config_counter_count);
++++
++++    // create a config
++++    kpep_config *cfg = NULL;
++++    if ((ret = kpep_config_create(db, &cfg))) {
++++      printf("Failed to create kpep config: %d (%s).\n", ret,
++++             kpep_config_error_desc(ret));
++++      return (worked = false);
++++    }
++++    if ((ret = kpep_config_force_counters(cfg))) {
++++      printf("Failed to force counters: %d (%s).\n", ret,
++++             kpep_config_error_desc(ret));
++++      return (worked = false);
++++    }
++++
++++    // get events
++++    kpep_event *ev_arr[ev_count] = {0};
++++    for (usize i = 0; i < ev_count; i++) {
++++      const event_alias *alias = profile_events + i;
++++      ev_arr[i] = get_event(db, alias);
++++      if (!ev_arr[i]) {
++++        printf("Cannot find event: %s.\n", alias->alias);
++++        return (worked = false);
++++      }
++++    }
++++
++++    // add event to config
++++    for (usize i = 0; i < ev_count; i++) {
++++      kpep_event *ev = ev_arr[i];
++++      if ((ret = kpep_config_add_event(cfg, &ev, 0, NULL))) {
++++        printf("Failed to add event: %d (%s).\n", ret,
++++               kpep_config_error_desc(ret));
++++        return (worked = false);
++++      }
++++    }
++++
++++    // prepare buffer and config
++++    u32 classes = 0;
++++    usize reg_count = 0;
++++    if ((ret = kpep_config_kpc_classes(cfg, &classes))) {
++++      printf("Failed get kpc classes: %d (%s).\n", ret,
++++             kpep_config_error_desc(ret));
++++      return (worked = false);
++++    }
++++    if ((ret = kpep_config_kpc_count(cfg, &reg_count))) {
++++      printf("Failed get kpc count: %d (%s).\n", ret,
++++             kpep_config_error_desc(ret));
++++      return (worked = false);
++++    }
++++    if ((ret = kpep_config_kpc_map(cfg, counter_map, sizeof(counter_map)))) {
++++      printf("Failed get kpc map: %d (%s).\n", ret,
++++             kpep_config_error_desc(ret));
++++      return (worked = false);
++++    }
++++    if ((ret = kpep_config_kpc(cfg, regs, sizeof(regs)))) {
++++      printf("Failed get kpc registers: %d (%s).\n", ret,
++++             kpep_config_error_desc(ret));
++++      return (worked = false);
++++    }
++++
++++    // set config to kernel
++++    if ((ret = kpc_force_all_ctrs_set(1))) {
++++      printf("Failed force all ctrs: %d.\n", ret);
++++      return (worked = false);
++++    }
++++    if ((classes & KPC_CLASS_CONFIGURABLE_MASK) && reg_count) {
++++      if ((ret = kpc_set_config(classes, regs))) {
++++        printf("Failed set kpc config: %d.\n", ret);
++++        return (worked = false);
++++      }
++++    }
++++
++++    // start counting
++++    if ((ret = kpc_set_counting(classes))) {
++++      printf("Failed set counting: %d.\n", ret);
++++      return (worked = false);
++++    }
++++    if ((ret = kpc_set_thread_counting(classes))) {
++++      printf("Failed set thread counting: %d.\n", ret);
++++      return (worked = false);
++++    }
++++
++++    return (worked = true);
++++  }
++++
++++  inline performance_counters get_counters() {
++++    static bool warned = false;
++++    int ret;
++++    // get counters before
++++    if ((ret = kpc_get_thread_counters(0, KPC_MAX_COUNTERS, counters_0))) {
++++      if (!warned) {
++++        printf("Failed get thread counters before: %d.\n", ret);
++++        warned = true;
++++      }
++++      return 1;
++++    }
++++    /*
++++    // We could print it out this way if we wanted to:
++++    printf("counters value:\n");
++++    for (usize i = 0; i < ev_count; i++) {
++++        const event_alias *alias = profile_events + i;
++++        usize idx = counter_map[i];
++++        u64 val = counters_1[idx] - counters_0[idx];
++++        printf("%14s: %llu\n", alias->alias, val);
++++    }*/
++++    return performance_counters{
++++        counters_0[counter_map[0]], counters_0[counter_map[2]],
++++        counters_0[counter_map[2]], counters_0[counter_map[1]]};
++++  }
++++};
++++
++++#endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4a1e5eca3f4a3f017f18614f156635174d8cdb8e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,155 @@@@@
++++#ifndef __EVENT_COUNTER_H
++++#define __EVENT_COUNTER_H
++++
++++#include <cctype>
++++#ifndef _MSC_VER
++++#include <dirent.h>
++++#endif
++++#include <cinttypes>
++++
++++#include <cstring>
++++
++++#include <chrono>
++++#include <vector>
++++
++++#include "linux-perf-events.h"
++++#ifdef __linux__
++++#include <libgen.h>
++++#endif
++++
++++#if __APPLE__ && __aarch64__
++++#include "apple_arm_events.h"
++++#endif
++++
++++struct event_count {
++++  std::chrono::duration<double> elapsed;
++++  std::vector<unsigned long long> event_counts;
++++  event_count() : elapsed(0), event_counts{0, 0, 0, 0, 0} {}
++++  event_count(const std::chrono::duration<double> _elapsed,
++++              const std::vector<unsigned long long> _event_counts)
++++      : elapsed(_elapsed), event_counts(_event_counts) {}
++++  event_count(const event_count& other)
++++      : elapsed(other.elapsed), event_counts(other.event_counts) {}
++++
++++  // The types of counters (so we can read the getter more easily)
++++  enum event_counter_types {
++++    CPU_CYCLES,
++++    INSTRUCTIONS,
++++    BRANCH_MISSES = 2,
++++    BRANCH = 4
++++  };
++++
++++  double elapsed_sec() const {
++++    return std::chrono::duration<double>(elapsed).count();
++++  }
++++  double elapsed_ns() const {
++++    return std::chrono::duration<double, std::nano>(elapsed).count();
++++  }
++++  double cycles() const {
++++    return static_cast<double>(event_counts[CPU_CYCLES]);
++++  }
++++  double instructions() const {
++++    return static_cast<double>(event_counts[INSTRUCTIONS]);
++++  }
++++  double branches() const { return static_cast<double>(event_counts[BRANCH]); }
++++  double branch_misses() const {
++++    return static_cast<double>(event_counts[BRANCH_MISSES]);
++++  }
++++  event_count& operator=(const event_count& other) {
++++    this->elapsed = other.elapsed;
++++    this->event_counts = other.event_counts;
++++    return *this;
++++  }
++++  event_count operator+(const event_count& other) const {
++++    return event_count(elapsed + other.elapsed,
++++                       {
++++                           event_counts[0] + other.event_counts[0],
++++                           event_counts[1] + other.event_counts[1],
++++                           event_counts[2] + other.event_counts[2],
++++                           event_counts[3] + other.event_counts[3],
++++                           event_counts[4] + other.event_counts[4],
++++                       });
++++  }
++++
++++  void operator+=(const event_count& other) { *this = *this + other; }
++++};
++++
++++struct event_aggregate {
++++  bool has_events = false;
++++  int iterations = 0;
++++  event_count total{};
++++  event_count best{};
++++  event_count worst{};
++++
++++  event_aggregate() = default;
++++
++++  void operator<<(const event_count& other) {
++++    if (iterations == 0 || other.elapsed < best.elapsed) {
++++      best = other;
++++    }
++++    if (iterations == 0 || other.elapsed > worst.elapsed) {
++++      worst = other;
++++    }
++++    iterations++;
++++    total += other;
++++  }
++++
++++  double elapsed_sec() const { return total.elapsed_sec() / iterations; }
++++  double elapsed_ns() const { return total.elapsed_ns() / iterations; }
++++  double cycles() const { return total.cycles() / iterations; }
++++  double instructions() const { return total.instructions() / iterations; }
++++};
++++
++++struct event_collector {
++++  event_count count{};
++++  std::chrono::time_point<std::chrono::steady_clock> start_clock{};
++++
++++#if defined(__linux__)
++++  LinuxEvents<PERF_TYPE_HARDWARE> linux_events;
++++  event_collector()
++++      : linux_events(std::vector<int>{
++++            PERF_COUNT_HW_CPU_CYCLES,
++++            PERF_COUNT_HW_INSTRUCTIONS,
++++        }) {}
++++  bool has_events() { return linux_events.is_working(); }
++++#elif __APPLE__ && __aarch64__
++++  AppleEvents apple_events;
++++  performance_counters diff;
++++  event_collector() : diff(0) { apple_events.setup_performance_counters(); }
++++  bool has_events() { return apple_events.setup_performance_counters(); }
++++#else
++++  event_collector() {}
++++  bool has_events() { return false; }
++++#endif
++++
++++  inline void start() {
++++#if defined(__linux)
++++    linux_events.start();
++++#elif __APPLE__ && __aarch64__
++++    if (has_events()) {
++++      diff = apple_events.get_counters();
++++    }
++++#endif
++++    start_clock = std::chrono::steady_clock::now();
++++  }
++++  inline event_count& end() {
++++    const auto end_clock = std::chrono::steady_clock::now();
++++#if defined(__linux)
++++    linux_events.end(count.event_counts);
++++#elif __APPLE__ && __aarch64__
++++    if (has_events()) {
++++      performance_counters end = apple_events.get_counters();
++++      diff = end - diff;
++++    }
++++    count.event_counts[0] = diff.cycles;
++++    count.event_counts[1] = diff.instructions;
++++    count.event_counts[2] = diff.missed_branches;
++++    count.event_counts[3] = 0;
++++    count.event_counts[4] = diff.branches;
++++#endif
++++    count.elapsed = end_clock - start_clock;
++++    return count;
++++  }
++++};
++++
++++#endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7ed0f8d24d2b81c8018a3f6f2b7cb4696f131b46
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,105 @@@@@
++++#pragma once
++++#ifdef __linux__
++++
++++#include <asm/unistd.h>        // for __NR_perf_event_open
++++#include <linux/perf_event.h>  // for perf event constants
++++#include <sys/ioctl.h>         // for ioctl
++++#include <unistd.h>            // for syscall
++++
++++#include <cerrno>   // for errno
++++#include <cstring>  // for memset
++++#include <stdexcept>
++++
++++#include <iostream>
++++#include <vector>
++++
++++template <int TYPE = PERF_TYPE_HARDWARE>
++++class LinuxEvents {
++++  int fd;
++++  bool working;
++++  perf_event_attr attribs{};
++++  size_t num_events{};
++++  std::vector<uint64_t> temp_result_vec{};
++++  std::vector<uint64_t> ids{};
++++
++++ public:
++++  explicit LinuxEvents(std::vector<int> config_vec) : fd(0), working(true) {
++++    memset(&attribs, 0, sizeof(attribs));
++++    attribs.type = TYPE;
++++    attribs.size = sizeof(attribs);
++++    attribs.disabled = 1;
++++    attribs.exclude_kernel = 1;
++++    attribs.exclude_hv = 1;
++++
++++    attribs.sample_period = 0;
++++    attribs.read_format = PERF_FORMAT_GROUP | PERF_FORMAT_ID;
++++    const int pid = 0;   // the current process
++++    const int cpu = -1;  // all CPUs
++++    const unsigned long flags = 0;
++++
++++    int group = -1;  // no group
++++    num_events = config_vec.size();
++++    ids.resize(config_vec.size());
++++    uint32_t i = 0;
++++    for (auto config : config_vec) {
++++      attribs.config = config;
++++      int _fd = static_cast<int>(
++++          syscall(__NR_perf_event_open, &attribs, pid, cpu, group, flags));
++++      if (_fd == -1) {
++++        report_error("perf_event_open");
++++      }
++++      ioctl(_fd, PERF_EVENT_IOC_ID, &ids[i++]);
++++      if (group == -1) {
++++        group = _fd;
++++        fd = _fd;
++++      }
++++    }
++++
++++    temp_result_vec.resize(num_events * 2 + 1);
++++  }
++++
++++  ~LinuxEvents() {
++++    if (fd != -1) {
++++      close(fd);
++++    }
++++  }
++++
++++  inline void start() {
++++    if (fd != -1) {
++++      if (ioctl(fd, PERF_EVENT_IOC_RESET, PERF_IOC_FLAG_GROUP) == -1) {
++++        report_error("ioctl(PERF_EVENT_IOC_RESET)");
++++      }
++++
++++      if (ioctl(fd, PERF_EVENT_IOC_ENABLE, PERF_IOC_FLAG_GROUP) == -1) {
++++        report_error("ioctl(PERF_EVENT_IOC_ENABLE)");
++++      }
++++    }
++++  }
++++
++++  inline void end(std::vector<unsigned long long> &results) {
++++    if (fd != -1) {
++++      if (ioctl(fd, PERF_EVENT_IOC_DISABLE, PERF_IOC_FLAG_GROUP) == -1) {
++++        report_error("ioctl(PERF_EVENT_IOC_DISABLE)");
++++      }
++++
++++      if (read(fd, temp_result_vec.data(), temp_result_vec.size() * 8) == -1) {
++++        report_error("read");
++++      }
++++    }
++++    // our actual results are in slots 1,3,5, ... of this structure
++++    for (uint32_t i = 1; i < temp_result_vec.size(); i += 2) {
++++      results[i / 2] = temp_result_vec[i];
++++    }
++++    for (uint32_t i = 2; i < temp_result_vec.size(); i += 2) {
++++      if (ids[i / 2 - 1] != temp_result_vec[i]) {
++++        report_error("event mismatch");
++++      }
++++    }
++++  }
++++
++++  bool is_working() { return working; }
++++
++++ private:
++++  void report_error(const std::string &) { working = false; }
++++};
++++#endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..2b37db11957487b14b30b5d50a7abd570ba4dd30
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,227 @@@@@
++++#include "benchmark_header.h"
++++#include "simdjson.h"
++++
++++using namespace simdjson;
++++
++++double url_examples_bytes{};
++++
++++std::vector<std::pair<std::string, std::string>> url_examples;
++++
++++size_t init_data(const char *source) {
++++  ondemand::parser parser;
++++  std::vector<std::pair<std::string, std::string>> answer;
++++
++++  if (!file_exists(source)) {
++++    return 0;
++++  }
++++  padded_string json = padded_string::load(source);
++++  ondemand::document doc = parser.iterate(json);
++++  for (auto element : doc.get_array()) {
++++    if (element.type() == ondemand::json_type::object) {
++++      std::string_view input;
++++      if (element["input"].get_string(true).get(input) != simdjson::SUCCESS) {
++++        printf("missing input.\n");
++++      }
++++      std::string_view base;
++++      if (element["base"].get_string(true).get(base) != simdjson::SUCCESS) {
++++      }
++++      url_examples.push_back({std::string(input), std::string(base)});
++++      url_examples_bytes += input.size() + base.size();
++++    }
++++  }
++++  return url_examples.size();
++++}
++++
++++template <class result>
++++static void BasicBench_AdaURL(benchmark::State &state) {
++++  // volatile to prevent optimizations.
++++  volatile size_t href_size = 0;
++++
++++  for (auto _ : state) {
++++    for (const std::pair<std::string, std::string> &url_strings :
++++         url_examples) {
++++      ada::result<result> base;
++++      result *base_ptr = nullptr;
++++      if (!url_strings.second.empty()) {
++++        base = ada::parse<result>(url_strings.second);
++++        if (base) {
++++          base_ptr = &*base;
++++        } else {
++++          continue;
++++        }
++++      }
++++      auto url = ada::parse(url_strings.first, base_ptr);
++++      if (url) {
++++        href_size += url->get_href().size();
++++      }
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (const std::pair<std::string, std::string> &url_strings :
++++           url_examples) {
++++        ada::result<result> base;
++++        result *base_ptr = nullptr;
++++        if (!url_strings.second.empty()) {
++++          base = ada::parse<result>(url_strings.second);
++++          if (base) {
++++            base_ptr = &*base;
++++          } else {
++++            continue;
++++          }
++++        }
++++        auto url = ada::parse(url_strings.first, base_ptr);
++++        if (url) {
++++          href_size += url->get_href().size();
++++        }
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    state.counters["cycles/url"] =
++++        aggregate.best.cycles() / std::size(url_examples);
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(url_examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.best.instructions() / aggregate.best.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / url_examples_bytes;
++++    state.counters["instructions/ns"] =
++++        aggregate.best.instructions() / aggregate.best.elapsed_ns();
++++    state.counters["GHz"] =
++++        aggregate.best.cycles() / aggregate.best.elapsed_ns();
++++    state.counters["ns/url"] =
++++        aggregate.best.elapsed_ns() / std::size(url_examples);
++++    state.counters["cycle/byte"] = aggregate.best.cycles() / url_examples_bytes;
++++  }
++++  state.counters["time/byte"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                              benchmark::Counter::kInvert);
++++  state.counters["time/url"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate |
++++                             benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate);
++++}
++++auto BasicBench_AdaURL_url = BasicBench_AdaURL<ada::url>;
++++BENCHMARK(BasicBench_AdaURL_url);
++++auto BasicBench_AdaURL_url_aggregator = BasicBench_AdaURL<ada::url_aggregator>;
++++BENCHMARK(BasicBench_AdaURL_url_aggregator);
++++
++++#if ADA_url_whatwg_ENABLED
++++
++++#include <upa/url.h>
++++
++++static void BasicBench_whatwg(benchmark::State &state) {
++++  volatile size_t success{};
++++  for (auto _ : state) {
++++    for (const std::pair<std::string, std::string> &url_strings :
++++         url_examples) {
++++      upa::url base;
++++      upa::url *base_ptr = nullptr;
++++      if (!url_strings.second.empty()) {
++++        if (upa::success(base.parse(url_strings.second, nullptr))) {
++++          base_ptr = &base;
++++        }
++++      }
++++      upa::url url;
++++      if (upa::success(url.parse(url_strings.first, base_ptr))) {
++++        success++;
++++      }
++++    }
++++  }
++++  if (collector.has_events()) {
++++    event_aggregate aggregate{};
++++    for (size_t i = 0; i < N; i++) {
++++      std::atomic_thread_fence(std::memory_order_acquire);
++++      collector.start();
++++      for (const std::pair<std::string, std::string> &url_strings :
++++           url_examples) {
++++        upa::url base;
++++        upa::url *base_ptr = nullptr;
++++        if (!url_strings.second.empty()) {
++++          if (upa::success(base.parse(url_strings.second, nullptr))) {
++++            base_ptr = &base;
++++          }
++++        }
++++        upa::url url;
++++        if (upa::success(url.parse(url_strings.first, base_ptr))) {
++++          success++;
++++        }
++++      }
++++      std::atomic_thread_fence(std::memory_order_release);
++++      event_count allocate_count = collector.end();
++++      aggregate << allocate_count;
++++    }
++++    (void)success;
++++    state.counters["cycles/url"] =
++++        aggregate.best.cycles() / std::size(url_examples);
++++    state.counters["instructions/url"] =
++++        aggregate.best.instructions() / std::size(url_examples);
++++    state.counters["instructions/cycle"] =
++++        aggregate.best.instructions() / aggregate.best.cycles();
++++    state.counters["instructions/byte"] =
++++        aggregate.best.instructions() / url_examples_bytes;
++++    state.counters["instructions/ns"] =
++++        aggregate.best.instructions() / aggregate.best.elapsed_ns();
++++    state.counters["GHz"] =
++++        aggregate.best.cycles() / aggregate.best.elapsed_ns();
++++    state.counters["ns/url"] =
++++        aggregate.best.elapsed_ns() / std::size(url_examples);
++++    state.counters["cycle/byte"] = aggregate.best.cycles() / url_examples_bytes;
++++  }
++++  state.counters["time/byte"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate |
++++                              benchmark::Counter::kInvert);
++++  state.counters["time/url"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate |
++++                             benchmark::Counter::kInvert);
++++  state.counters["speed"] = benchmark::Counter(
++++      url_examples_bytes, benchmark::Counter::kIsIterationInvariantRate);
++++  state.counters["url/s"] =
++++      benchmark::Counter(double(std::size(url_examples)),
++++                         benchmark::Counter::kIsIterationInvariantRate);
++++}
++++BENCHMARK(BasicBench_whatwg);
++++#endif  // ADA_url_whatwg_ENABLED
++++
++++int main(int argc, char **argv) {
++++  if (argc == 1 || !init_data(argv[1])) {
++++    std::cout
++++        << "pass the path to the file wpt/urltestdata.json as a parameter."
++++        << std::endl;
++++    std::cout
++++        << "E.g., './build/benchmarks/wpt_bench tests/wpt/urltestdata.json'"
++++        << std::endl;
++++    return EXIT_SUCCESS;
++++  }
++++#if defined(ADA_RUST_VERSION)
++++  benchmark::AddCustomContext("rust version ", ADA_RUST_VERSION);
++++#endif
++++#if (__APPLE__ && __aarch64__) || defined(__linux__)
++++  if (!collector.has_events()) {
++++    benchmark::AddCustomContext("performance counters",
++++                                "No privileged access (sudo may help).");
++++  }
++++#else
++++  if (!collector.has_events()) {
++++    benchmark::AddCustomContext("performance counters", "Unsupported system.");
++++  }
++++#endif
++++
++++  if (collector.has_events()) {
++++    benchmark::AddCustomContext("performance counters", "Enabled");
++++  }
++++  benchmark::Initialize(&argc, argv);
++++  benchmark::RunSpecifiedBenchmarks();
++++  benchmark::Shutdown();
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..ad6b74a8b770c6b002ee078b566c9060d15825f4
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,24 @@@@@
++++# SPDX-License-Identifier: MIT
++++#
++++# SPDX-FileCopyrightText: Copyright (c) 2019-2023 Lars Melchior and contributors
++++
++++set(CPM_DOWNLOAD_VERSION 0.38.6)
++++set(CPM_HASH_SUM "11c3fa5f1ba14f15d31c2fb63dbc8628ee133d81c8d764caad9a8db9e0bacb07")
++++
++++if(CPM_SOURCE_CACHE)
++++  set(CPM_DOWNLOAD_LOCATION "${CPM_SOURCE_CACHE}/cpm/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
++++elseif(DEFINED ENV{CPM_SOURCE_CACHE})
++++  set(CPM_DOWNLOAD_LOCATION "$ENV{CPM_SOURCE_CACHE}/cpm/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
++++else()
++++  set(CPM_DOWNLOAD_LOCATION "${CMAKE_BINARY_DIR}/cmake/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
++++endif()
++++
++++# Expand relative path. This is important if the provided path contains a tilde (~)
++++get_filename_component(CPM_DOWNLOAD_LOCATION ${CPM_DOWNLOAD_LOCATION} ABSOLUTE)
++++
++++file(DOWNLOAD
++++     https://github.com/cpm-cmake/CPM.cmake/releases/download/v${CPM_DOWNLOAD_VERSION}/CPM.cmake
++++     ${CPM_DOWNLOAD_LOCATION} EXPECTED_HASH SHA256=${CPM_HASH_SUM}
++++)
++++
++++include(${CPM_DOWNLOAD_LOCATION})
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..0c5d540b1cdaf11acc346554877db20b78e62dc3
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1 @@@@@
++++include("${CMAKE_CURRENT_LIST_DIR}/ada_targets.cmake")
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..40ba5ab50b5edec01a3d26e0d039add8724d4f9f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,62 @@@@@
++++option(ADA_LOGGING "verbose output (useful for debugging)" OFF)
++++option(ADA_DEVELOPMENT_CHECKS "development checks (useful for debugging)" OFF)
++++option(ADA_SANITIZE "Sanitize addresses" OFF)
++++if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
++++  option(ADA_SANITIZE_BOUNDS_STRICT "Sanitize bounds (strict): only for GCC" OFF)
++++endif()
++++option(ADA_SANITIZE_UNDEFINED "Sanitize undefined behaviour" OFF)
++++if(ADA_SANITIZE)
++++  message(STATUS "Address sanitizer enabled.")
++++endif()
++++if(ADA_SANITIZE_WITHOUT_LEAKS)
++++  message(STATUS "Address sanitizer (but not leak) enabled.")
++++endif()
++++if(ADA_SANITIZE_UNDEFINED)
++++  message(STATUS "Undefined sanitizer enabled.")
++++endif()
++++option(ADA_COVERAGE "Compute coverage" OFF)
++++option(ADA_TOOLS "Build cli tools (adaparse)" ON)
++++
++++if (ADA_COVERAGE)
++++    message(STATUS "You want to compute coverage. We assume that you have installed gcovr.")
++++    if (NOT CMAKE_BUILD_TYPE)
++++        set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE)
++++    endif()
++++    #######################
++++    # You need to install gcovr. Under macos, you may do so with brew.
++++    # brew install gcovr
++++    # Then build...
++++    # cmake -D ADA_COVERAGE=ON  -B buildcoverage
++++    # cmake --build buildcoverage
++++    # cmake --build buildcoverage --target ada_coverage
++++    #
++++    # open buildcoverage/ada_coverage/index.html
++++    #####################
++++    include(${PROJECT_SOURCE_DIR}/cmake/codecoverage.cmake)
++++    APPEND_COVERAGE_COMPILER_FLAGS()
++++    setup_target_for_coverage_gcovr_html(NAME ada_coverage EXECUTABLE ctest EXCLUDE "${PROJECT_SOURCE_DIR}/dependencies/*" "${PROJECT_SOURCE_DIR}/tools/*"  "${PROJECT_SOURCE_DIR}/singleheader/*" ${PROJECT_SOURCE_DIR}/include/ada/common_defs.h)
++++endif()
++++
++++if (NOT CMAKE_BUILD_TYPE)
++++  if(ADA_SANITIZE OR ADA_SANITIZE_WITHOUT_LEAKS OR ADA_SANITIZE_BOUNDS_STRICT OR ADA_SANITIZE_UNDEFINED)
++++    message(STATUS "No build type selected, default to Debug because you have sanitizers.")
++++    set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE)
++++  else()
++++    message(STATUS "No build type selected, default to Release")
++++    set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
++++  endif()
++++endif()
++++
++++set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/tools/cmake")
++++set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
++++
++++set(CMAKE_CXX_STANDARD 17)
++++set(CMAKE_CXX_STANDARD_REQUIRED ON)
++++set(CMAKE_CXX_EXTENSIONS OFF)
++++
++++find_program(CCACHE_FOUND ccache)
++++if(CCACHE_FOUND)
++++  message(STATUS "Ccache found using it as compiler launcher.")
++++  set(CMAKE_C_COMPILER_LAUNCHER ccache)
++++  set(CMAKE_CXX_COMPILER_LAUNCHER ccache)
++++endif(CCACHE_FOUND)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4576ad2d3dd750651a097b0f5d7421252f151f2c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,70 @@@@@
++++# Helper so we don't have to repeat ourselves so much
++++# Usage: add_cpp_test(testname [COMPILE_ONLY] [SOURCES a.cpp b.cpp ...] [LABELS acceptance per_implementation ...])
++++# SOURCES defaults to testname.cpp if not specified.
++++function(add_cpp_test TEST_NAME)
++++  # Parse arguments
++++  cmake_parse_arguments(PARSE_ARGV 1 ARGS "COMPILE_ONLY;LIBRARY;WILL_FAIL" "" "SOURCES;LABELS;DEPENDENCY_OF")
++++  if (NOT ARGS_SOURCES)
++++    list(APPEND ARGS_SOURCES ${TEST_NAME}.cpp)
++++  endif()
++++  if (ARGS_COMPILE_ONLY)
++++    list(APPEND ${ARGS_LABELS} compile_only)
++++  endif()
++++  if(ADA_SANITIZE)
++++    add_compile_options(-fsanitize=address -fno-omit-frame-pointer -fno-sanitize-recover=all)
++++    add_compile_definitions(ASAN_OPTIONS=detect_leaks=1)
++++  endif()
++++  if(ADA_SANITIZE_WITHOUT_LEAKS)
++++    add_compile_options(-fsanitize=address -fno-omit-frame-pointer -fno-sanitize-recover=all)
++++  endif()
++++  if(ADA_SANITIZE_BOUNDS_STRICT)
++++    add_compile_options(-fsanitize=bounds-strict -fno-sanitize-recover=all)
++++    add_link_options(-fsanitize=bounds-strict)
++++  endif()
++++  if(ADA_SANITIZE_UNDEFINED)
++++    add_compile_options(-fsanitize=undefined -fno-sanitize-recover=all)
++++    add_link_options(-fsanitize=undefined)
++++  endif()
++++  # Add the compile target
++++  if (ARGS_LIBRARY)
++++    add_library(${TEST_NAME} STATIC ${ARGS_SOURCES})
++++  else(ARGS_LIBRARY)
++++    add_executable(${TEST_NAME} ${ARGS_SOURCES})
++++  endif(ARGS_LIBRARY)
++++
++++  # Add test
++++  if (ARGS_COMPILE_ONLY OR ARGS_LIBRARY)
++++    add_test(
++++      NAME ${TEST_NAME}
++++      COMMAND ${CMAKE_COMMAND} --build . --target ${TEST_NAME} --config $<CONFIGURATION>
++++      WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
++++    )
++++    set_target_properties(${TEST_NAME} PROPERTIES EXCLUDE_FROM_ALL TRUE EXCLUDE_FROM_DEFAULT_BUILD TRUE)
++++  else()
++++    add_test(${TEST_NAME} ${TEST_NAME})
++++
++++    # Add to <label>_tests make targets
++++    foreach(label ${ARGS_LABELS})
++++      list(APPEND ARGS_DEPENDENCY_OF ${label})
++++    endforeach(label ${ARGS_LABELS})
++++  endif()
++++
++++  # Add to test labels
++++  if (ARGS_LABELS)
++++    set_property(TEST ${TEST_NAME} APPEND PROPERTY LABELS ${ARGS_LABELS})
++++  endif()
++++
++++  # Add as a dependency of given targets
++++  foreach(dependency_of ${ARGS_DEPENDENCY_OF})
++++    if (NOT TARGET ${dependency_of}_tests)
++++      add_custom_target(${dependency_of}_tests)
++++      add_dependencies(all_tests ${dependency_of}_tests)
++++    endif(NOT TARGET ${dependency_of}_tests)
++++    add_dependencies(${dependency_of}_tests ${TEST_NAME})
++++  endforeach(dependency_of ${ARGS_DEPENDENCY_OF})
++++
++++  # If it will fail, mark the test as such
++++  if (ARGS_WILL_FAIL)
++++    set_property(TEST ${TEST_NAME} PROPERTY WILL_FAIL TRUE)
++++  endif()
++++endfunction()
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..d4a039fd0e511238df1c0e0502c7588409099289
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,742 @@@@@
++++# Copyright (c) 2012 - 2017, Lars Bilke
++++# All rights reserved.
++++#
++++# Redistribution and use in source and binary forms, with or without modification,
++++# are permitted provided that the following conditions are met:
++++#
++++# 1. Redistributions of source code must retain the above copyright notice, this
++++#    list of conditions and the following disclaimer.
++++#
++++# 2. Redistributions in binary form must reproduce the above copyright notice,
++++#    this list of conditions and the following disclaimer in the documentation
++++#    and/or other materials provided with the distribution.
++++#
++++# 3. Neither the name of the copyright holder nor the names of its contributors
++++#    may be used to endorse or promote products derived from this software without
++++#    specific prior written permission.
++++#
++++# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
++++# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
++++# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
++++# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
++++# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
++++# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++++# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
++++# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
++++# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
++++# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++++#
++++# CHANGES:
++++#
++++# 2012-01-31, Lars Bilke
++++# - Enable Code Coverage
++++#
++++# 2013-09-17, Joakim Söderberg
++++# - Added support for Clang.
++++# - Some additional usage instructions.
++++#
++++# 2016-02-03, Lars Bilke
++++# - Refactored functions to use named parameters
++++#
++++# 2017-06-02, Lars Bilke
++++# - Merged with modified version from github.com/ufz/ogs
++++#
++++# 2019-05-06, Anatolii Kurotych
++++# - Remove unnecessary --coverage flag
++++#
++++# 2019-12-13, FeRD (Frank Dana)
++++# - Deprecate COVERAGE_LCOVR_EXCLUDES and COVERAGE_GCOVR_EXCLUDES lists in favor
++++#   of tool-agnostic COVERAGE_EXCLUDES variable, or EXCLUDE setup arguments.
++++# - CMake 3.4+: All excludes can be specified relative to BASE_DIRECTORY
++++# - All setup functions: accept BASE_DIRECTORY, EXCLUDE list
++++# - Set lcov basedir with -b argument
++++# - Add automatic --demangle-cpp in lcovr, if 'c++filt' is available (can be
++++#   overridden with NO_DEMANGLE option in setup_target_for_coverage_lcovr().)
++++# - Delete output dir, .info file on 'make clean'
++++# - Remove Python detection, since version mismatches will break gcovr
++++# - Minor cleanup (lowercase function names, update examples...)
++++#
++++# 2019-12-19, FeRD (Frank Dana)
++++# - Rename Lcov outputs, make filtered file canonical, fix cleanup for targets
++++#
++++# 2020-01-19, Bob Apthorpe
++++# - Added gfortran support
++++#
++++# 2020-02-17, FeRD (Frank Dana)
++++# - Make all add_custom_target()s VERBATIM to auto-escape wildcard characters
++++#   in EXCLUDEs, and remove manual escaping from gcovr targets
++++#
++++# 2021-01-19, Robin Mueller
++++# - Add CODE_COVERAGE_VERBOSE option which will allow to print out commands which are run
++++# - Added the option for users to set the GCOVR_ADDITIONAL_ARGS variable to supply additional
++++#   flags to the gcovr command
++++#
++++# 2020-05-04, Mihchael Davis
++++#     - Add -fprofile-abs-path to make gcno files contain absolute paths
++++#     - Fix BASE_DIRECTORY not working when defined
++++#     - Change BYPRODUCT from folder to index.html to stop ninja from complaining about double defines
++++#
++++# 2021-05-10, Martin Stump
++++#     - Check if the generator is multi-config before warning about non-Debug builds
++++#
++++# 2022-02-22, Marko Wehle
++++#     - Change gcovr output from -o <filename> for --xml <filename> and --html <filename> output respectively.
++++#       This will allow for Multiple Output Formats at the same time by making use of GCOVR_ADDITIONAL_ARGS, e.g. GCOVR_ADDITIONAL_ARGS "--txt".
++++#
++++# 2022-09-28, Sebastian Mueller
++++#     - fix append_coverage_compiler_flags_to_target to correctly add flags
++++#     - replace "-fprofile-arcs -ftest-coverage" with "--coverage" (equivalent)
++++#
++++# USAGE:
++++#
++++# 1. Copy this file into your cmake modules path.
++++#
++++# 2. Add the following line to your CMakeLists.txt (best inside an if-condition
++++#    using a CMake option() to enable it just optionally):
++++#      include(CodeCoverage)
++++#
++++# 3. Append necessary compiler flags for all supported source files:
++++#      append_coverage_compiler_flags()
++++#    Or for specific target:
++++#      append_coverage_compiler_flags_to_target(YOUR_TARGET_NAME)
++++#
++++# 3.a (OPTIONAL) Set appropriate optimization flags, e.g. -O0, -O1 or -Og
++++#
++++# 4. If you need to exclude additional directories from the report, specify them
++++#    using full paths in the COVERAGE_EXCLUDES variable before calling
++++#    setup_target_for_coverage_*().
++++#    Example:
++++#      set(COVERAGE_EXCLUDES
++++#          '${PROJECT_SOURCE_DIR}/src/dir1/*'
++++#          '/path/to/my/src/dir2/*')
++++#    Or, use the EXCLUDE argument to setup_target_for_coverage_*().
++++#    Example:
++++#      setup_target_for_coverage_lcov(
++++#          NAME coverage
++++#          EXECUTABLE testrunner
++++#          EXCLUDE "${PROJECT_SOURCE_DIR}/src/dir1/*" "/path/to/my/src/dir2/*")
++++#
++++# 4.a NOTE: With CMake 3.4+, COVERAGE_EXCLUDES or EXCLUDE can also be set
++++#     relative to the BASE_DIRECTORY (default: PROJECT_SOURCE_DIR)
++++#     Example:
++++#       set(COVERAGE_EXCLUDES "dir1/*")
++++#       setup_target_for_coverage_gcovr_html(
++++#           NAME coverage
++++#           EXECUTABLE testrunner
++++#           BASE_DIRECTORY "${PROJECT_SOURCE_DIR}/src"
++++#           EXCLUDE "dir2/*")
++++#
++++# 5. Use the functions described below to create a custom make target which
++++#    runs your test executable and produces a code coverage report.
++++#
++++# 6. Build a Debug build:
++++#      cmake -DCMAKE_BUILD_TYPE=Debug ..
++++#      make
++++#      make my_coverage_target
++++#
++++
++++include(CMakeParseArguments)
++++
++++option(CODE_COVERAGE_VERBOSE "Verbose information" FALSE)
++++
++++# Check prereqs
++++find_program( GCOV_PATH gcov )
++++find_program( LCOV_PATH  NAMES lcov lcov.bat lcov.exe lcov.perl)
++++find_program( FASTCOV_PATH NAMES fastcov fastcov.py )
++++find_program( GENHTML_PATH NAMES genhtml genhtml.perl genhtml.bat )
++++find_program( GCOVR_PATH gcovr PATHS ${CMAKE_SOURCE_DIR}/scripts/test)
++++find_program( CPPFILT_PATH NAMES c++filt )
++++
++++if(NOT GCOV_PATH)
++++    message(FATAL_ERROR "gcov not found! Aborting...")
++++endif() # NOT GCOV_PATH
++++
++++# Check supported compiler (Clang, GNU and Flang)
++++get_property(LANGUAGES GLOBAL PROPERTY ENABLED_LANGUAGES)
++++foreach(LANG ${LANGUAGES})
++++  if("${CMAKE_${LANG}_COMPILER_ID}" MATCHES "(Apple)?[Cc]lang")
++++    if("${CMAKE_${LANG}_COMPILER_VERSION}" VERSION_LESS 3)
++++      message(FATAL_ERROR "Clang version must be 3.0.0 or greater! Aborting...")
++++    endif()
++++  elseif(NOT "${CMAKE_${LANG}_COMPILER_ID}" MATCHES "GNU"
++++         AND NOT "${CMAKE_${LANG}_COMPILER_ID}" MATCHES "(LLVM)?[Ff]lang")
++++    message(FATAL_ERROR "Compiler is not GNU or Flang! Aborting...")
++++  endif()
++++endforeach()
++++
++++set(COVERAGE_COMPILER_FLAGS "-g --coverage"
++++    CACHE INTERNAL "")
++++if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
++++    include(CheckCXXCompilerFlag)
++++    check_cxx_compiler_flag(-fprofile-abs-path HAVE_fprofile_abs_path)
++++    if(HAVE_fprofile_abs_path)
++++        set(COVERAGE_COMPILER_FLAGS "${COVERAGE_COMPILER_FLAGS} -fprofile-abs-path")
++++    endif()
++++endif()
++++
++++set(CMAKE_Fortran_FLAGS_COVERAGE
++++    ${COVERAGE_COMPILER_FLAGS}
++++    CACHE STRING "Flags used by the Fortran compiler during coverage builds."
++++    FORCE )
++++set(CMAKE_CXX_FLAGS_COVERAGE
++++    ${COVERAGE_COMPILER_FLAGS}
++++    CACHE STRING "Flags used by the C++ compiler during coverage builds."
++++    FORCE )
++++set(CMAKE_C_FLAGS_COVERAGE
++++    ${COVERAGE_COMPILER_FLAGS}
++++    CACHE STRING "Flags used by the C compiler during coverage builds."
++++    FORCE )
++++set(CMAKE_EXE_LINKER_FLAGS_COVERAGE
++++    ""
++++    CACHE STRING "Flags used for linking binaries during coverage builds."
++++    FORCE )
++++set(CMAKE_SHARED_LINKER_FLAGS_COVERAGE
++++    ""
++++    CACHE STRING "Flags used by the shared libraries linker during coverage builds."
++++    FORCE )
++++mark_as_advanced(
++++    CMAKE_Fortran_FLAGS_COVERAGE
++++    CMAKE_CXX_FLAGS_COVERAGE
++++    CMAKE_C_FLAGS_COVERAGE
++++    CMAKE_EXE_LINKER_FLAGS_COVERAGE
++++    CMAKE_SHARED_LINKER_FLAGS_COVERAGE )
++++
++++get_property(GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
++++if(NOT (CMAKE_BUILD_TYPE STREQUAL "Debug" OR GENERATOR_IS_MULTI_CONFIG))
++++    message(WARNING "Code coverage results with an optimised (non-Debug) build may be misleading")
++++endif() # NOT (CMAKE_BUILD_TYPE STREQUAL "Debug" OR GENERATOR_IS_MULTI_CONFIG)
++++
++++if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
++++    link_libraries(gcov)
++++endif()
++++
++++# Defines a target for running and collection code coverage information
++++# Builds dependencies, runs the given executable and outputs reports.
++++# NOTE! The executable should always have a ZERO as exit code otherwise
++++# the coverage generation will not complete.
++++#
++++# setup_target_for_coverage_lcov(
++++#     NAME testrunner_coverage                    # New target name
++++#     EXECUTABLE testrunner -j ${PROCESSOR_COUNT} # Executable in PROJECT_BINARY_DIR
++++#     DEPENDENCIES testrunner                     # Dependencies to build first
++++#     BASE_DIRECTORY "../"                        # Base directory for report
++++#                                                 #  (defaults to PROJECT_SOURCE_DIR)
++++#     EXCLUDE "src/dir1/*" "src/dir2/*"           # Patterns to exclude (can be relative
++++#                                                 #  to BASE_DIRECTORY, with CMake 3.4+)
++++#     NO_DEMANGLE                                 # Don't demangle C++ symbols
++++#                                                 #  even if c++filt is found
++++# )
++++function(setup_target_for_coverage_lcov)
++++
++++    set(options NO_DEMANGLE SONARQUBE)
++++    set(oneValueArgs BASE_DIRECTORY NAME)
++++    set(multiValueArgs EXCLUDE EXECUTABLE EXECUTABLE_ARGS DEPENDENCIES LCOV_ARGS GENHTML_ARGS)
++++    cmake_parse_arguments(Coverage "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
++++
++++    if(NOT LCOV_PATH)
++++        message(FATAL_ERROR "lcov not found! Aborting...")
++++    endif() # NOT LCOV_PATH
++++
++++    if(NOT GENHTML_PATH)
++++        message(FATAL_ERROR "genhtml not found! Aborting...")
++++    endif() # NOT GENHTML_PATH
++++
++++    # Set base directory (as absolute path), or default to PROJECT_SOURCE_DIR
++++    if(DEFINED Coverage_BASE_DIRECTORY)
++++        get_filename_component(BASEDIR ${Coverage_BASE_DIRECTORY} ABSOLUTE)
++++    else()
++++        set(BASEDIR ${PROJECT_SOURCE_DIR})
++++    endif()
++++
++++    # Collect excludes (CMake 3.4+: Also compute absolute paths)
++++    set(LCOV_EXCLUDES "")
++++    foreach(EXCLUDE ${Coverage_EXCLUDE} ${COVERAGE_EXCLUDES} ${COVERAGE_LCOV_EXCLUDES})
++++        if(CMAKE_VERSION VERSION_GREATER 3.4)
++++            get_filename_component(EXCLUDE ${EXCLUDE} ABSOLUTE BASE_DIR ${BASEDIR})
++++        endif()
++++        list(APPEND LCOV_EXCLUDES "${EXCLUDE}")
++++    endforeach()
++++    list(REMOVE_DUPLICATES LCOV_EXCLUDES)
++++
++++    # Conditional arguments
++++    if(CPPFILT_PATH AND NOT ${Coverage_NO_DEMANGLE})
++++      set(GENHTML_EXTRA_ARGS "--demangle-cpp")
++++    endif()
++++
++++    # Setting up commands which will be run to generate coverage data.
++++    # Cleanup lcov
++++    set(LCOV_CLEAN_CMD
++++        ${LCOV_PATH} ${Coverage_LCOV_ARGS} --gcov-tool ${GCOV_PATH} -directory .
++++        -b ${BASEDIR} --zerocounters
++++    )
++++    # Create baseline to make sure untouched files show up in the report
++++    set(LCOV_BASELINE_CMD
++++        ${LCOV_PATH} ${Coverage_LCOV_ARGS} --gcov-tool ${GCOV_PATH} -c -i -d . -b
++++        ${BASEDIR} -o ${Coverage_NAME}.base
++++    )
++++    # Run tests
++++    set(LCOV_EXEC_TESTS_CMD
++++        ${Coverage_EXECUTABLE} ${Coverage_EXECUTABLE_ARGS}
++++    )
++++    # Capturing lcov counters and generating report
++++    set(LCOV_CAPTURE_CMD
++++        ${LCOV_PATH} ${Coverage_LCOV_ARGS} --gcov-tool ${GCOV_PATH} --directory . -b
++++        ${BASEDIR} --capture --output-file ${Coverage_NAME}.capture
++++    )
++++    # add baseline counters
++++    set(LCOV_BASELINE_COUNT_CMD
++++        ${LCOV_PATH} ${Coverage_LCOV_ARGS} --gcov-tool ${GCOV_PATH} -a ${Coverage_NAME}.base
++++        -a ${Coverage_NAME}.capture --output-file ${Coverage_NAME}.total
++++    )
++++    # filter collected data to final coverage report
++++    set(LCOV_FILTER_CMD
++++        ${LCOV_PATH} ${Coverage_LCOV_ARGS} --gcov-tool ${GCOV_PATH} --remove
++++        ${Coverage_NAME}.total ${LCOV_EXCLUDES} --output-file ${Coverage_NAME}.info
++++    )
++++    # Generate HTML output
++++    set(LCOV_GEN_HTML_CMD
++++        ${GENHTML_PATH} ${GENHTML_EXTRA_ARGS} ${Coverage_GENHTML_ARGS} -o
++++        ${Coverage_NAME} ${Coverage_NAME}.info
++++    )
++++    if(${Coverage_SONARQUBE})
++++        # Generate SonarQube output
++++        set(GCOVR_XML_CMD
++++            ${GCOVR_PATH} --sonarqube ${Coverage_NAME}_sonarqube.xml -r ${BASEDIR} ${GCOVR_ADDITIONAL_ARGS}
++++            ${GCOVR_EXCLUDE_ARGS} --object-directory=${PROJECT_BINARY_DIR}
++++        )
++++        set(GCOVR_XML_CMD_COMMAND
++++            COMMAND ${GCOVR_XML_CMD}
++++        )
++++        set(GCOVR_XML_CMD_BYPRODUCTS ${Coverage_NAME}_sonarqube.xml)
++++        set(GCOVR_XML_CMD_COMMENT COMMENT "SonarQube code coverage info report saved in ${Coverage_NAME}_sonarqube.xml.")
++++    endif()
++++
++++
++++    if(CODE_COVERAGE_VERBOSE)
++++        message(STATUS "Executed command report")
++++        message(STATUS "Command to clean up lcov: ")
++++        string(REPLACE ";" " " LCOV_CLEAN_CMD_SPACED "${LCOV_CLEAN_CMD}")
++++        message(STATUS "${LCOV_CLEAN_CMD_SPACED}")
++++
++++        message(STATUS "Command to create baseline: ")
++++        string(REPLACE ";" " " LCOV_BASELINE_CMD_SPACED "${LCOV_BASELINE_CMD}")
++++        message(STATUS "${LCOV_BASELINE_CMD_SPACED}")
++++
++++        message(STATUS "Command to run the tests: ")
++++        string(REPLACE ";" " " LCOV_EXEC_TESTS_CMD_SPACED "${LCOV_EXEC_TESTS_CMD}")
++++        message(STATUS "${LCOV_EXEC_TESTS_CMD_SPACED}")
++++
++++        message(STATUS "Command to capture counters and generate report: ")
++++        string(REPLACE ";" " " LCOV_CAPTURE_CMD_SPACED "${LCOV_CAPTURE_CMD}")
++++        message(STATUS "${LCOV_CAPTURE_CMD_SPACED}")
++++
++++        message(STATUS "Command to add baseline counters: ")
++++        string(REPLACE ";" " " LCOV_BASELINE_COUNT_CMD_SPACED "${LCOV_BASELINE_COUNT_CMD}")
++++        message(STATUS "${LCOV_BASELINE_COUNT_CMD_SPACED}")
++++
++++        message(STATUS "Command to filter collected data: ")
++++        string(REPLACE ";" " " LCOV_FILTER_CMD_SPACED "${LCOV_FILTER_CMD}")
++++        message(STATUS "${LCOV_FILTER_CMD_SPACED}")
++++
++++        message(STATUS "Command to generate lcov HTML output: ")
++++        string(REPLACE ";" " " LCOV_GEN_HTML_CMD_SPACED "${LCOV_GEN_HTML_CMD}")
++++        message(STATUS "${LCOV_GEN_HTML_CMD_SPACED}")
++++
++++        if(${Coverage_SONARQUBE})
++++            message(STATUS "Command to generate SonarQube XML output: ")
++++            string(REPLACE ";" " " GCOVR_XML_CMD_SPACED "${GCOVR_XML_CMD}")
++++            message(STATUS "${GCOVR_XML_CMD_SPACED}")
++++        endif()
++++    endif()
++++
++++    # Setup target
++++    add_custom_target(${Coverage_NAME}
++++        COMMAND ${LCOV_CLEAN_CMD}
++++        COMMAND ${LCOV_BASELINE_CMD}
++++        COMMAND ${LCOV_EXEC_TESTS_CMD}
++++        COMMAND ${LCOV_CAPTURE_CMD}
++++        COMMAND ${LCOV_BASELINE_COUNT_CMD}
++++        COMMAND ${LCOV_FILTER_CMD}
++++        COMMAND ${LCOV_GEN_HTML_CMD}
++++        ${GCOVR_XML_CMD_COMMAND}
++++
++++        # Set output files as GENERATED (will be removed on 'make clean')
++++        BYPRODUCTS
++++            ${Coverage_NAME}.base
++++            ${Coverage_NAME}.capture
++++            ${Coverage_NAME}.total
++++            ${Coverage_NAME}.info
++++            ${GCOVR_XML_CMD_BYPRODUCTS}
++++            ${Coverage_NAME}/index.html
++++        WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
++++        DEPENDS ${Coverage_DEPENDENCIES}
++++        VERBATIM # Protect arguments to commands
++++        COMMENT "Resetting code coverage counters to zero.\nProcessing code coverage counters and generating report."
++++    )
++++
++++    # Show where to find the lcov info report
++++    add_custom_command(TARGET ${Coverage_NAME} POST_BUILD
++++        COMMAND ;
++++        COMMENT "Lcov code coverage info report saved in ${Coverage_NAME}.info."
++++        ${GCOVR_XML_CMD_COMMENT}
++++    )
++++
++++    # Show info where to find the report
++++    add_custom_command(TARGET ${Coverage_NAME} POST_BUILD
++++        COMMAND ;
++++        COMMENT "Open ./${Coverage_NAME}/index.html in your browser to view the coverage report."
++++    )
++++
++++endfunction() # setup_target_for_coverage_lcov
++++
++++# Defines a target for running and collection code coverage information
++++# Builds dependencies, runs the given executable and outputs reports.
++++# NOTE! The executable should always have a ZERO as exit code otherwise
++++# the coverage generation will not complete.
++++#
++++# setup_target_for_coverage_gcovr_xml(
++++#     NAME ctest_coverage                    # New target name
++++#     EXECUTABLE ctest -j ${PROCESSOR_COUNT} # Executable in PROJECT_BINARY_DIR
++++#     DEPENDENCIES executable_target         # Dependencies to build first
++++#     BASE_DIRECTORY "../"                   # Base directory for report
++++#                                            #  (defaults to PROJECT_SOURCE_DIR)
++++#     EXCLUDE "src/dir1/*" "src/dir2/*"      # Patterns to exclude (can be relative
++++#                                            #  to BASE_DIRECTORY, with CMake 3.4+)
++++# )
++++# The user can set the variable GCOVR_ADDITIONAL_ARGS to supply additional flags to the
++++# GCVOR command.
++++function(setup_target_for_coverage_gcovr_xml)
++++
++++    set(options NONE)
++++    set(oneValueArgs BASE_DIRECTORY NAME)
++++    set(multiValueArgs EXCLUDE EXECUTABLE EXECUTABLE_ARGS DEPENDENCIES)
++++    cmake_parse_arguments(Coverage "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
++++
++++    if(NOT GCOVR_PATH)
++++        message(FATAL_ERROR "gcovr not found! Aborting...")
++++    endif() # NOT GCOVR_PATH
++++
++++    # Set base directory (as absolute path), or default to PROJECT_SOURCE_DIR
++++    if(DEFINED Coverage_BASE_DIRECTORY)
++++        get_filename_component(BASEDIR ${Coverage_BASE_DIRECTORY} ABSOLUTE)
++++    else()
++++        set(BASEDIR ${PROJECT_SOURCE_DIR})
++++    endif()
++++
++++    # Collect excludes (CMake 3.4+: Also compute absolute paths)
++++    set(GCOVR_EXCLUDES "")
++++    foreach(EXCLUDE ${Coverage_EXCLUDE} ${COVERAGE_EXCLUDES} ${COVERAGE_GCOVR_EXCLUDES})
++++        if(CMAKE_VERSION VERSION_GREATER 3.4)
++++            get_filename_component(EXCLUDE ${EXCLUDE} ABSOLUTE BASE_DIR ${BASEDIR})
++++        endif()
++++        list(APPEND GCOVR_EXCLUDES "${EXCLUDE}")
++++    endforeach()
++++    list(REMOVE_DUPLICATES GCOVR_EXCLUDES)
++++
++++    # Combine excludes to several -e arguments
++++    set(GCOVR_EXCLUDE_ARGS "")
++++    foreach(EXCLUDE ${GCOVR_EXCLUDES})
++++        list(APPEND GCOVR_EXCLUDE_ARGS "-e")
++++        list(APPEND GCOVR_EXCLUDE_ARGS "${EXCLUDE}")
++++    endforeach()
++++
++++    # Set up commands which will be run to generate coverage data
++++    # Run tests
++++    set(GCOVR_XML_EXEC_TESTS_CMD
++++        ${Coverage_EXECUTABLE} ${Coverage_EXECUTABLE_ARGS}
++++    )
++++    # Running gcovr
++++    set(GCOVR_XML_CMD
++++        ${GCOVR_PATH} --xml ${Coverage_NAME}.xml -r ${BASEDIR} ${GCOVR_ADDITIONAL_ARGS}
++++        ${GCOVR_EXCLUDE_ARGS} --object-directory=${PROJECT_BINARY_DIR}
++++    )
++++
++++    if(CODE_COVERAGE_VERBOSE)
++++        message(STATUS "Executed command report")
++++
++++        message(STATUS "Command to run tests: ")
++++        string(REPLACE ";" " " GCOVR_XML_EXEC_TESTS_CMD_SPACED "${GCOVR_XML_EXEC_TESTS_CMD}")
++++        message(STATUS "${GCOVR_XML_EXEC_TESTS_CMD_SPACED}")
++++
++++        message(STATUS "Command to generate gcovr XML coverage data: ")
++++        string(REPLACE ";" " " GCOVR_XML_CMD_SPACED "${GCOVR_XML_CMD}")
++++        message(STATUS "${GCOVR_XML_CMD_SPACED}")
++++    endif()
++++
++++    add_custom_target(${Coverage_NAME}
++++        COMMAND ${GCOVR_XML_EXEC_TESTS_CMD}
++++        COMMAND ${GCOVR_XML_CMD}
++++
++++        BYPRODUCTS ${Coverage_NAME}.xml
++++        WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
++++        DEPENDS ${Coverage_DEPENDENCIES}
++++        VERBATIM # Protect arguments to commands
++++        COMMENT "Running gcovr to produce Cobertura code coverage report."
++++    )
++++
++++    # Show info where to find the report
++++    add_custom_command(TARGET ${Coverage_NAME} POST_BUILD
++++        COMMAND ;
++++        COMMENT "Cobertura code coverage report saved in ${Coverage_NAME}.xml."
++++    )
++++endfunction() # setup_target_for_coverage_gcovr_xml
++++
++++# Defines a target for running and collection code coverage information
++++# Builds dependencies, runs the given executable and outputs reports.
++++# NOTE! The executable should always have a ZERO as exit code otherwise
++++# the coverage generation will not complete.
++++#
++++# setup_target_for_coverage_gcovr_html(
++++#     NAME ctest_coverage                    # New target name
++++#     EXECUTABLE ctest -j ${PROCESSOR_COUNT} # Executable in PROJECT_BINARY_DIR
++++#     DEPENDENCIES executable_target         # Dependencies to build first
++++#     BASE_DIRECTORY "../"                   # Base directory for report
++++#                                            #  (defaults to PROJECT_SOURCE_DIR)
++++#     EXCLUDE "src/dir1/*" "src/dir2/*"      # Patterns to exclude (can be relative
++++#                                            #  to BASE_DIRECTORY, with CMake 3.4+)
++++# )
++++# The user can set the variable GCOVR_ADDITIONAL_ARGS to supply additional flags to the
++++# GCVOR command.
++++function(setup_target_for_coverage_gcovr_html)
++++
++++    set(options NONE)
++++    set(oneValueArgs BASE_DIRECTORY NAME)
++++    set(multiValueArgs EXCLUDE EXECUTABLE EXECUTABLE_ARGS DEPENDENCIES)
++++    cmake_parse_arguments(Coverage "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
++++
++++    if(NOT GCOVR_PATH)
++++        message(FATAL_ERROR "gcovr not found! Aborting...")
++++    endif() # NOT GCOVR_PATH
++++
++++    # Set base directory (as absolute path), or default to PROJECT_SOURCE_DIR
++++    if(DEFINED Coverage_BASE_DIRECTORY)
++++        get_filename_component(BASEDIR ${Coverage_BASE_DIRECTORY} ABSOLUTE)
++++    else()
++++        set(BASEDIR ${PROJECT_SOURCE_DIR})
++++    endif()
++++
++++    # Collect excludes (CMake 3.4+: Also compute absolute paths)
++++    set(GCOVR_EXCLUDES "")
++++    foreach(EXCLUDE ${Coverage_EXCLUDE} ${COVERAGE_EXCLUDES} ${COVERAGE_GCOVR_EXCLUDES})
++++        if(CMAKE_VERSION VERSION_GREATER 3.4)
++++            get_filename_component(EXCLUDE ${EXCLUDE} ABSOLUTE BASE_DIR ${BASEDIR})
++++        endif()
++++        list(APPEND GCOVR_EXCLUDES "${EXCLUDE}")
++++    endforeach()
++++    list(REMOVE_DUPLICATES GCOVR_EXCLUDES)
++++
++++    # Combine excludes to several -e arguments
++++    set(GCOVR_EXCLUDE_ARGS "")
++++    foreach(EXCLUDE ${GCOVR_EXCLUDES})
++++        list(APPEND GCOVR_EXCLUDE_ARGS "-e")
++++        list(APPEND GCOVR_EXCLUDE_ARGS "${EXCLUDE}")
++++    endforeach()
++++
++++    # Set up commands which will be run to generate coverage data
++++    # Run tests
++++    set(GCOVR_HTML_EXEC_TESTS_CMD
++++        ${Coverage_EXECUTABLE} ${Coverage_EXECUTABLE_ARGS}
++++    )
++++    # Create folder
++++    set(GCOVR_HTML_FOLDER_CMD
++++        ${CMAKE_COMMAND} -E make_directory ${PROJECT_BINARY_DIR}/${Coverage_NAME}
++++    )
++++    # Running gcovr
++++    set(GCOVR_HTML_CMD
++++        ${GCOVR_PATH} --html ${Coverage_NAME}/index.html --html-details -r ${BASEDIR} ${GCOVR_ADDITIONAL_ARGS}
++++        ${GCOVR_EXCLUDE_ARGS} --object-directory=${PROJECT_BINARY_DIR}
++++    )
++++
++++    if(CODE_COVERAGE_VERBOSE)
++++        message(STATUS "Executed command report")
++++
++++        message(STATUS "Command to run tests: ")
++++        string(REPLACE ";" " " GCOVR_HTML_EXEC_TESTS_CMD_SPACED "${GCOVR_HTML_EXEC_TESTS_CMD}")
++++        message(STATUS "${GCOVR_HTML_EXEC_TESTS_CMD_SPACED}")
++++
++++        message(STATUS "Command to create a folder: ")
++++        string(REPLACE ";" " " GCOVR_HTML_FOLDER_CMD_SPACED "${GCOVR_HTML_FOLDER_CMD}")
++++        message(STATUS "${GCOVR_HTML_FOLDER_CMD_SPACED}")
++++
++++        message(STATUS "Command to generate gcovr HTML coverage data: ")
++++        string(REPLACE ";" " " GCOVR_HTML_CMD_SPACED "${GCOVR_HTML_CMD}")
++++        message(STATUS "${GCOVR_HTML_CMD_SPACED}")
++++    endif()
++++
++++    add_custom_target(${Coverage_NAME}
++++        COMMAND ${GCOVR_HTML_EXEC_TESTS_CMD}
++++        COMMAND ${GCOVR_HTML_FOLDER_CMD}
++++        COMMAND ${GCOVR_HTML_CMD}
++++
++++        BYPRODUCTS ${PROJECT_BINARY_DIR}/${Coverage_NAME}/index.html  # report directory
++++        WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
++++        DEPENDS ${Coverage_DEPENDENCIES}
++++        VERBATIM # Protect arguments to commands
++++        COMMENT "Running gcovr to produce HTML code coverage report."
++++    )
++++
++++    # Show info where to find the report
++++    add_custom_command(TARGET ${Coverage_NAME} POST_BUILD
++++        COMMAND ;
++++        COMMENT "Open ./${Coverage_NAME}/index.html in your browser to view the coverage report."
++++    )
++++
++++endfunction() # setup_target_for_coverage_gcovr_html
++++
++++# Defines a target for running and collection code coverage information
++++# Builds dependencies, runs the given executable and outputs reports.
++++# NOTE! The executable should always have a ZERO as exit code otherwise
++++# the coverage generation will not complete.
++++#
++++# setup_target_for_coverage_fastcov(
++++#     NAME testrunner_coverage                    # New target name
++++#     EXECUTABLE testrunner -j ${PROCESSOR_COUNT} # Executable in PROJECT_BINARY_DIR
++++#     DEPENDENCIES testrunner                     # Dependencies to build first
++++#     BASE_DIRECTORY "../"                        # Base directory for report
++++#                                                 #  (defaults to PROJECT_SOURCE_DIR)
++++#     EXCLUDE "src/dir1/" "src/dir2/"             # Patterns to exclude.
++++#     NO_DEMANGLE                                 # Don't demangle C++ symbols
++++#                                                 #  even if c++filt is found
++++#     SKIP_HTML                                   # Don't create html report
++++#     POST_CMD perl -i -pe s!${PROJECT_SOURCE_DIR}/!!g ctest_coverage.json  # E.g. for stripping source dir from file paths
++++# )
++++function(setup_target_for_coverage_fastcov)
++++
++++    set(options NO_DEMANGLE SKIP_HTML)
++++    set(oneValueArgs BASE_DIRECTORY NAME)
++++    set(multiValueArgs EXCLUDE EXECUTABLE EXECUTABLE_ARGS DEPENDENCIES FASTCOV_ARGS GENHTML_ARGS POST_CMD)
++++    cmake_parse_arguments(Coverage "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
++++
++++    if(NOT FASTCOV_PATH)
++++        message(FATAL_ERROR "fastcov not found! Aborting...")
++++    endif()
++++
++++    if(NOT Coverage_SKIP_HTML AND NOT GENHTML_PATH)
++++        message(FATAL_ERROR "genhtml not found! Aborting...")
++++    endif()
++++
++++    # Set base directory (as absolute path), or default to PROJECT_SOURCE_DIR
++++    if(Coverage_BASE_DIRECTORY)
++++        get_filename_component(BASEDIR ${Coverage_BASE_DIRECTORY} ABSOLUTE)
++++    else()
++++        set(BASEDIR ${PROJECT_SOURCE_DIR})
++++    endif()
++++
++++    # Collect excludes (Patterns, not paths, for fastcov)
++++    set(FASTCOV_EXCLUDES "")
++++    foreach(EXCLUDE ${Coverage_EXCLUDE} ${COVERAGE_EXCLUDES} ${COVERAGE_FASTCOV_EXCLUDES})
++++        list(APPEND FASTCOV_EXCLUDES "${EXCLUDE}")
++++    endforeach()
++++    list(REMOVE_DUPLICATES FASTCOV_EXCLUDES)
++++
++++    # Conditional arguments
++++    if(CPPFILT_PATH AND NOT ${Coverage_NO_DEMANGLE})
++++        set(GENHTML_EXTRA_ARGS "--demangle-cpp")
++++    endif()
++++
++++    # Set up commands which will be run to generate coverage data
++++    set(FASTCOV_EXEC_TESTS_CMD ${Coverage_EXECUTABLE} ${Coverage_EXECUTABLE_ARGS})
++++
++++    set(FASTCOV_CAPTURE_CMD ${FASTCOV_PATH} ${Coverage_FASTCOV_ARGS} --gcov ${GCOV_PATH}
++++        --search-directory ${BASEDIR}
++++        --process-gcno
++++        --output ${Coverage_NAME}.json
++++        --exclude ${FASTCOV_EXCLUDES}
++++    )
++++
++++    set(FASTCOV_CONVERT_CMD ${FASTCOV_PATH}
++++        -C ${Coverage_NAME}.json --lcov --output ${Coverage_NAME}.info
++++    )
++++
++++    if(Coverage_SKIP_HTML)
++++        set(FASTCOV_HTML_CMD ";")
++++    else()
++++        set(FASTCOV_HTML_CMD ${GENHTML_PATH} ${GENHTML_EXTRA_ARGS} ${Coverage_GENHTML_ARGS}
++++            -o ${Coverage_NAME} ${Coverage_NAME}.info
++++        )
++++    endif()
++++
++++    set(FASTCOV_POST_CMD ";")
++++    if(Coverage_POST_CMD)
++++        set(FASTCOV_POST_CMD ${Coverage_POST_CMD})
++++    endif()
++++
++++    if(CODE_COVERAGE_VERBOSE)
++++        message(STATUS "Code coverage commands for target ${Coverage_NAME} (fastcov):")
++++
++++        message("   Running tests:")
++++        string(REPLACE ";" " " FASTCOV_EXEC_TESTS_CMD_SPACED "${FASTCOV_EXEC_TESTS_CMD}")
++++        message("     ${FASTCOV_EXEC_TESTS_CMD_SPACED}")
++++
++++        message("   Capturing fastcov counters and generating report:")
++++        string(REPLACE ";" " " FASTCOV_CAPTURE_CMD_SPACED "${FASTCOV_CAPTURE_CMD}")
++++        message("     ${FASTCOV_CAPTURE_CMD_SPACED}")
++++
++++        message("   Converting fastcov .json to lcov .info:")
++++        string(REPLACE ";" " " FASTCOV_CONVERT_CMD_SPACED "${FASTCOV_CONVERT_CMD}")
++++        message("     ${FASTCOV_CONVERT_CMD_SPACED}")
++++
++++        if(NOT Coverage_SKIP_HTML)
++++            message("   Generating HTML report: ")
++++            string(REPLACE ";" " " FASTCOV_HTML_CMD_SPACED "${FASTCOV_HTML_CMD}")
++++            message("     ${FASTCOV_HTML_CMD_SPACED}")
++++        endif()
++++        if(Coverage_POST_CMD)
++++            message("   Running post command: ")
++++            string(REPLACE ";" " " FASTCOV_POST_CMD_SPACED "${FASTCOV_POST_CMD}")
++++            message("     ${FASTCOV_POST_CMD_SPACED}")
++++        endif()
++++    endif()
++++
++++    # Setup target
++++    add_custom_target(${Coverage_NAME}
++++
++++        # Cleanup fastcov
++++        COMMAND ${FASTCOV_PATH} ${Coverage_FASTCOV_ARGS} --gcov ${GCOV_PATH}
++++            --search-directory ${BASEDIR}
++++            --zerocounters
++++
++++        COMMAND ${FASTCOV_EXEC_TESTS_CMD}
++++        COMMAND ${FASTCOV_CAPTURE_CMD}
++++        COMMAND ${FASTCOV_CONVERT_CMD}
++++        COMMAND ${FASTCOV_HTML_CMD}
++++        COMMAND ${FASTCOV_POST_CMD}
++++
++++        # Set output files as GENERATED (will be removed on 'make clean')
++++        BYPRODUCTS
++++             ${Coverage_NAME}.info
++++             ${Coverage_NAME}.json
++++             ${Coverage_NAME}/index.html  # report directory
++++
++++        WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
++++        DEPENDS ${Coverage_DEPENDENCIES}
++++        VERBATIM # Protect arguments to commands
++++        COMMENT "Resetting code coverage counters to zero. Processing code coverage counters and generating report."
++++    )
++++
++++    set(INFO_MSG "fastcov code coverage info report saved in ${Coverage_NAME}.info and ${Coverage_NAME}.json.")
++++    if(NOT Coverage_SKIP_HTML)
++++        string(APPEND INFO_MSG " Open ${PROJECT_BINARY_DIR}/${Coverage_NAME}/index.html in your browser to view the coverage report.")
++++    endif()
++++    # Show where to find the fastcov info report
++++    add_custom_command(TARGET ${Coverage_NAME} POST_BUILD
++++        COMMAND ${CMAKE_COMMAND} -E echo ${INFO_MSG}
++++    )
++++
++++endfunction() # setup_target_for_coverage_fastcov
++++
++++function(append_coverage_compiler_flags)
++++    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COVERAGE_COMPILER_FLAGS}" PARENT_SCOPE)
++++    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COVERAGE_COMPILER_FLAGS}" PARENT_SCOPE)
++++    set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${COVERAGE_COMPILER_FLAGS}" PARENT_SCOPE)
++++    message(STATUS "Appending code coverage compiler flags: ${COVERAGE_COMPILER_FLAGS}")
++++endfunction() # append_coverage_compiler_flags
++++
++++# Setup coverage for specific library
++++function(append_coverage_compiler_flags_to_target name)
++++    separate_arguments(_flag_list NATIVE_COMMAND "${COVERAGE_COMPILER_FLAGS}")
++++    target_compile_options(${name} PRIVATE ${_flag_list})
++++    if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
++++        target_link_libraries(${name} PRIVATE gcov)
++++    endif()
++++endfunction()
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..cbf918deb40a405e246aaefc397cff1656399f05
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,19 @@@@@
++++# Release Document
++++
++++## Preparation
++++
++++In order to release a new version of Ada, please update the
++++following documents:
++++
++++- [CmakeLists.txt](../CmakeLists.txt)
++++- [Doxygen](../doxygen)
++++- [ada_version.h](../include/ada/ada_version.h)
++++
++++## Release
++++
++++- Run amalgation script using `./singleheader/amalgamate.py`
++++- Create a Github release with following format: `v1.0.0`
++++- Upload the following documents to the release
++++  - `./singleheader/ada.h`
++++  - `./singleheader/ada.cpp`
++++  - `./singleheader/singleheader.zip`
diff --cc ada/docs/cli.md
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..649300bc22184737ac4726d5be6f2ce2747fe19c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,204 @@@@@
++++## Command line interface (CLI)
++++
++++The adaparse command tool takes URL strings (ASCII/UTF-8) and it validates, normalizes and queries them efficiently.
++++
++++### Command line options
++++
++++- Options:
++++    - `-d`, `--diagram`: Print a diagram of the result
++++    - `-u`, `--url`: URL Parameter (required)
++++    - `-h`, `--help`: Print usage
++++    - `-g`, `--get`: Get a specific part of the URL (e.g., 'origin', 'host', etc. as mentioned in the examples above)
++++    - `-b`, `--benchmark`: Run benchmark for piped file functions
++++    - `-p`, `--path`: Process all the URLs in a given file
++++    - `-o`, `--output`: Output the results of the parsing to a file
++++
++++### Performance
++++
++++Our `adaparse` tool may outperform other popular alternatives. We offer a [collection of
++++sets of URLs](https://github.com/ada-url/url-various-datasets) for benchmarking purposes.
++++The following results are on a MacBook Air 2022 (M2 processor) using LLVM 14. We
++++compare against [trurl](https://github.com/curl/trurl) version 0.6 (libcurl/7.87.0).
++++
++++<details>
++++<summary>With the wikipedia_100k dataset, we get that adaparse can generate normalized URLs about **three times faster than trurl**.</summary>
++++```
++++time cat url-various-datasets/wikipedia/wikipedia_100k.txt| trurl --url-file - &> /dev/null   1
++++cat url-various-datasets/wikipedia/wikipedia_100k.txt  0,00s user 0,01s system 3% cpu 0,179 total
++++trurl --url-file - &> /dev/null  0,14s user 0,03s system 98% cpu 0,180 total
++++
++++
++++time cat url-various-datasets/wikipedia/wikipedia_100k.txt| ./build/tools/cli/adaparse -g href &> /dev/null
++++cat url-various-datasets/wikipedia/wikipedia_100k.txt  0,00s user 0,00s system 10% cpu 0,056 total
++++./build/tools/cli/adaparse -g href &> /dev/null  0,05s user 0,00s system 93% cpu 0,055 total
++++```
++++</details>
++++
++++<details>
++++<summary>With the top100 dataset, the adaparse tool is **twice as fast as the trurl**.</summary>
++++```
++++time cat url-various-datasets/top100/top100.txt| trurl --url-file - &> /dev/null              1
++++cat url-various-datasets/top100/top100.txt  0,00s user 0,00s system 4% cpu 0,115 total
++++trurl --url-file - &> /dev/null  0,09s user 0,02s system 97% cpu 0,113 total
++++
++++time cat url-various-datasets/top100/top100.txt| ./build/tools/cli/adaparse -g href &> /dev/null
++++cat url-various-datasets/top100/top100.txt  0,00s user 0,01s system 11% cpu 0,062 total
++++./build/tools/cli/adaparse -g href &> /dev/null  0,05s user 0,00s system 94% cpu 0,061 total
++++```
++++</details>
++++
++++
++++#### Comparison
++++
++++```
++++wikipedia 100k
++++ada ▏   55 ms ███████▋
++++trurl ▏  180 ms █████████████████████████
++++
++++top100
++++ada ▏   61 ms █████████████▍
++++trurl ▏  113 ms █████████████████████████
++++```
++++
++++The results will vary depending on your system. We invite you to run your own benchmarks.
++++
++++### Usage/Examples
++++
++++#### Well-formatted URL
++++
++++```bash 
++++adaparse "http://www.google.com"
++++```
++++Output: 
++++
++++```
++++http://www.google.com
++++```
++++
++++#### Diagram
++++
++++```bash
++++adaparse -d http://www.google.com/bal\?a\=\=11\#fddfds
++++```
++++
++++Output:
++++
++++```
++++ http://www.google.com/bal?a==11#fddfds [38 bytes]
++++      | |             |   |     |
++++      | |             |   |     `------ hash_start
++++      | |             |   `------------ search_start 25
++++      | |             `---------------- pathname_start 21
++++      | |             `---------------- host_end 21
++++      | `------------------------------ host_start 7
++++      | `------------------------------ username_end 7
++++      `-------------------------------- protocol_end 5
++++```
++++
++++#### Pipe Operator
++++
++++Ada can process URLs from piped input, making it easy to integrate with other command-line tools
++++that produce ASCII or UTF-8 outputs. Here's an example of how to pipe the output of another command into Ada.
++++Given a list of URLs, one by line, we may query the normalized URL string (`href`) and detect any malformed URL:
++++
++++```bash
++++cat dragonball_url.txt | adaparse --get href
++++```
++++
++++Output:
++++```
++++http://www.goku.com
++++http://www.vegeta.com
++++http://www.gohan.com
++++
++++```
++++
++++Our tool supports the passing of arguments to each URL in said file so
++++that you can query for the hash, the host, the protocol, the port, 
++++the origin, the search, the password, the username, the pathname
++++or the hostname:
++++
++++```bash
++++cat dragonball_url.txt  | adaparse -g host
++++```
++++
++++Output:
++++```
++++www.goku.com
++++www.vegeta.com
++++www.gohan.com
++++```
++++
++++If you omit `-g`, it will only provide a list of invalid URLs. This might be
++++useful if you want to valid quickly a list of URLs.
++++
++++### Benchmark Runner
++++
++++The benchmark flag can be used to output the time it takes to process piped input:
++++
++++```bash
++++cat wikipedia_100k.txt | adaparse -b
++++```
++++
++++Output:
++++```
++++Invalid URL: 1968:_Die_Kinder_der_Diktatur
++++Invalid URL: 58957:_The_Bluegrass_Guitar_Collection
++++Invalid URL: 650luc:_Gangsta_Grillz
++++Invalid URL: Q4%3A57
++++Invalid URL: Q10%3A47
++++Invalid URL: Q5%3A45
++++Invalid URL: Q40%3A28
++++Invalid URL: 1:1_scale
++++Invalid URL: 1893:_A_World's_Fair_Mystery
++++Invalid URL: 12:51_(Krissy_%26_Ericka_song)
++++Invalid URL: 111:_A_Nelson_Number
++++Invalid URL: 7:00AM-8%3A00AM_(24_season_5)
++++Invalid URL: Q53%3A31
++++read 5209265 bytes in 32819917 ns using 100000 lines, used 160 loads
++++0.1587226744053009 GB/s
++++```
++++
++++#### Saving result to file system
++++
++++There is an option to output to a file on disk:
++++
++++```bash 
++++cat wikipedia_100k.txt | adaparse -o wiki_output.txt
++++```
++++
++++As well as read in from a file on disk without going through cat:
++++
++++```bash
++++adaparse -p wikipedia_top_100_txt
++++```
++++
++++#### Advanced Usage
++++
++++You may also combine different flags together. E.g. Say one wishes to extract only the host from URLs stored in wikipedia.txt and output it to the test_write.txt file:
++++
++++```bash
++++adaparse" -p wikipedia_top100.txt -o test_write.txt -g host -b
++++```
++++
++++Output:
++++```bash
++++read 5209265 bytes in 26737131 ns using 100000 lines, total_bytes is 5209265 used 160 loads
++++0.19483260937757307 GB/s(base)
++++```
++++
++++Content of test_write.txt:
++++```bash
++++(---snip---)
++++en.wikipedia.org
++++en.wikipedia.org
++++en.wikipedia.org
++++en.wikipedia.org
++++en.wikipedia.org
++++en.wikipedia.org
++++en.wikipedia.org
++++en.wikipedia.org
++++en.wikipedia.org
++++en.wikipedia.org
++++(---snip---)
++++```
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..96cecd01f0aadd1049969a84a3d884d2ae0df18e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,7 @@@@@
++++<!-- HTML footer for doxygen 1.9.6-->
++++<!-- start footer part -->
++++<!--BEGIN GENERATE_TREEVIEW-->
++++<div id="nav-path"><!-- id is needed for treeview function! --></div>
++++<!--END GENERATE_TREEVIEW-->
++++</body>
++++</html>
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..88c4029e468a43f1f775c33024d7fa26eeb7e913
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,84 @@@@@
++++<!-- HTML header for doxygen 1.9.6-->
++++<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
++++<html xmlns="http://www.w3.org/1999/xhtml" lang="$langISO">
++++<head>
++++<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
++++<meta http-equiv="X-UA-Compatible" content="IE=11"/>
++++<meta name="generator" content="Doxygen $doxygenversion"/>
++++<meta name="viewport" content="width=device-width, initial-scale=1"/>
++++<!--BEGIN PROJECT_NAME--><title>$projectname: $title</title><!--END PROJECT_NAME-->
++++<!--BEGIN !PROJECT_NAME--><title>$title</title><!--END !PROJECT_NAME-->
++++<link href="$relpath^tabs.css" rel="stylesheet" type="text/css"/>
++++<!--BEGIN DISABLE_INDEX-->
++++  <!--BEGIN FULL_SIDEBAR-->
++++<script type="text/javascript">var page_layout=1;</script>
++++  <!--END FULL_SIDEBAR-->
++++<!--END DISABLE_INDEX-->
++++<script type="text/javascript" src="$relpath^jquery.js"></script>
++++<script type="text/javascript" src="$relpath^dynsections.js"></script>
++++<script type="text/javascript" src="$relpath^doxygen-awesome-darkmode-toggle.js"></script>
++++<script type="text/javascript" src="$relpath^doxygen-awesome-fragment-copy-button.js"></script>
++++<script type="text/javascript" src="$relpath^doxygen-awesome-paragraph-link.js"></script>
++++<script type="text/javascript" src="$relpath^doxygen-awesome-interactive-toc.js"></script>
++++<script type="text/javascript">
++++  DoxygenAwesomeDarkModeToggle.init()
++++  DoxygenAwesomeFragmentCopyButton.init()
++++  DoxygenAwesomeParagraphLink.init()
++++  DoxygenAwesomeInteractiveToc.init()
++++</script>
++++$treeview
++++$search
++++$mathjax
++++$darkmode
++++<link href="$relpath^$stylesheet" rel="stylesheet" type="text/css" />
++++$extrastylesheet
++++</head>
++++<body>
++++<!--BEGIN DISABLE_INDEX-->
++++  <!--BEGIN FULL_SIDEBAR-->
++++<div id="side-nav" class="ui-resizable side-nav-resizable"><!-- do not remove this div, it is closed by doxygen! -->
++++  <!--END FULL_SIDEBAR-->
++++<!--END DISABLE_INDEX-->
++++
++++<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
++++
++++<!--BEGIN TITLEAREA-->
++++<div id="titlearea">
++++<table cellspacing="0" cellpadding="0">
++++ <tbody>
++++ <tr id="projectrow">
++++  <!--BEGIN PROJECT_LOGO-->
++++  <td id="projectlogo"><img alt="Logo" src="$relpath^$projectlogo"/></td>
++++  <!--END PROJECT_LOGO-->
++++  <!--BEGIN PROJECT_NAME-->
++++  <td id="projectalign">
++++   <div id="projectname">$projectname<!--BEGIN PROJECT_NUMBER--><span id="projectnumber">&#160;$projectnumber</span><!--END PROJECT_NUMBER-->
++++   </div>
++++   <!--BEGIN PROJECT_BRIEF--><div id="projectbrief">$projectbrief</div><!--END PROJECT_BRIEF-->
++++  </td>
++++  <!--END PROJECT_NAME-->
++++  <!--BEGIN !PROJECT_NAME-->
++++   <!--BEGIN PROJECT_BRIEF-->
++++    <td>
++++    <div id="projectbrief">$projectbrief</div>
++++    </td>
++++   <!--END PROJECT_BRIEF-->
++++  <!--END !PROJECT_NAME-->
++++  <!--BEGIN DISABLE_INDEX-->
++++   <!--BEGIN SEARCHENGINE-->
++++     <!--BEGIN !FULL_SIDEBAR-->
++++    <td>$searchbox</td>
++++     <!--END !FULL_SIDEBAR-->
++++   <!--END SEARCHENGINE-->
++++  <!--END DISABLE_INDEX-->
++++ </tr>
++++  <!--BEGIN SEARCHENGINE-->
++++   <!--BEGIN FULL_SIDEBAR-->
++++   <tr><td colspan="2">$searchbox</td></tr>
++++   <!--END FULL_SIDEBAR-->
++++  <!--END SEARCHENGINE-->
++++ </tbody>
++++</table>
++++</div>
++++<!--END TITLEAREA-->
++++<!-- end header part -->
diff --cc ada/doxygen
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5980c91f2ffc46df129793f3e4877f297c418817
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,2741 @@@@@
++++# Doxyfile 1.9.6
++++
++++# This file describes the settings to be used by the documentation system
++++# doxygen (www.doxygen.org) for a project.
++++#
++++# All text after a double hash (##) is considered a comment and is placed in
++++# front of the TAG it is preceding.
++++#
++++# All text after a single hash (#) is considered a comment and will be ignored.
++++# The format is:
++++# TAG = value [value, ...]
++++# For lists, items can also be appended using:
++++# TAG += value [value, ...]
++++# Values that contain spaces should be placed between quotes (\" \").
++++#
++++# Note:
++++#
++++# Use doxygen to compare the used configuration file with the template
++++# configuration file:
++++# doxygen -x [configFile]
++++# Use doxygen to compare the used configuration file with the template
++++# configuration file without replacing the environment variables or CMake type
++++# replacement variables:
++++# doxygen -x_noenv [configFile]
++++
++++#---------------------------------------------------------------------------
++++# Project related configuration options
++++#---------------------------------------------------------------------------
++++
++++# This tag specifies the encoding used for all characters in the configuration
++++# file that follow. The default is UTF-8 which is also the encoding used for all
++++# text before the first occurrence of this tag. Doxygen uses libiconv (or the
++++# iconv built into libc) for the transcoding. See
++++# https://www.gnu.org/software/libiconv/ for the list of possible encodings.
++++# The default value is: UTF-8.
++++
++++DOXYFILE_ENCODING      = UTF-8
++++
++++# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
++++# double-quotes, unless you are using Doxywizard) that should identify the
++++# project for which the documentation is generated. This name is used in the
++++# title of most generated pages and in a few other places.
++++# The default value is: My Project.
++++
++++PROJECT_NAME           = "Ada"
++++
++++# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
++++# could be handy for archiving the generated documentation or if some version
++++# control system is used.
++++
++++PROJECT_NUMBER         = "2.9.2"
++++
++++# Using the PROJECT_BRIEF tag one can provide an optional one line description
++++# for a project that appears at the top of each page and should give viewer a
++++# quick idea about the purpose of the project. Keep the description short.
++++
++++PROJECT_BRIEF          = "Fast spec-compliant URL parser"
++++
++++# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
++++# in the documentation. The maximum height of the logo should not exceed 55
++++# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
++++# the logo to the output directory.
++++
++++PROJECT_LOGO           =
++++
++++# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
++++# into which the generated documentation will be written. If a relative path is
++++# entered, it will be relative to the location where doxygen was started. If
++++# left blank the current directory will be used.
++++
++++OUTPUT_DIRECTORY       = "docs"
++++
++++# If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096
++++# sub-directories (in 2 levels) under the output directory of each output format
++++# and will distribute the generated files over these directories. Enabling this
++++# option can be useful when feeding doxygen a huge amount of source files, where
++++# putting all generated files in the same directory would otherwise causes
++++# performance problems for the file system. Adapt CREATE_SUBDIRS_LEVEL to
++++# control the number of sub-directories.
++++# The default value is: NO.
++++
++++CREATE_SUBDIRS         = YES
++++
++++# Controls the number of sub-directories that will be created when
++++# CREATE_SUBDIRS tag is set to YES. Level 0 represents 16 directories, and every
++++# level increment doubles the number of directories, resulting in 4096
++++# directories at level 8 which is the default and also the maximum value. The
++++# sub-directories are organized in 2 levels, the first level always has a fixed
++++# number of 16 directories.
++++# Minimum value: 0, maximum value: 8, default value: 8.
++++# This tag requires that the tag CREATE_SUBDIRS is set to YES.
++++
++++CREATE_SUBDIRS_LEVEL   = 8
++++
++++# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII
++++# characters to appear in the names of generated files. If set to NO, non-ASCII
++++# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode
++++# U+3044.
++++# The default value is: NO.
++++
++++ALLOW_UNICODE_NAMES    = NO
++++
++++# The OUTPUT_LANGUAGE tag is used to specify the language in which all
++++# documentation generated by doxygen is written. Doxygen will use this
++++# information to generate all constant output in the proper language.
++++# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Bulgarian,
++++# Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish, Dutch, English
++++# (United States), Esperanto, Farsi (Persian), Finnish, French, German, Greek,
++++# Hindi, Hungarian, Indonesian, Italian, Japanese, Japanese-en (Japanese with
++++# English messages), Korean, Korean-en (Korean with English messages), Latvian,
++++# Lithuanian, Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese,
++++# Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish,
++++# Swedish, Turkish, Ukrainian and Vietnamese.
++++# The default value is: English.
++++
++++OUTPUT_LANGUAGE        = English
++++
++++# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member
++++# descriptions after the members that are listed in the file and class
++++# documentation (similar to Javadoc). Set to NO to disable this.
++++# The default value is: YES.
++++
++++BRIEF_MEMBER_DESC      = YES
++++
++++# If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief
++++# description of a member or function before the detailed description
++++#
++++# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
++++# brief descriptions will be completely suppressed.
++++# The default value is: YES.
++++
++++REPEAT_BRIEF           = YES
++++
++++# This tag implements a quasi-intelligent brief description abbreviator that is
++++# used to form the text in various listings. Each string in this list, if found
++++# as the leading text of the brief description, will be stripped from the text
++++# and the result, after processing the whole list, is used as the annotated
++++# text. Otherwise, the brief description is used as-is. If left blank, the
++++# following values are used ($name is automatically replaced with the name of
++++# the entity):The $name class, The $name widget, The $name file, is, provides,
++++# specifies, contains, represents, a, an and the.
++++
++++ABBREVIATE_BRIEF       = "The $name class" \
++++                         "The $name widget" \
++++                         "The $name file" \
++++                         is \
++++                         provides \
++++                         specifies \
++++                         contains \
++++                         represents \
++++                         a \
++++                         an \
++++                         the
++++
++++# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
++++# doxygen will generate a detailed section even if there is only a brief
++++# description.
++++# The default value is: NO.
++++
++++ALWAYS_DETAILED_SEC    = NO
++++
++++# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
++++# inherited members of a class in the documentation of that class as if those
++++# members were ordinary class members. Constructors, destructors and assignment
++++# operators of the base classes will not be shown.
++++# The default value is: NO.
++++
++++INLINE_INHERITED_MEMB  = NO
++++
++++# If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path
++++# before files name in the file list and in the header files. If set to NO the
++++# shortest path that makes the file name unique will be used
++++# The default value is: YES.
++++
++++FULL_PATH_NAMES        = YES
++++
++++# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
++++# Stripping is only done if one of the specified strings matches the left-hand
++++# part of the path. The tag can be used to show relative paths in the file list.
++++# If left blank the directory from which doxygen is run is used as the path to
++++# strip.
++++#
++++# Note that you can specify absolute paths here, but also relative paths, which
++++# will be relative from the directory where doxygen is started.
++++# This tag requires that the tag FULL_PATH_NAMES is set to YES.
++++
++++STRIP_FROM_PATH        =
++++
++++# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
++++# path mentioned in the documentation of a class, which tells the reader which
++++# header file to include in order to use a class. If left blank only the name of
++++# the header file containing the class definition is used. Otherwise one should
++++# specify the list of include paths that are normally passed to the compiler
++++# using the -I flag.
++++
++++STRIP_FROM_INC_PATH    =
++++
++++# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
++++# less readable) file names. This can be useful is your file systems doesn't
++++# support long names like on DOS, Mac, or CD-ROM.
++++# The default value is: NO.
++++
++++SHORT_NAMES            = NO
++++
++++# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the
++++# first line (until the first dot) of a Javadoc-style comment as the brief
++++# description. If set to NO, the Javadoc-style will behave just like regular Qt-
++++# style comments (thus requiring an explicit @brief command for a brief
++++# description.)
++++# The default value is: NO.
++++
++++JAVADOC_AUTOBRIEF      = NO
++++
++++# If the JAVADOC_BANNER tag is set to YES then doxygen will interpret a line
++++# such as
++++# /***************
++++# as being the beginning of a Javadoc-style comment "banner". If set to NO, the
++++# Javadoc-style will behave just like regular comments and it will not be
++++# interpreted by doxygen.
++++# The default value is: NO.
++++
++++JAVADOC_BANNER         = YES
++++
++++# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first
++++# line (until the first dot) of a Qt-style comment as the brief description. If
++++# set to NO, the Qt-style will behave just like regular Qt-style comments (thus
++++# requiring an explicit \brief command for a brief description.)
++++# The default value is: NO.
++++
++++QT_AUTOBRIEF           = NO
++++
++++# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a
++++# multi-line C++ special comment block (i.e. a block of //! or /// comments) as
++++# a brief description. This used to be the default behavior. The new default is
++++# to treat a multi-line C++ comment block as a detailed description. Set this
++++# tag to YES if you prefer the old behavior instead.
++++#
++++# Note that setting this tag to YES also means that rational rose comments are
++++# not recognized any more.
++++# The default value is: NO.
++++
++++MULTILINE_CPP_IS_BRIEF = NO
++++
++++# By default Python docstrings are displayed as preformatted text and doxygen's
++++# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
++++# doxygen's special commands can be used and the contents of the docstring
++++# documentation blocks is shown as doxygen documentation.
++++# The default value is: YES.
++++
++++PYTHON_DOCSTRING       = YES
++++
++++# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
++++# documentation from any documented member that it re-implements.
++++# The default value is: YES.
++++
++++INHERIT_DOCS           = YES
++++
++++# If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new
++++# page for each member. If set to NO, the documentation of a member will be part
++++# of the file/class/namespace that contains it.
++++# The default value is: NO.
++++
++++SEPARATE_MEMBER_PAGES  = NO
++++
++++# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen
++++# uses this value to replace tabs by spaces in code fragments.
++++# Minimum value: 1, maximum value: 16, default value: 4.
++++
++++TAB_SIZE               = 2
++++
++++# This tag can be used to specify a number of aliases that act as commands in
++++# the documentation. An alias has the form:
++++# name=value
++++# For example adding
++++# "sideeffect=@par Side Effects:^^"
++++# will allow you to put the command \sideeffect (or @sideeffect) in the
++++# documentation, which will result in a user-defined paragraph with heading
++++# "Side Effects:". Note that you cannot put \n's in the value part of an alias
++++# to insert newlines (in the resulting output). You can put ^^ in the value part
++++# of an alias to insert a newline as if a physical newline was in the original
++++# file. When you need a literal { or } or , in the value part of an alias you
++++# have to escape them by means of a backslash (\), this can lead to conflicts
++++# with the commands \{ and \} for these it is advised to use the version @{ and
++++# @} or use a double escape (\\{ and \\})
++++
++++ALIASES                =
++++
++++# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
++++# only. Doxygen will then generate output that is more tailored for C. For
++++# instance, some of the names that are used will be different. The list of all
++++# members will be omitted, etc.
++++# The default value is: NO.
++++
++++OPTIMIZE_OUTPUT_FOR_C  = NO
++++
++++# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or
++++# Python sources only. Doxygen will then generate output that is more tailored
++++# for that language. For instance, namespaces will be presented as packages,
++++# qualified scopes will look different, etc.
++++# The default value is: NO.
++++
++++OPTIMIZE_OUTPUT_JAVA   = NO
++++
++++# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
++++# sources. Doxygen will then generate output that is tailored for Fortran.
++++# The default value is: NO.
++++
++++OPTIMIZE_FOR_FORTRAN   = NO
++++
++++# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
++++# sources. Doxygen will then generate output that is tailored for VHDL.
++++# The default value is: NO.
++++
++++OPTIMIZE_OUTPUT_VHDL   = NO
++++
++++# Set the OPTIMIZE_OUTPUT_SLICE tag to YES if your project consists of Slice
++++# sources only. Doxygen will then generate output that is more tailored for that
++++# language. For instance, namespaces will be presented as modules, types will be
++++# separated into more groups, etc.
++++# The default value is: NO.
++++
++++OPTIMIZE_OUTPUT_SLICE  = NO
++++
++++# Doxygen selects the parser to use depending on the extension of the files it
++++# parses. With this tag you can assign which parser to use for a given
++++# extension. Doxygen has a built-in mapping, but you can override or extend it
++++# using this tag. The format is ext=language, where ext is a file extension, and
++++# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
++++# Csharp (C#), C, C++, Lex, D, PHP, md (Markdown), Objective-C, Python, Slice,
++++# VHDL, Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
++++# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
++++# tries to guess whether the code is fixed or free formatted code, this is the
++++# default for Fortran type files). For instance to make doxygen treat .inc files
++++# as Fortran files (default is PHP), and .f files as C (default is Fortran),
++++# use: inc=Fortran f=C.
++++#
++++# Note: For files without extension you can use no_extension as a placeholder.
++++#
++++# Note that for custom extensions you also need to set FILE_PATTERNS otherwise
++++# the files are not read by doxygen. When specifying no_extension you should add
++++# * to the FILE_PATTERNS.
++++#
++++# Note see also the list of default file extension mappings.
++++
++++EXTENSION_MAPPING      =
++++
++++# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments
++++# according to the Markdown format, which allows for more readable
++++# documentation. See https://daringfireball.net/projects/markdown/ for details.
++++# The output of markdown processing is further processed by doxygen, so you can
++++# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in
++++# case of backward compatibilities issues.
++++# The default value is: YES.
++++
++++MARKDOWN_SUPPORT       = YES
++++
++++# When the TOC_INCLUDE_HEADINGS tag is set to a non-zero value, all headings up
++++# to that level are automatically included in the table of contents, even if
++++# they do not have an id attribute.
++++# Note: This feature currently applies only to Markdown headings.
++++# Minimum value: 0, maximum value: 99, default value: 5.
++++# This tag requires that the tag MARKDOWN_SUPPORT is set to YES.
++++
++++TOC_INCLUDE_HEADINGS   = 5
++++
++++# When enabled doxygen tries to link words that correspond to documented
++++# classes, or namespaces to their corresponding documentation. Such a link can
++++# be prevented in individual cases by putting a % sign in front of the word or
++++# globally by setting AUTOLINK_SUPPORT to NO.
++++# The default value is: YES.
++++
++++AUTOLINK_SUPPORT       = YES
++++
++++# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
++++# to include (a tag file for) the STL sources as input, then you should set this
++++# tag to YES in order to let doxygen match functions declarations and
++++# definitions whose arguments contain STL classes (e.g. func(std::string);
++++# versus func(std::string) {}). This also make the inheritance and collaboration
++++# diagrams that involve STL classes more complete and accurate.
++++# The default value is: NO.
++++
++++BUILTIN_STL_SUPPORT    = NO
++++
++++# If you use Microsoft's C++/CLI language, you should set this option to YES to
++++# enable parsing support.
++++# The default value is: NO.
++++
++++CPP_CLI_SUPPORT        = NO
++++
++++# Set the SIP_SUPPORT tag to YES if your project consists of sip (see:
++++# https://www.riverbankcomputing.com/software/sip/intro) sources only. Doxygen
++++# will parse them like normal C++ but will assume all classes use public instead
++++# of private inheritance when no explicit protection keyword is present.
++++# The default value is: NO.
++++
++++SIP_SUPPORT            = NO
++++
++++# For Microsoft's IDL there are propget and propput attributes to indicate
++++# getter and setter methods for a property. Setting this option to YES will make
++++# doxygen to replace the get and set methods by a property in the documentation.
++++# This will only work if the methods are indeed getting or setting a simple
++++# type. If this is not the case, or you want to show the methods anyway, you
++++# should set this option to NO.
++++# The default value is: YES.
++++
++++IDL_PROPERTY_SUPPORT   = YES
++++
++++# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
++++# tag is set to YES then doxygen will reuse the documentation of the first
++++# member in the group (if any) for the other members of the group. By default
++++# all members of a group must be documented explicitly.
++++# The default value is: NO.
++++
++++DISTRIBUTE_GROUP_DOC   = YES
++++
++++# If one adds a struct or class to a group and this option is enabled, then also
++++# any nested class or struct is added to the same group. By default this option
++++# is disabled and one has to add nested compounds explicitly via \ingroup.
++++# The default value is: NO.
++++
++++GROUP_NESTED_COMPOUNDS = NO
++++
++++# Set the SUBGROUPING tag to YES to allow class member groups of the same type
++++# (for instance a group of public functions) to be put as a subgroup of that
++++# type (e.g. under the Public Functions section). Set it to NO to prevent
++++# subgrouping. Alternatively, this can be done per class using the
++++# \nosubgrouping command.
++++# The default value is: YES.
++++
++++SUBGROUPING            = YES
++++
++++# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions
++++# are shown inside the group in which they are included (e.g. using \ingroup)
++++# instead of on a separate page (for HTML and Man pages) or section (for LaTeX
++++# and RTF).
++++#
++++# Note that this feature does not work in combination with
++++# SEPARATE_MEMBER_PAGES.
++++# The default value is: NO.
++++
++++INLINE_GROUPED_CLASSES = NO
++++
++++# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions
++++# with only public data fields or simple typedef fields will be shown inline in
++++# the documentation of the scope in which they are defined (i.e. file,
++++# namespace, or group documentation), provided this scope is documented. If set
++++# to NO, structs, classes, and unions are shown on a separate page (for HTML and
++++# Man pages) or section (for LaTeX and RTF).
++++# The default value is: NO.
++++
++++INLINE_SIMPLE_STRUCTS  = NO
++++
++++# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or
++++# enum is documented as struct, union, or enum with the name of the typedef. So
++++# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
++++# with name TypeT. When disabled the typedef will appear as a member of a file,
++++# namespace, or class. And the struct will be named TypeS. This can typically be
++++# useful for C code in case the coding convention dictates that all compound
++++# types are typedef'ed and only the typedef is referenced, never the tag name.
++++# The default value is: NO.
++++
++++TYPEDEF_HIDES_STRUCT   = NO
++++
++++# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
++++# cache is used to resolve symbols given their name and scope. Since this can be
++++# an expensive process and often the same symbol appears multiple times in the
++++# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small
++++# doxygen will become slower. If the cache is too large, memory is wasted. The
++++# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range
++++# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536
++++# symbols. At the end of a run doxygen will report the cache usage and suggest
++++# the optimal cache size from a speed point of view.
++++# Minimum value: 0, maximum value: 9, default value: 0.
++++
++++LOOKUP_CACHE_SIZE      = 0
++++
++++# The NUM_PROC_THREADS specifies the number of threads doxygen is allowed to use
++++# during processing. When set to 0 doxygen will based this on the number of
++++# cores available in the system. You can set it explicitly to a value larger
++++# than 0 to get more control over the balance between CPU load and processing
++++# speed. At this moment only the input processing can be done using multiple
++++# threads. Since this is still an experimental feature the default is set to 1,
++++# which effectively disables parallel processing. Please report any issues you
++++# encounter. Generating dot graphs in parallel is controlled by the
++++# DOT_NUM_THREADS setting.
++++# Minimum value: 0, maximum value: 32, default value: 1.
++++
++++NUM_PROC_THREADS       = 1
++++
++++#---------------------------------------------------------------------------
++++# Build related configuration options
++++#---------------------------------------------------------------------------
++++
++++# If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in
++++# documentation are documented, even if no documentation was available. Private
++++# class members and static file members will be hidden unless the
++++# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES.
++++# Note: This will also disable the warnings about undocumented members that are
++++# normally produced when WARNINGS is set to YES.
++++# The default value is: NO.
++++
++++EXTRACT_ALL            = YES
++++
++++# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will
++++# be included in the documentation.
++++# The default value is: NO.
++++
++++EXTRACT_PRIVATE        = NO
++++
++++# If the EXTRACT_PRIV_VIRTUAL tag is set to YES, documented private virtual
++++# methods of a class will be included in the documentation.
++++# The default value is: NO.
++++
++++EXTRACT_PRIV_VIRTUAL   = NO
++++
++++# If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal
++++# scope will be included in the documentation.
++++# The default value is: NO.
++++
++++EXTRACT_PACKAGE        = YES
++++
++++# If the EXTRACT_STATIC tag is set to YES, all static members of a file will be
++++# included in the documentation.
++++# The default value is: NO.
++++
++++EXTRACT_STATIC         = YES
++++
++++# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined
++++# locally in source files will be included in the documentation. If set to NO,
++++# only classes defined in header files are included. Does not have any effect
++++# for Java sources.
++++# The default value is: YES.
++++
++++EXTRACT_LOCAL_CLASSES  = YES
++++
++++# This flag is only useful for Objective-C code. If set to YES, local methods,
++++# which are defined in the implementation section but not in the interface are
++++# included in the documentation. If set to NO, only methods in the interface are
++++# included.
++++# The default value is: NO.
++++
++++EXTRACT_LOCAL_METHODS  = YES
++++
++++# If this flag is set to YES, the members of anonymous namespaces will be
++++# extracted and appear in the documentation as a namespace called
++++# 'anonymous_namespace{file}', where file will be replaced with the base name of
++++# the file that contains the anonymous namespace. By default anonymous namespace
++++# are hidden.
++++# The default value is: NO.
++++
++++EXTRACT_ANON_NSPACES   = YES
++++
++++# If this flag is set to YES, the name of an unnamed parameter in a declaration
++++# will be determined by the corresponding definition. By default unnamed
++++# parameters remain unnamed in the output.
++++# The default value is: YES.
++++
++++RESOLVE_UNNAMED_PARAMS = YES
++++
++++# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all
++++# undocumented members inside documented classes or files. If set to NO these
++++# members will be included in the various overviews, but no documentation
++++# section is generated. This option has no effect if EXTRACT_ALL is enabled.
++++# The default value is: NO.
++++
++++HIDE_UNDOC_MEMBERS     = NO
++++
++++# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all
++++# undocumented classes that are normally visible in the class hierarchy. If set
++++# to NO, these classes will be included in the various overviews. This option
++++# will also hide undocumented C++ concepts if enabled. This option has no effect
++++# if EXTRACT_ALL is enabled.
++++# The default value is: NO.
++++
++++HIDE_UNDOC_CLASSES     = NO
++++
++++# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
++++# declarations. If set to NO, these declarations will be included in the
++++# documentation.
++++# The default value is: NO.
++++
++++HIDE_FRIEND_COMPOUNDS  = NO
++++
++++# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any
++++# documentation blocks found inside the body of a function. If set to NO, these
++++# blocks will be appended to the function's detailed documentation block.
++++# The default value is: NO.
++++
++++HIDE_IN_BODY_DOCS      = NO
++++
++++# The INTERNAL_DOCS tag determines if documentation that is typed after a
++++# \internal command is included. If the tag is set to NO then the documentation
++++# will be excluded. Set it to YES to include the internal documentation.
++++# The default value is: NO.
++++
++++INTERNAL_DOCS          = NO
++++
++++# With the correct setting of option CASE_SENSE_NAMES doxygen will better be
++++# able to match the capabilities of the underlying filesystem. In case the
++++# filesystem is case sensitive (i.e. it supports files in the same directory
++++# whose names only differ in casing), the option must be set to YES to properly
++++# deal with such files in case they appear in the input. For filesystems that
++++# are not case sensitive the option should be set to NO to properly deal with
++++# output files written for symbols that only differ in casing, such as for two
++++# classes, one named CLASS and the other named Class, and to also support
++++# references to files without having to specify the exact matching casing. On
++++# Windows (including Cygwin) and MacOS, users should typically set this option
++++# to NO, whereas on Linux or other Unix flavors it should typically be set to
++++# YES.
++++# Possible values are: SYSTEM, NO and YES.
++++# The default value is: SYSTEM.
++++
++++CASE_SENSE_NAMES       = SYSTEM
++++
++++# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with
++++# their full class and namespace scopes in the documentation. If set to YES, the
++++# scope will be hidden.
++++# The default value is: NO.
++++
++++HIDE_SCOPE_NAMES       = NO
++++
++++# If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will
++++# append additional text to a page's title, such as Class Reference. If set to
++++# YES the compound reference will be hidden.
++++# The default value is: NO.
++++
++++HIDE_COMPOUND_REFERENCE= NO
++++
++++# If the SHOW_HEADERFILE tag is set to YES then the documentation for a class
++++# will show which file needs to be included to use the class.
++++# The default value is: YES.
++++
++++SHOW_HEADERFILE        = YES
++++
++++# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of
++++# the files that are included by a file in the documentation of that file.
++++# The default value is: YES.
++++
++++SHOW_INCLUDE_FILES     = YES
++++
++++# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
++++# grouped member an include statement to the documentation, telling the reader
++++# which file to include in order to use the member.
++++# The default value is: NO.
++++
++++SHOW_GROUPED_MEMB_INC  = NO
++++
++++# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
++++# files with double quotes in the documentation rather than with sharp brackets.
++++# The default value is: NO.
++++
++++FORCE_LOCAL_INCLUDES   = NO
++++
++++# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the
++++# documentation for inline members.
++++# The default value is: YES.
++++
++++INLINE_INFO            = YES
++++
++++# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the
++++# (detailed) documentation of file and class members alphabetically by member
++++# name. If set to NO, the members will appear in declaration order.
++++# The default value is: YES.
++++
++++SORT_MEMBER_DOCS       = YES
++++
++++# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
++++# descriptions of file, namespace and class members alphabetically by member
++++# name. If set to NO, the members will appear in declaration order. Note that
++++# this will also influence the order of the classes in the class list.
++++# The default value is: NO.
++++
++++SORT_BRIEF_DOCS        = NO
++++
++++# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the
++++# (brief and detailed) documentation of class members so that constructors and
++++# destructors are listed first. If set to NO the constructors will appear in the
++++# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS.
++++# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief
++++# member documentation.
++++# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting
++++# detailed member documentation.
++++# The default value is: NO.
++++
++++SORT_MEMBERS_CTORS_1ST = NO
++++
++++# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy
++++# of group names into alphabetical order. If set to NO the group names will
++++# appear in their defined order.
++++# The default value is: NO.
++++
++++SORT_GROUP_NAMES       = NO
++++
++++# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by
++++# fully-qualified names, including namespaces. If set to NO, the class list will
++++# be sorted only by class name, not including the namespace part.
++++# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
++++# Note: This option applies only to the class list, not to the alphabetical
++++# list.
++++# The default value is: NO.
++++
++++SORT_BY_SCOPE_NAME     = NO
++++
++++# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper
++++# type resolution of all parameters of a function it will reject a match between
++++# the prototype and the implementation of a member function even if there is
++++# only one candidate or it is obvious which candidate to choose by doing a
++++# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still
++++# accept a match between prototype and implementation in such cases.
++++# The default value is: NO.
++++
++++STRICT_PROTO_MATCHING  = NO
++++
++++# The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo
++++# list. This list is created by putting \todo commands in the documentation.
++++# The default value is: YES.
++++
++++GENERATE_TODOLIST      = NO
++++
++++# The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test
++++# list. This list is created by putting \test commands in the documentation.
++++# The default value is: YES.
++++
++++GENERATE_TESTLIST      = NO
++++
++++# The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug
++++# list. This list is created by putting \bug commands in the documentation.
++++# The default value is: YES.
++++
++++GENERATE_BUGLIST       = NO
++++
++++# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO)
++++# the deprecated list. This list is created by putting \deprecated commands in
++++# the documentation.
++++# The default value is: YES.
++++
++++GENERATE_DEPRECATEDLIST= NO
++++
++++# The ENABLED_SECTIONS tag can be used to enable conditional documentation
++++# sections, marked by \if <section_label> ... \endif and \cond <section_label>
++++# ... \endcond blocks.
++++
++++ENABLED_SECTIONS       =
++++
++++# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the
++++# initial value of a variable or macro / define can have for it to appear in the
++++# documentation. If the initializer consists of more lines than specified here
++++# it will be hidden. Use a value of 0 to hide initializers completely. The
++++# appearance of the value of individual variables and macros / defines can be
++++# controlled using \showinitializer or \hideinitializer command in the
++++# documentation regardless of this setting.
++++# Minimum value: 0, maximum value: 10000, default value: 30.
++++
++++MAX_INITIALIZER_LINES  = 30
++++
++++# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at
++++# the bottom of the documentation of classes and structs. If set to YES, the
++++# list will mention the files that were used to generate the documentation.
++++# The default value is: YES.
++++
++++SHOW_USED_FILES        = YES
++++
++++# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This
++++# will remove the Files entry from the Quick Index and from the Folder Tree View
++++# (if specified).
++++# The default value is: YES.
++++
++++SHOW_FILES             = YES
++++
++++# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces
++++# page. This will remove the Namespaces entry from the Quick Index and from the
++++# Folder Tree View (if specified).
++++# The default value is: YES.
++++
++++SHOW_NAMESPACES        = YES
++++
++++# The FILE_VERSION_FILTER tag can be used to specify a program or script that
++++# doxygen should invoke to get the current version for each file (typically from
++++# the version control system). Doxygen will invoke the program by executing (via
++++# popen()) the command command input-file, where command is the value of the
++++# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
++++# by doxygen. Whatever the program writes to standard output is used as the file
++++# version. For an example see the documentation.
++++
++++FILE_VERSION_FILTER    =
++++
++++# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
++++# by doxygen. The layout file controls the global structure of the generated
++++# output files in an output format independent way. To create the layout file
++++# that represents doxygen's defaults, run doxygen with the -l option. You can
++++# optionally specify a file name after the option, if omitted DoxygenLayout.xml
++++# will be used as the name of the layout file. See also section "Changing the
++++# layout of pages" for information.
++++#
++++# Note that if you run doxygen from a directory containing a file called
++++# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
++++# tag is left empty.
++++
++++LAYOUT_FILE            =
++++
++++# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
++++# the reference definitions. This must be a list of .bib files. The .bib
++++# extension is automatically appended if omitted. This requires the bibtex tool
++++# to be installed. See also https://en.wikipedia.org/wiki/BibTeX for more info.
++++# For LaTeX the style of the bibliography can be controlled using
++++# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the
++++# search path. See also \cite for info how to create references.
++++
++++CITE_BIB_FILES         =
++++
++++#---------------------------------------------------------------------------
++++# Configuration options related to warning and progress messages
++++#---------------------------------------------------------------------------
++++
++++# The QUIET tag can be used to turn on/off the messages that are generated to
++++# standard output by doxygen. If QUIET is set to YES this implies that the
++++# messages are off.
++++# The default value is: NO.
++++
++++QUIET                  = NO
++++
++++# The WARNINGS tag can be used to turn on/off the warning messages that are
++++# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES
++++# this implies that the warnings are on.
++++#
++++# Tip: Turn warnings on while writing the documentation.
++++# The default value is: YES.
++++
++++WARNINGS               = YES
++++
++++# If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate
++++# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag
++++# will automatically be disabled.
++++# The default value is: YES.
++++
++++WARN_IF_UNDOCUMENTED   = YES
++++
++++# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for
++++# potential errors in the documentation, such as documenting some parameters in
++++# a documented function twice, or documenting parameters that don't exist or
++++# using markup commands wrongly.
++++# The default value is: YES.
++++
++++WARN_IF_DOC_ERROR      = YES
++++
++++# If WARN_IF_INCOMPLETE_DOC is set to YES, doxygen will warn about incomplete
++++# function parameter documentation. If set to NO, doxygen will accept that some
++++# parameters have no documentation without warning.
++++# The default value is: YES.
++++
++++WARN_IF_INCOMPLETE_DOC = YES
++++
++++# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that
++++# are documented, but have no documentation for their parameters or return
++++# value. If set to NO, doxygen will only warn about wrong parameter
++++# documentation, but not about the absence of documentation. If EXTRACT_ALL is
++++# set to YES then this flag will automatically be disabled. See also
++++# WARN_IF_INCOMPLETE_DOC
++++# The default value is: NO.
++++
++++WARN_NO_PARAMDOC       = YES
++++
++++# If WARN_IF_UNDOC_ENUM_VAL option is set to YES, doxygen will warn about
++++# undocumented enumeration values. If set to NO, doxygen will accept
++++# undocumented enumeration values. If EXTRACT_ALL is set to YES then this flag
++++# will automatically be disabled.
++++# The default value is: NO.
++++
++++WARN_IF_UNDOC_ENUM_VAL = NO
++++
++++# If the WARN_AS_ERROR tag is set to YES then doxygen will immediately stop when
++++# a warning is encountered. If the WARN_AS_ERROR tag is set to FAIL_ON_WARNINGS
++++# then doxygen will continue running as if WARN_AS_ERROR tag is set to NO, but
++++# at the end of the doxygen process doxygen will return with a non-zero status.
++++# Possible values are: NO, YES and FAIL_ON_WARNINGS.
++++# The default value is: NO.
++++
++++WARN_AS_ERROR          = NO
++++
++++# The WARN_FORMAT tag determines the format of the warning messages that doxygen
++++# can produce. The string should contain the $file, $line, and $text tags, which
++++# will be replaced by the file and line number from which the warning originated
++++# and the warning text. Optionally the format may contain $version, which will
++++# be replaced by the version of the file (if it could be obtained via
++++# FILE_VERSION_FILTER)
++++# See also: WARN_LINE_FORMAT
++++# The default value is: $file:$line: $text.
++++
++++WARN_FORMAT            = "$file:$line: $text"
++++
++++# In the $text part of the WARN_FORMAT command it is possible that a reference
++++# to a more specific place is given. To make it easier to jump to this place
++++# (outside of doxygen) the user can define a custom "cut" / "paste" string.
++++# Example:
++++# WARN_LINE_FORMAT = "'vi $file +$line'"
++++# See also: WARN_FORMAT
++++# The default value is: at line $line of file $file.
++++
++++WARN_LINE_FORMAT       = "at line $line of file $file"
++++
++++# The WARN_LOGFILE tag can be used to specify a file to which warning and error
++++# messages should be written. If left blank the output is written to standard
++++# error (stderr). In case the file specified cannot be opened for writing the
++++# warning and error messages are written to standard error. When as file - is
++++# specified the warning and error messages are written to standard output
++++# (stdout).
++++
++++WARN_LOGFILE           =
++++
++++#---------------------------------------------------------------------------
++++# Configuration options related to the input files
++++#---------------------------------------------------------------------------
++++
++++# The INPUT tag is used to specify the files and/or directories that contain
++++# documented source files. You may enter file names like myfile.cpp or
++++# directories like /usr/src/myproject. Separate the files or directories with
++++# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
++++# Note: If this tag is empty the current directory is searched.
++++
++++INPUT                  =
++++
++++# This tag can be used to specify the character encoding of the source files
++++# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
++++# libiconv (or the iconv built into libc) for the transcoding. See the libiconv
++++# documentation (see:
++++# https://www.gnu.org/software/libiconv/) for the list of possible encodings.
++++# See also: INPUT_FILE_ENCODING
++++# The default value is: UTF-8.
++++
++++INPUT_ENCODING         = UTF-8
++++
++++# This tag can be used to specify the character encoding of the source files
++++# that doxygen parses The INPUT_FILE_ENCODING tag can be used to specify
++++# character encoding on a per file pattern basis. Doxygen will compare the file
++++# name with each pattern and apply the encoding instead of the default
++++# INPUT_ENCODING) if there is a match. The character encodings are a list of the
++++# form: pattern=encoding (like *.php=ISO-8859-1). See cfg_input_encoding
++++# "INPUT_ENCODING" for further information on supported encodings.
++++
++++INPUT_FILE_ENCODING    =
++++
++++# If the value of the INPUT tag contains directories, you can use the
++++# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and
++++# *.h) to filter out the source-files in the directories.
++++#
++++# Note that for custom extensions or not directly supported extensions you also
++++# need to set EXTENSION_MAPPING for the extension otherwise the files are not
++++# read by doxygen.
++++#
++++# Note the list of default checked file patterns might differ from the list of
++++# default file extension mappings.
++++#
++++# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
++++# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
++++# *.hh, *.hxx, *.hpp, *.h++, *.l, *.cs, *.d, *.php, *.php4, *.php5, *.phtml,
++++# *.inc, *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C
++++# comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
++++# *.vhdl, *.ucf, *.qsf and *.ice.
++++
++++FILE_PATTERNS          = *.c \
++++                         *.cc \
++++                         *.cxx \
++++                         *.cpp \
++++                         *.c++ \
++++                         *.java \
++++                         *.ii \
++++                         *.ixx \
++++                         *.ipp \
++++                         *.i++ \
++++                         *.inl \
++++                         *.idl \
++++                         *.ddl \
++++                         *.odl \
++++                         *.h \
++++                         *.hh \
++++                         *.hxx \
++++                         *.hpp \
++++                         *.h++ \
++++                         *.l \
++++                         *.cs \
++++                         *.d \
++++                         *.php \
++++                         *.php4 \
++++                         *.php5 \
++++                         *.phtml \
++++                         *.inc \
++++                         *.m \
++++                         *.markdown \
++++                         *.md \
++++                         *.mm \
++++                         *.dox \
++++                         *.py \
++++                         *.pyw \
++++                         *.f90 \
++++                         *.f95 \
++++                         *.f03 \
++++                         *.f08 \
++++                         *.f18 \
++++                         *.f \
++++                         *.for \
++++                         *.vhd \
++++                         *.vhdl \
++++                         *.ucf \
++++                         *.qsf \
++++                         *.ice
++++
++++# The RECURSIVE tag can be used to specify whether or not subdirectories should
++++# be searched for input files as well.
++++# The default value is: NO.
++++
++++RECURSIVE              = YES
++++
++++# The EXCLUDE tag can be used to specify files and/or directories that should be
++++# excluded from the INPUT source files. This way you can easily exclude a
++++# subdirectory from a directory tree whose root is specified with the INPUT tag.
++++#
++++# Note that relative paths are relative to the directory from which doxygen is
++++# run.
++++
++++EXCLUDE                = benchmarks, tests, Testing, tools, build, docs/html, docs/theme, include/ada/expected.h, singleheader, include/ada/log.h, SECURITY.md, .github, docs/RELEASE.md
++++
++++# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
++++# directories that are symbolic links (a Unix file system feature) are excluded
++++# from the input.
++++# The default value is: NO.
++++
++++EXCLUDE_SYMLINKS       = NO
++++
++++# If the value of the INPUT tag contains directories, you can use the
++++# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
++++# certain files from those directories.
++++#
++++# Note that the wildcards are matched against the file with absolute path, so to
++++# exclude all test directories for example use the pattern */test/*
++++
++++EXCLUDE_PATTERNS       = "*/test/*"
++++
++++# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
++++# (namespaces, classes, functions, etc.) that should be excluded from the
++++# output. The symbol name can be a fully qualified name, a word, or if the
++++# wildcard * is used, a substring. Examples: ANamespace, AClass,
++++# ANamespace::AClass, ANamespace::*Test
++++#
++++# Note that the wildcards are matched against the file with absolute path, so to
++++# exclude all test directories use the pattern */test/*
++++
++++EXCLUDE_SYMBOLS        =
++++
++++# The EXAMPLE_PATH tag can be used to specify one or more files or directories
++++# that contain example code fragments that are included (see the \include
++++# command).
++++
++++EXAMPLE_PATH           =
++++
++++# If the value of the EXAMPLE_PATH tag contains directories, you can use the
++++# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and
++++# *.h) to filter out the source-files in the directories. If left blank all
++++# files are included.
++++
++++EXAMPLE_PATTERNS       = *
++++
++++# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
++++# searched for input files to be used with the \include or \dontinclude commands
++++# irrespective of the value of the RECURSIVE tag.
++++# The default value is: NO.
++++
++++EXAMPLE_RECURSIVE      = NO
++++
++++# The IMAGE_PATH tag can be used to specify one or more files or directories
++++# that contain images that are to be included in the documentation (see the
++++# \image command).
++++
++++IMAGE_PATH             =
++++
++++# The INPUT_FILTER tag can be used to specify a program that doxygen should
++++# invoke to filter for each input file. Doxygen will invoke the filter program
++++# by executing (via popen()) the command:
++++#
++++# <filter> <input-file>
++++#
++++# where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the
++++# name of an input file. Doxygen will then use the output that the filter
++++# program writes to standard output. If FILTER_PATTERNS is specified, this tag
++++# will be ignored.
++++#
++++# Note that the filter must not add or remove lines; it is applied before the
++++# code is scanned, but not when the output code is generated. If lines are added
++++# or removed, the anchors will not be placed correctly.
++++#
++++# Note that doxygen will use the data processed and written to standard output
++++# for further processing, therefore nothing else, like debug statements or used
++++# commands (so in case of a Windows batch file always use @echo OFF), should be
++++# written to standard output.
++++#
++++# Note that for custom extensions or not directly supported extensions you also
++++# need to set EXTENSION_MAPPING for the extension otherwise the files are not
++++# properly processed by doxygen.
++++
++++INPUT_FILTER           =
++++
++++# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
++++# basis. Doxygen will compare the file name with each pattern and apply the
++++# filter if there is a match. The filters are a list of the form: pattern=filter
++++# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how
++++# filters are used. If the FILTER_PATTERNS tag is empty or if none of the
++++# patterns match the file name, INPUT_FILTER is applied.
++++#
++++# Note that for custom extensions or not directly supported extensions you also
++++# need to set EXTENSION_MAPPING for the extension otherwise the files are not
++++# properly processed by doxygen.
++++
++++FILTER_PATTERNS        =
++++
++++# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
++++# INPUT_FILTER) will also be used to filter the input files that are used for
++++# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES).
++++# The default value is: NO.
++++
++++FILTER_SOURCE_FILES    = NO
++++
++++# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
++++# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and
++++# it is also possible to disable source filtering for a specific pattern using
++++# *.ext= (so without naming a filter).
++++# This tag requires that the tag FILTER_SOURCE_FILES is set to YES.
++++
++++FILTER_SOURCE_PATTERNS =
++++
++++# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that
++++# is part of the input, its contents will be placed on the main page
++++# (index.html). This can be useful if you have a project on for instance GitHub
++++# and want to reuse the introduction page also for the doxygen output.
++++
++++USE_MDFILE_AS_MAINPAGE = README.md
++++
++++# The Fortran standard specifies that for fixed formatted Fortran code all
++++# characters from position 72 are to be considered as comment. A common
++++# extension is to allow longer lines before the automatic comment starts. The
++++# setting FORTRAN_COMMENT_AFTER will also make it possible that longer lines can
++++# be processed before the automatic comment starts.
++++# Minimum value: 7, maximum value: 10000, default value: 72.
++++
++++FORTRAN_COMMENT_AFTER  = 72
++++
++++#---------------------------------------------------------------------------
++++# Configuration options related to source browsing
++++#---------------------------------------------------------------------------
++++
++++# If the SOURCE_BROWSER tag is set to YES then a list of source files will be
++++# generated. Documented entities will be cross-referenced with these sources.
++++#
++++# Note: To get rid of all source code in the generated output, make sure that
++++# also VERBATIM_HEADERS is set to NO.
++++# The default value is: NO.
++++
++++SOURCE_BROWSER         = YES
++++
++++# Setting the INLINE_SOURCES tag to YES will include the body of functions,
++++# classes and enums directly into the documentation.
++++# The default value is: NO.
++++
++++INLINE_SOURCES         = NO
++++
++++# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any
++++# special comment blocks from generated source code fragments. Normal C, C++ and
++++# Fortran comments will always remain visible.
++++# The default value is: YES.
++++
++++STRIP_CODE_COMMENTS    = YES
++++
++++# If the REFERENCED_BY_RELATION tag is set to YES then for each documented
++++# entity all documented functions referencing it will be listed.
++++# The default value is: NO.
++++
++++REFERENCED_BY_RELATION = YES
++++
++++# If the REFERENCES_RELATION tag is set to YES then for each documented function
++++# all documented entities called/used by that function will be listed.
++++# The default value is: NO.
++++
++++REFERENCES_RELATION    = YES
++++
++++# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set
++++# to YES then the hyperlinks from functions in REFERENCES_RELATION and
++++# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will
++++# link to the documentation.
++++# The default value is: YES.
++++
++++REFERENCES_LINK_SOURCE = NO
++++
++++# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the
++++# source code will show a tooltip with additional information such as prototype,
++++# brief description and links to the definition and documentation. Since this
++++# will make the HTML file larger and loading of large files a bit slower, you
++++# can opt to disable this feature.
++++# The default value is: YES.
++++# This tag requires that the tag SOURCE_BROWSER is set to YES.
++++
++++SOURCE_TOOLTIPS        = YES
++++
++++# If the USE_HTAGS tag is set to YES then the references to source code will
++++# point to the HTML generated by the htags(1) tool instead of doxygen built-in
++++# source browser. The htags tool is part of GNU's global source tagging system
++++# (see https://www.gnu.org/software/global/global.html). You will need version
++++# 4.8.6 or higher.
++++#
++++# To use it do the following:
++++# - Install the latest version of global
++++# - Enable SOURCE_BROWSER and USE_HTAGS in the configuration file
++++# - Make sure the INPUT points to the root of the source tree
++++# - Run doxygen as normal
++++#
++++# Doxygen will invoke htags (and that will in turn invoke gtags), so these
++++# tools must be available from the command line (i.e. in the search path).
++++#
++++# The result: instead of the source browser generated by doxygen, the links to
++++# source code will now point to the output of htags.
++++# The default value is: NO.
++++# This tag requires that the tag SOURCE_BROWSER is set to YES.
++++
++++USE_HTAGS              = NO
++++
++++# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a
++++# verbatim copy of the header file for each class for which an include is
++++# specified. Set to NO to disable this.
++++# See also: Section \class.
++++# The default value is: YES.
++++
++++VERBATIM_HEADERS       = YES
++++
++++#---------------------------------------------------------------------------
++++# Configuration options related to the alphabetical class index
++++#---------------------------------------------------------------------------
++++
++++# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all
++++# compounds will be generated. Enable this if the project contains a lot of
++++# classes, structs, unions or interfaces.
++++# The default value is: YES.
++++
++++ALPHABETICAL_INDEX     = YES
++++
++++# The IGNORE_PREFIX tag can be used to specify a prefix (or a list of prefixes)
++++# that should be ignored while generating the index headers. The IGNORE_PREFIX
++++# tag works for classes, function and member names. The entity will be placed in
++++# the alphabetical list under the first letter of the entity name that remains
++++# after removing the prefix.
++++# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
++++
++++IGNORE_PREFIX          =
++++
++++#---------------------------------------------------------------------------
++++# Configuration options related to the HTML output
++++#---------------------------------------------------------------------------
++++
++++# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output
++++# The default value is: YES.
++++
++++GENERATE_HTML          = YES
++++
++++# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
++++# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
++++# it.
++++# The default directory is: html.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++HTML_OUTPUT            = html
++++
++++# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each
++++# generated HTML page (for example: .htm, .php, .asp).
++++# The default value is: .html.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++HTML_FILE_EXTENSION    = .html
++++
++++# The HTML_HEADER tag can be used to specify a user-defined HTML header file for
++++# each generated HTML page. If the tag is left blank doxygen will generate a
++++# standard header.
++++#
++++# To get valid HTML the header file that includes any scripts and style sheets
++++# that doxygen needs, which is dependent on the configuration options used (e.g.
++++# the setting GENERATE_TREEVIEW). It is highly recommended to start with a
++++# default header using
++++# doxygen -w html new_header.html new_footer.html new_stylesheet.css
++++# YourConfigFile
++++# and then modify the file new_header.html. See also section "Doxygen usage"
++++# for information on how to generate the default header that doxygen normally
++++# uses.
++++# Note: The header is subject to change so you typically have to regenerate the
++++# default header when upgrading to a newer version of doxygen. For a description
++++# of the possible markers and block names see the documentation.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++HTML_HEADER            = ./docs/doxygen/header.html
++++
++++# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
++++# generated HTML page. If the tag is left blank doxygen will generate a standard
++++# footer. See HTML_HEADER for more information on how to generate a default
++++# footer and what special commands can be used inside the footer. See also
++++# section "Doxygen usage" for information on how to generate the default footer
++++# that doxygen normally uses.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++HTML_FOOTER            = ./docs/doxygen/footer.html
++++
++++# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
++++# sheet that is used by each HTML page. It can be used to fine-tune the look of
++++# the HTML output. If left blank doxygen will generate a default style sheet.
++++# See also section "Doxygen usage" for information on how to generate the style
++++# sheet that doxygen normally uses.
++++# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as
++++# it is more robust and this tag (HTML_STYLESHEET) will in the future become
++++# obsolete.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++HTML_STYLESHEET        =
++++
++++# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined
++++# cascading style sheets that are included after the standard style sheets
++++# created by doxygen. Using this option one can overrule certain style aspects.
++++# This is preferred over using HTML_STYLESHEET since it does not replace the
++++# standard style sheet and is therefore more robust against future updates.
++++# Doxygen will copy the style sheet files to the output directory.
++++# Note: The order of the extra style sheet files is of importance (e.g. the last
++++# style sheet in the list overrules the setting of the previous ones in the
++++# list).
++++# Note: Since the styling of scrollbars can currently not be overruled in
++++# Webkit/Chromium, the styling will be left out of the default doxygen.css if
++++# one or more extra stylesheets have been specified. So if scrollbar
++++# customization is desired it has to be added explicitly. For an example see the
++++# documentation.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++HTML_EXTRA_STYLESHEET  = docs/theme/doxygen-awesome.css \
++++                         docs/theme/doxygen-awesome-sidebar-only.css \
++++                         docs/theme/doxygen-awesome-sidebar-only-darkmode-toggle.css
++++
++++# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
++++# other source files which should be copied to the HTML output directory. Note
++++# that these files will be copied to the base HTML output directory. Use the
++++# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
++++# files. In the HTML_STYLESHEET file, use the file name only. Also note that the
++++# files will be copied as-is; there are no commands or markers available.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++HTML_EXTRA_FILES       = docs/theme/doxygen-awesome-darkmode-toggle.js \
++++                         docs/theme/doxygen-awesome-fragment-copy-button.js \
++++                         docs/theme/doxygen-awesome-paragraph-link.js \
++++                         docs/theme/doxygen-awesome-interactive-toc.js
++++
++++# The HTML_COLORSTYLE tag can be used to specify if the generated HTML output
++++# should be rendered with a dark or light theme.
++++# Possible values are: LIGHT always generate light mode output, DARK always
++++# generate dark mode output, AUTO_LIGHT automatically set the mode according to
++++# the user preference, use light mode if no preference is set (the default),
++++# AUTO_DARK automatically set the mode according to the user preference, use
++++# dark mode if no preference is set and TOGGLE allow to user to switch between
++++# light and dark mode via a button.
++++# The default value is: AUTO_LIGHT.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++HTML_COLORSTYLE        = LIGHT
++++
++++# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
++++# will adjust the colors in the style sheet and background images according to
++++# this color. Hue is specified as an angle on a color-wheel, see
++++# https://en.wikipedia.org/wiki/Hue for more information. For instance the value
++++# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300
++++# purple, and 360 is red again.
++++# Minimum value: 0, maximum value: 359, default value: 220.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++HTML_COLORSTYLE_HUE    = 209
++++
++++# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors
++++# in the HTML output. For a value of 0 the output will use gray-scales only. A
++++# value of 255 will produce the most vivid colors.
++++# Minimum value: 0, maximum value: 255, default value: 100.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++HTML_COLORSTYLE_SAT    = 255
++++
++++# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the
++++# luminance component of the colors in the HTML output. Values below 100
++++# gradually make the output lighter, whereas values above 100 make the output
++++# darker. The value divided by 100 is the actual gamma applied, so 80 represents
++++# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not
++++# change the gamma.
++++# Minimum value: 40, maximum value: 240, default value: 80.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++HTML_COLORSTYLE_GAMMA  = 113
++++
++++# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
++++# page will contain the date and time when the page was generated. Setting this
++++# to YES can help to show when doxygen was last run and thus if the
++++# documentation is up to date.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++HTML_TIMESTAMP         = NO
++++
++++# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
++++# documentation will contain a main index with vertical navigation menus that
++++# are dynamically created via JavaScript. If disabled, the navigation index will
++++# consists of multiple levels of tabs that are statically embedded in every HTML
++++# page. Disable this option to support browsers that do not have JavaScript,
++++# like the Qt help browser.
++++# The default value is: YES.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++HTML_DYNAMIC_MENUS     = YES
++++
++++# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
++++# documentation will contain sections that can be hidden and shown after the
++++# page has loaded.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++HTML_DYNAMIC_SECTIONS  = NO
++++
++++# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries
++++# shown in the various tree structured indices initially; the user can expand
++++# and collapse entries dynamically later on. Doxygen will expand the tree to
++++# such a level that at most the specified number of entries are visible (unless
++++# a fully collapsed tree already exceeds this amount). So setting the number of
++++# entries 1 will produce a full collapsed tree by default. 0 is a special value
++++# representing an infinite number of entries and will result in a full expanded
++++# tree by default.
++++# Minimum value: 0, maximum value: 9999, default value: 100.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++HTML_INDEX_NUM_ENTRIES = 100
++++
++++# If the GENERATE_DOCSET tag is set to YES, additional index files will be
++++# generated that can be used as input for Apple's Xcode 3 integrated development
++++# environment (see:
++++# https://developer.apple.com/xcode/), introduced with OSX 10.5 (Leopard). To
++++# create a documentation set, doxygen will generate a Makefile in the HTML
++++# output directory. Running make will produce the docset in that directory and
++++# running make install will install the docset in
++++# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at
++++# startup. See https://developer.apple.com/library/archive/featuredarticles/Doxy
++++# genXcode/_index.html for more information.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++GENERATE_DOCSET        = NO
++++
++++# This tag determines the name of the docset feed. A documentation feed provides
++++# an umbrella under which multiple documentation sets from a single provider
++++# (such as a company or product suite) can be grouped.
++++# The default value is: Doxygen generated docs.
++++# This tag requires that the tag GENERATE_DOCSET is set to YES.
++++
++++DOCSET_FEEDNAME        = "Doxygen generated docs"
++++
++++# This tag determines the URL of the docset feed. A documentation feed provides
++++# an umbrella under which multiple documentation sets from a single provider
++++# (such as a company or product suite) can be grouped.
++++# This tag requires that the tag GENERATE_DOCSET is set to YES.
++++
++++DOCSET_FEEDURL         =
++++
++++# This tag specifies a string that should uniquely identify the documentation
++++# set bundle. This should be a reverse domain-name style string, e.g.
++++# com.mycompany.MyDocSet. Doxygen will append .docset to the name.
++++# The default value is: org.doxygen.Project.
++++# This tag requires that the tag GENERATE_DOCSET is set to YES.
++++
++++DOCSET_BUNDLE_ID       = org.doxygen.Project
++++
++++# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify
++++# the documentation publisher. This should be a reverse domain-name style
++++# string, e.g. com.mycompany.MyDocSet.documentation.
++++# The default value is: org.doxygen.Publisher.
++++# This tag requires that the tag GENERATE_DOCSET is set to YES.
++++
++++DOCSET_PUBLISHER_ID    = org.doxygen.Publisher
++++
++++# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.
++++# The default value is: Publisher.
++++# This tag requires that the tag GENERATE_DOCSET is set to YES.
++++
++++DOCSET_PUBLISHER_NAME  = Publisher
++++
++++# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three
++++# additional HTML index files: index.hhp, index.hhc, and index.hhk. The
++++# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop
++++# on Windows. In the beginning of 2021 Microsoft took the original page, with
++++# a.o. the download links, offline the HTML help workshop was already many years
++++# in maintenance mode). You can download the HTML help workshop from the web
++++# archives at Installation executable (see:
++++# http://web.archive.org/web/20160201063255/http://download.microsoft.com/downlo
++++# ad/0/A/9/0A939EF6-E31C-430F-A3DF-DFAE7960D564/htmlhelp.exe).
++++#
++++# The HTML Help Workshop contains a compiler that can convert all HTML output
++++# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML
++++# files are now used as the Windows 98 help format, and will replace the old
++++# Windows help format (.hlp) on all Windows platforms in the future. Compressed
++++# HTML files also contain an index, a table of contents, and you can search for
++++# words in the documentation. The HTML workshop also contains a viewer for
++++# compressed HTML files.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++GENERATE_HTMLHELP      = NO
++++
++++# The CHM_FILE tag can be used to specify the file name of the resulting .chm
++++# file. You can add a path in front of the file if the result should not be
++++# written to the html output directory.
++++# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
++++
++++CHM_FILE               =
++++
++++# The HHC_LOCATION tag can be used to specify the location (absolute path
++++# including file name) of the HTML help compiler (hhc.exe). If non-empty,
++++# doxygen will try to run the HTML help compiler on the generated index.hhp.
++++# The file has to be specified with full path.
++++# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
++++
++++HHC_LOCATION           =
++++
++++# The GENERATE_CHI flag controls if a separate .chi index file is generated
++++# (YES) or that it should be included in the main .chm file (NO).
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
++++
++++GENERATE_CHI           = NO
++++
++++# The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc)
++++# and project file content.
++++# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
++++
++++CHM_INDEX_ENCODING     =
++++
++++# The BINARY_TOC flag controls whether a binary table of contents is generated
++++# (YES) or a normal table of contents (NO) in the .chm file. Furthermore it
++++# enables the Previous and Next buttons.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
++++
++++BINARY_TOC             = NO
++++
++++# The TOC_EXPAND flag can be set to YES to add extra items for group members to
++++# the table of contents of the HTML help documentation and to the tree view.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
++++
++++TOC_EXPAND             = NO
++++
++++# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
++++# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that
++++# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help
++++# (.qch) of the generated HTML documentation.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++GENERATE_QHP           = NO
++++
++++# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify
++++# the file name of the resulting .qch file. The path specified is relative to
++++# the HTML output folder.
++++# This tag requires that the tag GENERATE_QHP is set to YES.
++++
++++QCH_FILE               =
++++
++++# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help
++++# Project output. For more information please see Qt Help Project / Namespace
++++# (see:
++++# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#namespace).
++++# The default value is: org.doxygen.Project.
++++# This tag requires that the tag GENERATE_QHP is set to YES.
++++
++++QHP_NAMESPACE          = org.doxygen.Project
++++
++++# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt
++++# Help Project output. For more information please see Qt Help Project / Virtual
++++# Folders (see:
++++# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#virtual-folders).
++++# The default value is: doc.
++++# This tag requires that the tag GENERATE_QHP is set to YES.
++++
++++QHP_VIRTUAL_FOLDER     = doc
++++
++++# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom
++++# filter to add. For more information please see Qt Help Project / Custom
++++# Filters (see:
++++# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#custom-filters).
++++# This tag requires that the tag GENERATE_QHP is set to YES.
++++
++++QHP_CUST_FILTER_NAME   =
++++
++++# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the
++++# custom filter to add. For more information please see Qt Help Project / Custom
++++# Filters (see:
++++# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#custom-filters).
++++# This tag requires that the tag GENERATE_QHP is set to YES.
++++
++++QHP_CUST_FILTER_ATTRS  =
++++
++++# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
++++# project's filter section matches. Qt Help Project / Filter Attributes (see:
++++# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#filter-attributes).
++++# This tag requires that the tag GENERATE_QHP is set to YES.
++++
++++QHP_SECT_FILTER_ATTRS  =
++++
++++# The QHG_LOCATION tag can be used to specify the location (absolute path
++++# including file name) of Qt's qhelpgenerator. If non-empty doxygen will try to
++++# run qhelpgenerator on the generated .qhp file.
++++# This tag requires that the tag GENERATE_QHP is set to YES.
++++
++++QHG_LOCATION           =
++++
++++# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be
++++# generated, together with the HTML files, they form an Eclipse help plugin. To
++++# install this plugin and make it available under the help contents menu in
++++# Eclipse, the contents of the directory containing the HTML and XML files needs
++++# to be copied into the plugins directory of eclipse. The name of the directory
++++# within the plugins directory should be the same as the ECLIPSE_DOC_ID value.
++++# After copying Eclipse needs to be restarted before the help appears.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++GENERATE_ECLIPSEHELP   = NO
++++
++++# A unique identifier for the Eclipse help plugin. When installing the plugin
++++# the directory name containing the HTML and XML files should also have this
++++# name. Each documentation set should have its own identifier.
++++# The default value is: org.doxygen.Project.
++++# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES.
++++
++++ECLIPSE_DOC_ID         = org.doxygen.Project
++++
++++# If you want full control over the layout of the generated HTML pages it might
++++# be necessary to disable the index and replace it with your own. The
++++# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top
++++# of each HTML page. A value of NO enables the index and the value YES disables
++++# it. Since the tabs in the index contain the same information as the navigation
++++# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++DISABLE_INDEX          = NO
++++
++++# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
++++# structure should be generated to display hierarchical information. If the tag
++++# value is set to YES, a side panel will be generated containing a tree-like
++++# index structure (just like the one that is generated for HTML Help). For this
++++# to work a browser that supports JavaScript, DHTML, CSS and frames is required
++++# (i.e. any modern browser). Windows users are probably better off using the
++++# HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can
++++# further fine tune the look of the index (see "Fine-tuning the output"). As an
++++# example, the default style sheet generated by doxygen has an example that
++++# shows how to put an image at the root of the tree instead of the PROJECT_NAME.
++++# Since the tree basically has the same information as the tab index, you could
++++# consider setting DISABLE_INDEX to YES when enabling this option.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++GENERATE_TREEVIEW      = YES
++++
++++# When both GENERATE_TREEVIEW and DISABLE_INDEX are set to YES, then the
++++# FULL_SIDEBAR option determines if the side bar is limited to only the treeview
++++# area (value NO) or if it should extend to the full height of the window (value
++++# YES). Setting this to YES gives a layout similar to
++++# https://docs.readthedocs.io with more room for contents, but less room for the
++++# project logo, title, and description. If either GENERATE_TREEVIEW or
++++# DISABLE_INDEX is set to NO, this option has no effect.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++FULL_SIDEBAR           = NO
++++
++++# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that
++++# doxygen will group on one line in the generated HTML documentation.
++++#
++++# Note that a value of 0 will completely suppress the enum values from appearing
++++# in the overview section.
++++# Minimum value: 0, maximum value: 20, default value: 4.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++ENUM_VALUES_PER_LINE   = 4
++++
++++# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used
++++# to set the initial width (in pixels) of the frame in which the tree is shown.
++++# Minimum value: 0, maximum value: 1500, default value: 250.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++TREEVIEW_WIDTH         = 250
++++
++++# If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to
++++# external symbols imported via tag files in a separate window.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++EXT_LINKS_IN_WINDOW    = NO
++++
++++# If the OBFUSCATE_EMAILS tag is set to YES, doxygen will obfuscate email
++++# addresses.
++++# The default value is: YES.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++OBFUSCATE_EMAILS       = YES
++++
++++# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
++++# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
++++# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
++++# the HTML output. These images will generally look nicer at scaled resolutions.
++++# Possible values are: png (the default) and svg (looks nicer but requires the
++++# pdf2svg or inkscape tool).
++++# The default value is: png.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++HTML_FORMULA_FORMAT    = png
++++
++++# Use this tag to change the font size of LaTeX formulas included as images in
++++# the HTML documentation. When you change the font size after a successful
++++# doxygen run you need to manually remove any form_*.png images from the HTML
++++# output directory to force them to be regenerated.
++++# Minimum value: 8, maximum value: 50, default value: 10.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++FORMULA_FONTSIZE       = 10
++++
++++# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
++++# to create new LaTeX commands to be used in formulas as building blocks. See
++++# the section "Including formulas" for details.
++++
++++FORMULA_MACROFILE      =
++++
++++# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
++++# https://www.mathjax.org) which uses client side JavaScript for the rendering
++++# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
++++# installed or if you want to formulas look prettier in the HTML output. When
++++# enabled you may also need to install MathJax separately and configure the path
++++# to it using the MATHJAX_RELPATH option.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++USE_MATHJAX            = NO
++++
++++# With MATHJAX_VERSION it is possible to specify the MathJax version to be used.
++++# Note that the different versions of MathJax have different requirements with
++++# regards to the different settings, so it is possible that also other MathJax
++++# settings have to be changed when switching between the different MathJax
++++# versions.
++++# Possible values are: MathJax_2 and MathJax_3.
++++# The default value is: MathJax_2.
++++# This tag requires that the tag USE_MATHJAX is set to YES.
++++
++++MATHJAX_VERSION        = MathJax_2
++++
++++# When MathJax is enabled you can set the default output format to be used for
++++# the MathJax output. For more details about the output format see MathJax
++++# version 2 (see:
++++# http://docs.mathjax.org/en/v2.7-latest/output.html) and MathJax version 3
++++# (see:
++++# http://docs.mathjax.org/en/latest/web/components/output.html).
++++# Possible values are: HTML-CSS (which is slower, but has the best
++++# compatibility. This is the name for Mathjax version 2, for MathJax version 3
++++# this will be translated into chtml), NativeMML (i.e. MathML. Only supported
++++# for NathJax 2. For MathJax version 3 chtml will be used instead.), chtml (This
++++# is the name for Mathjax version 3, for MathJax version 2 this will be
++++# translated into HTML-CSS) and SVG.
++++# The default value is: HTML-CSS.
++++# This tag requires that the tag USE_MATHJAX is set to YES.
++++
++++MATHJAX_FORMAT         = HTML-CSS
++++
++++# When MathJax is enabled you need to specify the location relative to the HTML
++++# output directory using the MATHJAX_RELPATH option. The destination directory
++++# should contain the MathJax.js script. For instance, if the mathjax directory
++++# is located at the same level as the HTML output directory, then
++++# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax
++++# Content Delivery Network so you can quickly see the result without installing
++++# MathJax. However, it is strongly recommended to install a local copy of
++++# MathJax from https://www.mathjax.org before deployment. The default value is:
++++# - in case of MathJax version 2: https://cdn.jsdelivr.net/npm/mathjax@2
++++# - in case of MathJax version 3: https://cdn.jsdelivr.net/npm/mathjax@3
++++# This tag requires that the tag USE_MATHJAX is set to YES.
++++
++++MATHJAX_RELPATH        =
++++
++++# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
++++# extension names that should be enabled during MathJax rendering. For example
++++# for MathJax version 2 (see
++++# https://docs.mathjax.org/en/v2.7-latest/tex.html#tex-and-latex-extensions):
++++# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols
++++# For example for MathJax version 3 (see
++++# http://docs.mathjax.org/en/latest/input/tex/extensions/index.html):
++++# MATHJAX_EXTENSIONS = ams
++++# This tag requires that the tag USE_MATHJAX is set to YES.
++++
++++MATHJAX_EXTENSIONS     =
++++
++++# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces
++++# of code that will be used on startup of the MathJax code. See the MathJax site
++++# (see:
++++# http://docs.mathjax.org/en/v2.7-latest/output.html) for more details. For an
++++# example see the documentation.
++++# This tag requires that the tag USE_MATHJAX is set to YES.
++++
++++MATHJAX_CODEFILE       =
++++
++++# When the SEARCHENGINE tag is enabled doxygen will generate a search box for
++++# the HTML output. The underlying search engine uses javascript and DHTML and
++++# should work on any modern browser. Note that when using HTML help
++++# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET)
++++# there is already a search function so this one should typically be disabled.
++++# For large projects the javascript based search engine can be slow, then
++++# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to
++++# search using the keyboard; to jump to the search box use <access key> + S
++++# (what the <access key> is depends on the OS and browser, but it is typically
++++# <CTRL>, <ALT>/<option>, or both). Inside the search box use the <cursor down
++++# key> to jump into the search results window, the results can be navigated
++++# using the <cursor keys>. Press <Enter> to select an item or <escape> to cancel
++++# the search. The filter options can be selected when the cursor is inside the
++++# search box by pressing <Shift>+<cursor down>. Also here use the <cursor keys>
++++# to select a filter and <Enter> or <escape> to activate or cancel the filter
++++# option.
++++# The default value is: YES.
++++# This tag requires that the tag GENERATE_HTML is set to YES.
++++
++++SEARCHENGINE           = YES
++++
++++# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
++++# implemented using a web server instead of a web client using JavaScript. There
++++# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
++++# setting. When disabled, doxygen will generate a PHP script for searching and
++++# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
++++# and searching needs to be provided by external tools. See the section
++++# "External Indexing and Searching" for details.
++++# The default value is: NO.
++++# This tag requires that the tag SEARCHENGINE is set to YES.
++++
++++SERVER_BASED_SEARCH    = NO
++++
++++# When EXTERNAL_SEARCH tag is enabled doxygen will no longer generate the PHP
++++# script for searching. Instead the search results are written to an XML file
++++# which needs to be processed by an external indexer. Doxygen will invoke an
++++# external search engine pointed to by the SEARCHENGINE_URL option to obtain the
++++# search results.
++++#
++++# Doxygen ships with an example indexer (doxyindexer) and search engine
++++# (doxysearch.cgi) which are based on the open source search engine library
++++# Xapian (see:
++++# https://xapian.org/).
++++#
++++# See the section "External Indexing and Searching" for details.
++++# The default value is: NO.
++++# This tag requires that the tag SEARCHENGINE is set to YES.
++++
++++EXTERNAL_SEARCH        = NO
++++
++++# The SEARCHENGINE_URL should point to a search engine hosted by a web server
++++# which will return the search results when EXTERNAL_SEARCH is enabled.
++++#
++++# Doxygen ships with an example indexer (doxyindexer) and search engine
++++# (doxysearch.cgi) which are based on the open source search engine library
++++# Xapian (see:
++++# https://xapian.org/). See the section "External Indexing and Searching" for
++++# details.
++++# This tag requires that the tag SEARCHENGINE is set to YES.
++++
++++SEARCHENGINE_URL       =
++++
++++# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
++++# search data is written to a file for indexing by an external tool. With the
++++# SEARCHDATA_FILE tag the name of this file can be specified.
++++# The default file is: searchdata.xml.
++++# This tag requires that the tag SEARCHENGINE is set to YES.
++++
++++SEARCHDATA_FILE        = searchdata.xml
++++
++++# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the
++++# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
++++# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
++++# projects and redirect the results back to the right project.
++++# This tag requires that the tag SEARCHENGINE is set to YES.
++++
++++EXTERNAL_SEARCH_ID     =
++++
++++# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
++++# projects other than the one defined by this configuration file, but that are
++++# all added to the same external search index. Each project needs to have a
++++# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of
++++# to a relative location where the documentation can be found. The format is:
++++# EXTRA_SEARCH_MAPPINGS = tagname1=loc1 tagname2=loc2 ...
++++# This tag requires that the tag SEARCHENGINE is set to YES.
++++
++++EXTRA_SEARCH_MAPPINGS  =
++++
++++#---------------------------------------------------------------------------
++++# Configuration options related to the LaTeX output
++++#---------------------------------------------------------------------------
++++
++++# If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output.
++++# The default value is: YES.
++++
++++GENERATE_LATEX         = NO
++++
++++# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
++++# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
++++# it.
++++# The default directory is: latex.
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++LATEX_OUTPUT           = latex
++++
++++# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
++++# invoked.
++++#
++++# Note that when not enabling USE_PDFLATEX the default is latex when enabling
++++# USE_PDFLATEX the default is pdflatex and when in the later case latex is
++++# chosen this is overwritten by pdflatex. For specific output languages the
++++# default can have been set differently, this depends on the implementation of
++++# the output language.
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++LATEX_CMD_NAME         =
++++
++++# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to generate
++++# index for LaTeX.
++++# Note: This tag is used in the Makefile / make.bat.
++++# See also: LATEX_MAKEINDEX_CMD for the part in the generated output file
++++# (.tex).
++++# The default file is: makeindex.
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++MAKEINDEX_CMD_NAME     = makeindex
++++
++++# The LATEX_MAKEINDEX_CMD tag can be used to specify the command name to
++++# generate index for LaTeX. In case there is no backslash (\) as first character
++++# it will be automatically added in the LaTeX code.
++++# Note: This tag is used in the generated output file (.tex).
++++# See also: MAKEINDEX_CMD_NAME for the part in the Makefile / make.bat.
++++# The default value is: makeindex.
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++LATEX_MAKEINDEX_CMD    = makeindex
++++
++++# If the COMPACT_LATEX tag is set to YES, doxygen generates more compact LaTeX
++++# documents. This may be useful for small projects and may help to save some
++++# trees in general.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++COMPACT_LATEX          = NO
++++
++++# The PAPER_TYPE tag can be used to set the paper type that is used by the
++++# printer.
++++# Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x
++++# 14 inches) and executive (7.25 x 10.5 inches).
++++# The default value is: a4.
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++PAPER_TYPE             = a4
++++
++++# The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names
++++# that should be included in the LaTeX output. The package can be specified just
++++# by its name or with the correct syntax as to be used with the LaTeX
++++# \usepackage command. To get the times font for instance you can specify :
++++# EXTRA_PACKAGES=times or EXTRA_PACKAGES={times}
++++# To use the option intlimits with the amsmath package you can specify:
++++# EXTRA_PACKAGES=[intlimits]{amsmath}
++++# If left blank no extra packages will be included.
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++EXTRA_PACKAGES         =
++++
++++# The LATEX_HEADER tag can be used to specify a user-defined LaTeX header for
++++# the generated LaTeX document. The header should contain everything until the
++++# first chapter. If it is left blank doxygen will generate a standard header. It
++++# is highly recommended to start with a default header using
++++# doxygen -w latex new_header.tex new_footer.tex new_stylesheet.sty
++++# and then modify the file new_header.tex. See also section "Doxygen usage" for
++++# information on how to generate the default header that doxygen normally uses.
++++#
++++# Note: Only use a user-defined header if you know what you are doing!
++++# Note: The header is subject to change so you typically have to regenerate the
++++# default header when upgrading to a newer version of doxygen. The following
++++# commands have a special meaning inside the header (and footer): For a
++++# description of the possible markers and block names see the documentation.
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++LATEX_HEADER           =
++++
++++# The LATEX_FOOTER tag can be used to specify a user-defined LaTeX footer for
++++# the generated LaTeX document. The footer should contain everything after the
++++# last chapter. If it is left blank doxygen will generate a standard footer. See
++++# LATEX_HEADER for more information on how to generate a default footer and what
++++# special commands can be used inside the footer. See also section "Doxygen
++++# usage" for information on how to generate the default footer that doxygen
++++# normally uses. Note: Only use a user-defined footer if you know what you are
++++# doing!
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++LATEX_FOOTER           =
++++
++++# The LATEX_EXTRA_STYLESHEET tag can be used to specify additional user-defined
++++# LaTeX style sheets that are included after the standard style sheets created
++++# by doxygen. Using this option one can overrule certain style aspects. Doxygen
++++# will copy the style sheet files to the output directory.
++++# Note: The order of the extra style sheet files is of importance (e.g. the last
++++# style sheet in the list overrules the setting of the previous ones in the
++++# list).
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++LATEX_EXTRA_STYLESHEET =
++++
++++# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images or
++++# other source files which should be copied to the LATEX_OUTPUT output
++++# directory. Note that the files will be copied as-is; there are no commands or
++++# markers available.
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++LATEX_EXTRA_FILES      =
++++
++++# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated is
++++# prepared for conversion to PDF (using ps2pdf or pdflatex). The PDF file will
++++# contain links (just like the HTML output) instead of page references. This
++++# makes the output suitable for online browsing using a PDF viewer.
++++# The default value is: YES.
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++PDF_HYPERLINKS         = YES
++++
++++# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
++++# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
++++# files. Set this option to YES, to get a higher quality PDF documentation.
++++#
++++# See also section LATEX_CMD_NAME for selecting the engine.
++++# The default value is: YES.
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++USE_PDFLATEX           = YES
++++
++++# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \batchmode
++++# command to the generated LaTeX files. This will instruct LaTeX to keep running
++++# if errors occur, instead of asking the user for help.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++LATEX_BATCHMODE        = NO
++++
++++# If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the
++++# index chapters (such as File Index, Compound Index, etc.) in the output.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++LATEX_HIDE_INDICES     = NO
++++
++++# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
++++# bibliography, e.g. plainnat, or ieeetr. See
++++# https://en.wikipedia.org/wiki/BibTeX and \cite for more info.
++++# The default value is: plain.
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++LATEX_BIB_STYLE        = plain
++++
++++# If the LATEX_TIMESTAMP tag is set to YES then the footer of each generated
++++# page will contain the date and time when the page was generated. Setting this
++++# to NO can help when comparing the output of multiple runs.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++LATEX_TIMESTAMP        = NO
++++
++++# The LATEX_EMOJI_DIRECTORY tag is used to specify the (relative or absolute)
++++# path from which the emoji images will be read. If a relative path is entered,
++++# it will be relative to the LATEX_OUTPUT directory. If left blank the
++++# LATEX_OUTPUT directory will be used.
++++# This tag requires that the tag GENERATE_LATEX is set to YES.
++++
++++LATEX_EMOJI_DIRECTORY  =
++++
++++#---------------------------------------------------------------------------
++++# Configuration options related to the RTF output
++++#---------------------------------------------------------------------------
++++
++++# If the GENERATE_RTF tag is set to YES, doxygen will generate RTF output. The
++++# RTF output is optimized for Word 97 and may not look too pretty with other RTF
++++# readers/editors.
++++# The default value is: NO.
++++
++++GENERATE_RTF           = NO
++++
++++# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. If a
++++# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
++++# it.
++++# The default directory is: rtf.
++++# This tag requires that the tag GENERATE_RTF is set to YES.
++++
++++RTF_OUTPUT             = rtf
++++
++++# If the COMPACT_RTF tag is set to YES, doxygen generates more compact RTF
++++# documents. This may be useful for small projects and may help to save some
++++# trees in general.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_RTF is set to YES.
++++
++++COMPACT_RTF            = NO
++++
++++# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated will
++++# contain hyperlink fields. The RTF file will contain links (just like the HTML
++++# output) instead of page references. This makes the output suitable for online
++++# browsing using Word or some other Word compatible readers that support those
++++# fields.
++++#
++++# Note: WordPad (write) and others do not support links.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_RTF is set to YES.
++++
++++RTF_HYPERLINKS         = NO
++++
++++# Load stylesheet definitions from file. Syntax is similar to doxygen's
++++# configuration file, i.e. a series of assignments. You only have to provide
++++# replacements, missing definitions are set to their default value.
++++#
++++# See also section "Doxygen usage" for information on how to generate the
++++# default style sheet that doxygen normally uses.
++++# This tag requires that the tag GENERATE_RTF is set to YES.
++++
++++RTF_STYLESHEET_FILE    =
++++
++++# Set optional variables used in the generation of an RTF document. Syntax is
++++# similar to doxygen's configuration file. A template extensions file can be
++++# generated using doxygen -e rtf extensionFile.
++++# This tag requires that the tag GENERATE_RTF is set to YES.
++++
++++RTF_EXTENSIONS_FILE    =
++++
++++#---------------------------------------------------------------------------
++++# Configuration options related to the man page output
++++#---------------------------------------------------------------------------
++++
++++# If the GENERATE_MAN tag is set to YES, doxygen will generate man pages for
++++# classes and files.
++++# The default value is: NO.
++++
++++GENERATE_MAN           = NO
++++
++++# The MAN_OUTPUT tag is used to specify where the man pages will be put. If a
++++# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
++++# it. A directory man3 will be created inside the directory specified by
++++# MAN_OUTPUT.
++++# The default directory is: man.
++++# This tag requires that the tag GENERATE_MAN is set to YES.
++++
++++MAN_OUTPUT             = man
++++
++++# The MAN_EXTENSION tag determines the extension that is added to the generated
++++# man pages. In case the manual section does not start with a number, the number
++++# 3 is prepended. The dot (.) at the beginning of the MAN_EXTENSION tag is
++++# optional.
++++# The default value is: .3.
++++# This tag requires that the tag GENERATE_MAN is set to YES.
++++
++++MAN_EXTENSION          = .3
++++
++++# The MAN_SUBDIR tag determines the name of the directory created within
++++# MAN_OUTPUT in which the man pages are placed. If defaults to man followed by
++++# MAN_EXTENSION with the initial . removed.
++++# This tag requires that the tag GENERATE_MAN is set to YES.
++++
++++MAN_SUBDIR             =
++++
++++# If the MAN_LINKS tag is set to YES and doxygen generates man output, then it
++++# will generate one additional man file for each entity documented in the real
++++# man page(s). These additional files only source the real man page, but without
++++# them the man command would be unable to find the correct page.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_MAN is set to YES.
++++
++++MAN_LINKS              = NO
++++
++++#---------------------------------------------------------------------------
++++# Configuration options related to the XML output
++++#---------------------------------------------------------------------------
++++
++++# If the GENERATE_XML tag is set to YES, doxygen will generate an XML file that
++++# captures the structure of the code including all documentation.
++++# The default value is: NO.
++++
++++GENERATE_XML           = NO
++++
++++# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
++++# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
++++# it.
++++# The default directory is: xml.
++++# This tag requires that the tag GENERATE_XML is set to YES.
++++
++++XML_OUTPUT             = xml
++++
++++# If the XML_PROGRAMLISTING tag is set to YES, doxygen will dump the program
++++# listings (including syntax highlighting and cross-referencing information) to
++++# the XML output. Note that enabling this will significantly increase the size
++++# of the XML output.
++++# The default value is: YES.
++++# This tag requires that the tag GENERATE_XML is set to YES.
++++
++++XML_PROGRAMLISTING     = YES
++++
++++# If the XML_NS_MEMB_FILE_SCOPE tag is set to YES, doxygen will include
++++# namespace members in file scope as well, matching the HTML output.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_XML is set to YES.
++++
++++XML_NS_MEMB_FILE_SCOPE = NO
++++
++++#---------------------------------------------------------------------------
++++# Configuration options related to the DOCBOOK output
++++#---------------------------------------------------------------------------
++++
++++# If the GENERATE_DOCBOOK tag is set to YES, doxygen will generate Docbook files
++++# that can be used to generate PDF.
++++# The default value is: NO.
++++
++++GENERATE_DOCBOOK       = NO
++++
++++# The DOCBOOK_OUTPUT tag is used to specify where the Docbook pages will be put.
++++# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in
++++# front of it.
++++# The default directory is: docbook.
++++# This tag requires that the tag GENERATE_DOCBOOK is set to YES.
++++
++++DOCBOOK_OUTPUT         = docbook
++++
++++#---------------------------------------------------------------------------
++++# Configuration options for the AutoGen Definitions output
++++#---------------------------------------------------------------------------
++++
++++# If the GENERATE_AUTOGEN_DEF tag is set to YES, doxygen will generate an
++++# AutoGen Definitions (see http://autogen.sourceforge.net/) file that captures
++++# the structure of the code including all documentation. Note that this feature
++++# is still experimental and incomplete at the moment.
++++# The default value is: NO.
++++
++++GENERATE_AUTOGEN_DEF   = NO
++++
++++#---------------------------------------------------------------------------
++++# Configuration options related to the Perl module output
++++#---------------------------------------------------------------------------
++++
++++# If the GENERATE_PERLMOD tag is set to YES, doxygen will generate a Perl module
++++# file that captures the structure of the code including all documentation.
++++#
++++# Note that this feature is still experimental and incomplete at the moment.
++++# The default value is: NO.
++++
++++GENERATE_PERLMOD       = NO
++++
++++# If the PERLMOD_LATEX tag is set to YES, doxygen will generate the necessary
++++# Makefile rules, Perl scripts and LaTeX code to be able to generate PDF and DVI
++++# output from the Perl module output.
++++# The default value is: NO.
++++# This tag requires that the tag GENERATE_PERLMOD is set to YES.
++++
++++PERLMOD_LATEX          = NO
++++
++++# If the PERLMOD_PRETTY tag is set to YES, the Perl module output will be nicely
++++# formatted so it can be parsed by a human reader. This is useful if you want to
++++# understand what is going on. On the other hand, if this tag is set to NO, the
++++# size of the Perl module output will be much smaller and Perl will parse it
++++# just the same.
++++# The default value is: YES.
++++# This tag requires that the tag GENERATE_PERLMOD is set to YES.
++++
++++PERLMOD_PRETTY         = YES
++++
++++# The names of the make variables in the generated doxyrules.make file are
++++# prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. This is useful
++++# so different doxyrules.make files included by the same Makefile don't
++++# overwrite each other's variables.
++++# This tag requires that the tag GENERATE_PERLMOD is set to YES.
++++
++++PERLMOD_MAKEVAR_PREFIX =
++++
++++#---------------------------------------------------------------------------
++++# Configuration options related to the preprocessor
++++#---------------------------------------------------------------------------
++++
++++# If the ENABLE_PREPROCESSING tag is set to YES, doxygen will evaluate all
++++# C-preprocessor directives found in the sources and include files.
++++# The default value is: YES.
++++
++++ENABLE_PREPROCESSING   = YES
++++
++++# If the MACRO_EXPANSION tag is set to YES, doxygen will expand all macro names
++++# in the source code. If set to NO, only conditional compilation will be
++++# performed. Macro expansion can be done in a controlled way by setting
++++# EXPAND_ONLY_PREDEF to YES.
++++# The default value is: NO.
++++# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
++++
++++MACRO_EXPANSION        = NO
++++
++++# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
++++# the macro expansion is limited to the macros specified with the PREDEFINED and
++++# EXPAND_AS_DEFINED tags.
++++# The default value is: NO.
++++# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
++++
++++EXPAND_ONLY_PREDEF     = NO
++++
++++# If the SEARCH_INCLUDES tag is set to YES, the include files in the
++++# INCLUDE_PATH will be searched if a #include is found.
++++# The default value is: YES.
++++# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
++++
++++SEARCH_INCLUDES        = YES
++++
++++# The INCLUDE_PATH tag can be used to specify one or more directories that
++++# contain include files that are not input files but should be processed by the
++++# preprocessor. Note that the INCLUDE_PATH is not recursive, so the setting of
++++# RECURSIVE has no effect here.
++++# This tag requires that the tag SEARCH_INCLUDES is set to YES.
++++
++++INCLUDE_PATH           =
++++
++++# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
++++# patterns (like *.h and *.hpp) to filter out the header-files in the
++++# directories. If left blank, the patterns specified with FILE_PATTERNS will be
++++# used.
++++# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
++++
++++INCLUDE_FILE_PATTERNS  =
++++
++++# The PREDEFINED tag can be used to specify one or more macro names that are
++++# defined before the preprocessor is started (similar to the -D option of e.g.
++++# gcc). The argument of the tag is a list of macros of the form: name or
++++# name=definition (no spaces). If the definition and the "=" are omitted, "=1"
++++# is assumed. To prevent a macro definition from being undefined via #undef or
++++# recursively expanded use the := operator instead of the = operator.
++++# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
++++
++++PREDEFINED             =
++++
++++# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
++++# tag can be used to specify a list of macro names that should be expanded. The
++++# macro definition that is found in the sources will be used. Use the PREDEFINED
++++# tag if you want to use a different macro definition that overrules the
++++# definition found in the source code.
++++# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
++++
++++EXPAND_AS_DEFINED      =
++++
++++# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
++++# remove all references to function-like macros that are alone on a line, have
++++# an all uppercase name, and do not end with a semicolon. Such function macros
++++# are typically used for boiler-plate code, and will confuse the parser if not
++++# removed.
++++# The default value is: YES.
++++# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
++++
++++SKIP_FUNCTION_MACROS   = YES
++++
++++#---------------------------------------------------------------------------
++++# Configuration options related to external references
++++#---------------------------------------------------------------------------
++++
++++# The TAGFILES tag can be used to specify one or more tag files. For each tag
++++# file the location of the external documentation should be added. The format of
++++# a tag file without this location is as follows:
++++# TAGFILES = file1 file2 ...
++++# Adding location for the tag files is done as follows:
++++# TAGFILES = file1=loc1 "file2 = loc2" ...
++++# where loc1 and loc2 can be relative or absolute paths or URLs. See the
++++# section "Linking to external documentation" for more information about the use
++++# of tag files.
++++# Note: Each tag file must have a unique name (where the name does NOT include
++++# the path). If a tag file is not located in the directory in which doxygen is
++++# run, you must also specify the path to the tagfile here.
++++
++++TAGFILES               =
++++
++++# When a file name is specified after GENERATE_TAGFILE, doxygen will create a
++++# tag file that is based on the input files it reads. See section "Linking to
++++# external documentation" for more information about the usage of tag files.
++++
++++GENERATE_TAGFILE       =
++++
++++# If the ALLEXTERNALS tag is set to YES, all external class will be listed in
++++# the class index. If set to NO, only the inherited external classes will be
++++# listed.
++++# The default value is: NO.
++++
++++ALLEXTERNALS           = NO
++++
++++# If the EXTERNAL_GROUPS tag is set to YES, all external groups will be listed
++++# in the modules index. If set to NO, only the current project's groups will be
++++# listed.
++++# The default value is: YES.
++++
++++EXTERNAL_GROUPS        = YES
++++
++++# If the EXTERNAL_PAGES tag is set to YES, all external pages will be listed in
++++# the related pages index. If set to NO, only the current project's pages will
++++# be listed.
++++# The default value is: YES.
++++
++++EXTERNAL_PAGES         = YES
++++
++++#---------------------------------------------------------------------------
++++# Configuration options related to the dot tool
++++#---------------------------------------------------------------------------
++++
++++# You can include diagrams made with dia in doxygen documentation. Doxygen will
++++# then run dia to produce the diagram and insert it in the documentation. The
++++# DIA_PATH tag allows you to specify the directory where the dia binary resides.
++++# If left empty dia is assumed to be found in the default search path.
++++
++++DIA_PATH               =
++++
++++# If set to YES the inheritance and collaboration graphs will hide inheritance
++++# and usage relations if the target is undocumented or is not a class.
++++# The default value is: YES.
++++
++++HIDE_UNDOC_RELATIONS   = YES
++++
++++# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
++++# available from the path. This tool is part of Graphviz (see:
++++# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent
++++# Bell Labs. The other options in this section have no effect if this option is
++++# set to NO
++++# The default value is: NO.
++++
++++HAVE_DOT               = NO
++++
++++# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed
++++# to run in parallel. When set to 0 doxygen will base this on the number of
++++# processors available in the system. You can set it explicitly to a value
++++# larger than 0 to get control over the balance between CPU load and processing
++++# speed.
++++# Minimum value: 0, maximum value: 32, default value: 0.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++DOT_NUM_THREADS        = 0
++++
++++# DOT_COMMON_ATTR is common attributes for nodes, edges and labels of
++++# subgraphs. When you want a differently looking font in the dot files that
++++# doxygen generates you can specify fontname, fontcolor and fontsize attributes.
++++# For details please see <a href=https://graphviz.org/doc/info/attrs.html>Node,
++++# Edge and Graph Attributes specification</a> You need to make sure dot is able
++++# to find the font, which can be done by putting it in a standard location or by
++++# setting the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the
++++# directory containing the font. Default graphviz fontsize is 14.
++++# The default value is: fontname=Helvetica,fontsize=10.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++DOT_COMMON_ATTR        = "fontname=Helvetica,fontsize=10"
++++
++++# DOT_EDGE_ATTR is concatenated with DOT_COMMON_ATTR. For elegant style you can
++++# add 'arrowhead=open, arrowtail=open, arrowsize=0.5'. <a
++++# href=https://graphviz.org/doc/info/arrows.html>Complete documentation about
++++# arrows shapes.</a>
++++# The default value is: labelfontname=Helvetica,labelfontsize=10.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++DOT_EDGE_ATTR          = "labelfontname=Helvetica,labelfontsize=10"
++++
++++# DOT_NODE_ATTR is concatenated with DOT_COMMON_ATTR. For view without boxes
++++# around nodes set 'shape=plain' or 'shape=plaintext' <a
++++# href=https://www.graphviz.org/doc/info/shapes.html>Shapes specification</a>
++++# The default value is: shape=box,height=0.2,width=0.4.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++DOT_NODE_ATTR          = "shape=box,height=0.2,width=0.4"
++++
++++# You can set the path where dot can find font specified with fontname in
++++# DOT_COMMON_ATTR and others dot attributes.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++DOT_FONTPATH           =
++++
++++# If the CLASS_GRAPH tag is set to YES (or GRAPH) then doxygen will generate a
++++# graph for each documented class showing the direct and indirect inheritance
++++# relations. In case HAVE_DOT is set as well dot will be used to draw the graph,
++++# otherwise the built-in generator will be used. If the CLASS_GRAPH tag is set
++++# to TEXT the direct and indirect inheritance relations will be shown as texts /
++++# links.
++++# Possible values are: NO, YES, TEXT and GRAPH.
++++# The default value is: YES.
++++
++++CLASS_GRAPH            = YES
++++
++++# If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a
++++# graph for each documented class showing the direct and indirect implementation
++++# dependencies (inheritance, containment, and class references variables) of the
++++# class with other documented classes.
++++# The default value is: YES.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++COLLABORATION_GRAPH    = YES
++++
++++# If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for
++++# groups, showing the direct groups dependencies. See also the chapter Grouping
++++# in the manual.
++++# The default value is: YES.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++GROUP_GRAPHS           = YES
++++
++++# If the UML_LOOK tag is set to YES, doxygen will generate inheritance and
++++# collaboration diagrams in a style similar to the OMG's Unified Modeling
++++# Language.
++++# The default value is: NO.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++UML_LOOK               = NO
++++
++++# If the UML_LOOK tag is enabled, the fields and methods are shown inside the
++++# class node. If there are many fields or methods and many nodes the graph may
++++# become too big to be useful. The UML_LIMIT_NUM_FIELDS threshold limits the
++++# number of items for each type to make the size more manageable. Set this to 0
++++# for no limit. Note that the threshold may be exceeded by 50% before the limit
++++# is enforced. So when you set the threshold to 10, up to 15 fields may appear,
++++# but if the number exceeds 15, the total amount of fields shown is limited to
++++# 10.
++++# Minimum value: 0, maximum value: 100, default value: 10.
++++# This tag requires that the tag UML_LOOK is set to YES.
++++
++++UML_LIMIT_NUM_FIELDS   = 10
++++
++++# If the DOT_UML_DETAILS tag is set to NO, doxygen will show attributes and
++++# methods without types and arguments in the UML graphs. If the DOT_UML_DETAILS
++++# tag is set to YES, doxygen will add type and arguments for attributes and
++++# methods in the UML graphs. If the DOT_UML_DETAILS tag is set to NONE, doxygen
++++# will not generate fields with class member information in the UML graphs. The
++++# class diagrams will look similar to the default class diagrams but using UML
++++# notation for the relationships.
++++# Possible values are: NO, YES and NONE.
++++# The default value is: NO.
++++# This tag requires that the tag UML_LOOK is set to YES.
++++
++++DOT_UML_DETAILS        = NO
++++
++++# The DOT_WRAP_THRESHOLD tag can be used to set the maximum number of characters
++++# to display on a single line. If the actual line length exceeds this threshold
++++# significantly it will wrapped across multiple lines. Some heuristics are apply
++++# to avoid ugly line breaks.
++++# Minimum value: 0, maximum value: 1000, default value: 17.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++DOT_WRAP_THRESHOLD     = 17
++++
++++# If the TEMPLATE_RELATIONS tag is set to YES then the inheritance and
++++# collaboration graphs will show the relations between templates and their
++++# instances.
++++# The default value is: NO.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++TEMPLATE_RELATIONS     = NO
++++
++++# If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to
++++# YES then doxygen will generate a graph for each documented file showing the
++++# direct and indirect include dependencies of the file with other documented
++++# files.
++++# The default value is: YES.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++INCLUDE_GRAPH          = YES
++++
++++# If the INCLUDED_BY_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are
++++# set to YES then doxygen will generate a graph for each documented file showing
++++# the direct and indirect include dependencies of the file with other documented
++++# files.
++++# The default value is: YES.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++INCLUDED_BY_GRAPH      = YES
++++
++++# If the CALL_GRAPH tag is set to YES then doxygen will generate a call
++++# dependency graph for every global function or class method.
++++#
++++# Note that enabling this option will significantly increase the time of a run.
++++# So in most cases it will be better to enable call graphs for selected
++++# functions only using the \callgraph command. Disabling a call graph can be
++++# accomplished by means of the command \hidecallgraph.
++++# The default value is: NO.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++CALL_GRAPH             = YES
++++
++++# If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller
++++# dependency graph for every global function or class method.
++++#
++++# Note that enabling this option will significantly increase the time of a run.
++++# So in most cases it will be better to enable caller graphs for selected
++++# functions only using the \callergraph command. Disabling a caller graph can be
++++# accomplished by means of the command \hidecallergraph.
++++# The default value is: NO.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++CALLER_GRAPH           = YES
++++
++++# If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical
++++# hierarchy of all classes instead of a textual one.
++++# The default value is: YES.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++GRAPHICAL_HIERARCHY    = YES
++++
++++# If the DIRECTORY_GRAPH tag is set to YES then doxygen will show the
++++# dependencies a directory has on other directories in a graphical way. The
++++# dependency relations are determined by the #include relations between the
++++# files in the directories.
++++# The default value is: YES.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++DIRECTORY_GRAPH        = YES
++++
++++# The DIR_GRAPH_MAX_DEPTH tag can be used to limit the maximum number of levels
++++# of child directories generated in directory dependency graphs by dot.
++++# Minimum value: 1, maximum value: 25, default value: 1.
++++# This tag requires that the tag DIRECTORY_GRAPH is set to YES.
++++
++++DIR_GRAPH_MAX_DEPTH    = 1
++++
++++# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
++++# generated by dot. For an explanation of the image formats see the section
++++# output formats in the documentation of the dot tool (Graphviz (see:
++++# http://www.graphviz.org/)).
++++# Note: If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order
++++# to make the SVG files visible in IE 9+ (other browsers do not have this
++++# requirement).
++++# Possible values are: png, jpg, gif, svg, png:gd, png:gd:gd, png:cairo,
++++# png:cairo:gd, png:cairo:cairo, png:cairo:gdiplus, png:gdiplus and
++++# png:gdiplus:gdiplus.
++++# The default value is: png.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++DOT_IMAGE_FORMAT       = png
++++
++++# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
++++# enable generation of interactive SVG images that allow zooming and panning.
++++#
++++# Note that this requires a modern browser other than Internet Explorer. Tested
++++# and working are Firefox, Chrome, Safari, and Opera.
++++# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make
++++# the SVG files visible. Older versions of IE do not have SVG support.
++++# The default value is: NO.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++INTERACTIVE_SVG        = NO
++++
++++# The DOT_PATH tag can be used to specify the path where the dot tool can be
++++# found. If left blank, it is assumed the dot tool can be found in the path.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++DOT_PATH               =
++++
++++# The DOTFILE_DIRS tag can be used to specify one or more directories that
++++# contain dot files that are included in the documentation (see the \dotfile
++++# command).
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++DOTFILE_DIRS           =
++++
++++# The MSCFILE_DIRS tag can be used to specify one or more directories that
++++# contain msc files that are included in the documentation (see the \mscfile
++++# command).
++++
++++MSCFILE_DIRS           =
++++
++++# The DIAFILE_DIRS tag can be used to specify one or more directories that
++++# contain dia files that are included in the documentation (see the \diafile
++++# command).
++++
++++DIAFILE_DIRS           =
++++
++++# When using plantuml, the PLANTUML_JAR_PATH tag should be used to specify the
++++# path where java can find the plantuml.jar file or to the filename of jar file
++++# to be used. If left blank, it is assumed PlantUML is not used or called during
++++# a preprocessing step. Doxygen will generate a warning when it encounters a
++++# \startuml command in this case and will not generate output for the diagram.
++++
++++PLANTUML_JAR_PATH      =
++++
++++# When using plantuml, the PLANTUML_CFG_FILE tag can be used to specify a
++++# configuration file for plantuml.
++++
++++PLANTUML_CFG_FILE      =
++++
++++# When using plantuml, the specified paths are searched for files specified by
++++# the !include statement in a plantuml block.
++++
++++PLANTUML_INCLUDE_PATH  =
++++
++++# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
++++# that will be shown in the graph. If the number of nodes in a graph becomes
++++# larger than this value, doxygen will truncate the graph, which is visualized
++++# by representing a node as a red box. Note that doxygen if the number of direct
++++# children of the root node in a graph is already larger than
++++# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note that
++++# the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
++++# Minimum value: 0, maximum value: 10000, default value: 50.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++DOT_GRAPH_MAX_NODES    = 50
++++
++++# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
++++# generated by dot. A depth value of 3 means that only nodes reachable from the
++++# root by following a path via at most 3 edges will be shown. Nodes that lay
++++# further from the root node will be omitted. Note that setting this option to 1
++++# or 2 may greatly reduce the computation time needed for large code bases. Also
++++# note that the size of a graph can be further restricted by
++++# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
++++# Minimum value: 0, maximum value: 1000, default value: 0.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++MAX_DOT_GRAPH_DEPTH    = 0
++++
++++# Set the DOT_MULTI_TARGETS tag to YES to allow dot to generate multiple output
++++# files in one run (i.e. multiple -o and -T options on the command line). This
++++# makes dot run faster, but since only newer versions of dot (>1.8.10) support
++++# this, this feature is disabled by default.
++++# The default value is: NO.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++DOT_MULTI_TARGETS      = NO
++++
++++# If the GENERATE_LEGEND tag is set to YES doxygen will generate a legend page
++++# explaining the meaning of the various boxes and arrows in the dot generated
++++# graphs.
++++# Note: This tag requires that UML_LOOK isn't set, i.e. the doxygen internal
++++# graphical representation for inheritance and collaboration diagrams is used.
++++# The default value is: YES.
++++# This tag requires that the tag HAVE_DOT is set to YES.
++++
++++GENERATE_LEGEND        = YES
++++
++++# If the DOT_CLEANUP tag is set to YES, doxygen will remove the intermediate
++++# files that are used to generate the various graphs.
++++#
++++# Note: This setting is not only used for dot files but also for msc temporary
++++# files.
++++# The default value is: YES.
++++
++++DOT_CLEANUP            = YES
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..edbad048978dc78158ee5fe7ff4d626f6529f39e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,65 @@@@@
++++#include "ada_c.h"
++++
++++#include <stdbool.h>
++++#include <stdio.h>
++++#include <stdlib.h>
++++#include <string.h>
++++
++++int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
++++  /**
++++   * ada_c
++++   */
++++  ada_url out = ada_parse((char*)data, size);
++++  bool is_valid = ada_is_valid(out);
++++
++++  if (is_valid) {
++++    ada_set_href(out, (char*)data, size);
++++    ada_set_host(out, (char*)data, size);
++++    ada_set_hostname(out, (char*)data, size);
++++    ada_set_protocol(out, (char*)data, size);
++++    ada_set_username(out, (char*)data, size);
++++    ada_set_password(out, (char*)data, size);
++++    ada_set_port(out, (char*)data, size);
++++    ada_set_pathname(out, (char*)data, size);
++++    ada_set_search(out, (char*)data, size);
++++    ada_set_hash(out, (char*)data, size);
++++
++++    ada_get_hash(out);
++++    ada_get_host(out);
++++    ada_get_host_type(out);
++++    ada_get_hostname(out);
++++    ada_get_href(out);
++++    ada_owned_string out_get_origin = ada_get_origin(out);
++++    ada_get_pathname(out);
++++    ada_get_username(out);
++++    ada_get_password(out);
++++    ada_get_protocol(out);
++++    ada_get_port(out);
++++    ada_get_search(out);
++++    ada_get_scheme_type(out);
++++
++++    ada_has_credentials(out);
++++    ada_has_empty_hostname(out);
++++    ada_has_hostname(out);
++++    ada_has_non_empty_username(out);
++++    ada_has_non_empty_password(out);
++++    ada_has_port(out);
++++    ada_has_password(out);
++++    ada_has_hash(out);
++++    ada_has_search(out);
++++
++++    ada_get_components(out);
++++
++++    ada_clear_port(out);
++++    ada_clear_hash(out);
++++    ada_clear_search(out);
++++
++++    ada_free_owned_string(out_get_origin);
++++  }
++++
++++  bool can_parse_result = ada_can_parse((char*)data, size);
++++
++++  ada_free(out);
++++
++++  return 0;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c6aba21affa6d8922f359be480683d1799040e7d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,3 @@@@@
++++[libfuzzer]
++++dict = url.dict
++++max_len = 1024
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..eb5b8e98937c5adadd0200f2c02bb0e23757a6f6
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,52 @@@@@
++++#!/bin/bash
++++
++++cd $SRC/ada-url
++++
++++mkdir build
++++AMALGAMATE_OUTPUT_PATH=./build/singleheader python3 singleheader/amalgamate.py
++++
++++$CXX $CFLAGS $CXXFLAGS \
++++     -std=c++17 \
++++     -I build/singleheader \
++++     -c fuzz/parse.cc -o parse.o
++++
++++$CXX $CFLAGS $CXXFLAGS $LIB_FUZZING_ENGINE parse.o \
++++     -o $OUT/parse
++++
++++$CXX $CFLAGS $CXXFLAGS \
++++     -std=c++17 \
++++     -I build/singleheader \
++++     -c fuzz/can_parse.cc -o can_parse.o
++++
++++$CXX $CFLAGS $CXXFLAGS $LIB_FUZZING_ENGINE can_parse.o \
++++     -o $OUT/can_parse
++++
++++$CXX $CFLAGS $CXXFLAGS \
++++     -std=c++17 \
++++     -I build/singleheader \
++++     -c fuzz/idna.cc -o idna.o
++++
++++$CXX $CFLAGS $CXXFLAGS $LIB_FUZZING_ENGINE idna.o \
++++     -o $OUT/idna
++++
++++$CXX $CFLAGS $CXXFLAGS \
++++     -std=c++17 \
++++     -I build/singleheader \
++++     -c fuzz/url_search_params.cc -o url_search_params.o
++++
++++$CXX $CFLAGS $CXXFLAGS $LIB_FUZZING_ENGINE url_search_params.o \
++++     -o $OUT/url_search_params
++++
++++$CXX $CFLAGS $CXXFLAGS \
++++     -std=c++17 \
++++     -I build/singleheader \
++++     -c build/singleheader/ada.cpp -o ada.o
++++
++++$CC $CFLAGS $CXXFLAGS \
++++     -I build/singleheader \
++++     -c fuzz/ada_c.c -o ada_c.o
++++
++++$CXX $CFLAGS $CXXFLAGS $LIB_FUZZING_ENGINE ./ada.o ada_c.o \
++++     -o $OUT/ada_c
++++
++++cp $SRC/ada-url/fuzz/*.dict $SRC/ada-url/fuzz/*.options $OUT/
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c7fe87b2241aee0e592d8166596974e8acebc127
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,23 @@@@@
++++#include <fuzzer/FuzzedDataProvider.h>
++++
++++#include <memory>
++++#include <string>
++++
++++#include "ada.cpp"
++++#include "ada.h"
++++
++++extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
++++  FuzzedDataProvider fdp(data, size);
++++  std::string source = fdp.ConsumeRandomLengthString(256);
++++  std::string base_source = fdp.ConsumeRandomLengthString(256);
++++
++++  /**
++++   * ada::can_parse
++++   */
++++  auto base_source_view =
++++      std::string_view(base_source.data(), base_source.length());
++++  ada::can_parse(source);
++++  ada::can_parse(source, &base_source_view);
++++
++++  return 0;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..31ad94be4a288e3d37abb41182632ff6811e97c2
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,22 @@@@@
++++#include <fuzzer/FuzzedDataProvider.h>
++++
++++#include <memory>
++++#include <string>
++++
++++#include "ada.cpp"
++++#include "ada.h"
++++
++++extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
++++  FuzzedDataProvider fdp(data, size);
++++  std::string source = fdp.ConsumeRandomLengthString(256);
++++  std::string base_source = fdp.ConsumeRandomLengthString(256);
++++
++++  /**
++++   * ada::idna
++++   */
++++  ada::idna::to_ascii(source);
++++  ada::idna::to_unicode(source);
++++  ada::idna::ascii_has_upper_case(source.data(), source.length());
++++
++++  return 0;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..d3917c22be3b1a647c494b837ebd575cff529164
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,225 @@@@@
++++#include <fuzzer/FuzzedDataProvider.h>
++++
++++#include <cstdio>
++++#include <memory>
++++#include <string>
++++
++++#include "ada.cpp"
++++#include "ada.h"
++++
++++bool is_valid_utf8_string(const char *buf, size_t len) {
++++  const uint8_t *data = reinterpret_cast<const uint8_t *>(buf);
++++  uint64_t pos = 0;
++++  uint32_t code_point = 0;
++++  while (pos < len) {
++++    uint64_t next_pos = pos + 16;
++++    if (next_pos <= len) {  // if it is safe to read 16 more bytes, check that
++++                            // they are ascii
++++      uint64_t v1;
++++      std::memcpy(&v1, data + pos, sizeof(uint64_t));
++++      uint64_t v2;
++++      std::memcpy(&v2, data + pos + sizeof(uint64_t), sizeof(uint64_t));
++++      uint64_t v{v1 | v2};
++++      if ((v & 0x8080808080808080) == 0) {
++++        pos = next_pos;
++++        continue;
++++      }
++++    }
++++    unsigned char byte = data[pos];
++++    while (byte < 0b10000000) {
++++      if (++pos == len) {
++++        return true;
++++      }
++++      byte = data[pos];
++++    }
++++
++++    if ((byte & 0b11100000) == 0b11000000) {
++++      next_pos = pos + 2;
++++      if (next_pos > len) {
++++        return false;
++++      }
++++      if ((data[pos + 1] & 0b11000000) != 0b10000000) {
++++        return false;
++++      }
++++      code_point = (byte & 0b00011111) << 6 | (data[pos + 1] & 0b00111111);
++++      if ((code_point < 0x80) || (0x7ff < code_point)) {
++++        return false;
++++      }
++++    } else if ((byte & 0b11110000) == 0b11100000) {
++++      next_pos = pos + 3;
++++      if (next_pos > len) {
++++        return false;
++++      }
++++      if ((data[pos + 1] & 0b11000000) != 0b10000000) {
++++        return false;
++++      }
++++      if ((data[pos + 2] & 0b11000000) != 0b10000000) {
++++        return false;
++++      }
++++      code_point = (byte & 0b00001111) << 12 |
++++                   (data[pos + 1] & 0b00111111) << 6 |
++++                   (data[pos + 2] & 0b00111111);
++++      if ((code_point < 0x800) || (0xffff < code_point) ||
++++          (0xd7ff < code_point && code_point < 0xe000)) {
++++        return false;
++++      }
++++    } else if ((byte & 0b11111000) == 0b11110000) {  // 0b11110000
++++      next_pos = pos + 4;
++++      if (next_pos > len) {
++++        return false;
++++      }
++++      if ((data[pos + 1] & 0b11000000) != 0b10000000) {
++++        return false;
++++      }
++++      if ((data[pos + 2] & 0b11000000) != 0b10000000) {
++++        return false;
++++      }
++++      if ((data[pos + 3] & 0b11000000) != 0b10000000) {
++++        return false;
++++      }
++++      code_point =
++++          (byte & 0b00000111) << 18 | (data[pos + 1] & 0b00111111) << 12 |
++++          (data[pos + 2] & 0b00111111) << 6 | (data[pos + 3] & 0b00111111);
++++      if (code_point <= 0xffff || 0x10ffff < code_point) {
++++        return false;
++++      }
++++    } else {
++++      return false;
++++    }
++++    pos = next_pos;
++++  }
++++  return true;
++++}
++++
++++extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
++++  FuzzedDataProvider fdp(data, size);
++++  std::string source = fdp.ConsumeRandomLengthString(256);
++++
++++  // volatile forces the compiler to store the results without undue
++++  // optimizations
++++  volatile size_t length = 0;
++++
++++  auto parse_url = ada::parse<ada::url>(source);
++++  auto parse_url_aggregator = ada::parse<ada::url_aggregator>(source);
++++
++++  if (is_valid_utf8_string(source.data(), source.length())) {
++++    if (parse_url.has_value() ^ parse_url_aggregator.has_value()) {
++++      printf("Source used to parse: %s", source.c_str());
++++      abort();
++++    }
++++  }
++++
++++  if (parse_url) {
++++    length += parse_url->get_href().size();
++++    length += parse_url->get_origin().size();
++++  }
++++
++++  if (parse_url_aggregator) {
++++    length += parse_url_aggregator->get_href().size();
++++    length += parse_url_aggregator->get_origin().size();
++++
++++    volatile bool is_parse_url_aggregator_output_valid = false;
++++    is_parse_url_aggregator_output_valid = parse_url_aggregator->validate();
++++
++++    assert(parse_url->get_protocol() == parse_url_aggregator->get_protocol());
++++    assert(parse_url->get_href() == parse_url_aggregator->get_href());
++++
++++    parse_url->set_href(source);
++++    parse_url_aggregator->set_href(source);
++++    assert(parse_url->get_href() == parse_url_aggregator->get_href());
++++  }
++++
++++  /**
++++   * ada::parse<ada::url>
++++   */
++++  auto out_url = ada::parse<ada::url>("https://www.ada-url.com");
++++
++++  if (out_url) {
++++    out_url->set_protocol(source);
++++    out_url->set_username(source);
++++    out_url->set_password(source);
++++    out_url->set_hostname(source);
++++    out_url->set_host(source);
++++    out_url->set_pathname(source);
++++    out_url->set_search(source);
++++    out_url->set_hash(source);
++++    out_url->set_port(source);
++++
++++    // getters
++++    length += out_url->get_protocol().size();
++++    length += out_url->get_username().size();
++++    length += out_url->get_password().size();
++++    length += out_url->get_hostname().size();
++++    length += out_url->get_host().size();
++++    length += out_url->get_pathname().size();
++++    length += out_url->get_search().size();
++++    length += out_url->get_hash().size();
++++    length += out_url->get_origin().size();
++++    length += out_url->get_port().size();
++++
++++    length += out_url->to_string().size();
++++  }
++++
++++  /**
++++   * ada::parse<ada::url_aggregator>
++++   */
++++  auto out_aggregator =
++++      ada::parse<ada::url_aggregator>("https://www.ada-url.com");
++++
++++  if (out_aggregator) {
++++    out_aggregator->set_protocol(source);
++++    out_aggregator->set_username(source);
++++    out_aggregator->set_password(source);
++++    out_aggregator->set_hostname(source);
++++    out_aggregator->set_host(source);
++++    out_aggregator->set_pathname(source);
++++    out_aggregator->set_search(source);
++++    out_aggregator->set_hash(source);
++++    out_aggregator->set_port(source);
++++
++++    // getters
++++    length += out_aggregator->get_protocol().size();
++++    length += out_aggregator->get_username().size();
++++    length += out_aggregator->get_password().size();
++++    length += out_aggregator->get_hostname().size();
++++    length += out_aggregator->get_host().size();
++++    length += out_aggregator->get_pathname().size();
++++    length += out_aggregator->get_search().size();
++++    length += out_aggregator->get_hash().size();
++++    length += out_aggregator->get_origin().size();
++++    length += out_aggregator->get_port().size();
++++
++++    length += out_aggregator->to_string().size();
++++
++++    volatile bool is_output_valid = false;
++++    is_output_valid = out_aggregator->validate();
++++
++++    // Printing due to dead-code elimination
++++    printf("diagram %s\n", out_aggregator->to_diagram().c_str());
++++
++++    // clear methods
++++    out_aggregator->clear_port();
++++    out_aggregator->clear_search();
++++    out_aggregator->clear_hash();
++++  }
++++
++++  /**
++++   * Node.js specific
++++   */
++++  length += ada::href_from_file(source).size();
++++
++++  /**
++++   * Others
++++   */
++++  bool is_valid = ada::checkers::verify_dns_length(source);
++++
++++  // Only used for avoiding dead-code elimination
++++  if (is_valid) {
++++    printf("dns length is valid\n");
++++  }
++++
++++  // Only used for avoiding dead-code elimination
++++  printf("length of url is %d\n", length);
++++
++++  return 0;
++++}  // extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c6aba21affa6d8922f359be480683d1799040e7d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,3 @@@@@
++++[libfuzzer]
++++dict = url.dict
++++max_len = 1024
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..793224f35319ca5693c19289425860c9cfcaa122
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,26 @@@@@
++++# Protocols
++++"ftp:"
++++"file:"
++++"http:"
++++"https:"
++++"ws:"
++++"wss:"
++++
++++# Suffixes
++++".com"
++++
++++# Full URLs
++++"https://www.ada-url.com"
++++
++++# Encoded characters
++++"%2f"
++++"%40"
++++"%26"
++++
++++# Misc
++++"://"
++++"//"
++++"\\"
++++"../"
++++";type=a"
++++"xn--"
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..accba848a26e772fcee230f9491219ed3fc79c29
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,56 @@@@@
++++#include <fuzzer/FuzzedDataProvider.h>
++++
++++#include <memory>
++++#include <string>
++++
++++#include "ada.cpp"
++++#include "ada.h"
++++
++++extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
++++  FuzzedDataProvider fdp(data, size);
++++  std::string source = fdp.ConsumeRandomLengthString(256);
++++  std::string base_source = fdp.ConsumeRandomLengthString(256);
++++
++++  /**
++++   * ada::url_search_params
++++   */
++++
++++  auto base_source_view =
++++      std::string_view(base_source.data(), base_source.length());
++++  auto initialized = ada::url_search_params(base_source_view);
++++
++++  auto search_params = ada::url_search_params();
++++  search_params.append(source, base_source);
++++  search_params.set(source, base_source);
++++  search_params.to_string();
++++  if (!search_params.has(base_source)) {
++++    search_params.append(base_source, source);
++++  }
++++  search_params.remove(source);
++++  search_params.remove(source, base_source);
++++  if (search_params.has(base_source, source)) {
++++    search_params.remove(base_source);
++++    search_params.remove(base_source, source);
++++  }
++++
++++  auto keys = search_params.get_keys();
++++  while (keys.has_next()) {
++++    keys.next();
++++  }
++++
++++  auto values = search_params.get_values();
++++  while (values.has_next()) {
++++    values.next();
++++  }
++++
++++  auto entries = search_params.get_entries();
++++  while (entries.has_next()) {
++++    entries.next();
++++  }
++++
++++  // This is testing a private method used only for C API.
++++  std::string resetted_value = fdp.ConsumeRandomLengthString(256);
++++  search_params.reset(resetted_value);
++++
++++  return 0;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..667c7fcafed65403e9b7a92cbd251195779b6c49
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,33 @@@@@
++++/**
++++ * @file ada.h
++++ * @brief Includes all definitions for Ada.
++++ */
++++#ifndef ADA_H
++++#define ADA_H
++++
++++#include "ada/ada_idna.h"
++++#include "ada/character_sets-inl.h"
++++#include "ada/checkers-inl.h"
++++#include "ada/common_defs.h"
++++#include "ada/log.h"
++++#include "ada/encoding_type.h"
++++#include "ada/helpers.h"
++++#include "ada/parser.h"
++++#include "ada/scheme-inl.h"
++++#include "ada/serializers.h"
++++#include "ada/state.h"
++++#include "ada/unicode.h"
++++#include "ada/url_base.h"
++++#include "ada/url_base-inl.h"
++++#include "ada/url-inl.h"
++++#include "ada/url_components.h"
++++#include "ada/url_aggregator.h"
++++#include "ada/url_aggregator-inl.h"
++++#include "ada/url_search_params.h"
++++#include "ada/url_search_params-inl.h"
++++
++++// Public API
++++#include "ada/ada_version.h"
++++#include "ada/implementation.h"
++++
++++#endif  // ADA_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..8d916253524ed89e2c0bd74c62a28d87cb46a493
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,149 @@@@@
++++/* auto-generated on 2023-09-19 15:58:51 -0400. Do not edit! */
++++/* begin file include/idna.h */
++++#ifndef ADA_IDNA_H
++++#define ADA_IDNA_H
++++
++++/* begin file include/ada/idna/unicode_transcoding.h */
++++#ifndef ADA_IDNA_UNICODE_TRANSCODING_H
++++#define ADA_IDNA_UNICODE_TRANSCODING_H
++++
++++#include <string>
++++#include <string_view>
++++
++++namespace ada::idna {
++++
++++size_t utf8_to_utf32(const char* buf, size_t len, char32_t* utf32_output);
++++
++++size_t utf8_length_from_utf32(const char32_t* buf, size_t len);
++++
++++size_t utf32_length_from_utf8(const char* buf, size_t len);
++++
++++size_t utf32_to_utf8(const char32_t* buf, size_t len, char* utf8_output);
++++
++++}  // namespace ada::idna
++++
++++#endif  // ADA_IDNA_UNICODE_TRANSCODING_H
++++/* end file include/ada/idna/unicode_transcoding.h */
++++/* begin file include/ada/idna/mapping.h */
++++#ifndef ADA_IDNA_MAPPING_H
++++#define ADA_IDNA_MAPPING_H
++++
++++#include <string>
++++#include <string_view>
++++
++++namespace ada::idna {
++++
++++// If the input is ascii, then the mapping is just -> lower case.
++++void ascii_map(char* input, size_t length);
++++// check whether an ascii string needs mapping
++++bool ascii_has_upper_case(char* input, size_t length);
++++// Map the characters according to IDNA, returning the empty string on error.
++++std::u32string map(std::u32string_view input);
++++
++++}  // namespace ada::idna
++++
++++#endif
++++/* end file include/ada/idna/mapping.h */
++++/* begin file include/ada/idna/normalization.h */
++++#ifndef ADA_IDNA_NORMALIZATION_H
++++#define ADA_IDNA_NORMALIZATION_H
++++
++++#include <string>
++++#include <string_view>
++++
++++namespace ada::idna {
++++
++++// Normalize the characters according to IDNA (Unicode Normalization Form C).
++++void normalize(std::u32string& input);
++++
++++}  // namespace ada::idna
++++#endif
++++/* end file include/ada/idna/normalization.h */
++++/* begin file include/ada/idna/punycode.h */
++++#ifndef ADA_IDNA_PUNYCODE_H
++++#define ADA_IDNA_PUNYCODE_H
++++
++++#include <string>
++++#include <string_view>
++++
++++namespace ada::idna {
++++
++++bool punycode_to_utf32(std::string_view input, std::u32string& out);
++++bool verify_punycode(std::string_view input);
++++bool utf32_to_punycode(std::u32string_view input, std::string& out);
++++
++++}  // namespace ada::idna
++++
++++#endif  // ADA_IDNA_PUNYCODE_H
++++/* end file include/ada/idna/punycode.h */
++++/* begin file include/ada/idna/validity.h */
++++#ifndef ADA_IDNA_VALIDITY_H
++++#define ADA_IDNA_VALIDITY_H
++++
++++#include <string>
++++#include <string_view>
++++
++++namespace ada::idna {
++++
++++/**
++++ * @see https://www.unicode.org/reports/tr46/#Validity_Criteria
++++ */
++++bool is_label_valid(std::u32string_view label);
++++
++++}  // namespace ada::idna
++++
++++#endif  // ADA_IDNA_VALIDITY_H
++++/* end file include/ada/idna/validity.h */
++++/* begin file include/ada/idna/to_ascii.h */
++++#ifndef ADA_IDNA_TO_ASCII_H
++++#define ADA_IDNA_TO_ASCII_H
++++
++++#include <string>
++++#include <string_view>
++++
++++namespace ada::idna {
++++
++++// Converts a domain (e.g., www.google.com) possibly containing international
++++// characters to an ascii domain (with punycode). It will not do percent
++++// decoding: percent decoding should be done prior to calling this function. We
++++// do not remove tabs and spaces, they should have been removed prior to calling
++++// this function. We also do not trim control characters. We also assume that
++++// the input is not empty. We return "" on error.
++++//
++++//
++++// This function may accept or even produce invalid domains.
++++std::string to_ascii(std::string_view ut8_string);
++++
++++// Returns true if the string contains a forbidden code point according to the
++++// WHATGL URL specification:
++++// https://url.spec.whatwg.org/#forbidden-domain-code-point
++++bool contains_forbidden_domain_code_point(std::string_view ascii_string);
++++
++++bool begins_with(std::u32string_view view, std::u32string_view prefix);
++++bool begins_with(std::string_view view, std::string_view prefix);
++++
++++bool constexpr is_ascii(std::u32string_view view);
++++bool constexpr is_ascii(std::string_view view);
++++
++++}  // namespace ada::idna
++++
++++#endif  // ADA_IDNA_TO_ASCII_H
++++/* end file include/ada/idna/to_ascii.h */
++++/* begin file include/ada/idna/to_unicode.h */
++++
++++#ifndef ADA_IDNA_TO_UNICODE_H
++++#define ADA_IDNA_TO_UNICODE_H
++++
++++#include <string_view>
++++
++++namespace ada::idna {
++++
++++std::string to_unicode(std::string_view input);
++++
++++}  // namespace ada::idna
++++
++++#endif  // ADA_IDNA_TO_UNICODE_H
++++/* end file include/ada/idna/to_unicode.h */
++++
++++#endif
++++/* end file include/idna.h */
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..d74b414d9edb5fa38e6a8411a84ac54261d6d4c9
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,20 @@@@@
++++/**
++++ * @file ada_version.h
++++ * @brief Definitions for Ada's version number.
++++ */
++++#ifndef ADA_ADA_VERSION_H
++++#define ADA_ADA_VERSION_H
++++
++++#define ADA_VERSION "2.9.2"
++++
++++namespace ada {
++++
++++enum {
++++  ADA_VERSION_MAJOR = 2,
++++  ADA_VERSION_MINOR = 9,
++++  ADA_VERSION_REVISION = 2,
++++};
++++
++++}  // namespace ada
++++
++++#endif  // ADA_ADA_VERSION_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..32b5c3aa492cc145fb340f92a4c3724a67d6cccb
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,521 @@@@@
++++/**
++++ * @file character_sets-inl.h
++++ * @brief Definitions of the character sets used by unicode functions.
++++ * @author Node.js
++++ * @see https://github.com/nodejs/node/blob/main/src/node_url_tables.cc
++++ */
++++#ifndef ADA_CHARACTER_SETS_INL_H
++++#define ADA_CHARACTER_SETS_INL_H
++++
++++#include "ada/character_sets.h"
++++
++++/**
++++ * These functions are not part of our public API and may
++++ * change at any time.
++++ * @private
++++ */
++++namespace ada::character_sets {
++++
++++constexpr char hex[1024] =
++++    "%00\0%01\0%02\0%03\0%04\0%05\0%06\0%07\0"
++++    "%08\0%09\0%0A\0%0B\0%0C\0%0D\0%0E\0%0F\0"
++++    "%10\0%11\0%12\0%13\0%14\0%15\0%16\0%17\0"
++++    "%18\0%19\0%1A\0%1B\0%1C\0%1D\0%1E\0%1F\0"
++++    "%20\0%21\0%22\0%23\0%24\0%25\0%26\0%27\0"
++++    "%28\0%29\0%2A\0%2B\0%2C\0%2D\0%2E\0%2F\0"
++++    "%30\0%31\0%32\0%33\0%34\0%35\0%36\0%37\0"
++++    "%38\0%39\0%3A\0%3B\0%3C\0%3D\0%3E\0%3F\0"
++++    "%40\0%41\0%42\0%43\0%44\0%45\0%46\0%47\0"
++++    "%48\0%49\0%4A\0%4B\0%4C\0%4D\0%4E\0%4F\0"
++++    "%50\0%51\0%52\0%53\0%54\0%55\0%56\0%57\0"
++++    "%58\0%59\0%5A\0%5B\0%5C\0%5D\0%5E\0%5F\0"
++++    "%60\0%61\0%62\0%63\0%64\0%65\0%66\0%67\0"
++++    "%68\0%69\0%6A\0%6B\0%6C\0%6D\0%6E\0%6F\0"
++++    "%70\0%71\0%72\0%73\0%74\0%75\0%76\0%77\0"
++++    "%78\0%79\0%7A\0%7B\0%7C\0%7D\0%7E\0%7F\0"
++++    "%80\0%81\0%82\0%83\0%84\0%85\0%86\0%87\0"
++++    "%88\0%89\0%8A\0%8B\0%8C\0%8D\0%8E\0%8F\0"
++++    "%90\0%91\0%92\0%93\0%94\0%95\0%96\0%97\0"
++++    "%98\0%99\0%9A\0%9B\0%9C\0%9D\0%9E\0%9F\0"
++++    "%A0\0%A1\0%A2\0%A3\0%A4\0%A5\0%A6\0%A7\0"
++++    "%A8\0%A9\0%AA\0%AB\0%AC\0%AD\0%AE\0%AF\0"
++++    "%B0\0%B1\0%B2\0%B3\0%B4\0%B5\0%B6\0%B7\0"
++++    "%B8\0%B9\0%BA\0%BB\0%BC\0%BD\0%BE\0%BF\0"
++++    "%C0\0%C1\0%C2\0%C3\0%C4\0%C5\0%C6\0%C7\0"
++++    "%C8\0%C9\0%CA\0%CB\0%CC\0%CD\0%CE\0%CF\0"
++++    "%D0\0%D1\0%D2\0%D3\0%D4\0%D5\0%D6\0%D7\0"
++++    "%D8\0%D9\0%DA\0%DB\0%DC\0%DD\0%DE\0%DF\0"
++++    "%E0\0%E1\0%E2\0%E3\0%E4\0%E5\0%E6\0%E7\0"
++++    "%E8\0%E9\0%EA\0%EB\0%EC\0%ED\0%EE\0%EF\0"
++++    "%F0\0%F1\0%F2\0%F3\0%F4\0%F5\0%F6\0%F7\0"
++++    "%F8\0%F9\0%FA\0%FB\0%FC\0%FD\0%FE\0%FF";
++++
++++constexpr uint8_t C0_CONTROL_PERCENT_ENCODE[32] = {
++++    // 00     01     02     03     04     05     06     07
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 08     09     0A     0B     0C     0D     0E     0F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 10     11     12     13     14     15     16     17
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 18     19     1A     1B     1C     1D     1E     1F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 20     21     22     23     24     25     26     27
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 28     29     2A     2B     2C     2D     2E     2F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 30     31     32     33     34     35     36     37
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 38     39     3A     3B     3C     3D     3E     3F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 40     41     42     43     44     45     46     47
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 48     49     4A     4B     4C     4D     4E     4F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 50     51     52     53     54     55     56     57
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 58     59     5A     5B     5C     5D     5E     5F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 60     61     62     63     64     65     66     67
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 68     69     6A     6B     6C     6D     6E     6F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 70     71     72     73     74     75     76     77
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 78     79     7A     7B     7C     7D     7E     7F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x80,
++++    // 80     81     82     83     84     85     86     87
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 88     89     8A     8B     8C     8D     8E     8F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 90     91     92     93     94     95     96     97
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 98     99     9A     9B     9C     9D     9E     9F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // A0     A1     A2     A3     A4     A5     A6     A7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // A8     A9     AA     AB     AC     AD     AE     AF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // B0     B1     B2     B3     B4     B5     B6     B7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // B8     B9     BA     BB     BC     BD     BE     BF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // C0     C1     C2     C3     C4     C5     C6     C7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // C8     C9     CA     CB     CC     CD     CE     CF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // D0     D1     D2     D3     D4     D5     D6     D7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // D8     D9     DA     DB     DC     DD     DE     DF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // E0     E1     E2     E3     E4     E5     E6     E7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // E8     E9     EA     EB     EC     ED     EE     EF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // F0     F1     F2     F3     F4     F5     F6     F7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // F8     F9     FA     FB     FC     FD     FE     FF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80};
++++
++++constexpr uint8_t SPECIAL_QUERY_PERCENT_ENCODE[32] = {
++++    // 00     01     02     03     04     05     06     07
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 08     09     0A     0B     0C     0D     0E     0F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 10     11     12     13     14     15     16     17
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 18     19     1A     1B     1C     1D     1E     1F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 20     21     22     23     24     25     26     27
++++    0x01 | 0x00 | 0x04 | 0x08 | 0x00 | 0x00 | 0x00 | 0x80,
++++    // 28     29     2A     2B     2C     2D     2E     2F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 30     31     32     33     34     35     36     37
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 38     39     3A     3B     3C     3D     3E     3F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x10 | 0x00 | 0x40 | 0x00,
++++    // 40     41     42     43     44     45     46     47
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 48     49     4A     4B     4C     4D     4E     4F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 50     51     52     53     54     55     56     57
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 58     59     5A     5B     5C     5D     5E     5F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 60     61     62     63     64     65     66     67
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 68     69     6A     6B     6C     6D     6E     6F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 70     71     72     73     74     75     76     77
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 78     79     7A     7B     7C     7D     7E     7F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x80,
++++    // 80     81     82     83     84     85     86     87
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 88     89     8A     8B     8C     8D     8E     8F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 90     91     92     93     94     95     96     97
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 98     99     9A     9B     9C     9D     9E     9F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // A0     A1     A2     A3     A4     A5     A6     A7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // A8     A9     AA     AB     AC     AD     AE     AF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // B0     B1     B2     B3     B4     B5     B6     B7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // B8     B9     BA     BB     BC     BD     BE     BF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // C0     C1     C2     C3     C4     C5     C6     C7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // C8     C9     CA     CB     CC     CD     CE     CF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // D0     D1     D2     D3     D4     D5     D6     D7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // D8     D9     DA     DB     DC     DD     DE     DF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // E0     E1     E2     E3     E4     E5     E6     E7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // E8     E9     EA     EB     EC     ED     EE     EF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // F0     F1     F2     F3     F4     F5     F6     F7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // F8     F9     FA     FB     FC     FD     FE     FF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80};
++++
++++constexpr uint8_t QUERY_PERCENT_ENCODE[32] = {
++++    // 00     01     02     03     04     05     06     07
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 08     09     0A     0B     0C     0D     0E     0F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 10     11     12     13     14     15     16     17
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 18     19     1A     1B     1C     1D     1E     1F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 20     21     22     23     24     25     26     27
++++    0x01 | 0x00 | 0x04 | 0x08 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 28     29     2A     2B     2C     2D     2E     2F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 30     31     32     33     34     35     36     37
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 38     39     3A     3B     3C     3D     3E     3F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x10 | 0x00 | 0x40 | 0x00,
++++    // 40     41     42     43     44     45     46     47
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 48     49     4A     4B     4C     4D     4E     4F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 50     51     52     53     54     55     56     57
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 58     59     5A     5B     5C     5D     5E     5F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 60     61     62     63     64     65     66     67
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 68     69     6A     6B     6C     6D     6E     6F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 70     71     72     73     74     75     76     77
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 78     79     7A     7B     7C     7D     7E     7F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x80,
++++    // 80     81     82     83     84     85     86     87
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 88     89     8A     8B     8C     8D     8E     8F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 90     91     92     93     94     95     96     97
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 98     99     9A     9B     9C     9D     9E     9F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // A0     A1     A2     A3     A4     A5     A6     A7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // A8     A9     AA     AB     AC     AD     AE     AF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // B0     B1     B2     B3     B4     B5     B6     B7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // B8     B9     BA     BB     BC     BD     BE     BF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // C0     C1     C2     C3     C4     C5     C6     C7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // C8     C9     CA     CB     CC     CD     CE     CF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // D0     D1     D2     D3     D4     D5     D6     D7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // D8     D9     DA     DB     DC     DD     DE     DF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // E0     E1     E2     E3     E4     E5     E6     E7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // E8     E9     EA     EB     EC     ED     EE     EF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // F0     F1     F2     F3     F4     F5     F6     F7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // F8     F9     FA     FB     FC     FD     FE     FF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80};
++++
++++constexpr uint8_t FRAGMENT_PERCENT_ENCODE[32] = {
++++    // 00     01     02     03     04     05     06     07
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 08     09     0A     0B     0C     0D     0E     0F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 10     11     12     13     14     15     16     17
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 18     19     1A     1B     1C     1D     1E     1F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 20     21     22     23     24     25     26     27
++++    0x01 | 0x00 | 0x04 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 28     29     2A     2B     2C     2D     2E     2F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 30     31     32     33     34     35     36     37
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 38     39     3A     3B     3C     3D     3E     3F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x10 | 0x00 | 0x40 | 0x00,
++++    // 40     41     42     43     44     45     46     47
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 48     49     4A     4B     4C     4D     4E     4F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 50     51     52     53     54     55     56     57
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 58     59     5A     5B     5C     5D     5E     5F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 60     61     62     63     64     65     66     67
++++    0x01 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 68     69     6A     6B     6C     6D     6E     6F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 70     71     72     73     74     75     76     77
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 78     79     7A     7B     7C     7D     7E     7F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x80,
++++    // 80     81     82     83     84     85     86     87
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 88     89     8A     8B     8C     8D     8E     8F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 90     91     92     93     94     95     96     97
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 98     99     9A     9B     9C     9D     9E     9F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // A0     A1     A2     A3     A4     A5     A6     A7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // A8     A9     AA     AB     AC     AD     AE     AF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // B0     B1     B2     B3     B4     B5     B6     B7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // B8     B9     BA     BB     BC     BD     BE     BF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // C0     C1     C2     C3     C4     C5     C6     C7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // C8     C9     CA     CB     CC     CD     CE     CF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // D0     D1     D2     D3     D4     D5     D6     D7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // D8     D9     DA     DB     DC     DD     DE     DF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // E0     E1     E2     E3     E4     E5     E6     E7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // E8     E9     EA     EB     EC     ED     EE     EF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // F0     F1     F2     F3     F4     F5     F6     F7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // F8     F9     FA     FB     FC     FD     FE     FF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80};
++++
++++constexpr uint8_t USERINFO_PERCENT_ENCODE[32] = {
++++    // 00     01     02     03     04     05     06     07
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 08     09     0A     0B     0C     0D     0E     0F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 10     11     12     13     14     15     16     17
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 18     19     1A     1B     1C     1D     1E     1F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 20     21     22     23     24     25     26     27
++++    0x01 | 0x00 | 0x04 | 0x08 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 28     29     2A     2B     2C     2D     2E     2F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x80,
++++    // 30     31     32     33     34     35     36     37
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 38     39     3A     3B     3C     3D     3E     3F
++++    0x00 | 0x00 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 40     41     42     43     44     45     46     47
++++    0x01 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 48     49     4A     4B     4C     4D     4E     4F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 50     51     52     53     54     55     56     57
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 58     59     5A     5B     5C     5D     5E     5F
++++    0x00 | 0x00 | 0x00 | 0x08 | 0x10 | 0x20 | 0x40 | 0x00,
++++    // 60     61     62     63     64     65     66     67
++++    0x01 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 68     69     6A     6B     6C     6D     6E     6F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 70     71     72     73     74     75     76     77
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 78     79     7A     7B     7C     7D     7E     7F
++++    0x00 | 0x00 | 0x00 | 0x08 | 0x10 | 0x20 | 0x00 | 0x80,
++++    // 80     81     82     83     84     85     86     87
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 88     89     8A     8B     8C     8D     8E     8F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 90     91     92     93     94     95     96     97
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 98     99     9A     9B     9C     9D     9E     9F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // A0     A1     A2     A3     A4     A5     A6     A7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // A8     A9     AA     AB     AC     AD     AE     AF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // B0     B1     B2     B3     B4     B5     B6     B7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // B8     B9     BA     BB     BC     BD     BE     BF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // C0     C1     C2     C3     C4     C5     C6     C7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // C8     C9     CA     CB     CC     CD     CE     CF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // D0     D1     D2     D3     D4     D5     D6     D7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // D8     D9     DA     DB     DC     DD     DE     DF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // E0     E1     E2     E3     E4     E5     E6     E7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // E8     E9     EA     EB     EC     ED     EE     EF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // F0     F1     F2     F3     F4     F5     F6     F7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // F8     F9     FA     FB     FC     FD     FE     FF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80};
++++
++++constexpr uint8_t PATH_PERCENT_ENCODE[32] = {
++++    // 00     01     02     03     04     05     06     07
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 08     09     0A     0B     0C     0D     0E     0F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 10     11     12     13     14     15     16     17
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 18     19     1A     1B     1C     1D     1E     1F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 20     21     22     23     24     25     26     27
++++    0x01 | 0x00 | 0x04 | 0x08 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 28     29     2A     2B     2C     2D     2E     2F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 30     31     32     33     34     35     36     37
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 38     39     3A     3B     3C     3D     3E     3F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x10 | 0x00 | 0x40 | 0x80,
++++    // 40     41     42     43     44     45     46     47
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 48     49     4A     4B     4C     4D     4E     4F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 50     51     52     53     54     55     56     57
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 58     59     5A     5B     5C     5D     5E     5F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 60     61     62     63     64     65     66     67
++++    0x01 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 68     69     6A     6B     6C     6D     6E     6F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 70     71     72     73     74     75     76     77
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 78     79     7A     7B     7C     7D     7E     7F
++++    0x00 | 0x00 | 0x00 | 0x08 | 0x00 | 0x20 | 0x00 | 0x80,
++++    // 80     81     82     83     84     85     86     87
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 88     89     8A     8B     8C     8D     8E     8F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 90     91     92     93     94     95     96     97
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 98     99     9A     9B     9C     9D     9E     9F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // A0     A1     A2     A3     A4     A5     A6     A7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // A8     A9     AA     AB     AC     AD     AE     AF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // B0     B1     B2     B3     B4     B5     B6     B7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // B8     B9     BA     BB     BC     BD     BE     BF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // C0     C1     C2     C3     C4     C5     C6     C7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // C8     C9     CA     CB     CC     CD     CE     CF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // D0     D1     D2     D3     D4     D5     D6     D7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // D8     D9     DA     DB     DC     DD     DE     DF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // E0     E1     E2     E3     E4     E5     E6     E7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // E8     E9     EA     EB     EC     ED     EE     EF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // F0     F1     F2     F3     F4     F5     F6     F7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // F8     F9     FA     FB     FC     FD     FE     FF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80};
++++
++++constexpr uint8_t WWW_FORM_URLENCODED_PERCENT_ENCODE[32] = {
++++    // 00     01     02     03     04     05     06     07
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 08     09     0A     0B     0C     0D     0E     0F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 10     11     12     13     14     15     16     17
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 18     19     1A     1B     1C     1D     1E     1F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 20     21     22     23     24     25     26     27
++++    0x00 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 28     29     2A     2B     2C     2D     2E     2F
++++    0x01 | 0x02 | 0x00 | 0x08 | 0x10 | 0x00 | 0x00 | 0x80,
++++    // 30     31     32     33     34     35     36     37
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 38     39     3A     3B     3C     3D     3E     3F
++++    0x00 | 0x00 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 40     41     42     43     44     45     46     47
++++    0x01 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 48     49     4A     4B     4C     4D     4E     4F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 50     51     52     53     54     55     56     57
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 58     59     5A     5B     5C     5D     5E     5F
++++    0x00 | 0x00 | 0x00 | 0x08 | 0x00 | 0x20 | 0x40 | 0x00,
++++    // 60     61     62     63     64     65     66     67
++++    0x01 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 68     69     6A     6B     6C     6D     6E     6F
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 70     71     72     73     74     75     76     77
++++    0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00 | 0x00,
++++    // 78     79     7A     7B     7C     7D     7E     7F
++++    0x00 | 0x00 | 0x00 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 80     81     82     83     84     85     86     87
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 88     89     8A     8B     8C     8D     8E     8F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 90     91     92     93     94     95     96     97
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // 98     99     9A     9B     9C     9D     9E     9F
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // A0     A1     A2     A3     A4     A5     A6     A7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // A8     A9     AA     AB     AC     AD     AE     AF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // B0     B1     B2     B3     B4     B5     B6     B7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // B8     B9     BA     BB     BC     BD     BE     BF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // C0     C1     C2     C3     C4     C5     C6     C7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // C8     C9     CA     CB     CC     CD     CE     CF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // D0     D1     D2     D3     D4     D5     D6     D7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // D8     D9     DA     DB     DC     DD     DE     DF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // E0     E1     E2     E3     E4     E5     E6     E7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // E8     E9     EA     EB     EC     ED     EE     EF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // F0     F1     F2     F3     F4     F5     F6     F7
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80,
++++    // F8     F9     FA     FB     FC     FD     FE     FF
++++    0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x40 | 0x80};
++++
++++ada_really_inline bool bit_at(const uint8_t a[], const uint8_t i) {
++++  return !!(a[i >> 3] & (1 << (i & 7)));
++++}
++++
++++}  // namespace ada::character_sets
++++
++++#endif  // ADA_CHARACTER_SETS_INL_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5728f31ccfd9120b744a747926dba354e616a9f4
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,24 @@@@@
++++/**
++++ * @file character_sets.h
++++ * @brief Declaration of the character sets used by unicode functions.
++++ * @author Node.js
++++ * @see https://github.com/nodejs/node/blob/main/src/node_url_tables.cc
++++ */
++++#ifndef ADA_CHARACTER_SETS_H
++++#define ADA_CHARACTER_SETS_H
++++
++++#include "ada/common_defs.h"
++++#include <cstdint>
++++
++++/**
++++ * These functions are not part of our public API and may
++++ * change at any time.
++++ * @private
++++ * @namespace ada::character_sets
++++ * @brief Includes the definitions for unicode character sets.
++++ */
++++namespace ada::character_sets {
++++ada_really_inline bool bit_at(const uint8_t a[], uint8_t i);
++++}  // namespace ada::character_sets
++++
++++#endif  // ADA_CHARACTER_SETS_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4bf05b647c200a1478a0f31c1033acb410b7a086
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,67 @@@@@
++++/**
++++ * @file checkers-inl.h
++++ * @brief Definitions for URL specific checkers used within Ada.
++++ */
++++#ifndef ADA_CHECKERS_INL_H
++++#define ADA_CHECKERS_INL_H
++++
++++#include "ada/common_defs.h"
++++
++++#include <algorithm>
++++#include <string_view>
++++#include <cstring>
++++
++++namespace ada::checkers {
++++
++++inline bool has_hex_prefix_unsafe(std::string_view input) {
++++  // This is actually efficient code, see has_hex_prefix for the assembly.
++++  uint32_t value_one = 1;
++++  bool is_little_endian = (reinterpret_cast<char*>(&value_one)[0] == 1);
++++  uint16_t word0x{};
++++  std::memcpy(&word0x, "0x", 2);  // we would use bit_cast in C++20 and the
++++                                  // function could be constexpr.
++++  uint16_t two_first_bytes{};
++++  std::memcpy(&two_first_bytes, input.data(), 2);
++++  if (is_little_endian) {
++++    two_first_bytes |= 0x2000;
++++  } else {
++++    two_first_bytes |= 0x020;
++++  }
++++  return two_first_bytes == word0x;
++++}
++++
++++inline bool has_hex_prefix(std::string_view input) {
++++  return input.size() >= 2 && has_hex_prefix_unsafe(input);
++++}
++++
++++constexpr bool is_digit(char x) noexcept { return (x >= '0') & (x <= '9'); }
++++
++++constexpr char to_lower(char x) noexcept { return (x | 0x20); }
++++
++++constexpr bool is_alpha(char x) noexcept {
++++  return (to_lower(x) >= 'a') && (to_lower(x) <= 'z');
++++}
++++
++++inline constexpr bool is_windows_drive_letter(std::string_view input) noexcept {
++++  return input.size() >= 2 &&
++++         (is_alpha(input[0]) && ((input[1] == ':') || (input[1] == '|'))) &&
++++         ((input.size() == 2) || (input[2] == '/' || input[2] == '\\' ||
++++                                  input[2] == '?' || input[2] == '#'));
++++}
++++
++++inline constexpr bool is_normalized_windows_drive_letter(
++++    std::string_view input) noexcept {
++++  return input.size() >= 2 && (is_alpha(input[0]) && (input[1] == ':'));
++++}
++++
++++ada_really_inline bool begins_with(std::string_view view,
++++                                   std::string_view prefix) {
++++  // in C++20, you have view.begins_with(prefix)
++++  // std::equal is constexpr in C++20
++++  return view.size() >= prefix.size() &&
++++         std::equal(prefix.begin(), prefix.end(), view.begin());
++++}
++++
++++}  // namespace ada::checkers
++++
++++#endif  // ADA_CHECKERS_INL_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..8442e998aa89da405f9467f486f9941b5128b900
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,123 @@@@@
++++/**
++++ * @file checkers.h
++++ * @brief Declarations for URL specific checkers used within Ada.
++++ */
++++#ifndef ADA_CHECKERS_H
++++#define ADA_CHECKERS_H
++++
++++#include "ada/common_defs.h"
++++
++++#include <string_view>
++++#include <cstring>
++++
++++/**
++++ * These functions are not part of our public API and may
++++ * change at any time.
++++ * @private
++++ * @namespace ada::checkers
++++ * @brief Includes the definitions for validation functions
++++ */
++++namespace ada::checkers {
++++
++++/**
++++ * @private
++++ * Assuming that x is an ASCII letter, this function returns the lower case
++++ * equivalent.
++++ * @details More likely to be inlined by the compiler and constexpr.
++++ */
++++constexpr char to_lower(char x) noexcept;
++++
++++/**
++++ * @private
++++ * Returns true if the character is an ASCII letter. Equivalent to std::isalpha
++++ * but more likely to be inlined by the compiler.
++++ *
++++ * @attention std::isalpha is not constexpr generally.
++++ */
++++constexpr bool is_alpha(char x) noexcept;
++++
++++/**
++++ * @private
++++ * Check whether a string starts with 0x or 0X. The function is only
++++ * safe if input.size() >=2.
++++ *
++++ * @see has_hex_prefix
++++ */
++++inline bool has_hex_prefix_unsafe(std::string_view input);
++++/**
++++ * @private
++++ * Check whether a string starts with 0x or 0X.
++++ */
++++inline bool has_hex_prefix(std::string_view input);
++++
++++/**
++++ * @private
++++ * Check whether x is an ASCII digit. More likely to be inlined than
++++ * std::isdigit.
++++ */
++++constexpr bool is_digit(char x) noexcept;
++++
++++/**
++++ * @private
++++ * @details A string starts with a Windows drive letter if all of the following
++++ * are true:
++++ *
++++ *   - its length is greater than or equal to 2
++++ *   - its first two code points are a Windows drive letter
++++ *   - its length is 2 or its third code point is U+002F (/), U+005C (\), U+003F
++++ * (?), or U+0023 (#).
++++ *
++++ * https://url.spec.whatwg.org/#start-with-a-windows-drive-letter
++++ */
++++inline constexpr bool is_windows_drive_letter(std::string_view input) noexcept;
++++
++++/**
++++ * @private
++++ * @details A normalized Windows drive letter is a Windows drive letter of which
++++ * the second code point is U+003A (:).
++++ */
++++inline constexpr bool is_normalized_windows_drive_letter(
++++    std::string_view input) noexcept;
++++
++++/**
++++ * @private
++++ * @warning Will be removed when Ada requires C++20.
++++ */
++++ada_really_inline bool begins_with(std::string_view view,
++++                                   std::string_view prefix);
++++
++++/**
++++ * @private
++++ * Returns true if an input is an ipv4 address. It is assumed that the string
++++ * does not contain uppercase ASCII characters (the input should have been
++++ * lowered cased before calling this function) and is not empty.
++++ */
++++ada_really_inline ada_constexpr bool is_ipv4(std::string_view view) noexcept;
++++
++++/**
++++ * @private
++++ * Returns a bitset. If the first bit is set, then at least one character needs
++++ * percent encoding. If the second bit is set, a \\ is found. If the third bit
++++ * is set then we have a dot. If the fourth bit is set, then we have a percent
++++ * character.
++++ */
++++ada_really_inline constexpr uint8_t path_signature(
++++    std::string_view input) noexcept;
++++
++++/**
++++ * @private
++++ * Returns true if the length of the domain name and its labels are according to
++++ * the specifications. The length of the domain must be 255 octets (253
++++ * characters not including the last 2 which are the empty label reserved at the
++++ * end). When the empty label is included (a dot at the end), the domain name
++++ * can have 254 characters. The length of a label must be at least 1 and at most
++++ * 63 characters.
++++ * @see section 3.1. of https://www.rfc-editor.org/rfc/rfc1034
++++ * @see https://www.unicode.org/reports/tr46/#ToASCII
++++ */
++++ada_really_inline constexpr bool verify_dns_length(
++++    std::string_view input) noexcept;
++++
++++}  // namespace ada::checkers
++++
++++#endif  // ADA_CHECKERS_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e7f4a5e72ba054fef833653b17199c931638c3ec
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,313 @@@@@
++++/**
++++ * @file common_defs.h
++++ * @brief Common definitions for cross-platform compiler support.
++++ */
++++#ifndef ADA_COMMON_DEFS_H
++++#define ADA_COMMON_DEFS_H
++++
++++#ifdef _MSC_VER
++++#define ADA_VISUAL_STUDIO 1
++++/**
++++ * We want to differentiate carefully between
++++ * clang under visual studio and regular visual
++++ * studio.
++++ */
++++#ifdef __clang__
++++// clang under visual studio
++++#define ADA_CLANG_VISUAL_STUDIO 1
++++#else
++++// just regular visual studio (best guess)
++++#define ADA_REGULAR_VISUAL_STUDIO 1
++++#endif  // __clang__
++++#endif  // _MSC_VER
++++
++++#if defined(__GNUC__)
++++// Marks a block with a name so that MCA analysis can see it.
++++#define ADA_BEGIN_DEBUG_BLOCK(name) __asm volatile("# LLVM-MCA-BEGIN " #name);
++++#define ADA_END_DEBUG_BLOCK(name) __asm volatile("# LLVM-MCA-END " #name);
++++#define ADA_DEBUG_BLOCK(name, block) \
++++  BEGIN_DEBUG_BLOCK(name);           \
++++  block;                             \
++++  END_DEBUG_BLOCK(name);
++++#else
++++#define ADA_BEGIN_DEBUG_BLOCK(name)
++++#define ADA_END_DEBUG_BLOCK(name)
++++#define ADA_DEBUG_BLOCK(name, block)
++++#endif
++++
++++// Align to N-byte boundary
++++#define ADA_ROUNDUP_N(a, n) (((a) + ((n)-1)) & ~((n)-1))
++++#define ADA_ROUNDDOWN_N(a, n) ((a) & ~((n)-1))
++++
++++#define ADA_ISALIGNED_N(ptr, n) (((uintptr_t)(ptr) & ((n)-1)) == 0)
++++
++++#if defined(ADA_REGULAR_VISUAL_STUDIO)
++++
++++#define ada_really_inline __forceinline
++++#define ada_never_inline __declspec(noinline)
++++
++++#define ada_unused
++++#define ada_warn_unused
++++
++++#ifndef ada_likely
++++#define ada_likely(x) x
++++#endif
++++#ifndef ada_unlikely
++++#define ada_unlikely(x) x
++++#endif
++++
++++#define ADA_PUSH_DISABLE_WARNINGS __pragma(warning(push))
++++#define ADA_PUSH_DISABLE_ALL_WARNINGS __pragma(warning(push, 0))
++++#define ADA_DISABLE_VS_WARNING(WARNING_NUMBER) \
++++  __pragma(warning(disable : WARNING_NUMBER))
++++// Get rid of Intellisense-only warnings (Code Analysis)
++++// Though __has_include is C++17, it is supported in Visual Studio 2017 or
++++// better (_MSC_VER>=1910).
++++#ifdef __has_include
++++#if __has_include(<CppCoreCheck\Warnings.h>)
++++#include <CppCoreCheck\Warnings.h>
++++#define ADA_DISABLE_UNDESIRED_WARNINGS \
++++  ADA_DISABLE_VS_WARNING(ALL_CPPCORECHECK_WARNINGS)
++++#endif
++++#endif
++++
++++#ifndef ADA_DISABLE_UNDESIRED_WARNINGS
++++#define ADA_DISABLE_UNDESIRED_WARNINGS
++++#endif
++++
++++#define ADA_DISABLE_DEPRECATED_WARNING ADA_DISABLE_VS_WARNING(4996)
++++#define ADA_DISABLE_STRICT_OVERFLOW_WARNING
++++#define ADA_POP_DISABLE_WARNINGS __pragma(warning(pop))
++++
++++#else  // ADA_REGULAR_VISUAL_STUDIO
++++
++++#define ada_really_inline inline __attribute__((always_inline))
++++#define ada_never_inline inline __attribute__((noinline))
++++
++++#define ada_unused __attribute__((unused))
++++#define ada_warn_unused __attribute__((warn_unused_result))
++++
++++#ifndef ada_likely
++++#define ada_likely(x) __builtin_expect(!!(x), 1)
++++#endif
++++#ifndef ada_unlikely
++++#define ada_unlikely(x) __builtin_expect(!!(x), 0)
++++#endif
++++
++++#define ADA_PUSH_DISABLE_WARNINGS _Pragma("GCC diagnostic push")
++++// gcc doesn't seem to disable all warnings with all and extra, add warnings
++++// here as necessary
++++#define ADA_PUSH_DISABLE_ALL_WARNINGS               \
++++  ADA_PUSH_DISABLE_WARNINGS                         \
++++  ADA_DISABLE_GCC_WARNING("-Weffc++")               \
++++  ADA_DISABLE_GCC_WARNING("-Wall")                  \
++++  ADA_DISABLE_GCC_WARNING("-Wconversion")           \
++++  ADA_DISABLE_GCC_WARNING("-Wextra")                \
++++  ADA_DISABLE_GCC_WARNING("-Wattributes")           \
++++  ADA_DISABLE_GCC_WARNING("-Wimplicit-fallthrough") \
++++  ADA_DISABLE_GCC_WARNING("-Wnon-virtual-dtor")     \
++++  ADA_DISABLE_GCC_WARNING("-Wreturn-type")          \
++++  ADA_DISABLE_GCC_WARNING("-Wshadow")               \
++++  ADA_DISABLE_GCC_WARNING("-Wunused-parameter")     \
++++  ADA_DISABLE_GCC_WARNING("-Wunused-variable")
++++#define ADA_PRAGMA(P) _Pragma(#P)
++++#define ADA_DISABLE_GCC_WARNING(WARNING) \
++++  ADA_PRAGMA(GCC diagnostic ignored WARNING)
++++#if defined(ADA_CLANG_VISUAL_STUDIO)
++++#define ADA_DISABLE_UNDESIRED_WARNINGS \
++++  ADA_DISABLE_GCC_WARNING("-Wmicrosoft-include")
++++#else
++++#define ADA_DISABLE_UNDESIRED_WARNINGS
++++#endif
++++#define ADA_DISABLE_DEPRECATED_WARNING \
++++  ADA_DISABLE_GCC_WARNING("-Wdeprecated-declarations")
++++#define ADA_DISABLE_STRICT_OVERFLOW_WARNING \
++++  ADA_DISABLE_GCC_WARNING("-Wstrict-overflow")
++++#define ADA_POP_DISABLE_WARNINGS _Pragma("GCC diagnostic pop")
++++
++++#endif  // MSC_VER
++++
++++#if defined(ADA_VISUAL_STUDIO)
++++/**
++++ * It does not matter here whether you are using
++++ * the regular visual studio or clang under visual
++++ * studio.
++++ */
++++#if ADA_USING_LIBRARY
++++#define ADA_DLLIMPORTEXPORT __declspec(dllimport)
++++#else
++++#define ADA_DLLIMPORTEXPORT __declspec(dllexport)
++++#endif
++++#else
++++#define ADA_DLLIMPORTEXPORT
++++#endif
++++
++++/// If EXPR is an error, returns it.
++++#define ADA_TRY(EXPR)   \
++++  {                     \
++++    auto _err = (EXPR); \
++++    if (_err) {         \
++++      return _err;      \
++++    }                   \
++++  }
++++
++++// __has_cpp_attribute is part of C++20
++++#if !defined(__has_cpp_attribute)
++++#define __has_cpp_attribute(x) 0
++++#endif
++++
++++#if __has_cpp_attribute(gnu::noinline)
++++#define ADA_ATTRIBUTE_NOINLINE [[gnu::noinline]]
++++#else
++++#define ADA_ATTRIBUTE_NOINLINE
++++#endif
++++
++++namespace ada {
++++[[noreturn]] inline void unreachable() {
++++#ifdef __GNUC__
++++  __builtin_unreachable();
++++#elif defined(_MSC_VER)
++++  __assume(false);
++++#else
++++#endif
++++}
++++}  // namespace ada
++++
++++#if defined(__GNUC__) && !defined(__clang__)
++++#if __GNUC__ <= 8
++++#define ADA_OLD_GCC 1
++++#endif  //  __GNUC__ <= 8
++++#endif  // defined(__GNUC__) && !defined(__clang__)
++++
++++#if ADA_OLD_GCC
++++#define ada_constexpr
++++#else
++++#define ada_constexpr constexpr
++++#endif
++++
++++#if defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__)
++++#define ADA_IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
++++#elif defined(_WIN32)
++++#define ADA_IS_BIG_ENDIAN 0
++++#else
++++#if defined(__APPLE__) || \
++++    defined(__FreeBSD__)  // defined __BYTE_ORDER__ && defined
++++                          // __ORDER_BIG_ENDIAN__
++++#include <machine/endian.h>
++++#elif defined(sun) || \
++++    defined(__sun)  // defined(__APPLE__) || defined(__FreeBSD__)
++++#include <sys/byteorder.h>
++++#else  // defined(__APPLE__) || defined(__FreeBSD__)
++++
++++#ifdef __has_include
++++#if __has_include(<endian.h>)
++++#include <endian.h>
++++#endif  //__has_include(<endian.h>)
++++#endif  //__has_include
++++
++++#endif  // defined(__APPLE__) || defined(__FreeBSD__)
++++
++++#ifndef !defined(__BYTE_ORDER__) || !defined(__ORDER_LITTLE_ENDIAN__)
++++#define ADA_IS_BIG_ENDIAN 0
++++#endif
++++
++++#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
++++#define ADA_IS_BIG_ENDIAN 0
++++#else  // __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
++++#define ADA_IS_BIG_ENDIAN 1
++++#endif  // __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
++++
++++#endif  // defined __BYTE_ORDER__ && defined __ORDER_BIG_ENDIAN__
++++
++++// Unless the programmer has already set ADA_DEVELOPMENT_CHECKS,
++++// we want to set it under debug builds. We detect a debug build
++++// under Visual Studio when the _DEBUG macro is set. Under the other
++++// compilers, we use the fact that they define __OPTIMIZE__ whenever
++++// they allow optimizations.
++++// It is possible that this could miss some cases where ADA_DEVELOPMENT_CHECKS
++++// is helpful, but the programmer can set the macro ADA_DEVELOPMENT_CHECKS.
++++// It could also wrongly set ADA_DEVELOPMENT_CHECKS (e.g., if the programmer
++++// sets _DEBUG in a release build under Visual Studio, or if some compiler fails
++++// to set the __OPTIMIZE__ macro).
++++#if !defined(ADA_DEVELOPMENT_CHECKS) && !defined(NDEBUG)
++++#ifdef _MSC_VER
++++// Visual Studio seems to set _DEBUG for debug builds.
++++#ifdef _DEBUG
++++#define ADA_DEVELOPMENT_CHECKS 1
++++#endif  // _DEBUG
++++#else   // _MSC_VER
++++// All other compilers appear to set __OPTIMIZE__ to a positive integer
++++// when the compiler is optimizing.
++++#ifndef __OPTIMIZE__
++++#define ADA_DEVELOPMENT_CHECKS 1
++++#endif  // __OPTIMIZE__
++++#endif  // _MSC_VER
++++#endif  // ADA_DEVELOPMENT_CHECKS
++++
++++#define ADA_STR(x) #x
++++
++++#if ADA_DEVELOPMENT_CHECKS
++++#define ADA_REQUIRE(EXPR) \
++++  {                       \
++++    if (!(EXPR) { abort(); }) }
++++
++++#define ADA_FAIL(MESSAGE)                            \
++++  do {                                               \
++++    std::cerr << "FAIL: " << (MESSAGE) << std::endl; \
++++    abort();                                         \
++++  } while (0);
++++#define ADA_ASSERT_EQUAL(LHS, RHS, MESSAGE)                                    \
++++  do {                                                                         \
++++    if (LHS != RHS) {                                                          \
++++      std::cerr << "Mismatch: '" << LHS << "' - '" << RHS << "'" << std::endl; \
++++      ADA_FAIL(MESSAGE);                                                       \
++++    }                                                                          \
++++  } while (0);
++++#define ADA_ASSERT_TRUE(COND)                                               \
++++  do {                                                                      \
++++    if (!(COND)) {                                                          \
++++      std::cerr << "Assert at line " << __LINE__ << " of file " << __FILE__ \
++++                << std::endl;                                               \
++++      ADA_FAIL(ADA_STR(COND));                                              \
++++    }                                                                       \
++++  } while (0);
++++#else
++++#define ADA_FAIL(MESSAGE)
++++#define ADA_ASSERT_EQUAL(LHS, RHS, MESSAGE)
++++#define ADA_ASSERT_TRUE(COND)
++++#endif
++++
++++#ifdef ADA_VISUAL_STUDIO
++++#define ADA_ASSUME(COND) __assume(COND)
++++#else
++++#define ADA_ASSUME(COND)       \
++++  do {                         \
++++    if (!(COND)) {             \
++++      __builtin_unreachable(); \
++++    }                          \
++++  } while (0)
++++#endif
++++
++++#if defined(__SSE2__) || defined(__x86_64__) || defined(__x86_64) || \
++++    (defined(_M_AMD64) || defined(_M_X64) ||                         \
++++     (defined(_M_IX86_FP) && _M_IX86_FP == 2))
++++#define ADA_SSE2 1
++++#endif
++++
++++#if defined(__aarch64__) || defined(_M_ARM64)
++++#define ADA_NEON 1
++++#endif
++++
++++#ifndef __has_cpp_attribute
++++#define ada_lifetime_bound
++++#elif __has_cpp_attribute(msvc::lifetimebound)
++++#define ada_lifetime_bound [[msvc::lifetimebound]]
++++#elif __has_cpp_attribute(clang::lifetimebound)
++++#define ada_lifetime_bound [[clang::lifetimebound]]
++++#elif __has_cpp_attribute(lifetimebound)
++++#define ada_lifetime_bound [[lifetimebound]]
++++#else
++++#define ada_lifetime_bound
++++#endif
++++
++++#endif  // ADA_COMMON_DEFS_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..931590e2cdfd747e24377147d0994fcc9b445467
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,32 @@@@@
++++/**
++++ * @file encoding_type.h
++++ * @brief Definition for supported encoding types.
++++ */
++++#ifndef ADA_ENCODING_TYPE_H
++++#define ADA_ENCODING_TYPE_H
++++
++++#include "ada/common_defs.h"
++++#include <string>
++++
++++namespace ada {
++++
++++/**
++++ * This specification defines three encodings with the same names as encoding
++++ * schemes defined in the Unicode standard: UTF-8, UTF-16LE, and UTF-16BE.
++++ *
++++ * @see https://encoding.spec.whatwg.org/#encodings
++++ */
++++enum class encoding_type {
++++  UTF8,
++++  UTF_16LE,
++++  UTF_16BE,
++++};
++++
++++/**
++++ * Convert a encoding_type to string.
++++ */
++++ada_warn_unused std::string to_string(encoding_type type);
++++
++++}  // namespace ada
++++
++++#endif  // ADA_ENCODING_TYPE_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5233a042a1cd427b92ef07172668f23659361677
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,2519 @@@@@
++++/**
++++ * @file expected.h
++++ * @brief Definitions for std::expected
++++ * @private Excluded from docs through the doxygen file.
++++ */
++++///
++++// expected - An implementation of std::expected with extensions
++++// Written in 2017 by Sy Brand (tartanllama@gmail.com, @TartanLlama)
++++//
++++// Documentation available at http://tl.tartanllama.xyz/
++++//
++++// To the extent possible under law, the author(s) have dedicated all
++++// copyright and related and neighboring rights to this software to the
++++// public domain worldwide. This software is distributed without any warranty.
++++//
++++// You should have received a copy of the CC0 Public Domain Dedication
++++// along with this software. If not, see
++++// <http://creativecommons.org/publicdomain/zero/1.0/>.
++++///
++++
++++#ifndef TL_EXPECTED_HPP
++++#define TL_EXPECTED_HPP
++++
++++#define TL_EXPECTED_VERSION_MAJOR 1
++++#define TL_EXPECTED_VERSION_MINOR 1
++++#define TL_EXPECTED_VERSION_PATCH 0
++++
++++#include <exception>
++++#include <functional>
++++#include <type_traits>
++++#include <utility>
++++
++++#if defined(__EXCEPTIONS) || defined(_CPPUNWIND)
++++#define TL_EXPECTED_EXCEPTIONS_ENABLED
++++#endif
++++
++++#if (defined(_MSC_VER) && _MSC_VER == 1900)
++++#define TL_EXPECTED_MSVC2015
++++#define TL_EXPECTED_MSVC2015_CONSTEXPR
++++#else
++++#define TL_EXPECTED_MSVC2015_CONSTEXPR constexpr
++++#endif
++++
++++#if (defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ <= 9 && \
++++     !defined(__clang__))
++++#define TL_EXPECTED_GCC49
++++#endif
++++
++++#if (defined(__GNUC__) && __GNUC__ == 5 && __GNUC_MINOR__ <= 4 && \
++++     !defined(__clang__))
++++#define TL_EXPECTED_GCC54
++++#endif
++++
++++#if (defined(__GNUC__) && __GNUC__ == 5 && __GNUC_MINOR__ <= 5 && \
++++     !defined(__clang__))
++++#define TL_EXPECTED_GCC55
++++#endif
++++
++++#if !defined(TL_ASSERT)
++++// can't have assert in constexpr in C++11 and GCC 4.9 has a compiler bug
++++#if (__cplusplus > 201103L) && !defined(TL_EXPECTED_GCC49)
++++#include <cassert>
++++#define TL_ASSERT(x) assert(x)
++++#else
++++#define TL_ASSERT(x)
++++#endif
++++#endif
++++
++++#if (defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ <= 9 && \
++++     !defined(__clang__))
++++// GCC < 5 doesn't support overloading on const&& for member functions
++++
++++#define TL_EXPECTED_NO_CONSTRR
++++// GCC < 5 doesn't support some standard C++11 type traits
++++#define TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) \
++++  std::has_trivial_copy_constructor<T>
++++#define TL_EXPECTED_IS_TRIVIALLY_COPY_ASSIGNABLE(T) \
++++  std::has_trivial_copy_assign<T>
++++
++++// This one will be different for GCC 5.7 if it's ever supported
++++#define TL_EXPECTED_IS_TRIVIALLY_DESTRUCTIBLE(T) \
++++  std::is_trivially_destructible<T>
++++
++++// GCC 5 < v < 8 has a bug in is_trivially_copy_constructible which breaks
++++// std::vector for non-copyable types
++++#elif (defined(__GNUC__) && __GNUC__ < 8 && !defined(__clang__))
++++#ifndef TL_GCC_LESS_8_TRIVIALLY_COPY_CONSTRUCTIBLE_MUTEX
++++#define TL_GCC_LESS_8_TRIVIALLY_COPY_CONSTRUCTIBLE_MUTEX
++++namespace tl {
++++namespace detail {
++++template <class T>
++++struct is_trivially_copy_constructible
++++    : std::is_trivially_copy_constructible<T> {};
++++#ifdef _GLIBCXX_VECTOR
++++template <class T, class A>
++++struct is_trivially_copy_constructible<std::vector<T, A>> : std::false_type {};
++++#endif
++++}  // namespace detail
++++}  // namespace tl
++++#endif
++++
++++#define TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) \
++++  tl::detail::is_trivially_copy_constructible<T>
++++#define TL_EXPECTED_IS_TRIVIALLY_COPY_ASSIGNABLE(T) \
++++  std::is_trivially_copy_assignable<T>
++++#define TL_EXPECTED_IS_TRIVIALLY_DESTRUCTIBLE(T) \
++++  std::is_trivially_destructible<T>
++++#else
++++#define TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) \
++++  std::is_trivially_copy_constructible<T>
++++#define TL_EXPECTED_IS_TRIVIALLY_COPY_ASSIGNABLE(T) \
++++  std::is_trivially_copy_assignable<T>
++++#define TL_EXPECTED_IS_TRIVIALLY_DESTRUCTIBLE(T) \
++++  std::is_trivially_destructible<T>
++++#endif
++++
++++#if __cplusplus > 201103L
++++#define TL_EXPECTED_CXX14
++++#endif
++++
++++#ifdef TL_EXPECTED_GCC49
++++#define TL_EXPECTED_GCC49_CONSTEXPR
++++#else
++++#define TL_EXPECTED_GCC49_CONSTEXPR constexpr
++++#endif
++++
++++#if (__cplusplus == 201103L || defined(TL_EXPECTED_MSVC2015) || \
++++     defined(TL_EXPECTED_GCC49))
++++#define TL_EXPECTED_11_CONSTEXPR
++++#else
++++#define TL_EXPECTED_11_CONSTEXPR constexpr
++++#endif
++++
++++namespace tl {
++++template <class T, class E>
++++class expected;
++++
++++#ifndef TL_MONOSTATE_INPLACE_MUTEX
++++#define TL_MONOSTATE_INPLACE_MUTEX
++++class monostate {};
++++
++++struct in_place_t {
++++  explicit in_place_t() = default;
++++};
++++static constexpr in_place_t in_place{};
++++#endif
++++
++++template <class E>
++++class unexpected {
++++ public:
++++  static_assert(!std::is_same<E, void>::value, "E must not be void");
++++
++++  unexpected() = delete;
++++  constexpr explicit unexpected(const E &e) : m_val(e) {}
++++
++++  constexpr explicit unexpected(E &&e) : m_val(std::move(e)) {}
++++
++++  template <class... Args, typename std::enable_if<std::is_constructible<
++++                               E, Args &&...>::value>::type * = nullptr>
++++  constexpr explicit unexpected(Args &&...args)
++++      : m_val(std::forward<Args>(args)...) {}
++++  template <
++++      class U, class... Args,
++++      typename std::enable_if<std::is_constructible<
++++          E, std::initializer_list<U> &, Args &&...>::value>::type * = nullptr>
++++  constexpr explicit unexpected(std::initializer_list<U> l, Args &&...args)
++++      : m_val(l, std::forward<Args>(args)...) {}
++++
++++  constexpr const E &value() const & { return m_val; }
++++  TL_EXPECTED_11_CONSTEXPR E &value() & { return m_val; }
++++  TL_EXPECTED_11_CONSTEXPR E &&value() && { return std::move(m_val); }
++++  constexpr const E &&value() const && { return std::move(m_val); }
++++
++++ private:
++++  E m_val;
++++};
++++
++++#ifdef __cpp_deduction_guides
++++template <class E>
++++unexpected(E) -> unexpected<E>;
++++#endif
++++
++++template <class E>
++++constexpr bool operator==(const unexpected<E> &lhs, const unexpected<E> &rhs) {
++++  return lhs.value() == rhs.value();
++++}
++++template <class E>
++++constexpr bool operator!=(const unexpected<E> &lhs, const unexpected<E> &rhs) {
++++  return lhs.value() != rhs.value();
++++}
++++template <class E>
++++constexpr bool operator<(const unexpected<E> &lhs, const unexpected<E> &rhs) {
++++  return lhs.value() < rhs.value();
++++}
++++template <class E>
++++constexpr bool operator<=(const unexpected<E> &lhs, const unexpected<E> &rhs) {
++++  return lhs.value() <= rhs.value();
++++}
++++template <class E>
++++constexpr bool operator>(const unexpected<E> &lhs, const unexpected<E> &rhs) {
++++  return lhs.value() > rhs.value();
++++}
++++template <class E>
++++constexpr bool operator>=(const unexpected<E> &lhs, const unexpected<E> &rhs) {
++++  return lhs.value() >= rhs.value();
++++}
++++
++++template <class E>
++++unexpected<typename std::decay<E>::type> make_unexpected(E &&e) {
++++  return unexpected<typename std::decay<E>::type>(std::forward<E>(e));
++++}
++++
++++struct unexpect_t {
++++  unexpect_t() = default;
++++};
++++static constexpr unexpect_t unexpect{};
++++
++++namespace detail {
++++template <typename E>
++++[[noreturn]] TL_EXPECTED_11_CONSTEXPR void throw_exception(E &&e) {
++++#ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
++++  throw std::forward<E>(e);
++++#else
++++  (void)e;
++++#ifdef _MSC_VER
++++  __assume(0);
++++#else
++++  __builtin_unreachable();
++++#endif
++++#endif
++++}
++++
++++#ifndef TL_TRAITS_MUTEX
++++#define TL_TRAITS_MUTEX
++++// C++14-style aliases for brevity
++++template <class T>
++++using remove_const_t = typename std::remove_const<T>::type;
++++template <class T>
++++using remove_reference_t = typename std::remove_reference<T>::type;
++++template <class T>
++++using decay_t = typename std::decay<T>::type;
++++template <bool E, class T = void>
++++using enable_if_t = typename std::enable_if<E, T>::type;
++++template <bool B, class T, class F>
++++using conditional_t = typename std::conditional<B, T, F>::type;
++++
++++// std::conjunction from C++17
++++template <class...>
++++struct conjunction : std::true_type {};
++++template <class B>
++++struct conjunction<B> : B {};
++++template <class B, class... Bs>
++++struct conjunction<B, Bs...>
++++    : std::conditional<bool(B::value), conjunction<Bs...>, B>::type {};
++++
++++#if defined(_LIBCPP_VERSION) && __cplusplus == 201103L
++++#define TL_TRAITS_LIBCXX_MEM_FN_WORKAROUND
++++#endif
++++
++++// In C++11 mode, there's an issue in libc++'s std::mem_fn
++++// which results in a hard-error when using it in a noexcept expression
++++// in some cases. This is a check to workaround the common failing case.
++++#ifdef TL_TRAITS_LIBCXX_MEM_FN_WORKAROUND
++++template <class T>
++++struct is_pointer_to_non_const_member_func : std::false_type {};
++++template <class T, class Ret, class... Args>
++++struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...)>
++++    : std::true_type {};
++++template <class T, class Ret, class... Args>
++++struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...) &>
++++    : std::true_type {};
++++template <class T, class Ret, class... Args>
++++struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...) &&>
++++    : std::true_type {};
++++template <class T, class Ret, class... Args>
++++struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...) volatile>
++++    : std::true_type {};
++++template <class T, class Ret, class... Args>
++++struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...) volatile &>
++++    : std::true_type {};
++++template <class T, class Ret, class... Args>
++++struct is_pointer_to_non_const_member_func<Ret (T::*)(Args...) volatile &&>
++++    : std::true_type {};
++++
++++template <class T>
++++struct is_const_or_const_ref : std::false_type {};
++++template <class T>
++++struct is_const_or_const_ref<T const &> : std::true_type {};
++++template <class T>
++++struct is_const_or_const_ref<T const> : std::true_type {};
++++#endif
++++
++++// std::invoke from C++17
++++// https://stackoverflow.com/questions/38288042/c11-14-invoke-workaround
++++template <
++++    typename Fn, typename... Args,
++++#ifdef TL_TRAITS_LIBCXX_MEM_FN_WORKAROUND
++++    typename = enable_if_t<!(is_pointer_to_non_const_member_func<Fn>::value &&
++++                             is_const_or_const_ref<Args...>::value)>,
++++#endif
++++    typename = enable_if_t<std::is_member_pointer<decay_t<Fn>>::value>, int = 0>
++++constexpr auto invoke(Fn &&f, Args &&...args) noexcept(
++++    noexcept(std::mem_fn(f)(std::forward<Args>(args)...)))
++++    -> decltype(std::mem_fn(f)(std::forward<Args>(args)...)) {
++++  return std::mem_fn(f)(std::forward<Args>(args)...);
++++}
++++
++++template <typename Fn, typename... Args,
++++          typename = enable_if_t<!std::is_member_pointer<decay_t<Fn>>::value>>
++++constexpr auto invoke(Fn &&f, Args &&...args) noexcept(
++++    noexcept(std::forward<Fn>(f)(std::forward<Args>(args)...)))
++++    -> decltype(std::forward<Fn>(f)(std::forward<Args>(args)...)) {
++++  return std::forward<Fn>(f)(std::forward<Args>(args)...);
++++}
++++
++++// std::invoke_result from C++17
++++template <class F, class, class... Us>
++++struct invoke_result_impl;
++++
++++template <class F, class... Us>
++++struct invoke_result_impl<
++++    F,
++++    decltype(detail::invoke(std::declval<F>(), std::declval<Us>()...), void()),
++++    Us...> {
++++  using type =
++++      decltype(detail::invoke(std::declval<F>(), std::declval<Us>()...));
++++};
++++
++++template <class F, class... Us>
++++using invoke_result = invoke_result_impl<F, void, Us...>;
++++
++++template <class F, class... Us>
++++using invoke_result_t = typename invoke_result<F, Us...>::type;
++++
++++#if defined(_MSC_VER) && _MSC_VER <= 1900
++++// TODO make a version which works with MSVC 2015
++++template <class T, class U = T>
++++struct is_swappable : std::true_type {};
++++
++++template <class T, class U = T>
++++struct is_nothrow_swappable : std::true_type {};
++++#else
++++// https://stackoverflow.com/questions/26744589/what-is-a-proper-way-to-implement-is-swappable-to-test-for-the-swappable-concept
++++namespace swap_adl_tests {
++++// if swap ADL finds this then it would call std::swap otherwise (same
++++// signature)
++++struct tag {};
++++
++++template <class T>
++++tag swap(T &, T &);
++++template <class T, std::size_t N>
++++tag swap(T (&a)[N], T (&b)[N]);
++++
++++// helper functions to test if an unqualified swap is possible, and if it
++++// becomes std::swap
++++template <class, class>
++++std::false_type can_swap(...) noexcept(false);
++++template <class T, class U,
++++          class = decltype(swap(std::declval<T &>(), std::declval<U &>()))>
++++std::true_type can_swap(int) noexcept(noexcept(swap(std::declval<T &>(),
++++                                                    std::declval<U &>())));
++++
++++template <class, class>
++++std::false_type uses_std(...);
++++template <class T, class U>
++++std::is_same<decltype(swap(std::declval<T &>(), std::declval<U &>())), tag>
++++uses_std(int);
++++
++++template <class T>
++++struct is_std_swap_noexcept
++++    : std::integral_constant<bool,
++++                             std::is_nothrow_move_constructible<T>::value &&
++++                                 std::is_nothrow_move_assignable<T>::value> {};
++++
++++template <class T, std::size_t N>
++++struct is_std_swap_noexcept<T[N]> : is_std_swap_noexcept<T> {};
++++
++++template <class T, class U>
++++struct is_adl_swap_noexcept
++++    : std::integral_constant<bool, noexcept(can_swap<T, U>(0))> {};
++++}  // namespace swap_adl_tests
++++
++++template <class T, class U = T>
++++struct is_swappable
++++    : std::integral_constant<
++++          bool,
++++          decltype(detail::swap_adl_tests::can_swap<T, U>(0))::value &&
++++              (!decltype(detail::swap_adl_tests::uses_std<T, U>(0))::value ||
++++               (std::is_move_assignable<T>::value &&
++++                std::is_move_constructible<T>::value))> {};
++++
++++template <class T, std::size_t N>
++++struct is_swappable<T[N], T[N]>
++++    : std::integral_constant<
++++          bool,
++++          decltype(detail::swap_adl_tests::can_swap<T[N], T[N]>(0))::value &&
++++              (!decltype(detail::swap_adl_tests::uses_std<T[N], T[N]>(
++++                   0))::value ||
++++               is_swappable<T, T>::value)> {};
++++
++++template <class T, class U = T>
++++struct is_nothrow_swappable
++++    : std::integral_constant<
++++          bool,
++++          is_swappable<T, U>::value &&
++++              ((decltype(detail::swap_adl_tests::uses_std<T, U>(0))::value &&
++++                detail::swap_adl_tests::is_std_swap_noexcept<T>::value) ||
++++               (!decltype(detail::swap_adl_tests::uses_std<T, U>(0))::value &&
++++                detail::swap_adl_tests::is_adl_swap_noexcept<T, U>::value))> {};
++++#endif
++++#endif
++++
++++// Trait for checking if a type is a tl::expected
++++template <class T>
++++struct is_expected_impl : std::false_type {};
++++template <class T, class E>
++++struct is_expected_impl<expected<T, E>> : std::true_type {};
++++template <class T>
++++using is_expected = is_expected_impl<decay_t<T>>;
++++
++++template <class T, class E, class U>
++++using expected_enable_forward_value = detail::enable_if_t<
++++    std::is_constructible<T, U &&>::value &&
++++    !std::is_same<detail::decay_t<U>, in_place_t>::value &&
++++    !std::is_same<expected<T, E>, detail::decay_t<U>>::value &&
++++    !std::is_same<unexpected<E>, detail::decay_t<U>>::value>;
++++
++++template <class T, class E, class U, class G, class UR, class GR>
++++using expected_enable_from_other = detail::enable_if_t<
++++    std::is_constructible<T, UR>::value &&
++++    std::is_constructible<E, GR>::value &&
++++    !std::is_constructible<T, expected<U, G> &>::value &&
++++    !std::is_constructible<T, expected<U, G> &&>::value &&
++++    !std::is_constructible<T, const expected<U, G> &>::value &&
++++    !std::is_constructible<T, const expected<U, G> &&>::value &&
++++    !std::is_convertible<expected<U, G> &, T>::value &&
++++    !std::is_convertible<expected<U, G> &&, T>::value &&
++++    !std::is_convertible<const expected<U, G> &, T>::value &&
++++    !std::is_convertible<const expected<U, G> &&, T>::value>;
++++
++++template <class T, class U>
++++using is_void_or = conditional_t<std::is_void<T>::value, std::true_type, U>;
++++
++++template <class T>
++++using is_copy_constructible_or_void =
++++    is_void_or<T, std::is_copy_constructible<T>>;
++++
++++template <class T>
++++using is_move_constructible_or_void =
++++    is_void_or<T, std::is_move_constructible<T>>;
++++
++++template <class T>
++++using is_copy_assignable_or_void = is_void_or<T, std::is_copy_assignable<T>>;
++++
++++template <class T>
++++using is_move_assignable_or_void = is_void_or<T, std::is_move_assignable<T>>;
++++
++++}  // namespace detail
++++
++++namespace detail {
++++struct no_init_t {};
++++static constexpr no_init_t no_init{};
++++
++++// Implements the storage of the values, and ensures that the destructor is
++++// trivial if it can be.
++++//
++++// This specialization is for where neither `T` or `E` is trivially
++++// destructible, so the destructors must be called on destruction of the
++++// `expected`
++++template <class T, class E, bool = std::is_trivially_destructible<T>::value,
++++          bool = std::is_trivially_destructible<E>::value>
++++struct expected_storage_base {
++++  constexpr expected_storage_base() : m_val(T{}), m_has_val(true) {}
++++  constexpr expected_storage_base(no_init_t) : m_no_init(), m_has_val(false) {}
++++
++++  template <class... Args,
++++            detail::enable_if_t<std::is_constructible<T, Args &&...>::value> * =
++++                nullptr>
++++  constexpr expected_storage_base(in_place_t, Args &&...args)
++++      : m_val(std::forward<Args>(args)...), m_has_val(true) {}
++++
++++  template <class U, class... Args,
++++            detail::enable_if_t<std::is_constructible<
++++                T, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
++++  constexpr expected_storage_base(in_place_t, std::initializer_list<U> il,
++++                                  Args &&...args)
++++      : m_val(il, std::forward<Args>(args)...), m_has_val(true) {}
++++  template <class... Args,
++++            detail::enable_if_t<std::is_constructible<E, Args &&...>::value> * =
++++                nullptr>
++++  constexpr explicit expected_storage_base(unexpect_t, Args &&...args)
++++      : m_unexpect(std::forward<Args>(args)...), m_has_val(false) {}
++++
++++  template <class U, class... Args,
++++            detail::enable_if_t<std::is_constructible<
++++                E, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
++++  constexpr explicit expected_storage_base(unexpect_t,
++++                                           std::initializer_list<U> il,
++++                                           Args &&...args)
++++      : m_unexpect(il, std::forward<Args>(args)...), m_has_val(false) {}
++++
++++  ~expected_storage_base() {
++++    if (m_has_val) {
++++      m_val.~T();
++++    } else {
++++      m_unexpect.~unexpected<E>();
++++    }
++++  }
++++  union {
++++    T m_val;
++++    unexpected<E> m_unexpect;
++++    char m_no_init;
++++  };
++++  bool m_has_val;
++++};
++++
++++// This specialization is for when both `T` and `E` are trivially-destructible,
++++// so the destructor of the `expected` can be trivial.
++++template <class T, class E>
++++struct expected_storage_base<T, E, true, true> {
++++  constexpr expected_storage_base() : m_val(T{}), m_has_val(true) {}
++++  constexpr expected_storage_base(no_init_t) : m_no_init(), m_has_val(false) {}
++++
++++  template <class... Args,
++++            detail::enable_if_t<std::is_constructible<T, Args &&...>::value> * =
++++                nullptr>
++++  constexpr expected_storage_base(in_place_t, Args &&...args)
++++      : m_val(std::forward<Args>(args)...), m_has_val(true) {}
++++
++++  template <class U, class... Args,
++++            detail::enable_if_t<std::is_constructible<
++++                T, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
++++  constexpr expected_storage_base(in_place_t, std::initializer_list<U> il,
++++                                  Args &&...args)
++++      : m_val(il, std::forward<Args>(args)...), m_has_val(true) {}
++++  template <class... Args,
++++            detail::enable_if_t<std::is_constructible<E, Args &&...>::value> * =
++++                nullptr>
++++  constexpr explicit expected_storage_base(unexpect_t, Args &&...args)
++++      : m_unexpect(std::forward<Args>(args)...), m_has_val(false) {}
++++
++++  template <class U, class... Args,
++++            detail::enable_if_t<std::is_constructible<
++++                E, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
++++  constexpr explicit expected_storage_base(unexpect_t,
++++                                           std::initializer_list<U> il,
++++                                           Args &&...args)
++++      : m_unexpect(il, std::forward<Args>(args)...), m_has_val(false) {}
++++
++++  ~expected_storage_base() = default;
++++  union {
++++    T m_val;
++++    unexpected<E> m_unexpect;
++++    char m_no_init;
++++  };
++++  bool m_has_val;
++++};
++++
++++// T is trivial, E is not.
++++template <class T, class E>
++++struct expected_storage_base<T, E, true, false> {
++++  constexpr expected_storage_base() : m_val(T{}), m_has_val(true) {}
++++  TL_EXPECTED_MSVC2015_CONSTEXPR expected_storage_base(no_init_t)
++++      : m_no_init(), m_has_val(false) {}
++++
++++  template <class... Args,
++++            detail::enable_if_t<std::is_constructible<T, Args &&...>::value> * =
++++                nullptr>
++++  constexpr expected_storage_base(in_place_t, Args &&...args)
++++      : m_val(std::forward<Args>(args)...), m_has_val(true) {}
++++
++++  template <class U, class... Args,
++++            detail::enable_if_t<std::is_constructible<
++++                T, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
++++  constexpr expected_storage_base(in_place_t, std::initializer_list<U> il,
++++                                  Args &&...args)
++++      : m_val(il, std::forward<Args>(args)...), m_has_val(true) {}
++++  template <class... Args,
++++            detail::enable_if_t<std::is_constructible<E, Args &&...>::value> * =
++++                nullptr>
++++  constexpr explicit expected_storage_base(unexpect_t, Args &&...args)
++++      : m_unexpect(std::forward<Args>(args)...), m_has_val(false) {}
++++
++++  template <class U, class... Args,
++++            detail::enable_if_t<std::is_constructible<
++++                E, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
++++  constexpr explicit expected_storage_base(unexpect_t,
++++                                           std::initializer_list<U> il,
++++                                           Args &&...args)
++++      : m_unexpect(il, std::forward<Args>(args)...), m_has_val(false) {}
++++
++++  ~expected_storage_base() {
++++    if (!m_has_val) {
++++      m_unexpect.~unexpected<E>();
++++    }
++++  }
++++
++++  union {
++++    T m_val;
++++    unexpected<E> m_unexpect;
++++    char m_no_init;
++++  };
++++  bool m_has_val;
++++};
++++
++++// E is trivial, T is not.
++++template <class T, class E>
++++struct expected_storage_base<T, E, false, true> {
++++  constexpr expected_storage_base() : m_val(T{}), m_has_val(true) {}
++++  constexpr expected_storage_base(no_init_t) : m_no_init(), m_has_val(false) {}
++++
++++  template <class... Args,
++++            detail::enable_if_t<std::is_constructible<T, Args &&...>::value> * =
++++                nullptr>
++++  constexpr expected_storage_base(in_place_t, Args &&...args)
++++      : m_val(std::forward<Args>(args)...), m_has_val(true) {}
++++
++++  template <class U, class... Args,
++++            detail::enable_if_t<std::is_constructible<
++++                T, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
++++  constexpr expected_storage_base(in_place_t, std::initializer_list<U> il,
++++                                  Args &&...args)
++++      : m_val(il, std::forward<Args>(args)...), m_has_val(true) {}
++++  template <class... Args,
++++            detail::enable_if_t<std::is_constructible<E, Args &&...>::value> * =
++++                nullptr>
++++  constexpr explicit expected_storage_base(unexpect_t, Args &&...args)
++++      : m_unexpect(std::forward<Args>(args)...), m_has_val(false) {}
++++
++++  template <class U, class... Args,
++++            detail::enable_if_t<std::is_constructible<
++++                E, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
++++  constexpr explicit expected_storage_base(unexpect_t,
++++                                           std::initializer_list<U> il,
++++                                           Args &&...args)
++++      : m_unexpect(il, std::forward<Args>(args)...), m_has_val(false) {}
++++
++++  ~expected_storage_base() {
++++    if (m_has_val) {
++++      m_val.~T();
++++    }
++++  }
++++  union {
++++    T m_val;
++++    unexpected<E> m_unexpect;
++++    char m_no_init;
++++  };
++++  bool m_has_val;
++++};
++++
++++// `T` is `void`, `E` is trivially-destructible
++++template <class E>
++++struct expected_storage_base<void, E, false, true> {
++++#if __GNUC__ <= 5
++++// no constexpr for GCC 4/5 bug
++++#else
++++  TL_EXPECTED_MSVC2015_CONSTEXPR
++++#endif
++++  expected_storage_base() : m_has_val(true) {}
++++
++++  constexpr expected_storage_base(no_init_t) : m_val(), m_has_val(false) {}
++++
++++  constexpr expected_storage_base(in_place_t) : m_has_val(true) {}
++++
++++  template <class... Args,
++++            detail::enable_if_t<std::is_constructible<E, Args &&...>::value> * =
++++                nullptr>
++++  constexpr explicit expected_storage_base(unexpect_t, Args &&...args)
++++      : m_unexpect(std::forward<Args>(args)...), m_has_val(false) {}
++++
++++  template <class U, class... Args,
++++            detail::enable_if_t<std::is_constructible<
++++                E, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
++++  constexpr explicit expected_storage_base(unexpect_t,
++++                                           std::initializer_list<U> il,
++++                                           Args &&...args)
++++      : m_unexpect(il, std::forward<Args>(args)...), m_has_val(false) {}
++++
++++  ~expected_storage_base() = default;
++++  struct dummy {};
++++  union {
++++    unexpected<E> m_unexpect;
++++    dummy m_val;
++++  };
++++  bool m_has_val;
++++};
++++
++++// `T` is `void`, `E` is not trivially-destructible
++++template <class E>
++++struct expected_storage_base<void, E, false, false> {
++++  constexpr expected_storage_base() : m_dummy(), m_has_val(true) {}
++++  constexpr expected_storage_base(no_init_t) : m_dummy(), m_has_val(false) {}
++++
++++  constexpr expected_storage_base(in_place_t) : m_dummy(), m_has_val(true) {}
++++
++++  template <class... Args,
++++            detail::enable_if_t<std::is_constructible<E, Args &&...>::value> * =
++++                nullptr>
++++  constexpr explicit expected_storage_base(unexpect_t, Args &&...args)
++++      : m_unexpect(std::forward<Args>(args)...), m_has_val(false) {}
++++
++++  template <class U, class... Args,
++++            detail::enable_if_t<std::is_constructible<
++++                E, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
++++  constexpr explicit expected_storage_base(unexpect_t,
++++                                           std::initializer_list<U> il,
++++                                           Args &&...args)
++++      : m_unexpect(il, std::forward<Args>(args)...), m_has_val(false) {}
++++
++++  ~expected_storage_base() {
++++    if (!m_has_val) {
++++      m_unexpect.~unexpected<E>();
++++    }
++++  }
++++
++++  union {
++++    unexpected<E> m_unexpect;
++++    char m_dummy;
++++  };
++++  bool m_has_val;
++++};
++++
++++// This base class provides some handy member functions which can be used in
++++// further derived classes
++++template <class T, class E>
++++struct expected_operations_base : expected_storage_base<T, E> {
++++  using expected_storage_base<T, E>::expected_storage_base;
++++
++++  template <class... Args>
++++  void construct(Args &&...args) noexcept {
++++    new (std::addressof(this->m_val)) T(std::forward<Args>(args)...);
++++    this->m_has_val = true;
++++  }
++++
++++  template <class Rhs>
++++  void construct_with(Rhs &&rhs) noexcept {
++++    new (std::addressof(this->m_val)) T(std::forward<Rhs>(rhs).get());
++++    this->m_has_val = true;
++++  }
++++
++++  template <class... Args>
++++  void construct_error(Args &&...args) noexcept {
++++    new (std::addressof(this->m_unexpect))
++++        unexpected<E>(std::forward<Args>(args)...);
++++    this->m_has_val = false;
++++  }
++++
++++#ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
++++
++++  // These assign overloads ensure that the most efficient assignment
++++  // implementation is used while maintaining the strong exception guarantee.
++++  // The problematic case is where rhs has a value, but *this does not.
++++  //
++++  // This overload handles the case where we can just copy-construct `T`
++++  // directly into place without throwing.
++++  template <class U = T,
++++            detail::enable_if_t<std::is_nothrow_copy_constructible<U>::value>
++++                * = nullptr>
++++  void assign(const expected_operations_base &rhs) noexcept {
++++    if (!this->m_has_val && rhs.m_has_val) {
++++      geterr().~unexpected<E>();
++++      construct(rhs.get());
++++    } else {
++++      assign_common(rhs);
++++    }
++++  }
++++
++++  // This overload handles the case where we can attempt to create a copy of
++++  // `T`, then no-throw move it into place if the copy was successful.
++++  template <class U = T,
++++            detail::enable_if_t<!std::is_nothrow_copy_constructible<U>::value &&
++++                                std::is_nothrow_move_constructible<U>::value>
++++                * = nullptr>
++++  void assign(const expected_operations_base &rhs) noexcept {
++++    if (!this->m_has_val && rhs.m_has_val) {
++++      T tmp = rhs.get();
++++      geterr().~unexpected<E>();
++++      construct(std::move(tmp));
++++    } else {
++++      assign_common(rhs);
++++    }
++++  }
++++
++++  // This overload is the worst-case, where we have to move-construct the
++++  // unexpected value into temporary storage, then try to copy the T into place.
++++  // If the construction succeeds, then everything is fine, but if it throws,
++++  // then we move the old unexpected value back into place before rethrowing the
++++  // exception.
++++  template <class U = T,
++++            detail::enable_if_t<!std::is_nothrow_copy_constructible<U>::value &&
++++                                !std::is_nothrow_move_constructible<U>::value>
++++                * = nullptr>
++++  void assign(const expected_operations_base &rhs) {
++++    if (!this->m_has_val && rhs.m_has_val) {
++++      auto tmp = std::move(geterr());
++++      geterr().~unexpected<E>();
++++
++++#ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
++++      try {
++++        construct(rhs.get());
++++      } catch (...) {
++++        geterr() = std::move(tmp);
++++        throw;
++++      }
++++#else
++++      construct(rhs.get());
++++#endif
++++    } else {
++++      assign_common(rhs);
++++    }
++++  }
++++
++++  // These overloads do the same as above, but for rvalues
++++  template <class U = T,
++++            detail::enable_if_t<std::is_nothrow_move_constructible<U>::value>
++++                * = nullptr>
++++  void assign(expected_operations_base &&rhs) noexcept {
++++    if (!this->m_has_val && rhs.m_has_val) {
++++      geterr().~unexpected<E>();
++++      construct(std::move(rhs).get());
++++    } else {
++++      assign_common(std::move(rhs));
++++    }
++++  }
++++
++++  template <class U = T,
++++            detail::enable_if_t<!std::is_nothrow_move_constructible<U>::value>
++++                * = nullptr>
++++  void assign(expected_operations_base &&rhs) {
++++    if (!this->m_has_val && rhs.m_has_val) {
++++      auto tmp = std::move(geterr());
++++      geterr().~unexpected<E>();
++++#ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
++++      try {
++++        construct(std::move(rhs).get());
++++      } catch (...) {
++++        geterr() = std::move(tmp);
++++        throw;
++++      }
++++#else
++++      construct(std::move(rhs).get());
++++#endif
++++    } else {
++++      assign_common(std::move(rhs));
++++    }
++++  }
++++
++++#else
++++
++++  // If exceptions are disabled then we can just copy-construct
++++  void assign(const expected_operations_base &rhs) noexcept {
++++    if (!this->m_has_val && rhs.m_has_val) {
++++      geterr().~unexpected<E>();
++++      construct(rhs.get());
++++    } else {
++++      assign_common(rhs);
++++    }
++++  }
++++
++++  void assign(expected_operations_base &&rhs) noexcept {
++++    if (!this->m_has_val && rhs.m_has_val) {
++++      geterr().~unexpected<E>();
++++      construct(std::move(rhs).get());
++++    } else {
++++      assign_common(std::move(rhs));
++++    }
++++  }
++++
++++#endif
++++
++++  // The common part of move/copy assigning
++++  template <class Rhs>
++++  void assign_common(Rhs &&rhs) {
++++    if (this->m_has_val) {
++++      if (rhs.m_has_val) {
++++        get() = std::forward<Rhs>(rhs).get();
++++      } else {
++++        destroy_val();
++++        construct_error(std::forward<Rhs>(rhs).geterr());
++++      }
++++    } else {
++++      if (!rhs.m_has_val) {
++++        geterr() = std::forward<Rhs>(rhs).geterr();
++++      }
++++    }
++++  }
++++
++++  bool has_value() const { return this->m_has_val; }
++++
++++  TL_EXPECTED_11_CONSTEXPR T &get() & { return this->m_val; }
++++  constexpr const T &get() const & { return this->m_val; }
++++  TL_EXPECTED_11_CONSTEXPR T &&get() && { return std::move(this->m_val); }
++++#ifndef TL_EXPECTED_NO_CONSTRR
++++  constexpr const T &&get() const && { return std::move(this->m_val); }
++++#endif
++++
++++  TL_EXPECTED_11_CONSTEXPR unexpected<E> &geterr() & {
++++    return this->m_unexpect;
++++  }
++++  constexpr const unexpected<E> &geterr() const & { return this->m_unexpect; }
++++  TL_EXPECTED_11_CONSTEXPR unexpected<E> &&geterr() && {
++++    return std::move(this->m_unexpect);
++++  }
++++#ifndef TL_EXPECTED_NO_CONSTRR
++++  constexpr const unexpected<E> &&geterr() const && {
++++    return std::move(this->m_unexpect);
++++  }
++++#endif
++++
++++  TL_EXPECTED_11_CONSTEXPR void destroy_val() { get().~T(); }
++++};
++++
++++// This base class provides some handy member functions which can be used in
++++// further derived classes
++++template <class E>
++++struct expected_operations_base<void, E> : expected_storage_base<void, E> {
++++  using expected_storage_base<void, E>::expected_storage_base;
++++
++++  template <class... Args>
++++  void construct() noexcept {
++++    this->m_has_val = true;
++++  }
++++
++++  // This function doesn't use its argument, but needs it so that code in
++++  // levels above this can work independently of whether T is void
++++  template <class Rhs>
++++  void construct_with(Rhs &&) noexcept {
++++    this->m_has_val = true;
++++  }
++++
++++  template <class... Args>
++++  void construct_error(Args &&...args) noexcept {
++++    new (std::addressof(this->m_unexpect))
++++        unexpected<E>(std::forward<Args>(args)...);
++++    this->m_has_val = false;
++++  }
++++
++++  template <class Rhs>
++++  void assign(Rhs &&rhs) noexcept {
++++    if (!this->m_has_val) {
++++      if (rhs.m_has_val) {
++++        geterr().~unexpected<E>();
++++        construct();
++++      } else {
++++        geterr() = std::forward<Rhs>(rhs).geterr();
++++      }
++++    } else {
++++      if (!rhs.m_has_val) {
++++        construct_error(std::forward<Rhs>(rhs).geterr());
++++      }
++++    }
++++  }
++++
++++  bool has_value() const { return this->m_has_val; }
++++
++++  TL_EXPECTED_11_CONSTEXPR unexpected<E> &geterr() & {
++++    return this->m_unexpect;
++++  }
++++  constexpr const unexpected<E> &geterr() const & { return this->m_unexpect; }
++++  TL_EXPECTED_11_CONSTEXPR unexpected<E> &&geterr() && {
++++    return std::move(this->m_unexpect);
++++  }
++++#ifndef TL_EXPECTED_NO_CONSTRR
++++  constexpr const unexpected<E> &&geterr() const && {
++++    return std::move(this->m_unexpect);
++++  }
++++#endif
++++
++++  TL_EXPECTED_11_CONSTEXPR void destroy_val() {
++++    // no-op
++++  }
++++};
++++
++++// This class manages conditionally having a trivial copy constructor
++++// This specialization is for when T and E are trivially copy constructible
++++template <class T, class E,
++++          bool = is_void_or<T, TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(
++++                                   T)>::value &&
++++                 TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(E)::value>
++++struct expected_copy_base : expected_operations_base<T, E> {
++++  using expected_operations_base<T, E>::expected_operations_base;
++++};
++++
++++// This specialization is for when T or E are not trivially copy constructible
++++template <class T, class E>
++++struct expected_copy_base<T, E, false> : expected_operations_base<T, E> {
++++  using expected_operations_base<T, E>::expected_operations_base;
++++
++++  expected_copy_base() = default;
++++  expected_copy_base(const expected_copy_base &rhs)
++++      : expected_operations_base<T, E>(no_init) {
++++    if (rhs.has_value()) {
++++      this->construct_with(rhs);
++++    } else {
++++      this->construct_error(rhs.geterr());
++++    }
++++  }
++++
++++  expected_copy_base(expected_copy_base &&rhs) = default;
++++  expected_copy_base &operator=(const expected_copy_base &rhs) = default;
++++  expected_copy_base &operator=(expected_copy_base &&rhs) = default;
++++};
++++
++++// This class manages conditionally having a trivial move constructor
++++// Unfortunately there's no way to achieve this in GCC < 5 AFAIK, since it
++++// doesn't implement an analogue to std::is_trivially_move_constructible. We
++++// have to make do with a non-trivial move constructor even if T is trivially
++++// move constructible
++++#ifndef TL_EXPECTED_GCC49
++++template <class T, class E,
++++          bool =
++++              is_void_or<T, std::is_trivially_move_constructible<T>>::value &&
++++              std::is_trivially_move_constructible<E>::value>
++++struct expected_move_base : expected_copy_base<T, E> {
++++  using expected_copy_base<T, E>::expected_copy_base;
++++};
++++#else
++++template <class T, class E, bool = false>
++++struct expected_move_base;
++++#endif
++++template <class T, class E>
++++struct expected_move_base<T, E, false> : expected_copy_base<T, E> {
++++  using expected_copy_base<T, E>::expected_copy_base;
++++
++++  expected_move_base() = default;
++++  expected_move_base(const expected_move_base &rhs) = default;
++++
++++  expected_move_base(expected_move_base &&rhs) noexcept(
++++      std::is_nothrow_move_constructible<T>::value)
++++      : expected_copy_base<T, E>(no_init) {
++++    if (rhs.has_value()) {
++++      this->construct_with(std::move(rhs));
++++    } else {
++++      this->construct_error(std::move(rhs.geterr()));
++++    }
++++  }
++++  expected_move_base &operator=(const expected_move_base &rhs) = default;
++++  expected_move_base &operator=(expected_move_base &&rhs) = default;
++++};
++++
++++// This class manages conditionally having a trivial copy assignment operator
++++template <
++++    class T, class E,
++++    bool =
++++        is_void_or<
++++            T, conjunction<TL_EXPECTED_IS_TRIVIALLY_COPY_ASSIGNABLE(T),
++++                           TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T),
++++                           TL_EXPECTED_IS_TRIVIALLY_DESTRUCTIBLE(T)>>::value &&
++++        TL_EXPECTED_IS_TRIVIALLY_COPY_ASSIGNABLE(E)::value &&
++++        TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(E)::value &&
++++        TL_EXPECTED_IS_TRIVIALLY_DESTRUCTIBLE(E)::value>
++++struct expected_copy_assign_base : expected_move_base<T, E> {
++++  using expected_move_base<T, E>::expected_move_base;
++++};
++++
++++template <class T, class E>
++++struct expected_copy_assign_base<T, E, false> : expected_move_base<T, E> {
++++  using expected_move_base<T, E>::expected_move_base;
++++
++++  expected_copy_assign_base() = default;
++++  expected_copy_assign_base(const expected_copy_assign_base &rhs) = default;
++++
++++  expected_copy_assign_base(expected_copy_assign_base &&rhs) = default;
++++  expected_copy_assign_base &operator=(const expected_copy_assign_base &rhs) {
++++    this->assign(rhs);
++++    return *this;
++++  }
++++  expected_copy_assign_base &operator=(expected_copy_assign_base &&rhs) =
++++      default;
++++};
++++
++++// This class manages conditionally having a trivial move assignment operator
++++// Unfortunately there's no way to achieve this in GCC < 5 AFAIK, since it
++++// doesn't implement an analogue to std::is_trivially_move_assignable. We have
++++// to make do with a non-trivial move assignment operator even if T is trivially
++++// move assignable
++++#ifndef TL_EXPECTED_GCC49
++++template <
++++    class T, class E,
++++    bool = is_void_or<
++++               T, conjunction<std::is_trivially_destructible<T>,
++++                              std::is_trivially_move_constructible<T>,
++++                              std::is_trivially_move_assignable<T>>>::value &&
++++           std::is_trivially_destructible<E>::value &&
++++           std::is_trivially_move_constructible<E>::value &&
++++           std::is_trivially_move_assignable<E>::value>
++++struct expected_move_assign_base : expected_copy_assign_base<T, E> {
++++  using expected_copy_assign_base<T, E>::expected_copy_assign_base;
++++};
++++#else
++++template <class T, class E, bool = false>
++++struct expected_move_assign_base;
++++#endif
++++
++++template <class T, class E>
++++struct expected_move_assign_base<T, E, false>
++++    : expected_copy_assign_base<T, E> {
++++  using expected_copy_assign_base<T, E>::expected_copy_assign_base;
++++
++++  expected_move_assign_base() = default;
++++  expected_move_assign_base(const expected_move_assign_base &rhs) = default;
++++
++++  expected_move_assign_base(expected_move_assign_base &&rhs) = default;
++++
++++  expected_move_assign_base &operator=(const expected_move_assign_base &rhs) =
++++      default;
++++
++++  expected_move_assign_base &operator=(
++++      expected_move_assign_base
++++          &&rhs) noexcept(std::is_nothrow_move_constructible<T>::value &&
++++                          std::is_nothrow_move_assignable<T>::value) {
++++    this->assign(std::move(rhs));
++++    return *this;
++++  }
++++};
++++
++++// expected_delete_ctor_base will conditionally delete copy and move
++++// constructors depending on whether T is copy/move constructible
++++template <class T, class E,
++++          bool EnableCopy = (is_copy_constructible_or_void<T>::value &&
++++                             std::is_copy_constructible<E>::value),
++++          bool EnableMove = (is_move_constructible_or_void<T>::value &&
++++                             std::is_move_constructible<E>::value)>
++++struct expected_delete_ctor_base {
++++  expected_delete_ctor_base() = default;
++++  expected_delete_ctor_base(const expected_delete_ctor_base &) = default;
++++  expected_delete_ctor_base(expected_delete_ctor_base &&) noexcept = default;
++++  expected_delete_ctor_base &operator=(const expected_delete_ctor_base &) =
++++      default;
++++  expected_delete_ctor_base &operator=(expected_delete_ctor_base &&) noexcept =
++++      default;
++++};
++++
++++template <class T, class E>
++++struct expected_delete_ctor_base<T, E, true, false> {
++++  expected_delete_ctor_base() = default;
++++  expected_delete_ctor_base(const expected_delete_ctor_base &) = default;
++++  expected_delete_ctor_base(expected_delete_ctor_base &&) noexcept = delete;
++++  expected_delete_ctor_base &operator=(const expected_delete_ctor_base &) =
++++      default;
++++  expected_delete_ctor_base &operator=(expected_delete_ctor_base &&) noexcept =
++++      default;
++++};
++++
++++template <class T, class E>
++++struct expected_delete_ctor_base<T, E, false, true> {
++++  expected_delete_ctor_base() = default;
++++  expected_delete_ctor_base(const expected_delete_ctor_base &) = delete;
++++  expected_delete_ctor_base(expected_delete_ctor_base &&) noexcept = default;
++++  expected_delete_ctor_base &operator=(const expected_delete_ctor_base &) =
++++      default;
++++  expected_delete_ctor_base &operator=(expected_delete_ctor_base &&) noexcept =
++++      default;
++++};
++++
++++template <class T, class E>
++++struct expected_delete_ctor_base<T, E, false, false> {
++++  expected_delete_ctor_base() = default;
++++  expected_delete_ctor_base(const expected_delete_ctor_base &) = delete;
++++  expected_delete_ctor_base(expected_delete_ctor_base &&) noexcept = delete;
++++  expected_delete_ctor_base &operator=(const expected_delete_ctor_base &) =
++++      default;
++++  expected_delete_ctor_base &operator=(expected_delete_ctor_base &&) noexcept =
++++      default;
++++};
++++
++++// expected_delete_assign_base will conditionally delete copy and move
++++// constructors depending on whether T and E are copy/move constructible +
++++// assignable
++++template <class T, class E,
++++          bool EnableCopy = (is_copy_constructible_or_void<T>::value &&
++++                             std::is_copy_constructible<E>::value &&
++++                             is_copy_assignable_or_void<T>::value &&
++++                             std::is_copy_assignable<E>::value),
++++          bool EnableMove = (is_move_constructible_or_void<T>::value &&
++++                             std::is_move_constructible<E>::value &&
++++                             is_move_assignable_or_void<T>::value &&
++++                             std::is_move_assignable<E>::value)>
++++struct expected_delete_assign_base {
++++  expected_delete_assign_base() = default;
++++  expected_delete_assign_base(const expected_delete_assign_base &) = default;
++++  expected_delete_assign_base(expected_delete_assign_base &&) noexcept =
++++      default;
++++  expected_delete_assign_base &operator=(const expected_delete_assign_base &) =
++++      default;
++++  expected_delete_assign_base &operator=(
++++      expected_delete_assign_base &&) noexcept = default;
++++};
++++
++++template <class T, class E>
++++struct expected_delete_assign_base<T, E, true, false> {
++++  expected_delete_assign_base() = default;
++++  expected_delete_assign_base(const expected_delete_assign_base &) = default;
++++  expected_delete_assign_base(expected_delete_assign_base &&) noexcept =
++++      default;
++++  expected_delete_assign_base &operator=(const expected_delete_assign_base &) =
++++      default;
++++  expected_delete_assign_base &operator=(
++++      expected_delete_assign_base &&) noexcept = delete;
++++};
++++
++++template <class T, class E>
++++struct expected_delete_assign_base<T, E, false, true> {
++++  expected_delete_assign_base() = default;
++++  expected_delete_assign_base(const expected_delete_assign_base &) = default;
++++  expected_delete_assign_base(expected_delete_assign_base &&) noexcept =
++++      default;
++++  expected_delete_assign_base &operator=(const expected_delete_assign_base &) =
++++      delete;
++++  expected_delete_assign_base &operator=(
++++      expected_delete_assign_base &&) noexcept = default;
++++};
++++
++++template <class T, class E>
++++struct expected_delete_assign_base<T, E, false, false> {
++++  expected_delete_assign_base() = default;
++++  expected_delete_assign_base(const expected_delete_assign_base &) = default;
++++  expected_delete_assign_base(expected_delete_assign_base &&) noexcept =
++++      default;
++++  expected_delete_assign_base &operator=(const expected_delete_assign_base &) =
++++      delete;
++++  expected_delete_assign_base &operator=(
++++      expected_delete_assign_base &&) noexcept = delete;
++++};
++++
++++// This is needed to be able to construct the expected_default_ctor_base which
++++// follows, while still conditionally deleting the default constructor.
++++struct default_constructor_tag {
++++  explicit constexpr default_constructor_tag() = default;
++++};
++++
++++// expected_default_ctor_base will ensure that expected has a deleted default
++++// consturctor if T is not default constructible.
++++// This specialization is for when T is default constructible
++++template <class T, class E,
++++          bool Enable =
++++              std::is_default_constructible<T>::value || std::is_void<T>::value>
++++struct expected_default_ctor_base {
++++  constexpr expected_default_ctor_base() noexcept = default;
++++  constexpr expected_default_ctor_base(
++++      expected_default_ctor_base const &) noexcept = default;
++++  constexpr expected_default_ctor_base(expected_default_ctor_base &&) noexcept =
++++      default;
++++  expected_default_ctor_base &operator=(
++++      expected_default_ctor_base const &) noexcept = default;
++++  expected_default_ctor_base &operator=(
++++      expected_default_ctor_base &&) noexcept = default;
++++
++++  constexpr explicit expected_default_ctor_base(default_constructor_tag) {}
++++};
++++
++++// This specialization is for when T is not default constructible
++++template <class T, class E>
++++struct expected_default_ctor_base<T, E, false> {
++++  constexpr expected_default_ctor_base() noexcept = delete;
++++  constexpr expected_default_ctor_base(
++++      expected_default_ctor_base const &) noexcept = default;
++++  constexpr expected_default_ctor_base(expected_default_ctor_base &&) noexcept =
++++      default;
++++  expected_default_ctor_base &operator=(
++++      expected_default_ctor_base const &) noexcept = default;
++++  expected_default_ctor_base &operator=(
++++      expected_default_ctor_base &&) noexcept = default;
++++
++++  constexpr explicit expected_default_ctor_base(default_constructor_tag) {}
++++};
++++}  // namespace detail
++++
++++template <class E>
++++class bad_expected_access : public std::exception {
++++ public:
++++  explicit bad_expected_access(E e) : m_val(std::move(e)) {}
++++
++++  virtual const char *what() const noexcept override {
++++    return "Bad expected access";
++++  }
++++
++++  const E &error() const & { return m_val; }
++++  E &error() & { return m_val; }
++++  const E &&error() const && { return std::move(m_val); }
++++  E &&error() && { return std::move(m_val); }
++++
++++ private:
++++  E m_val;
++++};
++++
++++/// An `expected<T, E>` object is an object that contains the storage for
++++/// another object and manages the lifetime of this contained object `T`.
++++/// Alternatively it could contain the storage for another unexpected object
++++/// `E`. The contained object may not be initialized after the expected object
++++/// has been initialized, and may not be destroyed before the expected object
++++/// has been destroyed. The initialization state of the contained object is
++++/// tracked by the expected object.
++++template <class T, class E>
++++class expected : private detail::expected_move_assign_base<T, E>,
++++                 private detail::expected_delete_ctor_base<T, E>,
++++                 private detail::expected_delete_assign_base<T, E>,
++++                 private detail::expected_default_ctor_base<T, E> {
++++  static_assert(!std::is_reference<T>::value, "T must not be a reference");
++++  static_assert(!std::is_same<T, std::remove_cv<in_place_t>::type>::value,
++++                "T must not be in_place_t");
++++  static_assert(!std::is_same<T, std::remove_cv<unexpect_t>::type>::value,
++++                "T must not be unexpect_t");
++++  static_assert(
++++      !std::is_same<T, typename std::remove_cv<unexpected<E>>::type>::value,
++++      "T must not be unexpected<E>");
++++  static_assert(!std::is_reference<E>::value, "E must not be a reference");
++++
++++  T *valptr() { return std::addressof(this->m_val); }
++++  const T *valptr() const { return std::addressof(this->m_val); }
++++  unexpected<E> *errptr() { return std::addressof(this->m_unexpect); }
++++  const unexpected<E> *errptr() const {
++++    return std::addressof(this->m_unexpect);
++++  }
++++
++++  template <class U = T,
++++            detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
++++  TL_EXPECTED_11_CONSTEXPR U &val() {
++++    return this->m_val;
++++  }
++++  TL_EXPECTED_11_CONSTEXPR unexpected<E> &err() { return this->m_unexpect; }
++++
++++  template <class U = T,
++++            detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
++++  constexpr const U &val() const {
++++    return this->m_val;
++++  }
++++  constexpr const unexpected<E> &err() const { return this->m_unexpect; }
++++
++++  using impl_base = detail::expected_move_assign_base<T, E>;
++++  using ctor_base = detail::expected_default_ctor_base<T, E>;
++++
++++ public:
++++  typedef T value_type;
++++  typedef E error_type;
++++  typedef unexpected<E> unexpected_type;
++++
++++#if defined(TL_EXPECTED_CXX14) && !defined(TL_EXPECTED_GCC49) && \
++++    !defined(TL_EXPECTED_GCC54) && !defined(TL_EXPECTED_GCC55)
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR auto and_then(F &&f) & {
++++    return and_then_impl(*this, std::forward<F>(f));
++++  }
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR auto and_then(F &&f) && {
++++    return and_then_impl(std::move(*this), std::forward<F>(f));
++++  }
++++  template <class F>
++++  constexpr auto and_then(F &&f) const & {
++++    return and_then_impl(*this, std::forward<F>(f));
++++  }
++++
++++#ifndef TL_EXPECTED_NO_CONSTRR
++++  template <class F>
++++  constexpr auto and_then(F &&f) const && {
++++    return and_then_impl(std::move(*this), std::forward<F>(f));
++++  }
++++#endif
++++
++++#else
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR auto and_then(F &&f) & -> decltype(and_then_impl(
++++      std::declval<expected &>(), std::forward<F>(f))) {
++++    return and_then_impl(*this, std::forward<F>(f));
++++  }
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR auto and_then(F &&f) && -> decltype(and_then_impl(
++++      std::declval<expected &&>(), std::forward<F>(f))) {
++++    return and_then_impl(std::move(*this), std::forward<F>(f));
++++  }
++++  template <class F>
++++  constexpr auto and_then(F &&f) const & -> decltype(and_then_impl(
++++      std::declval<expected const &>(), std::forward<F>(f))) {
++++    return and_then_impl(*this, std::forward<F>(f));
++++  }
++++
++++#ifndef TL_EXPECTED_NO_CONSTRR
++++  template <class F>
++++  constexpr auto and_then(F &&f) const && -> decltype(and_then_impl(
++++      std::declval<expected const &&>(), std::forward<F>(f))) {
++++    return and_then_impl(std::move(*this), std::forward<F>(f));
++++  }
++++#endif
++++#endif
++++
++++#if defined(TL_EXPECTED_CXX14) && !defined(TL_EXPECTED_GCC49) && \
++++    !defined(TL_EXPECTED_GCC54) && !defined(TL_EXPECTED_GCC55)
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR auto map(F &&f) & {
++++    return expected_map_impl(*this, std::forward<F>(f));
++++  }
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR auto map(F &&f) && {
++++    return expected_map_impl(std::move(*this), std::forward<F>(f));
++++  }
++++  template <class F>
++++  constexpr auto map(F &&f) const & {
++++    return expected_map_impl(*this, std::forward<F>(f));
++++  }
++++  template <class F>
++++  constexpr auto map(F &&f) const && {
++++    return expected_map_impl(std::move(*this), std::forward<F>(f));
++++  }
++++#else
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR decltype(expected_map_impl(
++++      std::declval<expected &>(), std::declval<F &&>()))
++++  map(F &&f) & {
++++    return expected_map_impl(*this, std::forward<F>(f));
++++  }
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR decltype(expected_map_impl(std::declval<expected>(),
++++                                                      std::declval<F &&>()))
++++  map(F &&f) && {
++++    return expected_map_impl(std::move(*this), std::forward<F>(f));
++++  }
++++  template <class F>
++++  constexpr decltype(expected_map_impl(std::declval<const expected &>(),
++++                                       std::declval<F &&>()))
++++  map(F &&f) const & {
++++    return expected_map_impl(*this, std::forward<F>(f));
++++  }
++++
++++#ifndef TL_EXPECTED_NO_CONSTRR
++++  template <class F>
++++  constexpr decltype(expected_map_impl(std::declval<const expected &&>(),
++++                                       std::declval<F &&>()))
++++  map(F &&f) const && {
++++    return expected_map_impl(std::move(*this), std::forward<F>(f));
++++  }
++++#endif
++++#endif
++++
++++#if defined(TL_EXPECTED_CXX14) && !defined(TL_EXPECTED_GCC49) && \
++++    !defined(TL_EXPECTED_GCC54) && !defined(TL_EXPECTED_GCC55)
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR auto transform(F &&f) & {
++++    return expected_map_impl(*this, std::forward<F>(f));
++++  }
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR auto transform(F &&f) && {
++++    return expected_map_impl(std::move(*this), std::forward<F>(f));
++++  }
++++  template <class F>
++++  constexpr auto transform(F &&f) const & {
++++    return expected_map_impl(*this, std::forward<F>(f));
++++  }
++++  template <class F>
++++  constexpr auto transform(F &&f) const && {
++++    return expected_map_impl(std::move(*this), std::forward<F>(f));
++++  }
++++#else
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR decltype(expected_map_impl(
++++      std::declval<expected &>(), std::declval<F &&>()))
++++  transform(F &&f) & {
++++    return expected_map_impl(*this, std::forward<F>(f));
++++  }
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR decltype(expected_map_impl(std::declval<expected>(),
++++                                                      std::declval<F &&>()))
++++  transform(F &&f) && {
++++    return expected_map_impl(std::move(*this), std::forward<F>(f));
++++  }
++++  template <class F>
++++  constexpr decltype(expected_map_impl(std::declval<const expected &>(),
++++                                       std::declval<F &&>()))
++++  transform(F &&f) const & {
++++    return expected_map_impl(*this, std::forward<F>(f));
++++  }
++++
++++#ifndef TL_EXPECTED_NO_CONSTRR
++++  template <class F>
++++  constexpr decltype(expected_map_impl(std::declval<const expected &&>(),
++++                                       std::declval<F &&>()))
++++  transform(F &&f) const && {
++++    return expected_map_impl(std::move(*this), std::forward<F>(f));
++++  }
++++#endif
++++#endif
++++
++++#if defined(TL_EXPECTED_CXX14) && !defined(TL_EXPECTED_GCC49) && \
++++    !defined(TL_EXPECTED_GCC54) && !defined(TL_EXPECTED_GCC55)
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR auto map_error(F &&f) & {
++++    return map_error_impl(*this, std::forward<F>(f));
++++  }
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR auto map_error(F &&f) && {
++++    return map_error_impl(std::move(*this), std::forward<F>(f));
++++  }
++++  template <class F>
++++  constexpr auto map_error(F &&f) const & {
++++    return map_error_impl(*this, std::forward<F>(f));
++++  }
++++  template <class F>
++++  constexpr auto map_error(F &&f) const && {
++++    return map_error_impl(std::move(*this), std::forward<F>(f));
++++  }
++++#else
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR decltype(map_error_impl(std::declval<expected &>(),
++++                                                   std::declval<F &&>()))
++++  map_error(F &&f) & {
++++    return map_error_impl(*this, std::forward<F>(f));
++++  }
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR decltype(map_error_impl(std::declval<expected &&>(),
++++                                                   std::declval<F &&>()))
++++  map_error(F &&f) && {
++++    return map_error_impl(std::move(*this), std::forward<F>(f));
++++  }
++++  template <class F>
++++  constexpr decltype(map_error_impl(std::declval<const expected &>(),
++++                                    std::declval<F &&>()))
++++  map_error(F &&f) const & {
++++    return map_error_impl(*this, std::forward<F>(f));
++++  }
++++
++++#ifndef TL_EXPECTED_NO_CONSTRR
++++  template <class F>
++++  constexpr decltype(map_error_impl(std::declval<const expected &&>(),
++++                                    std::declval<F &&>()))
++++  map_error(F &&f) const && {
++++    return map_error_impl(std::move(*this), std::forward<F>(f));
++++  }
++++#endif
++++#endif
++++#if defined(TL_EXPECTED_CXX14) && !defined(TL_EXPECTED_GCC49) && \
++++    !defined(TL_EXPECTED_GCC54) && !defined(TL_EXPECTED_GCC55)
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR auto transform_error(F &&f) & {
++++    return map_error_impl(*this, std::forward<F>(f));
++++  }
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR auto transform_error(F &&f) && {
++++    return map_error_impl(std::move(*this), std::forward<F>(f));
++++  }
++++  template <class F>
++++  constexpr auto transform_error(F &&f) const & {
++++    return map_error_impl(*this, std::forward<F>(f));
++++  }
++++  template <class F>
++++  constexpr auto transform_error(F &&f) const && {
++++    return map_error_impl(std::move(*this), std::forward<F>(f));
++++  }
++++#else
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR decltype(map_error_impl(std::declval<expected &>(),
++++                                                   std::declval<F &&>()))
++++  transform_error(F &&f) & {
++++    return map_error_impl(*this, std::forward<F>(f));
++++  }
++++  template <class F>
++++  TL_EXPECTED_11_CONSTEXPR decltype(map_error_impl(std::declval<expected &&>(),
++++                                                   std::declval<F &&>()))
++++  transform_error(F &&f) && {
++++    return map_error_impl(std::move(*this), std::forward<F>(f));
++++  }
++++  template <class F>
++++  constexpr decltype(map_error_impl(std::declval<const expected &>(),
++++                                    std::declval<F &&>()))
++++  transform_error(F &&f) const & {
++++    return map_error_impl(*this, std::forward<F>(f));
++++  }
++++
++++#ifndef TL_EXPECTED_NO_CONSTRR
++++  template <class F>
++++  constexpr decltype(map_error_impl(std::declval<const expected &&>(),
++++                                    std::declval<F &&>()))
++++  transform_error(F &&f) const && {
++++    return map_error_impl(std::move(*this), std::forward<F>(f));
++++  }
++++#endif
++++#endif
++++  template <class F>
++++  expected TL_EXPECTED_11_CONSTEXPR or_else(F &&f) & {
++++    return or_else_impl(*this, std::forward<F>(f));
++++  }
++++
++++  template <class F>
++++  expected TL_EXPECTED_11_CONSTEXPR or_else(F &&f) && {
++++    return or_else_impl(std::move(*this), std::forward<F>(f));
++++  }
++++
++++  template <class F>
++++  expected constexpr or_else(F &&f) const & {
++++    return or_else_impl(*this, std::forward<F>(f));
++++  }
++++
++++#ifndef TL_EXPECTED_NO_CONSTRR
++++  template <class F>
++++  expected constexpr or_else(F &&f) const && {
++++    return or_else_impl(std::move(*this), std::forward<F>(f));
++++  }
++++#endif
++++  constexpr expected() = default;
++++  constexpr expected(const expected &rhs) = default;
++++  constexpr expected(expected &&rhs) = default;
++++  expected &operator=(const expected &rhs) = default;
++++  expected &operator=(expected &&rhs) = default;
++++
++++  template <class... Args,
++++            detail::enable_if_t<std::is_constructible<T, Args &&...>::value> * =
++++                nullptr>
++++  constexpr expected(in_place_t, Args &&...args)
++++      : impl_base(in_place, std::forward<Args>(args)...),
++++        ctor_base(detail::default_constructor_tag{}) {}
++++
++++  template <class U, class... Args,
++++            detail::enable_if_t<std::is_constructible<
++++                T, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
++++  constexpr expected(in_place_t, std::initializer_list<U> il, Args &&...args)
++++      : impl_base(in_place, il, std::forward<Args>(args)...),
++++        ctor_base(detail::default_constructor_tag{}) {}
++++
++++  template <class G = E,
++++            detail::enable_if_t<std::is_constructible<E, const G &>::value> * =
++++                nullptr,
++++            detail::enable_if_t<!std::is_convertible<const G &, E>::value> * =
++++                nullptr>
++++  explicit constexpr expected(const unexpected<G> &e)
++++      : impl_base(unexpect, e.value()),
++++        ctor_base(detail::default_constructor_tag{}) {}
++++
++++  template <
++++      class G = E,
++++      detail::enable_if_t<std::is_constructible<E, const G &>::value> * =
++++          nullptr,
++++      detail::enable_if_t<std::is_convertible<const G &, E>::value> * = nullptr>
++++  constexpr expected(unexpected<G> const &e)
++++      : impl_base(unexpect, e.value()),
++++        ctor_base(detail::default_constructor_tag{}) {}
++++
++++  template <
++++      class G = E,
++++      detail::enable_if_t<std::is_constructible<E, G &&>::value> * = nullptr,
++++      detail::enable_if_t<!std::is_convertible<G &&, E>::value> * = nullptr>
++++  explicit constexpr expected(unexpected<G> &&e) noexcept(
++++      std::is_nothrow_constructible<E, G &&>::value)
++++      : impl_base(unexpect, std::move(e.value())),
++++        ctor_base(detail::default_constructor_tag{}) {}
++++
++++  template <
++++      class G = E,
++++      detail::enable_if_t<std::is_constructible<E, G &&>::value> * = nullptr,
++++      detail::enable_if_t<std::is_convertible<G &&, E>::value> * = nullptr>
++++  constexpr expected(unexpected<G> &&e) noexcept(
++++      std::is_nothrow_constructible<E, G &&>::value)
++++      : impl_base(unexpect, std::move(e.value())),
++++        ctor_base(detail::default_constructor_tag{}) {}
++++
++++  template <class... Args,
++++            detail::enable_if_t<std::is_constructible<E, Args &&...>::value> * =
++++                nullptr>
++++  constexpr explicit expected(unexpect_t, Args &&...args)
++++      : impl_base(unexpect, std::forward<Args>(args)...),
++++        ctor_base(detail::default_constructor_tag{}) {}
++++
++++  template <class U, class... Args,
++++            detail::enable_if_t<std::is_constructible<
++++                E, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
++++  constexpr explicit expected(unexpect_t, std::initializer_list<U> il,
++++                              Args &&...args)
++++      : impl_base(unexpect, il, std::forward<Args>(args)...),
++++        ctor_base(detail::default_constructor_tag{}) {}
++++
++++  template <class U, class G,
++++            detail::enable_if_t<!(std::is_convertible<U const &, T>::value &&
++++                                  std::is_convertible<G const &, E>::value)> * =
++++                nullptr,
++++            detail::expected_enable_from_other<T, E, U, G, const U &, const G &>
++++                * = nullptr>
++++  explicit TL_EXPECTED_11_CONSTEXPR expected(const expected<U, G> &rhs)
++++      : ctor_base(detail::default_constructor_tag{}) {
++++    if (rhs.has_value()) {
++++      this->construct(*rhs);
++++    } else {
++++      this->construct_error(rhs.error());
++++    }
++++  }
++++
++++  template <class U, class G,
++++            detail::enable_if_t<(std::is_convertible<U const &, T>::value &&
++++                                 std::is_convertible<G const &, E>::value)> * =
++++                nullptr,
++++            detail::expected_enable_from_other<T, E, U, G, const U &, const G &>
++++                * = nullptr>
++++  TL_EXPECTED_11_CONSTEXPR expected(const expected<U, G> &rhs)
++++      : ctor_base(detail::default_constructor_tag{}) {
++++    if (rhs.has_value()) {
++++      this->construct(*rhs);
++++    } else {
++++      this->construct_error(rhs.error());
++++    }
++++  }
++++
++++  template <
++++      class U, class G,
++++      detail::enable_if_t<!(std::is_convertible<U &&, T>::value &&
++++                            std::is_convertible<G &&, E>::value)> * = nullptr,
++++      detail::expected_enable_from_other<T, E, U, G, U &&, G &&> * = nullptr>
++++  explicit TL_EXPECTED_11_CONSTEXPR expected(expected<U, G> &&rhs)
++++      : ctor_base(detail::default_constructor_tag{}) {
++++    if (rhs.has_value()) {
++++      this->construct(std::move(*rhs));
++++    } else {
++++      this->construct_error(std::move(rhs.error()));
++++    }
++++  }
++++
++++  template <
++++      class U, class G,
++++      detail::enable_if_t<(std::is_convertible<U &&, T>::value &&
++++                           std::is_convertible<G &&, E>::value)> * = nullptr,
++++      detail::expected_enable_from_other<T, E, U, G, U &&, G &&> * = nullptr>
++++  TL_EXPECTED_11_CONSTEXPR expected(expected<U, G> &&rhs)
++++      : ctor_base(detail::default_constructor_tag{}) {
++++    if (rhs.has_value()) {
++++      this->construct(std::move(*rhs));
++++    } else {
++++      this->construct_error(std::move(rhs.error()));
++++    }
++++  }
++++
++++  template <
++++      class U = T,
++++      detail::enable_if_t<!std::is_convertible<U &&, T>::value> * = nullptr,
++++      detail::expected_enable_forward_value<T, E, U> * = nullptr>
++++  explicit TL_EXPECTED_MSVC2015_CONSTEXPR expected(U &&v)
++++      : expected(in_place, std::forward<U>(v)) {}
++++
++++  template <
++++      class U = T,
++++      detail::enable_if_t<std::is_convertible<U &&, T>::value> * = nullptr,
++++      detail::expected_enable_forward_value<T, E, U> * = nullptr>
++++  TL_EXPECTED_MSVC2015_CONSTEXPR expected(U &&v)
++++      : expected(in_place, std::forward<U>(v)) {}
++++
++++  template <
++++      class U = T, class G = T,
++++      detail::enable_if_t<std::is_nothrow_constructible<T, U &&>::value> * =
++++          nullptr,
++++      detail::enable_if_t<!std::is_void<G>::value> * = nullptr,
++++      detail::enable_if_t<
++++          (!std::is_same<expected<T, E>, detail::decay_t<U>>::value &&
++++           !detail::conjunction<std::is_scalar<T>,
++++                                std::is_same<T, detail::decay_t<U>>>::value &&
++++           std::is_constructible<T, U>::value &&
++++           std::is_assignable<G &, U>::value &&
++++           std::is_nothrow_move_constructible<E>::value)> * = nullptr>
++++  expected &operator=(U &&v) {
++++    if (has_value()) {
++++      val() = std::forward<U>(v);
++++    } else {
++++      err().~unexpected<E>();
++++      ::new (valptr()) T(std::forward<U>(v));
++++      this->m_has_val = true;
++++    }
++++
++++    return *this;
++++  }
++++
++++  template <
++++      class U = T, class G = T,
++++      detail::enable_if_t<!std::is_nothrow_constructible<T, U &&>::value> * =
++++          nullptr,
++++      detail::enable_if_t<!std::is_void<U>::value> * = nullptr,
++++      detail::enable_if_t<
++++          (!std::is_same<expected<T, E>, detail::decay_t<U>>::value &&
++++           !detail::conjunction<std::is_scalar<T>,
++++                                std::is_same<T, detail::decay_t<U>>>::value &&
++++           std::is_constructible<T, U>::value &&
++++           std::is_assignable<G &, U>::value &&
++++           std::is_nothrow_move_constructible<E>::value)> * = nullptr>
++++  expected &operator=(U &&v) {
++++    if (has_value()) {
++++      val() = std::forward<U>(v);
++++    } else {
++++      auto tmp = std::move(err());
++++      err().~unexpected<E>();
++++
++++#ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
++++      try {
++++        ::new (valptr()) T(std::forward<U>(v));
++++        this->m_has_val = true;
++++      } catch (...) {
++++        err() = std::move(tmp);
++++        throw;
++++      }
++++#else
++++      ::new (valptr()) T(std::forward<U>(v));
++++      this->m_has_val = true;
++++#endif
++++    }
++++
++++    return *this;
++++  }
++++
++++  template <class G = E,
++++            detail::enable_if_t<std::is_nothrow_copy_constructible<G>::value &&
++++                                std::is_assignable<G &, G>::value> * = nullptr>
++++  expected &operator=(const unexpected<G> &rhs) {
++++    if (!has_value()) {
++++      err() = rhs;
++++    } else {
++++      this->destroy_val();
++++      ::new (errptr()) unexpected<E>(rhs);
++++      this->m_has_val = false;
++++    }
++++
++++    return *this;
++++  }
++++
++++  template <class G = E,
++++            detail::enable_if_t<std::is_nothrow_move_constructible<G>::value &&
++++                                std::is_move_assignable<G>::value> * = nullptr>
++++  expected &operator=(unexpected<G> &&rhs) noexcept {
++++    if (!has_value()) {
++++      err() = std::move(rhs);
++++    } else {
++++      this->destroy_val();
++++      ::new (errptr()) unexpected<E>(std::move(rhs));
++++      this->m_has_val = false;
++++    }
++++
++++    return *this;
++++  }
++++
++++  template <class... Args, detail::enable_if_t<std::is_nothrow_constructible<
++++                               T, Args &&...>::value> * = nullptr>
++++  void emplace(Args &&...args) {
++++    if (has_value()) {
++++      val().~T();
++++    } else {
++++      err().~unexpected<E>();
++++      this->m_has_val = true;
++++    }
++++    ::new (valptr()) T(std::forward<Args>(args)...);
++++  }
++++
++++  template <class... Args, detail::enable_if_t<!std::is_nothrow_constructible<
++++                               T, Args &&...>::value> * = nullptr>
++++  void emplace(Args &&...args) {
++++    if (has_value()) {
++++      val().~T();
++++      ::new (valptr()) T(std::forward<Args>(args)...);
++++    } else {
++++      auto tmp = std::move(err());
++++      err().~unexpected<E>();
++++
++++#ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
++++      try {
++++        ::new (valptr()) T(std::forward<Args>(args)...);
++++        this->m_has_val = true;
++++      } catch (...) {
++++        err() = std::move(tmp);
++++        throw;
++++      }
++++#else
++++      ::new (valptr()) T(std::forward<Args>(args)...);
++++      this->m_has_val = true;
++++#endif
++++    }
++++  }
++++
++++  template <class U, class... Args,
++++            detail::enable_if_t<std::is_nothrow_constructible<
++++                T, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
++++  void emplace(std::initializer_list<U> il, Args &&...args) {
++++    if (has_value()) {
++++      T t(il, std::forward<Args>(args)...);
++++      val() = std::move(t);
++++    } else {
++++      err().~unexpected<E>();
++++      ::new (valptr()) T(il, std::forward<Args>(args)...);
++++      this->m_has_val = true;
++++    }
++++  }
++++
++++  template <class U, class... Args,
++++            detail::enable_if_t<!std::is_nothrow_constructible<
++++                T, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
++++  void emplace(std::initializer_list<U> il, Args &&...args) {
++++    if (has_value()) {
++++      T t(il, std::forward<Args>(args)...);
++++      val() = std::move(t);
++++    } else {
++++      auto tmp = std::move(err());
++++      err().~unexpected<E>();
++++
++++#ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
++++      try {
++++        ::new (valptr()) T(il, std::forward<Args>(args)...);
++++        this->m_has_val = true;
++++      } catch (...) {
++++        err() = std::move(tmp);
++++        throw;
++++      }
++++#else
++++      ::new (valptr()) T(il, std::forward<Args>(args)...);
++++      this->m_has_val = true;
++++#endif
++++    }
++++  }
++++
++++ private:
++++  using t_is_void = std::true_type;
++++  using t_is_not_void = std::false_type;
++++  using t_is_nothrow_move_constructible = std::true_type;
++++  using move_constructing_t_can_throw = std::false_type;
++++  using e_is_nothrow_move_constructible = std::true_type;
++++  using move_constructing_e_can_throw = std::false_type;
++++
++++  void swap_where_both_have_value(expected & /*rhs*/, t_is_void) noexcept {
++++    // swapping void is a no-op
++++  }
++++
++++  void swap_where_both_have_value(expected &rhs, t_is_not_void) {
++++    using std::swap;
++++    swap(val(), rhs.val());
++++  }
++++
++++  void swap_where_only_one_has_value(expected &rhs, t_is_void) noexcept(
++++      std::is_nothrow_move_constructible<E>::value) {
++++    ::new (errptr()) unexpected_type(std::move(rhs.err()));
++++    rhs.err().~unexpected_type();
++++    std::swap(this->m_has_val, rhs.m_has_val);
++++  }
++++
++++  void swap_where_only_one_has_value(expected &rhs, t_is_not_void) {
++++    swap_where_only_one_has_value_and_t_is_not_void(
++++        rhs, typename std::is_nothrow_move_constructible<T>::type{},
++++        typename std::is_nothrow_move_constructible<E>::type{});
++++  }
++++
++++  void swap_where_only_one_has_value_and_t_is_not_void(
++++      expected &rhs, t_is_nothrow_move_constructible,
++++      e_is_nothrow_move_constructible) noexcept {
++++    auto temp = std::move(val());
++++    val().~T();
++++    ::new (errptr()) unexpected_type(std::move(rhs.err()));
++++    rhs.err().~unexpected_type();
++++    ::new (rhs.valptr()) T(std::move(temp));
++++    std::swap(this->m_has_val, rhs.m_has_val);
++++  }
++++
++++  void swap_where_only_one_has_value_and_t_is_not_void(
++++      expected &rhs, t_is_nothrow_move_constructible,
++++      move_constructing_e_can_throw) {
++++    auto temp = std::move(val());
++++    val().~T();
++++#ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
++++    try {
++++      ::new (errptr()) unexpected_type(std::move(rhs.err()));
++++      rhs.err().~unexpected_type();
++++      ::new (rhs.valptr()) T(std::move(temp));
++++      std::swap(this->m_has_val, rhs.m_has_val);
++++    } catch (...) {
++++      val() = std::move(temp);
++++      throw;
++++    }
++++#else
++++    ::new (errptr()) unexpected_type(std::move(rhs.err()));
++++    rhs.err().~unexpected_type();
++++    ::new (rhs.valptr()) T(std::move(temp));
++++    std::swap(this->m_has_val, rhs.m_has_val);
++++#endif
++++  }
++++
++++  void swap_where_only_one_has_value_and_t_is_not_void(
++++      expected &rhs, move_constructing_t_can_throw,
++++      e_is_nothrow_move_constructible) {
++++    auto temp = std::move(rhs.err());
++++    rhs.err().~unexpected_type();
++++#ifdef TL_EXPECTED_EXCEPTIONS_ENABLED
++++    try {
++++      ::new (rhs.valptr()) T(std::move(val()));
++++      val().~T();
++++      ::new (errptr()) unexpected_type(std::move(temp));
++++      std::swap(this->m_has_val, rhs.m_has_val);
++++    } catch (...) {
++++      rhs.err() = std::move(temp);
++++      throw;
++++    }
++++#else
++++    ::new (rhs.valptr()) T(std::move(val()));
++++    val().~T();
++++    ::new (errptr()) unexpected_type(std::move(temp));
++++    std::swap(this->m_has_val, rhs.m_has_val);
++++#endif
++++  }
++++
++++ public:
++++  template <class OT = T, class OE = E>
++++  detail::enable_if_t<detail::is_swappable<OT>::value &&
++++                      detail::is_swappable<OE>::value &&
++++                      (std::is_nothrow_move_constructible<OT>::value ||
++++                       std::is_nothrow_move_constructible<OE>::value)>
++++  swap(expected &rhs) noexcept(std::is_nothrow_move_constructible<T>::value &&
++++                               detail::is_nothrow_swappable<T>::value &&
++++                               std::is_nothrow_move_constructible<E>::value &&
++++                               detail::is_nothrow_swappable<E>::value) {
++++    if (has_value() && rhs.has_value()) {
++++      swap_where_both_have_value(rhs, typename std::is_void<T>::type{});
++++    } else if (!has_value() && rhs.has_value()) {
++++      rhs.swap(*this);
++++    } else if (has_value()) {
++++      swap_where_only_one_has_value(rhs, typename std::is_void<T>::type{});
++++    } else {
++++      using std::swap;
++++      swap(err(), rhs.err());
++++    }
++++  }
++++
++++  constexpr const T *operator->() const {
++++    TL_ASSERT(has_value());
++++    return valptr();
++++  }
++++  TL_EXPECTED_11_CONSTEXPR T *operator->() {
++++    TL_ASSERT(has_value());
++++    return valptr();
++++  }
++++
++++  template <class U = T,
++++            detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
++++  constexpr const U &operator*() const & {
++++    TL_ASSERT(has_value());
++++    return val();
++++  }
++++  template <class U = T,
++++            detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
++++  TL_EXPECTED_11_CONSTEXPR U &operator*() & {
++++    TL_ASSERT(has_value());
++++    return val();
++++  }
++++  template <class U = T,
++++            detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
++++  constexpr const U &&operator*() const && {
++++    TL_ASSERT(has_value());
++++    return std::move(val());
++++  }
++++  template <class U = T,
++++            detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
++++  TL_EXPECTED_11_CONSTEXPR U &&operator*() && {
++++    TL_ASSERT(has_value());
++++    return std::move(val());
++++  }
++++
++++  constexpr bool has_value() const noexcept { return this->m_has_val; }
++++  constexpr explicit operator bool() const noexcept { return this->m_has_val; }
++++
++++  template <class U = T,
++++            detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
++++  TL_EXPECTED_11_CONSTEXPR const U &value() const & {
++++    if (!has_value())
++++      detail::throw_exception(bad_expected_access<E>(err().value()));
++++    return val();
++++  }
++++  template <class U = T,
++++            detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
++++  TL_EXPECTED_11_CONSTEXPR U &value() & {
++++    if (!has_value())
++++      detail::throw_exception(bad_expected_access<E>(err().value()));
++++    return val();
++++  }
++++  template <class U = T,
++++            detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
++++  TL_EXPECTED_11_CONSTEXPR const U &&value() const && {
++++    if (!has_value())
++++      detail::throw_exception(bad_expected_access<E>(std::move(err()).value()));
++++    return std::move(val());
++++  }
++++  template <class U = T,
++++            detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
++++  TL_EXPECTED_11_CONSTEXPR U &&value() && {
++++    if (!has_value())
++++      detail::throw_exception(bad_expected_access<E>(std::move(err()).value()));
++++    return std::move(val());
++++  }
++++
++++  constexpr const E &error() const & {
++++    TL_ASSERT(!has_value());
++++    return err().value();
++++  }
++++  TL_EXPECTED_11_CONSTEXPR E &error() & {
++++    TL_ASSERT(!has_value());
++++    return err().value();
++++  }
++++  constexpr const E &&error() const && {
++++    TL_ASSERT(!has_value());
++++    return std::move(err().value());
++++  }
++++  TL_EXPECTED_11_CONSTEXPR E &&error() && {
++++    TL_ASSERT(!has_value());
++++    return std::move(err().value());
++++  }
++++
++++  template <class U>
++++  constexpr T value_or(U &&v) const & {
++++    static_assert(std::is_copy_constructible<T>::value &&
++++                      std::is_convertible<U &&, T>::value,
++++                  "T must be copy-constructible and convertible to from U&&");
++++    return bool(*this) ? **this : static_cast<T>(std::forward<U>(v));
++++  }
++++  template <class U>
++++  TL_EXPECTED_11_CONSTEXPR T value_or(U &&v) && {
++++    static_assert(std::is_move_constructible<T>::value &&
++++                      std::is_convertible<U &&, T>::value,
++++                  "T must be move-constructible and convertible to from U&&");
++++    return bool(*this) ? std::move(**this) : static_cast<T>(std::forward<U>(v));
++++  }
++++};
++++
++++namespace detail {
++++template <class Exp>
++++using exp_t = typename detail::decay_t<Exp>::value_type;
++++template <class Exp>
++++using err_t = typename detail::decay_t<Exp>::error_type;
++++template <class Exp, class Ret>
++++using ret_t = expected<Ret, err_t<Exp>>;
++++
++++#ifdef TL_EXPECTED_CXX14
++++template <class Exp, class F,
++++          detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              *std::declval<Exp>()))>
++++constexpr auto and_then_impl(Exp &&exp, F &&f) {
++++  static_assert(detail::is_expected<Ret>::value, "F must return an expected");
++++
++++  return exp.has_value()
++++             ? detail::invoke(std::forward<F>(f), *std::forward<Exp>(exp))
++++             : Ret(unexpect, std::forward<Exp>(exp).error());
++++}
++++
++++template <class Exp, class F,
++++          detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>()))>
++++constexpr auto and_then_impl(Exp &&exp, F &&f) {
++++  static_assert(detail::is_expected<Ret>::value, "F must return an expected");
++++
++++  return exp.has_value() ? detail::invoke(std::forward<F>(f))
++++                         : Ret(unexpect, std::forward<Exp>(exp).error());
++++}
++++#else
++++template <class>
++++struct TC;
++++template <class Exp, class F,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              *std::declval<Exp>())),
++++          detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr>
++++auto and_then_impl(Exp &&exp, F &&f) -> Ret {
++++  static_assert(detail::is_expected<Ret>::value, "F must return an expected");
++++
++++  return exp.has_value()
++++             ? detail::invoke(std::forward<F>(f), *std::forward<Exp>(exp))
++++             : Ret(unexpect, std::forward<Exp>(exp).error());
++++}
++++
++++template <class Exp, class F,
++++          class Ret = decltype(detail::invoke(std::declval<F>())),
++++          detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr>
++++constexpr auto and_then_impl(Exp &&exp, F &&f) -> Ret {
++++  static_assert(detail::is_expected<Ret>::value, "F must return an expected");
++++
++++  return exp.has_value() ? detail::invoke(std::forward<F>(f))
++++                         : Ret(unexpect, std::forward<Exp>(exp).error());
++++}
++++#endif
++++
++++#ifdef TL_EXPECTED_CXX14
++++template <class Exp, class F,
++++          detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              *std::declval<Exp>())),
++++          detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
++++constexpr auto expected_map_impl(Exp &&exp, F &&f) {
++++  using result = ret_t<Exp, detail::decay_t<Ret>>;
++++  return exp.has_value() ? result(detail::invoke(std::forward<F>(f),
++++                                                 *std::forward<Exp>(exp)))
++++                         : result(unexpect, std::forward<Exp>(exp).error());
++++}
++++
++++template <class Exp, class F,
++++          detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              *std::declval<Exp>())),
++++          detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
++++auto expected_map_impl(Exp &&exp, F &&f) {
++++  using result = expected<void, err_t<Exp>>;
++++  if (exp.has_value()) {
++++    detail::invoke(std::forward<F>(f), *std::forward<Exp>(exp));
++++    return result();
++++  }
++++
++++  return result(unexpect, std::forward<Exp>(exp).error());
++++}
++++
++++template <class Exp, class F,
++++          detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>())),
++++          detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
++++constexpr auto expected_map_impl(Exp &&exp, F &&f) {
++++  using result = ret_t<Exp, detail::decay_t<Ret>>;
++++  return exp.has_value() ? result(detail::invoke(std::forward<F>(f)))
++++                         : result(unexpect, std::forward<Exp>(exp).error());
++++}
++++
++++template <class Exp, class F,
++++          detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>())),
++++          detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
++++auto expected_map_impl(Exp &&exp, F &&f) {
++++  using result = expected<void, err_t<Exp>>;
++++  if (exp.has_value()) {
++++    detail::invoke(std::forward<F>(f));
++++    return result();
++++  }
++++
++++  return result(unexpect, std::forward<Exp>(exp).error());
++++}
++++#else
++++template <class Exp, class F,
++++          detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              *std::declval<Exp>())),
++++          detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
++++
++++constexpr auto expected_map_impl(Exp &&exp, F &&f)
++++    -> ret_t<Exp, detail::decay_t<Ret>> {
++++  using result = ret_t<Exp, detail::decay_t<Ret>>;
++++
++++  return exp.has_value() ? result(detail::invoke(std::forward<F>(f),
++++                                                 *std::forward<Exp>(exp)))
++++                         : result(unexpect, std::forward<Exp>(exp).error());
++++}
++++
++++template <class Exp, class F,
++++          detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              *std::declval<Exp>())),
++++          detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
++++
++++auto expected_map_impl(Exp &&exp, F &&f) -> expected<void, err_t<Exp>> {
++++  if (exp.has_value()) {
++++    detail::invoke(std::forward<F>(f), *std::forward<Exp>(exp));
++++    return {};
++++  }
++++
++++  return unexpected<err_t<Exp>>(std::forward<Exp>(exp).error());
++++}
++++
++++template <class Exp, class F,
++++          detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>())),
++++          detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
++++
++++constexpr auto expected_map_impl(Exp &&exp, F &&f)
++++    -> ret_t<Exp, detail::decay_t<Ret>> {
++++  using result = ret_t<Exp, detail::decay_t<Ret>>;
++++
++++  return exp.has_value() ? result(detail::invoke(std::forward<F>(f)))
++++                         : result(unexpect, std::forward<Exp>(exp).error());
++++}
++++
++++template <class Exp, class F,
++++          detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>())),
++++          detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
++++
++++auto expected_map_impl(Exp &&exp, F &&f) -> expected<void, err_t<Exp>> {
++++  if (exp.has_value()) {
++++    detail::invoke(std::forward<F>(f));
++++    return {};
++++  }
++++
++++  return unexpected<err_t<Exp>>(std::forward<Exp>(exp).error());
++++}
++++#endif
++++
++++#if defined(TL_EXPECTED_CXX14) && !defined(TL_EXPECTED_GCC49) && \
++++    !defined(TL_EXPECTED_GCC54) && !defined(TL_EXPECTED_GCC55)
++++template <class Exp, class F,
++++          detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              std::declval<Exp>().error())),
++++          detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
++++constexpr auto map_error_impl(Exp &&exp, F &&f) {
++++  using result = expected<exp_t<Exp>, detail::decay_t<Ret>>;
++++  return exp.has_value()
++++             ? result(*std::forward<Exp>(exp))
++++             : result(unexpect, detail::invoke(std::forward<F>(f),
++++                                               std::forward<Exp>(exp).error()));
++++}
++++template <class Exp, class F,
++++          detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              std::declval<Exp>().error())),
++++          detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
++++auto map_error_impl(Exp &&exp, F &&f) {
++++  using result = expected<exp_t<Exp>, monostate>;
++++  if (exp.has_value()) {
++++    return result(*std::forward<Exp>(exp));
++++  }
++++
++++  detail::invoke(std::forward<F>(f), std::forward<Exp>(exp).error());
++++  return result(unexpect, monostate{});
++++}
++++template <class Exp, class F,
++++          detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              std::declval<Exp>().error())),
++++          detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
++++constexpr auto map_error_impl(Exp &&exp, F &&f) {
++++  using result = expected<exp_t<Exp>, detail::decay_t<Ret>>;
++++  return exp.has_value()
++++             ? result()
++++             : result(unexpect, detail::invoke(std::forward<F>(f),
++++                                               std::forward<Exp>(exp).error()));
++++}
++++template <class Exp, class F,
++++          detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              std::declval<Exp>().error())),
++++          detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
++++auto map_error_impl(Exp &&exp, F &&f) {
++++  using result = expected<exp_t<Exp>, monostate>;
++++  if (exp.has_value()) {
++++    return result();
++++  }
++++
++++  detail::invoke(std::forward<F>(f), std::forward<Exp>(exp).error());
++++  return result(unexpect, monostate{});
++++}
++++#else
++++template <class Exp, class F,
++++          detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              std::declval<Exp>().error())),
++++          detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
++++constexpr auto map_error_impl(Exp &&exp, F &&f)
++++    -> expected<exp_t<Exp>, detail::decay_t<Ret>> {
++++  using result = expected<exp_t<Exp>, detail::decay_t<Ret>>;
++++
++++  return exp.has_value()
++++             ? result(*std::forward<Exp>(exp))
++++             : result(unexpect, detail::invoke(std::forward<F>(f),
++++                                               std::forward<Exp>(exp).error()));
++++}
++++
++++template <class Exp, class F,
++++          detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              std::declval<Exp>().error())),
++++          detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
++++auto map_error_impl(Exp &&exp, F &&f) -> expected<exp_t<Exp>, monostate> {
++++  using result = expected<exp_t<Exp>, monostate>;
++++  if (exp.has_value()) {
++++    return result(*std::forward<Exp>(exp));
++++  }
++++
++++  detail::invoke(std::forward<F>(f), std::forward<Exp>(exp).error());
++++  return result(unexpect, monostate{});
++++}
++++
++++template <class Exp, class F,
++++          detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              std::declval<Exp>().error())),
++++          detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
++++constexpr auto map_error_impl(Exp &&exp, F &&f)
++++    -> expected<exp_t<Exp>, detail::decay_t<Ret>> {
++++  using result = expected<exp_t<Exp>, detail::decay_t<Ret>>;
++++
++++  return exp.has_value()
++++             ? result()
++++             : result(unexpect, detail::invoke(std::forward<F>(f),
++++                                               std::forward<Exp>(exp).error()));
++++}
++++
++++template <class Exp, class F,
++++          detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              std::declval<Exp>().error())),
++++          detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
++++auto map_error_impl(Exp &&exp, F &&f) -> expected<exp_t<Exp>, monostate> {
++++  using result = expected<exp_t<Exp>, monostate>;
++++  if (exp.has_value()) {
++++    return result();
++++  }
++++
++++  detail::invoke(std::forward<F>(f), std::forward<Exp>(exp).error());
++++  return result(unexpect, monostate{});
++++}
++++#endif
++++
++++#ifdef TL_EXPECTED_CXX14
++++template <class Exp, class F,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              std::declval<Exp>().error())),
++++          detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
++++constexpr auto or_else_impl(Exp &&exp, F &&f) {
++++  static_assert(detail::is_expected<Ret>::value, "F must return an expected");
++++  return exp.has_value() ? std::forward<Exp>(exp)
++++                         : detail::invoke(std::forward<F>(f),
++++                                          std::forward<Exp>(exp).error());
++++}
++++
++++template <class Exp, class F,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              std::declval<Exp>().error())),
++++          detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
++++detail::decay_t<Exp> or_else_impl(Exp &&exp, F &&f) {
++++  return exp.has_value() ? std::forward<Exp>(exp)
++++                         : (detail::invoke(std::forward<F>(f),
++++                                           std::forward<Exp>(exp).error()),
++++                            std::forward<Exp>(exp));
++++}
++++#else
++++template <class Exp, class F,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              std::declval<Exp>().error())),
++++          detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
++++auto or_else_impl(Exp &&exp, F &&f) -> Ret {
++++  static_assert(detail::is_expected<Ret>::value, "F must return an expected");
++++  return exp.has_value() ? std::forward<Exp>(exp)
++++                         : detail::invoke(std::forward<F>(f),
++++                                          std::forward<Exp>(exp).error());
++++}
++++
++++template <class Exp, class F,
++++          class Ret = decltype(detail::invoke(std::declval<F>(),
++++                                              std::declval<Exp>().error())),
++++          detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
++++detail::decay_t<Exp> or_else_impl(Exp &&exp, F &&f) {
++++  return exp.has_value() ? std::forward<Exp>(exp)
++++                         : (detail::invoke(std::forward<F>(f),
++++                                           std::forward<Exp>(exp).error()),
++++                            std::forward<Exp>(exp));
++++}
++++#endif
++++}  // namespace detail
++++
++++template <class T, class E, class U, class F>
++++constexpr bool operator==(const expected<T, E> &lhs,
++++                          const expected<U, F> &rhs) {
++++  return (lhs.has_value() != rhs.has_value())
++++             ? false
++++             : (!lhs.has_value() ? lhs.error() == rhs.error() : *lhs == *rhs);
++++}
++++template <class T, class E, class U, class F>
++++constexpr bool operator!=(const expected<T, E> &lhs,
++++                          const expected<U, F> &rhs) {
++++  return (lhs.has_value() != rhs.has_value())
++++             ? true
++++             : (!lhs.has_value() ? lhs.error() != rhs.error() : *lhs != *rhs);
++++}
++++template <class E, class F>
++++constexpr bool operator==(const expected<void, E> &lhs,
++++                          const expected<void, F> &rhs) {
++++  return (lhs.has_value() != rhs.has_value())
++++             ? false
++++             : (!lhs.has_value() ? lhs.error() == rhs.error() : true);
++++}
++++template <class E, class F>
++++constexpr bool operator!=(const expected<void, E> &lhs,
++++                          const expected<void, F> &rhs) {
++++  return (lhs.has_value() != rhs.has_value())
++++             ? true
++++             : (!lhs.has_value() ? lhs.error() == rhs.error() : false);
++++}
++++
++++template <class T, class E, class U>
++++constexpr bool operator==(const expected<T, E> &x, const U &v) {
++++  return x.has_value() ? *x == v : false;
++++}
++++template <class T, class E, class U>
++++constexpr bool operator==(const U &v, const expected<T, E> &x) {
++++  return x.has_value() ? *x == v : false;
++++}
++++template <class T, class E, class U>
++++constexpr bool operator!=(const expected<T, E> &x, const U &v) {
++++  return x.has_value() ? *x != v : true;
++++}
++++template <class T, class E, class U>
++++constexpr bool operator!=(const U &v, const expected<T, E> &x) {
++++  return x.has_value() ? *x != v : true;
++++}
++++
++++template <class T, class E>
++++constexpr bool operator==(const expected<T, E> &x, const unexpected<E> &e) {
++++  return x.has_value() ? false : x.error() == e.value();
++++}
++++template <class T, class E>
++++constexpr bool operator==(const unexpected<E> &e, const expected<T, E> &x) {
++++  return x.has_value() ? false : x.error() == e.value();
++++}
++++template <class T, class E>
++++constexpr bool operator!=(const expected<T, E> &x, const unexpected<E> &e) {
++++  return x.has_value() ? true : x.error() != e.value();
++++}
++++template <class T, class E>
++++constexpr bool operator!=(const unexpected<E> &e, const expected<T, E> &x) {
++++  return x.has_value() ? true : x.error() != e.value();
++++}
++++
++++template <class T, class E,
++++          detail::enable_if_t<(std::is_void<T>::value ||
++++                               std::is_move_constructible<T>::value) &&
++++                              detail::is_swappable<T>::value &&
++++                              std::is_move_constructible<E>::value &&
++++                              detail::is_swappable<E>::value> * = nullptr>
++++void swap(expected<T, E> &lhs,
++++          expected<T, E> &rhs) noexcept(noexcept(lhs.swap(rhs))) {
++++  lhs.swap(rhs);
++++}
++++}  // namespace tl
++++
++++#endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c500966f6a4cb8a66c7a6261cdc52610255cc5d2
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,232 @@@@@
++++/**
++++ * @file helpers.h
++++ * @brief Definitions for helper functions used within Ada.
++++ */
++++#ifndef ADA_HELPERS_H
++++#define ADA_HELPERS_H
++++
++++#include "ada/common_defs.h"
++++#include "ada/state.h"
++++#include "ada/url_base.h"
++++
++++#include <string_view>
++++#include <optional>
++++
++++/**
++++ * These functions are not part of our public API and may
++++ * change at any time.
++++ *
++++ * @private
++++ * @namespace ada::helpers
++++ * @brief Includes the definitions for helper functions
++++ */
++++namespace ada::helpers {
++++
++++/**
++++ * @private
++++ */
++++template <typename out_iter>
++++void encode_json(std::string_view view, out_iter out);
++++
++++/**
++++ * @private
++++ * This function is used to prune a fragment from a url, and returning the
++++ * removed string if input has fragment.
++++ *
++++ * @details prune_hash seeks the first '#' and returns everything after it
++++ * as a string_view, and modifies (in place) the input so that it points at
++++ * everything before the '#'. If no '#' is found, the input is left unchanged
++++ * and std::nullopt is returned.
++++ *
++++ * @attention The function is non-allocating and it does not throw.
++++ * @returns Note that the returned string_view might be empty!
++++ */
++++ada_really_inline std::optional<std::string_view> prune_hash(
++++    std::string_view& input) noexcept;
++++
++++/**
++++ * @private
++++ * Defined by the URL specification, shorten a URLs paths.
++++ * @see https://url.spec.whatwg.org/#shorten-a-urls-path
++++ * @returns Returns true if path is shortened.
++++ */
++++ada_really_inline bool shorten_path(std::string& path,
++++                                    ada::scheme::type type) noexcept;
++++
++++/**
++++ * @private
++++ * Defined by the URL specification, shorten a URLs paths.
++++ * @see https://url.spec.whatwg.org/#shorten-a-urls-path
++++ * @returns Returns true if path is shortened.
++++ */
++++ada_really_inline bool shorten_path(std::string_view& path,
++++                                    ada::scheme::type type) noexcept;
++++
++++/**
++++ * @private
++++ *
++++ * Parse the path from the provided input and append to the existing
++++ * (possibly empty) path. The input cannot contain tabs and spaces: it
++++ * is the user's responsibility to check.
++++ *
++++ * The input is expected to be UTF-8.
++++ *
++++ * @see https://url.spec.whatwg.org/
++++ */
++++ada_really_inline void parse_prepared_path(std::string_view input,
++++                                           ada::scheme::type type,
++++                                           std::string& path);
++++
++++/**
++++ * @private
++++ * Remove and mutate all ASCII tab or newline characters from an input.
++++ */
++++ada_really_inline void remove_ascii_tab_or_newline(std::string& input) noexcept;
++++
++++/**
++++ * @private
++++ * Return the substring from input going from index pos to the end.
++++ * This function cannot throw.
++++ */
++++ada_really_inline std::string_view substring(std::string_view input,
++++                                             size_t pos) noexcept;
++++
++++/**
++++ * @private
++++ * Returns true if the string_view points within the string.
++++ */
++++bool overlaps(std::string_view input1, const std::string& input2) noexcept;
++++
++++/**
++++ * @private
++++ * Return the substring from input going from index pos1 to the pos2 (non
++++ * included). The length of the substring is pos2 - pos1.
++++ */
++++ada_really_inline std::string_view substring(const std::string& input,
++++                                             size_t pos1,
++++                                             size_t pos2) noexcept {
++++#if ADA_DEVELOPMENT_CHECKS
++++  if (pos2 < pos1) {
++++    std::cerr << "Negative-length substring: [" << pos1 << " to " << pos2 << ")"
++++              << std::endl;
++++    abort();
++++  }
++++#endif
++++  return std::string_view(input.data() + pos1, pos2 - pos1);
++++}
++++
++++/**
++++ * @private
++++ * Modify the string_view so that it has the new size pos, assuming that pos <=
++++ * input.size(). This function cannot throw.
++++ */
++++ada_really_inline void resize(std::string_view& input, size_t pos) noexcept;
++++
++++/**
++++ * @private
++++ * Returns a host's delimiter location depending on the state of the instance,
++++ * and whether a colon was found outside brackets. Used by the host parser.
++++ */
++++ada_really_inline std::pair<size_t, bool> get_host_delimiter_location(
++++    const bool is_special, std::string_view& view) noexcept;
++++
++++/**
++++ * @private
++++ * Removes leading and trailing C0 control and whitespace characters from
++++ * string.
++++ */
++++ada_really_inline void trim_c0_whitespace(std::string_view& input) noexcept;
++++
++++/**
++++ * @private
++++ * @see
++++ * https://url.spec.whatwg.org/#potentially-strip-trailing-spaces-from-an-opaque-path
++++ */
++++template <class url_type>
++++ada_really_inline void strip_trailing_spaces_from_opaque_path(
++++    url_type& url) noexcept;
++++
++++/**
++++ * @private
++++ * Finds the delimiter of a view in authority state.
++++ */
++++ada_really_inline size_t
++++find_authority_delimiter_special(std::string_view view) noexcept;
++++
++++/**
++++ * @private
++++ * Finds the delimiter of a view in authority state.
++++ */
++++ada_really_inline size_t
++++find_authority_delimiter(std::string_view view) noexcept;
++++
++++/**
++++ * @private
++++ */
++++template <typename T, typename... Args>
++++inline void inner_concat(std::string& buffer, T t) {
++++  buffer.append(t);
++++}
++++
++++/**
++++ * @private
++++ */
++++template <typename T, typename... Args>
++++inline void inner_concat(std::string& buffer, T t, Args... args) {
++++  buffer.append(t);
++++  return inner_concat(buffer, args...);
++++}
++++
++++/**
++++ * @private
++++ * Concatenate the arguments and return a string.
++++ * @returns a string
++++ */
++++template <typename... Args>
++++std::string concat(Args... args) {
++++  std::string answer;
++++  inner_concat(answer, args...);
++++  return answer;
++++}
++++
++++/**
++++ * @private
++++ * @return Number of leading zeroes.
++++ */
++++inline int leading_zeroes(uint32_t input_num) noexcept {
++++#if ADA_REGULAR_VISUAL_STUDIO
++++  unsigned long leading_zero(0);
++++  unsigned long in(input_num);
++++  return _BitScanReverse(&leading_zero, in) ? int(31 - leading_zero) : 32;
++++#else
++++  return __builtin_clz(input_num);
++++#endif  // ADA_REGULAR_VISUAL_STUDIO
++++}
++++
++++/**
++++ * @private
++++ * Counts the number of decimal digits necessary to represent x.
++++ * faster than std::to_string(x).size().
++++ * @return digit count
++++ */
++++inline int fast_digit_count(uint32_t x) noexcept {
++++  auto int_log2 = [](uint32_t z) -> int {
++++    return 31 - ada::helpers::leading_zeroes(z | 1);
++++  };
++++  // Compiles to very few instructions. Note that the
++++  // table is static and thus effectively a constant.
++++  // We leave it inside the function because it is meaningless
++++  // outside of it (this comes at no performance cost).
++++  const static uint64_t table[] = {
++++      4294967296,  8589934582,  8589934582,  8589934582,  12884901788,
++++      12884901788, 12884901788, 17179868184, 17179868184, 17179868184,
++++      21474826480, 21474826480, 21474826480, 21474826480, 25769703776,
++++      25769703776, 25769703776, 30063771072, 30063771072, 30063771072,
++++      34349738368, 34349738368, 34349738368, 34349738368, 38554705664,
++++      38554705664, 38554705664, 41949672960, 41949672960, 41949672960,
++++      42949672960, 42949672960};
++++  return int((x + table[int_log2(x)]) >> 32);
++++}
++++}  // namespace ada::helpers
++++
++++#endif  // ADA_HELPERS_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..295ea03a996e0265efc0174264f6df73934b2819
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,60 @@@@@
++++/**
++++ * @file implementation.h
++++ * @brief Definitions for user facing functions for parsing URL and it's
++++ * components.
++++ */
++++#ifndef ADA_IMPLEMENTATION_H
++++#define ADA_IMPLEMENTATION_H
++++
++++#include <string>
++++#include <optional>
++++
++++#include "ada/parser.h"
++++#include "ada/common_defs.h"
++++#include "ada/encoding_type.h"
++++#include "ada/url.h"
++++#include "ada/state.h"
++++#include "ada/url_aggregator.h"
++++
++++namespace ada {
++++enum class errors { generic_error };
++++
++++template <class result_type = ada::url_aggregator>
++++using result = tl::expected<result_type, ada::errors>;
++++
++++/**
++++ * The URL parser takes a scalar value string input, with an optional null or
++++ * base URL base (default null). The parser assumes the input is a valid ASCII
++++ * or UTF-8 string.
++++ *
++++ * @param input the string input to analyze (must be valid ASCII or UTF-8)
++++ * @param base_url the optional URL input to use as a base url.
++++ * @return a parsed URL.
++++ */
++++template <class result_type = ada::url_aggregator>
++++ada_warn_unused ada::result<result_type> parse(
++++    std::string_view input, const result_type* base_url = nullptr);
++++
++++extern template ada::result<url> parse<url>(std::string_view input,
++++                                            const url* base_url);
++++extern template ada::result<url_aggregator> parse<url_aggregator>(
++++    std::string_view input, const url_aggregator* base_url);
++++
++++/**
++++ * Verifies whether the URL strings can be parsed. The function assumes
++++ * that the inputs are valid ASCII or UTF-8 strings.
++++ * @see https://url.spec.whatwg.org/#dom-url-canparse
++++ * @return If URL can be parsed or not.
++++ */
++++bool can_parse(std::string_view input,
++++               const std::string_view* base_input = nullptr);
++++
++++/**
++++ * Computes a href string from a file path. The function assumes
++++ * that the input is a valid ASCII or UTF-8 string.
++++ * @return a href string (starts with file:://)
++++ */
++++std::string href_from_file(std::string_view path);
++++}  // namespace ada
++++
++++#endif  // ADA_IMPLEMENTATION_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5b00d360c3d48be707df0b10d7ce90479ee0693a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,79 @@@@@
++++/**
++++ * @file log.h
++++ * @brief Includes the definitions for logging.
++++ * @private Excluded from docs through the doxygen file.
++++ */
++++#ifndef ADA_LOG_H
++++#define ADA_LOG_H
++++#include "ada/common_defs.h"
++++
++++#include <iostream>
++++// To enable logging, set ADA_LOGGING to 1:
++++#ifndef ADA_LOGGING
++++#define ADA_LOGGING 0
++++#endif
++++
++++namespace ada {
++++
++++/**
++++ * Private function used for logging messages.
++++ * @private
++++ */
++++template <typename T>
++++ada_really_inline void inner_log([[maybe_unused]] T t) {
++++#if ADA_LOGGING
++++  std::cout << t << std::endl;
++++#endif
++++}
++++
++++/**
++++ * Private function used for logging messages.
++++ * @private
++++ */
++++template <typename T, typename... Args>
++++ada_really_inline void inner_log([[maybe_unused]] T t,
++++                                 [[maybe_unused]] Args... args) {
++++#if ADA_LOGGING
++++  std::cout << t;
++++  inner_log(args...);
++++#endif
++++}
++++
++++/**
++++ * Log a message.
++++ * @private
++++ */
++++template <typename T, typename... Args>
++++ada_really_inline void log([[maybe_unused]] T t,
++++                           [[maybe_unused]] Args... args) {
++++#if ADA_LOGGING
++++  std::cout << "ADA_LOG: " << t;
++++  inner_log(args...);
++++#endif
++++}
++++
++++/**
++++ * Log a message.
++++ * @private
++++ */
++++template <typename T>
++++ada_really_inline void log([[maybe_unused]] T t) {
++++#if ADA_LOGGING
++++  std::cout << "ADA_LOG: " << t << std::endl;
++++#endif
++++}
++++}  // namespace ada
++++
++++#if ADA_LOGGING
++++
++++#ifndef ada_log
++++#define ada_log(...)       \
++++  do {                     \
++++    ada::log(__VA_ARGS__); \
++++  } while (0)
++++#endif  // ada_log
++++#else
++++#define ada_log(...)
++++#endif  // ADA_LOGGING
++++
++++#endif  // ADA_LOG_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5bb148c89edfdd7643c3397745baa3e154259d6e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,53 @@@@@
++++/**
++++ * @file parser.h
++++ * @brief Definitions for the parser.
++++ */
++++#ifndef ADA_PARSER_H
++++#define ADA_PARSER_H
++++
++++#include <optional>
++++#include <string_view>
++++
++++#include "ada/encoding_type.h"
++++#include "ada/expected.h"
++++#include "ada/state.h"
++++
++++/**
++++ * @private
++++ */
++++namespace ada {
++++struct url_aggregator;
++++struct url;
++++}  // namespace ada
++++
++++/**
++++ * @namespace ada::parser
++++ * @brief Includes the definitions for supported parsers
++++ */
++++namespace ada::parser {
++++/**
++++ * Parses a url. The parameter user_input is the input to be parsed:
++++ * it should be a valid UTF-8 string. The parameter base_url is an optional
++++ * parameter that can be used to resolve relative URLs. If the base_url is
++++ * provided, the user_input is resolved against the base_url.
++++ */
++++template <typename result_type = ada::url_aggregator>
++++result_type parse_url(std::string_view user_input,
++++                      const result_type* base_url = nullptr);
++++
++++extern template url_aggregator parse_url<url_aggregator>(
++++    std::string_view user_input, const url_aggregator* base_url);
++++extern template url parse_url<url>(std::string_view user_input,
++++                                   const url* base_url);
++++
++++template <typename result_type = ada::url_aggregator, bool store_values = true>
++++result_type parse_url_impl(std::string_view user_input,
++++                           const result_type* base_url = nullptr);
++++
++++extern template url_aggregator parse_url_impl<url_aggregator>(
++++    std::string_view user_input, const url_aggregator* base_url);
++++extern template url parse_url_impl<url>(std::string_view user_input,
++++                                        const url* base_url);
++++}  // namespace ada::parser
++++
++++#endif  // ADA_PARSER_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a327dd0499ff40067393d20fd20d19092eb1487d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,87 @@@@@
++++/**
++++ * @file scheme-inl.h
++++ * @brief Definitions for the URL scheme.
++++ */
++++#ifndef ADA_SCHEME_INL_H
++++#define ADA_SCHEME_INL_H
++++
++++#include "ada/scheme.h"
++++
++++namespace ada::scheme {
++++
++++/**
++++ * @namespace ada::scheme::details
++++ * @brief Includes the definitions for scheme specific entities
++++ */
++++namespace details {
++++// for use with is_special and get_special_port
++++// Spaces, if present, are removed from URL.
++++constexpr std::string_view is_special_list[] = {"http", " ",   "https", "ws",
++++                                                "ftp",  "wss", "file",  " "};
++++// for use with get_special_port
++++constexpr uint16_t special_ports[] = {80, 0, 443, 80, 21, 443, 0, 0};
++++}  // namespace details
++++
++++/****
++++ * @private
++++ * In is_special, get_scheme_type, and get_special_port, we
++++ * use a standard hashing technique to find the index of the scheme in
++++ * the is_special_list. The hashing technique is based on the size of
++++ * the scheme and the first character of the scheme. It ensures that we
++++ * do at most one string comparison per call. If the protocol is
++++ * predictible (e.g., it is always "http"), we can get a better average
++++ * performance by using a simpler approach where we loop and compare
++++ * scheme with all possible protocols starting with the most likely
++++ * protocol. Doing multiple comparisons may have a poor worst case
++++ * performance, however. In this instance, we choose a potentially
++++ * slightly lower best-case performance for a better worst-case
++++ * performance. We can revisit this choice at any time.
++++ *
++++ * Reference:
++++ * Schmidt, Douglas C. "Gperf: A perfect hash function generator."
++++ * More C++ gems 17 (2000).
++++ *
++++ * Reference: https://en.wikipedia.org/wiki/Perfect_hash_function
++++ *
++++ * Reference: https://github.com/ada-url/ada/issues/617
++++ ****/
++++
++++ada_really_inline constexpr bool is_special(std::string_view scheme) {
++++  if (scheme.empty()) {
++++    return false;
++++  }
++++  int hash_value = (2 * scheme.size() + (unsigned)(scheme[0])) & 7;
++++  const std::string_view target = details::is_special_list[hash_value];
++++  return (target[0] == scheme[0]) && (target.substr(1) == scheme.substr(1));
++++}
++++constexpr uint16_t get_special_port(std::string_view scheme) noexcept {
++++  if (scheme.empty()) {
++++    return 0;
++++  }
++++  int hash_value = (2 * scheme.size() + (unsigned)(scheme[0])) & 7;
++++  const std::string_view target = details::is_special_list[hash_value];
++++  if ((target[0] == scheme[0]) && (target.substr(1) == scheme.substr(1))) {
++++    return details::special_ports[hash_value];
++++  } else {
++++    return 0;
++++  }
++++}
++++constexpr uint16_t get_special_port(ada::scheme::type type) noexcept {
++++  return details::special_ports[int(type)];
++++}
++++constexpr ada::scheme::type get_scheme_type(std::string_view scheme) noexcept {
++++  if (scheme.empty()) {
++++    return ada::scheme::NOT_SPECIAL;
++++  }
++++  int hash_value = (2 * scheme.size() + (unsigned)(scheme[0])) & 7;
++++  const std::string_view target = details::is_special_list[hash_value];
++++  if ((target[0] == scheme[0]) && (target.substr(1) == scheme.substr(1))) {
++++    return ada::scheme::type(hash_value);
++++  } else {
++++    return ada::scheme::NOT_SPECIAL;
++++  }
++++}
++++
++++}  // namespace ada::scheme
++++
++++#endif  // ADA_SCHEME_INL_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f14a85e6dfe0f09cba3aa1bb107f7e35b373ce9d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,77 @@@@@
++++/**
++++ * @file scheme.h
++++ * @brief Declarations for the URL scheme.
++++ */
++++#ifndef ADA_SCHEME_H
++++#define ADA_SCHEME_H
++++
++++#include "ada/common_defs.h"
++++
++++#include <array>
++++#include <optional>
++++#include <string>
++++
++++/**
++++ * @namespace ada::scheme
++++ * @brief Includes the scheme declarations
++++ */
++++namespace ada::scheme {
++++
++++/**
++++ * Type of the scheme as an enum.
++++ * Using strings to represent a scheme type is not ideal because
++++ * checking for types involves string comparisons. It is faster to use
++++ * a simple integer.
++++ * In C++11, we are allowed to specify the underlying type of the enum.
++++ * We pick an 8-bit integer (which allows up to 256 types). Specifying the
++++ * type of the enum may help integration with other systems if the type
++++ * variable is exposed (since its value will not depend on the compiler).
++++ */
++++enum type : uint8_t {
++++  HTTP = 0,
++++  NOT_SPECIAL = 1,
++++  HTTPS = 2,
++++  WS = 3,
++++  FTP = 4,
++++  WSS = 5,
++++  FILE = 6
++++};
++++
++++/**
++++ * A special scheme is an ASCII string that is listed in the first column of the
++++ * following table. The default port for a special scheme is listed in the
++++ * second column on the same row. The default port for any other ASCII string is
++++ * null.
++++ *
++++ * @see https://url.spec.whatwg.org/#url-miscellaneous
++++ * @param scheme
++++ * @return If scheme is a special scheme
++++ */
++++ada_really_inline constexpr bool is_special(std::string_view scheme);
++++
++++/**
++++ * A special scheme is an ASCII string that is listed in the first column of the
++++ * following table. The default port for a special scheme is listed in the
++++ * second column on the same row. The default port for any other ASCII string is
++++ * null.
++++ *
++++ * @see https://url.spec.whatwg.org/#url-miscellaneous
++++ * @param scheme
++++ * @return The special port
++++ */
++++constexpr uint16_t get_special_port(std::string_view scheme) noexcept;
++++
++++/**
++++ * Returns the port number of a special scheme.
++++ * @see https://url.spec.whatwg.org/#special-scheme
++++ */
++++constexpr uint16_t get_special_port(ada::scheme::type type) noexcept;
++++/**
++++ * Returns the scheme of an input, or NOT_SPECIAL if it's not a special scheme
++++ * defined by the spec.
++++ */
++++constexpr ada::scheme::type get_scheme_type(std::string_view scheme) noexcept;
++++
++++}  // namespace ada::scheme
++++
++++#endif  // ADA_SCHEME_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..d8e0d3d6f53e64835107709e175f837bdcae00b4
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,45 @@@@@
++++/**
++++ * @file serializers.h
++++ * @brief Definitions for the URL serializers.
++++ */
++++#ifndef ADA_SERIALIZERS_H
++++#define ADA_SERIALIZERS_H
++++
++++#include "ada/common_defs.h"
++++
++++#include <array>
++++#include <optional>
++++#include <string>
++++
++++/**
++++ * @namespace ada::serializers
++++ * @brief Includes the definitions for URL serializers
++++ */
++++namespace ada::serializers {
++++
++++/**
++++ * Finds and returns the longest sequence of 0 values in a ipv6 input.
++++ */
++++void find_longest_sequence_of_ipv6_pieces(
++++    const std::array<uint16_t, 8>& address, size_t& compress,
++++    size_t& compress_length) noexcept;
++++
++++/**
++++ * Serializes an ipv6 address.
++++ * @details An IPv6 address is a 128-bit unsigned integer that identifies a
++++ * network address.
++++ * @see https://url.spec.whatwg.org/#concept-ipv6-serializer
++++ */
++++std::string ipv6(const std::array<uint16_t, 8>& address) noexcept;
++++
++++/**
++++ * Serializes an ipv4 address.
++++ * @details An IPv4 address is a 32-bit unsigned integer that identifies a
++++ * network address.
++++ * @see https://url.spec.whatwg.org/#concept-ipv4-serializer
++++ */
++++std::string ipv4(uint64_t address) noexcept;
++++
++++}  // namespace ada::serializers
++++
++++#endif  // ADA_SERIALIZERS_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f02c58ba1891aaf30daa6112cc25fb5eae3cecdc
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,126 @@@@@
++++/**
++++ * @file state.h
++++ * @brief Definitions for the states of the URL state machine.
++++ */
++++#ifndef ADA_STATE_H
++++#define ADA_STATE_H
++++
++++#include "ada/common_defs.h"
++++
++++#include <string>
++++
++++namespace ada {
++++
++++/**
++++ * @see https://url.spec.whatwg.org/#url-parsing
++++ */
++++enum class state {
++++  /**
++++   * @see https://url.spec.whatwg.org/#authority-state
++++   */
++++  AUTHORITY,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#scheme-start-state
++++   */
++++  SCHEME_START,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#scheme-state
++++   */
++++  SCHEME,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#host-state
++++   */
++++  HOST,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#no-scheme-state
++++   */
++++  NO_SCHEME,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#fragment-state
++++   */
++++  FRAGMENT,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#relative-state
++++   */
++++  RELATIVE_SCHEME,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#relative-slash-state
++++   */
++++  RELATIVE_SLASH,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#file-state
++++   */
++++  FILE,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#file-host-state
++++   */
++++  FILE_HOST,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#file-slash-state
++++   */
++++  FILE_SLASH,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#path-or-authority-state
++++   */
++++  PATH_OR_AUTHORITY,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#special-authority-ignore-slashes-state
++++   */
++++  SPECIAL_AUTHORITY_IGNORE_SLASHES,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#special-authority-slashes-state
++++   */
++++  SPECIAL_AUTHORITY_SLASHES,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#special-relative-or-authority-state
++++   */
++++  SPECIAL_RELATIVE_OR_AUTHORITY,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#query-state
++++   */
++++  QUERY,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#path-state
++++   */
++++  PATH,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#path-start-state
++++   */
++++  PATH_START,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#cannot-be-a-base-url-path-state
++++   */
++++  OPAQUE_PATH,
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#port-state
++++   */
++++  PORT,
++++};
++++
++++/**
++++ * Stringify a URL state machine state.
++++ */
++++ada_warn_unused std::string to_string(ada::state s);
++++
++++}  // namespace ada
++++
++++#endif  // ADA_STATE_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7bbbd8fe39c9872da3c5b7f2022f0ce2073e0735
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,29 @@@@@
++++/**
++++ * @file unicode-inl.h
++++ * @brief Definitions for unicode operations.
++++ */
++++#ifndef ADA_UNICODE_INL_H
++++#define ADA_UNICODE_INL_H
++++#include <algorithm>
++++#include "ada/unicode.h"
++++
++++/**
++++ * Unicode operations. These functions are not part of our public API and may
++++ * change at any time.
++++ *
++++ * private
++++ * @namespace ada::unicode
++++ * @brief Includes the declarations for unicode operations
++++ */
++++namespace ada::unicode {
++++ada_really_inline size_t percent_encode_index(const std::string_view input,
++++                                              const uint8_t character_set[]) {
++++  return std::distance(
++++      input.begin(),
++++      std::find_if(input.begin(), input.end(), [character_set](const char c) {
++++        return character_sets::bit_at(character_set, c);
++++      }));
++++}
++++}  // namespace ada::unicode
++++
++++#endif  // ADA_UNICODE_INL_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..198109819764e703080446230a91673c7cc6542d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,226 @@@@@
++++/**
++++ * @file unicode.h
++++ * @brief Definitions for all unicode specific functions.
++++ */
++++#ifndef ADA_UNICODE_H
++++#define ADA_UNICODE_H
++++
++++#include "ada/common_defs.h"
++++#include "ada/ada_idna.h"
++++
++++#include <string>
++++#include <optional>
++++
++++/**
++++ * Unicode operations. These functions are not part of our public API and may
++++ * change at any time.
++++ *
++++ * @private
++++ * @namespace ada::unicode
++++ * @brief Includes the definitions for unicode operations
++++ */
++++namespace ada::unicode {
++++
++++/**
++++ * @private
++++ * We receive a UTF-8 string representing a domain name.
++++ * If the string is percent encoded, we apply percent decoding.
++++ *
++++ * Given a domain, we need to identify its labels.
++++ * They are separated by label-separators:
++++ *
++++ * U+002E (.) FULL STOP
++++ * U+FF0E FULLWIDTH FULL STOP
++++ * U+3002 IDEOGRAPHIC FULL STOP
++++ * U+FF61 HALFWIDTH IDEOGRAPHIC FULL STOP
++++ *
++++ * They are all mapped to U+002E.
++++ *
++++ * We process each label into a string that should not exceed 63 octets.
++++ * If the string is already punycode (starts with "xn--"), then we must
++++ * scan it to look for unallowed code points.
++++ * Otherwise, if the string is not pure ASCII, we need to transcode it
++++ * to punycode by following RFC 3454 which requires us to
++++ * - Map characters  (see section 3),
++++ * - Normalize (see section 4),
++++ * - Reject forbidden characters,
++++ * - Check for right-to-left characters and if so, check all requirements (see
++++ * section 6),
++++ * - Optionally reject based on unassigned code points (section 7).
++++ *
++++ * The Unicode standard provides a table of code points with a mapping, a list
++++ * of forbidden code points and so forth. This table is subject to change and
++++ * will vary based on the implementation. For Unicode 15, the table is at
++++ * https://www.unicode.org/Public/idna/15.0.0/IdnaMappingTable.txt
++++ * If you use ICU, they parse this table and map it to code using a Python
++++ * script.
++++ *
++++ * The resulting strings should not exceed 255 octets according to RFC 1035
++++ * section 2.3.4. ICU checks for label size and domain size, but these errors
++++ * are ignored.
++++ *
++++ * @see https://url.spec.whatwg.org/#concept-domain-to-ascii
++++ *
++++ */
++++bool to_ascii(std::optional<std::string>& out, std::string_view plain,
++++              size_t first_percent);
++++
++++/**
++++ * @private
++++ * Checks if the input has tab or newline characters.
++++ *
++++ * @attention The has_tabs_or_newline function is a bottleneck and it is simple
++++ * enough that compilers like GCC can 'autovectorize it'.
++++ */
++++ada_really_inline bool has_tabs_or_newline(
++++    std::string_view user_input) noexcept;
++++
++++/**
++++ * @private
++++ * Checks if the input is a forbidden host code point.
++++ * @see https://url.spec.whatwg.org/#forbidden-host-code-point
++++ */
++++ada_really_inline constexpr bool is_forbidden_host_code_point(char c) noexcept;
++++
++++/**
++++ * @private
++++ * Checks if the input contains a forbidden domain code point.
++++ * @see https://url.spec.whatwg.org/#forbidden-domain-code-point
++++ */
++++ada_really_inline constexpr bool contains_forbidden_domain_code_point(
++++    const char* input, size_t length) noexcept;
++++
++++/**
++++ * @private
++++ * Checks if the input contains a forbidden domain code point in which case
++++ * the first bit is set to 1. If the input contains an upper case ASCII letter,
++++ * then the second bit is set to 1.
++++ * @see https://url.spec.whatwg.org/#forbidden-domain-code-point
++++ */
++++ada_really_inline constexpr uint8_t
++++contains_forbidden_domain_code_point_or_upper(const char* input,
++++                                              size_t length) noexcept;
++++
++++/**
++++ * @private
++++ * Checks if the input is a forbidden domain code point.
++++ * @see https://url.spec.whatwg.org/#forbidden-domain-code-point
++++ */
++++ada_really_inline constexpr bool is_forbidden_domain_code_point(
++++    char c) noexcept;
++++
++++/**
++++ * @private
++++ * Checks if the input is alphanumeric, '+', '-' or '.'
++++ */
++++ada_really_inline constexpr bool is_alnum_plus(char c) noexcept;
++++
++++/**
++++ * @private
++++ * @details An ASCII hex digit is an ASCII upper hex digit or ASCII lower hex
++++ * digit. An ASCII upper hex digit is an ASCII digit or a code point in the
++++ * range U+0041 (A) to U+0046 (F), inclusive. An ASCII lower hex digit is an
++++ * ASCII digit or a code point in the range U+0061 (a) to U+0066 (f), inclusive.
++++ */
++++ada_really_inline constexpr bool is_ascii_hex_digit(char c) noexcept;
++++
++++/**
++++ * @private
++++ * Checks if the input is a C0 control or space character.
++++ *
++++ * @details A C0 control or space is a C0 control or U+0020 SPACE.
++++ * A C0 control is a code point in the range U+0000 NULL to U+001F INFORMATION
++++ * SEPARATOR ONE, inclusive.
++++ */
++++ada_really_inline constexpr bool is_c0_control_or_space(char c) noexcept;
++++
++++/**
++++ * @private
++++ * Checks if the input is a ASCII tab or newline character.
++++ *
++++ * @details An ASCII tab or newline is U+0009 TAB, U+000A LF, or U+000D CR.
++++ */
++++ada_really_inline constexpr bool is_ascii_tab_or_newline(char c) noexcept;
++++
++++/**
++++ * @private
++++ * @details A double-dot path segment must be ".." or an ASCII case-insensitive
++++ * match for ".%2e", "%2e.", or "%2e%2e".
++++ */
++++ada_really_inline ada_constexpr bool is_double_dot_path_segment(
++++    std::string_view input) noexcept;
++++
++++/**
++++ * @private
++++ * @details A single-dot path segment must be "." or an ASCII case-insensitive
++++ * match for "%2e".
++++ */
++++ada_really_inline constexpr bool is_single_dot_path_segment(
++++    std::string_view input) noexcept;
++++
++++/**
++++ * @private
++++ * @details ipv4 character might contain 0-9 or a-f character ranges.
++++ */
++++ada_really_inline constexpr bool is_lowercase_hex(char c) noexcept;
++++
++++/**
++++ * @private
++++ * @details Convert hex to binary. Caller is responsible to ensure that
++++ * the parameter is an hexadecimal digit (0-9, A-F, a-f).
++++ */
++++ada_really_inline unsigned constexpr convert_hex_to_binary(char c) noexcept;
++++
++++/**
++++ * @private
++++ * first_percent should be  = input.find('%')
++++ *
++++ * @todo It would be faster as noexcept maybe, but it could be unsafe since.
++++ * @author Node.js
++++ * @see https://github.com/nodejs/node/blob/main/src/node_url.cc#L245
++++ * @see https://encoding.spec.whatwg.org/#utf-8-decode-without-bom
++++ */
++++std::string percent_decode(std::string_view input, size_t first_percent);
++++
++++/**
++++ * @private
++++ * Returns a percent-encoding string whether percent encoding was needed or not.
++++ * @see https://github.com/nodejs/node/blob/main/src/node_url.cc#L226
++++ */
++++std::string percent_encode(std::string_view input,
++++                           const uint8_t character_set[]);
++++/**
++++ * @private
++++ * Returns a percent-encoded string version of input, while starting the percent
++++ * encoding at the provided index.
++++ * @see https://github.com/nodejs/node/blob/main/src/node_url.cc#L226
++++ */
++++std::string percent_encode(std::string_view input,
++++                           const uint8_t character_set[], size_t index);
++++/**
++++ * @private
++++ * Returns true if percent encoding was needed, in which case, we store
++++ * the percent-encoded content in 'out'. If the boolean 'append' is set to
++++ * true, the content is appended to 'out'.
++++ * If percent encoding is not needed, out is left unchanged.
++++ * @see https://github.com/nodejs/node/blob/main/src/node_url.cc#L226
++++ */
++++template <bool append>
++++bool percent_encode(std::string_view input, const uint8_t character_set[],
++++                    std::string& out);
++++/**
++++ * @private
++++ * Returns the index at which percent encoding should start, or (equivalently),
++++ * the length of the prefix that does not require percent encoding.
++++ */
++++ada_really_inline size_t percent_encode_index(std::string_view input,
++++                                              const uint8_t character_set[]);
++++/**
++++ * @private
++++ * Lowers the string in-place, assuming that the content is ASCII.
++++ * Return true if the content was ASCII.
++++ */
++++constexpr bool to_lower_ascii(char* input, size_t length) noexcept;
++++}  // namespace ada::unicode
++++
++++#endif  // ADA_UNICODE_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6b115893d3787d999e2b55c8d8af915961144014
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,253 @@@@@
++++/**
++++ * @file url-inl.h
++++ * @brief Definitions for the URL
++++ */
++++#ifndef ADA_URL_INL_H
++++#define ADA_URL_INL_H
++++
++++#include "ada/checkers.h"
++++#include "ada/url.h"
++++#include "ada/url_components.h"
++++
++++#include <optional>
++++#include <string>
++++#if ADA_REGULAR_VISUAL_STUDIO
++++#include <intrin.h>
++++#endif  // ADA_REGULAR_VISUAL_STUDIO
++++
++++namespace ada {
++++[[nodiscard]] ada_really_inline bool url::has_credentials() const noexcept {
++++  return !username.empty() || !password.empty();
++++}
++++[[nodiscard]] ada_really_inline bool url::has_port() const noexcept {
++++  return port.has_value();
++++}
++++[[nodiscard]] inline bool url::cannot_have_credentials_or_port() const {
++++  return !host.has_value() || host.value().empty() ||
++++         type == ada::scheme::type::FILE;
++++}
++++[[nodiscard]] inline bool url::has_empty_hostname() const noexcept {
++++  if (!host.has_value()) {
++++    return false;
++++  }
++++  return host.value().empty();
++++}
++++[[nodiscard]] inline bool url::has_hostname() const noexcept {
++++  return host.has_value();
++++}
++++inline std::ostream &operator<<(std::ostream &out, const ada::url &u) {
++++  return out << u.to_string();
++++}
++++
++++[[nodiscard]] size_t url::get_pathname_length() const noexcept {
++++  return path.size();
++++}
++++
++++[[nodiscard]] ada_really_inline ada::url_components url::get_components()
++++    const noexcept {
++++  url_components out{};
++++
++++  // protocol ends with ':'. for example: "https:"
++++  out.protocol_end = uint32_t(get_protocol().size());
++++
++++  // Trailing index is always the next character of the current one.
++++  size_t running_index = out.protocol_end;
++++
++++  if (host.has_value()) {
++++    // 2 characters for "//" and 1 character for starting index
++++    out.host_start = out.protocol_end + 2;
++++
++++    if (has_credentials()) {
++++      out.username_end = uint32_t(out.host_start + username.size());
++++
++++      out.host_start += uint32_t(username.size());
++++
++++      if (!password.empty()) {
++++        out.host_start += uint32_t(password.size() + 1);
++++      }
++++
++++      out.host_end = uint32_t(out.host_start + host.value().size());
++++    } else {
++++      out.username_end = out.host_start;
++++
++++      // Host does not start with "@" if it does not include credentials.
++++      out.host_end = uint32_t(out.host_start + host.value().size()) - 1;
++++    }
++++
++++    running_index = out.host_end + 1;
++++  } else {
++++    // Update host start and end date to the same index, since it does not
++++    // exist.
++++    out.host_start = out.protocol_end;
++++    out.host_end = out.host_start;
++++
++++    if (!has_opaque_path && checkers::begins_with(path, "//")) {
++++      // If url's host is null, url does not have an opaque path, url's path's
++++      // size is greater than 1, and url's path[0] is the empty string, then
++++      // append U+002F (/) followed by U+002E (.) to output.
++++      running_index = out.protocol_end + 2;
++++    } else {
++++      running_index = out.protocol_end;
++++    }
++++  }
++++
++++  if (port.has_value()) {
++++    out.port = *port;
++++    running_index += helpers::fast_digit_count(*port) + 1;  // Port omits ':'
++++  }
++++
++++  out.pathname_start = uint32_t(running_index);
++++
++++  running_index += path.size();
++++
++++  if (query.has_value()) {
++++    out.search_start = uint32_t(running_index);
++++    running_index += get_search().size();
++++    if (get_search().empty()) {
++++      running_index++;
++++    }
++++  }
++++
++++  if (hash.has_value()) {
++++    out.hash_start = uint32_t(running_index);
++++  }
++++
++++  return out;
++++}
++++
++++inline void url::update_base_hostname(std::string_view input) { host = input; }
++++
++++inline void url::update_unencoded_base_hash(std::string_view input) {
++++  // We do the percent encoding
++++  hash = unicode::percent_encode(input,
++++                                 ada::character_sets::FRAGMENT_PERCENT_ENCODE);
++++}
++++
++++inline void url::update_base_search(std::string_view input,
++++                                    const uint8_t query_percent_encode_set[]) {
++++  query = ada::unicode::percent_encode(input, query_percent_encode_set);
++++}
++++
++++inline void url::update_base_search(std::optional<std::string> input) {
++++  query = input;
++++}
++++
++++inline void url::update_base_pathname(const std::string_view input) {
++++  path = input;
++++}
++++
++++inline void url::update_base_username(const std::string_view input) {
++++  username = input;
++++}
++++
++++inline void url::update_base_password(const std::string_view input) {
++++  password = input;
++++}
++++
++++inline void url::update_base_port(std::optional<uint16_t> input) {
++++  port = input;
++++}
++++
++++inline void url::clear_pathname() { path.clear(); }
++++
++++inline void url::clear_search() { query = std::nullopt; }
++++
++++[[nodiscard]] inline bool url::has_hash() const noexcept {
++++  return hash.has_value();
++++}
++++
++++[[nodiscard]] inline bool url::has_search() const noexcept {
++++  return query.has_value();
++++}
++++
++++inline void url::set_protocol_as_file() { type = ada::scheme::type::FILE; }
++++
++++inline void url::set_scheme(std::string &&new_scheme) noexcept {
++++  type = ada::scheme::get_scheme_type(new_scheme);
++++  // We only move the 'scheme' if it is non-special.
++++  if (!is_special()) {
++++    non_special_scheme = std::move(new_scheme);
++++  }
++++}
++++
++++inline void url::copy_scheme(ada::url &&u) noexcept {
++++  non_special_scheme = u.non_special_scheme;
++++  type = u.type;
++++}
++++
++++inline void url::copy_scheme(const ada::url &u) {
++++  non_special_scheme = u.non_special_scheme;
++++  type = u.type;
++++}
++++
++++[[nodiscard]] ada_really_inline std::string url::get_href() const noexcept {
++++  std::string output = get_protocol();
++++
++++  if (host.has_value()) {
++++    output += "//";
++++    if (has_credentials()) {
++++      output += username;
++++      if (!password.empty()) {
++++        output += ":" + get_password();
++++      }
++++      output += "@";
++++    }
++++    output += host.value();
++++    if (port.has_value()) {
++++      output += ":" + get_port();
++++    }
++++  } else if (!has_opaque_path && checkers::begins_with(path, "//")) {
++++    // If url's host is null, url does not have an opaque path, url's path's
++++    // size is greater than 1, and url's path[0] is the empty string, then
++++    // append U+002F (/) followed by U+002E (.) to output.
++++    output += "/.";
++++  }
++++  output += path;
++++  if (query.has_value()) {
++++    output += "?" + query.value();
++++  }
++++  if (hash.has_value()) {
++++    output += "#" + hash.value();
++++  }
++++  return output;
++++}
++++
++++ada_really_inline size_t url::parse_port(std::string_view view,
++++                                         bool check_trailing_content) noexcept {
++++  ada_log("parse_port('", view, "') ", view.size());
++++  if (!view.empty() && view[0] == '-') {
++++    ada_log("parse_port: view[0] == '0' && view.size() > 1");
++++    is_valid = false;
++++    return 0;
++++  }
++++  uint16_t parsed_port{};
++++  auto r = std::from_chars(view.data(), view.data() + view.size(), parsed_port);
++++  if (r.ec == std::errc::result_out_of_range) {
++++    ada_log("parse_port: r.ec == std::errc::result_out_of_range");
++++    is_valid = false;
++++    return 0;
++++  }
++++  ada_log("parse_port: ", parsed_port);
++++  const size_t consumed = size_t(r.ptr - view.data());
++++  ada_log("parse_port: consumed ", consumed);
++++  if (check_trailing_content) {
++++    is_valid &=
++++        (consumed == view.size() || view[consumed] == '/' ||
++++         view[consumed] == '?' || (is_special() && view[consumed] == '\\'));
++++  }
++++  ada_log("parse_port: is_valid = ", is_valid);
++++  if (is_valid) {
++++    // scheme_default_port can return 0, and we should allow 0 as a base port.
++++    auto default_port = scheme_default_port();
++++    bool is_port_valid = (default_port == 0 && parsed_port == 0) ||
++++                         (default_port != parsed_port);
++++    port = (r.ec == std::errc() && is_port_valid)
++++               ? std::optional<uint16_t>(parsed_port)
++++               : std::nullopt;
++++  }
++++  return consumed;
++++}
++++
++++}  // namespace ada
++++
++++#endif  // ADA_URL_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1418d9bb70b39e44df880bcc23aebcd89fa6900c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,417 @@@@@
++++/**
++++ * @file url.h
++++ * @brief Declaration for the URL
++++ */
++++#ifndef ADA_URL_H
++++#define ADA_URL_H
++++
++++#include <algorithm>
++++#include <charconv>
++++#include <iostream>
++++#include <optional>
++++#include <string>
++++#include <string_view>
++++
++++#include "ada/checkers.h"
++++#include "ada/common_defs.h"
++++#include "ada/log.h"
++++#include "ada/scheme.h"
++++#include "ada/serializers.h"
++++#include "ada/unicode.h"
++++#include "ada/url_base.h"
++++#include "ada/url_components.h"
++++
++++namespace ada {
++++
++++/**
++++ * @brief Generic URL struct reliant on std::string instantiation.
++++ *
++++ * @details To disambiguate from a valid URL string it can also be referred to
++++ * as a URL record. A URL is a struct that represents a universal identifier.
++++ * Unlike the url_aggregator, the ada::url represents the different components
++++ * of a parsed URL as independent std::string instances. This makes the
++++ * structure heavier and more reliant on memory allocations. When getting
++++ * components from the parsed URL, a new std::string is typically constructed.
++++ *
++++ * @see https://url.spec.whatwg.org/#url-representation
++++ */
++++struct url : url_base {
++++  url() = default;
++++  url(const url &u) = default;
++++  url(url &&u) noexcept = default;
++++  url &operator=(url &&u) noexcept = default;
++++  url &operator=(const url &u) = default;
++++  ~url() override = default;
++++
++++  /**
++++   * @private
++++   * A URL's username is an ASCII string identifying a username. It is initially
++++   * the empty string.
++++   */
++++  std::string username{};
++++
++++  /**
++++   * @private
++++   * A URL's password is an ASCII string identifying a password. It is initially
++++   * the empty string.
++++   */
++++  std::string password{};
++++
++++  /**
++++   * @private
++++   * A URL's host is null or a host. It is initially null.
++++   */
++++  std::optional<std::string> host{};
++++
++++  /**
++++   * @private
++++   * A URL's port is either null or a 16-bit unsigned integer that identifies a
++++   * networking port. It is initially null.
++++   */
++++  std::optional<uint16_t> port{};
++++
++++  /**
++++   * @private
++++   * A URL's path is either an ASCII string or a list of zero or more ASCII
++++   * strings, usually identifying a location.
++++   */
++++  std::string path{};
++++
++++  /**
++++   * @private
++++   * A URL's query is either null or an ASCII string. It is initially null.
++++   */
++++  std::optional<std::string> query{};
++++
++++  /**
++++   * @private
++++   * A URL's fragment is either null or an ASCII string that can be used for
++++   * further processing on the resource the URL's other components identify. It
++++   * is initially null.
++++   */
++++  std::optional<std::string> hash{};
++++
++++  /** @return true if it has an host but it is the empty string */
++++  [[nodiscard]] inline bool has_empty_hostname() const noexcept;
++++  /** @return true if the URL has a (non default) port */
++++  [[nodiscard]] inline bool has_port() const noexcept;
++++  /** @return true if it has a host (included an empty host) */
++++  [[nodiscard]] inline bool has_hostname() const noexcept;
++++  [[nodiscard]] bool has_valid_domain() const noexcept override;
++++
++++  /**
++++   * Returns a JSON string representation of this URL.
++++   */
++++  [[nodiscard]] std::string to_string() const override;
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#dom-url-href
++++   * @see https://url.spec.whatwg.org/#concept-url-serializer
++++   */
++++  [[nodiscard]] ada_really_inline std::string get_href() const noexcept;
++++
++++  /**
++++   * The origin getter steps are to return the serialization of this's URL's
++++   * origin. [HTML]
++++   * @return a newly allocated string.
++++   * @see https://url.spec.whatwg.org/#concept-url-origin
++++   */
++++  [[nodiscard]] std::string get_origin() const noexcept override;
++++
++++  /**
++++   * The protocol getter steps are to return this's URL's scheme, followed by
++++   * U+003A (:).
++++   * @return a newly allocated string.
++++   * @see https://url.spec.whatwg.org/#dom-url-protocol
++++   */
++++  [[nodiscard]] std::string get_protocol() const noexcept;
++++
++++  /**
++++   * Return url's host, serialized, followed by U+003A (:) and url's port,
++++   * serialized.
++++   * When there is no host, this function returns the empty string.
++++   * @return a newly allocated string.
++++   * @see https://url.spec.whatwg.org/#dom-url-host
++++   */
++++  [[nodiscard]] std::string get_host() const noexcept;
++++
++++  /**
++++   * Return this's URL's host, serialized.
++++   * When there is no host, this function returns the empty string.
++++   * @return a newly allocated string.
++++   * @see https://url.spec.whatwg.org/#dom-url-hostname
++++   */
++++  [[nodiscard]] std::string get_hostname() const noexcept;
++++
++++  /**
++++   * The pathname getter steps are to return the result of URL path serializing
++++   * this's URL.
++++   * @return a newly allocated string.
++++   * @see https://url.spec.whatwg.org/#dom-url-pathname
++++   */
++++  [[nodiscard]] std::string_view get_pathname() const noexcept;
++++
++++  /**
++++   * Compute the pathname length in bytes without instantiating a view or a
++++   * string.
++++   * @return size of the pathname in bytes
++++   * @see https://url.spec.whatwg.org/#dom-url-pathname
++++   */
++++  [[nodiscard]] ada_really_inline size_t get_pathname_length() const noexcept;
++++
++++  /**
++++   * Return U+003F (?), followed by this's URL's query.
++++   * @return a newly allocated string.
++++   * @see https://url.spec.whatwg.org/#dom-url-search
++++   */
++++  [[nodiscard]] std::string get_search() const noexcept;
++++
++++  /**
++++   * The username getter steps are to return this's URL's username.
++++   * @return a constant reference to the underlying string.
++++   * @see https://url.spec.whatwg.org/#dom-url-username
++++   */
++++  [[nodiscard]] const std::string &get_username() const noexcept;
++++
++++  /**
++++   * @return Returns true on successful operation.
++++   * @see https://url.spec.whatwg.org/#dom-url-username
++++   */
++++  bool set_username(std::string_view input);
++++
++++  /**
++++   * @return Returns true on success.
++++   * @see https://url.spec.whatwg.org/#dom-url-password
++++   */
++++  bool set_password(std::string_view input);
++++
++++  /**
++++   * @return Returns true on success.
++++   * @see https://url.spec.whatwg.org/#dom-url-port
++++   */
++++  bool set_port(std::string_view input);
++++
++++  /**
++++   * This function always succeeds.
++++   * @see https://url.spec.whatwg.org/#dom-url-hash
++++   */
++++  void set_hash(std::string_view input);
++++
++++  /**
++++   * This function always succeeds.
++++   * @see https://url.spec.whatwg.org/#dom-url-search
++++   */
++++  void set_search(std::string_view input);
++++
++++  /**
++++   * @return Returns true on success.
++++   * @see https://url.spec.whatwg.org/#dom-url-search
++++   */
++++  bool set_pathname(std::string_view input);
++++
++++  /**
++++   * @return Returns true on success.
++++   * @see https://url.spec.whatwg.org/#dom-url-host
++++   */
++++  bool set_host(std::string_view input);
++++
++++  /**
++++   * @return Returns true on success.
++++   * @see https://url.spec.whatwg.org/#dom-url-hostname
++++   */
++++  bool set_hostname(std::string_view input);
++++
++++  /**
++++   * @return Returns true on success.
++++   * @see https://url.spec.whatwg.org/#dom-url-protocol
++++   */
++++  bool set_protocol(std::string_view input);
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#dom-url-href
++++   */
++++  bool set_href(std::string_view input);
++++
++++  /**
++++   * The password getter steps are to return this's URL's password.
++++   * @return a constant reference to the underlying string.
++++   * @see https://url.spec.whatwg.org/#dom-url-password
++++   */
++++  [[nodiscard]] const std::string &get_password() const noexcept;
++++
++++  /**
++++   * Return this's URL's port, serialized.
++++   * @return a newly constructed string representing the port.
++++   * @see https://url.spec.whatwg.org/#dom-url-port
++++   */
++++  [[nodiscard]] std::string get_port() const noexcept;
++++
++++  /**
++++   * Return U+0023 (#), followed by this's URL's fragment.
++++   * @return a newly constructed string representing the hash.
++++   * @see https://url.spec.whatwg.org/#dom-url-hash
++++   */
++++  [[nodiscard]] std::string get_hash() const noexcept;
++++
++++  /**
++++   * A URL includes credentials if its username or password is not the empty
++++   * string.
++++   */
++++  [[nodiscard]] ada_really_inline bool has_credentials() const noexcept;
++++
++++  /**
++++   * Useful for implementing efficient serialization for the URL.
++++   *
++++   * https://user:pass@example.com:1234/foo/bar?baz#quux
++++   *       |     |    |          | ^^^^|       |   |
++++   *       |     |    |          | |   |       |   `----- hash_start
++++   *       |     |    |          | |   |       `--------- search_start
++++   *       |     |    |          | |   `----------------- pathname_start
++++   *       |     |    |          | `--------------------- port
++++   *       |     |    |          `----------------------- host_end
++++   *       |     |    `---------------------------------- host_start
++++   *       |     `--------------------------------------- username_end
++++   *       `--------------------------------------------- protocol_end
++++   *
++++   * Inspired after servo/url
++++   *
++++   * @return a newly constructed component.
++++   *
++++   * @see
++++   * https://github.com/servo/rust-url/blob/b65a45515c10713f6d212e6726719a020203cc98/url/src/quirks.rs#L31
++++   */
++++  [[nodiscard]] ada_really_inline ada::url_components get_components()
++++      const noexcept;
++++  /** @return true if the URL has a hash component */
++++  [[nodiscard]] inline bool has_hash() const noexcept override;
++++  /** @return true if the URL has a search component */
++++  [[nodiscard]] inline bool has_search() const noexcept override;
++++
++++ private:
++++  friend ada::url ada::parser::parse_url<ada::url>(std::string_view,
++++                                                   const ada::url *);
++++  friend ada::url_aggregator ada::parser::parse_url<ada::url_aggregator>(
++++      std::string_view, const ada::url_aggregator *);
++++  friend void ada::helpers::strip_trailing_spaces_from_opaque_path<ada::url>(
++++      ada::url &url) noexcept;
++++
++++  friend ada::url ada::parser::parse_url_impl<ada::url, true>(std::string_view,
++++                                                              const ada::url *);
++++  friend ada::url_aggregator ada::parser::parse_url_impl<
++++      ada::url_aggregator, true>(std::string_view, const ada::url_aggregator *);
++++
++++  inline void update_unencoded_base_hash(std::string_view input);
++++  inline void update_base_hostname(std::string_view input);
++++  inline void update_base_search(std::string_view input);
++++  inline void update_base_search(std::string_view input,
++++                                 const uint8_t query_percent_encode_set[]);
++++  inline void update_base_search(std::optional<std::string> input);
++++  inline void update_base_pathname(std::string_view input);
++++  inline void update_base_username(std::string_view input);
++++  inline void update_base_password(std::string_view input);
++++  inline void update_base_port(std::optional<uint16_t> input);
++++
++++  /**
++++   * Sets the host or hostname according to override condition.
++++   * Return true on success.
++++   * @see https://url.spec.whatwg.org/#hostname-state
++++   */
++++  template <bool override_hostname = false>
++++  bool set_host_or_hostname(std::string_view input);
++++
++++  /**
++++   * Return true on success.
++++   * @see https://url.spec.whatwg.org/#concept-ipv4-parser
++++   */
++++  [[nodiscard]] bool parse_ipv4(std::string_view input);
++++
++++  /**
++++   * Return true on success.
++++   * @see https://url.spec.whatwg.org/#concept-ipv6-parser
++++   */
++++  [[nodiscard]] bool parse_ipv6(std::string_view input);
++++
++++  /**
++++   * Return true on success.
++++   * @see https://url.spec.whatwg.org/#concept-opaque-host-parser
++++   */
++++  [[nodiscard]] bool parse_opaque_host(std::string_view input);
++++
++++  /**
++++   * A URL's scheme is an ASCII string that identifies the type of URL and can
++++   * be used to dispatch a URL for further processing after parsing. It is
++++   * initially the empty string. We only set non_special_scheme when the scheme
++++   * is non-special, otherwise we avoid constructing string.
++++   *
++++   * Special schemes are stored in ada::scheme::details::is_special_list so we
++++   * typically do not need to store them in each url instance.
++++   */
++++  std::string non_special_scheme{};
++++
++++  /**
++++   * A URL cannot have a username/password/port if its host is null or the empty
++++   * string, or its scheme is "file".
++++   */
++++  [[nodiscard]] inline bool cannot_have_credentials_or_port() const;
++++
++++  ada_really_inline size_t parse_port(
++++      std::string_view view, bool check_trailing_content) noexcept override;
++++
++++  ada_really_inline size_t parse_port(std::string_view view) noexcept override {
++++    return this->parse_port(view, false);
++++  }
++++
++++  /**
++++   * Take the scheme from another URL. The scheme string is copied from the
++++   * provided url.
++++   */
++++  inline void copy_scheme(const ada::url &u);
++++
++++  /**
++++   * Parse the host from the provided input. We assume that
++++   * the input does not contain spaces or tabs. Control
++++   * characters and spaces are not trimmed (they should have
++++   * been removed if needed).
++++   * Return true on success.
++++   * @see https://url.spec.whatwg.org/#host-parsing
++++   */
++++  [[nodiscard]] ada_really_inline bool parse_host(std::string_view input);
++++
++++  template <bool has_state_override = false>
++++  [[nodiscard]] ada_really_inline bool parse_scheme(std::string_view input);
++++
++++  inline void clear_pathname() override;
++++  inline void clear_search() override;
++++  inline void set_protocol_as_file();
++++
++++  /**
++++   * Parse the path from the provided input.
++++   * Return true on success. Control characters not
++++   * trimmed from the ends (they should have
++++   * been removed if needed).
++++   *
++++   * The input is expected to be UTF-8.
++++   *
++++   * @see https://url.spec.whatwg.org/
++++   */
++++  ada_really_inline void parse_path(std::string_view input);
++++
++++  /**
++++   * Set the scheme for this URL. The provided scheme should be a valid
++++   * scheme string, be lower-cased, not contain spaces or tabs. It should
++++   * have no spurious trailing or leading content.
++++   */
++++  inline void set_scheme(std::string &&new_scheme) noexcept;
++++
++++  /**
++++   * Take the scheme from another URL. The scheme string is moved from the
++++   * provided url.
++++   */
++++  inline void copy_scheme(ada::url &&u) noexcept;
++++
++++};  // struct url
++++
++++inline std::ostream &operator<<(std::ostream &out, const ada::url &u);
++++}  // namespace ada
++++
++++#endif  // ADA_URL_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..aa0b367e0277ccef2aea536ebbdb040206b5911d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,928 @@@@@
++++/**
++++ * @file url_aggregator-inl.h
++++ * @brief Inline functions for url aggregator
++++ */
++++#ifndef ADA_URL_AGGREGATOR_INL_H
++++#define ADA_URL_AGGREGATOR_INL_H
++++
++++#include "ada/character_sets.h"
++++#include "ada/character_sets-inl.h"
++++#include "ada/checkers-inl.h"
++++#include "ada/helpers.h"
++++#include "ada/unicode.h"
++++#include "ada/unicode-inl.h"
++++#include "ada/url_aggregator.h"
++++#include "ada/url_components.h"
++++#include "ada/scheme.h"
++++#include "ada/log.h"
++++
++++#include <optional>
++++#include <string_view>
++++
++++namespace ada {
++++
++++inline void url_aggregator::update_base_authority(
++++    std::string_view base_buffer, const ada::url_components &base) {
++++  std::string_view input = base_buffer.substr(
++++      base.protocol_end, base.host_start - base.protocol_end);
++++  ada_log("url_aggregator::update_base_authority ", input);
++++
++++  bool input_starts_with_dash = checkers::begins_with(input, "//");
++++  uint32_t diff = components.host_start - components.protocol_end;
++++
++++  buffer.erase(components.protocol_end,
++++               components.host_start - components.protocol_end);
++++  components.username_end = components.protocol_end;
++++
++++  if (input_starts_with_dash) {
++++    input.remove_prefix(2);
++++    diff += 2;  // add "//"
++++    buffer.insert(components.protocol_end, "//");
++++    components.username_end += 2;
++++  }
++++
++++  size_t password_delimiter = input.find(':');
++++
++++  // Check if input contains both username and password by checking the
++++  // delimiter: ":" A typical input that contains authority would be "user:pass"
++++  if (password_delimiter != std::string_view::npos) {
++++    // Insert both username and password
++++    std::string_view username = input.substr(0, password_delimiter);
++++    std::string_view password = input.substr(password_delimiter + 1);
++++
++++    buffer.insert(components.protocol_end + diff, username);
++++    diff += uint32_t(username.size());
++++    buffer.insert(components.protocol_end + diff, ":");
++++    components.username_end = components.protocol_end + diff;
++++    buffer.insert(components.protocol_end + diff + 1, password);
++++    diff += uint32_t(password.size()) + 1;
++++  } else if (!input.empty()) {
++++    // Insert only username
++++    buffer.insert(components.protocol_end + diff, input);
++++    components.username_end =
++++        components.protocol_end + diff + uint32_t(input.size());
++++    diff += uint32_t(input.size());
++++  }
++++
++++  components.host_start += diff;
++++
++++  if (buffer.size() > base.host_start && buffer[base.host_start] != '@') {
++++    buffer.insert(components.host_start, "@");
++++    diff++;
++++  }
++++  components.host_end += diff;
++++  components.pathname_start += diff;
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start += diff;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start += diff;
++++  }
++++}
++++
++++inline void url_aggregator::update_unencoded_base_hash(std::string_view input) {
++++  ada_log("url_aggregator::update_unencoded_base_hash ", input, " [",
++++          input.size(), " bytes], buffer is '", buffer, "' [", buffer.size(),
++++          " bytes] components.hash_start = ", components.hash_start);
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  if (components.hash_start != url_components::omitted) {
++++    buffer.resize(components.hash_start);
++++  }
++++  components.hash_start = uint32_t(buffer.size());
++++  buffer += "#";
++++  bool encoding_required = unicode::percent_encode<true>(
++++      input, ada::character_sets::FRAGMENT_PERCENT_ENCODE, buffer);
++++  // When encoding_required is false, then buffer is left unchanged, and percent
++++  // encoding was not deemed required.
++++  if (!encoding_required) {
++++    buffer.append(input);
++++  }
++++  ada_log("url_aggregator::update_unencoded_base_hash final buffer is '",
++++          buffer, "' [", buffer.size(), " bytes]");
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++ada_really_inline uint32_t url_aggregator::replace_and_resize(
++++    uint32_t start, uint32_t end, std::string_view input) {
++++  uint32_t current_length = end - start;
++++  uint32_t input_size = uint32_t(input.size());
++++  uint32_t new_difference = input_size - current_length;
++++
++++  if (current_length == 0) {
++++    buffer.insert(start, input);
++++  } else if (input_size == current_length) {
++++    buffer.replace(start, input_size, input);
++++  } else if (input_size < current_length) {
++++    buffer.erase(start, current_length - input_size);
++++    buffer.replace(start, input_size, input);
++++  } else {
++++    buffer.replace(start, current_length, input.substr(0, current_length));
++++    buffer.insert(start + current_length, input.substr(current_length));
++++  }
++++
++++  return new_difference;
++++}
++++
++++inline void url_aggregator::update_base_hostname(const std::string_view input) {
++++  ada_log("url_aggregator::update_base_hostname ", input, " [", input.size(),
++++          " bytes], buffer is '", buffer, "' [", buffer.size(), " bytes]");
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++
++++  // This next line is required for when parsing a URL like `foo://`
++++  add_authority_slashes_if_needed();
++++
++++  bool has_credentials = components.protocol_end + 2 < components.host_start;
++++  uint32_t new_difference =
++++      replace_and_resize(components.host_start, components.host_end, input);
++++
++++  if (has_credentials) {
++++    buffer.insert(components.host_start, "@");
++++    new_difference++;
++++  }
++++  components.host_end += new_difference;
++++  components.pathname_start += new_difference;
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start += new_difference;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start += new_difference;
++++  }
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++[[nodiscard]] ada_really_inline uint32_t
++++url_aggregator::get_pathname_length() const noexcept {
++++  ada_log("url_aggregator::get_pathname_length");
++++  uint32_t ending_index = uint32_t(buffer.size());
++++  if (components.search_start != url_components::omitted) {
++++    ending_index = components.search_start;
++++  } else if (components.hash_start != url_components::omitted) {
++++    ending_index = components.hash_start;
++++  }
++++  return ending_index - components.pathname_start;
++++}
++++
++++[[nodiscard]] ada_really_inline bool url_aggregator::is_at_path()
++++    const noexcept {
++++  return buffer.size() == components.pathname_start;
++++}
++++
++++inline void url_aggregator::update_base_search(std::string_view input) {
++++  ada_log("url_aggregator::update_base_search ", input);
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  if (input.empty()) {
++++    clear_search();
++++    return;
++++  }
++++
++++  if (input[0] == '?') {
++++    input.remove_prefix(1);
++++  }
++++
++++  if (components.hash_start == url_components::omitted) {
++++    if (components.search_start == url_components::omitted) {
++++      components.search_start = uint32_t(buffer.size());
++++      buffer += "?";
++++    } else {
++++      buffer.resize(components.search_start + 1);
++++    }
++++
++++    buffer.append(input);
++++  } else {
++++    if (components.search_start == url_components::omitted) {
++++      components.search_start = components.hash_start;
++++    } else {
++++      buffer.erase(components.search_start,
++++                   components.hash_start - components.search_start);
++++      components.hash_start = components.search_start;
++++    }
++++
++++    buffer.insert(components.search_start, "?");
++++    buffer.insert(components.search_start + 1, input);
++++    components.hash_start += uint32_t(input.size() + 1);  // Do not forget `?`
++++  }
++++
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++inline void url_aggregator::update_base_search(
++++    std::string_view input, const uint8_t query_percent_encode_set[]) {
++++  ada_log("url_aggregator::update_base_search ", input,
++++          " with encoding parameter ", to_string(), "\n", to_diagram());
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++
++++  if (components.hash_start == url_components::omitted) {
++++    if (components.search_start == url_components::omitted) {
++++      components.search_start = uint32_t(buffer.size());
++++      buffer += "?";
++++    } else {
++++      buffer.resize(components.search_start + 1);
++++    }
++++
++++    bool encoding_required =
++++        unicode::percent_encode<true>(input, query_percent_encode_set, buffer);
++++    // When encoding_required is false, then buffer is left unchanged, and
++++    // percent encoding was not deemed required.
++++    if (!encoding_required) {
++++      buffer.append(input);
++++    }
++++  } else {
++++    if (components.search_start == url_components::omitted) {
++++      components.search_start = components.hash_start;
++++    } else {
++++      buffer.erase(components.search_start,
++++                   components.hash_start - components.search_start);
++++      components.hash_start = components.search_start;
++++    }
++++
++++    buffer.insert(components.search_start, "?");
++++    size_t idx =
++++        ada::unicode::percent_encode_index(input, query_percent_encode_set);
++++    if (idx == input.size()) {
++++      buffer.insert(components.search_start + 1, input);
++++      components.hash_start += uint32_t(input.size() + 1);  // Do not forget `?`
++++    } else {
++++      buffer.insert(components.search_start + 1, input, 0, idx);
++++      input.remove_prefix(idx);
++++      // We only create a temporary string if we need percent encoding and
++++      // we attempt to create as small a temporary string as we can.
++++      std::string encoded =
++++          ada::unicode::percent_encode(input, query_percent_encode_set);
++++      buffer.insert(components.search_start + idx + 1, encoded);
++++      components.hash_start +=
++++          uint32_t(encoded.size() + idx + 1);  // Do not forget `?`
++++    }
++++  }
++++
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++inline void url_aggregator::update_base_pathname(const std::string_view input) {
++++  ada_log("url_aggregator::update_base_pathname '", input, "' [", input.size(),
++++          " bytes] \n", to_diagram());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  ADA_ASSERT_TRUE(validate());
++++
++++  const bool begins_with_dashdash = checkers::begins_with(input, "//");
++++  if (!begins_with_dashdash && has_dash_dot()) {
++++    ada_log("url_aggregator::update_base_pathname has /.: \n", to_diagram());
++++    // We must delete the ./
++++    delete_dash_dot();
++++  }
++++
++++  if (begins_with_dashdash && !has_opaque_path && !has_authority() &&
++++      !has_dash_dot()) {
++++    // If url's host is null, url does not have an opaque path, url's path's
++++    // size is greater than 1, then append U+002F (/) followed by U+002E (.) to
++++    // output.
++++    buffer.insert(components.pathname_start, "/.");
++++    components.pathname_start += 2;
++++  }
++++
++++  uint32_t difference = replace_and_resize(
++++      components.pathname_start,
++++      components.pathname_start + get_pathname_length(), input);
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start += difference;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start += difference;
++++  }
++++  ada_log("url_aggregator::update_base_pathname end '", input, "' [",
++++          input.size(), " bytes] \n", to_diagram());
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++inline void url_aggregator::append_base_pathname(const std::string_view input) {
++++  ada_log("url_aggregator::append_base_pathname ", input, " ", to_string(),
++++          "\n", to_diagram());
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++#if ADA_DEVELOPMENT_CHECKS
++++  // computing the expected password.
++++  std::string path_expected(get_pathname());
++++  path_expected.append(input);
++++#endif  // ADA_DEVELOPMENT_CHECKS
++++  uint32_t ending_index = uint32_t(buffer.size());
++++  if (components.search_start != url_components::omitted) {
++++    ending_index = components.search_start;
++++  } else if (components.hash_start != url_components::omitted) {
++++    ending_index = components.hash_start;
++++  }
++++  buffer.insert(ending_index, input);
++++
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start += uint32_t(input.size());
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start += uint32_t(input.size());
++++  }
++++#if ADA_DEVELOPMENT_CHECKS
++++  std::string path_after = std::string(get_pathname());
++++  ADA_ASSERT_EQUAL(
++++      path_expected, path_after,
++++      "append_base_pathname problem after inserting " + std::string(input));
++++#endif  // ADA_DEVELOPMENT_CHECKS
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++inline void url_aggregator::update_base_username(const std::string_view input) {
++++  ada_log("url_aggregator::update_base_username '", input, "' ", to_string(),
++++          "\n", to_diagram());
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++
++++  add_authority_slashes_if_needed();
++++
++++  bool has_password = has_non_empty_password();
++++  bool host_starts_with_at = buffer.size() > components.host_start &&
++++                             buffer[components.host_start] == '@';
++++  uint32_t diff = replace_and_resize(components.protocol_end + 2,
++++                                     components.username_end, input);
++++
++++  components.username_end += diff;
++++  components.host_start += diff;
++++
++++  if (!input.empty() && !host_starts_with_at) {
++++    buffer.insert(components.host_start, "@");
++++    diff++;
++++  } else if (input.empty() && host_starts_with_at && !has_password) {
++++    // Input is empty, there is no password, and we need to remove "@" from
++++    // hostname
++++    buffer.erase(components.host_start, 1);
++++    diff--;
++++  }
++++
++++  components.host_end += diff;
++++  components.pathname_start += diff;
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start += diff;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start += diff;
++++  }
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++inline void url_aggregator::append_base_username(const std::string_view input) {
++++  ada_log("url_aggregator::append_base_username ", input);
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++#if ADA_DEVELOPMENT_CHECKS
++++  // computing the expected password.
++++  std::string username_expected(get_username());
++++  username_expected.append(input);
++++#endif  // ADA_DEVELOPMENT_CHECKS
++++  add_authority_slashes_if_needed();
++++
++++  // If input is empty, do nothing.
++++  if (input.empty()) {
++++    return;
++++  }
++++
++++  uint32_t difference = uint32_t(input.size());
++++  buffer.insert(components.username_end, input);
++++  components.username_end += difference;
++++  components.host_start += difference;
++++
++++  if (buffer[components.host_start] != '@' &&
++++      components.host_start != components.host_end) {
++++    buffer.insert(components.host_start, "@");
++++    difference++;
++++  }
++++
++++  components.host_end += difference;
++++  components.pathname_start += difference;
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start += difference;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start += difference;
++++  }
++++#if ADA_DEVELOPMENT_CHECKS
++++  std::string username_after(get_username());
++++  ADA_ASSERT_EQUAL(
++++      username_expected, username_after,
++++      "append_base_username problem after inserting " + std::string(input));
++++#endif  // ADA_DEVELOPMENT_CHECKS
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++inline void url_aggregator::clear_password() {
++++  ada_log("url_aggregator::clear_password ", to_string(), "\n", to_diagram());
++++  ADA_ASSERT_TRUE(validate());
++++  if (!has_password()) {
++++    return;
++++  }
++++
++++  uint32_t diff = components.host_start - components.username_end;
++++  buffer.erase(components.username_end, diff);
++++  components.host_start -= diff;
++++  components.host_end -= diff;
++++  components.pathname_start -= diff;
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start -= diff;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start -= diff;
++++  }
++++}
++++
++++inline void url_aggregator::update_base_password(const std::string_view input) {
++++  ada_log("url_aggregator::update_base_password ", input);
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++
++++  add_authority_slashes_if_needed();
++++
++++  // TODO: Optimization opportunity. Merge the following removal functions.
++++  if (input.empty()) {
++++    clear_password();
++++
++++    // Remove username too, if it is empty.
++++    if (!has_non_empty_username()) {
++++      update_base_username("");
++++    }
++++
++++    return;
++++  }
++++
++++  bool password_exists = has_password();
++++  uint32_t difference = uint32_t(input.size());
++++
++++  if (password_exists) {
++++    uint32_t current_length =
++++        components.host_start - components.username_end - 1;
++++    buffer.erase(components.username_end + 1, current_length);
++++    difference -= current_length;
++++  } else {
++++    buffer.insert(components.username_end, ":");
++++    difference++;
++++  }
++++
++++  buffer.insert(components.username_end + 1, input);
++++  components.host_start += difference;
++++
++++  // The following line is required to add "@" to hostname. When updating
++++  // password if hostname does not start with "@", it is "update_base_password"s
++++  // responsibility to set it.
++++  if (buffer[components.host_start] != '@') {
++++    buffer.insert(components.host_start, "@");
++++    difference++;
++++  }
++++
++++  components.host_end += difference;
++++  components.pathname_start += difference;
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start += difference;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start += difference;
++++  }
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++inline void url_aggregator::append_base_password(const std::string_view input) {
++++  ada_log("url_aggregator::append_base_password ", input, " ", to_string(),
++++          "\n", to_diagram());
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++#if ADA_DEVELOPMENT_CHECKS
++++  // computing the expected password.
++++  std::string password_expected = std::string(get_password());
++++  password_expected.append(input);
++++#endif  // ADA_DEVELOPMENT_CHECKS
++++  add_authority_slashes_if_needed();
++++
++++  // If input is empty, do nothing.
++++  if (input.empty()) {
++++    return;
++++  }
++++
++++  uint32_t difference = uint32_t(input.size());
++++  if (has_password()) {
++++    buffer.insert(components.host_start, input);
++++  } else {
++++    difference++;  // Increment for ":"
++++    buffer.insert(components.username_end, ":");
++++    buffer.insert(components.username_end + 1, input);
++++  }
++++  components.host_start += difference;
++++
++++  // The following line is required to add "@" to hostname. When updating
++++  // password if hostname does not start with "@", it is "append_base_password"s
++++  // responsibility to set it.
++++  if (buffer[components.host_start] != '@') {
++++    buffer.insert(components.host_start, "@");
++++    difference++;
++++  }
++++
++++  components.host_end += difference;
++++  components.pathname_start += difference;
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start += difference;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start += difference;
++++  }
++++#if ADA_DEVELOPMENT_CHECKS
++++  std::string password_after(get_password());
++++  ADA_ASSERT_EQUAL(
++++      password_expected, password_after,
++++      "append_base_password problem after inserting " + std::string(input));
++++#endif  // ADA_DEVELOPMENT_CHECKS
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++inline void url_aggregator::update_base_port(uint32_t input) {
++++  ada_log("url_aggregator::update_base_port");
++++  ADA_ASSERT_TRUE(validate());
++++  if (input == url_components::omitted) {
++++    clear_port();
++++    return;
++++  }
++++  // calling std::to_string(input.value()) is unfortunate given that the port
++++  // value is probably already available as a string.
++++  std::string value = helpers::concat(":", std::to_string(input));
++++  uint32_t difference = uint32_t(value.size());
++++
++++  if (components.port != url_components::omitted) {
++++    difference -= components.pathname_start - components.host_end;
++++    buffer.erase(components.host_end,
++++                 components.pathname_start - components.host_end);
++++  }
++++
++++  buffer.insert(components.host_end, value);
++++  components.pathname_start += difference;
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start += difference;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start += difference;
++++  }
++++  components.port = input;
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++inline void url_aggregator::clear_port() {
++++  ada_log("url_aggregator::clear_port");
++++  ADA_ASSERT_TRUE(validate());
++++  if (components.port == url_components::omitted) {
++++    return;
++++  }
++++  uint32_t length = components.pathname_start - components.host_end;
++++  buffer.erase(components.host_end, length);
++++  components.pathname_start -= length;
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start -= length;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start -= length;
++++  }
++++  components.port = url_components::omitted;
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++[[nodiscard]] inline uint32_t url_aggregator::retrieve_base_port() const {
++++  ada_log("url_aggregator::retrieve_base_port");
++++  return components.port;
++++}
++++
++++inline void url_aggregator::clear_search() {
++++  ada_log("url_aggregator::clear_search");
++++  ADA_ASSERT_TRUE(validate());
++++  if (components.search_start == url_components::omitted) {
++++    return;
++++  }
++++
++++  if (components.hash_start == url_components::omitted) {
++++    buffer.resize(components.search_start);
++++  } else {
++++    buffer.erase(components.search_start,
++++                 components.hash_start - components.search_start);
++++    components.hash_start = components.search_start;
++++  }
++++
++++  components.search_start = url_components::omitted;
++++
++++#if ADA_DEVELOPMENT_CHECKS
++++  ADA_ASSERT_EQUAL(get_search(), "",
++++                   "search should have been cleared on buffer=" + buffer +
++++                       " with " + components.to_string() + "\n" + to_diagram());
++++#endif
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++inline void url_aggregator::clear_hash() {
++++  ada_log("url_aggregator::clear_hash");
++++  ADA_ASSERT_TRUE(validate());
++++  if (components.hash_start == url_components::omitted) {
++++    return;
++++  }
++++  buffer.resize(components.hash_start);
++++  components.hash_start = url_components::omitted;
++++
++++#if ADA_DEVELOPMENT_CHECKS
++++  ADA_ASSERT_EQUAL(get_hash(), "",
++++                   "hash should have been cleared on buffer=" + buffer +
++++                       " with " + components.to_string() + "\n" + to_diagram());
++++#endif
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++inline void url_aggregator::clear_pathname() {
++++  ada_log("url_aggregator::clear_pathname");
++++  ADA_ASSERT_TRUE(validate());
++++  uint32_t ending_index = uint32_t(buffer.size());
++++  if (components.search_start != url_components::omitted) {
++++    ending_index = components.search_start;
++++  } else if (components.hash_start != url_components::omitted) {
++++    ending_index = components.hash_start;
++++  }
++++  uint32_t pathname_length = ending_index - components.pathname_start;
++++  buffer.erase(components.pathname_start, pathname_length);
++++  uint32_t difference = pathname_length;
++++  if (components.pathname_start == components.host_end + 2 &&
++++      buffer[components.host_end] == '/' &&
++++      buffer[components.host_end + 1] == '.') {
++++    components.pathname_start -= 2;
++++    buffer.erase(components.host_end, 2);
++++    difference += 2;
++++  }
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start -= difference;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start -= difference;
++++  }
++++  ada_log("url_aggregator::clear_pathname completed, running checks...");
++++#if ADA_DEVELOPMENT_CHECKS
++++  ADA_ASSERT_EQUAL(get_pathname(), "",
++++                   "pathname should have been cleared on buffer=" + buffer +
++++                       " with " + components.to_string() + "\n" + to_diagram());
++++#endif
++++  ADA_ASSERT_TRUE(validate());
++++  ada_log("url_aggregator::clear_pathname completed, running checks... ok");
++++}
++++
++++inline void url_aggregator::clear_hostname() {
++++  ada_log("url_aggregator::clear_hostname");
++++  ADA_ASSERT_TRUE(validate());
++++  if (!has_authority()) {
++++    return;
++++  }
++++  ADA_ASSERT_TRUE(has_authority());
++++
++++  uint32_t hostname_length = components.host_end - components.host_start;
++++  uint32_t start = components.host_start;
++++
++++  // If hostname starts with "@", we should not remove that character.
++++  if (hostname_length > 0 && buffer[start] == '@') {
++++    start++;
++++    hostname_length--;
++++  }
++++  buffer.erase(start, hostname_length);
++++  components.host_end = start;
++++  components.pathname_start -= hostname_length;
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start -= hostname_length;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start -= hostname_length;
++++  }
++++#if ADA_DEVELOPMENT_CHECKS
++++  ADA_ASSERT_EQUAL(get_hostname(), "",
++++                   "hostname should have been cleared on buffer=" + buffer +
++++                       " with " + components.to_string() + "\n" + to_diagram());
++++#endif
++++  ADA_ASSERT_TRUE(has_authority());
++++  ADA_ASSERT_EQUAL(has_empty_hostname(), true,
++++                   "hostname should have been cleared on buffer=" + buffer +
++++                       " with " + components.to_string() + "\n" + to_diagram());
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++[[nodiscard]] inline bool url_aggregator::has_hash() const noexcept {
++++  ada_log("url_aggregator::has_hash");
++++  return components.hash_start != url_components::omitted;
++++}
++++
++++[[nodiscard]] inline bool url_aggregator::has_search() const noexcept {
++++  ada_log("url_aggregator::has_search");
++++  return components.search_start != url_components::omitted;
++++}
++++
++++ada_really_inline bool url_aggregator::has_credentials() const noexcept {
++++  ada_log("url_aggregator::has_credentials");
++++  return has_non_empty_username() || has_non_empty_password();
++++}
++++
++++inline bool url_aggregator::cannot_have_credentials_or_port() const {
++++  ada_log("url_aggregator::cannot_have_credentials_or_port");
++++  return type == ada::scheme::type::FILE ||
++++         components.host_start == components.host_end;
++++}
++++
++++[[nodiscard]] ada_really_inline const ada::url_components &
++++url_aggregator::get_components() const noexcept {
++++  return components;
++++}
++++
++++[[nodiscard]] inline bool ada::url_aggregator::has_authority() const noexcept {
++++  ada_log("url_aggregator::has_authority");
++++  // Performance: instead of doing this potentially expensive check, we could
++++  // have a boolean in the struct.
++++  return components.protocol_end + 2 <= components.host_start &&
++++         helpers::substring(buffer, components.protocol_end,
++++                            components.protocol_end + 2) == "//";
++++}
++++
++++inline void ada::url_aggregator::add_authority_slashes_if_needed() noexcept {
++++  ada_log("url_aggregator::add_authority_slashes_if_needed");
++++  ADA_ASSERT_TRUE(validate());
++++  // Protocol setter will insert `http:` to the URL. It is up to hostname setter
++++  // to insert
++++  // `//` initially to the buffer, since it depends on the hostname existence.
++++  if (has_authority()) {
++++    return;
++++  }
++++  // Performance: the common case is components.protocol_end == buffer.size()
++++  // Optimization opportunity: in many cases, the "//" is part of the input and
++++  // the insert could be fused with another insert.
++++  buffer.insert(components.protocol_end, "//");
++++  components.username_end += 2;
++++  components.host_start += 2;
++++  components.host_end += 2;
++++  components.pathname_start += 2;
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start += 2;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start += 2;
++++  }
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++inline void ada::url_aggregator::reserve(uint32_t capacity) {
++++  buffer.reserve(capacity);
++++}
++++
++++inline bool url_aggregator::has_non_empty_username() const noexcept {
++++  ada_log("url_aggregator::has_non_empty_username");
++++  return components.protocol_end + 2 < components.username_end;
++++}
++++
++++inline bool url_aggregator::has_non_empty_password() const noexcept {
++++  ada_log("url_aggregator::has_non_empty_password");
++++  return components.host_start - components.username_end > 0;
++++}
++++
++++inline bool url_aggregator::has_password() const noexcept {
++++  ada_log("url_aggregator::has_password");
++++  // This function does not care about the length of the password
++++  return components.host_start > components.username_end &&
++++         buffer[components.username_end] == ':';
++++}
++++
++++inline bool url_aggregator::has_empty_hostname() const noexcept {
++++  if (!has_hostname()) {
++++    return false;
++++  }
++++  if (components.host_start == components.host_end) {
++++    return true;
++++  }
++++  if (components.host_end > components.host_start + 1) {
++++    return false;
++++  }
++++  return components.username_end != components.host_start;
++++}
++++
++++inline bool url_aggregator::has_hostname() const noexcept {
++++  return has_authority();
++++}
++++
++++inline bool url_aggregator::has_port() const noexcept {
++++  ada_log("url_aggregator::has_port");
++++  // A URL cannot have a username/password/port if its host is null or the empty
++++  // string, or its scheme is "file".
++++  return has_hostname() && components.pathname_start != components.host_end;
++++}
++++
++++[[nodiscard]] inline bool url_aggregator::has_dash_dot() const noexcept {
++++  // If url's host is null, url does not have an opaque path, url's path's size
++++  // is greater than 1, and url's path[0] is the empty string, then append
++++  // U+002F (/) followed by U+002E (.) to output.
++++  ada_log("url_aggregator::has_dash_dot");
++++#if ADA_DEVELOPMENT_CHECKS
++++  // If pathname_start and host_end are exactly two characters apart, then we
++++  // either have a one-digit port such as http://test.com:5?param=1 or else we
++++  // have a /.: sequence such as "non-spec:/.//". We test that this is the case.
++++  if (components.pathname_start == components.host_end + 2) {
++++    ADA_ASSERT_TRUE((buffer[components.host_end] == '/' &&
++++                     buffer[components.host_end + 1] == '.') ||
++++                    (buffer[components.host_end] == ':' &&
++++                     checkers::is_digit(buffer[components.host_end + 1])));
++++  }
++++  if (components.pathname_start == components.host_end + 2 &&
++++      buffer[components.host_end] == '/' &&
++++      buffer[components.host_end + 1] == '.') {
++++    ADA_ASSERT_TRUE(components.pathname_start + 1 < buffer.size());
++++    ADA_ASSERT_TRUE(buffer[components.pathname_start] == '/');
++++    ADA_ASSERT_TRUE(buffer[components.pathname_start + 1] == '/');
++++  }
++++#endif
++++  // Performance: it should be uncommon for components.pathname_start ==
++++  // components.host_end + 2 to be true. So we put this check first in the
++++  // sequence. Most times, we do not have an opaque path. Checking for '/.' is
++++  // more expensive, but should be uncommon.
++++  return components.pathname_start == components.host_end + 2 &&
++++         !has_opaque_path && buffer[components.host_end] == '/' &&
++++         buffer[components.host_end + 1] == '.';
++++}
++++
++++[[nodiscard]] inline std::string_view url_aggregator::get_href() const noexcept
++++    ada_lifetime_bound {
++++  ada_log("url_aggregator::get_href");
++++  return buffer;
++++}
++++
++++ada_really_inline size_t url_aggregator::parse_port(
++++    std::string_view view, bool check_trailing_content) noexcept {
++++  ada_log("url_aggregator::parse_port('", view, "') ", view.size());
++++  if (!view.empty() && view[0] == '-') {
++++    ada_log("parse_port: view[0] == '0' && view.size() > 1");
++++    is_valid = false;
++++    return 0;
++++  }
++++  uint16_t parsed_port{};
++++  auto r = std::from_chars(view.data(), view.data() + view.size(), parsed_port);
++++  if (r.ec == std::errc::result_out_of_range) {
++++    ada_log("parse_port: r.ec == std::errc::result_out_of_range");
++++    is_valid = false;
++++    return 0;
++++  }
++++  ada_log("parse_port: ", parsed_port);
++++  const size_t consumed = size_t(r.ptr - view.data());
++++  ada_log("parse_port: consumed ", consumed);
++++  if (check_trailing_content) {
++++    is_valid &=
++++        (consumed == view.size() || view[consumed] == '/' ||
++++         view[consumed] == '?' || (is_special() && view[consumed] == '\\'));
++++  }
++++  ada_log("parse_port: is_valid = ", is_valid);
++++  if (is_valid) {
++++    ada_log("parse_port", r.ec == std::errc());
++++    // scheme_default_port can return 0, and we should allow 0 as a base port.
++++    auto default_port = scheme_default_port();
++++    bool is_port_valid = (default_port == 0 && parsed_port == 0) ||
++++                         (default_port != parsed_port);
++++    if (r.ec == std::errc() && is_port_valid) {
++++      update_base_port(parsed_port);
++++    } else {
++++      clear_port();
++++    }
++++  }
++++  return consumed;
++++}
++++
++++inline void url_aggregator::set_protocol_as_file() {
++++  ada_log("url_aggregator::set_protocol_as_file ");
++++  ADA_ASSERT_TRUE(validate());
++++  type = ada::scheme::type::FILE;
++++  // next line could overflow but unsigned arithmetic has well-defined
++++  // overflows.
++++  uint32_t new_difference = 5 - components.protocol_end;
++++
++++  if (buffer.empty()) {
++++    buffer.append("file:");
++++  } else {
++++    buffer.erase(0, components.protocol_end);
++++    buffer.insert(0, "file:");
++++  }
++++  components.protocol_end = 5;
++++
++++  // Update the rest of the components.
++++  components.username_end += new_difference;
++++  components.host_start += new_difference;
++++  components.host_end += new_difference;
++++  components.pathname_start += new_difference;
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start += new_difference;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start += new_difference;
++++  }
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++inline std::ostream &operator<<(std::ostream &out,
++++                                const ada::url_aggregator &u) {
++++  return out << u.to_string();
++++}
++++}  // namespace ada
++++
++++#endif  // ADA_URL_AGGREGATOR_INL_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..0a81a1094a259abd8698f0dac8bd6d6e988417a3
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,320 @@@@@
++++/**
++++ * @file url_aggregator.h
++++ * @brief Declaration for the basic URL definitions
++++ */
++++#ifndef ADA_URL_AGGREGATOR_H
++++#define ADA_URL_AGGREGATOR_H
++++
++++#include <string>
++++#include <string_view>
++++
++++#include "ada/common_defs.h"
++++#include "ada/url_base.h"
++++#include "ada/url_components.h"
++++
++++namespace ada {
++++
++++/**
++++ * @brief Lightweight URL struct.
++++ *
++++ * @details The url_aggregator class aims to minimize temporary memory
++++ * allocation while representing a parsed URL. Internally, it contains a single
++++ * normalized URL (the href), and it makes available the components, mostly
++++ * using std::string_view.
++++ */
++++struct url_aggregator : url_base {
++++  url_aggregator() = default;
++++  url_aggregator(const url_aggregator &u) = default;
++++  url_aggregator(url_aggregator &&u) noexcept = default;
++++  url_aggregator &operator=(url_aggregator &&u) noexcept = default;
++++  url_aggregator &operator=(const url_aggregator &u) = default;
++++  ~url_aggregator() override = default;
++++
++++  bool set_href(std::string_view input);
++++  bool set_host(std::string_view input);
++++  bool set_hostname(std::string_view input);
++++  bool set_protocol(std::string_view input);
++++  bool set_username(std::string_view input);
++++  bool set_password(std::string_view input);
++++  bool set_port(std::string_view input);
++++  bool set_pathname(std::string_view input);
++++  void set_search(std::string_view input);
++++  void set_hash(std::string_view input);
++++
++++  [[nodiscard]] bool has_valid_domain() const noexcept override;
++++  /**
++++   * The origin getter steps are to return the serialization of this's URL's
++++   * origin. [HTML]
++++   * @return a newly allocated string.
++++   * @see https://url.spec.whatwg.org/#concept-url-origin
++++   */
++++  [[nodiscard]] std::string get_origin() const noexcept override;
++++  /**
++++   * Return the normalized string.
++++   * This function does not allocate memory.
++++   * It is highly efficient.
++++   * @return a constant reference to the underlying normalized URL.
++++   * @see https://url.spec.whatwg.org/#dom-url-href
++++   * @see https://url.spec.whatwg.org/#concept-url-serializer
++++   */
++++  [[nodiscard]] inline std::string_view get_href() const noexcept
++++      ada_lifetime_bound;
++++  /**
++++   * The username getter steps are to return this's URL's username.
++++   * This function does not allocate memory.
++++   * @return a lightweight std::string_view.
++++   * @see https://url.spec.whatwg.org/#dom-url-username
++++   */
++++  [[nodiscard]] std::string_view get_username() const noexcept
++++      ada_lifetime_bound;
++++  /**
++++   * The password getter steps are to return this's URL's password.
++++   * This function does not allocate memory.
++++   * @return a lightweight std::string_view.
++++   * @see https://url.spec.whatwg.org/#dom-url-password
++++   */
++++  [[nodiscard]] std::string_view get_password() const noexcept
++++      ada_lifetime_bound;
++++  /**
++++   * Return this's URL's port, serialized.
++++   * This function does not allocate memory.
++++   * @return a lightweight std::string_view.
++++   * @see https://url.spec.whatwg.org/#dom-url-port
++++   */
++++  [[nodiscard]] std::string_view get_port() const noexcept ada_lifetime_bound;
++++  /**
++++   * Return U+0023 (#), followed by this's URL's fragment.
++++   * This function does not allocate memory.
++++   * @return a lightweight std::string_view..
++++   * @see https://url.spec.whatwg.org/#dom-url-hash
++++   */
++++  [[nodiscard]] std::string_view get_hash() const noexcept ada_lifetime_bound;
++++  /**
++++   * Return url's host, serialized, followed by U+003A (:) and url's port,
++++   * serialized.
++++   * This function does not allocate memory.
++++   * When there is no host, this function returns the empty view.
++++   * @return a lightweight std::string_view.
++++   * @see https://url.spec.whatwg.org/#dom-url-host
++++   */
++++  [[nodiscard]] std::string_view get_host() const noexcept ada_lifetime_bound;
++++  /**
++++   * Return this's URL's host, serialized.
++++   * This function does not allocate memory.
++++   * When there is no host, this function returns the empty view.
++++   * @return a lightweight std::string_view.
++++   * @see https://url.spec.whatwg.org/#dom-url-hostname
++++   */
++++  [[nodiscard]] std::string_view get_hostname() const noexcept
++++      ada_lifetime_bound;
++++  /**
++++   * The pathname getter steps are to return the result of URL path serializing
++++   * this's URL.
++++   * This function does not allocate memory.
++++   * @return a lightweight std::string_view.
++++   * @see https://url.spec.whatwg.org/#dom-url-pathname
++++   */
++++  [[nodiscard]] std::string_view get_pathname() const noexcept
++++      ada_lifetime_bound;
++++  /**
++++   * Compute the pathname length in bytes without instantiating a view or a
++++   * string.
++++   * @return size of the pathname in bytes
++++   * @see https://url.spec.whatwg.org/#dom-url-pathname
++++   */
++++  [[nodiscard]] ada_really_inline uint32_t get_pathname_length() const noexcept;
++++  /**
++++   * Return U+003F (?), followed by this's URL's query.
++++   * This function does not allocate memory.
++++   * @return a lightweight std::string_view.
++++   * @see https://url.spec.whatwg.org/#dom-url-search
++++   */
++++  [[nodiscard]] std::string_view get_search() const noexcept ada_lifetime_bound;
++++  /**
++++   * The protocol getter steps are to return this's URL's scheme, followed by
++++   * U+003A (:).
++++   * This function does not allocate memory.
++++   * @return a lightweight std::string_view.
++++   * @see https://url.spec.whatwg.org/#dom-url-protocol
++++   */
++++  [[nodiscard]] std::string_view get_protocol() const noexcept
++++      ada_lifetime_bound;
++++
++++  /**
++++   * A URL includes credentials if its username or password is not the empty
++++   * string.
++++   */
++++  [[nodiscard]] ada_really_inline bool has_credentials() const noexcept;
++++
++++  /**
++++   * Useful for implementing efficient serialization for the URL.
++++   *
++++   * https://user:pass@example.com:1234/foo/bar?baz#quux
++++   *       |     |    |          | ^^^^|       |   |
++++   *       |     |    |          | |   |       |   `----- hash_start
++++   *       |     |    |          | |   |       `--------- search_start
++++   *       |     |    |          | |   `----------------- pathname_start
++++   *       |     |    |          | `--------------------- port
++++   *       |     |    |          `----------------------- host_end
++++   *       |     |    `---------------------------------- host_start
++++   *       |     `--------------------------------------- username_end
++++   *       `--------------------------------------------- protocol_end
++++   *
++++   * Inspired after servo/url
++++   *
++++   * @return a constant reference to the underlying component attribute.
++++   *
++++   * @see
++++   * https://github.com/servo/rust-url/blob/b65a45515c10713f6d212e6726719a020203cc98/url/src/quirks.rs#L31
++++   */
++++  [[nodiscard]] ada_really_inline const ada::url_components &get_components()
++++      const noexcept;
++++  /**
++++   * Returns a string representation of this URL.
++++   */
++++  [[nodiscard]] std::string to_string() const override;
++++  /**
++++   * Returns a string diagram of this URL.
++++   */
++++  [[nodiscard]] std::string to_diagram() const;
++++
++++  /**
++++   * Verifies that the parsed URL could be valid. Useful for debugging purposes.
++++   * @return true if the URL is valid, otherwise return true of the offsets are
++++   * possible.
++++   */
++++  [[nodiscard]] bool validate() const noexcept;
++++
++++  /** @return true if it has an host but it is the empty string */
++++  [[nodiscard]] inline bool has_empty_hostname() const noexcept;
++++  /** @return true if it has a host (included an empty host) */
++++  [[nodiscard]] inline bool has_hostname() const noexcept;
++++  /** @return true if the URL has a non-empty username */
++++  [[nodiscard]] inline bool has_non_empty_username() const noexcept;
++++  /** @return true if the URL has a non-empty password */
++++  [[nodiscard]] inline bool has_non_empty_password() const noexcept;
++++  /** @return true if the URL has a (non default) port */
++++  [[nodiscard]] inline bool has_port() const noexcept;
++++  /** @return true if the URL has a password */
++++  [[nodiscard]] inline bool has_password() const noexcept;
++++  /** @return true if the URL has a hash component */
++++  [[nodiscard]] inline bool has_hash() const noexcept override;
++++  /** @return true if the URL has a search component */
++++  [[nodiscard]] inline bool has_search() const noexcept override;
++++
++++  inline void clear_port();
++++  inline void clear_hash();
++++  inline void clear_search() override;
++++
++++ private:
++++  friend ada::url_aggregator ada::parser::parse_url<ada::url_aggregator>(
++++      std::string_view, const ada::url_aggregator *);
++++  friend void ada::helpers::strip_trailing_spaces_from_opaque_path<
++++      ada::url_aggregator>(ada::url_aggregator &url) noexcept;
++++  friend ada::url_aggregator ada::parser::parse_url_impl<
++++      ada::url_aggregator, true>(std::string_view, const ada::url_aggregator *);
++++  friend ada::url_aggregator
++++  ada::parser::parse_url_impl<ada::url_aggregator, false>(
++++      std::string_view, const ada::url_aggregator *);
++++
++++  std::string buffer{};
++++  url_components components{};
++++
++++  /**
++++   * Returns true if neither the search, nor the hash nor the pathname
++++   * have been set.
++++   * @return true if the buffer is ready to receive the path.
++++   */
++++  [[nodiscard]] ada_really_inline bool is_at_path() const noexcept;
++++
++++  inline void add_authority_slashes_if_needed() noexcept;
++++
++++  /**
++++   * To optimize performance, you may indicate how much memory to allocate
++++   * within this instance.
++++   */
++++  inline void reserve(uint32_t capacity);
++++
++++  ada_really_inline size_t parse_port(
++++      std::string_view view, bool check_trailing_content) noexcept override;
++++
++++  ada_really_inline size_t parse_port(std::string_view view) noexcept override {
++++    return this->parse_port(view, false);
++++  }
++++
++++  /**
++++   * Return true on success. The 'in_place' parameter indicates whether the
++++   * the string_view input is pointing in the buffer. When in_place is false,
++++   * we must nearly always update the buffer.
++++   * @see https://url.spec.whatwg.org/#concept-ipv4-parser
++++   */
++++  [[nodiscard]] bool parse_ipv4(std::string_view input, bool in_place);
++++
++++  /**
++++   * Return true on success.
++++   * @see https://url.spec.whatwg.org/#concept-ipv6-parser
++++   */
++++  [[nodiscard]] bool parse_ipv6(std::string_view input);
++++
++++  /**
++++   * Return true on success.
++++   * @see https://url.spec.whatwg.org/#concept-opaque-host-parser
++++   */
++++  [[nodiscard]] bool parse_opaque_host(std::string_view input);
++++
++++  ada_really_inline void parse_path(std::string_view input);
++++
++++  /**
++++   * A URL cannot have a username/password/port if its host is null or the empty
++++   * string, or its scheme is "file".
++++   */
++++  [[nodiscard]] inline bool cannot_have_credentials_or_port() const;
++++
++++  template <bool override_hostname = false>
++++  bool set_host_or_hostname(std::string_view input);
++++
++++  ada_really_inline bool parse_host(std::string_view input);
++++
++++  inline void update_base_authority(std::string_view base_buffer,
++++                                    const ada::url_components &base);
++++  inline void update_unencoded_base_hash(std::string_view input);
++++  inline void update_base_hostname(std::string_view input);
++++  inline void update_base_search(std::string_view input);
++++  inline void update_base_search(std::string_view input,
++++                                 const uint8_t *query_percent_encode_set);
++++  inline void update_base_pathname(std::string_view input);
++++  inline void update_base_username(std::string_view input);
++++  inline void append_base_username(std::string_view input);
++++  inline void update_base_password(std::string_view input);
++++  inline void append_base_password(std::string_view input);
++++  inline void update_base_port(uint32_t input);
++++  inline void append_base_pathname(std::string_view input);
++++  [[nodiscard]] inline uint32_t retrieve_base_port() const;
++++  inline void clear_hostname();
++++  inline void clear_password();
++++  inline void clear_pathname() override;
++++  [[nodiscard]] inline bool has_dash_dot() const noexcept;
++++  void delete_dash_dot();
++++  inline void consume_prepared_path(std::string_view input);
++++  template <bool has_state_override = false>
++++  [[nodiscard]] ada_really_inline bool parse_scheme_with_colon(
++++      std::string_view input);
++++  ada_really_inline uint32_t replace_and_resize(uint32_t start, uint32_t end,
++++                                                std::string_view input);
++++  [[nodiscard]] inline bool has_authority() const noexcept;
++++  inline void set_protocol_as_file();
++++  inline void set_scheme(std::string_view new_scheme) noexcept;
++++  /**
++++   * Fast function to set the scheme from a view with a colon in the
++++   * buffer, does not change type.
++++   */
++++  inline void set_scheme_from_view_with_colon(
++++      std::string_view new_scheme_with_colon) noexcept;
++++  inline void copy_scheme(const url_aggregator &u) noexcept;
++++
++++};  // url_aggregator
++++
++++inline std::ostream &operator<<(std::ostream &out, const ada::url &u);
++++}  // namespace ada
++++
++++#endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..26ba1087c602d6fac6755d220f5b54ad88fa0311
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,39 @@@@@
++++/**
++++ * @file url_base-inl.h
++++ * @brief Inline functions for url base
++++ */
++++#ifndef ADA_URL_BASE_INL_H
++++#define ADA_URL_BASE_INL_H
++++
++++#include "ada/url_aggregator.h"
++++#include "ada/url_components.h"
++++#include "ada/scheme.h"
++++#include "ada/scheme-inl.h"
++++#include "ada/log.h"
++++#include "ada/checkers.h"
++++#include "ada/url.h"
++++
++++#include <optional>
++++#include <string>
++++#if ADA_REGULAR_VISUAL_STUDIO
++++#include <intrin.h>
++++#endif  // ADA_REGULAR_VISUAL_STUDIO
++++
++++namespace ada {
++++
++++[[nodiscard]] ada_really_inline bool url_base::is_special() const noexcept {
++++  return type != ada::scheme::NOT_SPECIAL;
++++}
++++
++++[[nodiscard]] inline uint16_t url_base::get_special_port() const noexcept {
++++  return ada::scheme::get_special_port(type);
++++}
++++
++++[[nodiscard]] ada_really_inline uint16_t
++++url_base::scheme_default_port() const noexcept {
++++  return scheme::get_special_port(type);
++++}
++++
++++}  // namespace ada
++++
++++#endif  // ADA_URL_BASE_INL_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..de4068d3d763c3c2a78896fd3b649bbd6eb539e0
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,142 @@@@@
++++/**
++++ * @file url_base.h
++++ * @brief Declaration for the basic URL definitions
++++ */
++++#ifndef ADA_URL_BASE_H
++++#define ADA_URL_BASE_H
++++
++++#include "ada/common_defs.h"
++++#include "ada/url_components.h"
++++#include "ada/scheme.h"
++++
++++#include <string_view>
++++
++++namespace ada {
++++
++++/**
++++ * Type of URL host as an enum.
++++ */
++++enum url_host_type : uint8_t {
++++  /**
++++   * Represents common URLs such as "https://www.google.com"
++++   */
++++  DEFAULT = 0,
++++  /**
++++   * Represents ipv4 addresses such as "http://127.0.0.1"
++++   */
++++  IPV4 = 1,
++++  /**
++++   * Represents ipv6 addresses such as
++++   * "http://[2001:db8:3333:4444:5555:6666:7777:8888]"
++++   */
++++  IPV6 = 2,
++++};
++++
++++/**
++++ * @brief Base class of URL implementations
++++ *
++++ * @details A url_base contains a few attributes: is_valid, has_opaque_path and
++++ * type. All non-trivial implementation details are in derived classes such as
++++ * ada::url and ada::url_aggregator.
++++ *
++++ * It is an abstract class that cannot be instantiated directly.
++++ */
++++struct url_base {
++++  virtual ~url_base() = default;
++++
++++  /**
++++   * Used for returning the validity from the result of the URL parser.
++++   */
++++  bool is_valid{true};
++++
++++  /**
++++   * A URL has an opaque path if its path is a string.
++++   */
++++  bool has_opaque_path{false};
++++
++++  /**
++++   * URL hosts type
++++   */
++++  url_host_type host_type = url_host_type::DEFAULT;
++++
++++  /**
++++   * @private
++++   */
++++  ada::scheme::type type{ada::scheme::type::NOT_SPECIAL};
++++
++++  /**
++++   * A URL is special if its scheme is a special scheme. A URL is not special if
++++   * its scheme is not a special scheme.
++++   */
++++  [[nodiscard]] ada_really_inline bool is_special() const noexcept;
++++
++++  /**
++++   * The origin getter steps are to return the serialization of this's URL's
++++   * origin. [HTML]
++++   * @return a newly allocated string.
++++   * @see https://url.spec.whatwg.org/#concept-url-origin
++++   */
++++  [[nodiscard]] virtual std::string get_origin() const noexcept = 0;
++++
++++  /**
++++   * Returns true if this URL has a valid domain as per RFC 1034 and
++++   * corresponding specifications. Among other things, it requires
++++   * that the domain string has fewer than 255 octets.
++++   */
++++  [[nodiscard]] virtual bool has_valid_domain() const noexcept = 0;
++++
++++  /**
++++   * @private
++++   *
++++   * Return the 'special port' if the URL is special and not 'file'.
++++   * Returns 0 otherwise.
++++   */
++++  [[nodiscard]] inline uint16_t get_special_port() const noexcept;
++++
++++  /**
++++   * @private
++++   *
++++   * Get the default port if the url's scheme has one, returns 0 otherwise.
++++   */
++++  [[nodiscard]] ada_really_inline uint16_t scheme_default_port() const noexcept;
++++
++++  /**
++++   * @private
++++   *
++++   * Parse a port (16-bit decimal digit) from the provided input.
++++   * We assume that the input does not contain spaces or tabs
++++   * within the ASCII digits.
++++   * It returns how many bytes were consumed when a number is successfully
++++   * parsed.
++++   * @return On failure, it returns zero.
++++   * @see https://url.spec.whatwg.org/#host-parsing
++++   */
++++  virtual size_t parse_port(std::string_view view,
++++                            bool check_trailing_content) noexcept = 0;
++++
++++  virtual ada_really_inline size_t parse_port(std::string_view view) noexcept {
++++    return this->parse_port(view, false);
++++  }
++++
++++  /**
++++   * Returns a JSON string representation of this URL.
++++   */
++++  [[nodiscard]] virtual std::string to_string() const = 0;
++++
++++  /** @private */
++++  virtual inline void clear_pathname() = 0;
++++
++++  /** @private */
++++  virtual inline void clear_search() = 0;
++++
++++  /** @private */
++++  [[nodiscard]] virtual inline bool has_hash() const noexcept = 0;
++++
++++  /** @private */
++++  [[nodiscard]] virtual inline bool has_search() const noexcept = 0;
++++
++++};  // url_base
++++
++++}  // namespace ada
++++
++++#endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1596c5c13925e5b21719350baa38fc6dd4b2b6aa
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,80 @@@@@
++++/**
++++ * @file url_components.h
++++ * @brief Declaration for the URL Components
++++ */
++++#ifndef ADA_URL_COMPONENTS_H
++++#define ADA_URL_COMPONENTS_H
++++
++++#include "ada/common_defs.h"
++++
++++#include <optional>
++++#include <string_view>
++++
++++namespace ada {
++++
++++/**
++++ * @brief URL Component representations using offsets.
++++ *
++++ * @details We design the url_components struct so that it is as small
++++ * and simple as possible. This version uses 32 bytes.
++++ *
++++ * This struct is used to extract components from a single 'href'.
++++ */
++++struct url_components {
++++  constexpr static uint32_t omitted = uint32_t(-1);
++++
++++  url_components() = default;
++++  url_components(const url_components &u) = default;
++++  url_components(url_components &&u) noexcept = default;
++++  url_components &operator=(url_components &&u) noexcept = default;
++++  url_components &operator=(const url_components &u) = default;
++++  ~url_components() = default;
++++
++++  /*
++++   * By using 32-bit integers, we implicitly assume that the URL string
++++   * cannot exceed 4 GB.
++++   *
++++   * https://user:pass@example.com:1234/foo/bar?baz#quux
++++   *       |     |    |          | ^^^^|       |   |
++++   *       |     |    |          | |   |       |   `----- hash_start
++++   *       |     |    |          | |   |       `--------- search_start
++++   *       |     |    |          | |   `----------------- pathname_start
++++   *       |     |    |          | `--------------------- port
++++   *       |     |    |          `----------------------- host_end
++++   *       |     |    `---------------------------------- host_start
++++   *       |     `--------------------------------------- username_end
++++   *       `--------------------------------------------- protocol_end
++++   */
++++  uint32_t protocol_end{0};
++++  /**
++++   * Username end is not `omitted` by default to make username and password
++++   * getters less costly to implement.
++++   */
++++  uint32_t username_end{0};
++++  uint32_t host_start{0};
++++  uint32_t host_end{0};
++++  uint32_t port{omitted};
++++  uint32_t pathname_start{0};
++++  uint32_t search_start{omitted};
++++  uint32_t hash_start{omitted};
++++
++++  /**
++++   * Check the following conditions:
++++   * protocol_end < username_end < ... < hash_start,
++++   * expect when a value is omitted. It also computes
++++   * a lower bound on  the possible string length that may match these
++++   * offsets.
++++   * @return true if the offset values are
++++   *  consistent with a possible URL string
++++   */
++++  [[nodiscard]] bool check_offset_consistency() const noexcept;
++++
++++  /**
++++   * Converts a url_components to JSON stringified version.
++++   */
++++  [[nodiscard]] std::string to_string() const;
++++
++++};  // struct url_components
++++
++++}  // namespace ada
++++#endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6edb37c527cedad0f72b148a290611651ff71b88
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,227 @@@@@
++++/**
++++ * @file url_search_params-inl.h
++++ * @brief Inline declarations for the URL Search Params
++++ */
++++#ifndef ADA_URL_SEARCH_PARAMS_INL_H
++++#define ADA_URL_SEARCH_PARAMS_INL_H
++++
++++#include "ada.h"
++++#include "ada/character_sets-inl.h"
++++#include "ada/unicode.h"
++++#include "ada/url_search_params.h"
++++
++++#include <algorithm>
++++#include <optional>
++++#include <string>
++++#include <string_view>
++++#include <vector>
++++
++++namespace ada {
++++
++++// A default, empty url_search_params for use with empty iterators.
++++template <typename T, ada::url_search_params_iter_type Type>
++++url_search_params url_search_params_iter<T, Type>::EMPTY;
++++
++++inline void url_search_params::reset(std::string_view input) {
++++  params.clear();
++++  initialize(input);
++++}
++++
++++inline void url_search_params::initialize(std::string_view input) {
++++  if (!input.empty() && input.front() == '?') {
++++    input.remove_prefix(1);
++++  }
++++
++++  auto process_key_value = [&](const std::string_view current) {
++++    auto equal = current.find('=');
++++
++++    if (equal == std::string_view::npos) {
++++      std::string name(current);
++++      std::replace(name.begin(), name.end(), '+', ' ');
++++      params.emplace_back(unicode::percent_decode(name, name.find('%')), "");
++++    } else {
++++      std::string name(current.substr(0, equal));
++++      std::string value(current.substr(equal + 1));
++++
++++      std::replace(name.begin(), name.end(), '+', ' ');
++++      std::replace(value.begin(), value.end(), '+', ' ');
++++
++++      params.emplace_back(unicode::percent_decode(name, name.find('%')),
++++                          unicode::percent_decode(value, value.find('%')));
++++    }
++++  };
++++
++++  while (!input.empty()) {
++++    auto ampersand_index = input.find('&');
++++
++++    if (ampersand_index == std::string_view::npos) {
++++      if (!input.empty()) {
++++        process_key_value(input);
++++      }
++++      break;
++++    } else if (ampersand_index != 0) {
++++      process_key_value(input.substr(0, ampersand_index));
++++    }
++++
++++    input.remove_prefix(ampersand_index + 1);
++++  }
++++}
++++
++++inline void url_search_params::append(const std::string_view key,
++++                                      const std::string_view value) {
++++  params.emplace_back(key, value);
++++}
++++
++++inline size_t url_search_params::size() const noexcept { return params.size(); }
++++
++++inline std::optional<std::string_view> url_search_params::get(
++++    const std::string_view key) {
++++  auto entry = std::find_if(params.begin(), params.end(),
++++                            [&key](auto &param) { return param.first == key; });
++++
++++  if (entry == params.end()) {
++++    return std::nullopt;
++++  }
++++
++++  return entry->second;
++++}
++++
++++inline std::vector<std::string> url_search_params::get_all(
++++    const std::string_view key) {
++++  std::vector<std::string> out{};
++++
++++  for (auto &param : params) {
++++    if (param.first == key) {
++++      out.emplace_back(param.second);
++++    }
++++  }
++++
++++  return out;
++++}
++++
++++inline bool url_search_params::has(const std::string_view key) noexcept {
++++  auto entry = std::find_if(params.begin(), params.end(),
++++                            [&key](auto &param) { return param.first == key; });
++++  return entry != params.end();
++++}
++++
++++inline bool url_search_params::has(std::string_view key,
++++                                   std::string_view value) noexcept {
++++  auto entry =
++++      std::find_if(params.begin(), params.end(), [&key, &value](auto &param) {
++++        return param.first == key && param.second == value;
++++      });
++++  return entry != params.end();
++++}
++++
++++inline std::string url_search_params::to_string() const {
++++  auto character_set = ada::character_sets::WWW_FORM_URLENCODED_PERCENT_ENCODE;
++++  std::string out{};
++++  for (size_t i = 0; i < params.size(); i++) {
++++    auto key = ada::unicode::percent_encode(params[i].first, character_set);
++++    auto value = ada::unicode::percent_encode(params[i].second, character_set);
++++
++++    // Performance optimization: Move this inside percent_encode.
++++    std::replace(key.begin(), key.end(), ' ', '+');
++++    std::replace(value.begin(), value.end(), ' ', '+');
++++
++++    if (i != 0) {
++++      out += "&";
++++    }
++++    out.append(key);
++++    out += "=";
++++    out.append(value);
++++  }
++++  return out;
++++}
++++
++++inline void url_search_params::set(const std::string_view key,
++++                                   const std::string_view value) {
++++  const auto find = [&key](auto &param) { return param.first == key; };
++++
++++  auto it = std::find_if(params.begin(), params.end(), find);
++++
++++  if (it == params.end()) {
++++    params.emplace_back(key, value);
++++  } else {
++++    it->second = value;
++++    params.erase(std::remove_if(std::next(it), params.end(), find),
++++                 params.end());
++++  }
++++}
++++
++++inline void url_search_params::remove(const std::string_view key) {
++++  params.erase(
++++      std::remove_if(params.begin(), params.end(),
++++                     [&key](auto &param) { return param.first == key; }),
++++      params.end());
++++}
++++
++++inline void url_search_params::remove(const std::string_view key,
++++                                      const std::string_view value) {
++++  params.erase(std::remove_if(params.begin(), params.end(),
++++                              [&key, &value](auto &param) {
++++                                return param.first == key &&
++++                                       param.second == value;
++++                              }),
++++               params.end());
++++}
++++
++++inline void url_search_params::sort() {
++++  std::stable_sort(params.begin(), params.end(),
++++                   [](const key_value_pair &lhs, const key_value_pair &rhs) {
++++                     return lhs.first < rhs.first;
++++                   });
++++}
++++
++++inline url_search_params_keys_iter url_search_params::get_keys() {
++++  return url_search_params_keys_iter(*this);
++++}
++++
++++/**
++++ * @see https://url.spec.whatwg.org/#interface-urlsearchparams
++++ */
++++inline url_search_params_values_iter url_search_params::get_values() {
++++  return url_search_params_values_iter(*this);
++++}
++++
++++/**
++++ * @see https://url.spec.whatwg.org/#interface-urlsearchparams
++++ */
++++inline url_search_params_entries_iter url_search_params::get_entries() {
++++  return url_search_params_entries_iter(*this);
++++}
++++
++++template <typename T, url_search_params_iter_type Type>
++++inline bool url_search_params_iter<T, Type>::has_next() {
++++  return pos < params.params.size();
++++}
++++
++++template <>
++++inline std::optional<std::string_view> url_search_params_keys_iter::next() {
++++  if (!has_next()) {
++++    return std::nullopt;
++++  }
++++  return params.params[pos++].first;
++++}
++++
++++template <>
++++inline std::optional<std::string_view> url_search_params_values_iter::next() {
++++  if (!has_next()) {
++++    return std::nullopt;
++++  }
++++  return params.params[pos++].second;
++++}
++++
++++template <>
++++inline std::optional<key_value_view_pair>
++++url_search_params_entries_iter::next() {
++++  if (!has_next()) {
++++    return std::nullopt;
++++  }
++++  return params.params[pos++];
++++}
++++
++++}  // namespace ada
++++
++++#endif  // ADA_URL_SEARCH_PARAMS_INL_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..00052c786f79306fce9343ed84945ccfb020f2c7
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,188 @@@@@
++++/**
++++ * @file url_search_params.h
++++ * @brief Declaration for the URL Search Params
++++ */
++++#ifndef ADA_URL_SEARCH_PARAMS_H
++++#define ADA_URL_SEARCH_PARAMS_H
++++
++++#include <optional>
++++#include <string>
++++#include <string_view>
++++#include <vector>
++++
++++namespace ada {
++++
++++enum class url_search_params_iter_type {
++++  KEYS,
++++  VALUES,
++++  ENTRIES,
++++};
++++
++++template <typename T, url_search_params_iter_type Type>
++++struct url_search_params_iter;
++++
++++typedef std::pair<std::string_view, std::string_view> key_value_view_pair;
++++
++++using url_search_params_keys_iter =
++++    url_search_params_iter<std::string_view, url_search_params_iter_type::KEYS>;
++++using url_search_params_values_iter =
++++    url_search_params_iter<std::string_view,
++++                           url_search_params_iter_type::VALUES>;
++++using url_search_params_entries_iter =
++++    url_search_params_iter<key_value_view_pair,
++++                           url_search_params_iter_type::ENTRIES>;
++++
++++/**
++++ * @see https://url.spec.whatwg.org/#interface-urlsearchparams
++++ */
++++struct url_search_params {
++++  url_search_params() = default;
++++
++++  /**
++++   * @see
++++   * https://github.com/web-platform-tests/wpt/blob/master/url/urlsearchparams-constructor.any.js
++++   */
++++  url_search_params(const std::string_view input) { initialize(input); }
++++
++++  url_search_params(const url_search_params &u) = default;
++++  url_search_params(url_search_params &&u) noexcept = default;
++++  url_search_params &operator=(url_search_params &&u) noexcept = default;
++++  url_search_params &operator=(const url_search_params &u) = default;
++++  ~url_search_params() = default;
++++
++++  [[nodiscard]] inline size_t size() const noexcept;
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#dom-urlsearchparams-append
++++   */
++++  inline void append(std::string_view key, std::string_view value);
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#dom-urlsearchparams-delete
++++   */
++++  inline void remove(std::string_view key);
++++  inline void remove(std::string_view key, std::string_view value);
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#dom-urlsearchparams-get
++++   */
++++  inline std::optional<std::string_view> get(std::string_view key);
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#dom-urlsearchparams-getall
++++   */
++++  inline std::vector<std::string> get_all(std::string_view key);
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#dom-urlsearchparams-has
++++   */
++++  inline bool has(std::string_view key) noexcept;
++++  inline bool has(std::string_view key, std::string_view value) noexcept;
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#dom-urlsearchparams-set
++++   */
++++  inline void set(std::string_view key, std::string_view value);
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#dom-urlsearchparams-sort
++++   */
++++  inline void sort();
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
++++   */
++++  inline std::string to_string() const;
++++
++++  /**
++++   * Returns a simple JS-style iterator over all of the keys in this
++++   * url_search_params. The keys in the iterator are not unique. The valid
++++   * lifespan of the iterator is tied to the url_search_params. The iterator
++++   * must be freed when you're done with it.
++++   * @see https://url.spec.whatwg.org/#interface-urlsearchparams
++++   */
++++  inline url_search_params_keys_iter get_keys();
++++
++++  /**
++++   * Returns a simple JS-style iterator over all of the values in this
++++   * url_search_params. The valid lifespan of the iterator is tied to the
++++   * url_search_params. The iterator must be freed when you're done with it.
++++   * @see https://url.spec.whatwg.org/#interface-urlsearchparams
++++   */
++++  inline url_search_params_values_iter get_values();
++++
++++  /**
++++   * Returns a simple JS-style iterator over all of the entries in this
++++   * url_search_params. The entries are pairs of keys and corresponding values.
++++   * The valid lifespan of the iterator is tied to the url_search_params. The
++++   * iterator must be freed when you're done with it.
++++   * @see https://url.spec.whatwg.org/#interface-urlsearchparams
++++   */
++++  inline url_search_params_entries_iter get_entries();
++++
++++  /**
++++   * C++ style conventional iterator support. const only because we
++++   * do not really want the params to be modified via the iterator.
++++   */
++++  inline auto begin() const { return params.begin(); }
++++  inline auto end() const { return params.end(); }
++++  inline auto front() const { return params.front(); }
++++  inline auto back() const { return params.back(); }
++++  inline auto operator[](size_t index) const { return params[index]; }
++++
++++  /**
++++   * @private
++++   * Used to reset the search params to a new input.
++++   * Used primarily for C API.
++++   * @param input
++++   */
++++  void reset(std::string_view input);
++++
++++ private:
++++  typedef std::pair<std::string, std::string> key_value_pair;
++++  std::vector<key_value_pair> params{};
++++
++++  /**
++++   * @see https://url.spec.whatwg.org/#concept-urlencoded-parser
++++   */
++++  void initialize(std::string_view init);
++++
++++  template <typename T, url_search_params_iter_type Type>
++++  friend struct url_search_params_iter;
++++};  // url_search_params
++++
++++/**
++++ * Implements a non-conventional iterator pattern that is closer in style to
++++ * JavaScript's definition of an iterator.
++++ *
++++ * @see https://webidl.spec.whatwg.org/#idl-iterable
++++ */
++++template <typename T, url_search_params_iter_type Type>
++++struct url_search_params_iter {
++++  inline url_search_params_iter() : params(EMPTY) {}
++++  url_search_params_iter(const url_search_params_iter &u) = default;
++++  url_search_params_iter(url_search_params_iter &&u) noexcept = default;
++++  url_search_params_iter &operator=(url_search_params_iter &&u) noexcept =
++++      default;
++++  url_search_params_iter &operator=(const url_search_params_iter &u) = default;
++++  ~url_search_params_iter() = default;
++++
++++  /**
++++   * Return the next item in the iterator or std::nullopt if done.
++++   */
++++  inline std::optional<T> next();
++++
++++  inline bool has_next();
++++
++++ private:
++++  static url_search_params EMPTY;
++++  inline url_search_params_iter(url_search_params &params_) : params(params_) {}
++++
++++  url_search_params &params;
++++  size_t pos = 0;
++++
++++  friend struct url_search_params;
++++};
++++
++++}  // namespace ada
++++#endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..44e945c9656187aaf6d3f0888a083aedc3503d20
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,187 @@@@@
++++/**
++++ * @file ada_c.h
++++ * @brief Includes the C definitions for Ada. This is a C file, not C++.
++++ */
++++#ifndef ADA_C_H
++++#define ADA_C_H
++++
++++#include <stdbool.h>
++++#include <stdint.h>
++++#include <stddef.h>
++++
++++// This is a reference to ada::url_components::omitted
++++// It represents "uint32_t(-1)"
++++#define ada_url_omitted 0xffffffff
++++
++++// string that is owned by the ada_url instance
++++typedef struct {
++++  const char* data;
++++  size_t length;
++++} ada_string;
++++
++++// string that must be freed by the caller
++++typedef struct {
++++  const char* data;
++++  size_t length;
++++} ada_owned_string;
++++
++++typedef struct {
++++  uint32_t protocol_end;
++++  uint32_t username_end;
++++  uint32_t host_start;
++++  uint32_t host_end;
++++  uint32_t port;
++++  uint32_t pathname_start;
++++  uint32_t search_start;
++++  uint32_t hash_start;
++++} ada_url_components;
++++
++++typedef void* ada_url;
++++
++++// input should be a null terminated C string (ASCII or UTF-8)
++++// you must call ada_free on the returned pointer
++++ada_url ada_parse(const char* input, size_t length);
++++ada_url ada_parse_with_base(const char* input, size_t input_length,
++++                            const char* base, size_t base_length);
++++
++++// input and base should be a null terminated C strings
++++bool ada_can_parse(const char* input, size_t length);
++++bool ada_can_parse_with_base(const char* input, size_t input_length,
++++                             const char* base, size_t base_length);
++++
++++void ada_free(ada_url result);
++++void ada_free_owned_string(ada_owned_string owned);
++++ada_url ada_copy(ada_url input);
++++
++++bool ada_is_valid(ada_url result);
++++
++++// url_aggregator getters
++++// if ada_is_valid(result)) is false, an empty string is returned
++++ada_owned_string ada_get_origin(ada_url result);
++++ada_string ada_get_href(ada_url result);
++++ada_string ada_get_username(ada_url result);
++++ada_string ada_get_password(ada_url result);
++++ada_string ada_get_port(ada_url result);
++++ada_string ada_get_hash(ada_url result);
++++ada_string ada_get_host(ada_url result);
++++ada_string ada_get_hostname(ada_url result);
++++ada_string ada_get_pathname(ada_url result);
++++ada_string ada_get_search(ada_url result);
++++ada_string ada_get_protocol(ada_url result);
++++uint8_t ada_get_host_type(ada_url result);
++++uint8_t ada_get_scheme_type(ada_url result);
++++
++++// url_aggregator setters
++++// if ada_is_valid(result)) is false, the setters have no effect
++++// input should be a null terminated C string
++++bool ada_set_href(ada_url result, const char* input, size_t length);
++++bool ada_set_host(ada_url result, const char* input, size_t length);
++++bool ada_set_hostname(ada_url result, const char* input, size_t length);
++++bool ada_set_protocol(ada_url result, const char* input, size_t length);
++++bool ada_set_username(ada_url result, const char* input, size_t length);
++++bool ada_set_password(ada_url result, const char* input, size_t length);
++++bool ada_set_port(ada_url result, const char* input, size_t length);
++++bool ada_set_pathname(ada_url result, const char* input, size_t length);
++++void ada_set_search(ada_url result, const char* input, size_t length);
++++void ada_set_hash(ada_url result, const char* input, size_t length);
++++
++++// url_aggregator clear methods
++++void ada_clear_port(ada_url result);
++++void ada_clear_hash(ada_url result);
++++void ada_clear_search(ada_url result);
++++
++++// url_aggregator functions
++++// if ada_is_valid(result) is false, functions below will return false
++++bool ada_has_credentials(ada_url result);
++++bool ada_has_empty_hostname(ada_url result);
++++bool ada_has_hostname(ada_url result);
++++bool ada_has_non_empty_username(ada_url result);
++++bool ada_has_non_empty_password(ada_url result);
++++bool ada_has_port(ada_url result);
++++bool ada_has_password(ada_url result);
++++bool ada_has_hash(ada_url result);
++++bool ada_has_search(ada_url result);
++++
++++// returns a pointer to the internal url_aggregator::url_components
++++const ada_url_components* ada_get_components(ada_url result);
++++
++++// idna methods
++++ada_owned_string ada_idna_to_unicode(const char* input, size_t length);
++++ada_owned_string ada_idna_to_ascii(const char* input, size_t length);
++++
++++// url search params
++++typedef void* ada_url_search_params;
++++
++++// Represents an std::vector<std::string>
++++typedef void* ada_strings;
++++typedef void* ada_url_search_params_keys_iter;
++++typedef void* ada_url_search_params_values_iter;
++++
++++typedef struct {
++++  ada_string key;
++++  ada_string value;
++++} ada_string_pair;
++++
++++typedef void* ada_url_search_params_entries_iter;
++++
++++ada_url_search_params ada_parse_search_params(const char* input, size_t length);
++++void ada_free_search_params(ada_url_search_params result);
++++
++++size_t ada_search_params_size(ada_url_search_params result);
++++void ada_search_params_sort(ada_url_search_params result);
++++ada_owned_string ada_search_params_to_string(ada_url_search_params result);
++++
++++void ada_search_params_append(ada_url_search_params result, const char* key,
++++                              size_t key_length, const char* value,
++++                              size_t value_length);
++++void ada_search_params_set(ada_url_search_params result, const char* key,
++++                           size_t key_length, const char* value,
++++                           size_t value_length);
++++void ada_search_params_remove(ada_url_search_params result, const char* key,
++++                              size_t key_length);
++++void ada_search_params_remove_value(ada_url_search_params result,
++++                                    const char* key, size_t key_length,
++++                                    const char* value, size_t value_length);
++++bool ada_search_params_has(ada_url_search_params result, const char* key,
++++                           size_t key_length);
++++bool ada_search_params_has_value(ada_url_search_params result, const char* key,
++++                                 size_t key_length, const char* value,
++++                                 size_t value_length);
++++ada_string ada_search_params_get(ada_url_search_params result, const char* key,
++++                                 size_t key_length);
++++ada_strings ada_search_params_get_all(ada_url_search_params result,
++++                                      const char* key, size_t key_length);
++++void ada_search_params_reset(ada_url_search_params result, const char* input,
++++                             size_t length);
++++ada_url_search_params_keys_iter ada_search_params_get_keys(
++++    ada_url_search_params result);
++++ada_url_search_params_values_iter ada_search_params_get_values(
++++    ada_url_search_params result);
++++ada_url_search_params_entries_iter ada_search_params_get_entries(
++++    ada_url_search_params result);
++++
++++void ada_free_strings(ada_strings result);
++++size_t ada_strings_size(ada_strings result);
++++ada_string ada_strings_get(ada_strings result, size_t index);
++++
++++void ada_free_search_params_keys_iter(ada_url_search_params_keys_iter result);
++++ada_string ada_search_params_keys_iter_next(
++++    ada_url_search_params_keys_iter result);
++++bool ada_search_params_keys_iter_has_next(
++++    ada_url_search_params_keys_iter result);
++++
++++void ada_free_search_params_values_iter(
++++    ada_url_search_params_values_iter result);
++++ada_string ada_search_params_values_iter_next(
++++    ada_url_search_params_values_iter result);
++++bool ada_search_params_values_iter_has_next(
++++    ada_url_search_params_values_iter result);
++++
++++void ada_free_search_params_entries_iter(
++++    ada_url_search_params_entries_iter result);
++++ada_string_pair ada_search_params_entries_iter_next(
++++    ada_url_search_params_entries_iter result);
++++bool ada_search_params_entries_iter_has_next(
++++    ada_url_search_params_entries_iter result);
++++
++++#endif  // ADA_C_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..575d34c67eb5bb73f037491244cea93f72be45e6
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,38 @@@@@
++++[project]
++++name = "ada-url"
++++requires-python = ">=3.12"
++++
++++[tool.ruff]
++++line-length = 120
++++target-version = "py312"
++++
++++[tool.ruff.format]
++++quote-style = "single"
++++indent-style = "space"
++++docstring-code-format = true
++++
++++[tool.ruff.lint]
++++select = [
++++  "C90",    # McCabe cyclomatic complexity
++++  "E",      # pycodestyle
++++  "F",      # Pyflakes
++++  "ICN",    # flake8-import-conventions
++++  "INT",    # flake8-gettext
++++  "PLC",    # Pylint conventions
++++  "PLE",    # Pylint errors
++++  "PLR09",  # Pylint refactoring: max-args, max-branches, max returns, max-statements
++++  "PYI",    # flake8-pyi
++++  "RSE",    # flake8-raise
++++  "RUF",    # Ruff-specific rules
++++  "T10",    # flake8-debugger
++++  "TCH",    # flake8-type-checking
++++  "TID",    # flake8-tidy-imports
++++  "W",      # pycodestyle
++++  "YTT",    # flake8-2020
++++  "ANN"     # flake8-annotations
++++]
++++ignore = [
++++  "E722",   # Do not use bare `except`
++++  "ANN101", # Missing type annotation for self in method
++++  "TID252", # Prefer absolute imports over relative imports from parent modules
++++]
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..9dc62a444ad4805b2f00be22ef1954dc88a118e5
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,66 @@@@@
++++#
++++# Amalgamation
++++#
++++set(SINGLEHEADER_FILES
++++  ${CMAKE_CURRENT_BINARY_DIR}/ada.cpp
++++  ${CMAKE_CURRENT_BINARY_DIR}/ada.h
++++  ${CMAKE_CURRENT_BINARY_DIR}/ada_c.h
++++  ${CMAKE_CURRENT_BINARY_DIR}/demo.cpp
++++  ${CMAKE_CURRENT_BINARY_DIR}/demo.c
++++  ${CMAKE_CURRENT_BINARY_DIR}/README.md
++++)
++++set_source_files_properties(${SINGLEHEADER_FILES} PROPERTIES GENERATED TRUE)
++++
++++# In theory, this is unneeded, because the tests module does the same test:
++++find_package (Python3 COMPONENTS Interpreter)
++++
++++if (Python3_Interpreter_FOUND)
++++  MESSAGE( STATUS "Python found, we are going to amalgamate.py." )
++++
++++  add_custom_command(
++++    OUTPUT ${SINGLEHEADER_FILES}
++++    COMMAND ${CMAKE_COMMAND} -E env
++++      AMALGAMATE_SOURCE_PATH=${PROJECT_SOURCE_DIR}/src
++++      AMALGAMATE_INPUT_PATH=${PROJECT_SOURCE_DIR}/include
++++      AMALGAMATE_OUTPUT_PATH=${CMAKE_CURRENT_BINARY_DIR}
++++      ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/amalgamate.py
++++      #
++++      # This is the best way I could find to make amalgamation trigger whenever source files or
++++      # header files change: since the "ada" library has to get rebuilt when that happens, we
++++      # take a dependency on the generated library file (even though we're not using it). Depending
++++      # on ada-source doesn't do the trick because DEPENDS here can only depend on an
++++      # *artifact*--it won't scan source and include files the way a concrete library or executable
++++      # will.
++++      #
++++      # It sucks that we have to build the actual library to make it happen, but it's better than\
++++      # nothing!
++++      #
++++      DEPENDS amalgamate.py ada
++++  )
++++  add_custom_target(ada-singleheader-files DEPENDS ${SINGLEHEADER_FILES})
++++
++++  #
++++  # Include this if you intend to #include "ada.cpp" in your own .cpp files.
++++  #
++++  add_library(ada-singleheader-include-source INTERFACE)
++++  target_include_directories(ada-singleheader-include-source INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
++++  add_dependencies(ada-singleheader-include-source ada-singleheader-files)
++++
++++  add_library(ada-singleheader-source INTERFACE)
++++  target_sources(ada-singleheader-source INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/ada.cpp>)
++++  target_link_libraries(ada-singleheader-source INTERFACE ada-singleheader-include-source)
++++  add_library(ada-singleheader-lib STATIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/ada.cpp>)
++++
++++  if (ADA_TESTING)
++++    add_executable(demo $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/demo.cpp>)
++++    target_link_libraries(demo ada-singleheader-include-source)
++++
++++    add_test(demo demo)
++++
++++    add_executable(cdemo $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/demo.c>)
++++    target_link_libraries(cdemo ada-singleheader-lib)
++++    add_test(cdemo cdemo)
++++  endif()
++++else()
++++  MESSAGE( STATUS "Python not found, we are unable to test amalgamate.py." )
++++endif()
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6bb727758f85093107b1ae7619bd823090d9e9aa
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,36 @@@@@
++++## Amalgamation demo
++++
++++While in the ada main directory, using Python 3, type:
++++
++++```
++++python singleheader/amalgamate.py
++++```
++++
++++This will create two new files (ada.h and ada.cpp).
++++
++++You can then compile the demo file as follows:
++++
++++```
++++c++ -std=c++17 -c demo.cpp
++++```
++++
++++It will produce a binary file (e.g., demo.o) which contains ada.cpp.
++++
++++```
++++c++ -std=c++17 -o demo demo.cpp
++++./demo
++++```
++++
++++You may build and link using CMake (--target demo), because CMake can configure all the necessary flags.
++++
++++
++++### C Demo
++++
++++You may also build a C executable.
++++
++++```
++++c++ -c ada.cpp -std=c++17
++++cc -c demo.c
++++c++ demo.o ada.o -o cdemo
++++./cdemo
++++```
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..52b154b643f3dd0915a08db5494251ddac40fff5
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,150 @@@@@
++++#!/usr/bin/env python3
++++#
++++# Creates the amalgamated source files.
++++#
++++
++++import zipfile
++++import sys
++++import os.path
++++import subprocess
++++import os
++++import re
++++import shutil
++++import datetime
++++
++++if sys.version_info[0] < 3:
++++    sys.stdout.write('Sorry, requires Python 3.x or better\n')
++++    sys.exit(1)
++++
++++SCRIPTPATH = os.path.dirname(os.path.abspath(sys.argv[0]))
++++PROJECTPATH = os.path.dirname(SCRIPTPATH)
++++print(f'SCRIPTPATH={SCRIPTPATH} PROJECTPATH={PROJECTPATH}')
++++
++++if 'AMALGAMATE_SOURCE_PATH' not in os.environ:
++++    AMALGAMATE_SOURCE_PATH = os.path.join(PROJECTPATH, 'src')
++++else:
++++    AMALGAMATE_SOURCE_PATH = os.environ['AMALGAMATE_SOURCE_PATH']
++++if 'AMALGAMATE_INCLUDE_PATH' not in os.environ:
++++    AMALGAMATE_INCLUDE_PATH = os.path.join(PROJECTPATH, 'include')
++++else:
++++    AMALGAMATE_INCLUDE_PATH = os.environ['AMALGAMATE_INCLUDE_PATH']
++++if 'AMALGAMATE_OUTPUT_PATH' not in os.environ:
++++    AMALGAMATE_OUTPUT_PATH = os.path.join(SCRIPTPATH)
++++else:
++++    AMALGAMATE_OUTPUT_PATH = os.environ['AMALGAMATE_OUTPUT_PATH']
++++
++++# this list excludes the "src/generic headers"
++++ALLCFILES = ['ada.cpp']
++++
++++# order matters
++++ALLCHEADERS = ['ada.h']
++++
++++found_includes = []
++++
++++current_implementation = ''
++++
++++
++++def doinclude(fid: str, file: str, line: str, origin: str) -> None:
++++    p = os.path.join(AMALGAMATE_INCLUDE_PATH, file)
++++    pi = os.path.join(AMALGAMATE_SOURCE_PATH, file)
++++
++++    if os.path.exists(p):
++++        if file not in found_includes:
++++            found_includes.append(file)
++++            dofile(fid, AMALGAMATE_INCLUDE_PATH, file)
++++        else:
++++            pass
++++    elif os.path.exists(pi):
++++        if file not in found_includes:
++++            found_includes.append(file)
++++            dofile(fid, AMALGAMATE_SOURCE_PATH, file)
++++        else:
++++            pass
++++    else:
++++        # If we don't recognize it, just emit the #include
++++        print('unrecognized:', file, ' from ', line, ' in ', origin)
++++        print(line, file=fid)
++++
++++
++++def dofile(fid: str, prepath: str, filename: str) -> None:
++++    file = os.path.join(prepath, filename)
++++    RELFILE = os.path.relpath(file, PROJECTPATH)
++++    # Last lines are always ignored. Files should end by an empty lines.
++++    print(f'/* begin file {RELFILE} */', file=fid)
++++    includepattern = re.compile('\\s*#\\s*include "(.*)"')
++++    with open(file, 'r') as fid2:
++++        for line in fid2:
++++            line = line.rstrip('\n')
++++            s = includepattern.search(line)
++++            if s:
++++                includedfile = s.group(1)
++++                if includedfile == 'ada.h' and filename == 'ada.cpp':
++++                    print(line, file=fid)
++++                    continue
++++
++++                if includedfile.startswith('../'):
++++                    includedfile = includedfile[2:]
++++                # we explicitly include ada headers, one time each
++++                doinclude(fid, includedfile, line, filename)
++++            else:
++++                print(line, file=fid)
++++    print(f'/* end file {RELFILE} */', file=fid)
++++
++++
++++# Get the generation date from git, so the output is reproducible.
++++# The %ci specifier gives the unambiguous ISO 8601 format, and
++++# does not change with locale and timezone at time of generation.
++++# Forcing it to be UTC is difficult, because it needs to be portable
++++# between gnu date and busybox date.
++++try:
++++    timestamp = (
++++        subprocess.run(['git', 'show', '-s', '--format=%ci', 'HEAD'], stdout=subprocess.PIPE)
++++        .stdout.decode('utf-8')
++++        .strip()
++++    )
++++except Exception:
++++    print('git not found, timestamp based on current time')
++++    timestamp = str(datetime.datetime.now())
++++print(f'timestamp is {timestamp}')
++++
++++os.makedirs(AMALGAMATE_OUTPUT_PATH, exist_ok=True)
++++AMAL_H = os.path.join(AMALGAMATE_OUTPUT_PATH, 'ada.h')
++++AMAL_C = os.path.join(AMALGAMATE_OUTPUT_PATH, 'ada.cpp')
++++DEMOCPP = os.path.join(AMALGAMATE_OUTPUT_PATH, 'cpp')
++++README = os.path.join(AMALGAMATE_OUTPUT_PATH, 'README.md')
++++
++++print(f'Creating {AMAL_H}')
++++amal_h = open(AMAL_H, 'w')
++++print(f'/* auto-generated on {timestamp}. Do not edit! */', file=amal_h)
++++for h in ALLCHEADERS:
++++    doinclude(amal_h, h, f'ERROR {h} not found', h)
++++
++++amal_h.close()
++++print()
++++print()
++++print(f'Creating {AMAL_C}')
++++amal_c = open(AMAL_C, 'w')
++++print(f'/* auto-generated on {timestamp}. Do not edit! */', file=amal_c)
++++for c in ALLCFILES:
++++    doinclude(amal_c, c, f'ERROR {c} not found', c)
++++
++++amal_c.close()
++++
++++# copy the README and DEMOCPP
++++if SCRIPTPATH != AMALGAMATE_OUTPUT_PATH:
++++    shutil.copy2(os.path.join(SCRIPTPATH, 'demo.cpp'), AMALGAMATE_OUTPUT_PATH)
++++    shutil.copy2(os.path.join(SCRIPTPATH, 'demo.c'), AMALGAMATE_OUTPUT_PATH)
++++    shutil.copy2(os.path.join(SCRIPTPATH, 'README.md'), AMALGAMATE_OUTPUT_PATH)
++++
++++shutil.copy2(os.path.join(AMALGAMATE_INCLUDE_PATH, 'ada_c.h'), AMALGAMATE_OUTPUT_PATH)
++++
++++zf = zipfile.ZipFile(os.path.join(AMALGAMATE_OUTPUT_PATH, 'singleheader.zip'), 'w', zipfile.ZIP_DEFLATED)
++++zf.write(os.path.join(AMALGAMATE_OUTPUT_PATH, 'ada.cpp'), 'ada.cpp')
++++zf.write(os.path.join(AMALGAMATE_OUTPUT_PATH, 'ada.h'), 'ada.h')
++++zf.write(os.path.join(AMALGAMATE_INCLUDE_PATH, 'ada_c.h'), 'ada_c.h')
++++
++++
++++print('Done with all files generation.')
++++
++++print(f'Files have been written to directory: {AMALGAMATE_OUTPUT_PATH}/')
++++print('Done with all files generation.')
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3a2c29ea530b4afcc8331bf656c5c8e80bf84fff
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,41 @@@@@
++++#include "ada_c.h"
++++#include <stdio.h>
++++#include <stdlib.h>
++++#include <stdbool.h>
++++#include <string.h>
++++
++++static void ada_print(ada_string string) {
++++  printf("%.*s\n", (int)string.length, string.data);
++++}
++++
++++int main(int c, char* arg[]) {
++++  const char* input =
++++      "https://username:password@www.google.com:8080/"
++++      "pathname?query=true#hash-exists";
++++  ada_url url = ada_parse(input, strlen(input));
++++  if (!ada_is_valid(url)) {
++++    puts("failure");
++++    return EXIT_FAILURE;
++++  }
++++  ada_print(ada_get_href(
++++      url));  // prints
++++              // https://username:password@host:8080/pathname?query=true#hash-exists
++++  ada_print(ada_get_protocol(url));  // prints https:
++++  ada_print(ada_get_username(url));  // prints username
++++  ada_set_href(url, "https://www.yagiz.co", strlen("https://www.yagiz.co"));
++++  if (!ada_is_valid(url)) {
++++    puts("failure");
++++    return EXIT_FAILURE;
++++  }
++++  ada_set_hash(url, "new-hash", strlen("new-hash"));
++++  ada_set_hostname(url, "new-host", strlen("new-host"));
++++  ada_set_host(url, "changed-host:9090", strlen("changed-host:9090"));
++++  ada_set_pathname(url, "new-pathname", strlen("new-pathname"));
++++  ada_set_search(url, "new-search", strlen("new-search"));
++++  ada_set_protocol(url, "wss", 3);
++++  ada_print(ada_get_href(
++++      url));  // will print
++++              // wss://changed-host:9090/new-pathname?new-search#new-hash
++++  ada_free(url);
++++  return EXIT_SUCCESS;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c70fa75e897f9f384eddf9e3f95e166b9e09b71e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,15 @@@@@
++++#include "ada.cpp"
++++#include "ada.h"
++++#include <iostream>
++++
++++int main(int, char *[]) {
++++  auto url = ada::parse<ada::url>("https://www.google.com");
++++  if (!url) {
++++    std::cout << "failure" << std::endl;
++++    return EXIT_FAILURE;
++++  }
++++  url->set_protocol("http");
++++  std::cout << url->get_protocol() << std::endl;
++++  std::cout << url->get_host() << std::endl;
++++  return EXIT_SUCCESS;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6d68b62850f972eeeaf1f61ba81a2f294b616e6b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,60 @@@@@
++++
++++message(STATUS "Compiler ID : " ${CMAKE_CXX_COMPILER_ID})
++++message(STATUS "CMAKE_BUILD_TYPE : " ${CMAKE_BUILD_TYPE})
++++
++++add_library(ada-include-source INTERFACE)
++++target_include_directories(ada-include-source INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
++++add_library(ada-source INTERFACE)
++++target_sources(ada-source INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>/ada.cpp)
++++target_link_libraries(ada-source INTERFACE ada-include-source)
++++add_library(ada ada.cpp)
++++target_include_directories(ada PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> )
++++target_include_directories(ada PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>")
++++
++++if(MSVC)
++++  if("${MSVC_TOOLSET_VERSION}" STREQUAL "140")
++++    target_compile_options(ada INTERFACE /W0 /sdl)
++++    set(ADA_LEGACY_VISUAL_STUDIO TRUE)
++++  else()
++++    target_compile_options(ada PRIVATE /WX /W3 /sdl /w34714) # https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4714?view=vs-2019
++++  endif()
++++else(MSVC)
++++  if(NOT WIN32)
++++    target_compile_options(ada INTERFACE -fPIC)
++++  endif()
++++  message(STATUS "Assuming GCC-like compiler.")
++++  target_compile_options(ada PRIVATE -Wall -Wextra -Weffc++)
++++  if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
++++    target_compile_options(ada PRIVATE -Wsuggest-override)
++++  endif()
++++  if((CMAKE_CXX_COMPILER_ID STREQUAL "Clang") OR (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang"))
++++    target_compile_options(ada PRIVATE -Winconsistent-missing-override)
++++  endif()
++++  target_compile_options(ada PRIVATE -Wfatal-errors -Wsign-compare -Wshadow -Wwrite-strings -Wpointer-arith -Winit-self -Wconversion -Wno-sign-conversion)
++++endif(MSVC)
++++
++++# workaround for GNU GCC poor AVX load/store code generation
++++if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_SYSTEM_PROCESSOR MATCHES "^(i.86|x86(_64)?)$"))
++++  target_compile_options(ada PRIVATE -mno-avx256-split-unaligned-load -mno-avx256-split-unaligned-store)
++++endif()
++++if(ADA_DEVELOPMENT_CHECKS)
++++  target_compile_definitions(ada PUBLIC ADA_DEVELOPMENT_CHECKS=1)
++++endif()
++++if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_BUILD_TYPE STREQUAL "Debug"))
++++  message(STATUS "Enabling _GLIBCXX_DEBUG")
++++  target_compile_definitions(ada PRIVATE _GLIBCXX_DEBUG=1)
++++endif()
++++
++++if(ADA_SANITIZE)
++++  target_compile_options(ada PUBLIC -fsanitize=address  -fno-omit-frame-pointer -fno-sanitize-recover=all)
++++  target_compile_definitions(ada PUBLIC ASAN_OPTIONS=detect_leaks=1)
++++  target_link_libraries(ada PUBLIC -fsanitize=address  -fno-omit-frame-pointer -fno-sanitize-recover=all)
++++endif()
++++if(ADA_SANITIZE_WITHOUT_LEAKS)
++++  target_compile_options(ada PUBLIC -fsanitize=address  -fno-omit-frame-pointer -fno-sanitize-recover=all)
++++  target_link_libraries(ada PUBLIC -fsanitize=address  -fno-omit-frame-pointer -fno-sanitize-recover=all)
++++endif()
++++
++++if(ADA_LOGGING)
++++  target_compile_definitions(ada PRIVATE ADA_LOGGING=1)
++++endif()
diff --cc ada/src/ada.cpp
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..164f37d741d18af5244f89615e769170de6044fc
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,13 @@@@@
++++#include "ada.h"
++++#include "checkers.cpp"
++++#include "unicode.cpp"
++++#include "serializers.cpp"
++++#include "implementation.cpp"
++++#include "helpers.cpp"
++++#include "url.cpp"
++++#include "url-getters.cpp"
++++#include "url-setters.cpp"
++++#include "parser.cpp"
++++#include "url_components.cpp"
++++#include "url_aggregator.cpp"
++++#include "ada_c.cpp"
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..033af1d7a26c590d10321fc99b6828228e3be878
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,743 @@@@@
++++#include "ada.h"
++++
++++ada::result<ada::url_aggregator>& get_instance(void* result) noexcept {
++++  return *(ada::result<ada::url_aggregator>*)result;
++++}
++++
++++extern "C" {
++++typedef void* ada_url;
++++typedef void* ada_url_search_params;
++++typedef void* ada_strings;
++++typedef void* ada_url_search_params_keys_iter;
++++typedef void* ada_url_search_params_values_iter;
++++typedef void* ada_url_search_params_entries_iter;
++++
++++struct ada_string {
++++  const char* data;
++++  size_t length;
++++};
++++
++++struct ada_owned_string {
++++  const char* data;
++++  size_t length;
++++};
++++
++++struct ada_string_pair {
++++  ada_string key;
++++  ada_string value;
++++};
++++
++++ada_string ada_string_create(const char* data, size_t length) {
++++  ada_string out{};
++++  out.data = data;
++++  out.length = length;
++++  return out;
++++}
++++
++++struct ada_url_components {
++++  /*
++++   * By using 32-bit integers, we implicitly assume that the URL string
++++   * cannot exceed 4 GB.
++++   *
++++   * https://user:pass@example.com:1234/foo/bar?baz#quux
++++   *       |     |    |          | ^^^^|       |   |
++++   *       |     |    |          | |   |       |   `----- hash_start
++++   *       |     |    |          | |   |       `--------- search_start
++++   *       |     |    |          | |   `----------------- pathname_start
++++   *       |     |    |          | `--------------------- port
++++   *       |     |    |          `----------------------- host_end
++++   *       |     |    `---------------------------------- host_start
++++   *       |     `--------------------------------------- username_end
++++   *       `--------------------------------------------- protocol_end
++++   */
++++  uint32_t protocol_end;
++++  /**
++++   * Username end is not `omitted` by default (-1) to make username and password
++++   * getters less costly to implement.
++++   */
++++  uint32_t username_end;
++++  uint32_t host_start;
++++  uint32_t host_end;
++++  uint32_t port;
++++  uint32_t pathname_start;
++++  uint32_t search_start;
++++  uint32_t hash_start;
++++};
++++
++++ada_url ada_parse(const char* input, size_t length) noexcept {
++++  return new ada::result<ada::url_aggregator>(
++++      ada::parse<ada::url_aggregator>(std::string_view(input, length)));
++++}
++++
++++ada_url ada_parse_with_base(const char* input, size_t input_length,
++++                            const char* base, size_t base_length) noexcept {
++++  auto base_out =
++++      ada::parse<ada::url_aggregator>(std::string_view(base, base_length));
++++
++++  if (!base_out) {
++++    return new ada::result<ada::url_aggregator>(base_out);
++++  }
++++
++++  return new ada::result<ada::url_aggregator>(ada::parse<ada::url_aggregator>(
++++      std::string_view(input, input_length), &base_out.value()));
++++}
++++
++++bool ada_can_parse(const char* input, size_t length) noexcept {
++++  return ada::can_parse(std::string_view(input, length));
++++}
++++
++++bool ada_can_parse_with_base(const char* input, size_t input_length,
++++                             const char* base, size_t base_length) noexcept {
++++  std::string_view base_view(base, base_length);
++++  return ada::can_parse(std::string_view(input, input_length), &base_view);
++++}
++++
++++void ada_free(ada_url result) noexcept {
++++  auto* r = (ada::result<ada::url_aggregator>*)result;
++++  delete r;
++++}
++++
++++ada_url ada_copy(ada_url input) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(input);
++++  return new ada::result<ada::url_aggregator>(r);
++++}
++++
++++bool ada_is_valid(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  return r.has_value();
++++}
++++
++++// caller must free the result with ada_free_owned_string
++++ada_owned_string ada_get_origin(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  ada_owned_string owned{};
++++  if (!r) {
++++    owned.data = nullptr;
++++    owned.length = 0;
++++    return owned;
++++  }
++++  std::string out = r->get_origin();
++++  owned.length = out.size();
++++  owned.data = new char[owned.length];
++++  memcpy((void*)owned.data, out.data(), owned.length);
++++  return owned;
++++}
++++
++++void ada_free_owned_string(ada_owned_string owned) noexcept {
++++  delete[] owned.data;
++++}
++++
++++ada_string ada_get_href(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  std::string_view out = r->get_href();
++++  return ada_string_create(out.data(), out.length());
++++}
++++
++++ada_string ada_get_username(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  std::string_view out = r->get_username();
++++  return ada_string_create(out.data(), out.length());
++++}
++++
++++ada_string ada_get_password(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  std::string_view out = r->get_password();
++++  return ada_string_create(out.data(), out.length());
++++}
++++
++++ada_string ada_get_port(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  std::string_view out = r->get_port();
++++  return ada_string_create(out.data(), out.length());
++++}
++++
++++ada_string ada_get_hash(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  std::string_view out = r->get_hash();
++++  return ada_string_create(out.data(), out.length());
++++}
++++
++++ada_string ada_get_host(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  std::string_view out = r->get_host();
++++  return ada_string_create(out.data(), out.length());
++++}
++++
++++ada_string ada_get_hostname(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  std::string_view out = r->get_hostname();
++++  return ada_string_create(out.data(), out.length());
++++}
++++
++++ada_string ada_get_pathname(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  std::string_view out = r->get_pathname();
++++  return ada_string_create(out.data(), out.length());
++++}
++++
++++ada_string ada_get_search(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  std::string_view out = r->get_search();
++++  return ada_string_create(out.data(), out.length());
++++}
++++
++++ada_string ada_get_protocol(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  std::string_view out = r->get_protocol();
++++  return ada_string_create(out.data(), out.length());
++++}
++++
++++uint8_t ada_get_host_type(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return 0;
++++  }
++++  return r->host_type;
++++}
++++
++++uint8_t ada_get_scheme_type(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return 0;
++++  }
++++  return r->type;
++++}
++++
++++bool ada_set_href(ada_url result, const char* input, size_t length) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->set_href(std::string_view(input, length));
++++}
++++
++++bool ada_set_host(ada_url result, const char* input, size_t length) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->set_host(std::string_view(input, length));
++++}
++++
++++bool ada_set_hostname(ada_url result, const char* input,
++++                      size_t length) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->set_hostname(std::string_view(input, length));
++++}
++++
++++bool ada_set_protocol(ada_url result, const char* input,
++++                      size_t length) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->set_protocol(std::string_view(input, length));
++++}
++++
++++bool ada_set_username(ada_url result, const char* input,
++++                      size_t length) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->set_username(std::string_view(input, length));
++++}
++++
++++bool ada_set_password(ada_url result, const char* input,
++++                      size_t length) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->set_password(std::string_view(input, length));
++++}
++++
++++bool ada_set_port(ada_url result, const char* input, size_t length) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->set_port(std::string_view(input, length));
++++}
++++
++++bool ada_set_pathname(ada_url result, const char* input,
++++                      size_t length) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->set_pathname(std::string_view(input, length));
++++}
++++
++++/**
++++ * Update the search/query of the URL.
++++ *
++++ * If a URL has `?` as the search value, passing empty string to this function
++++ * does not remove the attribute. If you need to remove it, please use
++++ * `ada_clear_search` method.
++++ */
++++void ada_set_search(ada_url result, const char* input, size_t length) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (r) {
++++    r->set_search(std::string_view(input, length));
++++  }
++++}
++++
++++/**
++++ * Update the hash/fragment of the URL.
++++ *
++++ * If a URL has `#` as the hash value, passing empty string to this function
++++ * does not remove the attribute. If you need to remove it, please use
++++ * `ada_clear_hash` method.
++++ */
++++void ada_set_hash(ada_url result, const char* input, size_t length) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (r) {
++++    r->set_hash(std::string_view(input, length));
++++  }
++++}
++++
++++void ada_clear_port(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (r) {
++++    r->clear_port();
++++  }
++++}
++++
++++/**
++++ * Removes the hash of the URL.
++++ *
++++ * Despite `ada_set_hash` method, this function allows the complete
++++ * removal of the hash attribute, even if it has a value of `#`.
++++ */
++++void ada_clear_hash(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (r) {
++++    r->clear_hash();
++++  }
++++}
++++
++++/**
++++ * Removes the search of the URL.
++++ *
++++ * Despite `ada_set_search` method, this function allows the complete
++++ * removal of the search attribute, even if it has a value of `?`.
++++ */
++++void ada_clear_search(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (r) {
++++    r->clear_search();
++++  }
++++}
++++
++++bool ada_has_credentials(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->has_credentials();
++++}
++++
++++bool ada_has_empty_hostname(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->has_empty_hostname();
++++}
++++
++++bool ada_has_hostname(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->has_hostname();
++++}
++++
++++bool ada_has_non_empty_username(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->has_non_empty_username();
++++}
++++
++++bool ada_has_non_empty_password(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->has_non_empty_password();
++++}
++++
++++bool ada_has_port(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->has_port();
++++}
++++
++++bool ada_has_password(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->has_password();
++++}
++++
++++bool ada_has_hash(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->has_hash();
++++}
++++
++++bool ada_has_search(ada_url result) noexcept {
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return false;
++++  }
++++  return r->has_search();
++++}
++++
++++// returns a pointer to the internal url_aggregator::url_components
++++const ada_url_components* ada_get_components(ada_url result) noexcept {
++++  static_assert(sizeof(ada_url_components) == sizeof(ada::url_components));
++++  ada::result<ada::url_aggregator>& r = get_instance(result);
++++  if (!r) {
++++    return nullptr;
++++  }
++++  return reinterpret_cast<const ada_url_components*>(&r->get_components());
++++}
++++
++++ada_owned_string ada_idna_to_unicode(const char* input, size_t length) {
++++  std::string out = ada::idna::to_unicode(std::string_view(input, length));
++++  ada_owned_string owned{};
++++  owned.length = out.length();
++++  owned.data = new char[owned.length];
++++  memcpy((void*)owned.data, out.data(), owned.length);
++++  return owned;
++++}
++++
++++ada_owned_string ada_idna_to_ascii(const char* input, size_t length) {
++++  std::string out = ada::idna::to_ascii(std::string_view(input, length));
++++  ada_owned_string owned{};
++++  owned.length = out.size();
++++  owned.data = new char[owned.length];
++++  memcpy((void*)owned.data, out.data(), owned.length);
++++  return owned;
++++}
++++
++++ada_url_search_params ada_parse_search_params(const char* input,
++++                                              size_t length) {
++++  return new ada::result<ada::url_search_params>(
++++      ada::url_search_params(std::string_view(input, length)));
++++}
++++
++++void ada_free_search_params(ada_url_search_params result) {
++++  auto* r = (ada::result<ada::url_search_params>*)result;
++++  delete r;
++++}
++++
++++ada_owned_string ada_search_params_to_string(ada_url_search_params result) {
++++  ada::result<ada::url_search_params>& r =
++++      *(ada::result<ada::url_search_params>*)result;
++++  if (!r) return ada_owned_string{nullptr, 0};
++++  std::string out = r->to_string();
++++  ada_owned_string owned{};
++++  owned.length = out.size();
++++  owned.data = new char[owned.length];
++++  memcpy((void*)owned.data, out.data(), owned.length);
++++  return owned;
++++}
++++
++++size_t ada_search_params_size(ada_url_search_params result) {
++++  ada::result<ada::url_search_params>& r =
++++      *(ada::result<ada::url_search_params>*)result;
++++  if (!r) {
++++    return 0;
++++  }
++++  return r->size();
++++}
++++
++++void ada_search_params_sort(ada_url_search_params result) {
++++  ada::result<ada::url_search_params>& r =
++++      *(ada::result<ada::url_search_params>*)result;
++++  if (r) {
++++    r->sort();
++++  }
++++}
++++
++++void ada_search_params_reset(ada_url_search_params result, const char* input,
++++                             size_t length) {
++++  ada::result<ada::url_search_params>& r =
++++      *(ada::result<ada::url_search_params>*)result;
++++  if (r) {
++++    r->reset(std::string_view(input, length));
++++  }
++++}
++++
++++void ada_search_params_append(ada_url_search_params result, const char* key,
++++                              size_t key_length, const char* value,
++++                              size_t value_length) {
++++  ada::result<ada::url_search_params>& r =
++++      *(ada::result<ada::url_search_params>*)result;
++++  if (r) {
++++    r->append(std::string_view(key, key_length),
++++              std::string_view(value, value_length));
++++  }
++++}
++++
++++void ada_search_params_set(ada_url_search_params result, const char* key,
++++                           size_t key_length, const char* value,
++++                           size_t value_length) {
++++  ada::result<ada::url_search_params>& r =
++++      *(ada::result<ada::url_search_params>*)result;
++++  if (r) {
++++    r->set(std::string_view(key, key_length),
++++           std::string_view(value, value_length));
++++  }
++++}
++++
++++void ada_search_params_remove(ada_url_search_params result, const char* key,
++++                              size_t key_length) {
++++  ada::result<ada::url_search_params>& r =
++++      *(ada::result<ada::url_search_params>*)result;
++++  if (r) {
++++    r->remove(std::string_view(key, key_length));
++++  }
++++}
++++
++++void ada_search_params_remove_value(ada_url_search_params result,
++++                                    const char* key, size_t key_length,
++++                                    const char* value, size_t value_length) {
++++  ada::result<ada::url_search_params>& r =
++++      *(ada::result<ada::url_search_params>*)result;
++++  if (r) {
++++    r->remove(std::string_view(key, key_length),
++++              std::string_view(value, value_length));
++++  }
++++}
++++
++++bool ada_search_params_has(ada_url_search_params result, const char* key,
++++                           size_t key_length) {
++++  ada::result<ada::url_search_params>& r =
++++      *(ada::result<ada::url_search_params>*)result;
++++  if (!r) {
++++    return false;
++++  }
++++  return r->has(std::string_view(key, key_length));
++++}
++++
++++bool ada_search_params_has_value(ada_url_search_params result, const char* key,
++++                                 size_t key_length, const char* value,
++++                                 size_t value_length) {
++++  ada::result<ada::url_search_params>& r =
++++      *(ada::result<ada::url_search_params>*)result;
++++  if (!r) {
++++    return false;
++++  }
++++  return r->has(std::string_view(key, key_length),
++++                std::string_view(value, value_length));
++++}
++++
++++ada_string ada_search_params_get(ada_url_search_params result, const char* key,
++++                                 size_t key_length) {
++++  ada::result<ada::url_search_params>& r =
++++      *(ada::result<ada::url_search_params>*)result;
++++  if (!r) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  auto found = r->get(std::string_view(key, key_length));
++++  if (!found.has_value()) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  return ada_string_create(found->data(), found->length());
++++}
++++
++++ada_strings ada_search_params_get_all(ada_url_search_params result,
++++                                      const char* key, size_t key_length) {
++++  ada::result<ada::url_search_params>& r =
++++      *(ada::result<ada::url_search_params>*)result;
++++  if (!r) {
++++    return new ada::result<std::vector<std::string>>(
++++        std::vector<std::string>());
++++  }
++++  return new ada::result<std::vector<std::string>>(
++++      r->get_all(std::string_view(key, key_length)));
++++}
++++
++++ada_url_search_params_keys_iter ada_search_params_get_keys(
++++    ada_url_search_params result) {
++++  ada::result<ada::url_search_params>& r =
++++      *(ada::result<ada::url_search_params>*)result;
++++  if (!r) {
++++    return new ada::result<ada::url_search_params_keys_iter>(
++++        ada::url_search_params_keys_iter());
++++  }
++++  return new ada::result<ada::url_search_params_keys_iter>(r->get_keys());
++++}
++++
++++ada_url_search_params_values_iter ada_search_params_get_values(
++++    ada_url_search_params result) {
++++  ada::result<ada::url_search_params>& r =
++++      *(ada::result<ada::url_search_params>*)result;
++++  if (!r) {
++++    return new ada::result<ada::url_search_params_values_iter>(
++++        ada::url_search_params_values_iter());
++++  }
++++  return new ada::result<ada::url_search_params_values_iter>(r->get_values());
++++}
++++
++++ada_url_search_params_entries_iter ada_search_params_get_entries(
++++    ada_url_search_params result) {
++++  ada::result<ada::url_search_params>& r =
++++      *(ada::result<ada::url_search_params>*)result;
++++  if (!r) {
++++    return new ada::result<ada::url_search_params_entries_iter>(
++++        ada::url_search_params_entries_iter());
++++  }
++++  return new ada::result<ada::url_search_params_entries_iter>(r->get_entries());
++++}
++++
++++void ada_free_strings(ada_strings result) {
++++  auto* r = (ada::result<std::vector<std::string>>*)result;
++++  delete r;
++++}
++++
++++size_t ada_strings_size(ada_strings result) {
++++  auto* r = (ada::result<std::vector<std::string>>*)result;
++++  if (!r) {
++++    return 0;
++++  }
++++  return (*r)->size();
++++}
++++
++++ada_string ada_strings_get(ada_strings result, size_t index) {
++++  auto* r = (ada::result<std::vector<std::string>>*)result;
++++  if (!r) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  std::string_view view = (*r)->at(index);
++++  return ada_string_create(view.data(), view.length());
++++}
++++
++++void ada_free_search_params_keys_iter(ada_url_search_params_keys_iter result) {
++++  auto* r = (ada::result<ada::url_search_params_keys_iter>*)result;
++++  delete r;
++++}
++++
++++ada_string ada_search_params_keys_iter_next(
++++    ada_url_search_params_keys_iter result) {
++++  auto* r = (ada::result<ada::url_search_params_keys_iter>*)result;
++++  if (!r) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  auto next = (*r)->next();
++++  if (!next.has_value()) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  return ada_string_create(next->data(), next->length());
++++}
++++
++++bool ada_search_params_keys_iter_has_next(
++++    ada_url_search_params_keys_iter result) {
++++  auto* r = (ada::result<ada::url_search_params_keys_iter>*)result;
++++  if (!r) {
++++    return false;
++++  }
++++  return (*r)->has_next();
++++}
++++
++++void ada_free_search_params_values_iter(
++++    ada_url_search_params_values_iter result) {
++++  auto* r = (ada::result<ada::url_search_params_values_iter>*)result;
++++  delete r;
++++}
++++
++++ada_string ada_search_params_values_iter_next(
++++    ada_url_search_params_values_iter result) {
++++  auto* r = (ada::result<ada::url_search_params_values_iter>*)result;
++++  if (!r) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  auto next = (*r)->next();
++++  if (!next.has_value()) {
++++    return ada_string_create(nullptr, 0);
++++  }
++++  return ada_string_create(next->data(), next->length());
++++}
++++
++++bool ada_search_params_values_iter_has_next(
++++    ada_url_search_params_values_iter result) {
++++  auto* r = (ada::result<ada::url_search_params_values_iter>*)result;
++++  if (!r) {
++++    return false;
++++  }
++++  return (*r)->has_next();
++++}
++++
++++void ada_free_search_params_entries_iter(
++++    ada_url_search_params_entries_iter result) {
++++  auto* r = (ada::result<ada::url_search_params_entries_iter>*)result;
++++  delete r;
++++}
++++
++++ada_string_pair ada_search_params_entries_iter_next(
++++    ada_url_search_params_entries_iter result) {
++++  auto* r = (ada::result<ada::url_search_params_entries_iter>*)result;
++++  if (!r) return {ada_string_create(nullptr, 0), ada_string_create(nullptr, 0)};
++++  auto next = (*r)->next();
++++  if (!next.has_value()) {
++++    return {ada_string_create(nullptr, 0), ada_string_create(nullptr, 0)};
++++  }
++++  return ada_string_pair{
++++      ada_string_create(next->first.data(), next->first.length()),
++++      ada_string_create(next->second.data(), next->second.length())};
++++}
++++
++++bool ada_search_params_entries_iter_has_next(
++++    ada_url_search_params_entries_iter result) {
++++  auto* r = (ada::result<ada::url_search_params_entries_iter>*)result;
++++  if (!r) {
++++    return false;
++++  }
++++  return (*r)->has_next();
++++}
++++
++++}  // extern "C"
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7a777574903912ea496fcaf374a856f901160ee4
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,9650 @@@@@
++++/* auto-generated on 2023-09-19 15:58:51 -0400. Do not edit! */
++++/* begin file src/idna.cpp */
++++/* begin file src/unicode_transcoding.cpp */
++++
++++#include <algorithm>
++++#include <cstdint>
++++#include <cstring>
++++
++++namespace ada::idna {
++++
++++size_t utf8_to_utf32(const char* buf, size_t len, char32_t* utf32_output) {
++++  const uint8_t* data = reinterpret_cast<const uint8_t*>(buf);
++++  size_t pos = 0;
++++  char32_t* start{utf32_output};
++++  while (pos < len) {
++++    // try to convert the next block of 16 ASCII bytes
++++    if (pos + 16 <= len) {  // if it is safe to read 16 more
++++                            // bytes, check that they are ascii
++++      uint64_t v1;
++++      std::memcpy(&v1, data + pos, sizeof(uint64_t));
++++      uint64_t v2;
++++      std::memcpy(&v2, data + pos + sizeof(uint64_t), sizeof(uint64_t));
++++      uint64_t v{v1 | v2};
++++      if ((v & 0x8080808080808080) == 0) {
++++        size_t final_pos = pos + 16;
++++        while (pos < final_pos) {
++++          *utf32_output++ = char32_t(buf[pos]);
++++          pos++;
++++        }
++++        continue;
++++      }
++++    }
++++    uint8_t leading_byte = data[pos];  // leading byte
++++    if (leading_byte < 0b10000000) {
++++      // converting one ASCII byte !!!
++++      *utf32_output++ = char32_t(leading_byte);
++++      pos++;
++++    } else if ((leading_byte & 0b11100000) == 0b11000000) {
++++      // We have a two-byte UTF-8
++++      if (pos + 1 >= len) {
++++        return 0;
++++      }  // minimal bound checking
++++      if ((data[pos + 1] & 0b11000000) != 0b10000000) {
++++        return 0;
++++      }
++++      // range check
++++      uint32_t code_point =
++++          (leading_byte & 0b00011111) << 6 | (data[pos + 1] & 0b00111111);
++++      if (code_point < 0x80 || 0x7ff < code_point) {
++++        return 0;
++++      }
++++      *utf32_output++ = char32_t(code_point);
++++      pos += 2;
++++    } else if ((leading_byte & 0b11110000) == 0b11100000) {
++++      // We have a three-byte UTF-8
++++      if (pos + 2 >= len) {
++++        return 0;
++++      }  // minimal bound checking
++++
++++      if ((data[pos + 1] & 0b11000000) != 0b10000000) {
++++        return 0;
++++      }
++++      if ((data[pos + 2] & 0b11000000) != 0b10000000) {
++++        return 0;
++++      }
++++      // range check
++++      uint32_t code_point = (leading_byte & 0b00001111) << 12 |
++++                            (data[pos + 1] & 0b00111111) << 6 |
++++                            (data[pos + 2] & 0b00111111);
++++      if (code_point < 0x800 || 0xffff < code_point ||
++++          (0xd7ff < code_point && code_point < 0xe000)) {
++++        return 0;
++++      }
++++      *utf32_output++ = char32_t(code_point);
++++      pos += 3;
++++    } else if ((leading_byte & 0b11111000) == 0b11110000) {  // 0b11110000
++++      // we have a 4-byte UTF-8 word.
++++      if (pos + 3 >= len) {
++++        return 0;
++++      }  // minimal bound checking
++++      if ((data[pos + 1] & 0b11000000) != 0b10000000) {
++++        return 0;
++++      }
++++      if ((data[pos + 2] & 0b11000000) != 0b10000000) {
++++        return 0;
++++      }
++++      if ((data[pos + 3] & 0b11000000) != 0b10000000) {
++++        return 0;
++++      }
++++
++++      // range check
++++      uint32_t code_point = (leading_byte & 0b00000111) << 18 |
++++                            (data[pos + 1] & 0b00111111) << 12 |
++++                            (data[pos + 2] & 0b00111111) << 6 |
++++                            (data[pos + 3] & 0b00111111);
++++      if (code_point <= 0xffff || 0x10ffff < code_point) {
++++        return 0;
++++      }
++++      *utf32_output++ = char32_t(code_point);
++++      pos += 4;
++++    } else {
++++      return 0;
++++    }
++++  }
++++  return utf32_output - start;
++++}
++++
++++size_t utf8_length_from_utf32(const char32_t* buf, size_t len) {
++++  // We are not BOM aware.
++++  const uint32_t* p = reinterpret_cast<const uint32_t*>(buf);
++++  size_t counter{0};
++++  for (size_t i = 0; i != len; ++i) {
++++    ++counter;                                      // ASCII
++++    counter += static_cast<size_t>(p[i] > 0x7F);    // two-byte
++++    counter += static_cast<size_t>(p[i] > 0x7FF);   // three-byte
++++    counter += static_cast<size_t>(p[i] > 0xFFFF);  // four-bytes
++++  }
++++  return counter;
++++}
++++
++++size_t utf32_length_from_utf8(const char* buf, size_t len) {
++++  const int8_t* p = reinterpret_cast<const int8_t*>(buf);
++++  return std::count_if(p, std::next(p, len), [](int8_t c) {
++++    // -65 is 0b10111111, anything larger in two-complement's
++++    // should start a new code point.
++++    return c > -65;
++++  });
++++}
++++
++++size_t utf32_to_utf8(const char32_t* buf, size_t len, char* utf8_output) {
++++  const uint32_t* data = reinterpret_cast<const uint32_t*>(buf);
++++  size_t pos = 0;
++++  char* start{utf8_output};
++++  while (pos < len) {
++++    // try to convert the next block of 2 ASCII characters
++++    if (pos + 2 <= len) {  // if it is safe to read 8 more
++++                           // bytes, check that they are ascii
++++      uint64_t v;
++++      std::memcpy(&v, data + pos, sizeof(uint64_t));
++++      if ((v & 0xFFFFFF80FFFFFF80) == 0) {
++++        *utf8_output++ = char(buf[pos]);
++++        *utf8_output++ = char(buf[pos + 1]);
++++        pos += 2;
++++        continue;
++++      }
++++    }
++++    uint32_t word = data[pos];
++++    if ((word & 0xFFFFFF80) == 0) {
++++      // will generate one UTF-8 bytes
++++      *utf8_output++ = char(word);
++++      pos++;
++++    } else if ((word & 0xFFFFF800) == 0) {
++++      // will generate two UTF-8 bytes
++++      // we have 0b110XXXXX 0b10XXXXXX
++++      *utf8_output++ = char((word >> 6) | 0b11000000);
++++      *utf8_output++ = char((word & 0b111111) | 0b10000000);
++++      pos++;
++++    } else if ((word & 0xFFFF0000) == 0) {
++++      // will generate three UTF-8 bytes
++++      // we have 0b1110XXXX 0b10XXXXXX 0b10XXXXXX
++++      if (word >= 0xD800 && word <= 0xDFFF) {
++++        return 0;
++++      }
++++      *utf8_output++ = char((word >> 12) | 0b11100000);
++++      *utf8_output++ = char(((word >> 6) & 0b111111) | 0b10000000);
++++      *utf8_output++ = char((word & 0b111111) | 0b10000000);
++++      pos++;
++++    } else {
++++      // will generate four UTF-8 bytes
++++      // we have 0b11110XXX 0b10XXXXXX 0b10XXXXXX
++++      // 0b10XXXXXX
++++      if (word > 0x10FFFF) {
++++        return 0;
++++      }
++++      *utf8_output++ = char((word >> 18) | 0b11110000);
++++      *utf8_output++ = char(((word >> 12) & 0b111111) | 0b10000000);
++++      *utf8_output++ = char(((word >> 6) & 0b111111) | 0b10000000);
++++      *utf8_output++ = char((word & 0b111111) | 0b10000000);
++++      pos++;
++++    }
++++  }
++++  return utf8_output - start;
++++}
++++}  // namespace ada::idna
++++/* end file src/unicode_transcoding.cpp */
++++/* begin file src/mapping.cpp */
++++
++++#include <algorithm>
++++#include <array>
++++#include <string>
++++
++++/* begin file src/mapping_tables.cpp */
++++// IDNA  15.0.0
++++
++++// clang-format off
++++#ifndef ADA_IDNA_TABLES_H
++++#define ADA_IDNA_TABLES_H
++++#include <cstdint>
++++
++++namespace ada::idna {
++++
++++const uint32_t mappings[5164] =
++++{
++++    97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113,
++++    114, 115, 116, 117, 118, 119, 120, 121, 122, 32, 32, 776, 32, 772, 50, 51, 32, 769,
++++    956, 32, 807, 49, 49, 8260, 52, 49, 8260, 50, 51, 8260, 52, 224, 225, 226, 227,
++++    228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243,
++++    244, 245, 246, 248, 249, 250, 251, 252, 253, 254, 257, 259, 261, 263, 265, 267,
++++    269, 271, 273, 275, 277, 279, 281, 283, 285, 287, 289, 291, 293, 295, 297, 299,
++++    301, 303, 105, 775, 309, 311, 314, 316, 318, 108, 183, 322, 324, 326, 328, 700,
++++    110, 331, 333, 335, 337, 339, 341, 343, 345, 347, 349, 351, 353, 355, 357, 359,
++++    361, 363, 365, 367, 369, 371, 373, 375, 255, 378, 380, 382, 595, 387, 389, 596,
++++    392, 598, 599, 396, 477, 601, 603, 402, 608, 611, 617, 616, 409, 623, 626, 629,
++++    417, 419, 421, 640, 424, 643, 429, 648, 432, 650, 651, 436, 438, 658, 441, 445,
++++    100, 382, 108, 106, 110, 106, 462, 464, 466, 468, 470, 472, 474, 476, 479, 481,
++++    483, 485, 487, 489, 491, 493, 495, 100, 122, 501, 405, 447, 505, 507, 509, 511,
++++    513, 515, 517, 519, 521, 523, 525, 527, 529, 531, 533, 535, 537, 539, 541, 543,
++++    414, 547, 549, 551, 553, 555, 557, 559, 561, 563, 11365, 572, 410, 11366, 578, 384,
++++    649, 652, 583, 585, 587, 589, 591, 614, 633, 635, 641, 32, 774, 32, 775, 32, 778,
++++    32, 808, 32, 771, 32, 779, 661, 768, 787, 776, 769, 953, 881, 883, 697, 887, 32,
++++    953, 59, 1011, 32, 776, 769, 940, 941, 942, 943, 972, 973, 974, 945, 946, 947, 948,
++++    949, 950, 951, 952, 954, 955, 957, 958, 959, 960, 961, 963, 964, 965, 966, 967,
++++    968, 969, 970, 971, 983, 985, 987, 989, 991, 993, 995, 997, 999, 1001, 1003, 1005,
++++    1007, 1016, 1019, 891, 892, 893, 1104, 1105, 1106, 1107, 1108, 1109, 1110, 1111,
++++    1112, 1113, 1114, 1115, 1116, 1117, 1118, 1119, 1072, 1073, 1074, 1075, 1076, 1077,
++++    1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1088, 1089, 1090, 1091,
++++    1092, 1093, 1094, 1095, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 1121, 1123,
++++    1125, 1127, 1129, 1131, 1133, 1135, 1137, 1139, 1141, 1143, 1145, 1147, 1149, 1151,
++++    1153, 1163, 1165, 1167, 1169, 1171, 1173, 1175, 1177, 1179, 1181, 1183, 1185, 1187,
++++    1189, 1191, 1193, 1195, 1197, 1199, 1201, 1203, 1205, 1207, 1209, 1211, 1213, 1215,
++++    1218, 1220, 1222, 1224, 1226, 1228, 1230, 1233, 1235, 1237, 1239, 1241, 1243, 1245,
++++    1247, 1249, 1251, 1253, 1255, 1257, 1259, 1261, 1263, 1265, 1267, 1269, 1271, 1273,
++++    1275, 1277, 1279, 1281, 1283, 1285, 1287, 1289, 1291, 1293, 1295, 1297, 1299, 1301,
++++    1303, 1305, 1307, 1309, 1311, 1313, 1315, 1317, 1319, 1321, 1323, 1325, 1327, 1377,
++++    1378, 1379, 1380, 1381, 1382, 1383, 1384, 1385, 1386, 1387, 1388, 1389, 1390, 1391,
++++    1392, 1393, 1394, 1395, 1396, 1397, 1398, 1399, 1400, 1401, 1402, 1403, 1404, 1405,
++++    1406, 1407, 1408, 1409, 1410, 1411, 1412, 1413, 1414, 1381, 1410, 1575, 1652, 1608,
++++    1652, 1735, 1652, 1610, 1652, 2325, 2364, 2326, 2364, 2327, 2364, 2332, 2364, 2337,
++++    2364, 2338, 2364, 2347, 2364, 2351, 2364, 2465, 2492, 2466, 2492, 2479, 2492, 2610,
++++    2620, 2616, 2620, 2582, 2620, 2583, 2620, 2588, 2620, 2603, 2620, 2849, 2876, 2850,
++++    2876, 3661, 3634, 3789, 3762, 3755, 3737, 3755, 3745, 3851, 3906, 4023, 3916, 4023,
++++    3921, 4023, 3926, 4023, 3931, 4023, 3904, 4021, 3953, 3954, 3953, 3956, 4018, 3968,
++++    4018, 3953, 3968, 4019, 3968, 4019, 3953, 3968, 3986, 4023, 3996, 4023, 4001, 4023,
++++    4006, 4023, 4011, 4023, 3984, 4021, 11559, 11565, 4316, 5104, 5105, 5106, 5107,
++++    5108, 5109, 42571, 4304, 4305, 4306, 4307, 4308, 4309, 4310, 4311, 4312, 4313, 4314,
++++    4315, 4317, 4318, 4319, 4320, 4321, 4322, 4323, 4324, 4325, 4326, 4327, 4328, 4329,
++++    4330, 4331, 4332, 4333, 4334, 4335, 4336, 4337, 4338, 4339, 4340, 4341, 4342, 4343,
++++    4344, 4345, 4346, 4349, 4350, 4351, 592, 593, 7426, 604, 7446, 7447, 7453, 7461,
++++    594, 597, 607, 609, 613, 618, 7547, 669, 621, 7557, 671, 625, 624, 627, 628, 632,
++++    642, 427, 7452, 656, 657, 7681, 7683, 7685, 7687, 7689, 7691, 7693, 7695, 7697,
++++    7699, 7701, 7703, 7705, 7707, 7709, 7711, 7713, 7715, 7717, 7719, 7721, 7723, 7725,
++++    7727, 7729, 7731, 7733, 7735, 7737, 7739, 7741, 7743, 7745, 7747, 7749, 7751, 7753,
++++    7755, 7757, 7759, 7761, 7763, 7765, 7767, 7769, 7771, 7773, 7775, 7777, 7779, 7781,
++++    7783, 7785, 7787, 7789, 7791, 7793, 7795, 7797, 7799, 7801, 7803, 7805, 7807, 7809,
++++    7811, 7813, 7815, 7817, 7819, 7821, 7823, 7825, 7827, 7829, 97, 702, 115, 115, 7841,
++++    7843, 7845, 7847, 7849, 7851, 7853, 7855, 7857, 7859, 7861, 7863, 7865, 7867, 7869,
++++    7871, 7873, 7875, 7877, 7879, 7881, 7883, 7885, 7887, 7889, 7891, 7893, 7895, 7897,
++++    7899, 7901, 7903, 7905, 7907, 7909, 7911, 7913, 7915, 7917, 7919, 7921, 7923, 7925,
++++    7927, 7929, 7931, 7933, 7935, 7936, 7937, 7938, 7939, 7940, 7941, 7942, 7943, 7952,
++++    7953, 7954, 7955, 7956, 7957, 7968, 7969, 7970, 7971, 7972, 7973, 7974, 7975, 7984,
++++    7985, 7986, 7987, 7988, 7989, 7990, 7991, 8000, 8001, 8002, 8003, 8004, 8005, 8017,
++++    8019, 8021, 8023, 8032, 8033, 8034, 8035, 8036, 8037, 8038, 8039, 7936, 953, 7937,
++++    953, 7938, 953, 7939, 953, 7940, 953, 7941, 953, 7942, 953, 7943, 953, 7968, 953,
++++    7969, 953, 7970, 953, 7971, 953, 7972, 953, 7973, 953, 7974, 953, 7975, 953, 8032,
++++    953, 8033, 953, 8034, 953, 8035, 953, 8036, 953, 8037, 953, 8038, 953, 8039, 953,
++++    8048, 953, 945, 953, 940, 953, 8118, 953, 8112, 8113, 32, 787, 32, 834, 32, 776,
++++    834, 8052, 953, 951, 953, 942, 953, 8134, 953, 8050, 32, 787, 768, 32, 787, 769,
++++    32, 787, 834, 912, 8144, 8145, 8054, 32, 788, 768, 32, 788, 769, 32, 788, 834, 944,
++++    8160, 8161, 8058, 8165, 32, 776, 768, 96, 8060, 953, 969, 953, 974, 953, 8182, 953,
++++    8056, 8208, 32, 819, 8242, 8242, 8242, 8242, 8242, 8245, 8245, 8245, 8245, 8245,
++++    33, 33, 32, 773, 63, 63, 63, 33, 33, 63, 48, 53, 54, 55, 56, 57, 43, 8722, 61, 40,
++++    41, 97, 47, 99, 97, 47, 115, 176, 99, 99, 47, 111, 99, 47, 117, 176, 102, 115, 109,
++++    116, 101, 108, 116, 109, 1488, 1489, 1490, 1491, 102, 97, 120, 8721, 49, 8260, 55,
++++    49, 8260, 57, 49, 8260, 49, 48, 49, 8260, 51, 50, 8260, 51, 49, 8260, 53, 50, 8260,
++++    53, 51, 8260, 53, 52, 8260, 53, 49, 8260, 54, 53, 8260, 54, 49, 8260, 56, 51, 8260,
++++    56, 53, 8260, 56, 55, 8260, 56, 105, 105, 105, 105, 105, 105, 118, 118, 105, 118,
++++    105, 105, 118, 105, 105, 105, 105, 120, 120, 105, 120, 105, 105, 48, 8260, 51, 8747,
++++    8747, 8747, 8747, 8747, 8750, 8750, 8750, 8750, 8750, 12296, 12297, 49, 50, 49,
++++    51, 49, 52, 49, 53, 49, 54, 49, 55, 49, 56, 49, 57, 50, 48, 40, 49, 41, 40, 50,
++++    41, 40, 51, 41, 40, 52, 41, 40, 53, 41, 40, 54, 41, 40, 55, 41, 40, 56, 41, 40,
++++    57, 41, 40, 49, 48, 41, 40, 49, 49, 41, 40, 49, 50, 41, 40, 49, 51, 41, 40, 49,
++++    52, 41, 40, 49, 53, 41, 40, 49, 54, 41, 40, 49, 55, 41, 40, 49, 56, 41, 40, 49,
++++    57, 41, 40, 50, 48, 41, 40, 97, 41, 40, 98, 41, 40, 99, 41, 40, 100, 41, 40, 101,
++++    41, 40, 102, 41, 40, 103, 41, 40, 104, 41, 40, 105, 41, 40, 106, 41, 40, 107, 41,
++++    40, 108, 41, 40, 109, 41, 40, 110, 41, 40, 111, 41, 40, 112, 41, 40, 113, 41, 40,
++++    114, 41, 40, 115, 41, 40, 116, 41, 40, 117, 41, 40, 118, 41, 40, 119, 41, 40, 120,
++++    41, 40, 121, 41, 40, 122, 41, 58, 58, 61, 61, 61, 10973, 824, 11312, 11313, 11314,
++++    11315, 11316, 11317, 11318, 11319, 11320, 11321, 11322, 11323, 11324, 11325, 11326,
++++    11327, 11328, 11329, 11330, 11331, 11332, 11333, 11334, 11335, 11336, 11337, 11338,
++++    11339, 11340, 11341, 11342, 11343, 11344, 11345, 11346, 11347, 11348, 11349, 11350,
++++    11351, 11352, 11353, 11354, 11355, 11356, 11357, 11358, 11359, 11361, 619, 7549,
++++    637, 11368, 11370, 11372, 11379, 11382, 575, 576, 11393, 11395, 11397, 11399, 11401,
++++    11403, 11405, 11407, 11409, 11411, 11413, 11415, 11417, 11419, 11421, 11423, 11425,
++++    11427, 11429, 11431, 11433, 11435, 11437, 11439, 11441, 11443, 11445, 11447, 11449,
++++    11451, 11453, 11455, 11457, 11459, 11461, 11463, 11465, 11467, 11469, 11471, 11473,
++++    11475, 11477, 11479, 11481, 11483, 11485, 11487, 11489, 11491, 11500, 11502, 11507,
++++    11617, 27597, 40863, 19968, 20008, 20022, 20031, 20057, 20101, 20108, 20128, 20154,
++++    20799, 20837, 20843, 20866, 20886, 20907, 20960, 20981, 20992, 21147, 21241, 21269,
++++    21274, 21304, 21313, 21340, 21353, 21378, 21430, 21448, 21475, 22231, 22303, 22763,
++++    22786, 22794, 22805, 22823, 22899, 23376, 23424, 23544, 23567, 23586, 23608, 23662,
++++    23665, 24027, 24037, 24049, 24062, 24178, 24186, 24191, 24308, 24318, 24331, 24339,
++++    24400, 24417, 24435, 24515, 25096, 25142, 25163, 25903, 25908, 25991, 26007, 26020,
++++    26041, 26080, 26085, 26352, 26376, 26408, 27424, 27490, 27513, 27571, 27595, 27604,
++++    27611, 27663, 27668, 27700, 28779, 29226, 29238, 29243, 29247, 29255, 29273, 29275,
++++    29356, 29572, 29577, 29916, 29926, 29976, 29983, 29992, 30000, 30091, 30098, 30326,
++++    30333, 30382, 30399, 30446, 30683, 30690, 30707, 31034, 31160, 31166, 31348, 31435,
++++    31481, 31859, 31992, 32566, 32593, 32650, 32701, 32769, 32780, 32786, 32819, 32895,
++++    32905, 33251, 33258, 33267, 33276, 33292, 33307, 33311, 33390, 33394, 33400, 34381,
++++    34411, 34880, 34892, 34915, 35198, 35211, 35282, 35328, 35895, 35910, 35925, 35960,
++++    35997, 36196, 36208, 36275, 36523, 36554, 36763, 36784, 36789, 37009, 37193, 37318,
++++    37324, 37329, 38263, 38272, 38428, 38582, 38585, 38632, 38737, 38750, 38754, 38761,
++++    38859, 38893, 38899, 38913, 39080, 39131, 39135, 39318, 39321, 39340, 39592, 39640,
++++    39647, 39717, 39727, 39730, 39740, 39770, 40165, 40565, 40575, 40613, 40635, 40643,
++++    40653, 40657, 40697, 40701, 40718, 40723, 40736, 40763, 40778, 40786, 40845, 40860,
++++    40864, 46, 12306, 21316, 21317, 32, 12441, 32, 12442, 12424, 12426, 12467, 12488,
++++    4352, 4353, 4522, 4354, 4524, 4525, 4355, 4356, 4357, 4528, 4529, 4530, 4531, 4532,
++++    4533, 4378, 4358, 4359, 4360, 4385, 4361, 4362, 4363, 4364, 4365, 4366, 4367, 4368,
++++    4369, 4370, 4449, 4450, 4451, 4452, 4453, 4454, 4455, 4456, 4457, 4458, 4459, 4460,
++++    4461, 4462, 4463, 4464, 4465, 4466, 4467, 4468, 4469, 4372, 4373, 4551, 4552, 4556,
++++    4558, 4563, 4567, 4569, 4380, 4573, 4575, 4381, 4382, 4384, 4386, 4387, 4391, 4393,
++++    4395, 4396, 4397, 4398, 4399, 4402, 4406, 4416, 4423, 4428, 4593, 4594, 4439, 4440,
++++    4441, 4484, 4485, 4488, 4497, 4498, 4500, 4510, 4513, 19977, 22235, 19978, 20013,
++++    19979, 30002, 19993, 19969, 22825, 22320, 40, 4352, 41, 40, 4354, 41, 40, 4355,
++++    41, 40, 4357, 41, 40, 4358, 41, 40, 4359, 41, 40, 4361, 41, 40, 4363, 41, 40, 4364,
++++    41, 40, 4366, 41, 40, 4367, 41, 40, 4368, 41, 40, 4369, 41, 40, 4370, 41, 40, 44032,
++++    41, 40, 45208, 41, 40, 45796, 41, 40, 46972, 41, 40, 47560, 41, 40, 48148, 41, 40,
++++    49324, 41, 40, 50500, 41, 40, 51088, 41, 40, 52264, 41, 40, 52852, 41, 40, 53440,
++++    41, 40, 54028, 41, 40, 54616, 41, 40, 51452, 41, 40, 50724, 51204, 41, 40, 50724,
++++    54980, 41, 40, 19968, 41, 40, 20108, 41, 40, 19977, 41, 40, 22235, 41, 40, 20116,
++++    41, 40, 20845, 41, 40, 19971, 41, 40, 20843, 41, 40, 20061, 41, 40, 21313, 41, 40,
++++    26376, 41, 40, 28779, 41, 40, 27700, 41, 40, 26408, 41, 40, 37329, 41, 40, 22303,
++++    41, 40, 26085, 41, 40, 26666, 41, 40, 26377, 41, 40, 31038, 41, 40, 21517, 41, 40,
++++    29305, 41, 40, 36001, 41, 40, 31069, 41, 40, 21172, 41, 40, 20195, 41, 40, 21628,
++++    41, 40, 23398, 41, 40, 30435, 41, 40, 20225, 41, 40, 36039, 41, 40, 21332, 41, 40,
++++    31085, 41, 40, 20241, 41, 40, 33258, 41, 40, 33267, 41, 21839, 24188, 31631, 112,
++++    116, 101, 50, 50, 50, 52, 50, 53, 50, 54, 50, 55, 50, 56, 50, 57, 51, 48, 51, 51,
++++    51, 52, 51, 53, 52280, 44256, 51452, 51032, 50864, 31192, 30007, 36969, 20778, 21360,
++++    27880, 38917, 20889, 27491, 24038, 21491, 21307, 23447, 22812, 51, 54, 51, 55, 51,
++++    56, 51, 57, 52, 48, 52, 52, 52, 53, 52, 54, 52, 55, 52, 56, 52, 57, 53, 48, 49,
++++    26376, 50, 26376, 51, 26376, 52, 26376, 53, 26376, 54, 26376, 55, 26376, 56, 26376,
++++    57, 26376, 49, 48, 26376, 49, 49, 26376, 49, 50, 26376, 104, 103, 101, 114, 103,
++++    101, 118, 108, 116, 100, 12450, 12452, 12454, 12456, 12458, 12459, 12461, 12463,
++++    12465, 12469, 12471, 12473, 12475, 12477, 12479, 12481, 12484, 12486, 12490, 12491,
++++    12492, 12493, 12494, 12495, 12498, 12501, 12504, 12507, 12510, 12511, 12512, 12513,
++++    12514, 12516, 12518, 12520, 12521, 12522, 12523, 12524, 12525, 12527, 12528, 12529,
++++    12530, 20196, 21644, 12450, 12497, 12540, 12488, 12450, 12523, 12501, 12449, 12450,
++++    12531, 12506, 12450, 12450, 12540, 12523, 12452, 12491, 12531, 12464, 12452, 12531,
++++    12481, 12454, 12457, 12531, 12456, 12473, 12463, 12540, 12489, 12456, 12540, 12459,
++++    12540, 12458, 12531, 12473, 12458, 12540, 12512, 12459, 12452, 12522, 12459, 12521,
++++    12483, 12488, 12459, 12525, 12522, 12540, 12460, 12525, 12531, 12460, 12531, 12510,
++++    12462, 12460, 12462, 12491, 12540, 12461, 12517, 12522, 12540, 12462, 12523, 12480,
++++    12540, 12461, 12525, 12461, 12525, 12464, 12521, 12512, 12461, 12525, 12513, 12540,
++++    12488, 12523, 12461, 12525, 12527, 12483, 12488, 12464, 12521, 12512, 12488, 12531,
++++    12463, 12523, 12476, 12452, 12525, 12463, 12525, 12540, 12493, 12465, 12540, 12473,
++++    12467, 12523, 12490, 12467, 12540, 12509, 12469, 12452, 12463, 12523, 12469, 12531,
++++    12481, 12540, 12512, 12471, 12522, 12531, 12464, 12475, 12531, 12481, 12475, 12531,
++++    12488, 12480, 12540, 12473, 12487, 12471, 12489, 12523, 12490, 12494, 12494, 12483,
++++    12488, 12495, 12452, 12484, 12497, 12540, 12475, 12531, 12488, 12497, 12540, 12484,
++++    12496, 12540, 12524, 12523, 12500, 12450, 12473, 12488, 12523, 12500, 12463, 12523,
++++    12500, 12467, 12499, 12523, 12501, 12449, 12521, 12483, 12489, 12501, 12451, 12540,
++++    12488, 12502, 12483, 12471, 12455, 12523, 12501, 12521, 12531, 12504, 12463, 12479,
++++    12540, 12523, 12506, 12477, 12506, 12491, 12498, 12504, 12523, 12484, 12506, 12531,
++++    12473, 12506, 12540, 12472, 12505, 12540, 12479, 12509, 12452, 12531, 12488, 12508,
++++    12523, 12488, 12507, 12531, 12509, 12531, 12489, 12507, 12540, 12523, 12507, 12540,
++++    12531, 12510, 12452, 12463, 12525, 12510, 12452, 12523, 12510, 12483, 12495, 12510,
++++    12523, 12463, 12510, 12531, 12471, 12519, 12531, 12511, 12463, 12525, 12531, 12511,
++++    12522, 12511, 12522, 12496, 12540, 12523, 12513, 12460, 12513, 12460, 12488, 12531,
++++    12516, 12540, 12489, 12516, 12540, 12523, 12518, 12450, 12531, 12522, 12483, 12488,
++++    12523, 12522, 12521, 12523, 12500, 12540, 12523, 12540, 12502, 12523, 12524, 12512,
++++    12524, 12531, 12488, 12466, 12531, 48, 28857, 49, 28857, 50, 28857, 51, 28857, 52,
++++    28857, 53, 28857, 54, 28857, 55, 28857, 56, 28857, 57, 28857, 49, 48, 28857, 49,
++++    49, 28857, 49, 50, 28857, 49, 51, 28857, 49, 52, 28857, 49, 53, 28857, 49, 54, 28857,
++++    49, 55, 28857, 49, 56, 28857, 49, 57, 28857, 50, 48, 28857, 50, 49, 28857, 50, 50,
++++    28857, 50, 51, 28857, 50, 52, 28857, 104, 112, 97, 100, 97, 97, 117, 98, 97, 114,
++++    111, 118, 112, 99, 100, 109, 100, 109, 50, 100, 109, 51, 105, 117, 24179, 25104,
++++    26157, 21644, 22823, 27491, 26126, 27835, 26666, 24335, 20250, 31038, 110, 97, 956,
++++    97, 109, 97, 107, 97, 107, 98, 109, 98, 103, 98, 99, 97, 108, 107, 99, 97, 108,
++++    112, 102, 110, 102, 956, 102, 956, 103, 109, 103, 107, 103, 104, 122, 107, 104,
++++    122, 109, 104, 122, 116, 104, 122, 956, 108, 109, 108, 100, 108, 102, 109, 110,
++++    109, 956, 109, 109, 109, 99, 109, 107, 109, 109, 109, 50, 99, 109, 50, 107, 109,
++++    50, 109, 109, 51, 99, 109, 51, 107, 109, 51, 109, 8725, 115, 109, 8725, 115, 50,
++++    107, 112, 97, 109, 112, 97, 103, 112, 97, 114, 97, 100, 114, 97, 100, 8725, 115,
++++    114, 97, 100, 8725, 115, 50, 112, 115, 110, 115, 956, 115, 109, 115, 112, 118, 110,
++++    118, 956, 118, 109, 118, 107, 118, 112, 119, 110, 119, 956, 119, 109, 119, 107,
++++    119, 107, 969, 109, 969, 98, 113, 99, 8725, 107, 103, 100, 98, 103, 121, 104, 97,
++++    105, 110, 107, 107, 107, 116, 108, 110, 108, 111, 103, 108, 120, 109, 105, 108,
++++    109, 111, 108, 112, 104, 112, 112, 109, 112, 114, 115, 118, 119, 98, 118, 8725,
++++    109, 97, 8725, 109, 49, 26085, 50, 26085, 51, 26085, 52, 26085, 53, 26085, 54, 26085,
++++    55, 26085, 56, 26085, 57, 26085, 49, 48, 26085, 49, 49, 26085, 49, 50, 26085, 49,
++++    51, 26085, 49, 52, 26085, 49, 53, 26085, 49, 54, 26085, 49, 55, 26085, 49, 56, 26085,
++++    49, 57, 26085, 50, 48, 26085, 50, 49, 26085, 50, 50, 26085, 50, 51, 26085, 50, 52,
++++    26085, 50, 53, 26085, 50, 54, 26085, 50, 55, 26085, 50, 56, 26085, 50, 57, 26085,
++++    51, 48, 26085, 51, 49, 26085, 103, 97, 108, 42561, 42563, 42565, 42567, 42569, 42573,
++++    42575, 42577, 42579, 42581, 42583, 42585, 42587, 42589, 42591, 42593, 42595, 42597,
++++    42599, 42601, 42603, 42605, 42625, 42627, 42629, 42631, 42633, 42635, 42637, 42639,
++++    42641, 42643, 42645, 42647, 42649, 42651, 42787, 42789, 42791, 42793, 42795, 42797,
++++    42799, 42803, 42805, 42807, 42809, 42811, 42813, 42815, 42817, 42819, 42821, 42823,
++++    42825, 42827, 42829, 42831, 42833, 42835, 42837, 42839, 42841, 42843, 42845, 42847,
++++    42849, 42851, 42853, 42855, 42857, 42859, 42861, 42863, 42874, 42876, 7545, 42879,
++++    42881, 42883, 42885, 42887, 42892, 42897, 42899, 42903, 42905, 42907, 42909, 42911,
++++    42913, 42915, 42917, 42919, 42921, 620, 670, 647, 43859, 42933, 42935, 42937, 42939,
++++    42941, 42943, 42945, 42947, 42900, 7566, 42952, 42954, 42961, 42967, 42969, 42998,
++++    43831, 43858, 653, 5024, 5025, 5026, 5027, 5028, 5029, 5030, 5031, 5032, 5033, 5034,
++++    5035, 5036, 5037, 5038, 5039, 5040, 5041, 5042, 5043, 5044, 5045, 5046, 5047, 5048,
++++    5049, 5050, 5051, 5052, 5053, 5054, 5055, 5056, 5057, 5058, 5059, 5060, 5061, 5062,
++++    5063, 5064, 5065, 5066, 5067, 5068, 5069, 5070, 5071, 5072, 5073, 5074, 5075, 5076,
++++    5077, 5078, 5079, 5080, 5081, 5082, 5083, 5084, 5085, 5086, 5087, 5088, 5089, 5090,
++++    5091, 5092, 5093, 5094, 5095, 5096, 5097, 5098, 5099, 5100, 5101, 5102, 5103, 35912,
++++    26356, 36040, 28369, 20018, 21477, 22865, 21895, 22856, 25078, 30313, 32645, 34367,
++++    34746, 35064, 37007, 27138, 27931, 28889, 29662, 33853, 37226, 39409, 20098, 21365,
++++    27396, 29211, 34349, 40478, 23888, 28651, 34253, 35172, 25289, 33240, 34847, 24266,
++++    26391, 28010, 29436, 37070, 20358, 20919, 21214, 25796, 27347, 29200, 30439, 34310,
++++    34396, 36335, 38706, 39791, 40442, 30860, 31103, 32160, 33737, 37636, 35542, 22751,
++++    24324, 31840, 32894, 29282, 30922, 36034, 38647, 22744, 23650, 27155, 28122, 28431,
++++    32047, 32311, 38475, 21202, 32907, 20956, 20940, 31260, 32190, 33777, 38517, 35712,
++++    25295, 35582, 20025, 23527, 24594, 29575, 30064, 21271, 30971, 20415, 24489, 19981,
++++    27852, 25976, 32034, 21443, 22622, 30465, 33865, 35498, 27578, 27784, 25342, 33509,
++++    25504, 30053, 20142, 20841, 20937, 26753, 31975, 33391, 35538, 37327, 21237, 21570,
++++    24300, 26053, 28670, 31018, 38317, 39530, 40599, 40654, 26310, 27511, 36706, 24180,
++++    24976, 25088, 25754, 28451, 29001, 29833, 31178, 32244, 32879, 36646, 34030, 36899,
++++    37706, 21015, 21155, 21693, 28872, 35010, 24265, 24565, 25467, 27566, 31806, 29557,
++++    22265, 23994, 24604, 29618, 29801, 32666, 32838, 37428, 38646, 38728, 38936, 20363,
++++    31150, 37300, 38584, 24801, 20102, 20698, 23534, 23615, 26009, 29134, 30274, 34044,
++++    36988, 26248, 38446, 21129, 26491, 26611, 27969, 28316, 29705, 30041, 30827, 32016,
++++    39006, 25134, 38520, 20523, 23833, 28138, 36650, 24459, 24900, 26647, 38534, 21033,
++++    21519, 23653, 26131, 26446, 26792, 27877, 29702, 30178, 32633, 35023, 35041, 38626,
++++    21311, 28346, 21533, 29136, 29848, 34298, 38563, 40023, 40607, 26519, 28107, 33256,
++++    31520, 31890, 29376, 28825, 35672, 20160, 33590, 21050, 20999, 24230, 25299, 31958,
++++    23429, 27934, 26292, 36667, 38477, 24275, 20800, 21952, 22618, 26228, 20958, 29482,
++++    30410, 31036, 31070, 31077, 31119, 38742, 31934, 34322, 35576, 36920, 37117, 39151,
++++    39164, 39208, 40372, 37086, 38583, 20398, 20711, 20813, 21193, 21220, 21329, 21917,
++++    22022, 22120, 22592, 22696, 23652, 24724, 24936, 24974, 25074, 25935, 26082, 26257,
++++    26757, 28023, 28186, 28450, 29038, 29227, 29730, 30865, 31049, 31048, 31056, 31062,
++++    31117, 31118, 31296, 31361, 31680, 32265, 32321, 32626, 32773, 33261, 33401, 33879,
++++    35088, 35222, 35585, 35641, 36051, 36104, 36790, 38627, 38911, 38971, 24693, 148206,
++++    33304, 20006, 20917, 20840, 20352, 20805, 20864, 21191, 21242, 21845, 21913, 21986,
++++    22707, 22852, 22868, 23138, 23336, 24274, 24281, 24425, 24493, 24792, 24910, 24840,
++++    24928, 25140, 25540, 25628, 25682, 25942, 26395, 26454, 28379, 28363, 28702, 30631,
++++    29237, 29359, 29809, 29958, 30011, 30237, 30239, 30427, 30452, 30538, 30528, 30924,
++++    31409, 31867, 32091, 32574, 33618, 33775, 34681, 35137, 35206, 35519, 35531, 35565,
++++    35722, 36664, 36978, 37273, 37494, 38524, 38875, 38923, 39698, 141386, 141380, 144341,
++++    15261, 16408, 16441, 152137, 154832, 163539, 40771, 40846, 102, 102, 102, 105, 102,
++++    108, 102, 102, 108, 1396, 1398, 1396, 1381, 1396, 1387, 1406, 1398, 1396, 1389,
++++    1497, 1460, 1522, 1463, 1506, 1492, 1499, 1500, 1501, 1512, 1514, 1513, 1473, 1513,
++++    1474, 1513, 1468, 1473, 1513, 1468, 1474, 1488, 1463, 1488, 1464, 1488, 1468, 1489,
++++    1468, 1490, 1468, 1491, 1468, 1492, 1468, 1493, 1468, 1494, 1468, 1496, 1468, 1497,
++++    1468, 1498, 1468, 1499, 1468, 1500, 1468, 1502, 1468, 1504, 1468, 1505, 1468, 1507,
++++    1468, 1508, 1468, 1510, 1468, 1511, 1468, 1512, 1468, 1514, 1468, 1493, 1465, 1489,
++++    1471, 1499, 1471, 1508, 1471, 1488, 1500, 1649, 1659, 1662, 1664, 1658, 1663, 1657,
++++    1700, 1702, 1668, 1667, 1670, 1671, 1677, 1676, 1678, 1672, 1688, 1681, 1705, 1711,
++++    1715, 1713, 1722, 1723, 1728, 1729, 1726, 1746, 1747, 1709, 1734, 1736, 1739, 1733,
++++    1737, 1744, 1609, 1574, 1575, 1574, 1749, 1574, 1608, 1574, 1735, 1574, 1734, 1574,
++++    1736, 1574, 1744, 1574, 1609, 1740, 1574, 1580, 1574, 1581, 1574, 1605, 1574, 1610,
++++    1576, 1580, 1576, 1581, 1576, 1582, 1576, 1605, 1576, 1609, 1576, 1610, 1578, 1580,
++++    1578, 1581, 1578, 1582, 1578, 1605, 1578, 1609, 1578, 1610, 1579, 1580, 1579, 1605,
++++    1579, 1609, 1579, 1610, 1580, 1581, 1580, 1605, 1581, 1605, 1582, 1580, 1582, 1581,
++++    1582, 1605, 1587, 1580, 1587, 1581, 1587, 1582, 1587, 1605, 1589, 1581, 1589, 1605,
++++    1590, 1580, 1590, 1581, 1590, 1582, 1590, 1605, 1591, 1581, 1591, 1605, 1592, 1605,
++++    1593, 1580, 1593, 1605, 1594, 1580, 1594, 1605, 1601, 1580, 1601, 1581, 1601, 1582,
++++    1601, 1605, 1601, 1609, 1601, 1610, 1602, 1581, 1602, 1605, 1602, 1609, 1602, 1610,
++++    1603, 1575, 1603, 1580, 1603, 1581, 1603, 1582, 1603, 1604, 1603, 1605, 1603, 1609,
++++    1603, 1610, 1604, 1580, 1604, 1581, 1604, 1582, 1604, 1605, 1604, 1609, 1604, 1610,
++++    1605, 1580, 1605, 1605, 1605, 1609, 1605, 1610, 1606, 1580, 1606, 1581, 1606, 1582,
++++    1606, 1605, 1606, 1609, 1606, 1610, 1607, 1580, 1607, 1605, 1607, 1609, 1607, 1610,
++++    1610, 1581, 1610, 1582, 1610, 1609, 1584, 1648, 1585, 1648, 1609, 1648, 32, 1612,
++++    1617, 32, 1613, 1617, 32, 1614, 1617, 32, 1615, 1617, 32, 1616, 1617, 32, 1617,
++++    1648, 1574, 1585, 1574, 1586, 1574, 1606, 1576, 1585, 1576, 1586, 1576, 1606, 1578,
++++    1585, 1578, 1586, 1578, 1606, 1579, 1585, 1579, 1586, 1579, 1606, 1605, 1575, 1606,
++++    1585, 1606, 1586, 1606, 1606, 1610, 1585, 1610, 1586, 1574, 1582, 1574, 1607, 1576,
++++    1607, 1578, 1607, 1589, 1582, 1604, 1607, 1606, 1607, 1607, 1648, 1579, 1607, 1587,
++++    1607, 1588, 1605, 1588, 1607, 1600, 1614, 1617, 1600, 1615, 1617, 1600, 1616, 1617,
++++    1591, 1609, 1591, 1610, 1593, 1609, 1593, 1610, 1594, 1609, 1594, 1610, 1587, 1609,
++++    1587, 1610, 1588, 1609, 1588, 1610, 1581, 1609, 1580, 1609, 1580, 1610, 1582, 1609,
++++    1589, 1609, 1589, 1610, 1590, 1609, 1590, 1610, 1588, 1580, 1588, 1581, 1588, 1582,
++++    1588, 1585, 1587, 1585, 1589, 1585, 1590, 1585, 1575, 1611, 1578, 1580, 1605, 1578,
++++    1581, 1580, 1578, 1581, 1605, 1578, 1582, 1605, 1578, 1605, 1580, 1578, 1605, 1581,
++++    1578, 1605, 1582, 1581, 1605, 1610, 1581, 1605, 1609, 1587, 1581, 1580, 1587, 1580,
++++    1581, 1587, 1580, 1609, 1587, 1605, 1581, 1587, 1605, 1580, 1587, 1605, 1605, 1589,
++++    1581, 1581, 1589, 1605, 1605, 1588, 1581, 1605, 1588, 1580, 1610, 1588, 1605, 1582,
++++    1588, 1605, 1605, 1590, 1581, 1609, 1590, 1582, 1605, 1591, 1605, 1581, 1591, 1605,
++++    1605, 1591, 1605, 1610, 1593, 1580, 1605, 1593, 1605, 1605, 1593, 1605, 1609, 1594,
++++    1605, 1605, 1594, 1605, 1610, 1594, 1605, 1609, 1601, 1582, 1605, 1602, 1605, 1581,
++++    1602, 1605, 1605, 1604, 1581, 1605, 1604, 1581, 1610, 1604, 1581, 1609, 1604, 1580,
++++    1580, 1604, 1582, 1605, 1604, 1605, 1581, 1605, 1581, 1580, 1605, 1581, 1610, 1605,
++++    1580, 1581, 1605, 1582, 1605, 1605, 1580, 1582, 1607, 1605, 1580, 1607, 1605, 1605,
++++    1606, 1581, 1605, 1606, 1581, 1609, 1606, 1580, 1605, 1606, 1580, 1609, 1606, 1605,
++++    1610, 1606, 1605, 1609, 1610, 1605, 1605, 1576, 1582, 1610, 1578, 1580, 1610, 1578,
++++    1580, 1609, 1578, 1582, 1610, 1578, 1582, 1609, 1578, 1605, 1610, 1578, 1605, 1609,
++++    1580, 1605, 1610, 1580, 1581, 1609, 1580, 1605, 1609, 1587, 1582, 1609, 1589, 1581,
++++    1610, 1588, 1581, 1610, 1590, 1581, 1610, 1604, 1580, 1610, 1604, 1605, 1610, 1610,
++++    1580, 1610, 1610, 1605, 1610, 1605, 1605, 1610, 1602, 1605, 1610, 1606, 1581, 1610,
++++    1593, 1605, 1610, 1603, 1605, 1610, 1606, 1580, 1581, 1605, 1582, 1610, 1604, 1580,
++++    1605, 1603, 1605, 1605, 1580, 1581, 1610, 1581, 1580, 1610, 1605, 1580, 1610, 1601,
++++    1605, 1610, 1576, 1581, 1610, 1587, 1582, 1610, 1606, 1580, 1610, 1589, 1604, 1746,
++++    1602, 1604, 1746, 1575, 1604, 1604, 1607, 1575, 1603, 1576, 1585, 1605, 1581, 1605,
++++    1583, 1589, 1604, 1593, 1605, 1585, 1587, 1608, 1604, 1593, 1604, 1610, 1607, 1608,
++++    1587, 1604, 1605, 1589, 1604, 1609, 1589, 1604, 1609, 32, 1575, 1604, 1604, 1607,
++++    32, 1593, 1604, 1610, 1607, 32, 1608, 1587, 1604, 1605, 1580, 1604, 32, 1580, 1604,
++++    1575, 1604, 1607, 1585, 1740, 1575, 1604, 44, 12289, 12310, 12311, 8212, 8211, 95,
++++    123, 125, 12308, 12309, 12304, 12305, 12298, 12299, 12300, 12301, 12302, 12303,
++++    91, 93, 35, 38, 42, 45, 60, 62, 92, 36, 37, 64, 32, 1611, 1600, 1611, 1600, 1617,
++++    32, 1618, 1600, 1618, 1569, 1570, 1571, 1572, 1573, 1577, 1604, 1570, 1604, 1571,
++++    1604, 1573, 34, 39, 94, 124, 126, 10629, 10630, 12539, 12453, 12515, 162, 163, 172,
++++    166, 165, 8361, 9474, 8592, 8593, 8594, 8595, 9632, 9675, 66600, 66601, 66602, 66603,
++++    66604, 66605, 66606, 66607, 66608, 66609, 66610, 66611, 66612, 66613, 66614, 66615,
++++    66616, 66617, 66618, 66619, 66620, 66621, 66622, 66623, 66624, 66625, 66626, 66627,
++++    66628, 66629, 66630, 66631, 66632, 66633, 66634, 66635, 66636, 66637, 66638, 66639,
++++    66776, 66777, 66778, 66779, 66780, 66781, 66782, 66783, 66784, 66785, 66786, 66787,
++++    66788, 66789, 66790, 66791, 66792, 66793, 66794, 66795, 66796, 66797, 66798, 66799,
++++    66800, 66801, 66802, 66803, 66804, 66805, 66806, 66807, 66808, 66809, 66810, 66811,
++++    66967, 66968, 66969, 66970, 66971, 66972, 66973, 66974, 66975, 66976, 66977, 66979,
++++    66980, 66981, 66982, 66983, 66984, 66985, 66986, 66987, 66988, 66989, 66990, 66991,
++++    66992, 66993, 66995, 66996, 66997, 66998, 66999, 67000, 67001, 67003, 67004, 720,
++++    721, 665, 675, 43878, 677, 676, 7569, 600, 606, 681, 612, 610, 667, 668, 615, 644,
++++    682, 683, 122628, 42894, 622, 122629, 654, 122630, 630, 631, 634, 122632, 638, 680,
++++    678, 43879, 679, 11377, 655, 673, 674, 664, 448, 449, 450, 122634, 122654, 68800,
++++    68801, 68802, 68803, 68804, 68805, 68806, 68807, 68808, 68809, 68810, 68811, 68812,
++++    68813, 68814, 68815, 68816, 68817, 68818, 68819, 68820, 68821, 68822, 68823, 68824,
++++    68825, 68826, 68827, 68828, 68829, 68830, 68831, 68832, 68833, 68834, 68835, 68836,
++++    68837, 68838, 68839, 68840, 68841, 68842, 68843, 68844, 68845, 68846, 68847, 68848,
++++    68849, 68850, 71872, 71873, 71874, 71875, 71876, 71877, 71878, 71879, 71880, 71881,
++++    71882, 71883, 71884, 71885, 71886, 71887, 71888, 71889, 71890, 71891, 71892, 71893,
++++    71894, 71895, 71896, 71897, 71898, 71899, 71900, 71901, 71902, 71903, 93792, 93793,
++++    93794, 93795, 93796, 93797, 93798, 93799, 93800, 93801, 93802, 93803, 93804, 93805,
++++    93806, 93807, 93808, 93809, 93810, 93811, 93812, 93813, 93814, 93815, 93816, 93817,
++++    93818, 93819, 93820, 93821, 93822, 93823, 119127, 119141, 119128, 119141, 119128,
++++    119141, 119150, 119128, 119141, 119151, 119128, 119141, 119152, 119128, 119141,
++++    119153, 119128, 119141, 119154, 119225, 119141, 119226, 119141, 119225, 119141,
++++    119150, 119226, 119141, 119150, 119225, 119141, 119151, 119226, 119141, 119151,
++++    305, 567, 8711, 8706, 1231, 125218, 125219, 125220, 125221, 125222, 125223, 125224,
++++    125225, 125226, 125227, 125228, 125229, 125230, 125231, 125232, 125233, 125234,
++++    125235, 125236, 125237, 125238, 125239, 125240, 125241, 125242, 125243, 125244,
++++    125245, 125246, 125247, 125248, 125249, 125250, 125251, 1646, 1697, 1647, 48, 44,
++++    49, 44, 50, 44, 51, 44, 52, 44, 53, 44, 54, 44, 55, 44, 56, 44, 57, 44, 12308, 115,
++++    12309, 119, 122, 104, 118, 115, 100, 112, 112, 118, 119, 99, 109, 114, 100, 106,
++++    12411, 12363, 12467, 12467, 23383, 21452, 22810, 35299, 20132, 26144, 28961, 21069,
++++    24460, 20877, 26032, 21021, 32066, 36009, 22768, 21561, 28436, 25237, 25429, 36938,
++++    25351, 25171, 31105, 31354, 21512, 28288, 30003, 21106, 21942, 37197, 12308, 26412,
++++    12309, 12308, 19977, 12309, 12308, 20108, 12309, 12308, 23433, 12309, 12308, 28857,
++++    12309, 12308, 25171, 12309, 12308, 30423, 12309, 12308, 21213, 12309, 12308, 25943,
++++    12309, 24471, 21487, 20029, 20024, 20033, 131362, 20320, 20411, 20482, 20602, 20633,
++++    20687, 13470, 132666, 20820, 20836, 20855, 132380, 13497, 20839, 132427, 20887,
++++    20900, 20172, 20908, 168415, 20995, 13535, 21051, 21062, 21111, 13589, 21253, 21254,
++++    21321, 21338, 21363, 21373, 21375, 133676, 28784, 21450, 21471, 133987, 21483, 21489,
++++    21510, 21662, 21560, 21576, 21608, 21666, 21750, 21776, 21843, 21859, 21892, 21931,
++++    21939, 21954, 22294, 22295, 22097, 22132, 22766, 22478, 22516, 22541, 22411, 22578,
++++    22577, 22700, 136420, 22770, 22775, 22790, 22818, 22882, 136872, 136938, 23020,
++++    23067, 23079, 23000, 23142, 14062, 23304, 23358, 137672, 23491, 23512, 23539, 138008,
++++    23551, 23558, 14209, 23648, 23744, 23693, 138724, 23875, 138726, 23918, 23915, 23932,
++++    24033, 24034, 14383, 24061, 24104, 24125, 24169, 14434, 139651, 14460, 24240, 24243,
++++    24246, 172946, 140081, 33281, 24354, 14535, 144056, 156122, 24418, 24427, 14563,
++++    24474, 24525, 24535, 24569, 24705, 14650, 14620, 141012, 24775, 24904, 24908, 24954,
++++    25010, 24996, 25007, 25054, 25115, 25181, 25265, 25300, 25424, 142092, 25405, 25340,
++++    25448, 25475, 25572, 142321, 25634, 25541, 25513, 14894, 25705, 25726, 25757, 25719,
++++    14956, 25964, 143370, 26083, 26360, 26185, 15129, 15112, 15076, 20882, 20885, 26368,
++++    26268, 32941, 17369, 26401, 26462, 26451, 144323, 15177, 26618, 26501, 26706, 144493,
++++    26766, 26655, 26900, 26946, 27043, 27114, 27304, 145059, 27355, 15384, 27425, 145575,
++++    27476, 15438, 27506, 27551, 27579, 146061, 138507, 146170, 27726, 146620, 27839,
++++    27853, 27751, 27926, 27966, 28009, 28024, 28037, 146718, 27956, 28207, 28270, 15667,
++++    28359, 147153, 28153, 28526, 147294, 147342, 28614, 28729, 28699, 15766, 28746,
++++    28797, 28791, 28845, 132389, 28997, 148067, 29084, 29224, 29264, 149000, 29312,
++++    29333, 149301, 149524, 29562, 29579, 16044, 29605, 16056, 29767, 29788, 29829, 29898,
++++    16155, 29988, 150582, 30014, 150674, 139679, 30224, 151457, 151480, 151620, 16380,
++++    16392, 151795, 151794, 151833, 151859, 30494, 30495, 30603, 16454, 16534, 152605,
++++    30798, 16611, 153126, 153242, 153285, 31211, 16687, 31306, 31311, 153980, 154279,
++++    16898, 154539, 31686, 31689, 16935, 154752, 31954, 17056, 31976, 31971, 32000, 155526,
++++    32099, 17153, 32199, 32258, 32325, 17204, 156200, 156231, 17241, 156377, 32634,
++++    156478, 32661, 32762, 156890, 156963, 32864, 157096, 32880, 144223, 17365, 32946,
++++    33027, 17419, 33086, 23221, 157607, 157621, 144275, 144284, 33284, 36766, 17515,
++++    33425, 33419, 33437, 21171, 33457, 33459, 33469, 33510, 158524, 33565, 33635, 33709,
++++    33571, 33725, 33767, 33619, 33738, 33740, 33756, 158774, 159083, 158933, 17707,
++++    34033, 34035, 34070, 160714, 34148, 159532, 17757, 17761, 159665, 159954, 17771,
++++    34384, 34407, 34409, 34473, 34440, 34574, 34530, 34600, 34667, 34694, 34785, 34817,
++++    17913, 34912, 161383, 35031, 35038, 17973, 35066, 13499, 161966, 162150, 18110,
++++    18119, 35488, 162984, 36011, 36033, 36123, 36215, 163631, 133124, 36299, 36284,
++++    36336, 133342, 36564, 165330, 165357, 37012, 37105, 37137, 165678, 37147, 37432,
++++    37591, 37592, 37500, 37881, 37909, 166906, 38283, 18837, 38327, 167287, 18918, 38595,
++++    23986, 38691, 168261, 168474, 19054, 19062, 38880, 168970, 19122, 169110, 38953,
++++    169398, 39138, 19251, 39209, 39335, 39362, 39422, 19406, 170800, 40000, 40189, 19662,
++++    19693, 40295, 172238, 19704, 172293, 172558, 172689, 19798, 40702, 40709, 40719,
++++    40726, 173568,
++++
++++};
++++const uint32_t table[8000][2] =
++++{
++++    {0, 1}, {65, 16777219}, {66, 16777475}, {67, 16777731},
++++    {68, 16777987}, {69, 16778243}, {70, 16778499}, {71, 16778755},
++++    {72, 16779011}, {73, 16779267}, {74, 16779523}, {75, 16779779},
++++    {76, 16780035}, {77, 16780291}, {78, 16780547}, {79, 16780803},
++++    {80, 16781059}, {81, 16781315}, {82, 16781571}, {83, 16781827},
++++    {84, 16782083}, {85, 16782339}, {86, 16782595}, {87, 16782851},
++++    {88, 16783107}, {89, 16783363}, {90, 16783619}, {91, 1},
++++    {128, 2}, {160, 16783875}, {161, 1}, {168, 33561347},
++++    {169, 1}, {170, 16777219}, {171, 1}, {173, 0},
++++    {174, 1}, {175, 33561859}, {176, 1}, {178, 16785155},
++++    {179, 16785411}, {180, 33562883}, {181, 16786179}, {182, 1},
++++    {184, 33563651}, {185, 16786947}, {186, 16780803}, {187, 1},
++++    {188, 50341635}, {189, 50342403}, {190, 50343171}, {191, 1},
++++    {192, 16789507}, {193, 16789763}, {194, 16790019}, {195, 16790275},
++++    {196, 16790531}, {197, 16790787}, {198, 16791043}, {199, 16791299},
++++    {200, 16791555}, {201, 16791811}, {202, 16792067}, {203, 16792323},
++++    {204, 16792579}, {205, 16792835}, {206, 16793091}, {207, 16793347},
++++    {208, 16793603}, {209, 16793859}, {210, 16794115}, {211, 16794371},
++++    {212, 16794627}, {213, 16794883}, {214, 16795139}, {215, 1},
++++    {216, 16795395}, {217, 16795651}, {218, 16795907}, {219, 16796163},
++++    {220, 16796419}, {221, 16796675}, {222, 16796931}, {223, 1},
++++    {256, 16797187}, {257, 1}, {258, 16797443}, {259, 1},
++++    {260, 16797699}, {261, 1}, {262, 16797955}, {263, 1},
++++    {264, 16798211}, {265, 1}, {266, 16798467}, {267, 1},
++++    {268, 16798723}, {269, 1}, {270, 16798979}, {271, 1},
++++    {272, 16799235}, {273, 1}, {274, 16799491}, {275, 1},
++++    {276, 16799747}, {277, 1}, {278, 16800003}, {279, 1},
++++    {280, 16800259}, {281, 1}, {282, 16800515}, {283, 1},
++++    {284, 16800771}, {285, 1}, {286, 16801027}, {287, 1},
++++    {288, 16801283}, {289, 1}, {290, 16801539}, {291, 1},
++++    {292, 16801795}, {293, 1}, {294, 16802051}, {295, 1},
++++    {296, 16802307}, {297, 1}, {298, 16802563}, {299, 1},
++++    {300, 16802819}, {301, 1}, {302, 16803075}, {303, 1},
++++    {304, 33580547}, {305, 1}, {306, 33556483}, {308, 16803843},
++++    {309, 1}, {310, 16804099}, {311, 1}, {313, 16804355},
++++    {314, 1}, {315, 16804611}, {316, 1}, {317, 16804867},
++++    {318, 1}, {319, 33582339}, {321, 16805635}, {322, 1},
++++    {323, 16805891}, {324, 1}, {325, 16806147}, {326, 1},
++++    {327, 16806403}, {328, 1}, {329, 33583875}, {330, 16807171},
++++    {331, 1}, {332, 16807427}, {333, 1}, {334, 16807683},
++++    {335, 1}, {336, 16807939}, {337, 1}, {338, 16808195},
++++    {339, 1}, {340, 16808451}, {341, 1}, {342, 16808707},
++++    {343, 1}, {344, 16808963}, {345, 1}, {346, 16809219},
++++    {347, 1}, {348, 16809475}, {349, 1}, {350, 16809731},
++++    {351, 1}, {352, 16809987}, {353, 1}, {354, 16810243},
++++    {355, 1}, {356, 16810499}, {357, 1}, {358, 16810755},
++++    {359, 1}, {360, 16811011}, {361, 1}, {362, 16811267},
++++    {363, 1}, {364, 16811523}, {365, 1}, {366, 16811779},
++++    {367, 1}, {368, 16812035}, {369, 1}, {370, 16812291},
++++    {371, 1}, {372, 16812547}, {373, 1}, {374, 16812803},
++++    {375, 1}, {376, 16813059}, {377, 16813315}, {378, 1},
++++    {379, 16813571}, {380, 1}, {381, 16813827}, {382, 1},
++++    {383, 16781827}, {384, 1}, {385, 16814083}, {386, 16814339},
++++    {387, 1}, {388, 16814595}, {389, 1}, {390, 16814851},
++++    {391, 16815107}, {392, 1}, {393, 16815363}, {394, 16815619},
++++    {395, 16815875}, {396, 1}, {398, 16816131}, {399, 16816387},
++++    {400, 16816643}, {401, 16816899}, {402, 1}, {403, 16817155},
++++    {404, 16817411}, {405, 1}, {406, 16817667}, {407, 16817923},
++++    {408, 16818179}, {409, 1}, {412, 16818435}, {413, 16818691},
++++    {414, 1}, {415, 16818947}, {416, 16819203}, {417, 1},
++++    {418, 16819459}, {419, 1}, {420, 16819715}, {421, 1},
++++    {422, 16819971}, {423, 16820227}, {424, 1}, {425, 16820483},
++++    {426, 1}, {428, 16820739}, {429, 1}, {430, 16820995},
++++    {431, 16821251}, {432, 1}, {433, 16821507}, {434, 16821763},
++++    {435, 16822019}, {436, 1}, {437, 16822275}, {438, 1},
++++    {439, 16822531}, {440, 16822787}, {441, 1}, {444, 16823043},
++++    {445, 1}, {452, 33600515}, {455, 33601027}, {458, 33601539},
++++    {461, 16824835}, {462, 1}, {463, 16825091}, {464, 1},
++++    {465, 16825347}, {466, 1}, {467, 16825603}, {468, 1},
++++    {469, 16825859}, {470, 1}, {471, 16826115}, {472, 1},
++++    {473, 16826371}, {474, 1}, {475, 16826627}, {476, 1},
++++    {478, 16826883}, {479, 1}, {480, 16827139}, {481, 1},
++++    {482, 16827395}, {483, 1}, {484, 16827651}, {485, 1},
++++    {486, 16827907}, {487, 1}, {488, 16828163}, {489, 1},
++++    {490, 16828419}, {491, 1}, {492, 16828675}, {493, 1},
++++    {494, 16828931}, {495, 1}, {497, 33606403}, {500, 16829699},
++++    {501, 1}, {502, 16829955}, {503, 16830211}, {504, 16830467},
++++    {505, 1}, {506, 16830723}, {507, 1}, {508, 16830979},
++++    {509, 1}, {510, 16831235}, {511, 1}, {512, 16831491},
++++    {513, 1}, {514, 16831747}, {515, 1}, {516, 16832003},
++++    {517, 1}, {518, 16832259}, {519, 1}, {520, 16832515},
++++    {521, 1}, {522, 16832771}, {523, 1}, {524, 16833027},
++++    {525, 1}, {526, 16833283}, {527, 1}, {528, 16833539},
++++    {529, 1}, {530, 16833795}, {531, 1}, {532, 16834051},
++++    {533, 1}, {534, 16834307}, {535, 1}, {536, 16834563},
++++    {537, 1}, {538, 16834819}, {539, 1}, {540, 16835075},
++++    {541, 1}, {542, 16835331}, {543, 1}, {544, 16835587},
++++    {545, 1}, {546, 16835843}, {547, 1}, {548, 16836099},
++++    {549, 1}, {550, 16836355}, {551, 1}, {552, 16836611},
++++    {553, 1}, {554, 16836867}, {555, 1}, {556, 16837123},
++++    {557, 1}, {558, 16837379}, {559, 1}, {560, 16837635},
++++    {561, 1}, {562, 16837891}, {563, 1}, {570, 16838147},
++++    {571, 16838403}, {572, 1}, {573, 16838659}, {574, 16838915},
++++    {575, 1}, {577, 16839171}, {578, 1}, {579, 16839427},
++++    {580, 16839683}, {581, 16839939}, {582, 16840195}, {583, 1},
++++    {584, 16840451}, {585, 1}, {586, 16840707}, {587, 1},
++++    {588, 16840963}, {589, 1}, {590, 16841219}, {591, 1},
++++    {688, 16779011}, {689, 16841475}, {690, 16779523}, {691, 16781571},
++++    {692, 16841731}, {693, 16841987}, {694, 16842243}, {695, 16782851},
++++    {696, 16783363}, {697, 1}, {728, 33619715}, {729, 33620227},
++++    {730, 33620739}, {731, 33621251}, {732, 33621763}, {733, 33622275},
++++    {734, 1}, {736, 16817411}, {737, 16780035}, {738, 16781827},
++++    {739, 16783107}, {740, 16845571}, {741, 1}, {832, 16845827},
++++    {833, 16785923}, {834, 1}, {835, 16846083}, {836, 33623555},
++++    {837, 16846851}, {838, 1}, {847, 0}, {848, 1},
++++    {880, 16847107}, {881, 1}, {882, 16847363}, {883, 1},
++++    {884, 16847619}, {885, 1}, {886, 16847875}, {887, 1},
++++    {888, 2}, {890, 33625347}, {891, 1}, {894, 16848643},
++++    {895, 16848899}, {896, 2}, {900, 33562883}, {901, 50403587},
++++    {902, 16849923}, {903, 16805379}, {904, 16850179}, {905, 16850435},
++++    {906, 16850691}, {907, 2}, {908, 16850947}, {909, 2},
++++    {910, 16851203}, {911, 16851459}, {912, 1}, {913, 16851715},
++++    {914, 16851971}, {915, 16852227}, {916, 16852483}, {917, 16852739},
++++    {918, 16852995}, {919, 16853251}, {920, 16853507}, {921, 16846851},
++++    {922, 16853763}, {923, 16854019}, {924, 16786179}, {925, 16854275},
++++    {926, 16854531}, {927, 16854787}, {928, 16855043}, {929, 16855299},
++++    {930, 2}, {931, 16855555}, {932, 16855811}, {933, 16856067},
++++    {934, 16856323}, {935, 16856579}, {936, 16856835}, {937, 16857091},
++++    {938, 16857347}, {939, 16857603}, {940, 1}, {975, 16857859},
++++    {976, 16851971}, {977, 16853507}, {978, 16856067}, {979, 16851203},
++++    {980, 16857603}, {981, 16856323}, {982, 16855043}, {983, 1},
++++    {984, 16858115}, {985, 1}, {986, 16858371}, {987, 1},
++++    {988, 16858627}, {989, 1}, {990, 16858883}, {991, 1},
++++    {992, 16859139}, {993, 1}, {994, 16859395}, {995, 1},
++++    {996, 16859651}, {997, 1}, {998, 16859907}, {999, 1},
++++    {1000, 16860163}, {1001, 1}, {1002, 16860419}, {1003, 1},
++++    {1004, 16860675}, {1005, 1}, {1006, 16860931}, {1007, 1},
++++    {1008, 16853763}, {1009, 16855299}, {1010, 16855555}, {1011, 1},
++++    {1012, 16853507}, {1013, 16852739}, {1014, 1}, {1015, 16861187},
++++    {1016, 1}, {1017, 16855555}, {1018, 16861443}, {1019, 1},
++++    {1021, 16861699}, {1022, 16861955}, {1023, 16862211}, {1024, 16862467},
++++    {1025, 16862723}, {1026, 16862979}, {1027, 16863235}, {1028, 16863491},
++++    {1029, 16863747}, {1030, 16864003}, {1031, 16864259}, {1032, 16864515},
++++    {1033, 16864771}, {1034, 16865027}, {1035, 16865283}, {1036, 16865539},
++++    {1037, 16865795}, {1038, 16866051}, {1039, 16866307}, {1040, 16866563},
++++    {1041, 16866819}, {1042, 16867075}, {1043, 16867331}, {1044, 16867587},
++++    {1045, 16867843}, {1046, 16868099}, {1047, 16868355}, {1048, 16868611},
++++    {1049, 16868867}, {1050, 16869123}, {1051, 16869379}, {1052, 16869635},
++++    {1053, 16869891}, {1054, 16870147}, {1055, 16870403}, {1056, 16870659},
++++    {1057, 16870915}, {1058, 16871171}, {1059, 16871427}, {1060, 16871683},
++++    {1061, 16871939}, {1062, 16872195}, {1063, 16872451}, {1064, 16872707},
++++    {1065, 16872963}, {1066, 16873219}, {1067, 16873475}, {1068, 16873731},
++++    {1069, 16873987}, {1070, 16874243}, {1071, 16874499}, {1072, 1},
++++    {1120, 16874755}, {1121, 1}, {1122, 16875011}, {1123, 1},
++++    {1124, 16875267}, {1125, 1}, {1126, 16875523}, {1127, 1},
++++    {1128, 16875779}, {1129, 1}, {1130, 16876035}, {1131, 1},
++++    {1132, 16876291}, {1133, 1}, {1134, 16876547}, {1135, 1},
++++    {1136, 16876803}, {1137, 1}, {1138, 16877059}, {1139, 1},
++++    {1140, 16877315}, {1141, 1}, {1142, 16877571}, {1143, 1},
++++    {1144, 16877827}, {1145, 1}, {1146, 16878083}, {1147, 1},
++++    {1148, 16878339}, {1149, 1}, {1150, 16878595}, {1151, 1},
++++    {1152, 16878851}, {1153, 1}, {1162, 16879107}, {1163, 1},
++++    {1164, 16879363}, {1165, 1}, {1166, 16879619}, {1167, 1},
++++    {1168, 16879875}, {1169, 1}, {1170, 16880131}, {1171, 1},
++++    {1172, 16880387}, {1173, 1}, {1174, 16880643}, {1175, 1},
++++    {1176, 16880899}, {1177, 1}, {1178, 16881155}, {1179, 1},
++++    {1180, 16881411}, {1181, 1}, {1182, 16881667}, {1183, 1},
++++    {1184, 16881923}, {1185, 1}, {1186, 16882179}, {1187, 1},
++++    {1188, 16882435}, {1189, 1}, {1190, 16882691}, {1191, 1},
++++    {1192, 16882947}, {1193, 1}, {1194, 16883203}, {1195, 1},
++++    {1196, 16883459}, {1197, 1}, {1198, 16883715}, {1199, 1},
++++    {1200, 16883971}, {1201, 1}, {1202, 16884227}, {1203, 1},
++++    {1204, 16884483}, {1205, 1}, {1206, 16884739}, {1207, 1},
++++    {1208, 16884995}, {1209, 1}, {1210, 16885251}, {1211, 1},
++++    {1212, 16885507}, {1213, 1}, {1214, 16885763}, {1215, 1},
++++    {1216, 2}, {1217, 16886019}, {1218, 1}, {1219, 16886275},
++++    {1220, 1}, {1221, 16886531}, {1222, 1}, {1223, 16886787},
++++    {1224, 1}, {1225, 16887043}, {1226, 1}, {1227, 16887299},
++++    {1228, 1}, {1229, 16887555}, {1230, 1}, {1232, 16887811},
++++    {1233, 1}, {1234, 16888067}, {1235, 1}, {1236, 16888323},
++++    {1237, 1}, {1238, 16888579}, {1239, 1}, {1240, 16888835},
++++    {1241, 1}, {1242, 16889091}, {1243, 1}, {1244, 16889347},
++++    {1245, 1}, {1246, 16889603}, {1247, 1}, {1248, 16889859},
++++    {1249, 1}, {1250, 16890115}, {1251, 1}, {1252, 16890371},
++++    {1253, 1}, {1254, 16890627}, {1255, 1}, {1256, 16890883},
++++    {1257, 1}, {1258, 16891139}, {1259, 1}, {1260, 16891395},
++++    {1261, 1}, {1262, 16891651}, {1263, 1}, {1264, 16891907},
++++    {1265, 1}, {1266, 16892163}, {1267, 1}, {1268, 16892419},
++++    {1269, 1}, {1270, 16892675}, {1271, 1}, {1272, 16892931},
++++    {1273, 1}, {1274, 16893187}, {1275, 1}, {1276, 16893443},
++++    {1277, 1}, {1278, 16893699}, {1279, 1}, {1280, 16893955},
++++    {1281, 1}, {1282, 16894211}, {1283, 1}, {1284, 16894467},
++++    {1285, 1}, {1286, 16894723}, {1287, 1}, {1288, 16894979},
++++    {1289, 1}, {1290, 16895235}, {1291, 1}, {1292, 16895491},
++++    {1293, 1}, {1294, 16895747}, {1295, 1}, {1296, 16896003},
++++    {1297, 1}, {1298, 16896259}, {1299, 1}, {1300, 16896515},
++++    {1301, 1}, {1302, 16896771}, {1303, 1}, {1304, 16897027},
++++    {1305, 1}, {1306, 16897283}, {1307, 1}, {1308, 16897539},
++++    {1309, 1}, {1310, 16897795}, {1311, 1}, {1312, 16898051},
++++    {1313, 1}, {1314, 16898307}, {1315, 1}, {1316, 16898563},
++++    {1317, 1}, {1318, 16898819}, {1319, 1}, {1320, 16899075},
++++    {1321, 1}, {1322, 16899331}, {1323, 1}, {1324, 16899587},
++++    {1325, 1}, {1326, 16899843}, {1327, 1}, {1328, 2},
++++    {1329, 16900099}, {1330, 16900355}, {1331, 16900611}, {1332, 16900867},
++++    {1333, 16901123}, {1334, 16901379}, {1335, 16901635}, {1336, 16901891},
++++    {1337, 16902147}, {1338, 16902403}, {1339, 16902659}, {1340, 16902915},
++++    {1341, 16903171}, {1342, 16903427}, {1343, 16903683}, {1344, 16903939},
++++    {1345, 16904195}, {1346, 16904451}, {1347, 16904707}, {1348, 16904963},
++++    {1349, 16905219}, {1350, 16905475}, {1351, 16905731}, {1352, 16905987},
++++    {1353, 16906243}, {1354, 16906499}, {1355, 16906755}, {1356, 16907011},
++++    {1357, 16907267}, {1358, 16907523}, {1359, 16907779}, {1360, 16908035},
++++    {1361, 16908291}, {1362, 16908547}, {1363, 16908803}, {1364, 16909059},
++++    {1365, 16909315}, {1366, 16909571}, {1367, 2}, {1369, 1},
++++    {1415, 33687043}, {1416, 1}, {1419, 2}, {1421, 1},
++++    {1424, 2}, {1425, 1}, {1480, 2}, {1488, 1},
++++    {1515, 2}, {1519, 1}, {1525, 2}, {1542, 1},
++++    {1564, 2}, {1565, 1}, {1653, 33687555}, {1654, 33688067},
++++    {1655, 33688579}, {1656, 33689091}, {1657, 1}, {1757, 2},
++++    {1758, 1}, {1806, 2}, {1808, 1}, {1867, 2},
++++    {1869, 1}, {1970, 2}, {1984, 1}, {2043, 2},
++++    {2045, 1}, {2094, 2}, {2096, 1}, {2111, 2},
++++    {2112, 1}, {2140, 2}, {2142, 1}, {2143, 2},
++++    {2144, 1}, {2155, 2}, {2160, 1}, {2191, 2},
++++    {2200, 1}, {2274, 2}, {2275, 1}, {2392, 33689603},
++++    {2393, 33690115}, {2394, 33690627}, {2395, 33691139}, {2396, 33691651},
++++    {2397, 33692163}, {2398, 33692675}, {2399, 33693187}, {2400, 1},
++++    {2436, 2}, {2437, 1}, {2445, 2}, {2447, 1},
++++    {2449, 2}, {2451, 1}, {2473, 2}, {2474, 1},
++++    {2481, 2}, {2482, 1}, {2483, 2}, {2486, 1},
++++    {2490, 2}, {2492, 1}, {2501, 2}, {2503, 1},
++++    {2505, 2}, {2507, 1}, {2511, 2}, {2519, 1},
++++    {2520, 2}, {2524, 33693699}, {2525, 33694211}, {2526, 2},
++++    {2527, 33694723}, {2528, 1}, {2532, 2}, {2534, 1},
++++    {2559, 2}, {2561, 1}, {2564, 2}, {2565, 1},
++++    {2571, 2}, {2575, 1}, {2577, 2}, {2579, 1},
++++    {2601, 2}, {2602, 1}, {2609, 2}, {2610, 1},
++++    {2611, 33695235}, {2612, 2}, {2613, 1}, {2614, 33695747},
++++    {2615, 2}, {2616, 1}, {2618, 2}, {2620, 1},
++++    {2621, 2}, {2622, 1}, {2627, 2}, {2631, 1},
++++    {2633, 2}, {2635, 1}, {2638, 2}, {2641, 1},
++++    {2642, 2}, {2649, 33696259}, {2650, 33696771}, {2651, 33697283},
++++    {2652, 1}, {2653, 2}, {2654, 33697795}, {2655, 2},
++++    {2662, 1}, {2679, 2}, {2689, 1}, {2692, 2},
++++    {2693, 1}, {2702, 2}, {2703, 1}, {2706, 2},
++++    {2707, 1}, {2729, 2}, {2730, 1}, {2737, 2},
++++    {2738, 1}, {2740, 2}, {2741, 1}, {2746, 2},
++++    {2748, 1}, {2758, 2}, {2759, 1}, {2762, 2},
++++    {2763, 1}, {2766, 2}, {2768, 1}, {2769, 2},
++++    {2784, 1}, {2788, 2}, {2790, 1}, {2802, 2},
++++    {2809, 1}, {2816, 2}, {2817, 1}, {2820, 2},
++++    {2821, 1}, {2829, 2}, {2831, 1}, {2833, 2},
++++    {2835, 1}, {2857, 2}, {2858, 1}, {2865, 2},
++++    {2866, 1}, {2868, 2}, {2869, 1}, {2874, 2},
++++    {2876, 1}, {2885, 2}, {2887, 1}, {2889, 2},
++++    {2891, 1}, {2894, 2}, {2901, 1}, {2904, 2},
++++    {2908, 33698307}, {2909, 33698819}, {2910, 2}, {2911, 1},
++++    {2916, 2}, {2918, 1}, {2936, 2}, {2946, 1},
++++    {2948, 2}, {2949, 1}, {2955, 2}, {2958, 1},
++++    {2961, 2}, {2962, 1}, {2966, 2}, {2969, 1},
++++    {2971, 2}, {2972, 1}, {2973, 2}, {2974, 1},
++++    {2976, 2}, {2979, 1}, {2981, 2}, {2984, 1},
++++    {2987, 2}, {2990, 1}, {3002, 2}, {3006, 1},
++++    {3011, 2}, {3014, 1}, {3017, 2}, {3018, 1},
++++    {3022, 2}, {3024, 1}, {3025, 2}, {3031, 1},
++++    {3032, 2}, {3046, 1}, {3067, 2}, {3072, 1},
++++    {3085, 2}, {3086, 1}, {3089, 2}, {3090, 1},
++++    {3113, 2}, {3114, 1}, {3130, 2}, {3132, 1},
++++    {3141, 2}, {3142, 1}, {3145, 2}, {3146, 1},
++++    {3150, 2}, {3157, 1}, {3159, 2}, {3160, 1},
++++    {3163, 2}, {3165, 1}, {3166, 2}, {3168, 1},
++++    {3172, 2}, {3174, 1}, {3184, 2}, {3191, 1},
++++    {3213, 2}, {3214, 1}, {3217, 2}, {3218, 1},
++++    {3241, 2}, {3242, 1}, {3252, 2}, {3253, 1},
++++    {3258, 2}, {3260, 1}, {3269, 2}, {3270, 1},
++++    {3273, 2}, {3274, 1}, {3278, 2}, {3285, 1},
++++    {3287, 2}, {3293, 1}, {3295, 2}, {3296, 1},
++++    {3300, 2}, {3302, 1}, {3312, 2}, {3313, 1},
++++    {3316, 2}, {3328, 1}, {3341, 2}, {3342, 1},
++++    {3345, 2}, {3346, 1}, {3397, 2}, {3398, 1},
++++    {3401, 2}, {3402, 1}, {3408, 2}, {3412, 1},
++++    {3428, 2}, {3430, 1}, {3456, 2}, {3457, 1},
++++    {3460, 2}, {3461, 1}, {3479, 2}, {3482, 1},
++++    {3506, 2}, {3507, 1}, {3516, 2}, {3517, 1},
++++    {3518, 2}, {3520, 1}, {3527, 2}, {3530, 1},
++++    {3531, 2}, {3535, 1}, {3541, 2}, {3542, 1},
++++    {3543, 2}, {3544, 1}, {3552, 2}, {3558, 1},
++++    {3568, 2}, {3570, 1}, {3573, 2}, {3585, 1},
++++    {3635, 33699331}, {3636, 1}, {3643, 2}, {3647, 1},
++++    {3676, 2}, {3713, 1}, {3715, 2}, {3716, 1},
++++    {3717, 2}, {3718, 1}, {3723, 2}, {3724, 1},
++++    {3748, 2}, {3749, 1}, {3750, 2}, {3751, 1},
++++    {3763, 33699843}, {3764, 1}, {3774, 2}, {3776, 1},
++++    {3781, 2}, {3782, 1}, {3783, 2}, {3784, 1},
++++    {3791, 2}, {3792, 1}, {3802, 2}, {3804, 33700355},
++++    {3805, 33700867}, {3806, 1}, {3808, 2}, {3840, 1},
++++    {3852, 16924163}, {3853, 1}, {3907, 33701635}, {3908, 1},
++++    {3912, 2}, {3913, 1}, {3917, 33702147}, {3918, 1},
++++    {3922, 33702659}, {3923, 1}, {3927, 33703171}, {3928, 1},
++++    {3932, 33703683}, {3933, 1}, {3945, 33704195}, {3946, 1},
++++    {3949, 2}, {3953, 1}, {3955, 33704707}, {3956, 1},
++++    {3957, 33705219}, {3958, 33705731}, {3959, 50483459}, {3960, 33707011},
++++    {3961, 50484739}, {3962, 1}, {3969, 33706499}, {3970, 1},
++++    {3987, 33708291}, {3988, 1}, {3992, 2}, {3993, 1},
++++    {3997, 33708803}, {3998, 1}, {4002, 33709315}, {4003, 1},
++++    {4007, 33709827}, {4008, 1}, {4012, 33710339}, {4013, 1},
++++    {4025, 33710851}, {4026, 1}, {4029, 2}, {4030, 1},
++++    {4045, 2}, {4046, 1}, {4059, 2}, {4096, 1},
++++    {4256, 2}, {4295, 16934147}, {4296, 2}, {4301, 16934403},
++++    {4302, 2}, {4304, 1}, {4348, 16934659}, {4349, 1},
++++    {4447, 2}, {4449, 1}, {4681, 2}, {4682, 1},
++++    {4686, 2}, {4688, 1}, {4695, 2}, {4696, 1},
++++    {4697, 2}, {4698, 1}, {4702, 2}, {4704, 1},
++++    {4745, 2}, {4746, 1}, {4750, 2}, {4752, 1},
++++    {4785, 2}, {4786, 1}, {4790, 2}, {4792, 1},
++++    {4799, 2}, {4800, 1}, {4801, 2}, {4802, 1},
++++    {4806, 2}, {4808, 1}, {4823, 2}, {4824, 1},
++++    {4881, 2}, {4882, 1}, {4886, 2}, {4888, 1},
++++    {4955, 2}, {4957, 1}, {4989, 2}, {4992, 1},
++++    {5018, 2}, {5024, 1}, {5110, 2}, {5112, 16934915},
++++    {5113, 16935171}, {5114, 16935427}, {5115, 16935683}, {5116, 16935939},
++++    {5117, 16936195}, {5118, 2}, {5120, 1}, {5760, 2},
++++    {5761, 1}, {5789, 2}, {5792, 1}, {5881, 2},
++++    {5888, 1}, {5910, 2}, {5919, 1}, {5943, 2},
++++    {5952, 1}, {5972, 2}, {5984, 1}, {5997, 2},
++++    {5998, 1}, {6001, 2}, {6002, 1}, {6004, 2},
++++    {6016, 1}, {6068, 2}, {6070, 1}, {6110, 2},
++++    {6112, 1}, {6122, 2}, {6128, 1}, {6138, 2},
++++    {6144, 1}, {6150, 2}, {6151, 1}, {6155, 0},
++++    {6158, 2}, {6159, 0}, {6160, 1}, {6170, 2},
++++    {6176, 1}, {6265, 2}, {6272, 1}, {6315, 2},
++++    {6320, 1}, {6390, 2}, {6400, 1}, {6431, 2},
++++    {6432, 1}, {6444, 2}, {6448, 1}, {6460, 2},
++++    {6464, 1}, {6465, 2}, {6468, 1}, {6510, 2},
++++    {6512, 1}, {6517, 2}, {6528, 1}, {6572, 2},
++++    {6576, 1}, {6602, 2}, {6608, 1}, {6619, 2},
++++    {6622, 1}, {6684, 2}, {6686, 1}, {6751, 2},
++++    {6752, 1}, {6781, 2}, {6783, 1}, {6794, 2},
++++    {6800, 1}, {6810, 2}, {6816, 1}, {6830, 2},
++++    {6832, 1}, {6863, 2}, {6912, 1}, {6989, 2},
++++    {6992, 1}, {7039, 2}, {7040, 1}, {7156, 2},
++++    {7164, 1}, {7224, 2}, {7227, 1}, {7242, 2},
++++    {7245, 1}, {7296, 16867075}, {7297, 16867587}, {7298, 16870147},
++++    {7299, 16870915}, {7300, 16871171}, {7302, 16873219}, {7303, 16875011},
++++    {7304, 16936451}, {7305, 2}, {7312, 16936707}, {7313, 16936963},
++++    {7314, 16937219}, {7315, 16937475}, {7316, 16937731}, {7317, 16937987},
++++    {7318, 16938243}, {7319, 16938499}, {7320, 16938755}, {7321, 16939011},
++++    {7322, 16939267}, {7323, 16939523}, {7324, 16934659}, {7325, 16939779},
++++    {7326, 16940035}, {7327, 16940291}, {7328, 16940547}, {7329, 16940803},
++++    {7330, 16941059}, {7331, 16941315}, {7332, 16941571}, {7333, 16941827},
++++    {7334, 16942083}, {7335, 16942339}, {7336, 16942595}, {7337, 16942851},
++++    {7338, 16943107}, {7339, 16943363}, {7340, 16943619}, {7341, 16943875},
++++    {7342, 16944131}, {7343, 16944387}, {7344, 16944643}, {7345, 16944899},
++++    {7346, 16945155}, {7347, 16945411}, {7348, 16945667}, {7349, 16945923},
++++    {7350, 16946179}, {7351, 16946435}, {7352, 16946691}, {7353, 16946947},
++++    {7354, 16947203}, {7355, 2}, {7357, 16947459}, {7358, 16947715},
++++    {7359, 16947971}, {7360, 1}, {7368, 2}, {7376, 1},
++++    {7419, 2}, {7424, 1}, {7468, 16777219}, {7469, 16791043},
++++    {7470, 16777475}, {7471, 1}, {7472, 16777987}, {7473, 16778243},
++++    {7474, 16816131}, {7475, 16778755}, {7476, 16779011}, {7477, 16779267},
++++    {7478, 16779523}, {7479, 16779779}, {7480, 16780035}, {7481, 16780291},
++++    {7482, 16780547}, {7483, 1}, {7484, 16780803}, {7485, 16835843},
++++    {7486, 16781059}, {7487, 16781571}, {7488, 16782083}, {7489, 16782339},
++++    {7490, 16782851}, {7491, 16777219}, {7492, 16948227}, {7493, 16948483},
++++    {7494, 16948739}, {7495, 16777475}, {7496, 16777987}, {7497, 16778243},
++++    {7498, 16816387}, {7499, 16816643}, {7500, 16948995}, {7501, 16778755},
++++    {7502, 1}, {7503, 16779779}, {7504, 16780291}, {7505, 16807171},
++++    {7506, 16780803}, {7507, 16814851}, {7508, 16949251}, {7509, 16949507},
++++    {7510, 16781059}, {7511, 16782083}, {7512, 16782339}, {7513, 16949763},
++++    {7514, 16818435}, {7515, 16782595}, {7516, 16950019}, {7517, 16851971},
++++    {7518, 16852227}, {7519, 16852483}, {7520, 16856323}, {7521, 16856579},
++++    {7522, 16779267}, {7523, 16781571}, {7524, 16782339}, {7525, 16782595},
++++    {7526, 16851971}, {7527, 16852227}, {7528, 16855299}, {7529, 16856323},
++++    {7530, 16856579}, {7531, 1}, {7544, 16869891}, {7545, 1},
++++    {7579, 16950275}, {7580, 16777731}, {7581, 16950531}, {7582, 16793603},
++++    {7583, 16948995}, {7584, 16778499}, {7585, 16950787}, {7586, 16951043},
++++    {7587, 16951299}, {7588, 16817923}, {7589, 16817667}, {7590, 16951555},
++++    {7591, 16951811}, {7592, 16952067}, {7593, 16952323}, {7594, 16952579},
++++    {7595, 16952835}, {7596, 16953091}, {7597, 16953347}, {7598, 16818691},
++++    {7599, 16953603}, {7600, 16953859}, {7601, 16818947}, {7602, 16954115},
++++    {7603, 16954371}, {7604, 16820483}, {7605, 16954627}, {7606, 16839683},
++++    {7607, 16821507}, {7608, 16954883}, {7609, 16821763}, {7610, 16839939},
++++    {7611, 16783619}, {7612, 16955139}, {7613, 16955395}, {7614, 16822531},
++++    {7615, 16853507}, {7616, 1}, {7680, 16955651}, {7681, 1},
++++    {7682, 16955907}, {7683, 1}, {7684, 16956163}, {7685, 1},
++++    {7686, 16956419}, {7687, 1}, {7688, 16956675}, {7689, 1},
++++    {7690, 16956931}, {7691, 1}, {7692, 16957187}, {7693, 1},
++++    {7694, 16957443}, {7695, 1}, {7696, 16957699}, {7697, 1},
++++    {7698, 16957955}, {7699, 1}, {7700, 16958211}, {7701, 1},
++++    {7702, 16958467}, {7703, 1}, {7704, 16958723}, {7705, 1},
++++    {7706, 16958979}, {7707, 1}, {7708, 16959235}, {7709, 1},
++++    {7710, 16959491}, {7711, 1}, {7712, 16959747}, {7713, 1},
++++    {7714, 16960003}, {7715, 1}, {7716, 16960259}, {7717, 1},
++++    {7718, 16960515}, {7719, 1}, {7720, 16960771}, {7721, 1},
++++    {7722, 16961027}, {7723, 1}, {7724, 16961283}, {7725, 1},
++++    {7726, 16961539}, {7727, 1}, {7728, 16961795}, {7729, 1},
++++    {7730, 16962051}, {7731, 1}, {7732, 16962307}, {7733, 1},
++++    {7734, 16962563}, {7735, 1}, {7736, 16962819}, {7737, 1},
++++    {7738, 16963075}, {7739, 1}, {7740, 16963331}, {7741, 1},
++++    {7742, 16963587}, {7743, 1}, {7744, 16963843}, {7745, 1},
++++    {7746, 16964099}, {7747, 1}, {7748, 16964355}, {7749, 1},
++++    {7750, 16964611}, {7751, 1}, {7752, 16964867}, {7753, 1},
++++    {7754, 16965123}, {7755, 1}, {7756, 16965379}, {7757, 1},
++++    {7758, 16965635}, {7759, 1}, {7760, 16965891}, {7761, 1},
++++    {7762, 16966147}, {7763, 1}, {7764, 16966403}, {7765, 1},
++++    {7766, 16966659}, {7767, 1}, {7768, 16966915}, {7769, 1},
++++    {7770, 16967171}, {7771, 1}, {7772, 16967427}, {7773, 1},
++++    {7774, 16967683}, {7775, 1}, {7776, 16967939}, {7777, 1},
++++    {7778, 16968195}, {7779, 1}, {7780, 16968451}, {7781, 1},
++++    {7782, 16968707}, {7783, 1}, {7784, 16968963}, {7785, 1},
++++    {7786, 16969219}, {7787, 1}, {7788, 16969475}, {7789, 1},
++++    {7790, 16969731}, {7791, 1}, {7792, 16969987}, {7793, 1},
++++    {7794, 16970243}, {7795, 1}, {7796, 16970499}, {7797, 1},
++++    {7798, 16970755}, {7799, 1}, {7800, 16971011}, {7801, 1},
++++    {7802, 16971267}, {7803, 1}, {7804, 16971523}, {7805, 1},
++++    {7806, 16971779}, {7807, 1}, {7808, 16972035}, {7809, 1},
++++    {7810, 16972291}, {7811, 1}, {7812, 16972547}, {7813, 1},
++++    {7814, 16972803}, {7815, 1}, {7816, 16973059}, {7817, 1},
++++    {7818, 16973315}, {7819, 1}, {7820, 16973571}, {7821, 1},
++++    {7822, 16973827}, {7823, 1}, {7824, 16974083}, {7825, 1},
++++    {7826, 16974339}, {7827, 1}, {7828, 16974595}, {7829, 1},
++++    {7834, 33752067}, {7835, 16967939}, {7836, 1}, {7838, 33752579},
++++    {7839, 1}, {7840, 16975875}, {7841, 1}, {7842, 16976131},
++++    {7843, 1}, {7844, 16976387}, {7845, 1}, {7846, 16976643},
++++    {7847, 1}, {7848, 16976899}, {7849, 1}, {7850, 16977155},
++++    {7851, 1}, {7852, 16977411}, {7853, 1}, {7854, 16977667},
++++    {7855, 1}, {7856, 16977923}, {7857, 1}, {7858, 16978179},
++++    {7859, 1}, {7860, 16978435}, {7861, 1}, {7862, 16978691},
++++    {7863, 1}, {7864, 16978947}, {7865, 1}, {7866, 16979203},
++++    {7867, 1}, {7868, 16979459}, {7869, 1}, {7870, 16979715},
++++    {7871, 1}, {7872, 16979971}, {7873, 1}, {7874, 16980227},
++++    {7875, 1}, {7876, 16980483}, {7877, 1}, {7878, 16980739},
++++    {7879, 1}, {7880, 16980995}, {7881, 1}, {7882, 16981251},
++++    {7883, 1}, {7884, 16981507}, {7885, 1}, {7886, 16981763},
++++    {7887, 1}, {7888, 16982019}, {7889, 1}, {7890, 16982275},
++++    {7891, 1}, {7892, 16982531}, {7893, 1}, {7894, 16982787},
++++    {7895, 1}, {7896, 16983043}, {7897, 1}, {7898, 16983299},
++++    {7899, 1}, {7900, 16983555}, {7901, 1}, {7902, 16983811},
++++    {7903, 1}, {7904, 16984067}, {7905, 1}, {7906, 16984323},
++++    {7907, 1}, {7908, 16984579}, {7909, 1}, {7910, 16984835},
++++    {7911, 1}, {7912, 16985091}, {7913, 1}, {7914, 16985347},
++++    {7915, 1}, {7916, 16985603}, {7917, 1}, {7918, 16985859},
++++    {7919, 1}, {7920, 16986115}, {7921, 1}, {7922, 16986371},
++++    {7923, 1}, {7924, 16986627}, {7925, 1}, {7926, 16986883},
++++    {7927, 1}, {7928, 16987139}, {7929, 1}, {7930, 16987395},
++++    {7931, 1}, {7932, 16987651}, {7933, 1}, {7934, 16987907},
++++    {7935, 1}, {7944, 16988163}, {7945, 16988419}, {7946, 16988675},
++++    {7947, 16988931}, {7948, 16989187}, {7949, 16989443}, {7950, 16989699},
++++    {7951, 16989955}, {7952, 1}, {7958, 2}, {7960, 16990211},
++++    {7961, 16990467}, {7962, 16990723}, {7963, 16990979}, {7964, 16991235},
++++    {7965, 16991491}, {7966, 2}, {7968, 1}, {7976, 16991747},
++++    {7977, 16992003}, {7978, 16992259}, {7979, 16992515}, {7980, 16992771},
++++    {7981, 16993027}, {7982, 16993283}, {7983, 16993539}, {7984, 1},
++++    {7992, 16993795}, {7993, 16994051}, {7994, 16994307}, {7995, 16994563},
++++    {7996, 16994819}, {7997, 16995075}, {7998, 16995331}, {7999, 16995587},
++++    {8000, 1}, {8006, 2}, {8008, 16995843}, {8009, 16996099},
++++    {8010, 16996355}, {8011, 16996611}, {8012, 16996867}, {8013, 16997123},
++++    {8014, 2}, {8016, 1}, {8024, 2}, {8025, 16997379},
++++    {8026, 2}, {8027, 16997635}, {8028, 2}, {8029, 16997891},
++++    {8030, 2}, {8031, 16998147}, {8032, 1}, {8040, 16998403},
++++    {8041, 16998659}, {8042, 16998915}, {8043, 16999171}, {8044, 16999427},
++++    {8045, 16999683}, {8046, 16999939}, {8047, 17000195}, {8048, 1},
++++    {8049, 16849923}, {8050, 1}, {8051, 16850179}, {8052, 1},
++++    {8053, 16850435}, {8054, 1}, {8055, 16850691}, {8056, 1},
++++    {8057, 16850947}, {8058, 1}, {8059, 16851203}, {8060, 1},
++++    {8061, 16851459}, {8062, 2}, {8064, 33777667}, {8065, 33778179},
++++    {8066, 33778691}, {8067, 33779203}, {8068, 33779715}, {8069, 33780227},
++++    {8070, 33780739}, {8071, 33781251}, {8072, 33777667}, {8073, 33778179},
++++    {8074, 33778691}, {8075, 33779203}, {8076, 33779715}, {8077, 33780227},
++++    {8078, 33780739}, {8079, 33781251}, {8080, 33781763}, {8081, 33782275},
++++    {8082, 33782787}, {8083, 33783299}, {8084, 33783811}, {8085, 33784323},
++++    {8086, 33784835}, {8087, 33785347}, {8088, 33781763}, {8089, 33782275},
++++    {8090, 33782787}, {8091, 33783299}, {8092, 33783811}, {8093, 33784323},
++++    {8094, 33784835}, {8095, 33785347}, {8096, 33785859}, {8097, 33786371},
++++    {8098, 33786883}, {8099, 33787395}, {8100, 33787907}, {8101, 33788419},
++++    {8102, 33788931}, {8103, 33789443}, {8104, 33785859}, {8105, 33786371},
++++    {8106, 33786883}, {8107, 33787395}, {8108, 33787907}, {8109, 33788419},
++++    {8110, 33788931}, {8111, 33789443}, {8112, 1}, {8114, 33789955},
++++    {8115, 33790467}, {8116, 33790979}, {8117, 2}, {8118, 1},
++++    {8119, 33791491}, {8120, 17014787}, {8121, 17015043}, {8122, 17012739},
++++    {8123, 16849923}, {8124, 33790467}, {8125, 33792515}, {8126, 16846851},
++++    {8127, 33792515}, {8128, 33793027}, {8129, 50570755}, {8130, 33794307},
++++    {8131, 33794819}, {8132, 33795331}, {8133, 2}, {8134, 1},
++++    {8135, 33795843}, {8136, 17019139}, {8137, 16850179}, {8138, 17017091},
++++    {8139, 16850435}, {8140, 33794819}, {8141, 50573827}, {8142, 50574595},
++++    {8143, 50575363}, {8144, 1}, {8147, 17021699}, {8148, 2},
++++    {8150, 1}, {8152, 17021955}, {8153, 17022211}, {8154, 17022467},
++++    {8155, 16850691}, {8156, 2}, {8157, 50577155}, {8158, 50577923},
++++    {8159, 50578691}, {8160, 1}, {8163, 17025027}, {8164, 1},
++++    {8168, 17025283}, {8169, 17025539}, {8170, 17025795}, {8171, 16851203},
++++    {8172, 17026051}, {8173, 50580739}, {8174, 50403587}, {8175, 17027075},
++++    {8176, 2}, {8178, 33804547}, {8179, 33805059}, {8180, 33805571},
++++    {8181, 2}, {8182, 1}, {8183, 33806083}, {8184, 17029379},
++++    {8185, 16850947}, {8186, 17027331}, {8187, 16851459}, {8188, 33805059},
++++    {8189, 33562883}, {8190, 33799939}, {8191, 2}, {8192, 16783875},
++++    {8203, 0}, {8204, 1}, {8206, 2}, {8208, 1},
++++    {8209, 17029635}, {8210, 1}, {8215, 33807107}, {8216, 1},
++++    {8228, 2}, {8231, 1}, {8232, 2}, {8239, 16783875},
++++    {8240, 1}, {8243, 33807619}, {8244, 50585347}, {8245, 1},
++++    {8246, 33808899}, {8247, 50586627}, {8248, 1}, {8252, 33810179},
++++    {8253, 1}, {8254, 33810691}, {8255, 1}, {8263, 33811203},
++++    {8264, 33811715}, {8265, 33812227}, {8266, 1}, {8279, 67362051},
++++    {8280, 1}, {8287, 16783875}, {8288, 0}, {8289, 2},
++++    {8292, 0}, {8293, 2}, {8304, 17035523}, {8305, 16779267},
++++    {8306, 2}, {8308, 16787715}, {8309, 17035779}, {8310, 17036035},
++++    {8311, 17036291}, {8312, 17036547}, {8313, 17036803}, {8314, 17037059},
++++    {8315, 17037315}, {8316, 17037571}, {8317, 17037827}, {8318, 17038083},
++++    {8319, 16780547}, {8320, 17035523}, {8321, 16786947}, {8322, 16785155},
++++    {8323, 16785411}, {8324, 16787715}, {8325, 17035779}, {8326, 17036035},
++++    {8327, 17036291}, {8328, 17036547}, {8329, 17036803}, {8330, 17037059},
++++    {8331, 17037315}, {8332, 17037571}, {8333, 17037827}, {8334, 17038083},
++++    {8335, 2}, {8336, 16777219}, {8337, 16778243}, {8338, 16780803},
++++    {8339, 16783107}, {8340, 16816387}, {8341, 16779011}, {8342, 16779779},
++++    {8343, 16780035}, {8344, 16780291}, {8345, 16780547}, {8346, 16781059},
++++    {8347, 16781827}, {8348, 16782083}, {8349, 2}, {8352, 1},
++++    {8360, 33558787}, {8361, 1}, {8385, 2}, {8400, 1},
++++    {8433, 2}, {8448, 50592771}, {8449, 50593539}, {8450, 16777731},
++++    {8451, 33817091}, {8452, 1}, {8453, 50594819}, {8454, 50595587},
++++    {8455, 16816643}, {8456, 1}, {8457, 33819139}, {8458, 16778755},
++++    {8459, 16779011}, {8463, 16802051}, {8464, 16779267}, {8466, 16780035},
++++    {8468, 1}, {8469, 16780547}, {8470, 33557763}, {8471, 1},
++++    {8473, 16781059}, {8474, 16781315}, {8475, 16781571}, {8478, 1},
++++    {8480, 33819651}, {8481, 50597379}, {8482, 33820931}, {8483, 1},
++++    {8484, 16783619}, {8485, 1}, {8486, 16857091}, {8487, 1},
++++    {8488, 16783619}, {8489, 1}, {8490, 16779779}, {8491, 16790787},
++++    {8492, 16777475}, {8493, 16777731}, {8494, 1}, {8495, 16778243},
++++    {8497, 16778499}, {8498, 2}, {8499, 16780291}, {8500, 16780803},
++++    {8501, 17044227}, {8502, 17044483}, {8503, 17044739}, {8504, 17044995},
++++    {8505, 16779267}, {8506, 1}, {8507, 50599683}, {8508, 16855043},
++++    {8509, 16852227}, {8511, 16855043}, {8512, 17046019}, {8513, 1},
++++    {8517, 16777987}, {8519, 16778243}, {8520, 16779267}, {8521, 16779523},
++++    {8522, 1}, {8528, 50600707}, {8529, 50601475}, {8530, 67379459},
++++    {8531, 50603267}, {8532, 50604035}, {8533, 50604803}, {8534, 50605571},
++++    {8535, 50606339}, {8536, 50607107}, {8537, 50607875}, {8538, 50608643},
++++    {8539, 50609411}, {8540, 50610179}, {8541, 50610947}, {8542, 50611715},
++++    {8543, 33564419}, {8544, 16779267}, {8545, 33835267}, {8546, 50612995},
++++    {8547, 33836547}, {8548, 16782595}, {8549, 33837059}, {8550, 50614787},
++++    {8551, 67392771}, {8552, 33839363}, {8553, 16783107}, {8554, 33839875},
++++    {8555, 50617603}, {8556, 16780035}, {8557, 16777731}, {8558, 16777987},
++++    {8559, 16780291}, {8560, 16779267}, {8561, 33835267}, {8562, 50612483},
++++    {8563, 33836547}, {8564, 16782595}, {8565, 33837059}, {8566, 50614787},
++++    {8567, 67392771}, {8568, 33839363}, {8569, 16783107}, {8570, 33839875},
++++    {8571, 50617603}, {8572, 16780035}, {8573, 16777731}, {8574, 16777987},
++++    {8575, 16780291}, {8576, 1}, {8579, 2}, {8580, 1},
++++    {8585, 50618371}, {8586, 1}, {8588, 2}, {8592, 1},
++++    {8748, 33841923}, {8749, 50619651}, {8750, 1}, {8751, 33843203},
++++    {8752, 50620931}, {8753, 1}, {9001, 17067267}, {9002, 17067523},
++++    {9003, 1}, {9255, 2}, {9280, 1}, {9291, 2},
++++    {9312, 16786947}, {9313, 16785155}, {9314, 16785411}, {9315, 16787715},
++++    {9316, 17035779}, {9317, 17036035}, {9318, 17036291}, {9319, 17036547},
++++    {9320, 17036803}, {9321, 33825539}, {9322, 33564163}, {9323, 33844995},
++++    {9324, 33845507}, {9325, 33846019}, {9326, 33846531}, {9327, 33847043},
++++    {9328, 33847555}, {9329, 33848067}, {9330, 33848579}, {9331, 33849091},
++++    {9332, 50626819}, {9333, 50627587}, {9334, 50628355}, {9335, 50629123},
++++    {9336, 50629891}, {9337, 50630659}, {9338, 50631427}, {9339, 50632195},
++++    {9340, 50632963}, {9341, 67410947}, {9342, 67411971}, {9343, 67412995},
++++    {9344, 67414019}, {9345, 67415043}, {9346, 67416067}, {9347, 67417091},
++++    {9348, 67418115}, {9349, 67419139}, {9350, 67420163}, {9351, 67421187},
++++    {9352, 2}, {9372, 50644995}, {9373, 50645763}, {9374, 50646531},
++++    {9375, 50647299}, {9376, 50648067}, {9377, 50648835}, {9378, 50649603},
++++    {9379, 50650371}, {9380, 50651139}, {9381, 50651907}, {9382, 50652675},
++++    {9383, 50653443}, {9384, 50654211}, {9385, 50654979}, {9386, 50655747},
++++    {9387, 50656515}, {9388, 50657283}, {9389, 50658051}, {9390, 50658819},
++++    {9391, 50659587}, {9392, 50660355}, {9393, 50661123}, {9394, 50661891},
++++    {9395, 50662659}, {9396, 50663427}, {9397, 50664195}, {9398, 16777219},
++++    {9399, 16777475}, {9400, 16777731}, {9401, 16777987}, {9402, 16778243},
++++    {9403, 16778499}, {9404, 16778755}, {9405, 16779011}, {9406, 16779267},
++++    {9407, 16779523}, {9408, 16779779}, {9409, 16780035}, {9410, 16780291},
++++    {9411, 16780547}, {9412, 16780803}, {9413, 16781059}, {9414, 16781315},
++++    {9415, 16781571}, {9416, 16781827}, {9417, 16782083}, {9418, 16782339},
++++    {9419, 16782595}, {9420, 16782851}, {9421, 16783107}, {9422, 16783363},
++++    {9423, 16783619}, {9424, 16777219}, {9425, 16777475}, {9426, 16777731},
++++    {9427, 16777987}, {9428, 16778243}, {9429, 16778499}, {9430, 16778755},
++++    {9431, 16779011}, {9432, 16779267}, {9433, 16779523}, {9434, 16779779},
++++    {9435, 16780035}, {9436, 16780291}, {9437, 16780547}, {9438, 16780803},
++++    {9439, 16781059}, {9440, 16781315}, {9441, 16781571}, {9442, 16781827},
++++    {9443, 16782083}, {9444, 16782339}, {9445, 16782595}, {9446, 16782851},
++++    {9447, 16783107}, {9448, 16783363}, {9449, 16783619}, {9450, 17035523},
++++    {9451, 1}, {10764, 67396355}, {10765, 1}, {10868, 50664963},
++++    {10869, 33888515}, {10870, 50665475}, {10871, 1}, {10972, 33889027},
++++    {10973, 1}, {11124, 2}, {11126, 1}, {11158, 2},
++++    {11159, 1}, {11264, 17112323}, {11265, 17112579}, {11266, 17112835},
++++    {11267, 17113091}, {11268, 17113347}, {11269, 17113603}, {11270, 17113859},
++++    {11271, 17114115}, {11272, 17114371}, {11273, 17114627}, {11274, 17114883},
++++    {11275, 17115139}, {11276, 17115395}, {11277, 17115651}, {11278, 17115907},
++++    {11279, 17116163}, {11280, 17116419}, {11281, 17116675}, {11282, 17116931},
++++    {11283, 17117187}, {11284, 17117443}, {11285, 17117699}, {11286, 17117955},
++++    {11287, 17118211}, {11288, 17118467}, {11289, 17118723}, {11290, 17118979},
++++    {11291, 17119235}, {11292, 17119491}, {11293, 17119747}, {11294, 17120003},
++++    {11295, 17120259}, {11296, 17120515}, {11297, 17120771}, {11298, 17121027},
++++    {11299, 17121283}, {11300, 17121539}, {11301, 17121795}, {11302, 17122051},
++++    {11303, 17122307}, {11304, 17122563}, {11305, 17122819}, {11306, 17123075},
++++    {11307, 17123331}, {11308, 17123587}, {11309, 17123843}, {11310, 17124099},
++++    {11311, 17124355}, {11312, 1}, {11360, 17124611}, {11361, 1},
++++    {11362, 17124867}, {11363, 17125123}, {11364, 17125379}, {11365, 1},
++++    {11367, 17125635}, {11368, 1}, {11369, 17125891}, {11370, 1},
++++    {11371, 17126147}, {11372, 1}, {11373, 16948483}, {11374, 16953091},
++++    {11375, 16948227}, {11376, 16950275}, {11377, 1}, {11378, 17126403},
++++    {11379, 1}, {11381, 17126659}, {11382, 1}, {11388, 16779523},
++++    {11389, 16782595}, {11390, 17126915}, {11391, 17127171}, {11392, 17127427},
++++    {11393, 1}, {11394, 17127683}, {11395, 1}, {11396, 17127939},
++++    {11397, 1}, {11398, 17128195}, {11399, 1}, {11400, 17128451},
++++    {11401, 1}, {11402, 17128707}, {11403, 1}, {11404, 17128963},
++++    {11405, 1}, {11406, 17129219}, {11407, 1}, {11408, 17129475},
++++    {11409, 1}, {11410, 17129731}, {11411, 1}, {11412, 17129987},
++++    {11413, 1}, {11414, 17130243}, {11415, 1}, {11416, 17130499},
++++    {11417, 1}, {11418, 17130755}, {11419, 1}, {11420, 17131011},
++++    {11421, 1}, {11422, 17131267}, {11423, 1}, {11424, 17131523},
++++    {11425, 1}, {11426, 17131779}, {11427, 1}, {11428, 17132035},
++++    {11429, 1}, {11430, 17132291}, {11431, 1}, {11432, 17132547},
++++    {11433, 1}, {11434, 17132803}, {11435, 1}, {11436, 17133059},
++++    {11437, 1}, {11438, 17133315}, {11439, 1}, {11440, 17133571},
++++    {11441, 1}, {11442, 17133827}, {11443, 1}, {11444, 17134083},
++++    {11445, 1}, {11446, 17134339}, {11447, 1}, {11448, 17134595},
++++    {11449, 1}, {11450, 17134851}, {11451, 1}, {11452, 17135107},
++++    {11453, 1}, {11454, 17135363}, {11455, 1}, {11456, 17135619},
++++    {11457, 1}, {11458, 17135875}, {11459, 1}, {11460, 17136131},
++++    {11461, 1}, {11462, 17136387}, {11463, 1}, {11464, 17136643},
++++    {11465, 1}, {11466, 17136899}, {11467, 1}, {11468, 17137155},
++++    {11469, 1}, {11470, 17137411}, {11471, 1}, {11472, 17137667},
++++    {11473, 1}, {11474, 17137923}, {11475, 1}, {11476, 17138179},
++++    {11477, 1}, {11478, 17138435}, {11479, 1}, {11480, 17138691},
++++    {11481, 1}, {11482, 17138947}, {11483, 1}, {11484, 17139203},
++++    {11485, 1}, {11486, 17139459}, {11487, 1}, {11488, 17139715},
++++    {11489, 1}, {11490, 17139971}, {11491, 1}, {11499, 17140227},
++++    {11500, 1}, {11501, 17140483}, {11502, 1}, {11506, 17140739},
++++    {11507, 1}, {11508, 2}, {11513, 1}, {11558, 2},
++++    {11559, 1}, {11560, 2}, {11565, 1}, {11566, 2},
++++    {11568, 1}, {11624, 2}, {11631, 17140995}, {11632, 1},
++++    {11633, 2}, {11647, 1}, {11671, 2}, {11680, 1},
++++    {11687, 2}, {11688, 1}, {11695, 2}, {11696, 1},
++++    {11703, 2}, {11704, 1}, {11711, 2}, {11712, 1},
++++    {11719, 2}, {11720, 1}, {11727, 2}, {11728, 1},
++++    {11735, 2}, {11736, 1}, {11743, 2}, {11744, 1},
++++    {11870, 2}, {11904, 1}, {11930, 2}, {11931, 1},
++++    {11935, 17141251}, {11936, 1}, {12019, 17141507}, {12020, 2},
++++    {12032, 17141763}, {12033, 17142019}, {12034, 17142275}, {12035, 17142531},
++++    {12036, 17142787}, {12037, 17143043}, {12038, 17143299}, {12039, 17143555},
++++    {12040, 17143811}, {12041, 17144067}, {12042, 17144323}, {12043, 17144579},
++++    {12044, 17144835}, {12045, 17145091}, {12046, 17145347}, {12047, 17145603},
++++    {12048, 17145859}, {12049, 17146115}, {12050, 17146371}, {12051, 17146627},
++++    {12052, 17146883}, {12053, 17147139}, {12054, 17147395}, {12055, 17147651},
++++    {12056, 17147907}, {12057, 17148163}, {12058, 17148419}, {12059, 17148675},
++++    {12060, 17148931}, {12061, 17149187}, {12062, 17149443}, {12063, 17149699},
++++    {12064, 17149955}, {12065, 17150211}, {12066, 17150467}, {12067, 17150723},
++++    {12068, 17150979}, {12069, 17151235}, {12070, 17151491}, {12071, 17151747},
++++    {12072, 17152003}, {12073, 17152259}, {12074, 17152515}, {12075, 17152771},
++++    {12076, 17153027}, {12077, 17153283}, {12078, 17153539}, {12079, 17153795},
++++    {12080, 17154051}, {12081, 17154307}, {12082, 17154563}, {12083, 17154819},
++++    {12084, 17155075}, {12085, 17155331}, {12086, 17155587}, {12087, 17155843},
++++    {12088, 17156099}, {12089, 17156355}, {12090, 17156611}, {12091, 17156867},
++++    {12092, 17157123}, {12093, 17157379}, {12094, 17157635}, {12095, 17157891},
++++    {12096, 17158147}, {12097, 17158403}, {12098, 17158659}, {12099, 17158915},
++++    {12100, 17159171}, {12101, 17159427}, {12102, 17159683}, {12103, 17159939},
++++    {12104, 17160195}, {12105, 17160451}, {12106, 17160707}, {12107, 17160963},
++++    {12108, 17161219}, {12109, 17161475}, {12110, 17161731}, {12111, 17161987},
++++    {12112, 17162243}, {12113, 17162499}, {12114, 17162755}, {12115, 17163011},
++++    {12116, 17163267}, {12117, 17163523}, {12118, 17163779}, {12119, 17164035},
++++    {12120, 17164291}, {12121, 17164547}, {12122, 17164803}, {12123, 17165059},
++++    {12124, 17165315}, {12125, 17165571}, {12126, 17165827}, {12127, 17166083},
++++    {12128, 17166339}, {12129, 17166595}, {12130, 17166851}, {12131, 17167107},
++++    {12132, 17167363}, {12133, 17167619}, {12134, 17167875}, {12135, 17168131},
++++    {12136, 17168387}, {12137, 17168643}, {12138, 17168899}, {12139, 17169155},
++++    {12140, 17169411}, {12141, 17169667}, {12142, 17169923}, {12143, 17170179},
++++    {12144, 17170435}, {12145, 17170691}, {12146, 17170947}, {12147, 17171203},
++++    {12148, 17171459}, {12149, 17171715}, {12150, 17171971}, {12151, 17172227},
++++    {12152, 17172483}, {12153, 17172739}, {12154, 17172995}, {12155, 17173251},
++++    {12156, 17173507}, {12157, 17173763}, {12158, 17174019}, {12159, 17174275},
++++    {12160, 17174531}, {12161, 17174787}, {12162, 17175043}, {12163, 17175299},
++++    {12164, 17175555}, {12165, 17175811}, {12166, 17176067}, {12167, 17176323},
++++    {12168, 17176579}, {12169, 17176835}, {12170, 17177091}, {12171, 17177347},
++++    {12172, 17177603}, {12173, 17177859}, {12174, 17178115}, {12175, 17178371},
++++    {12176, 17178627}, {12177, 17178883}, {12178, 17179139}, {12179, 17179395},
++++    {12180, 17179651}, {12181, 17179907}, {12182, 17180163}, {12183, 17180419},
++++    {12184, 17180675}, {12185, 17180931}, {12186, 17181187}, {12187, 17181443},
++++    {12188, 17181699}, {12189, 17181955}, {12190, 17182211}, {12191, 17182467},
++++    {12192, 17182723}, {12193, 17182979}, {12194, 17183235}, {12195, 17183491},
++++    {12196, 17183747}, {12197, 17184003}, {12198, 17184259}, {12199, 17184515},
++++    {12200, 17184771}, {12201, 17185027}, {12202, 17185283}, {12203, 17185539},
++++    {12204, 17185795}, {12205, 17186051}, {12206, 17186307}, {12207, 17186563},
++++    {12208, 17186819}, {12209, 17187075}, {12210, 17187331}, {12211, 17187587},
++++    {12212, 17187843}, {12213, 17188099}, {12214, 17188355}, {12215, 17188611},
++++    {12216, 17188867}, {12217, 17189123}, {12218, 17189379}, {12219, 17189635},
++++    {12220, 17189891}, {12221, 17190147}, {12222, 17190403}, {12223, 17190659},
++++    {12224, 17190915}, {12225, 17191171}, {12226, 17191427}, {12227, 17191683},
++++    {12228, 17191939}, {12229, 17192195}, {12230, 17192451}, {12231, 17192707},
++++    {12232, 17192963}, {12233, 17193219}, {12234, 17193475}, {12235, 17193731},
++++    {12236, 17193987}, {12237, 17194243}, {12238, 17194499}, {12239, 17194755},
++++    {12240, 17195011}, {12241, 17195267}, {12242, 17195523}, {12243, 17195779},
++++    {12244, 17196035}, {12245, 17196291}, {12246, 2}, {12288, 16783875},
++++    {12289, 1}, {12290, 17196547}, {12291, 1}, {12342, 17196803},
++++    {12343, 1}, {12344, 17147651}, {12345, 17197059}, {12346, 17197315},
++++    {12347, 1}, {12352, 2}, {12353, 1}, {12439, 2},
++++    {12441, 1}, {12443, 33974787}, {12444, 33975299}, {12445, 1},
++++    {12447, 33975811}, {12448, 1}, {12543, 33976323}, {12544, 2},
++++    {12549, 1}, {12592, 2}, {12593, 17199619}, {12594, 17199875},
++++    {12595, 17200131}, {12596, 17200387}, {12597, 17200643}, {12598, 17200899},
++++    {12599, 17201155}, {12600, 17201411}, {12601, 17201667}, {12602, 17201923},
++++    {12603, 17202179}, {12604, 17202435}, {12605, 17202691}, {12606, 17202947},
++++    {12607, 17203203}, {12608, 17203459}, {12609, 17203715}, {12610, 17203971},
++++    {12611, 17204227}, {12612, 17204483}, {12613, 17204739}, {12614, 17204995},
++++    {12615, 17205251}, {12616, 17205507}, {12617, 17205763}, {12618, 17206019},
++++    {12619, 17206275}, {12620, 17206531}, {12621, 17206787}, {12622, 17207043},
++++    {12623, 17207299}, {12624, 17207555}, {12625, 17207811}, {12626, 17208067},
++++    {12627, 17208323}, {12628, 17208579}, {12629, 17208835}, {12630, 17209091},
++++    {12631, 17209347}, {12632, 17209603}, {12633, 17209859}, {12634, 17210115},
++++    {12635, 17210371}, {12636, 17210627}, {12637, 17210883}, {12638, 17211139},
++++    {12639, 17211395}, {12640, 17211651}, {12641, 17211907}, {12642, 17212163},
++++    {12643, 17212419}, {12644, 2}, {12645, 17212675}, {12646, 17212931},
++++    {12647, 17213187}, {12648, 17213443}, {12649, 17213699}, {12650, 17213955},
++++    {12651, 17214211}, {12652, 17214467}, {12653, 17214723}, {12654, 17214979},
++++    {12655, 17215235}, {12656, 17215491}, {12657, 17215747}, {12658, 17216003},
++++    {12659, 17216259}, {12660, 17216515}, {12661, 17216771}, {12662, 17217027},
++++    {12663, 17217283}, {12664, 17217539}, {12665, 17217795}, {12666, 17218051},
++++    {12667, 17218307}, {12668, 17218563}, {12669, 17218819}, {12670, 17219075},
++++    {12671, 17219331}, {12672, 17219587}, {12673, 17219843}, {12674, 17220099},
++++    {12675, 17220355}, {12676, 17220611}, {12677, 17220867}, {12678, 17221123},
++++    {12679, 17221379}, {12680, 17221635}, {12681, 17221891}, {12682, 17222147},
++++    {12683, 17222403}, {12684, 17222659}, {12685, 17222915}, {12686, 17223171},
++++    {12687, 2}, {12688, 1}, {12690, 17141763}, {12691, 17143299},
++++    {12692, 17223427}, {12693, 17223683}, {12694, 17223939}, {12695, 17224195},
++++    {12696, 17224451}, {12697, 17224707}, {12698, 17142787}, {12699, 17224963},
++++    {12700, 17225219}, {12701, 17225475}, {12702, 17225731}, {12703, 17143811},
++++    {12704, 1}, {12772, 2}, {12784, 1}, {12800, 50780419},
++++    {12801, 50781187}, {12802, 50781955}, {12803, 50782723}, {12804, 50783491},
++++    {12805, 50784259}, {12806, 50785027}, {12807, 50785795}, {12808, 50786563},
++++    {12809, 50787331}, {12810, 50788099}, {12811, 50788867}, {12812, 50789635},
++++    {12813, 50790403}, {12814, 50791171}, {12815, 50791939}, {12816, 50792707},
++++    {12817, 50793475}, {12818, 50794243}, {12819, 50795011}, {12820, 50795779},
++++    {12821, 50796547}, {12822, 50797315}, {12823, 50798083}, {12824, 50798851},
++++    {12825, 50799619}, {12826, 50800387}, {12827, 50801155}, {12828, 50801923},
++++    {12829, 67579907}, {12830, 67580931}, {12831, 2}, {12832, 50804739},
++++    {12833, 50805507}, {12834, 50806275}, {12835, 50807043}, {12836, 50807811},
++++    {12837, 50808579}, {12838, 50809347}, {12839, 50810115}, {12840, 50810883},
++++    {12841, 50811651}, {12842, 50812419}, {12843, 50813187}, {12844, 50813955},
++++    {12845, 50814723}, {12846, 50815491}, {12847, 50816259}, {12848, 50817027},
++++    {12849, 50817795}, {12850, 50818563}, {12851, 50819331}, {12852, 50820099},
++++    {12853, 50820867}, {12854, 50821635}, {12855, 50822403}, {12856, 50823171},
++++    {12857, 50823939}, {12858, 50824707}, {12859, 50825475}, {12860, 50826243},
++++    {12861, 50827011}, {12862, 50827779}, {12863, 50828547}, {12864, 50829315},
++++    {12865, 50830083}, {12866, 50830851}, {12867, 50831619}, {12868, 17277955},
++++    {12869, 17278211}, {12870, 17158659}, {12871, 17278467}, {12872, 1},
++++    {12880, 50833155}, {12881, 33845251}, {12882, 34056707}, {12883, 33562371},
++++    {12884, 34057219}, {12885, 34057731}, {12886, 34058243}, {12887, 34058755},
++++    {12888, 34059267}, {12889, 34059779}, {12890, 34060291}, {12891, 33827331},
++++    {12892, 33826563}, {12893, 34060803}, {12894, 34061315}, {12895, 34061827},
++++    {12896, 17199619}, {12897, 17200387}, {12898, 17201155}, {12899, 17201667},
++++    {12900, 17203715}, {12901, 17203971}, {12902, 17204739}, {12903, 17205251},
++++    {12904, 17205507}, {12905, 17206019}, {12906, 17206275}, {12907, 17206531},
++++    {12908, 17206787}, {12909, 17207043}, {12910, 17236995}, {12911, 17237763},
++++    {12912, 17238531}, {12913, 17239299}, {12914, 17240067}, {12915, 17240835},
++++    {12916, 17241603}, {12917, 17242371}, {12918, 17243139}, {12919, 17243907},
++++    {12920, 17244675}, {12921, 17245443}, {12922, 17246211}, {12923, 17246979},
++++    {12924, 34062339}, {12925, 34062851}, {12926, 17286147}, {12927, 1},
++++    {12928, 17141763}, {12929, 17143299}, {12930, 17223427}, {12931, 17223683},
++++    {12932, 17253635}, {12933, 17254403}, {12934, 17255171}, {12935, 17144579},
++++    {12936, 17256707}, {12937, 17147651}, {12938, 17160451}, {12939, 17163523},
++++    {12940, 17163267}, {12941, 17160707}, {12942, 17184259}, {12943, 17149699},
++++    {12944, 17159939}, {12945, 17263619}, {12946, 17264387}, {12947, 17265155},
++++    {12948, 17265923}, {12949, 17266691}, {12950, 17267459}, {12951, 17268227},
++++    {12952, 17268995}, {12953, 17286403}, {12954, 17286659}, {12955, 17151235},
++++    {12956, 17286915}, {12957, 17287171}, {12958, 17287427}, {12959, 17287683},
++++    {12960, 17287939}, {12961, 17275907}, {12962, 17288195}, {12963, 17288451},
++++    {12964, 17223939}, {12965, 17224195}, {12966, 17224451}, {12967, 17288707},
++++    {12968, 17288963}, {12969, 17289219}, {12970, 17289475}, {12971, 17271299},
++++    {12972, 17272067}, {12973, 17272835}, {12974, 17273603}, {12975, 17274371},
++++    {12976, 17289731}, {12977, 34067203}, {12978, 34067715}, {12979, 34068227},
++++    {12980, 34068739}, {12981, 34069251}, {12982, 33564931}, {12983, 34057475},
++++    {12984, 34061571}, {12985, 34069763}, {12986, 34070275}, {12987, 34070787},
++++    {12988, 34071299}, {12989, 34071811}, {12990, 34072323}, {12991, 34072835},
++++    {12992, 34073347}, {12993, 34073859}, {12994, 34074371}, {12995, 34074883},
++++    {12996, 34075395}, {12997, 34075907}, {12998, 34076419}, {12999, 34076931},
++++    {13000, 34077443}, {13001, 50855171}, {13002, 50855939}, {13003, 50856707},
++++    {13004, 34080259}, {13005, 50857987}, {13006, 34081539}, {13007, 50859267},
++++    {13008, 17305603}, {13009, 17305859}, {13010, 17306115}, {13011, 17306371},
++++    {13012, 17306627}, {13013, 17306883}, {13014, 17307139}, {13015, 17307395},
++++    {13016, 17307651}, {13017, 17199107}, {13018, 17307907}, {13019, 17308163},
++++    {13020, 17308419}, {13021, 17308675}, {13022, 17308931}, {13023, 17309187},
++++    {13024, 17309443}, {13025, 17309699}, {13026, 17309955}, {13027, 17199363},
++++    {13028, 17310211}, {13029, 17310467}, {13030, 17310723}, {13031, 17310979},
++++    {13032, 17311235}, {13033, 17311491}, {13034, 17311747}, {13035, 17312003},
++++    {13036, 17312259}, {13037, 17312515}, {13038, 17312771}, {13039, 17313027},
++++    {13040, 17313283}, {13041, 17313539}, {13042, 17313795}, {13043, 17314051},
++++    {13044, 17314307}, {13045, 17314563}, {13046, 17314819}, {13047, 17315075},
++++    {13048, 17315331}, {13049, 17315587}, {13050, 17315843}, {13051, 17316099},
++++    {13052, 17316355}, {13053, 17316611}, {13054, 17316867}, {13055, 34094339},
++++    {13056, 67649283}, {13057, 67650307}, {13058, 67651331}, {13059, 50875139},
++++    {13060, 67653123}, {13061, 50876931}, {13062, 50877699}, {13063, 84432899},
++++    {13064, 67656963}, {13065, 50880771}, {13066, 50881539}, {13067, 50882307},
++++    {13068, 67660291}, {13069, 67661315}, {13070, 50885123}, {13071, 50885891},
++++    {13072, 34109443}, {13073, 50887171}, {13074, 67665155}, {13075, 67666179},
++++    {13076, 34112771}, {13077, 84444931}, {13078, 101223427}, {13079, 84447747},
++++    {13080, 50891011}, {13081, 84449027}, {13082, 84450307}, {13083, 67674371},
++++    {13084, 50898179}, {13085, 50898947}, {13086, 50899715}, {13087, 67677699},
++++    {13088, 84455939}, {13089, 67680003}, {13090, 50903811}, {13091, 50904579},
++++    {13092, 50905347}, {13093, 34128899}, {13094, 34129411}, {13095, 34118147},
++++    {13096, 34129923}, {13097, 50907651}, {13098, 50908419}, {13099, 84463619},
++++    {13100, 50910467}, {13101, 67688451}, {13102, 84466691}, {13103, 50913539},
++++    {13104, 34137091}, {13105, 34137603}, {13106, 84469763}, {13107, 67693827},
++++    {13108, 84472067}, {13109, 50918915}, {13110, 84474115}, {13111, 34143747},
++++    {13112, 50921475}, {13113, 50922243}, {13114, 50923011}, {13115, 50923779},
++++    {13116, 50924547}, {13117, 67702531}, {13118, 50926339}, {13119, 34149891},
++++    {13120, 50927619}, {13121, 50928387}, {13122, 50929155}, {13123, 67707139},
++++    {13124, 50930947}, {13125, 50931715}, {13126, 50932483}, {13127, 84487683},
++++    {13128, 67711747}, {13129, 34158339}, {13130, 84490499}, {13131, 34160131},
++++    {13132, 67715075}, {13133, 67669507}, {13134, 50938883}, {13135, 50939651},
++++    {13136, 50940419}, {13137, 67718403}, {13138, 34164995}, {13139, 50942723},
++++    {13140, 67720707}, {13141, 34167299}, {13142, 84499459}, {13143, 50893827},
++++    {13144, 34169091}, {13145, 34169603}, {13146, 34170115}, {13147, 34170627},
++++    {13148, 34171139}, {13149, 34171651}, {13150, 34172163}, {13151, 34172675},
++++    {13152, 34173187}, {13153, 34173699}, {13154, 50951427}, {13155, 50952195},
++++    {13156, 50952963}, {13157, 50953731}, {13158, 50954499}, {13159, 50955267},
++++    {13160, 50956035}, {13161, 50956803}, {13162, 50957571}, {13163, 50958339},
++++    {13164, 50959107}, {13165, 50959875}, {13166, 50960643}, {13167, 50961411},
++++    {13168, 50962179}, {13169, 50962947}, {13170, 34186499}, {13171, 34187011},
++++    {13172, 50964739}, {13173, 34188291}, {13174, 34188803}, {13175, 34189315},
++++    {13176, 50967043}, {13177, 50967811}, {13178, 34191363}, {13179, 34191875},
++++    {13180, 34192387}, {13181, 34192899}, {13182, 34193411}, {13183, 67748355},
++++    {13184, 34185987}, {13185, 34194947}, {13186, 34195459}, {13187, 34195971},
++++    {13188, 34196483}, {13189, 34196995}, {13190, 34197507}, {13191, 34198019},
++++    {13192, 50975747}, {13193, 67753731}, {13194, 34200323}, {13195, 34200835},
++++    {13196, 34201347}, {13197, 34201859}, {13198, 34202371}, {13199, 34202883},
++++    {13200, 34203395}, {13201, 50981123}, {13202, 50981891}, {13203, 50980355},
++++    {13204, 50982659}, {13205, 34206211}, {13206, 34206723}, {13207, 34207235},
++++    {13208, 33556995}, {13209, 34207747}, {13210, 34208259}, {13211, 34208771},
++++    {13212, 34209283}, {13213, 34209795}, {13214, 34210307}, {13215, 50988035},
++++    {13216, 50988803}, {13217, 34190083}, {13218, 50989571}, {13219, 50990339},
++++    {13220, 50991107}, {13221, 34190851}, {13222, 50991875}, {13223, 50992643},
++++    {13224, 67770627}, {13225, 34185987}, {13226, 50994435}, {13227, 50995203},
++++    {13228, 50995971}, {13229, 50996739}, {13230, 84551939}, {13231, 101330435},
++++    {13232, 34223107}, {13233, 34223619}, {13234, 34224131}, {13235, 34224643},
++++    {13236, 34225155}, {13237, 34225667}, {13238, 34226179}, {13239, 34226691},
++++    {13240, 34227203}, {13241, 34226691}, {13242, 34227715}, {13243, 34228227},
++++    {13244, 34228739}, {13245, 34229251}, {13246, 34229763}, {13247, 34229251},
++++    {13248, 34230275}, {13249, 34230787}, {13250, 2}, {13251, 34231299},
++++    {13252, 33817347}, {13253, 33554947}, {13254, 67786243}, {13255, 2},
++++    {13256, 34232835}, {13257, 34233347}, {13258, 34233859}, {13259, 34185731},
++++    {13260, 34234371}, {13261, 34234883}, {13262, 34210307}, {13263, 34235395},
++++    {13264, 33557251}, {13265, 34235907}, {13266, 51013635}, {13267, 34237187},
++++    {13268, 34197507}, {13269, 51014915}, {13270, 51015683}, {13271, 34239235},
++++    {13272, 2}, {13273, 51016963}, {13274, 34240515}, {13275, 34221315},
++++    {13276, 34241027}, {13277, 34241539}, {13278, 51019267}, {13279, 51020035},
++++    {13280, 34243587}, {13281, 34244099}, {13282, 34244611}, {13283, 34245123},
++++    {13284, 34245635}, {13285, 34246147}, {13286, 34246659}, {13287, 34247171},
++++    {13288, 34247683}, {13289, 51025411}, {13290, 51026179}, {13291, 51026947},
++++    {13292, 51027715}, {13293, 51028483}, {13294, 51029251}, {13295, 51030019},
++++    {13296, 51030787}, {13297, 51031555}, {13298, 51032323}, {13299, 51033091},
++++    {13300, 51033859}, {13301, 51034627}, {13302, 51035395}, {13303, 51036163},
++++    {13304, 51036931}, {13305, 51037699}, {13306, 51038467}, {13307, 51039235},
++++    {13308, 51040003}, {13309, 51040771}, {13310, 51041539}, {13311, 51042307},
++++    {13312, 1}, {42125, 2}, {42128, 1}, {42183, 2},
++++    {42192, 1}, {42540, 2}, {42560, 17488643}, {42561, 1},
++++    {42562, 17488899}, {42563, 1}, {42564, 17489155}, {42565, 1},
++++    {42566, 17489411}, {42567, 1}, {42568, 17489667}, {42569, 1},
++++    {42570, 16936451}, {42571, 1}, {42572, 17489923}, {42573, 1},
++++    {42574, 17490179}, {42575, 1}, {42576, 17490435}, {42577, 1},
++++    {42578, 17490691}, {42579, 1}, {42580, 17490947}, {42581, 1},
++++    {42582, 17491203}, {42583, 1}, {42584, 17491459}, {42585, 1},
++++    {42586, 17491715}, {42587, 1}, {42588, 17491971}, {42589, 1},
++++    {42590, 17492227}, {42591, 1}, {42592, 17492483}, {42593, 1},
++++    {42594, 17492739}, {42595, 1}, {42596, 17492995}, {42597, 1},
++++    {42598, 17493251}, {42599, 1}, {42600, 17493507}, {42601, 1},
++++    {42602, 17493763}, {42603, 1}, {42604, 17494019}, {42605, 1},
++++    {42624, 17494275}, {42625, 1}, {42626, 17494531}, {42627, 1},
++++    {42628, 17494787}, {42629, 1}, {42630, 17495043}, {42631, 1},
++++    {42632, 17495299}, {42633, 1}, {42634, 17495555}, {42635, 1},
++++    {42636, 17495811}, {42637, 1}, {42638, 17496067}, {42639, 1},
++++    {42640, 17496323}, {42641, 1}, {42642, 17496579}, {42643, 1},
++++    {42644, 17496835}, {42645, 1}, {42646, 17497091}, {42647, 1},
++++    {42648, 17497347}, {42649, 1}, {42650, 17497603}, {42651, 1},
++++    {42652, 16873219}, {42653, 16873731}, {42654, 1}, {42744, 2},
++++    {42752, 1}, {42786, 17497859}, {42787, 1}, {42788, 17498115},
++++    {42789, 1}, {42790, 17498371}, {42791, 1}, {42792, 17498627},
++++    {42793, 1}, {42794, 17498883}, {42795, 1}, {42796, 17499139},
++++    {42797, 1}, {42798, 17499395}, {42799, 1}, {42802, 17499651},
++++    {42803, 1}, {42804, 17499907}, {42805, 1}, {42806, 17500163},
++++    {42807, 1}, {42808, 17500419}, {42809, 1}, {42810, 17500675},
++++    {42811, 1}, {42812, 17500931}, {42813, 1}, {42814, 17501187},
++++    {42815, 1}, {42816, 17501443}, {42817, 1}, {42818, 17501699},
++++    {42819, 1}, {42820, 17501955}, {42821, 1}, {42822, 17502211},
++++    {42823, 1}, {42824, 17502467}, {42825, 1}, {42826, 17502723},
++++    {42827, 1}, {42828, 17502979}, {42829, 1}, {42830, 17503235},
++++    {42831, 1}, {42832, 17503491}, {42833, 1}, {42834, 17503747},
++++    {42835, 1}, {42836, 17504003}, {42837, 1}, {42838, 17504259},
++++    {42839, 1}, {42840, 17504515}, {42841, 1}, {42842, 17504771},
++++    {42843, 1}, {42844, 17505027}, {42845, 1}, {42846, 17505283},
++++    {42847, 1}, {42848, 17505539}, {42849, 1}, {42850, 17505795},
++++    {42851, 1}, {42852, 17506051}, {42853, 1}, {42854, 17506307},
++++    {42855, 1}, {42856, 17506563}, {42857, 1}, {42858, 17506819},
++++    {42859, 1}, {42860, 17507075}, {42861, 1}, {42862, 17507331},
++++    {42863, 1}, {42864, 17507331}, {42865, 1}, {42873, 17507587},
++++    {42874, 1}, {42875, 17507843}, {42876, 1}, {42877, 17508099},
++++    {42878, 17508355}, {42879, 1}, {42880, 17508611}, {42881, 1},
++++    {42882, 17508867}, {42883, 1}, {42884, 17509123}, {42885, 1},
++++    {42886, 17509379}, {42887, 1}, {42891, 17509635}, {42892, 1},
++++    {42893, 16951299}, {42894, 1}, {42896, 17509891}, {42897, 1},
++++    {42898, 17510147}, {42899, 1}, {42902, 17510403}, {42903, 1},
++++    {42904, 17510659}, {42905, 1}, {42906, 17510915}, {42907, 1},
++++    {42908, 17511171}, {42909, 1}, {42910, 17511427}, {42911, 1},
++++    {42912, 17511683}, {42913, 1}, {42914, 17511939}, {42915, 1},
++++    {42916, 17512195}, {42917, 1}, {42918, 17512451}, {42919, 1},
++++    {42920, 17512707}, {42921, 1}, {42922, 16841475}, {42923, 16948995},
++++    {42924, 16951043}, {42925, 17512963}, {42926, 16951555}, {42927, 1},
++++    {42928, 17513219}, {42929, 17513475}, {42930, 16952067}, {42931, 17513731},
++++    {42932, 17513987}, {42933, 1}, {42934, 17514243}, {42935, 1},
++++    {42936, 17514499}, {42937, 1}, {42938, 17514755}, {42939, 1},
++++    {42940, 17515011}, {42941, 1}, {42942, 17515267}, {42943, 1},
++++    {42944, 17515523}, {42945, 1}, {42946, 17515779}, {42947, 1},
++++    {42948, 17516035}, {42949, 16954371}, {42950, 17516291}, {42951, 17516547},
++++    {42952, 1}, {42953, 17516803}, {42954, 1}, {42955, 2},
++++    {42960, 17517059}, {42961, 1}, {42962, 2}, {42963, 1},
++++    {42964, 2}, {42965, 1}, {42966, 17517315}, {42967, 1},
++++    {42968, 17517571}, {42969, 1}, {42970, 2}, {42994, 16777731},
++++    {42995, 16778499}, {42996, 16781315}, {42997, 17517827}, {42998, 1},
++++    {43000, 16802051}, {43001, 16808195}, {43002, 1}, {43053, 2},
++++    {43056, 1}, {43066, 2}, {43072, 1}, {43128, 2},
++++    {43136, 1}, {43206, 2}, {43214, 1}, {43226, 2},
++++    {43232, 1}, {43348, 2}, {43359, 1}, {43389, 2},
++++    {43392, 1}, {43470, 2}, {43471, 1}, {43482, 2},
++++    {43486, 1}, {43519, 2}, {43520, 1}, {43575, 2},
++++    {43584, 1}, {43598, 2}, {43600, 1}, {43610, 2},
++++    {43612, 1}, {43715, 2}, {43739, 1}, {43767, 2},
++++    {43777, 1}, {43783, 2}, {43785, 1}, {43791, 2},
++++    {43793, 1}, {43799, 2}, {43808, 1}, {43815, 2},
++++    {43816, 1}, {43823, 2}, {43824, 1}, {43868, 17498371},
++++    {43869, 17518083}, {43870, 17124867}, {43871, 17518339}, {43872, 1},
++++    {43881, 17518595}, {43882, 1}, {43884, 2}, {43888, 17518851},
++++    {43889, 17519107}, {43890, 17519363}, {43891, 17519619}, {43892, 17519875},
++++    {43893, 17520131}, {43894, 17520387}, {43895, 17520643}, {43896, 17520899},
++++    {43897, 17521155}, {43898, 17521411}, {43899, 17521667}, {43900, 17521923},
++++    {43901, 17522179}, {43902, 17522435}, {43903, 17522691}, {43904, 17522947},
++++    {43905, 17523203}, {43906, 17523459}, {43907, 17523715}, {43908, 17523971},
++++    {43909, 17524227}, {43910, 17524483}, {43911, 17524739}, {43912, 17524995},
++++    {43913, 17525251}, {43914, 17525507}, {43915, 17525763}, {43916, 17526019},
++++    {43917, 17526275}, {43918, 17526531}, {43919, 17526787}, {43920, 17527043},
++++    {43921, 17527299}, {43922, 17527555}, {43923, 17527811}, {43924, 17528067},
++++    {43925, 17528323}, {43926, 17528579}, {43927, 17528835}, {43928, 17529091},
++++    {43929, 17529347}, {43930, 17529603}, {43931, 17529859}, {43932, 17530115},
++++    {43933, 17530371}, {43934, 17530627}, {43935, 17530883}, {43936, 17531139},
++++    {43937, 17531395}, {43938, 17531651}, {43939, 17531907}, {43940, 17532163},
++++    {43941, 17532419}, {43942, 17532675}, {43943, 17532931}, {43944, 17533187},
++++    {43945, 17533443}, {43946, 17533699}, {43947, 17533955}, {43948, 17534211},
++++    {43949, 17534467}, {43950, 17534723}, {43951, 17534979}, {43952, 17535235},
++++    {43953, 17535491}, {43954, 17535747}, {43955, 17536003}, {43956, 17536259},
++++    {43957, 17536515}, {43958, 17536771}, {43959, 17537027}, {43960, 17537283},
++++    {43961, 17537539}, {43962, 17537795}, {43963, 17538051}, {43964, 17538307},
++++    {43965, 17538563}, {43966, 17538819}, {43967, 17539075}, {43968, 1},
++++    {44014, 2}, {44016, 1}, {44026, 2}, {44032, 1},
++++    {55204, 2}, {55216, 1}, {55239, 2}, {55243, 1},
++++    {55292, 2}, {63744, 17539331}, {63745, 17539587}, {63746, 17182211},
++++    {63747, 17539843}, {63748, 17540099}, {63749, 17540355}, {63750, 17540611},
++++    {63751, 17196035}, {63753, 17540867}, {63754, 17184259}, {63755, 17541123},
++++    {63756, 17541379}, {63757, 17541635}, {63758, 17541891}, {63759, 17542147},
++++    {63760, 17542403}, {63761, 17542659}, {63762, 17542915}, {63763, 17543171},
++++    {63764, 17543427}, {63765, 17543683}, {63766, 17543939}, {63767, 17544195},
++++    {63768, 17544451}, {63769, 17544707}, {63770, 17544963}, {63771, 17545219},
++++    {63772, 17545475}, {63773, 17545731}, {63774, 17545987}, {63775, 17546243},
++++    {63776, 17546499}, {63777, 17546755}, {63778, 17547011}, {63779, 17547267},
++++    {63780, 17547523}, {63781, 17547779}, {63782, 17548035}, {63783, 17548291},
++++    {63784, 17548547}, {63785, 17548803}, {63786, 17549059}, {63787, 17549315},
++++    {63788, 17549571}, {63789, 17549827}, {63790, 17550083}, {63791, 17550339},
++++    {63792, 17550595}, {63793, 17550851}, {63794, 17551107}, {63795, 17551363},
++++    {63796, 17173507}, {63797, 17551619}, {63798, 17551875}, {63799, 17552131},
++++    {63800, 17552387}, {63801, 17552643}, {63802, 17552899}, {63803, 17553155},
++++    {63804, 17553411}, {63805, 17553667}, {63806, 17553923}, {63807, 17554179},
++++    {63808, 17192195}, {63809, 17554435}, {63810, 17554691}, {63811, 17554947},
++++    {63812, 17555203}, {63813, 17555459}, {63814, 17555715}, {63815, 17555971},
++++    {63816, 17556227}, {63817, 17556483}, {63818, 17556739}, {63819, 17556995},
++++    {63820, 17557251}, {63821, 17557507}, {63822, 17557763}, {63823, 17558019},
++++    {63824, 17558275}, {63825, 17558531}, {63826, 17558787}, {63827, 17559043},
++++    {63828, 17559299}, {63829, 17559555}, {63830, 17559811}, {63831, 17560067},
++++    {63832, 17560323}, {63833, 17560579}, {63834, 17560835}, {63835, 17561091},
++++    {63836, 17543427}, {63837, 17561347}, {63838, 17561603}, {63839, 17561859},
++++    {63840, 17562115}, {63841, 17562371}, {63842, 17562627}, {63843, 17562883},
++++    {63844, 17563139}, {63845, 17563395}, {63846, 17563651}, {63847, 17563907},
++++    {63848, 17564163}, {63849, 17564419}, {63850, 17564675}, {63851, 17564931},
++++    {63852, 17565187}, {63853, 17565443}, {63854, 17565699}, {63855, 17565955},
++++    {63856, 17566211}, {63857, 17182723}, {63858, 17566467}, {63859, 17566723},
++++    {63860, 17566979}, {63861, 17567235}, {63862, 17567491}, {63863, 17567747},
++++    {63864, 17568003}, {63865, 17568259}, {63866, 17568515}, {63867, 17568771},
++++    {63868, 17569027}, {63869, 17569283}, {63870, 17569539}, {63871, 17569795},
++++    {63872, 17570051}, {63873, 17151235}, {63874, 17570307}, {63875, 17570563},
++++    {63876, 17570819}, {63877, 17571075}, {63878, 17571331}, {63879, 17571587},
++++    {63880, 17571843}, {63881, 17572099}, {63882, 17146371}, {63883, 17572355},
++++    {63884, 17572611}, {63885, 17572867}, {63886, 17573123}, {63887, 17573379},
++++    {63888, 17573635}, {63889, 17573891}, {63890, 17574147}, {63891, 17574403},
++++    {63892, 17574659}, {63893, 17574915}, {63894, 17575171}, {63895, 17575427},
++++    {63896, 17575683}, {63897, 17575939}, {63898, 17576195}, {63899, 17576451},
++++    {63900, 17576707}, {63901, 17576963}, {63902, 17577219}, {63903, 17577475},
++++    {63904, 17577731}, {63905, 17565955}, {63906, 17577987}, {63907, 17578243},
++++    {63908, 17578499}, {63909, 17578755}, {63910, 17579011}, {63911, 17579267},
++++    {63912, 17317123}, {63913, 17579523}, {63914, 17561859}, {63915, 17579779},
++++    {63916, 17580035}, {63917, 17580291}, {63918, 17580547}, {63919, 17580803},
++++    {63920, 17581059}, {63921, 17581315}, {63922, 17581571}, {63923, 17581827},
++++    {63924, 17582083}, {63925, 17582339}, {63926, 17582595}, {63927, 17582851},
++++    {63928, 17583107}, {63929, 17583363}, {63930, 17583619}, {63931, 17583875},
++++    {63932, 17584131}, {63933, 17584387}, {63934, 17584643}, {63935, 17543427},
++++    {63936, 17584899}, {63937, 17585155}, {63938, 17585411}, {63939, 17585667},
++++    {63940, 17195779}, {63941, 17585923}, {63942, 17586179}, {63943, 17586435},
++++    {63944, 17586691}, {63945, 17586947}, {63946, 17587203}, {63947, 17587459},
++++    {63948, 17587715}, {63949, 17587971}, {63950, 17588227}, {63951, 17588483},
++++    {63952, 17588739}, {63953, 17254403}, {63954, 17588995}, {63955, 17589251},
++++    {63956, 17589507}, {63957, 17589763}, {63958, 17590019}, {63959, 17590275},
++++    {63960, 17590531}, {63961, 17590787}, {63962, 17591043}, {63963, 17562371},
++++    {63964, 17591299}, {63965, 17591555}, {63966, 17591811}, {63967, 17592067},
++++    {63968, 17592323}, {63969, 17592579}, {63970, 17592835}, {63971, 17593091},
++++    {63972, 17593347}, {63973, 17593603}, {63974, 17593859}, {63975, 17594115},
++++    {63976, 17594371}, {63977, 17184003}, {63978, 17594627}, {63979, 17594883},
++++    {63980, 17595139}, {63981, 17595395}, {63982, 17595651}, {63983, 17595907},
++++    {63984, 17596163}, {63985, 17596419}, {63986, 17596675}, {63987, 17596931},
++++    {63988, 17597187}, {63989, 17597443}, {63990, 17597699}, {63991, 17171459},
++++    {63992, 17597955}, {63993, 17598211}, {63994, 17598467}, {63995, 17598723},
++++    {63996, 17598979}, {63997, 17599235}, {63998, 17599491}, {63999, 17599747},
++++    {64000, 17600003}, {64001, 17600259}, {64002, 17600515}, {64003, 17600771},
++++    {64004, 17601027}, {64005, 17601283}, {64006, 17601539}, {64007, 17601795},
++++    {64008, 17178371}, {64009, 17602051}, {64010, 17179139}, {64011, 17602307},
++++    {64012, 17602563}, {64013, 17602819}, {64014, 1}, {64016, 17603075},
++++    {64017, 1}, {64018, 17603331}, {64019, 1}, {64021, 17603587},
++++    {64022, 17603843}, {64023, 17604099}, {64024, 17604355}, {64025, 17604611},
++++    {64026, 17604867}, {64027, 17605123}, {64028, 17605379}, {64029, 17605635},
++++    {64030, 17173251}, {64031, 1}, {64032, 17605891}, {64033, 1},
++++    {64034, 17606147}, {64035, 1}, {64037, 17606403}, {64038, 17606659},
++++    {64039, 1}, {64042, 17606915}, {64043, 17607171}, {64044, 17607427},
++++    {64045, 17607683}, {64046, 17607939}, {64047, 17608195}, {64048, 17608451},
++++    {64049, 17608707}, {64050, 17608963}, {64051, 17609219}, {64052, 17609475},
++++    {64053, 17609731}, {64054, 17609987}, {64055, 17610243}, {64056, 17610499},
++++    {64057, 17610755}, {64058, 17611011}, {64059, 17611267}, {64060, 17153027},
++++    {64061, 17611523}, {64062, 17611779}, {64063, 17612035}, {64064, 17612291},
++++    {64065, 17612547}, {64066, 17612803}, {64067, 17613059}, {64068, 17613315},
++++    {64069, 17613571}, {64070, 17613827}, {64071, 17614083}, {64072, 17614339},
++++    {64073, 17614595}, {64074, 17614851}, {64075, 17615107}, {64076, 17265155},
++++    {64077, 17615363}, {64078, 17615619}, {64079, 17615875}, {64080, 17616131},
++++    {64081, 17268227}, {64082, 17616387}, {64083, 17616643}, {64084, 17616899},
++++    {64085, 17617155}, {64086, 17617411}, {64087, 17575171}, {64088, 17617667},
++++    {64089, 17617923}, {64090, 17618179}, {64091, 17618435}, {64092, 17618691},
++++    {64093, 17618947}, {64095, 17619203}, {64096, 17619459}, {64097, 17619715},
++++    {64098, 17619971}, {64099, 17620227}, {64100, 17620483}, {64101, 17620739},
++++    {64102, 17620995}, {64103, 17606403}, {64104, 17621251}, {64105, 17621507},
++++    {64106, 17621763}, {64107, 17622019}, {64108, 17622275}, {64109, 17622531},
++++    {64110, 2}, {64112, 17622787}, {64113, 17623043}, {64114, 17623299},
++++    {64115, 17623555}, {64116, 17623811}, {64117, 17624067}, {64118, 17624323},
++++    {64119, 17624579}, {64120, 17609987}, {64121, 17624835}, {64122, 17625091},
++++    {64123, 17625347}, {64124, 17603075}, {64125, 17625603}, {64126, 17625859},
++++    {64127, 17626115}, {64128, 17626371}, {64129, 17626627}, {64130, 17626883},
++++    {64131, 17627139}, {64132, 17627395}, {64133, 17627651}, {64134, 17627907},
++++    {64135, 17628163}, {64136, 17628419}, {64137, 17612035}, {64138, 17628675},
++++    {64139, 17612291}, {64140, 17628931}, {64141, 17629187}, {64142, 17629443},
++++    {64143, 17629699}, {64144, 17629955}, {64145, 17603331}, {64146, 17548803},
++++    {64147, 17630211}, {64148, 17630467}, {64149, 17161475}, {64150, 17566211},
++++    {64151, 17587203}, {64152, 17630723}, {64153, 17630979}, {64154, 17614083},
++++    {64155, 17631235}, {64156, 17614339}, {64157, 17631491}, {64158, 17631747},
++++    {64159, 17632003}, {64160, 17603843}, {64161, 17632259}, {64162, 17632515},
++++    {64163, 17632771}, {64164, 17633027}, {64165, 17633283}, {64166, 17604099},
++++    {64167, 17633539}, {64168, 17633795}, {64169, 17634051}, {64170, 17634307},
++++    {64171, 17634563}, {64172, 17634819}, {64173, 17617411}, {64174, 17635075},
++++    {64175, 17635331}, {64176, 17575171}, {64177, 17635587}, {64178, 17618435},
++++    {64179, 17635843}, {64180, 17636099}, {64181, 17636355}, {64182, 17636611},
++++    {64183, 17636867}, {64184, 17619715}, {64185, 17637123}, {64186, 17606147},
++++    {64187, 17637379}, {64188, 17619971}, {64189, 17561347}, {64190, 17637635},
++++    {64191, 17620227}, {64192, 17637891}, {64193, 17620739}, {64194, 17638147},
++++    {64195, 17638403}, {64196, 17638659}, {64197, 17638915}, {64198, 17639171},
++++    {64199, 17621251}, {64200, 17605379}, {64201, 17639427}, {64202, 17621507},
++++    {64203, 17639683}, {64204, 17621763}, {64205, 17639939}, {64206, 17196035},
++++    {64207, 17640195}, {64208, 17640451}, {64209, 17640707}, {64210, 17640963},
++++    {64211, 17641219}, {64212, 17641475}, {64213, 17641731}, {64214, 17641987},
++++    {64215, 17642243}, {64216, 17642499}, {64217, 17642755}, {64218, 2},
++++    {64256, 34420227}, {64257, 34420739}, {64258, 34421251}, {64259, 51197699},
++++    {64260, 51198979}, {64261, 33559043}, {64263, 2}, {64275, 34422531},
++++    {64276, 34423043}, {64277, 34423555}, {64278, 34424067}, {64279, 34424579},
++++    {64280, 2}, {64285, 34425091}, {64286, 1}, {64287, 34425603},
++++    {64288, 17648899}, {64289, 17044227}, {64290, 17044995}, {64291, 17649155},
++++    {64292, 17649411}, {64293, 17649667}, {64294, 17649923}, {64295, 17650179},
++++    {64296, 17650435}, {64297, 17037059}, {64298, 34427907}, {64299, 34428419},
++++    {64300, 51206147}, {64301, 51206915}, {64302, 34430467}, {64303, 34430979},
++++    {64304, 34431491}, {64305, 34432003}, {64306, 34432515}, {64307, 34433027},
++++    {64308, 34433539}, {64309, 34434051}, {64310, 34434563}, {64311, 2},
++++    {64312, 34435075}, {64313, 34435587}, {64314, 34436099}, {64315, 34436611},
++++    {64316, 34437123}, {64317, 2}, {64318, 34437635}, {64319, 2},
++++    {64320, 34438147}, {64321, 34438659}, {64322, 2}, {64323, 34439171},
++++    {64324, 34439683}, {64325, 2}, {64326, 34440195}, {64327, 34440707},
++++    {64328, 34441219}, {64329, 34428931}, {64330, 34441731}, {64331, 34442243},
++++    {64332, 34442755}, {64333, 34443267}, {64334, 34443779}, {64335, 34444291},
++++    {64336, 17667587}, {64338, 17667843}, {64342, 17668099}, {64346, 17668355},
++++    {64350, 17668611}, {64354, 17668867}, {64358, 17669123}, {64362, 17669379},
++++    {64366, 17669635}, {64370, 17669891}, {64374, 17670147}, {64378, 17670403},
++++    {64382, 17670659}, {64386, 17670915}, {64388, 17671171}, {64390, 17671427},
++++    {64392, 17671683}, {64394, 17671939}, {64396, 17672195}, {64398, 17672451},
++++    {64402, 17672707}, {64406, 17672963}, {64410, 17673219}, {64414, 17673475},
++++    {64416, 17673731}, {64420, 17673987}, {64422, 17674243}, {64426, 17674499},
++++    {64430, 17674755}, {64432, 17675011}, {64434, 1}, {64451, 2},
++++    {64467, 17675267}, {64471, 16911363}, {64473, 17675523}, {64475, 17675779},
++++    {64477, 33688579}, {64478, 17676035}, {64480, 17676291}, {64482, 17676547},
++++    {64484, 17676803}, {64488, 17677059}, {64490, 34454531}, {64492, 34455043},
++++    {64494, 34455555}, {64496, 34456067}, {64498, 34456579}, {64500, 34457091},
++++    {64502, 34457603}, {64505, 34458115}, {64508, 17681411}, {64512, 34458883},
++++    {64513, 34459395}, {64514, 34459907}, {64515, 34458115}, {64516, 34460419},
++++    {64517, 34460931}, {64518, 34461443}, {64519, 34461955}, {64520, 34462467},
++++    {64521, 34462979}, {64522, 34463491}, {64523, 34464003}, {64524, 34464515},
++++    {64525, 34465027}, {64526, 34465539}, {64527, 34466051}, {64528, 34466563},
++++    {64529, 34467075}, {64530, 34467587}, {64531, 34468099}, {64532, 34468611},
++++    {64533, 34469123}, {64534, 34469635}, {64535, 34469379}, {64536, 34470147},
++++    {64537, 34470659}, {64538, 34471171}, {64539, 34471683}, {64540, 34472195},
++++    {64541, 34472707}, {64542, 34473219}, {64543, 34473731}, {64544, 34474243},
++++    {64545, 34474755}, {64546, 34475267}, {64547, 34475779}, {64548, 34476291},
++++    {64549, 34476803}, {64550, 34477315}, {64551, 34477827}, {64552, 34478339},
++++    {64553, 34478851}, {64554, 34479363}, {64555, 34479875}, {64556, 34480387},
++++    {64557, 34480899}, {64558, 34481411}, {64559, 34481923}, {64560, 34482435},
++++    {64561, 34482947}, {64562, 34483459}, {64563, 34483971}, {64564, 34484483},
++++    {64565, 34484995}, {64566, 34485507}, {64567, 34486019}, {64568, 34486531},
++++    {64569, 34487043}, {64570, 34487555}, {64571, 34488067}, {64572, 34488579},
++++    {64573, 34489091}, {64574, 34489603}, {64575, 34490115}, {64576, 34490627},
++++    {64577, 34491139}, {64578, 34491651}, {64579, 34492163}, {64580, 34492675},
++++    {64581, 34493187}, {64582, 34469891}, {64583, 34470403}, {64584, 34493699},
++++    {64585, 34494211}, {64586, 34494723}, {64587, 34495235}, {64588, 34495747},
++++    {64589, 34496259}, {64590, 34496771}, {64591, 34497283}, {64592, 34497795},
++++    {64593, 34498307}, {64594, 34498819}, {64595, 34499331}, {64596, 34499843},
++++    {64597, 34468867}, {64598, 34500355}, {64599, 34500867}, {64600, 34492931},
++++    {64601, 34501379}, {64602, 34500099}, {64603, 34501891}, {64604, 34502403},
++++    {64605, 34502915}, {64606, 51280643}, {64607, 51281411}, {64608, 51282179},
++++    {64609, 51282947}, {64610, 51283715}, {64611, 51284483}, {64612, 34508035},
++++    {64613, 34508547}, {64614, 34459907}, {64615, 34509059}, {64616, 34458115},
++++    {64617, 34460419}, {64618, 34509571}, {64619, 34510083}, {64620, 34462467},
++++    {64621, 34510595}, {64622, 34462979}, {64623, 34463491}, {64624, 34511107},
++++    {64625, 34511619}, {64626, 34465539}, {64627, 34512131}, {64628, 34466051},
++++    {64629, 34466563}, {64630, 34512643}, {64631, 34513155}, {64632, 34467587},
++++    {64633, 34513667}, {64634, 34468099}, {64635, 34468611}, {64636, 34482947},
++++    {64637, 34483459}, {64638, 34484995}, {64639, 34485507}, {64640, 34486019},
++++    {64641, 34488067}, {64642, 34488579}, {64643, 34489091}, {64644, 34489603},
++++    {64645, 34491651}, {64646, 34492163}, {64647, 34492675}, {64648, 34514179},
++++    {64649, 34493699}, {64650, 34514691}, {64651, 34515203}, {64652, 34496771},
++++    {64653, 34515715}, {64654, 34497283}, {64655, 34497795}, {64656, 34502915},
++++    {64657, 34516227}, {64658, 34516739}, {64659, 34492931}, {64660, 34494979},
++++    {64661, 34501379}, {64662, 34500099}, {64663, 34458883}, {64664, 34459395},
++++    {64665, 34517251}, {64666, 34459907}, {64667, 34517763}, {64668, 34460931},
++++    {64669, 34461443}, {64670, 34461955}, {64671, 34462467}, {64672, 34518275},
++++    {64673, 34464003}, {64674, 34464515}, {64675, 34465027}, {64676, 34465539},
++++    {64677, 34518787}, {64678, 34467587}, {64679, 34469123}, {64680, 34469635},
++++    {64681, 34469379}, {64682, 34470147}, {64683, 34470659}, {64684, 34471683},
++++    {64685, 34472195}, {64686, 34472707}, {64687, 34473219}, {64688, 34473731},
++++    {64689, 34474243}, {64690, 34519299}, {64691, 34474755}, {64692, 34475267},
++++    {64693, 34475779}, {64694, 34476291}, {64695, 34476803}, {64696, 34477315},
++++    {64697, 34478339}, {64698, 34478851}, {64699, 34479363}, {64700, 34479875},
++++    {64701, 34480387}, {64702, 34480899}, {64703, 34481411}, {64704, 34481923},
++++    {64705, 34482435}, {64706, 34483971}, {64707, 34484483}, {64708, 34486531},
++++    {64709, 34487043}, {64710, 34487555}, {64711, 34488067}, {64712, 34488579},
++++    {64713, 34490115}, {64714, 34490627}, {64715, 34491139}, {64716, 34491651},
++++    {64717, 34519811}, {64718, 34493187}, {64719, 34469891}, {64720, 34470403},
++++    {64721, 34493699}, {64722, 34495235}, {64723, 34495747}, {64724, 34496259},
++++    {64725, 34496771}, {64726, 34520323}, {64727, 34498307}, {64728, 34498819},
++++    {64729, 34520835}, {64730, 34468867}, {64731, 34500355}, {64732, 34500867},
++++    {64733, 34492931}, {64734, 34498051}, {64735, 34459907}, {64736, 34517763},
++++    {64737, 34462467}, {64738, 34518275}, {64739, 34465539}, {64740, 34518787},
++++    {64741, 34467587}, {64742, 34521347}, {64743, 34473731}, {64744, 34521859},
++++    {64745, 34522371}, {64746, 34522883}, {64747, 34488067}, {64748, 34488579},
++++    {64749, 34491651}, {64750, 34496771}, {64751, 34520323}, {64752, 34492931},
++++    {64753, 34498051}, {64754, 51300611}, {64755, 51301379}, {64756, 51302147},
++++    {64757, 34525699}, {64758, 34526211}, {64759, 34526723}, {64760, 34527235},
++++    {64761, 34527747}, {64762, 34528259}, {64763, 34528771}, {64764, 34529283},
++++    {64765, 34529795}, {64766, 34530307}, {64767, 34530819}, {64768, 34500611},
++++    {64769, 34531331}, {64770, 34531843}, {64771, 34532355}, {64772, 34501123},
++++    {64773, 34532867}, {64774, 34533379}, {64775, 34533891}, {64776, 34534403},
++++    {64777, 34534915}, {64778, 34535427}, {64779, 34535939}, {64780, 34522371},
++++    {64781, 34536451}, {64782, 34536963}, {64783, 34537475}, {64784, 34537987},
++++    {64785, 34525699}, {64786, 34526211}, {64787, 34526723}, {64788, 34527235},
++++    {64789, 34527747}, {64790, 34528259}, {64791, 34528771}, {64792, 34529283},
++++    {64793, 34529795}, {64794, 34530307}, {64795, 34530819}, {64796, 34500611},
++++    {64797, 34531331}, {64798, 34531843}, {64799, 34532355}, {64800, 34501123},
++++    {64801, 34532867}, {64802, 34533379}, {64803, 34533891}, {64804, 34534403},
++++    {64805, 34534915}, {64806, 34535427}, {64807, 34535939}, {64808, 34522371},
++++    {64809, 34536451}, {64810, 34536963}, {64811, 34537475}, {64812, 34537987},
++++    {64813, 34534915}, {64814, 34535427}, {64815, 34535939}, {64816, 34522371},
++++    {64817, 34521859}, {64818, 34522883}, {64819, 34477827}, {64820, 34472195},
++++    {64821, 34472707}, {64822, 34473219}, {64823, 34534915}, {64824, 34535427},
++++    {64825, 34535939}, {64826, 34477827}, {64827, 34478339}, {64828, 34538499},
++++    {64830, 1}, {64848, 51316227}, {64849, 51316995}, {64851, 51317763},
++++    {64852, 51318531}, {64853, 51319299}, {64854, 51320067}, {64855, 51320835},
++++    {64856, 51246851}, {64858, 51321603}, {64859, 51322371}, {64860, 51323139},
++++    {64861, 51323907}, {64862, 51324675}, {64863, 51325443}, {64865, 51326211},
++++    {64866, 51326979}, {64868, 51327747}, {64870, 51328515}, {64871, 51329283},
++++    {64873, 51330051}, {64874, 51330819}, {64876, 51331587}, {64878, 51332355},
++++    {64879, 51333123}, {64881, 51333891}, {64883, 51334659}, {64884, 51335427},
++++    {64885, 51336195}, {64886, 51336963}, {64888, 51337731}, {64889, 51338499},
++++    {64890, 51339267}, {64891, 51340035}, {64892, 51340803}, {64894, 51341571},
++++    {64895, 51342339}, {64896, 51343107}, {64897, 51343875}, {64898, 51344643},
++++    {64899, 51345411}, {64901, 51346179}, {64903, 51346947}, {64905, 51347715},
++++    {64906, 51247107}, {64907, 51348483}, {64908, 51349251}, {64909, 51270403},
++++    {64910, 51247619}, {64911, 51350019}, {64912, 2}, {64914, 51350787},
++++    {64915, 51351555}, {64916, 51352323}, {64917, 51353091}, {64918, 51353859},
++++    {64919, 51354627}, {64921, 51355395}, {64922, 51356163}, {64923, 51356931},
++++    {64924, 51357699}, {64926, 51358467}, {64927, 51359235}, {64928, 51360003},
++++    {64929, 51360771}, {64930, 51361539}, {64931, 51362307}, {64932, 51363075},
++++    {64933, 51363843}, {64934, 51364611}, {64935, 51365379}, {64936, 51366147},
++++    {64937, 51366915}, {64938, 51367683}, {64939, 51368451}, {64940, 51369219},
++++    {64941, 51369987}, {64942, 51277571}, {64943, 51370755}, {64944, 51371523},
++++    {64945, 51372291}, {64946, 51373059}, {64947, 51373827}, {64948, 51341571},
++++    {64949, 51343107}, {64950, 51374595}, {64951, 51375363}, {64952, 51376131},
++++    {64953, 51376899}, {64954, 51377667}, {64955, 51378435}, {64956, 51377667},
++++    {64957, 51376131}, {64958, 51379203}, {64959, 51379971}, {64960, 51380739},
++++    {64961, 51381507}, {64962, 51382275}, {64963, 51378435}, {64964, 51336195},
++++    {64965, 51328515}, {64966, 51383043}, {64967, 51383811}, {64968, 2},
++++    {64975, 1}, {64976, 2}, {65008, 51384579}, {65009, 51385347},
++++    {65010, 68163331}, {65011, 68164355}, {65012, 68165379}, {65013, 68166403},
++++    {65014, 68167427}, {65015, 68168451}, {65016, 68169475}, {65017, 51393283},
++++    {65018, 303052291}, {65019, 135284739}, {65020, 68177923}, {65021, 1},
++++    {65024, 0}, {65040, 17847299}, {65041, 17847555}, {65042, 2},
++++    {65043, 17110531}, {65044, 16848643}, {65045, 17032963}, {65046, 17033987},
++++    {65047, 17847811}, {65048, 17848067}, {65049, 2}, {65056, 1},
++++    {65072, 2}, {65073, 17848323}, {65074, 17848579}, {65075, 17848835},
++++    {65077, 17037827}, {65078, 17038083}, {65079, 17849091}, {65080, 17849347},
++++    {65081, 17849603}, {65082, 17849859}, {65083, 17850115}, {65084, 17850371},
++++    {65085, 17850627}, {65086, 17850883}, {65087, 17067267}, {65088, 17067523},
++++    {65089, 17851139}, {65090, 17851395}, {65091, 17851651}, {65092, 17851907},
++++    {65093, 1}, {65095, 17852163}, {65096, 17852419}, {65097, 33810691},
++++    {65101, 17848835}, {65104, 17847299}, {65105, 17847555}, {65106, 2},
++++    {65108, 16848643}, {65109, 17110531}, {65110, 17033987}, {65111, 17032963},
++++    {65112, 17848323}, {65113, 17037827}, {65114, 17038083}, {65115, 17849091},
++++    {65116, 17849347}, {65117, 17849603}, {65118, 17849859}, {65119, 17852675},
++++    {65120, 17852931}, {65121, 17853187}, {65122, 17037059}, {65123, 17853443},
++++    {65124, 17853699}, {65125, 17853955}, {65126, 17037571}, {65127, 2},
++++    {65128, 17854211}, {65129, 17854467}, {65130, 17854723}, {65131, 17854979},
++++    {65132, 2}, {65136, 34632451}, {65137, 34632963}, {65138, 34503427},
++++    {65139, 1}, {65140, 34504195}, {65141, 2}, {65142, 34504963},
++++    {65143, 34523395}, {65144, 34505731}, {65145, 34524163}, {65146, 34506499},
++++    {65147, 34524931}, {65148, 34507267}, {65149, 34633475}, {65150, 34633987},
++++    {65151, 34634499}, {65152, 17857795}, {65153, 17858051}, {65155, 17858307},
++++    {65157, 17858563}, {65159, 17858819}, {65161, 17677315}, {65165, 16910339},
++++    {65167, 17683715}, {65171, 17859075}, {65173, 17686787}, {65177, 17689859},
++++    {65181, 17681923}, {65185, 17682435}, {65189, 17684995}, {65193, 17834499},
++++    {65195, 17724675}, {65197, 17725187}, {65199, 17731587}, {65201, 17694979},
++++    {65205, 17745155}, {65209, 17697027}, {65213, 17698051}, {65217, 17700099},
++++    {65221, 17701123}, {65225, 17701635}, {65229, 17702659}, {65233, 17703683},
++++    {65237, 17706755}, {65241, 17708803}, {65245, 17711107}, {65249, 17682947},
++++    {65253, 17718019}, {65257, 17721091}, {65261, 16910851}, {65263, 17677059},
++++    {65265, 16911875}, {65269, 34636547}, {65271, 34637059}, {65273, 34637571},
++++    {65275, 34622467}, {65277, 2}, {65279, 0}, {65280, 2},
++++    {65281, 17032963}, {65282, 17860867}, {65283, 17852675}, {65284, 17854467},
++++    {65285, 17854723}, {65286, 17852931}, {65287, 17861123}, {65288, 17037827},
++++    {65289, 17038083}, {65290, 17853187}, {65291, 17037059}, {65292, 17847299},
++++    {65293, 17853443}, {65294, 17196547}, {65295, 17038595}, {65296, 17035523},
++++    {65297, 16786947}, {65298, 16785155}, {65299, 16785411}, {65300, 16787715},
++++    {65301, 17035779}, {65302, 17036035}, {65303, 17036291}, {65304, 17036547},
++++    {65305, 17036803}, {65306, 17110531}, {65307, 16848643}, {65308, 17853699},
++++    {65309, 17037571}, {65310, 17853955}, {65311, 17033987}, {65312, 17854979},
++++    {65313, 16777219}, {65314, 16777475}, {65315, 16777731}, {65316, 16777987},
++++    {65317, 16778243}, {65318, 16778499}, {65319, 16778755}, {65320, 16779011},
++++    {65321, 16779267}, {65322, 16779523}, {65323, 16779779}, {65324, 16780035},
++++    {65325, 16780291}, {65326, 16780547}, {65327, 16780803}, {65328, 16781059},
++++    {65329, 16781315}, {65330, 16781571}, {65331, 16781827}, {65332, 16782083},
++++    {65333, 16782339}, {65334, 16782595}, {65335, 16782851}, {65336, 16783107},
++++    {65337, 16783363}, {65338, 16783619}, {65339, 17852163}, {65340, 17854211},
++++    {65341, 17852419}, {65342, 17861379}, {65343, 17848835}, {65344, 17027075},
++++    {65345, 16777219}, {65346, 16777475}, {65347, 16777731}, {65348, 16777987},
++++    {65349, 16778243}, {65350, 16778499}, {65351, 16778755}, {65352, 16779011},
++++    {65353, 16779267}, {65354, 16779523}, {65355, 16779779}, {65356, 16780035},
++++    {65357, 16780291}, {65358, 16780547}, {65359, 16780803}, {65360, 16781059},
++++    {65361, 16781315}, {65362, 16781571}, {65363, 16781827}, {65364, 16782083},
++++    {65365, 16782339}, {65366, 16782595}, {65367, 16782851}, {65368, 16783107},
++++    {65369, 16783363}, {65370, 16783619}, {65371, 17849091}, {65372, 17861635},
++++    {65373, 17849347}, {65374, 17861891}, {65375, 17862147}, {65376, 17862403},
++++    {65377, 17196547}, {65378, 17851139}, {65379, 17851395}, {65380, 17847555},
++++    {65381, 17862659}, {65382, 17316867}, {65383, 17319427}, {65384, 17362435},
++++    {65385, 17862915}, {65386, 17363971}, {65387, 17323523}, {65388, 17863171},
++++    {65389, 17333763}, {65390, 17379587}, {65391, 17329155}, {65392, 17318147},
++++    {65393, 17305603}, {65394, 17305859}, {65395, 17306115}, {65396, 17306371},
++++    {65397, 17306627}, {65398, 17306883}, {65399, 17307139}, {65400, 17307395},
++++    {65401, 17307651}, {65402, 17199107}, {65403, 17307907}, {65404, 17308163},
++++    {65405, 17308419}, {65406, 17308675}, {65407, 17308931}, {65408, 17309187},
++++    {65409, 17309443}, {65410, 17309699}, {65411, 17309955}, {65412, 17199363},
++++    {65413, 17310211}, {65414, 17310467}, {65415, 17310723}, {65416, 17310979},
++++    {65417, 17311235}, {65418, 17311491}, {65419, 17311747}, {65420, 17312003},
++++    {65421, 17312259}, {65422, 17312515}, {65423, 17312771}, {65424, 17313027},
++++    {65425, 17313283}, {65426, 17313539}, {65427, 17313795}, {65428, 17314051},
++++    {65429, 17314307}, {65430, 17314563}, {65431, 17314819}, {65432, 17315075},
++++    {65433, 17315331}, {65434, 17315587}, {65435, 17315843}, {65436, 17316099},
++++    {65437, 17319939}, {65438, 17197827}, {65439, 17198339}, {65440, 2},
++++    {65441, 17199619}, {65442, 17199875}, {65443, 17200131}, {65444, 17200387},
++++    {65445, 17200643}, {65446, 17200899}, {65447, 17201155}, {65448, 17201411},
++++    {65449, 17201667}, {65450, 17201923}, {65451, 17202179}, {65452, 17202435},
++++    {65453, 17202691}, {65454, 17202947}, {65455, 17203203}, {65456, 17203459},
++++    {65457, 17203715}, {65458, 17203971}, {65459, 17204227}, {65460, 17204483},
++++    {65461, 17204739}, {65462, 17204995}, {65463, 17205251}, {65464, 17205507},
++++    {65465, 17205763}, {65466, 17206019}, {65467, 17206275}, {65468, 17206531},
++++    {65469, 17206787}, {65470, 17207043}, {65471, 2}, {65474, 17207299},
++++    {65475, 17207555}, {65476, 17207811}, {65477, 17208067}, {65478, 17208323},
++++    {65479, 17208579}, {65480, 2}, {65482, 17208835}, {65483, 17209091},
++++    {65484, 17209347}, {65485, 17209603}, {65486, 17209859}, {65487, 17210115},
++++    {65488, 2}, {65490, 17210371}, {65491, 17210627}, {65492, 17210883},
++++    {65493, 17211139}, {65494, 17211395}, {65495, 17211651}, {65496, 2},
++++    {65498, 17211907}, {65499, 17212163}, {65500, 17212419}, {65501, 2},
++++    {65504, 17863427}, {65505, 17863683}, {65506, 17863939}, {65507, 33561859},
++++    {65508, 17864195}, {65509, 17864451}, {65510, 17864707}, {65511, 2},
++++    {65512, 17864963}, {65513, 17865219}, {65514, 17865475}, {65515, 17865731},
++++    {65516, 17865987}, {65517, 17866243}, {65518, 17866499}, {65519, 2},
++++    {65536, 1}, {65548, 2}, {65549, 1}, {65575, 2},
++++    {65576, 1}, {65595, 2}, {65596, 1}, {65598, 2},
++++    {65599, 1}, {65614, 2}, {65616, 1}, {65630, 2},
++++    {65664, 1}, {65787, 2}, {65792, 1}, {65795, 2},
++++    {65799, 1}, {65844, 2}, {65847, 1}, {65935, 2},
++++    {65936, 1}, {65949, 2}, {65952, 1}, {65953, 2},
++++    {66000, 1}, {66046, 2}, {66176, 1}, {66205, 2},
++++    {66208, 1}, {66257, 2}, {66272, 1}, {66300, 2},
++++    {66304, 1}, {66340, 2}, {66349, 1}, {66379, 2},
++++    {66384, 1}, {66427, 2}, {66432, 1}, {66462, 2},
++++    {66463, 1}, {66500, 2}, {66504, 1}, {66518, 2},
++++    {66560, 17866755}, {66561, 17867011}, {66562, 17867267}, {66563, 17867523},
++++    {66564, 17867779}, {66565, 17868035}, {66566, 17868291}, {66567, 17868547},
++++    {66568, 17868803}, {66569, 17869059}, {66570, 17869315}, {66571, 17869571},
++++    {66572, 17869827}, {66573, 17870083}, {66574, 17870339}, {66575, 17870595},
++++    {66576, 17870851}, {66577, 17871107}, {66578, 17871363}, {66579, 17871619},
++++    {66580, 17871875}, {66581, 17872131}, {66582, 17872387}, {66583, 17872643},
++++    {66584, 17872899}, {66585, 17873155}, {66586, 17873411}, {66587, 17873667},
++++    {66588, 17873923}, {66589, 17874179}, {66590, 17874435}, {66591, 17874691},
++++    {66592, 17874947}, {66593, 17875203}, {66594, 17875459}, {66595, 17875715},
++++    {66596, 17875971}, {66597, 17876227}, {66598, 17876483}, {66599, 17876739},
++++    {66600, 1}, {66718, 2}, {66720, 1}, {66730, 2},
++++    {66736, 17876995}, {66737, 17877251}, {66738, 17877507}, {66739, 17877763},
++++    {66740, 17878019}, {66741, 17878275}, {66742, 17878531}, {66743, 17878787},
++++    {66744, 17879043}, {66745, 17879299}, {66746, 17879555}, {66747, 17879811},
++++    {66748, 17880067}, {66749, 17880323}, {66750, 17880579}, {66751, 17880835},
++++    {66752, 17881091}, {66753, 17881347}, {66754, 17881603}, {66755, 17881859},
++++    {66756, 17882115}, {66757, 17882371}, {66758, 17882627}, {66759, 17882883},
++++    {66760, 17883139}, {66761, 17883395}, {66762, 17883651}, {66763, 17883907},
++++    {66764, 17884163}, {66765, 17884419}, {66766, 17884675}, {66767, 17884931},
++++    {66768, 17885187}, {66769, 17885443}, {66770, 17885699}, {66771, 17885955},
++++    {66772, 2}, {66776, 1}, {66812, 2}, {66816, 1},
++++    {66856, 2}, {66864, 1}, {66916, 2}, {66927, 1},
++++    {66928, 17886211}, {66929, 17886467}, {66930, 17886723}, {66931, 17886979},
++++    {66932, 17887235}, {66933, 17887491}, {66934, 17887747}, {66935, 17888003},
++++    {66936, 17888259}, {66937, 17888515}, {66938, 17888771}, {66939, 2},
++++    {66940, 17889027}, {66941, 17889283}, {66942, 17889539}, {66943, 17889795},
++++    {66944, 17890051}, {66945, 17890307}, {66946, 17890563}, {66947, 17890819},
++++    {66948, 17891075}, {66949, 17891331}, {66950, 17891587}, {66951, 17891843},
++++    {66952, 17892099}, {66953, 17892355}, {66954, 17892611}, {66955, 2},
++++    {66956, 17892867}, {66957, 17893123}, {66958, 17893379}, {66959, 17893635},
++++    {66960, 17893891}, {66961, 17894147}, {66962, 17894403}, {66963, 2},
++++    {66964, 17894659}, {66965, 17894915}, {66966, 2}, {66967, 1},
++++    {66978, 2}, {66979, 1}, {66994, 2}, {66995, 1},
++++    {67002, 2}, {67003, 1}, {67005, 2}, {67072, 1},
++++    {67383, 2}, {67392, 1}, {67414, 2}, {67424, 1},
++++    {67432, 2}, {67456, 1}, {67457, 17895171}, {67458, 17895427},
++++    {67459, 16791043}, {67460, 17895683}, {67461, 16814083}, {67462, 2},
++++    {67463, 17895939}, {67464, 17896195}, {67465, 17896451}, {67466, 17896707},
++++    {67467, 16815363}, {67468, 16815619}, {67469, 17896963}, {67470, 17897219},
++++    {67471, 17897475}, {67472, 17897731}, {67473, 17897987}, {67474, 17898243},
++++    {67475, 16817155}, {67476, 17898499}, {67477, 16802051}, {67478, 17898755},
++++    {67479, 17899011}, {67480, 17899267}, {67481, 17899523}, {67482, 17899779},
++++    {67483, 17512963}, {67484, 17900035}, {67485, 17900291}, {67486, 17900547},
++++    {67487, 17900803}, {67488, 17901059}, {67489, 17901315}, {67490, 16795395},
++++    {67491, 17901571}, {67492, 17901827}, {67493, 16781315}, {67494, 17902083},
++++    {67495, 17902339}, {67496, 17125379}, {67497, 17902595}, {67498, 16819971},
++++    {67499, 17902851}, {67500, 17903107}, {67501, 17903363}, {67502, 17903619},
++++    {67503, 16820995}, {67504, 17903875}, {67505, 2}, {67506, 17904131},
++++    {67507, 17904387}, {67508, 17904643}, {67509, 17904899}, {67510, 17905155},
++++    {67511, 17905411}, {67512, 17905667}, {67513, 17905923}, {67514, 17906179},
++++    {67515, 2}, {67584, 1}, {67590, 2}, {67592, 1},
++++    {67593, 2}, {67594, 1}, {67638, 2}, {67639, 1},
++++    {67641, 2}, {67644, 1}, {67645, 2}, {67647, 1},
++++    {67670, 2}, {67671, 1}, {67743, 2}, {67751, 1},
++++    {67760, 2}, {67808, 1}, {67827, 2}, {67828, 1},
++++    {67830, 2}, {67835, 1}, {67868, 2}, {67871, 1},
++++    {67898, 2}, {67903, 1}, {67904, 2}, {67968, 1},
++++    {68024, 2}, {68028, 1}, {68048, 2}, {68050, 1},
++++    {68100, 2}, {68101, 1}, {68103, 2}, {68108, 1},
++++    {68116, 2}, {68117, 1}, {68120, 2}, {68121, 1},
++++    {68150, 2}, {68152, 1}, {68155, 2}, {68159, 1},
++++    {68169, 2}, {68176, 1}, {68185, 2}, {68192, 1},
++++    {68256, 2}, {68288, 1}, {68327, 2}, {68331, 1},
++++    {68343, 2}, {68352, 1}, {68406, 2}, {68409, 1},
++++    {68438, 2}, {68440, 1}, {68467, 2}, {68472, 1},
++++    {68498, 2}, {68505, 1}, {68509, 2}, {68521, 1},
++++    {68528, 2}, {68608, 1}, {68681, 2}, {68736, 17906435},
++++    {68737, 17906691}, {68738, 17906947}, {68739, 17907203}, {68740, 17907459},
++++    {68741, 17907715}, {68742, 17907971}, {68743, 17908227}, {68744, 17908483},
++++    {68745, 17908739}, {68746, 17908995}, {68747, 17909251}, {68748, 17909507},
++++    {68749, 17909763}, {68750, 17910019}, {68751, 17910275}, {68752, 17910531},
++++    {68753, 17910787}, {68754, 17911043}, {68755, 17911299}, {68756, 17911555},
++++    {68757, 17911811}, {68758, 17912067}, {68759, 17912323}, {68760, 17912579},
++++    {68761, 17912835}, {68762, 17913091}, {68763, 17913347}, {68764, 17913603},
++++    {68765, 17913859}, {68766, 17914115}, {68767, 17914371}, {68768, 17914627},
++++    {68769, 17914883}, {68770, 17915139}, {68771, 17915395}, {68772, 17915651},
++++    {68773, 17915907}, {68774, 17916163}, {68775, 17916419}, {68776, 17916675},
++++    {68777, 17916931}, {68778, 17917187}, {68779, 17917443}, {68780, 17917699},
++++    {68781, 17917955}, {68782, 17918211}, {68783, 17918467}, {68784, 17918723},
++++    {68785, 17918979}, {68786, 17919235}, {68787, 2}, {68800, 1},
++++    {68851, 2}, {68858, 1}, {68904, 2}, {68912, 1},
++++    {68922, 2}, {69216, 1}, {69247, 2}, {69248, 1},
++++    {69290, 2}, {69291, 1}, {69294, 2}, {69296, 1},
++++    {69298, 2}, {69373, 1}, {69416, 2}, {69424, 1},
++++    {69466, 2}, {69488, 1}, {69514, 2}, {69552, 1},
++++    {69580, 2}, {69600, 1}, {69623, 2}, {69632, 1},
++++    {69710, 2}, {69714, 1}, {69750, 2}, {69759, 1},
++++    {69821, 2}, {69822, 1}, {69827, 2}, {69840, 1},
++++    {69865, 2}, {69872, 1}, {69882, 2}, {69888, 1},
++++    {69941, 2}, {69942, 1}, {69960, 2}, {69968, 1},
++++    {70007, 2}, {70016, 1}, {70112, 2}, {70113, 1},
++++    {70133, 2}, {70144, 1}, {70162, 2}, {70163, 1},
++++    {70210, 2}, {70272, 1}, {70279, 2}, {70280, 1},
++++    {70281, 2}, {70282, 1}, {70286, 2}, {70287, 1},
++++    {70302, 2}, {70303, 1}, {70314, 2}, {70320, 1},
++++    {70379, 2}, {70384, 1}, {70394, 2}, {70400, 1},
++++    {70404, 2}, {70405, 1}, {70413, 2}, {70415, 1},
++++    {70417, 2}, {70419, 1}, {70441, 2}, {70442, 1},
++++    {70449, 2}, {70450, 1}, {70452, 2}, {70453, 1},
++++    {70458, 2}, {70459, 1}, {70469, 2}, {70471, 1},
++++    {70473, 2}, {70475, 1}, {70478, 2}, {70480, 1},
++++    {70481, 2}, {70487, 1}, {70488, 2}, {70493, 1},
++++    {70500, 2}, {70502, 1}, {70509, 2}, {70512, 1},
++++    {70517, 2}, {70656, 1}, {70748, 2}, {70749, 1},
++++    {70754, 2}, {70784, 1}, {70856, 2}, {70864, 1},
++++    {70874, 2}, {71040, 1}, {71094, 2}, {71096, 1},
++++    {71134, 2}, {71168, 1}, {71237, 2}, {71248, 1},
++++    {71258, 2}, {71264, 1}, {71277, 2}, {71296, 1},
++++    {71354, 2}, {71360, 1}, {71370, 2}, {71424, 1},
++++    {71451, 2}, {71453, 1}, {71468, 2}, {71472, 1},
++++    {71495, 2}, {71680, 1}, {71740, 2}, {71840, 17919491},
++++    {71841, 17919747}, {71842, 17920003}, {71843, 17920259}, {71844, 17920515},
++++    {71845, 17920771}, {71846, 17921027}, {71847, 17921283}, {71848, 17921539},
++++    {71849, 17921795}, {71850, 17922051}, {71851, 17922307}, {71852, 17922563},
++++    {71853, 17922819}, {71854, 17923075}, {71855, 17923331}, {71856, 17923587},
++++    {71857, 17923843}, {71858, 17924099}, {71859, 17924355}, {71860, 17924611},
++++    {71861, 17924867}, {71862, 17925123}, {71863, 17925379}, {71864, 17925635},
++++    {71865, 17925891}, {71866, 17926147}, {71867, 17926403}, {71868, 17926659},
++++    {71869, 17926915}, {71870, 17927171}, {71871, 17927427}, {71872, 1},
++++    {71923, 2}, {71935, 1}, {71943, 2}, {71945, 1},
++++    {71946, 2}, {71948, 1}, {71956, 2}, {71957, 1},
++++    {71959, 2}, {71960, 1}, {71990, 2}, {71991, 1},
++++    {71993, 2}, {71995, 1}, {72007, 2}, {72016, 1},
++++    {72026, 2}, {72096, 1}, {72104, 2}, {72106, 1},
++++    {72152, 2}, {72154, 1}, {72165, 2}, {72192, 1},
++++    {72264, 2}, {72272, 1}, {72355, 2}, {72368, 1},
++++    {72441, 2}, {72448, 1}, {72458, 2}, {72704, 1},
++++    {72713, 2}, {72714, 1}, {72759, 2}, {72760, 1},
++++    {72774, 2}, {72784, 1}, {72813, 2}, {72816, 1},
++++    {72848, 2}, {72850, 1}, {72872, 2}, {72873, 1},
++++    {72887, 2}, {72960, 1}, {72967, 2}, {72968, 1},
++++    {72970, 2}, {72971, 1}, {73015, 2}, {73018, 1},
++++    {73019, 2}, {73020, 1}, {73022, 2}, {73023, 1},
++++    {73032, 2}, {73040, 1}, {73050, 2}, {73056, 1},
++++    {73062, 2}, {73063, 1}, {73065, 2}, {73066, 1},
++++    {73103, 2}, {73104, 1}, {73106, 2}, {73107, 1},
++++    {73113, 2}, {73120, 1}, {73130, 2}, {73440, 1},
++++    {73465, 2}, {73472, 1}, {73489, 2}, {73490, 1},
++++    {73531, 2}, {73534, 1}, {73562, 2}, {73648, 1},
++++    {73649, 2}, {73664, 1}, {73714, 2}, {73727, 1},
++++    {74650, 2}, {74752, 1}, {74863, 2}, {74864, 1},
++++    {74869, 2}, {74880, 1}, {75076, 2}, {77712, 1},
++++    {77811, 2}, {77824, 1}, {78896, 2}, {78912, 1},
++++    {78934, 2}, {82944, 1}, {83527, 2}, {92160, 1},
++++    {92729, 2}, {92736, 1}, {92767, 2}, {92768, 1},
++++    {92778, 2}, {92782, 1}, {92863, 2}, {92864, 1},
++++    {92874, 2}, {92880, 1}, {92910, 2}, {92912, 1},
++++    {92918, 2}, {92928, 1}, {92998, 2}, {93008, 1},
++++    {93018, 2}, {93019, 1}, {93026, 2}, {93027, 1},
++++    {93048, 2}, {93053, 1}, {93072, 2}, {93760, 17927683},
++++    {93761, 17927939}, {93762, 17928195}, {93763, 17928451}, {93764, 17928707},
++++    {93765, 17928963}, {93766, 17929219}, {93767, 17929475}, {93768, 17929731},
++++    {93769, 17929987}, {93770, 17930243}, {93771, 17930499}, {93772, 17930755},
++++    {93773, 17931011}, {93774, 17931267}, {93775, 17931523}, {93776, 17931779},
++++    {93777, 17932035}, {93778, 17932291}, {93779, 17932547}, {93780, 17932803},
++++    {93781, 17933059}, {93782, 17933315}, {93783, 17933571}, {93784, 17933827},
++++    {93785, 17934083}, {93786, 17934339}, {93787, 17934595}, {93788, 17934851},
++++    {93789, 17935107}, {93790, 17935363}, {93791, 17935619}, {93792, 1},
++++    {93851, 2}, {93952, 1}, {94027, 2}, {94031, 1},
++++    {94088, 2}, {94095, 1}, {94112, 2}, {94176, 1},
++++    {94181, 2}, {94192, 1}, {94194, 2}, {94208, 1},
++++    {100344, 2}, {100352, 1}, {101590, 2}, {101632, 1},
++++    {101641, 2}, {110576, 1}, {110580, 2}, {110581, 1},
++++    {110588, 2}, {110589, 1}, {110591, 2}, {110592, 1},
++++    {110883, 2}, {110898, 1}, {110899, 2}, {110928, 1},
++++    {110931, 2}, {110933, 1}, {110934, 2}, {110948, 1},
++++    {110952, 2}, {110960, 1}, {111356, 2}, {113664, 1},
++++    {113771, 2}, {113776, 1}, {113789, 2}, {113792, 1},
++++    {113801, 2}, {113808, 1}, {113818, 2}, {113820, 1},
++++    {113824, 0}, {113828, 2}, {118528, 1}, {118574, 2},
++++    {118576, 1}, {118599, 2}, {118608, 1}, {118724, 2},
++++    {118784, 1}, {119030, 2}, {119040, 1}, {119079, 2},
++++    {119081, 1}, {119134, 34713091}, {119135, 34713603}, {119136, 51491331},
++++    {119137, 51492099}, {119138, 51492867}, {119139, 51493635}, {119140, 51494403},
++++    {119141, 1}, {119155, 2}, {119163, 1}, {119227, 34717955},
++++    {119228, 34718467}, {119229, 51496195}, {119230, 51496963}, {119231, 51497731},
++++    {119232, 51498499}, {119233, 1}, {119275, 2}, {119296, 1},
++++    {119366, 2}, {119488, 1}, {119508, 2}, {119520, 1},
++++    {119540, 2}, {119552, 1}, {119639, 2}, {119648, 1},
++++    {119673, 2}, {119808, 16777219}, {119809, 16777475}, {119810, 16777731},
++++    {119811, 16777987}, {119812, 16778243}, {119813, 16778499}, {119814, 16778755},
++++    {119815, 16779011}, {119816, 16779267}, {119817, 16779523}, {119818, 16779779},
++++    {119819, 16780035}, {119820, 16780291}, {119821, 16780547}, {119822, 16780803},
++++    {119823, 16781059}, {119824, 16781315}, {119825, 16781571}, {119826, 16781827},
++++    {119827, 16782083}, {119828, 16782339}, {119829, 16782595}, {119830, 16782851},
++++    {119831, 16783107}, {119832, 16783363}, {119833, 16783619}, {119834, 16777219},
++++    {119835, 16777475}, {119836, 16777731}, {119837, 16777987}, {119838, 16778243},
++++    {119839, 16778499}, {119840, 16778755}, {119841, 16779011}, {119842, 16779267},
++++    {119843, 16779523}, {119844, 16779779}, {119845, 16780035}, {119846, 16780291},
++++    {119847, 16780547}, {119848, 16780803}, {119849, 16781059}, {119850, 16781315},
++++    {119851, 16781571}, {119852, 16781827}, {119853, 16782083}, {119854, 16782339},
++++    {119855, 16782595}, {119856, 16782851}, {119857, 16783107}, {119858, 16783363},
++++    {119859, 16783619}, {119860, 16777219}, {119861, 16777475}, {119862, 16777731},
++++    {119863, 16777987}, {119864, 16778243}, {119865, 16778499}, {119866, 16778755},
++++    {119867, 16779011}, {119868, 16779267}, {119869, 16779523}, {119870, 16779779},
++++    {119871, 16780035}, {119872, 16780291}, {119873, 16780547}, {119874, 16780803},
++++    {119875, 16781059}, {119876, 16781315}, {119877, 16781571}, {119878, 16781827},
++++    {119879, 16782083}, {119880, 16782339}, {119881, 16782595}, {119882, 16782851},
++++    {119883, 16783107}, {119884, 16783363}, {119885, 16783619}, {119886, 16777219},
++++    {119887, 16777475}, {119888, 16777731}, {119889, 16777987}, {119890, 16778243},
++++    {119891, 16778499}, {119892, 16778755}, {119893, 2}, {119894, 16779267},
++++    {119895, 16779523}, {119896, 16779779}, {119897, 16780035}, {119898, 16780291},
++++    {119899, 16780547}, {119900, 16780803}, {119901, 16781059}, {119902, 16781315},
++++    {119903, 16781571}, {119904, 16781827}, {119905, 16782083}, {119906, 16782339},
++++    {119907, 16782595}, {119908, 16782851}, {119909, 16783107}, {119910, 16783363},
++++    {119911, 16783619}, {119912, 16777219}, {119913, 16777475}, {119914, 16777731},
++++    {119915, 16777987}, {119916, 16778243}, {119917, 16778499}, {119918, 16778755},
++++    {119919, 16779011}, {119920, 16779267}, {119921, 16779523}, {119922, 16779779},
++++    {119923, 16780035}, {119924, 16780291}, {119925, 16780547}, {119926, 16780803},
++++    {119927, 16781059}, {119928, 16781315}, {119929, 16781571}, {119930, 16781827},
++++    {119931, 16782083}, {119932, 16782339}, {119933, 16782595}, {119934, 16782851},
++++    {119935, 16783107}, {119936, 16783363}, {119937, 16783619}, {119938, 16777219},
++++    {119939, 16777475}, {119940, 16777731}, {119941, 16777987}, {119942, 16778243},
++++    {119943, 16778499}, {119944, 16778755}, {119945, 16779011}, {119946, 16779267},
++++    {119947, 16779523}, {119948, 16779779}, {119949, 16780035}, {119950, 16780291},
++++    {119951, 16780547}, {119952, 16780803}, {119953, 16781059}, {119954, 16781315},
++++    {119955, 16781571}, {119956, 16781827}, {119957, 16782083}, {119958, 16782339},
++++    {119959, 16782595}, {119960, 16782851}, {119961, 16783107}, {119962, 16783363},
++++    {119963, 16783619}, {119964, 16777219}, {119965, 2}, {119966, 16777731},
++++    {119967, 16777987}, {119968, 2}, {119970, 16778755}, {119971, 2},
++++    {119973, 16779523}, {119974, 16779779}, {119975, 2}, {119977, 16780547},
++++    {119978, 16780803}, {119979, 16781059}, {119980, 16781315}, {119981, 2},
++++    {119982, 16781827}, {119983, 16782083}, {119984, 16782339}, {119985, 16782595},
++++    {119986, 16782851}, {119987, 16783107}, {119988, 16783363}, {119989, 16783619},
++++    {119990, 16777219}, {119991, 16777475}, {119992, 16777731}, {119993, 16777987},
++++    {119994, 2}, {119995, 16778499}, {119996, 2}, {119997, 16779011},
++++    {119998, 16779267}, {119999, 16779523}, {120000, 16779779}, {120001, 16780035},
++++    {120002, 16780291}, {120003, 16780547}, {120004, 2}, {120005, 16781059},
++++    {120006, 16781315}, {120007, 16781571}, {120008, 16781827}, {120009, 16782083},
++++    {120010, 16782339}, {120011, 16782595}, {120012, 16782851}, {120013, 16783107},
++++    {120014, 16783363}, {120015, 16783619}, {120016, 16777219}, {120017, 16777475},
++++    {120018, 16777731}, {120019, 16777987}, {120020, 16778243}, {120021, 16778499},
++++    {120022, 16778755}, {120023, 16779011}, {120024, 16779267}, {120025, 16779523},
++++    {120026, 16779779}, {120027, 16780035}, {120028, 16780291}, {120029, 16780547},
++++    {120030, 16780803}, {120031, 16781059}, {120032, 16781315}, {120033, 16781571},
++++    {120034, 16781827}, {120035, 16782083}, {120036, 16782339}, {120037, 16782595},
++++    {120038, 16782851}, {120039, 16783107}, {120040, 16783363}, {120041, 16783619},
++++    {120042, 16777219}, {120043, 16777475}, {120044, 16777731}, {120045, 16777987},
++++    {120046, 16778243}, {120047, 16778499}, {120048, 16778755}, {120049, 16779011},
++++    {120050, 16779267}, {120051, 16779523}, {120052, 16779779}, {120053, 16780035},
++++    {120054, 16780291}, {120055, 16780547}, {120056, 16780803}, {120057, 16781059},
++++    {120058, 16781315}, {120059, 16781571}, {120060, 16781827}, {120061, 16782083},
++++    {120062, 16782339}, {120063, 16782595}, {120064, 16782851}, {120065, 16783107},
++++    {120066, 16783363}, {120067, 16783619}, {120068, 16777219}, {120069, 16777475},
++++    {120070, 2}, {120071, 16777987}, {120072, 16778243}, {120073, 16778499},
++++    {120074, 16778755}, {120075, 2}, {120077, 16779523}, {120078, 16779779},
++++    {120079, 16780035}, {120080, 16780291}, {120081, 16780547}, {120082, 16780803},
++++    {120083, 16781059}, {120084, 16781315}, {120085, 2}, {120086, 16781827},
++++    {120087, 16782083}, {120088, 16782339}, {120089, 16782595}, {120090, 16782851},
++++    {120091, 16783107}, {120092, 16783363}, {120093, 2}, {120094, 16777219},
++++    {120095, 16777475}, {120096, 16777731}, {120097, 16777987}, {120098, 16778243},
++++    {120099, 16778499}, {120100, 16778755}, {120101, 16779011}, {120102, 16779267},
++++    {120103, 16779523}, {120104, 16779779}, {120105, 16780035}, {120106, 16780291},
++++    {120107, 16780547}, {120108, 16780803}, {120109, 16781059}, {120110, 16781315},
++++    {120111, 16781571}, {120112, 16781827}, {120113, 16782083}, {120114, 16782339},
++++    {120115, 16782595}, {120116, 16782851}, {120117, 16783107}, {120118, 16783363},
++++    {120119, 16783619}, {120120, 16777219}, {120121, 16777475}, {120122, 2},
++++    {120123, 16777987}, {120124, 16778243}, {120125, 16778499}, {120126, 16778755},
++++    {120127, 2}, {120128, 16779267}, {120129, 16779523}, {120130, 16779779},
++++    {120131, 16780035}, {120132, 16780291}, {120133, 2}, {120134, 16780803},
++++    {120135, 2}, {120138, 16781827}, {120139, 16782083}, {120140, 16782339},
++++    {120141, 16782595}, {120142, 16782851}, {120143, 16783107}, {120144, 16783363},
++++    {120145, 2}, {120146, 16777219}, {120147, 16777475}, {120148, 16777731},
++++    {120149, 16777987}, {120150, 16778243}, {120151, 16778499}, {120152, 16778755},
++++    {120153, 16779011}, {120154, 16779267}, {120155, 16779523}, {120156, 16779779},
++++    {120157, 16780035}, {120158, 16780291}, {120159, 16780547}, {120160, 16780803},
++++    {120161, 16781059}, {120162, 16781315}, {120163, 16781571}, {120164, 16781827},
++++    {120165, 16782083}, {120166, 16782339}, {120167, 16782595}, {120168, 16782851},
++++    {120169, 16783107}, {120170, 16783363}, {120171, 16783619}, {120172, 16777219},
++++    {120173, 16777475}, {120174, 16777731}, {120175, 16777987}, {120176, 16778243},
++++    {120177, 16778499}, {120178, 16778755}, {120179, 16779011}, {120180, 16779267},
++++    {120181, 16779523}, {120182, 16779779}, {120183, 16780035}, {120184, 16780291},
++++    {120185, 16780547}, {120186, 16780803}, {120187, 16781059}, {120188, 16781315},
++++    {120189, 16781571}, {120190, 16781827}, {120191, 16782083}, {120192, 16782339},
++++    {120193, 16782595}, {120194, 16782851}, {120195, 16783107}, {120196, 16783363},
++++    {120197, 16783619}, {120198, 16777219}, {120199, 16777475}, {120200, 16777731},
++++    {120201, 16777987}, {120202, 16778243}, {120203, 16778499}, {120204, 16778755},
++++    {120205, 16779011}, {120206, 16779267}, {120207, 16779523}, {120208, 16779779},
++++    {120209, 16780035}, {120210, 16780291}, {120211, 16780547}, {120212, 16780803},
++++    {120213, 16781059}, {120214, 16781315}, {120215, 16781571}, {120216, 16781827},
++++    {120217, 16782083}, {120218, 16782339}, {120219, 16782595}, {120220, 16782851},
++++    {120221, 16783107}, {120222, 16783363}, {120223, 16783619}, {120224, 16777219},
++++    {120225, 16777475}, {120226, 16777731}, {120227, 16777987}, {120228, 16778243},
++++    {120229, 16778499}, {120230, 16778755}, {120231, 16779011}, {120232, 16779267},
++++    {120233, 16779523}, {120234, 16779779}, {120235, 16780035}, {120236, 16780291},
++++    {120237, 16780547}, {120238, 16780803}, {120239, 16781059}, {120240, 16781315},
++++    {120241, 16781571}, {120242, 16781827}, {120243, 16782083}, {120244, 16782339},
++++    {120245, 16782595}, {120246, 16782851}, {120247, 16783107}, {120248, 16783363},
++++    {120249, 16783619}, {120250, 16777219}, {120251, 16777475}, {120252, 16777731},
++++    {120253, 16777987}, {120254, 16778243}, {120255, 16778499}, {120256, 16778755},
++++    {120257, 16779011}, {120258, 16779267}, {120259, 16779523}, {120260, 16779779},
++++    {120261, 16780035}, {120262, 16780291}, {120263, 16780547}, {120264, 16780803},
++++    {120265, 16781059}, {120266, 16781315}, {120267, 16781571}, {120268, 16781827},
++++    {120269, 16782083}, {120270, 16782339}, {120271, 16782595}, {120272, 16782851},
++++    {120273, 16783107}, {120274, 16783363}, {120275, 16783619}, {120276, 16777219},
++++    {120277, 16777475}, {120278, 16777731}, {120279, 16777987}, {120280, 16778243},
++++    {120281, 16778499}, {120282, 16778755}, {120283, 16779011}, {120284, 16779267},
++++    {120285, 16779523}, {120286, 16779779}, {120287, 16780035}, {120288, 16780291},
++++    {120289, 16780547}, {120290, 16780803}, {120291, 16781059}, {120292, 16781315},
++++    {120293, 16781571}, {120294, 16781827}, {120295, 16782083}, {120296, 16782339},
++++    {120297, 16782595}, {120298, 16782851}, {120299, 16783107}, {120300, 16783363},
++++    {120301, 16783619}, {120302, 16777219}, {120303, 16777475}, {120304, 16777731},
++++    {120305, 16777987}, {120306, 16778243}, {120307, 16778499}, {120308, 16778755},
++++    {120309, 16779011}, {120310, 16779267}, {120311, 16779523}, {120312, 16779779},
++++    {120313, 16780035}, {120314, 16780291}, {120315, 16780547}, {120316, 16780803},
++++    {120317, 16781059}, {120318, 16781315}, {120319, 16781571}, {120320, 16781827},
++++    {120321, 16782083}, {120322, 16782339}, {120323, 16782595}, {120324, 16782851},
++++    {120325, 16783107}, {120326, 16783363}, {120327, 16783619}, {120328, 16777219},
++++    {120329, 16777475}, {120330, 16777731}, {120331, 16777987}, {120332, 16778243},
++++    {120333, 16778499}, {120334, 16778755}, {120335, 16779011}, {120336, 16779267},
++++    {120337, 16779523}, {120338, 16779779}, {120339, 16780035}, {120340, 16780291},
++++    {120341, 16780547}, {120342, 16780803}, {120343, 16781059}, {120344, 16781315},
++++    {120345, 16781571}, {120346, 16781827}, {120347, 16782083}, {120348, 16782339},
++++    {120349, 16782595}, {120350, 16782851}, {120351, 16783107}, {120352, 16783363},
++++    {120353, 16783619}, {120354, 16777219}, {120355, 16777475}, {120356, 16777731},
++++    {120357, 16777987}, {120358, 16778243}, {120359, 16778499}, {120360, 16778755},
++++    {120361, 16779011}, {120362, 16779267}, {120363, 16779523}, {120364, 16779779},
++++    {120365, 16780035}, {120366, 16780291}, {120367, 16780547}, {120368, 16780803},
++++    {120369, 16781059}, {120370, 16781315}, {120371, 16781571}, {120372, 16781827},
++++    {120373, 16782083}, {120374, 16782339}, {120375, 16782595}, {120376, 16782851},
++++    {120377, 16783107}, {120378, 16783363}, {120379, 16783619}, {120380, 16777219},
++++    {120381, 16777475}, {120382, 16777731}, {120383, 16777987}, {120384, 16778243},
++++    {120385, 16778499}, {120386, 16778755}, {120387, 16779011}, {120388, 16779267},
++++    {120389, 16779523}, {120390, 16779779}, {120391, 16780035}, {120392, 16780291},
++++    {120393, 16780547}, {120394, 16780803}, {120395, 16781059}, {120396, 16781315},
++++    {120397, 16781571}, {120398, 16781827}, {120399, 16782083}, {120400, 16782339},
++++    {120401, 16782595}, {120402, 16782851}, {120403, 16783107}, {120404, 16783363},
++++    {120405, 16783619}, {120406, 16777219}, {120407, 16777475}, {120408, 16777731},
++++    {120409, 16777987}, {120410, 16778243}, {120411, 16778499}, {120412, 16778755},
++++    {120413, 16779011}, {120414, 16779267}, {120415, 16779523}, {120416, 16779779},
++++    {120417, 16780035}, {120418, 16780291}, {120419, 16780547}, {120420, 16780803},
++++    {120421, 16781059}, {120422, 16781315}, {120423, 16781571}, {120424, 16781827},
++++    {120425, 16782083}, {120426, 16782339}, {120427, 16782595}, {120428, 16782851},
++++    {120429, 16783107}, {120430, 16783363}, {120431, 16783619}, {120432, 16777219},
++++    {120433, 16777475}, {120434, 16777731}, {120435, 16777987}, {120436, 16778243},
++++    {120437, 16778499}, {120438, 16778755}, {120439, 16779011}, {120440, 16779267},
++++    {120441, 16779523}, {120442, 16779779}, {120443, 16780035}, {120444, 16780291},
++++    {120445, 16780547}, {120446, 16780803}, {120447, 16781059}, {120448, 16781315},
++++    {120449, 16781571}, {120450, 16781827}, {120451, 16782083}, {120452, 16782339},
++++    {120453, 16782595}, {120454, 16782851}, {120455, 16783107}, {120456, 16783363},
++++    {120457, 16783619}, {120458, 16777219}, {120459, 16777475}, {120460, 16777731},
++++    {120461, 16777987}, {120462, 16778243}, {120463, 16778499}, {120464, 16778755},
++++    {120465, 16779011}, {120466, 16779267}, {120467, 16779523}, {120468, 16779779},
++++    {120469, 16780035}, {120470, 16780291}, {120471, 16780547}, {120472, 16780803},
++++    {120473, 16781059}, {120474, 16781315}, {120475, 16781571}, {120476, 16781827},
++++    {120477, 16782083}, {120478, 16782339}, {120479, 16782595}, {120480, 16782851},
++++    {120481, 16783107}, {120482, 16783363}, {120483, 16783619}, {120484, 17944835},
++++    {120485, 17945091}, {120486, 2}, {120488, 16851715}, {120489, 16851971},
++++    {120490, 16852227}, {120491, 16852483}, {120492, 16852739}, {120493, 16852995},
++++    {120494, 16853251}, {120495, 16853507}, {120496, 16846851}, {120497, 16853763},
++++    {120498, 16854019}, {120499, 16786179}, {120500, 16854275}, {120501, 16854531},
++++    {120502, 16854787}, {120503, 16855043}, {120504, 16855299}, {120505, 16853507},
++++    {120506, 16855555}, {120507, 16855811}, {120508, 16856067}, {120509, 16856323},
++++    {120510, 16856579}, {120511, 16856835}, {120512, 16857091}, {120513, 17945347},
++++    {120514, 16851715}, {120515, 16851971}, {120516, 16852227}, {120517, 16852483},
++++    {120518, 16852739}, {120519, 16852995}, {120520, 16853251}, {120521, 16853507},
++++    {120522, 16846851}, {120523, 16853763}, {120524, 16854019}, {120525, 16786179},
++++    {120526, 16854275}, {120527, 16854531}, {120528, 16854787}, {120529, 16855043},
++++    {120530, 16855299}, {120531, 16855555}, {120533, 16855811}, {120534, 16856067},
++++    {120535, 16856323}, {120536, 16856579}, {120537, 16856835}, {120538, 16857091},
++++    {120539, 17945603}, {120540, 16852739}, {120541, 16853507}, {120542, 16853763},
++++    {120543, 16856323}, {120544, 16855299}, {120545, 16855043}, {120546, 16851715},
++++    {120547, 16851971}, {120548, 16852227}, {120549, 16852483}, {120550, 16852739},
++++    {120551, 16852995}, {120552, 16853251}, {120553, 16853507}, {120554, 16846851},
++++    {120555, 16853763}, {120556, 16854019}, {120557, 16786179}, {120558, 16854275},
++++    {120559, 16854531}, {120560, 16854787}, {120561, 16855043}, {120562, 16855299},
++++    {120563, 16853507}, {120564, 16855555}, {120565, 16855811}, {120566, 16856067},
++++    {120567, 16856323}, {120568, 16856579}, {120569, 16856835}, {120570, 16857091},
++++    {120571, 17945347}, {120572, 16851715}, {120573, 16851971}, {120574, 16852227},
++++    {120575, 16852483}, {120576, 16852739}, {120577, 16852995}, {120578, 16853251},
++++    {120579, 16853507}, {120580, 16846851}, {120581, 16853763}, {120582, 16854019},
++++    {120583, 16786179}, {120584, 16854275}, {120585, 16854531}, {120586, 16854787},
++++    {120587, 16855043}, {120588, 16855299}, {120589, 16855555}, {120591, 16855811},
++++    {120592, 16856067}, {120593, 16856323}, {120594, 16856579}, {120595, 16856835},
++++    {120596, 16857091}, {120597, 17945603}, {120598, 16852739}, {120599, 16853507},
++++    {120600, 16853763}, {120601, 16856323}, {120602, 16855299}, {120603, 16855043},
++++    {120604, 16851715}, {120605, 16851971}, {120606, 16852227}, {120607, 16852483},
++++    {120608, 16852739}, {120609, 16852995}, {120610, 16853251}, {120611, 16853507},
++++    {120612, 16846851}, {120613, 16853763}, {120614, 16854019}, {120615, 16786179},
++++    {120616, 16854275}, {120617, 16854531}, {120618, 16854787}, {120619, 16855043},
++++    {120620, 16855299}, {120621, 16853507}, {120622, 16855555}, {120623, 16855811},
++++    {120624, 16856067}, {120625, 16856323}, {120626, 16856579}, {120627, 16856835},
++++    {120628, 16857091}, {120629, 17945347}, {120630, 16851715}, {120631, 16851971},
++++    {120632, 16852227}, {120633, 16852483}, {120634, 16852739}, {120635, 16852995},
++++    {120636, 16853251}, {120637, 16853507}, {120638, 16846851}, {120639, 16853763},
++++    {120640, 16854019}, {120641, 16786179}, {120642, 16854275}, {120643, 16854531},
++++    {120644, 16854787}, {120645, 16855043}, {120646, 16855299}, {120647, 16855555},
++++    {120649, 16855811}, {120650, 16856067}, {120651, 16856323}, {120652, 16856579},
++++    {120653, 16856835}, {120654, 16857091}, {120655, 17945603}, {120656, 16852739},
++++    {120657, 16853507}, {120658, 16853763}, {120659, 16856323}, {120660, 16855299},
++++    {120661, 16855043}, {120662, 16851715}, {120663, 16851971}, {120664, 16852227},
++++    {120665, 16852483}, {120666, 16852739}, {120667, 16852995}, {120668, 16853251},
++++    {120669, 16853507}, {120670, 16846851}, {120671, 16853763}, {120672, 16854019},
++++    {120673, 16786179}, {120674, 16854275}, {120675, 16854531}, {120676, 16854787},
++++    {120677, 16855043}, {120678, 16855299}, {120679, 16853507}, {120680, 16855555},
++++    {120681, 16855811}, {120682, 16856067}, {120683, 16856323}, {120684, 16856579},
++++    {120685, 16856835}, {120686, 16857091}, {120687, 17945347}, {120688, 16851715},
++++    {120689, 16851971}, {120690, 16852227}, {120691, 16852483}, {120692, 16852739},
++++    {120693, 16852995}, {120694, 16853251}, {120695, 16853507}, {120696, 16846851},
++++    {120697, 16853763}, {120698, 16854019}, {120699, 16786179}, {120700, 16854275},
++++    {120701, 16854531}, {120702, 16854787}, {120703, 16855043}, {120704, 16855299},
++++    {120705, 16855555}, {120707, 16855811}, {120708, 16856067}, {120709, 16856323},
++++    {120710, 16856579}, {120711, 16856835}, {120712, 16857091}, {120713, 17945603},
++++    {120714, 16852739}, {120715, 16853507}, {120716, 16853763}, {120717, 16856323},
++++    {120718, 16855299}, {120719, 16855043}, {120720, 16851715}, {120721, 16851971},
++++    {120722, 16852227}, {120723, 16852483}, {120724, 16852739}, {120725, 16852995},
++++    {120726, 16853251}, {120727, 16853507}, {120728, 16846851}, {120729, 16853763},
++++    {120730, 16854019}, {120731, 16786179}, {120732, 16854275}, {120733, 16854531},
++++    {120734, 16854787}, {120735, 16855043}, {120736, 16855299}, {120737, 16853507},
++++    {120738, 16855555}, {120739, 16855811}, {120740, 16856067}, {120741, 16856323},
++++    {120742, 16856579}, {120743, 16856835}, {120744, 16857091}, {120745, 17945347},
++++    {120746, 16851715}, {120747, 16851971}, {120748, 16852227}, {120749, 16852483},
++++    {120750, 16852739}, {120751, 16852995}, {120752, 16853251}, {120753, 16853507},
++++    {120754, 16846851}, {120755, 16853763}, {120756, 16854019}, {120757, 16786179},
++++    {120758, 16854275}, {120759, 16854531}, {120760, 16854787}, {120761, 16855043},
++++    {120762, 16855299}, {120763, 16855555}, {120765, 16855811}, {120766, 16856067},
++++    {120767, 16856323}, {120768, 16856579}, {120769, 16856835}, {120770, 16857091},
++++    {120771, 17945603}, {120772, 16852739}, {120773, 16853507}, {120774, 16853763},
++++    {120775, 16856323}, {120776, 16855299}, {120777, 16855043}, {120778, 16858627},
++++    {120780, 2}, {120782, 17035523}, {120783, 16786947}, {120784, 16785155},
++++    {120785, 16785411}, {120786, 16787715}, {120787, 17035779}, {120788, 17036035},
++++    {120789, 17036291}, {120790, 17036547}, {120791, 17036803}, {120792, 17035523},
++++    {120793, 16786947}, {120794, 16785155}, {120795, 16785411}, {120796, 16787715},
++++    {120797, 17035779}, {120798, 17036035}, {120799, 17036291}, {120800, 17036547},
++++    {120801, 17036803}, {120802, 17035523}, {120803, 16786947}, {120804, 16785155},
++++    {120805, 16785411}, {120806, 16787715}, {120807, 17035779}, {120808, 17036035},
++++    {120809, 17036291}, {120810, 17036547}, {120811, 17036803}, {120812, 17035523},
++++    {120813, 16786947}, {120814, 16785155}, {120815, 16785411}, {120816, 16787715},
++++    {120817, 17035779}, {120818, 17036035}, {120819, 17036291}, {120820, 17036547},
++++    {120821, 17036803}, {120822, 17035523}, {120823, 16786947}, {120824, 16785155},
++++    {120825, 16785411}, {120826, 16787715}, {120827, 17035779}, {120828, 17036035},
++++    {120829, 17036291}, {120830, 17036547}, {120831, 17036803}, {120832, 1},
++++    {121484, 2}, {121499, 1}, {121504, 2}, {121505, 1},
++++    {121520, 2}, {122624, 1}, {122655, 2}, {122661, 1},
++++    {122667, 2}, {122880, 1}, {122887, 2}, {122888, 1},
++++    {122905, 2}, {122907, 1}, {122914, 2}, {122915, 1},
++++    {122917, 2}, {122918, 1}, {122923, 2}, {122928, 16866563},
++++    {122929, 16866819}, {122930, 16867075}, {122931, 16867331}, {122932, 16867587},
++++    {122933, 16867843}, {122934, 16868099}, {122935, 16868355}, {122936, 16868611},
++++    {122937, 16869123}, {122938, 16869379}, {122939, 16869635}, {122940, 16870147},
++++    {122941, 16870403}, {122942, 16870659}, {122943, 16870915}, {122944, 16871171},
++++    {122945, 16871427}, {122946, 16871683}, {122947, 16871939}, {122948, 16872195},
++++    {122949, 16872451}, {122950, 16872707}, {122951, 16873475}, {122952, 16873987},
++++    {122953, 16874243}, {122954, 17495299}, {122955, 16888835}, {122956, 16864003},
++++    {122957, 16864515}, {122958, 16890883}, {122959, 16883715}, {122960, 17945859},
++++    {122961, 16866563}, {122962, 16866819}, {122963, 16867075}, {122964, 16867331},
++++    {122965, 16867587}, {122966, 16867843}, {122967, 16868099}, {122968, 16868355},
++++    {122969, 16868611}, {122970, 16869123}, {122971, 16869379}, {122972, 16870147},
++++    {122973, 16870403}, {122974, 16870915}, {122975, 16871427}, {122976, 16871683},
++++    {122977, 16871939}, {122978, 16872195}, {122979, 16872451}, {122980, 16872707},
++++    {122981, 16873219}, {122982, 16873475}, {122983, 16879875}, {122984, 16864003},
++++    {122985, 16863747}, {122986, 16866307}, {122987, 16883203}, {122988, 17490435},
++++    {122989, 16883971}, {122990, 2}, {123023, 1}, {123024, 2},
++++    {123136, 1}, {123181, 2}, {123184, 1}, {123198, 2},
++++    {123200, 1}, {123210, 2}, {123214, 1}, {123216, 2},
++++    {123536, 1}, {123567, 2}, {123584, 1}, {123642, 2},
++++    {123647, 1}, {123648, 2}, {124112, 1}, {124154, 2},
++++    {124896, 1}, {124903, 2}, {124904, 1}, {124908, 2},
++++    {124909, 1}, {124911, 2}, {124912, 1}, {124927, 2},
++++    {124928, 1}, {125125, 2}, {125127, 1}, {125143, 2},
++++    {125184, 17946115}, {125185, 17946371}, {125186, 17946627}, {125187, 17946883},
++++    {125188, 17947139}, {125189, 17947395}, {125190, 17947651}, {125191, 17947907},
++++    {125192, 17948163}, {125193, 17948419}, {125194, 17948675}, {125195, 17948931},
++++    {125196, 17949187}, {125197, 17949443}, {125198, 17949699}, {125199, 17949955},
++++    {125200, 17950211}, {125201, 17950467}, {125202, 17950723}, {125203, 17950979},
++++    {125204, 17951235}, {125205, 17951491}, {125206, 17951747}, {125207, 17952003},
++++    {125208, 17952259}, {125209, 17952515}, {125210, 17952771}, {125211, 17953027},
++++    {125212, 17953283}, {125213, 17953539}, {125214, 17953795}, {125215, 17954051},
++++    {125216, 17954307}, {125217, 17954563}, {125218, 1}, {125260, 2},
++++    {125264, 1}, {125274, 2}, {125278, 1}, {125280, 2},
++++    {126065, 1}, {126133, 2}, {126209, 1}, {126270, 2},
++++    {126464, 16910339}, {126465, 17683715}, {126466, 17681923}, {126467, 17834499},
++++    {126468, 2}, {126469, 16910851}, {126470, 17731587}, {126471, 17682435},
++++    {126472, 17700099}, {126473, 16911875}, {126474, 17708803}, {126475, 17711107},
++++    {126476, 17682947}, {126477, 17718019}, {126478, 17694979}, {126479, 17701635},
++++    {126480, 17703683}, {126481, 17697027}, {126482, 17706755}, {126483, 17725187},
++++    {126484, 17745155}, {126485, 17686787}, {126486, 17689859}, {126487, 17684995},
++++    {126488, 17724675}, {126489, 17698051}, {126490, 17701123}, {126491, 17702659},
++++    {126492, 17954819}, {126493, 17673475}, {126494, 17955075}, {126495, 17955331},
++++    {126496, 2}, {126497, 17683715}, {126498, 17681923}, {126499, 2},
++++    {126500, 17721091}, {126501, 2}, {126503, 17682435}, {126504, 2},
++++    {126505, 16911875}, {126506, 17708803}, {126507, 17711107}, {126508, 17682947},
++++    {126509, 17718019}, {126510, 17694979}, {126511, 17701635}, {126512, 17703683},
++++    {126513, 17697027}, {126514, 17706755}, {126515, 2}, {126516, 17745155},
++++    {126517, 17686787}, {126518, 17689859}, {126519, 17684995}, {126520, 2},
++++    {126521, 17698051}, {126522, 2}, {126523, 17702659}, {126524, 2},
++++    {126530, 17681923}, {126531, 2}, {126535, 17682435}, {126536, 2},
++++    {126537, 16911875}, {126538, 2}, {126539, 17711107}, {126540, 2},
++++    {126541, 17718019}, {126542, 17694979}, {126543, 17701635}, {126544, 2},
++++    {126545, 17697027}, {126546, 17706755}, {126547, 2}, {126548, 17745155},
++++    {126549, 2}, {126551, 17684995}, {126552, 2}, {126553, 17698051},
++++    {126554, 2}, {126555, 17702659}, {126556, 2}, {126557, 17673475},
++++    {126558, 2}, {126559, 17955331}, {126560, 2}, {126561, 17683715},
++++    {126562, 17681923}, {126563, 2}, {126564, 17721091}, {126565, 2},
++++    {126567, 17682435}, {126568, 17700099}, {126569, 16911875}, {126570, 17708803},
++++    {126571, 2}, {126572, 17682947}, {126573, 17718019}, {126574, 17694979},
++++    {126575, 17701635}, {126576, 17703683}, {126577, 17697027}, {126578, 17706755},
++++    {126579, 2}, {126580, 17745155}, {126581, 17686787}, {126582, 17689859},
++++    {126583, 17684995}, {126584, 2}, {126585, 17698051}, {126586, 17701123},
++++    {126587, 17702659}, {126588, 17954819}, {126589, 2}, {126590, 17955075},
++++    {126591, 2}, {126592, 16910339}, {126593, 17683715}, {126594, 17681923},
++++    {126595, 17834499}, {126596, 17721091}, {126597, 16910851}, {126598, 17731587},
++++    {126599, 17682435}, {126600, 17700099}, {126601, 16911875}, {126602, 2},
++++    {126603, 17711107}, {126604, 17682947}, {126605, 17718019}, {126606, 17694979},
++++    {126607, 17701635}, {126608, 17703683}, {126609, 17697027}, {126610, 17706755},
++++    {126611, 17725187}, {126612, 17745155}, {126613, 17686787}, {126614, 17689859},
++++    {126615, 17684995}, {126616, 17724675}, {126617, 17698051}, {126618, 17701123},
++++    {126619, 17702659}, {126620, 2}, {126625, 17683715}, {126626, 17681923},
++++    {126627, 17834499}, {126628, 2}, {126629, 16910851}, {126630, 17731587},
++++    {126631, 17682435}, {126632, 17700099}, {126633, 16911875}, {126634, 2},
++++    {126635, 17711107}, {126636, 17682947}, {126637, 17718019}, {126638, 17694979},
++++    {126639, 17701635}, {126640, 17703683}, {126641, 17697027}, {126642, 17706755},
++++    {126643, 17725187}, {126644, 17745155}, {126645, 17686787}, {126646, 17689859},
++++    {126647, 17684995}, {126648, 17724675}, {126649, 17698051}, {126650, 17701123},
++++    {126651, 17702659}, {126652, 2}, {126704, 1}, {126706, 2},
++++    {126976, 1}, {127020, 2}, {127024, 1}, {127124, 2},
++++    {127136, 1}, {127151, 2}, {127153, 1}, {127168, 2},
++++    {127169, 1}, {127184, 2}, {127185, 1}, {127222, 2},
++++    {127233, 34732803}, {127234, 34733315}, {127235, 34733827}, {127236, 34734339},
++++    {127237, 34734851}, {127238, 34735363}, {127239, 34735875}, {127240, 34736387},
++++    {127241, 34736899}, {127242, 34737411}, {127243, 1}, {127248, 50644995},
++++    {127249, 50645763}, {127250, 50646531}, {127251, 50647299}, {127252, 50648067},
++++    {127253, 50648835}, {127254, 50649603}, {127255, 50650371}, {127256, 50651139},
++++    {127257, 50651907}, {127258, 50652675}, {127259, 50653443}, {127260, 50654211},
++++    {127261, 50654979}, {127262, 50655747}, {127263, 50656515}, {127264, 50657283},
++++    {127265, 50658051}, {127266, 50658819}, {127267, 50659587}, {127268, 50660355},
++++    {127269, 50661123}, {127270, 50661891}, {127271, 50662659}, {127272, 50663427},
++++    {127273, 50664195}, {127274, 51515139}, {127275, 16777731}, {127276, 16781571},
++++    {127277, 33554947}, {127278, 34738691}, {127279, 1}, {127280, 16777219},
++++    {127281, 16777475}, {127282, 16777731}, {127283, 16777987}, {127284, 16778243},
++++    {127285, 16778499}, {127286, 16778755}, {127287, 16779011}, {127288, 16779267},
++++    {127289, 16779523}, {127290, 16779779}, {127291, 16780035}, {127292, 16780291},
++++    {127293, 16780547}, {127294, 16780803}, {127295, 16781059}, {127296, 16781315},
++++    {127297, 16781571}, {127298, 16781827}, {127299, 16782083}, {127300, 16782339},
++++    {127301, 16782595}, {127302, 16782851}, {127303, 16783107}, {127304, 16783363},
++++    {127305, 16783619}, {127306, 34739203}, {127307, 34226691}, {127308, 34739715},
++++    {127309, 33752579}, {127310, 51517443}, {127311, 34740995}, {127312, 1},
++++    {127338, 34209539}, {127339, 34189571}, {127340, 34741507}, {127341, 1},
++++    {127376, 34742019}, {127377, 1}, {127406, 2}, {127462, 1},
++++    {127488, 34742531}, {127489, 34743043}, {127490, 17307907}, {127491, 2},
++++    {127504, 17157891}, {127505, 17966339}, {127506, 17966595}, {127507, 17351683},
++++    {127508, 17143299}, {127509, 17966851}, {127510, 17967107}, {127511, 17225475},
++++    {127512, 17967363}, {127513, 17967619}, {127514, 17967875}, {127515, 17584643},
++++    {127516, 17968131}, {127517, 17968387}, {127518, 17968643}, {127519, 17968899},
++++    {127520, 17969155}, {127521, 17969411}, {127522, 17167107}, {127523, 17969667},
++++    {127524, 17969923}, {127525, 17970179}, {127526, 17970435}, {127527, 17970691},
++++    {127528, 17970947}, {127529, 17141763}, {127530, 17223427}, {127531, 17971203},
++++    {127532, 17288707}, {127533, 17224195}, {127534, 17288963}, {127535, 17971459},
++++    {127536, 17181443}, {127537, 17971715}, {127538, 17971971}, {127539, 17972227},
++++    {127540, 17972483}, {127541, 17972739}, {127542, 17264387}, {127543, 17160451},
++++    {127544, 17972995}, {127545, 17973251}, {127546, 17973507}, {127547, 17973763},
++++    {127548, 2}, {127552, 51528451}, {127553, 51529219}, {127554, 51529987},
++++    {127555, 51530755}, {127556, 51531523}, {127557, 51532291}, {127558, 51533059},
++++    {127559, 51533827}, {127560, 51534595}, {127561, 2}, {127568, 17980931},
++++    {127569, 17981187}, {127570, 2}, {127584, 1}, {127590, 2},
++++    {127744, 1}, {128728, 2}, {128732, 1}, {128749, 2},
++++    {128752, 1}, {128765, 2}, {128768, 1}, {128887, 2},
++++    {128891, 1}, {128986, 2}, {128992, 1}, {129004, 2},
++++    {129008, 1}, {129009, 2}, {129024, 1}, {129036, 2},
++++    {129040, 1}, {129096, 2}, {129104, 1}, {129114, 2},
++++    {129120, 1}, {129160, 2}, {129168, 1}, {129198, 2},
++++    {129200, 1}, {129202, 2}, {129280, 1}, {129620, 2},
++++    {129632, 1}, {129646, 2}, {129648, 1}, {129661, 2},
++++    {129664, 1}, {129673, 2}, {129680, 1}, {129726, 2},
++++    {129727, 1}, {129734, 2}, {129742, 1}, {129756, 2},
++++    {129760, 1}, {129769, 2}, {129776, 1}, {129785, 2},
++++    {129792, 1}, {129939, 2}, {129940, 1}, {129995, 2},
++++    {130032, 17035523}, {130033, 16786947}, {130034, 16785155}, {130035, 16785411},
++++    {130036, 16787715}, {130037, 17035779}, {130038, 17036035}, {130039, 17036291},
++++    {130040, 17036547}, {130041, 17036803}, {130042, 2}, {131072, 1},
++++    {173792, 2}, {173824, 1}, {177978, 2}, {177984, 1},
++++    {178206, 2}, {178208, 1}, {183970, 2}, {183984, 1},
++++    {191457, 2}, {194560, 17981443}, {194561, 17981699}, {194562, 17981955},
++++    {194563, 17982211}, {194564, 17982467}, {194565, 17608451}, {194566, 17982723},
++++    {194567, 17982979}, {194568, 17983235}, {194569, 17983491}, {194570, 17608707},
++++    {194571, 17983747}, {194572, 17984003}, {194573, 17984259}, {194574, 17608963},
++++    {194575, 17984515}, {194576, 17984771}, {194577, 17985027}, {194578, 17985283},
++++    {194579, 17985539}, {194580, 17985795}, {194581, 17968643}, {194582, 17986051},
++++    {194583, 17986307}, {194584, 17986563}, {194585, 17986819}, {194586, 17987075},
++++    {194587, 17623043}, {194588, 17987331}, {194589, 17145859}, {194590, 17987587},
++++    {194591, 17987843}, {194592, 17988099}, {194593, 17988355}, {194594, 17973251},
++++    {194595, 17988611}, {194596, 17988867}, {194597, 17624323}, {194598, 17609219},
++++    {194599, 17609475}, {194600, 17624579}, {194601, 17989123}, {194602, 17989379},
++++    {194603, 17562883}, {194604, 17989635}, {194605, 17609731}, {194606, 17989891},
++++    {194607, 17990147}, {194608, 17990403}, {194609, 17990659}, {194612, 17990915},
++++    {194613, 17991171}, {194614, 17991427}, {194615, 17991683}, {194616, 17991939},
++++    {194617, 17992195}, {194618, 17992451}, {194619, 17992707}, {194620, 17992963},
++++    {194621, 17993219}, {194622, 17993475}, {194623, 17993731}, {194624, 17993987},
++++    {194625, 17994243}, {194626, 17994499}, {194627, 17994755}, {194628, 17995011},
++++    {194629, 17995267}, {194631, 17625091}, {194632, 17995523}, {194633, 17995779},
++++    {194634, 17996035}, {194635, 17996291}, {194636, 17610243}, {194637, 17996547},
++++    {194638, 17996803}, {194639, 17997059}, {194640, 17600003}, {194641, 17997315},
++++    {194642, 17997571}, {194643, 17997827}, {194644, 17998083}, {194645, 17998339},
++++    {194646, 17998595}, {194647, 17998851}, {194648, 17999107}, {194649, 17999363},
++++    {194650, 17999619}, {194651, 17999875}, {194652, 18000131}, {194653, 17966851},
++++    {194654, 18000387}, {194655, 18000643}, {194656, 18000899}, {194657, 18001155},
++++    {194658, 18001411}, {194659, 18001667}, {194660, 18001923}, {194661, 18002179},
++++    {194662, 18002435}, {194663, 18002691}, {194664, 2}, {194665, 18002947},
++++    {194666, 18003203}, {194668, 18003459}, {194669, 18003715}, {194670, 18003971},
++++    {194671, 17561859}, {194672, 18004227}, {194673, 18004483}, {194674, 18004739},
++++    {194675, 18004995}, {194676, 2}, {194677, 17152515}, {194678, 18005251},
++++    {194679, 18005507}, {194680, 17153027}, {194681, 18005763}, {194682, 18006019},
++++    {194683, 18006275}, {194684, 18006531}, {194685, 18006787}, {194686, 18007043},
++++    {194687, 18007299}, {194688, 18007555}, {194689, 18007811}, {194690, 18008067},
++++    {194691, 18008323}, {194692, 18008579}, {194693, 18008835}, {194694, 18009091},
++++    {194695, 18009347}, {194696, 18009603}, {194697, 18009859}, {194698, 18010115},
++++    {194699, 18010371}, {194700, 18010627}, {194701, 18010883}, {194702, 17548547},
++++    {194703, 18011139}, {194704, 17155587}, {194705, 18011395}, {194707, 18011651},
++++    {194708, 18011907}, {194710, 18012163}, {194711, 18012419}, {194712, 18012675},
++++    {194713, 18012931}, {194714, 18013187}, {194715, 18013443}, {194716, 18013699},
++++    {194717, 18013955}, {194718, 18014211}, {194719, 18014467}, {194720, 18014723},
++++    {194721, 18014979}, {194722, 18015235}, {194723, 17611523}, {194724, 18015491},
++++    {194725, 18015747}, {194726, 18016003}, {194727, 18016259}, {194728, 17628163},
++++    {194729, 18016259}, {194730, 18016515}, {194731, 17612035}, {194732, 18016771},
++++    {194733, 18017027}, {194734, 18017283}, {194735, 18017539}, {194736, 17612291},
++++    {194737, 17541635}, {194738, 17414915}, {194739, 18017795}, {194740, 18018051},
++++    {194741, 18018307}, {194742, 18018563}, {194743, 18018819}, {194744, 18019075},
++++    {194745, 18019331}, {194746, 18019587}, {194747, 18019843}, {194748, 18020099},
++++    {194749, 18020355}, {194750, 18020611}, {194751, 18020867}, {194752, 18021123},
++++    {194753, 18021379}, {194754, 18021635}, {194755, 18021891}, {194756, 18022147},
++++    {194757, 18022403}, {194758, 18022659}, {194759, 18022915}, {194760, 17612547},
++++    {194761, 18023171}, {194762, 18023427}, {194763, 18023683}, {194764, 18023939},
++++    {194765, 18024195}, {194766, 18024451}, {194767, 17613059}, {194768, 18024707},
++++    {194769, 18024963}, {194770, 18025219}, {194771, 18025475}, {194772, 18025731},
++++    {194773, 18025987}, {194774, 18026243}, {194775, 18026499}, {194776, 17548803},
++++    {194777, 17630211}, {194778, 18026755}, {194779, 18027011}, {194780, 18027267},
++++    {194781, 18027523}, {194782, 18027779}, {194783, 18028035}, {194784, 18028291},
++++    {194785, 18028547}, {194786, 17613315}, {194787, 18028803}, {194788, 18029059},
++++    {194789, 18029315}, {194790, 18029571}, {194791, 17640963}, {194792, 18029827},
++++    {194793, 18030083}, {194794, 18030339}, {194795, 18030595}, {194796, 18030851},
++++    {194797, 18031107}, {194798, 18031363}, {194799, 18031619}, {194800, 18031875},
++++    {194801, 18032131}, {194802, 18032387}, {194803, 18032643}, {194804, 18032899},
++++    {194805, 17566211}, {194806, 18033155}, {194807, 18033411}, {194808, 18033667},
++++    {194809, 18033923}, {194810, 18034179}, {194811, 18034435}, {194812, 18034691},
++++    {194813, 18034947}, {194814, 18035203}, {194815, 18035459}, {194816, 18035715},
++++    {194817, 17613571}, {194818, 17587203}, {194819, 18035971}, {194820, 18036227},
++++    {194821, 18036483}, {194822, 18036739}, {194823, 18036995}, {194824, 18037251},
++++    {194825, 18037507}, {194826, 18037763}, {194827, 17630979}, {194828, 18038019},
++++    {194829, 18038275}, {194830, 18038531}, {194831, 18038787}, {194832, 18039043},
++++    {194833, 18039299}, {194834, 18039555}, {194835, 18039811}, {194836, 17631235},
++++    {194837, 18040067}, {194838, 18040323}, {194839, 18040579}, {194840, 18040835},
++++    {194841, 18041091}, {194842, 18041347}, {194843, 18041603}, {194844, 18041859},
++++    {194845, 18042115}, {194846, 18042371}, {194847, 2}, {194848, 18042627},
++++    {194849, 17631747}, {194850, 18042883}, {194851, 18043139}, {194852, 18043395},
++++    {194853, 18043651}, {194854, 18043907}, {194855, 18044163}, {194856, 18044419},
++++    {194857, 18044675}, {194858, 18044931}, {194859, 18045187}, {194860, 18045443},
++++    {194862, 18045699}, {194863, 18045955}, {194864, 17632259}, {194865, 18046211},
++++    {194866, 18046467}, {194867, 18046723}, {194868, 18046979}, {194869, 18047235},
++++    {194870, 18047491}, {194871, 18047747}, {194872, 17562627}, {194873, 18048003},
++++    {194874, 18048259}, {194875, 18048515}, {194876, 18048771}, {194877, 18049027},
++++    {194878, 18049283}, {194879, 18049539}, {194880, 17633795}, {194881, 18049795},
++++    {194882, 18050051}, {194883, 18050307}, {194884, 18050563}, {194885, 18050819},
++++    {194886, 18051075}, {194888, 17634051}, {194889, 17641475}, {194890, 18051331},
++++    {194891, 18051587}, {194892, 18051843}, {194893, 18052099}, {194894, 18052355},
++++    {194895, 17553155}, {194896, 17634563}, {194897, 18052611}, {194898, 18052867},
++++    {194899, 17616131}, {194900, 18053123}, {194901, 18053379}, {194902, 17605123},
++++    {194903, 18053635}, {194904, 18053891}, {194905, 17616899}, {194906, 18054147},
++++    {194907, 18054403}, {194908, 18054659}, {194909, 18054915}, {194911, 2},
++++    {194912, 18055171}, {194913, 18055427}, {194914, 18055683}, {194915, 18055939},
++++    {194916, 18056195}, {194917, 18056451}, {194918, 18056707}, {194919, 18056963},
++++    {194920, 18057219}, {194921, 18057475}, {194922, 18057731}, {194923, 18057987},
++++    {194924, 18058243}, {194925, 18058499}, {194926, 18058755}, {194927, 18059011},
++++    {194928, 18059267}, {194929, 18059523}, {194930, 18059779}, {194931, 18060035},
++++    {194932, 18060291}, {194933, 18060547}, {194934, 18060803}, {194935, 18061059},
++++    {194936, 18061315}, {194937, 18061571}, {194938, 17618435}, {194939, 18061827},
++++    {194940, 18062083}, {194941, 18062339}, {194942, 18062595}, {194943, 18062851},
++++    {194944, 18063107}, {194945, 18063363}, {194946, 18063619}, {194947, 18063875},
++++    {194948, 18064131}, {194949, 18064387}, {194950, 18064643}, {194951, 18064899},
++++    {194952, 18065155}, {194953, 18065411}, {194954, 18065667}, {194955, 18011651},
++++    {194956, 18065923}, {194957, 18066179}, {194958, 18066435}, {194959, 18066691},
++++    {194960, 18066947}, {194961, 18067203}, {194962, 18067459}, {194963, 18067715},
++++    {194964, 18067971}, {194965, 18068227}, {194966, 18068483}, {194967, 18068739},
++++    {194968, 17566979}, {194969, 18068995}, {194970, 18069251}, {194971, 18069507},
++++    {194972, 18069763}, {194973, 18070019}, {194974, 18070275}, {194975, 17619203},
++++    {194976, 18070531}, {194977, 18070787}, {194978, 18071043}, {194979, 18071299},
++++    {194980, 18071555}, {194981, 18071811}, {194982, 18072067}, {194983, 18072323},
++++    {194984, 18072579}, {194985, 18072835}, {194986, 18073091}, {194987, 18073347},
++++    {194988, 18073603}, {194989, 18073859}, {194990, 18074115}, {194991, 18074371},
++++    {194992, 18074627}, {194993, 18074883}, {194994, 18075139}, {194995, 18075395},
++++    {194996, 17551875}, {194997, 18075651}, {194998, 18075907}, {194999, 18076163},
++++    {195000, 18076419}, {195001, 18076675}, {195002, 18076931}, {195003, 17636355},
++++    {195004, 18077187}, {195005, 18077443}, {195006, 18077699}, {195007, 2},
++++    {195008, 18077955}, {195009, 18078211}, {195010, 18078467}, {195011, 18078723},
++++    {195012, 17178627}, {195013, 18078979}, {195014, 18079235}, {195015, 18079491},
++++    {195016, 18079747}, {195017, 18080003}, {195018, 18080259}, {195019, 18080515},
++++    {195020, 18080771}, {195021, 18081027}, {195022, 18081283}, {195023, 18081539},
++++    {195024, 17637635}, {195025, 17637891}, {195026, 17180419}, {195027, 18081795},
++++    {195028, 18082051}, {195029, 18082307}, {195030, 18082563}, {195031, 18082819},
++++    {195032, 18083075}, {195033, 18083331}, {195034, 18083587}, {195035, 18083843},
++++    {195036, 18084099}, {195037, 18084355}, {195038, 18084611}, {195039, 17638147},
++++    {195040, 18084867}, {195041, 18085123}, {195042, 18085379}, {195043, 18085635},
++++    {195044, 18085891}, {195045, 18086147}, {195046, 18086403}, {195047, 18086659},
++++    {195048, 18086915}, {195049, 18087171}, {195050, 18087427}, {195051, 18087683},
++++    {195052, 18087939}, {195053, 18088195}, {195054, 18088451}, {195055, 18088707},
++++    {195056, 18088963}, {195057, 18089219}, {195058, 18089475}, {195059, 18089731},
++++    {195060, 18089987}, {195061, 18090243}, {195062, 18090499}, {195063, 18090755},
++++    {195064, 18091011}, {195065, 18091267}, {195066, 18091523}, {195067, 18091779},
++++    {195068, 18092035}, {195069, 18092291}, {195070, 17639683}, {195072, 18092547},
++++    {195073, 18092803}, {195074, 18093059}, {195075, 18093315}, {195076, 18093571},
++++    {195077, 18093827}, {195078, 18094083}, {195079, 18094339}, {195080, 18094595},
++++    {195081, 18094851}, {195082, 17639939}, {195083, 18095107}, {195084, 18095363},
++++    {195085, 18095619}, {195086, 18095875}, {195087, 18096131}, {195088, 18096387},
++++    {195089, 18096643}, {195090, 18096899}, {195091, 18097155}, {195092, 18097411},
++++    {195093, 17192707}, {195094, 18097667}, {195095, 17193731}, {195096, 18097923},
++++    {195097, 18098179}, {195098, 18098435}, {195099, 18098691}, {195100, 17195011},
++++    {195101, 18098947}, {195102, 2}, {196608, 1}, {201547, 2},
++++    {201552, 1}, {205744, 2}, {917760, 0}, {918000, 2}
++++};
++++
++++
++++} // namespace ada::idna
++++#endif // ADA_IDNA_TABLES_H
++++
++++/* end file src/mapping_tables.cpp */
++++
++++namespace ada::idna {
++++
++++// This can be greatly accelerated. For now we just use a simply
++++// binary search. In practice, you should *not* do that.
++++uint32_t find_range_index(uint32_t key) {
++++  ////////////////
++++  // This could be implemented with std::lower_bound, but we roll our own
++++  // because we want to allow further optimizations in the future.
++++  ////////////////
++++  uint32_t len = std::size(table);
++++  uint32_t low = 0;
++++  uint32_t high = len - 1;
++++  while (low <= high) {
++++    uint32_t middle_index = (low + high) >> 1;  // cannot overflow
++++    uint32_t middle_value = table[middle_index][0];
++++    if (middle_value < key) {
++++      low = middle_index + 1;
++++    } else if (middle_value > key) {
++++      high = middle_index - 1;
++++    } else {
++++      return middle_index;  // perfect match
++++    }
++++  }
++++  return low == 0 ? 0 : low - 1;
++++}
++++
++++bool ascii_has_upper_case(char* input, size_t length) {
++++  auto broadcast = [](uint8_t v) -> uint64_t {
++++    return 0x101010101010101ull * v;
++++  };
++++  uint64_t broadcast_80 = broadcast(0x80);
++++  uint64_t broadcast_Ap = broadcast(128 - 'A');
++++  uint64_t broadcast_Zp = broadcast(128 - 'Z' - 1);
++++  size_t i = 0;
++++
++++  uint64_t runner{0};
++++
++++  for (; i + 7 < length; i += 8) {
++++    uint64_t word{};
++++    memcpy(&word, input + i, sizeof(word));
++++    runner |= (((word + broadcast_Ap) ^ (word + broadcast_Zp)) & broadcast_80);
++++  }
++++  if (i < length) {
++++    uint64_t word{};
++++    memcpy(&word, input + i, length - i);
++++    runner |= (((word + broadcast_Ap) ^ (word + broadcast_Zp)) & broadcast_80);
++++  }
++++  return runner != 0;
++++}
++++
++++void ascii_map(char* input, size_t length) {
++++  auto broadcast = [](uint8_t v) -> uint64_t {
++++    return 0x101010101010101ull * v;
++++  };
++++  uint64_t broadcast_80 = broadcast(0x80);
++++  uint64_t broadcast_Ap = broadcast(128 - 'A');
++++  uint64_t broadcast_Zp = broadcast(128 - 'Z' - 1);
++++  size_t i = 0;
++++
++++  for (; i + 7 < length; i += 8) {
++++    uint64_t word{};
++++    memcpy(&word, input + i, sizeof(word));
++++    word ^=
++++        (((word + broadcast_Ap) ^ (word + broadcast_Zp)) & broadcast_80) >> 2;
++++    memcpy(input + i, &word, sizeof(word));
++++  }
++++  if (i < length) {
++++    uint64_t word{};
++++    memcpy(&word, input + i, length - i);
++++    word ^=
++++        (((word + broadcast_Ap) ^ (word + broadcast_Zp)) & broadcast_80) >> 2;
++++    memcpy(input + i, &word, length - i);
++++  }
++++}
++++
++++// Map the characters according to IDNA, returning the empty string on error.
++++std::u32string map(std::u32string_view input) {
++++  //  [Map](https://www.unicode.org/reports/tr46/#ProcessingStepMap).
++++  //  For each code point in the domain_name string, look up the status
++++  //  value in Section 5, [IDNA Mapping
++++  //  Table](https://www.unicode.org/reports/tr46/#IDNA_Mapping_Table),
++++  //  and take the following actions:
++++  //    * disallowed: Leave the code point unchanged in the string, and
++++  //    record that there was an error.
++++  //    * ignored: Remove the code point from the string. This is
++++  //    equivalent to mapping the code point to an empty string.
++++  //    * mapped: Replace the code point in the string by the value for
++++  //    the mapping in Section 5, [IDNA Mapping
++++  //    Table](https://www.unicode.org/reports/tr46/#IDNA_Mapping_Table).
++++  //    * valid: Leave the code point unchanged in the string.
++++  static std::u32string error = U"";
++++  std::u32string answer;
++++  answer.reserve(input.size());
++++  for (char32_t x : input) {
++++    size_t index = find_range_index(x);
++++    uint32_t descriptor = table[index][1];
++++    uint8_t code = uint8_t(descriptor);
++++    switch (code) {
++++      case 0:
++++        break;  // nothing to do, ignored
++++      case 1:
++++        answer.push_back(x);  // valid, we just copy it to output
++++        break;
++++      case 2:
++++        return error;  // disallowed
++++      // case 3 :
++++      default:
++++        // We have a mapping
++++        {
++++          size_t char_count = (descriptor >> 24);
++++          uint16_t char_index = uint16_t(descriptor >> 8);
++++          for (size_t idx = char_index; idx < char_index + char_count; idx++) {
++++            answer.push_back(mappings[idx]);
++++          }
++++        }
++++    }
++++  }
++++  return answer;
++++}
++++}  // namespace ada::idna
++++/* end file src/mapping.cpp */
++++/* begin file src/normalization.cpp */
++++/* begin file src/normalization_tables.cpp */
++++// IDNA  15.0.0
++++
++++// clang-format off
++++#ifndef ADA_IDNA_NORMALIZATION_TABLES_H
++++#define ADA_IDNA_NORMALIZATION_TABLES_H
++++#include <cstdint>
++++
++++/**
++++ * Unicode Standard Annex #15
++++ *
++++ * UNICODE NORMALIZATION FORMS
++++ * https://www.unicode.org/reports/tr15/
++++ *
++++ * See https://github.com/uni-algo/uni-algo/blob/c612968c5ed3ace39bde4c894c24286c5f2c7fe2/include/uni_algo/impl/data/data_norm.h for reference.
++++ */
++++
++++namespace ada::idna {
++++
++++const uint8_t decomposition_index[4352] = {
++++    0,  1,  2,  3,  4,  5,  6,  7,  7,  8,  9,  10, 11, 12, 13, 14, 15, 7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  16, 7,  17, 18, 19, 20, 21, 22, 23, 24, 7,
++++    7,  7,  7,  7,  25, 7,  26, 27, 28, 29, 30, 31, 32, 33, 7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  34, 35, 7,  7,  7,
++++    36, 7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  37, 38, 39, 40, 41, 42, 43, 7,  7,  7,  7,  7,  7,  7,  44, 7,  7,
++++    7,  7,  7,  7,  7,  7,  45, 46, 7,  47, 48, 49, 7,  7,  7,  50, 7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  51, 7,  52, 53, 54, 55, 56, 7,  7,  7,
++++    7,  7,  7,  7,  7,  57, 7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  58,
++++    59, 7,  60, 61, 62, 7,  7,  7,  7,  7,  7,  7,  7,  63, 7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    64, 65, 66, 7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,  7,
++++    7};
++++
++++const uint16_t decomposition_block[67][257] = {
++++    {4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,
++++     4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,
++++     4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,
++++     4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,
++++     4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,
++++     4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,
++++     4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,
++++     4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,
++++     4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,
++++     4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   4,
++++     4,   4,   4,   4,   4,   4,   4,   4,   4,   4,   5,   8,   8,   8,   8,
++++     8,   8,   8,   9,   16,  17,  20,  20,  20,  20,  21,  28,  28,  29,  33,
++++     37,  45,  48,  48,  49,  57,  61,  64,  65,  77,  89,  100, 100, 108, 116,
++++     124, 132, 140, 148, 148, 156, 164, 172, 180, 188, 196, 204, 212, 220, 220,
++++     228, 236, 244, 252, 260, 268, 268, 268, 276, 284, 292, 300, 308, 308, 308,
++++     316, 324, 332, 340, 348, 356, 356, 364, 372, 380, 388, 396, 404, 412, 420,
++++     428, 428, 436, 444, 452, 460, 468, 476, 476, 476, 484, 492, 500, 508, 516,
++++     516, 524},
++++    {524,  532,  540,  548,  556,  564,  572,  580,  588,  596,  604,  612,
++++     620,  628,  636,  644,  652,  652,  652,  660,  668,  676,  684,  692,
++++     700,  708,  716,  724,  732,  740,  748,  756,  764,  772,  780,  788,
++++     796,  804,  812,  812,  812,  820,  828,  836,  844,  852,  860,  868,
++++     876,  884,  885,  893,  900,  908,  916,  924,  932,  932,  940,  948,
++++     956,  964,  972,  981,  989,  996,  996,  996,  1004, 1012, 1020, 1028,
++++     1036, 1045, 1052, 1052, 1052, 1060, 1068, 1076, 1084, 1092, 1100, 1100,
++++     1100, 1108, 1116, 1124, 1132, 1140, 1148, 1156, 1164, 1172, 1180, 1188,
++++     1196, 1204, 1212, 1220, 1228, 1236, 1244, 1244, 1244, 1252, 1260, 1268,
++++     1276, 1284, 1292, 1300, 1308, 1316, 1324, 1332, 1340, 1348, 1356, 1364,
++++     1372, 1380, 1388, 1396, 1404, 1412, 1420, 1429, 1432, 1432, 1432, 1432,
++++     1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432,
++++     1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432,
++++     1432, 1432, 1432, 1432, 1432, 1440, 1448, 1448, 1448, 1448, 1448, 1448,
++++     1448, 1448, 1448, 1448, 1448, 1448, 1448, 1448, 1456, 1464, 1464, 1464,
++++     1464, 1464, 1464, 1464, 1464, 1464, 1464, 1464, 1464, 1464, 1464, 1464,
++++     1464, 1464, 1464, 1464, 1465, 1477, 1489, 1501, 1509, 1517, 1525, 1533,
++++     1541, 1548, 1556, 1564, 1572, 1580, 1588, 1596, 1604, 1612, 1624, 1636,
++++     1648, 1660, 1672, 1684, 1696, 1708, 1708, 1720, 1732, 1744, 1756, 1764,
++++     1772, 1772, 1772, 1780, 1788, 1796, 1804, 1812, 1820, 1832, 1844, 1852,
++++     1860, 1869, 1877, 1885, 1892, 1900, 1908, 1908, 1908, 1916, 1924, 1936,
++++     1948, 1956, 1964, 1972, 1980},
++++    {1980, 1988, 1996, 2004, 2012, 2020, 2028, 2036, 2044, 2052, 2060, 2068,
++++     2076, 2084, 2092, 2100, 2108, 2116, 2124, 2132, 2140, 2148, 2156, 2164,
++++     2172, 2180, 2188, 2196, 2204, 2204, 2204, 2212, 2220, 2220, 2220, 2220,
++++     2220, 2220, 2220, 2228, 2236, 2244, 2252, 2264, 2276, 2288, 2300, 2308,
++++     2316, 2328, 2340, 2348, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356,
++++     2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356,
++++     2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356,
++++     2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356,
++++     2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356,
++++     2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356,
++++     2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356,
++++     2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356,
++++     2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356,
++++     2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356,
++++     2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2357, 2361, 2365, 2369,
++++     2373, 2377, 2381, 2385, 2389, 2392, 2392, 2392, 2392, 2392, 2392, 2392,
++++     2392, 2392, 2392, 2392, 2392, 2392, 2392, 2392, 2392, 2392, 2392, 2392,
++++     2392, 2392, 2392, 2392, 2392, 2392, 2392, 2392, 2392, 2392, 2392, 2392,
++++     2393, 2401, 2409, 2417, 2425, 2433, 2440, 2440, 2441, 2445, 2449, 2453,
++++     2457, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460,
++++     2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460,
++++     2460, 2460, 2460, 2460, 2460},
++++    {2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460,
++++     2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460,
++++     2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460,
++++     2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460,
++++     2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460, 2460,
++++     2460, 2460, 2460, 2460, 2460, 2464, 2468, 2468, 2472, 2480, 2480, 2480,
++++     2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480,
++++     2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480,
++++     2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480,
++++     2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480, 2480, 2484, 2484, 2484,
++++     2484, 2484, 2485, 2492, 2492, 2492, 2492, 2496, 2496, 2496, 2496, 2496,
++++     2497, 2506, 2512, 2520, 2524, 2532, 2540, 2548, 2548, 2556, 2556, 2564,
++++     2572, 2584, 2584, 2584, 2584, 2584, 2584, 2584, 2584, 2584, 2584, 2584,
++++     2584, 2584, 2584, 2584, 2584, 2584, 2584, 2584, 2584, 2584, 2584, 2584,
++++     2584, 2584, 2584, 2592, 2600, 2608, 2616, 2624, 2632, 2644, 2644, 2644,
++++     2644, 2644, 2644, 2644, 2644, 2644, 2644, 2644, 2644, 2644, 2644, 2644,
++++     2644, 2644, 2644, 2644, 2644, 2644, 2644, 2644, 2644, 2644, 2644, 2652,
++++     2660, 2668, 2676, 2684, 2685, 2689, 2693, 2698, 2706, 2713, 2717, 2720,
++++     2720, 2720, 2720, 2720, 2720, 2720, 2720, 2720, 2720, 2720, 2720, 2720,
++++     2720, 2720, 2720, 2720, 2720, 2720, 2720, 2720, 2720, 2720, 2720, 2720,
++++     2721, 2725, 2729, 2732, 2733, 2737, 2740, 2740, 2740, 2741, 2744, 2744,
++++     2744, 2744, 2744, 2744, 2744},
++++    {2744, 2752, 2760, 2760, 2768, 2768, 2768, 2768, 2776, 2776, 2776, 2776,
++++     2776, 2784, 2792, 2800, 2800, 2800, 2800, 2800, 2800, 2800, 2800, 2800,
++++     2800, 2800, 2808, 2808, 2808, 2808, 2808, 2808, 2808, 2808, 2808, 2808,
++++     2808, 2808, 2808, 2808, 2808, 2808, 2808, 2808, 2808, 2808, 2808, 2808,
++++     2808, 2808, 2808, 2808, 2808, 2808, 2808, 2808, 2808, 2808, 2816, 2816,
++++     2816, 2816, 2816, 2816, 2816, 2816, 2816, 2816, 2816, 2816, 2816, 2816,
++++     2816, 2816, 2816, 2816, 2816, 2816, 2816, 2816, 2816, 2824, 2832, 2832,
++++     2840, 2840, 2840, 2840, 2848, 2848, 2848, 2848, 2848, 2856, 2864, 2872,
++++     2872, 2872, 2872, 2872, 2872, 2872, 2872, 2872, 2872, 2872, 2872, 2872,
++++     2872, 2872, 2872, 2872, 2872, 2872, 2872, 2872, 2872, 2872, 2872, 2880,
++++     2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888,
++++     2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888,
++++     2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888,
++++     2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888,
++++     2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888,
++++     2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888, 2888,
++++     2888, 2888, 2896, 2904, 2904, 2904, 2904, 2904, 2904, 2904, 2904, 2904,
++++     2904, 2904, 2904, 2904, 2904, 2912, 2920, 2928, 2936, 2936, 2936, 2944,
++++     2952, 2952, 2952, 2960, 2968, 2976, 2984, 2992, 3000, 3000, 3000, 3008,
++++     3016, 3024, 3032, 3040, 3048, 3048, 3048, 3056, 3064, 3072, 3080, 3088,
++++     3096, 3104, 3112, 3120, 3128, 3136, 3144, 3144, 3144, 3152, 3160, 3160,
++++     3160, 3160, 3160, 3160, 3160},
++++    {3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160,
++++     3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160,
++++     3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160,
++++     3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160,
++++     3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160,
++++     3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160,
++++     3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160,
++++     3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160,
++++     3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160,
++++     3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160,
++++     3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160,
++++     3160, 3160, 3160, 3161, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168,
++++     3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168,
++++     3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168,
++++     3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168,
++++     3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168,
++++     3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168,
++++     3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168,
++++     3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168,
++++     3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168,
++++     3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168,
++++     3168, 3168, 3168, 3168, 3168},
++++    {3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168,
++++     3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168,
++++     3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3168, 3176,
++++     3184, 3192, 3200, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208,
++++     3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208,
++++     3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208,
++++     3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208,
++++     3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208,
++++     3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208,
++++     3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3208, 3209, 3217, 3225,
++++     3233, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240,
++++     3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240,
++++     3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240,
++++     3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240,
++++     3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240,
++++     3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240,
++++     3240, 3248, 3248, 3256, 3256, 3256, 3256, 3256, 3256, 3256, 3256, 3256,
++++     3256, 3256, 3256, 3256, 3256, 3256, 3256, 3256, 3264, 3264, 3264, 3264,
++++     3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264,
++++     3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264,
++++     3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264,
++++     3264, 3264, 3264, 3264, 3264},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264,
++++     3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264,
++++     3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264, 3264,
++++     3264, 3264, 3264, 3264, 3264, 3264, 3272, 3272, 3272, 3272, 3272, 3272,
++++     3272, 3272, 3280, 3280, 3280, 3288, 3288, 3288, 3288, 3288, 3288, 3288,
++++     3288, 3288, 3288, 3288, 3288, 3288, 3288, 3288, 3288, 3288, 3288, 3288,
++++     3288, 3288, 3288, 3288, 3288, 3288, 3288, 3288, 3288, 3288, 3288, 3288,
++++     3288, 3288, 3288, 3288, 3288, 3296, 3304, 3312, 3320, 3328, 3336, 3344,
++++     3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352,
++++     3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352,
++++     3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352,
++++     3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352,
++++     3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352,
++++     3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352,
++++     3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352,
++++     3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352,
++++     3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352, 3352,
++++     3360, 3368, 3368, 3368, 3368, 3368, 3368, 3368, 3368, 3368, 3368, 3368,
++++     3368, 3368, 3368, 3368, 3368, 3376, 3384, 3384, 3392, 3392, 3392, 3392,
++++     3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392,
++++     3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392,
++++     3392, 3392, 3392, 3392, 3392},
++++    {3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392,
++++     3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392,
++++     3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392,
++++     3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392, 3392,
++++     3392, 3392, 3392, 3392, 3400, 3400, 3400, 3408, 3408, 3408, 3408, 3408,
++++     3408, 3408, 3408, 3408, 3408, 3408, 3408, 3408, 3408, 3408, 3408, 3408,
++++     3408, 3408, 3408, 3408, 3408, 3408, 3408, 3408, 3408, 3408, 3408, 3408,
++++     3408, 3408, 3408, 3408, 3408, 3408, 3416, 3424, 3432, 3432, 3432, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440},
++++    {3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440, 3440,
++++     3440, 3448, 3448, 3448, 3456, 3464, 3464, 3464, 3464, 3464, 3464, 3464,
++++     3464, 3464, 3464, 3464, 3464, 3464, 3464, 3464, 3464, 3472, 3480, 3480,
++++     3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480,
++++     3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480,
++++     3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480,
++++     3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480, 3480,
++++     3480, 3480, 3480, 3480, 3480, 3488, 3488, 3488, 3488, 3488, 3488, 3488,
++++     3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488,
++++     3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488,
++++     3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488,
++++     3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488, 3488, 3496,
++++     3504, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512,
++++     3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512,
++++     3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512,
++++     3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512,
++++     3512, 3512, 3512, 3512, 3512},
++++    {3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512,
++++     3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512,
++++     3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512,
++++     3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512,
++++     3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512,
++++     3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512, 3512,
++++     3512, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520,
++++     3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520,
++++     3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520,
++++     3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520,
++++     3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520,
++++     3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520,
++++     3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520,
++++     3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520,
++++     3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520,
++++     3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520, 3520,
++++     3520, 3528, 3528, 3528, 3528, 3528, 3528, 3528, 3536, 3544, 3544, 3552,
++++     3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564,
++++     3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564,
++++     3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564,
++++     3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564,
++++     3564, 3564, 3564, 3564, 3564},
++++    {3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564,
++++     3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564,
++++     3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564,
++++     3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564,
++++     3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564,
++++     3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564, 3564,
++++     3564, 3564, 3564, 3572, 3580, 3588, 3588, 3588, 3588, 3588, 3588, 3588,
++++     3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588,
++++     3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588,
++++     3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588,
++++     3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588,
++++     3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588,
++++     3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588,
++++     3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588,
++++     3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588,
++++     3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588,
++++     3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588,
++++     3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588, 3588,
++++     3588, 3588, 3588, 3596, 3596, 3604, 3616, 3624, 3624, 3624, 3624, 3624,
++++     3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624,
++++     3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624,
++++     3624, 3624, 3624, 3624, 3624},
++++    {3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624,
++++     3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624,
++++     3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624,
++++     3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624, 3624,
++++     3624, 3624, 3624, 3625, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632,
++++     3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632,
++++     3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632,
++++     3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632,
++++     3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632,
++++     3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632,
++++     3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632,
++++     3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632,
++++     3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632,
++++     3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632,
++++     3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3632, 3633,
++++     3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640,
++++     3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640,
++++     3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640,
++++     3640, 3640, 3640, 3640, 3641, 3649, 3656, 3656, 3656, 3656, 3656, 3656,
++++     3656, 3656, 3656, 3656, 3656, 3656, 3656, 3656, 3656, 3656, 3656, 3656,
++++     3656, 3656, 3656, 3656, 3656, 3656, 3656, 3656, 3656, 3656, 3656, 3656,
++++     3656, 3656, 3656, 3656, 3656},
++++    {3656, 3656, 3656, 3656, 3656, 3656, 3656, 3656, 3656, 3656, 3656, 3656,
++++     3657, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660,
++++     3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660,
++++     3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660,
++++     3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660,
++++     3660, 3660, 3660, 3660, 3660, 3660, 3660, 3660, 3668, 3668, 3668, 3668,
++++     3668, 3668, 3668, 3668, 3668, 3668, 3676, 3676, 3676, 3676, 3676, 3684,
++++     3684, 3684, 3684, 3684, 3692, 3692, 3692, 3692, 3692, 3700, 3700, 3700,
++++     3700, 3700, 3700, 3700, 3700, 3700, 3700, 3700, 3700, 3700, 3708, 3708,
++++     3708, 3708, 3708, 3708, 3708, 3708, 3708, 3708, 3716, 3716, 3724, 3733,
++++     3744, 3753, 3764, 3764, 3764, 3764, 3764, 3764, 3764, 3764, 3772, 3772,
++++     3772, 3772, 3772, 3772, 3772, 3772, 3772, 3772, 3772, 3772, 3772, 3772,
++++     3772, 3772, 3772, 3772, 3780, 3780, 3780, 3780, 3780, 3780, 3780, 3780,
++++     3780, 3780, 3788, 3788, 3788, 3788, 3788, 3796, 3796, 3796, 3796, 3796,
++++     3804, 3804, 3804, 3804, 3804, 3812, 3812, 3812, 3812, 3812, 3812, 3812,
++++     3812, 3812, 3812, 3812, 3812, 3812, 3820, 3820, 3820, 3820, 3820, 3820,
++++     3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820,
++++     3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820,
++++     3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820,
++++     3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820,
++++     3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820,
++++     3820, 3820, 3820, 3820, 3820},
++++    {3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820,
++++     3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820,
++++     3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820, 3820,
++++     3820, 3820, 3820, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828, 3828,
++++     3829, 3832, 3832, 3832, 3832},
++++    {3832, 3832, 3832, 3832, 3832, 3832, 3832, 3840, 3840, 3848, 3848, 3856,
++++     3856, 3864, 3864, 3872, 3872, 3872, 3872, 3880, 3880, 3880, 3880, 3880,
++++     3880, 3880, 3880, 3880, 3880, 3880, 3880, 3880, 3880, 3880, 3880, 3880,
++++     3880, 3880, 3880, 3880, 3880, 3880, 3880, 3880, 3880, 3880, 3880, 3880,
++++     3880, 3880, 3880, 3880, 3880, 3880, 3880, 3880, 3880, 3880, 3880, 3880,
++++     3888, 3888, 3896, 3896, 3896, 3904, 3912, 3912, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920},
++++    {3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920,
++++     3920, 3920, 3920, 3920, 3920, 3920, 3920, 3920, 3921, 3925, 3929, 3932,
++++     3933, 3937, 3941, 3945, 3949, 3953, 3957, 3961, 3965, 3969, 3973, 3976,
++++     3977, 3981, 3985, 3989, 3993, 3997, 4001, 4005, 4009, 4013, 4017, 4021,
++++     4025, 4029, 4033, 4037, 4041, 4045, 4048, 4049, 4053, 4057, 4061, 4065,
++++     4069, 4073, 4077, 4081, 4085, 4089, 4093, 4097, 4101, 4105, 4109, 4113,
++++     4117, 4121, 4125, 4129, 4133, 4137, 4141, 4145, 4149, 4153, 4157, 4160,
++++     4160, 4160, 4160, 4160, 4160, 4160, 4160, 4160, 4160, 4160, 4160, 4160,
++++     4161, 4164, 4164, 4164, 4164, 4164, 4164, 4164, 4164, 4164, 4164, 4164,
++++     4164, 4164, 4164, 4164, 4164, 4164, 4164, 4164, 4164, 4164, 4164, 4164,
++++     4164, 4164, 4164, 4164, 4164, 4164, 4164, 4164, 4164, 4164, 4164, 4165,
++++     4169, 4173, 4177, 4181, 4185, 4189, 4193, 4197, 4201, 4205, 4209, 4213,
++++     4217, 4221, 4225, 4229, 4233, 4237, 4241, 4245, 4249, 4253, 4257, 4261,
++++     4265, 4269, 4273, 4277, 4281, 4285, 4289, 4293, 4297, 4301, 4305, 4309,
++++     4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312,
++++     4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312,
++++     4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312,
++++     4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312,
++++     4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312, 4312,
++++     4312, 4312, 4312, 4312, 4312},
++++    {4312, 4320, 4328, 4336, 4344, 4352, 4360, 4368, 4376, 4388, 4400, 4408,
++++     4416, 4424, 4432, 4440, 4448, 4456, 4464, 4472, 4480, 4492, 4504, 4516,
++++     4528, 4536, 4544, 4552, 4560, 4572, 4584, 4592, 4600, 4608, 4616, 4624,
++++     4632, 4640, 4648, 4656, 4664, 4672, 4680, 4688, 4696, 4704, 4712, 4724,
++++     4736, 4744, 4752, 4760, 4768, 4776, 4784, 4792, 4800, 4812, 4824, 4832,
++++     4840, 4848, 4856, 4864, 4872, 4880, 4888, 4896, 4904, 4912, 4920, 4928,
++++     4936, 4944, 4952, 4960, 4968, 4980, 4992, 5004, 5016, 5028, 5040, 5052,
++++     5064, 5072, 5080, 5088, 5096, 5104, 5112, 5120, 5128, 5140, 5152, 5160,
++++     5168, 5176, 5184, 5192, 5200, 5212, 5224, 5236, 5248, 5260, 5272, 5280,
++++     5288, 5296, 5304, 5312, 5320, 5328, 5336, 5344, 5352, 5360, 5368, 5376,
++++     5384, 5396, 5408, 5420, 5432, 5440, 5448, 5456, 5464, 5472, 5480, 5488,
++++     5496, 5504, 5512, 5520, 5528, 5536, 5544, 5552, 5560, 5568, 5576, 5584,
++++     5592, 5600, 5608, 5616, 5624, 5632, 5640, 5648, 5656, 5664, 5673, 5682,
++++     5688, 5688, 5688, 5688, 5688, 5696, 5704, 5712, 5720, 5732, 5744, 5756,
++++     5768, 5780, 5792, 5804, 5816, 5828, 5840, 5852, 5864, 5876, 5888, 5900,
++++     5912, 5924, 5936, 5948, 5960, 5968, 5976, 5984, 5992, 6000, 6008, 6020,
++++     6032, 6044, 6056, 6068, 6080, 6092, 6104, 6116, 6128, 6136, 6144, 6152,
++++     6160, 6168, 6176, 6184, 6192, 6204, 6216, 6228, 6240, 6252, 6264, 6276,
++++     6288, 6300, 6312, 6324, 6336, 6348, 6360, 6372, 6384, 6396, 6408, 6420,
++++     6432, 6440, 6448, 6456, 6464, 6476, 6488, 6500, 6512, 6524, 6536, 6548,
++++     6560, 6572, 6584, 6592, 6600, 6608, 6616, 6624, 6632, 6640, 6648, 6648,
++++     6648, 6648, 6648, 6648, 6648},
++++    {6648, 6656, 6664, 6676, 6688, 6700, 6712, 6724, 6736, 6744, 6752, 6764,
++++     6776, 6788, 6800, 6812, 6824, 6832, 6840, 6852, 6864, 6876, 6888, 6888,
++++     6888, 6896, 6904, 6916, 6928, 6940, 6952, 6952, 6952, 6960, 6968, 6980,
++++     6992, 7004, 7016, 7028, 7040, 7048, 7056, 7068, 7080, 7092, 7104, 7116,
++++     7128, 7136, 7144, 7156, 7168, 7180, 7192, 7204, 7216, 7224, 7232, 7244,
++++     7256, 7268, 7280, 7292, 7304, 7312, 7320, 7332, 7344, 7356, 7368, 7368,
++++     7368, 7376, 7384, 7396, 7408, 7420, 7432, 7432, 7432, 7440, 7448, 7460,
++++     7472, 7484, 7496, 7508, 7520, 7520, 7528, 7528, 7540, 7540, 7552, 7552,
++++     7564, 7572, 7580, 7592, 7604, 7616, 7628, 7640, 7652, 7660, 7668, 7680,
++++     7692, 7704, 7716, 7728, 7740, 7748, 7756, 7764, 7772, 7780, 7788, 7796,
++++     7804, 7812, 7820, 7828, 7836, 7844, 7852, 7852, 7852, 7864, 7876, 7892,
++++     7908, 7924, 7940, 7956, 7972, 7984, 7996, 8012, 8028, 8044, 8060, 8076,
++++     8092, 8104, 8116, 8132, 8148, 8164, 8180, 8196, 8212, 8224, 8236, 8252,
++++     8268, 8284, 8300, 8316, 8332, 8344, 8356, 8372, 8388, 8404, 8420, 8436,
++++     8452, 8464, 8476, 8492, 8508, 8524, 8540, 8556, 8572, 8580, 8588, 8600,
++++     8608, 8620, 8620, 8628, 8640, 8648, 8656, 8664, 8672, 8681, 8688, 8693,
++++     8701, 8710, 8716, 8728, 8736, 8748, 8748, 8756, 8768, 8776, 8784, 8792,
++++     8800, 8810, 8818, 8826, 8832, 8840, 8848, 8860, 8872, 8872, 8872, 8880,
++++     8892, 8900, 8908, 8916, 8924, 8926, 8934, 8942, 8948, 8956, 8964, 8976,
++++     8988, 8996, 9004, 9012, 9024, 9032, 9040, 9048, 9056, 9066, 9074, 9080,
++++     9084, 9084, 9084, 9096, 9104, 9116, 9116, 9124, 9136, 9144, 9152, 9160,
++++     9168, 9178, 9181, 9188, 9190},
++++    {9190, 9194, 9197, 9201, 9205, 9209, 9213, 9217, 9221, 9225, 9229, 9232,
++++     9232, 9232, 9232, 9232, 9232, 9233, 9236, 9236, 9236, 9236, 9236, 9237,
++++     9244, 9244, 9244, 9244, 9244, 9244, 9244, 9244, 9244, 9244, 9244, 9244,
++++     9245, 9249, 9257, 9268, 9268, 9268, 9268, 9268, 9268, 9268, 9268, 9269,
++++     9272, 9272, 9272, 9273, 9281, 9292, 9293, 9301, 9312, 9312, 9312, 9312,
++++     9313, 9320, 9321, 9328, 9328, 9328, 9328, 9328, 9328, 9328, 9328, 9329,
++++     9337, 9345, 9352, 9352, 9352, 9352, 9352, 9352, 9352, 9352, 9352, 9352,
++++     9352, 9352, 9352, 9353, 9368, 9368, 9368, 9368, 9368, 9368, 9368, 9369,
++++     9372, 9372, 9372, 9372, 9372, 9372, 9372, 9372, 9372, 9372, 9372, 9372,
++++     9372, 9372, 9372, 9372, 9373, 9377, 9380, 9380, 9381, 9385, 9389, 9393,
++++     9397, 9401, 9405, 9409, 9413, 9417, 9421, 9425, 9429, 9433, 9437, 9441,
++++     9445, 9449, 9453, 9457, 9461, 9465, 9469, 9473, 9477, 9481, 9485, 9488,
++++     9489, 9493, 9497, 9501, 9505, 9509, 9513, 9517, 9521, 9525, 9529, 9533,
++++     9537, 9540, 9540, 9540, 9540, 9540, 9540, 9540, 9540, 9540, 9540, 9540,
++++     9541, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548,
++++     9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548,
++++     9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548,
++++     9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548,
++++     9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548,
++++     9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548,
++++     9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548, 9548,
++++     9548, 9548, 9548, 9548, 9549},
++++    {9549,  9561,  9573,  9577,  9584,  9585,  9597,  9609,  9612,  9613,
++++     9621,  9625,  9629,  9633,  9637,  9641,  9645,  9649,  9653,  9657,
++++     9660,  9661,  9665,  9672,  9672,  9673,  9677,  9681,  9685,  9689,
++++     9692,  9692,  9693,  9701,  9713,  9720,  9721,  9724,  9724,  9728,
++++     9729,  9732,  9732,  9736,  9745,  9749,  9752,  9753,  9757,  9761,
++++     9764,  9765,  9769,  9773,  9777,  9781,  9785,  9789,  9792,  9793,
++++     9805,  9809,  9813,  9817,  9821,  9824,  9824,  9824,  9824,  9825,
++++     9829,  9833,  9837,  9841,  9844,  9844,  9844,  9844,  9844,  9844,
++++     9845,  9857,  9869,  9885,  9897,  9909,  9921,  9933,  9945,  9957,
++++     9969,  9981,  9993,  10005, 10017, 10029, 10037, 10041, 10049, 10061,
++++     10069, 10073, 10081, 10093, 10109, 10117, 10121, 10129, 10141, 10145,
++++     10149, 10153, 10157, 10161, 10169, 10181, 10189, 10193, 10201, 10213,
++++     10229, 10237, 10241, 10249, 10261, 10265, 10269, 10273, 10276, 10276,
++++     10276, 10276, 10276, 10276, 10276, 10276, 10276, 10277, 10288, 10288,
++++     10288, 10288, 10288, 10288, 10288, 10288, 10288, 10288, 10288, 10288,
++++     10288, 10288, 10288, 10288, 10288, 10296, 10304, 10304, 10304, 10304,
++++     10304, 10304, 10304, 10304, 10304, 10304, 10304, 10304, 10304, 10304,
++++     10304, 10304, 10304, 10304, 10304, 10312, 10312, 10312, 10312, 10312,
++++     10312, 10312, 10312, 10312, 10312, 10312, 10312, 10312, 10312, 10312,
++++     10312, 10312, 10312, 10312, 10312, 10312, 10312, 10312, 10312, 10312,
++++     10312, 10312, 10312, 10312, 10312, 10312, 10320, 10328, 10336, 10336,
++++     10336, 10336, 10336, 10336, 10336, 10336, 10336, 10336, 10336, 10336,
++++     10336, 10336, 10336, 10336, 10336, 10336, 10336, 10336, 10336, 10336,
++++     10336, 10336, 10336, 10336, 10336, 10336, 10336, 10336, 10336, 10336,
++++     10336, 10336, 10336, 10336, 10336, 10336, 10336, 10336, 10336, 10336,
++++     10336, 10336, 10336, 10336, 10336, 10336, 10336},
++++    {10336, 10336, 10336, 10336, 10336, 10344, 10344, 10344, 10344, 10344,
++++     10352, 10352, 10352, 10360, 10360, 10360, 10360, 10360, 10360, 10360,
++++     10360, 10360, 10360, 10360, 10360, 10360, 10360, 10360, 10360, 10360,
++++     10360, 10360, 10360, 10360, 10360, 10360, 10360, 10368, 10368, 10376,
++++     10376, 10376, 10376, 10376, 10377, 10385, 10396, 10397, 10405, 10416,
++++     10416, 10416, 10416, 10416, 10416, 10416, 10416, 10416, 10416, 10416,
++++     10416, 10416, 10416, 10416, 10416, 10416, 10424, 10424, 10424, 10432,
++++     10432, 10432, 10440, 10440, 10448, 10448, 10448, 10448, 10448, 10448,
++++     10448, 10448, 10448, 10448, 10448, 10448, 10448, 10448, 10448, 10448,
++++     10448, 10448, 10448, 10448, 10448, 10448, 10448, 10456, 10456, 10464,
++++     10464, 10464, 10464, 10464, 10464, 10464, 10464, 10464, 10464, 10464,
++++     10472, 10480, 10488, 10496, 10504, 10504, 10504, 10512, 10520, 10520,
++++     10520, 10528, 10536, 10536, 10536, 10536, 10536, 10536, 10536, 10544,
++++     10552, 10552, 10552, 10560, 10568, 10568, 10568, 10576, 10584, 10584,
++++     10584, 10584, 10584, 10584, 10584, 10584, 10584, 10584, 10584, 10584,
++++     10584, 10584, 10584, 10584, 10584, 10584, 10584, 10584, 10584, 10584,
++++     10584, 10584, 10584, 10584, 10584, 10584, 10584, 10584, 10584, 10584,
++++     10584, 10584, 10584, 10592, 10600, 10608, 10616, 10616, 10616, 10616,
++++     10616, 10616, 10616, 10616, 10616, 10616, 10616, 10616, 10616, 10616,
++++     10616, 10616, 10616, 10616, 10616, 10616, 10616, 10616, 10616, 10616,
++++     10616, 10616, 10616, 10616, 10616, 10616, 10616, 10616, 10616, 10616,
++++     10616, 10616, 10616, 10616, 10616, 10616, 10616, 10616, 10616, 10616,
++++     10616, 10616, 10616, 10616, 10616, 10624, 10632, 10640, 10648, 10648,
++++     10648, 10648, 10648, 10648, 10648, 10656, 10664, 10672, 10680, 10680,
++++     10680, 10680, 10680, 10680, 10680, 10680, 10680, 10680, 10680, 10680,
++++     10680, 10680, 10680, 10680, 10680, 10680, 10680},
++++    {10680, 10680, 10680, 10680, 10680, 10680, 10680, 10680, 10680, 10680,
++++     10680, 10680, 10680, 10680, 10680, 10680, 10680, 10680, 10680, 10680,
++++     10680, 10680, 10680, 10680, 10680, 10680, 10680, 10680, 10680, 10680,
++++     10680, 10680, 10680, 10680, 10680, 10680, 10680, 10680, 10680, 10680,
++++     10680, 10680, 10684, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688},
++++    {10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688, 10688,
++++     10688, 10688, 10688, 10688, 10688, 10688, 10689, 10693, 10697, 10701,
++++     10705, 10709, 10713, 10717, 10721, 10725, 10733, 10741, 10749, 10757,
++++     10765, 10773, 10781, 10789, 10797, 10805, 10813, 10825, 10837, 10849,
++++     10861, 10873, 10885, 10897, 10909, 10921, 10937, 10953, 10969, 10985,
++++     11001, 11017, 11033, 11049, 11065, 11081, 11097, 11105, 11113, 11121,
++++     11129, 11137, 11145, 11153, 11161, 11169, 11181, 11193, 11205, 11217,
++++     11229, 11241, 11253, 11265, 11277, 11289, 11301, 11313, 11325, 11337,
++++     11349, 11361, 11373, 11385, 11397, 11409, 11421, 11433, 11445, 11457,
++++     11469, 11481, 11493, 11505, 11517, 11529, 11541, 11553, 11565, 11577,
++++     11589, 11601, 11613, 11617, 11621, 11625, 11629, 11633, 11637, 11641,
++++     11645, 11649, 11653, 11657, 11661, 11665, 11669, 11673, 11677, 11681,
++++     11685, 11689, 11693, 11697, 11701, 11705, 11709, 11713, 11717, 11721,
++++     11725, 11729, 11733, 11737, 11741, 11745, 11749, 11753, 11757, 11761,
++++     11765, 11769, 11773, 11777, 11781, 11785, 11789, 11793, 11797, 11801,
++++     11805, 11809, 11813, 11817, 11821, 11824, 11824, 11824, 11824, 11824,
++++     11824, 11824, 11824, 11824, 11824, 11824, 11824, 11824, 11824, 11824,
++++     11824, 11824, 11824, 11824, 11824, 11824, 11824},
++++    {11824, 11824, 11824, 11824, 11824, 11824, 11824, 11824, 11824, 11824,
++++     11824, 11824, 11825, 11840, 11840, 11840, 11840, 11840, 11840, 11840,
++++     11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840,
++++     11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840,
++++     11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840,
++++     11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840,
++++     11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840,
++++     11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840,
++++     11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840,
++++     11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840,
++++     11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840, 11840,
++++     11840, 11840, 11840, 11840, 11840, 11840, 11841, 11853, 11861, 11872,
++++     11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872,
++++     11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872,
++++     11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872,
++++     11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872,
++++     11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872,
++++     11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872,
++++     11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872,
++++     11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872,
++++     11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872,
++++     11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872, 11872,
++++     11872, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880,
++++     11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880,
++++     11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880,
++++     11880, 11880, 11880, 11880, 11880, 11880, 11880},
++++    {11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880,
++++     11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880,
++++     11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880,
++++     11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880,
++++     11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880,
++++     11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880,
++++     11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880,
++++     11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880,
++++     11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880,
++++     11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880,
++++     11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880,
++++     11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880, 11880,
++++     11880, 11880, 11880, 11880, 11881, 11885, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888},
++++    {11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888, 11888,
++++     11888, 11889, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892},
++++    {11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892,
++++     11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11892, 11893,
++++     11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896,
++++     11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896,
++++     11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896,
++++     11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896,
++++     11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896,
++++     11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896,
++++     11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896,
++++     11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896, 11896,
++++     11896, 11896, 11896, 11897, 11900, 11900, 11900, 11900, 11900, 11900,
++++     11900, 11900, 11900, 11900, 11900, 11900, 11901},
++++    {11901, 11905, 11909, 11913, 11917, 11921, 11925, 11929, 11933, 11937,
++++     11941, 11945, 11949, 11953, 11957, 11961, 11965, 11969, 11973, 11977,
++++     11981, 11985, 11989, 11993, 11997, 12001, 12005, 12009, 12013, 12017,
++++     12021, 12025, 12029, 12033, 12037, 12041, 12045, 12049, 12053, 12057,
++++     12061, 12065, 12069, 12073, 12077, 12081, 12085, 12089, 12093, 12097,
++++     12101, 12105, 12109, 12113, 12117, 12121, 12125, 12129, 12133, 12137,
++++     12141, 12145, 12149, 12153, 12157, 12161, 12165, 12169, 12173, 12177,
++++     12181, 12185, 12189, 12193, 12197, 12201, 12205, 12209, 12213, 12217,
++++     12221, 12225, 12229, 12233, 12237, 12241, 12245, 12249, 12253, 12257,
++++     12261, 12265, 12269, 12273, 12277, 12281, 12285, 12289, 12293, 12297,
++++     12301, 12305, 12309, 12313, 12317, 12321, 12325, 12329, 12333, 12337,
++++     12341, 12345, 12349, 12353, 12357, 12361, 12365, 12369, 12373, 12377,
++++     12381, 12385, 12389, 12393, 12397, 12401, 12405, 12409, 12413, 12417,
++++     12421, 12425, 12429, 12433, 12437, 12441, 12445, 12449, 12453, 12457,
++++     12461, 12465, 12469, 12473, 12477, 12481, 12485, 12489, 12493, 12497,
++++     12501, 12505, 12509, 12513, 12517, 12521, 12525, 12529, 12533, 12537,
++++     12541, 12545, 12549, 12553, 12557, 12561, 12565, 12569, 12573, 12577,
++++     12581, 12585, 12589, 12593, 12597, 12601, 12605, 12609, 12613, 12617,
++++     12621, 12625, 12629, 12633, 12637, 12641, 12645, 12649, 12653, 12657,
++++     12661, 12665, 12669, 12673, 12677, 12681, 12685, 12689, 12693, 12697,
++++     12701, 12705, 12709, 12713, 12717, 12721, 12725, 12729, 12733, 12737,
++++     12741, 12745, 12749, 12753, 12756, 12756, 12756, 12756, 12756, 12756,
++++     12756, 12756, 12756, 12756, 12756, 12756, 12756, 12756, 12756, 12756,
++++     12756, 12756, 12756, 12756, 12756, 12756, 12756, 12756, 12756, 12756,
++++     12756, 12756, 12756, 12756, 12756, 12756, 12756, 12756, 12756, 12756,
++++     12756, 12756, 12756, 12756, 12756, 12756, 12757},
++++    {12757, 12760, 12760, 12760, 12760, 12760, 12760, 12760, 12760, 12760,
++++     12760, 12760, 12760, 12760, 12760, 12760, 12760, 12760, 12760, 12760,
++++     12760, 12760, 12760, 12760, 12760, 12760, 12760, 12760, 12760, 12760,
++++     12760, 12760, 12760, 12760, 12760, 12760, 12760, 12760, 12760, 12760,
++++     12760, 12760, 12760, 12760, 12760, 12760, 12760, 12760, 12760, 12760,
++++     12760, 12760, 12760, 12760, 12761, 12764, 12765, 12769, 12773, 12776,
++++     12776, 12776, 12776, 12776, 12776, 12776, 12776, 12776, 12776, 12776,
++++     12776, 12776, 12776, 12776, 12776, 12776, 12776, 12784, 12784, 12792,
++++     12792, 12800, 12800, 12808, 12808, 12816, 12816, 12824, 12824, 12832,
++++     12832, 12840, 12840, 12848, 12848, 12856, 12856, 12864, 12864, 12872,
++++     12872, 12872, 12880, 12880, 12888, 12888, 12896, 12896, 12896, 12896,
++++     12896, 12896, 12896, 12904, 12912, 12912, 12920, 12928, 12928, 12936,
++++     12944, 12944, 12952, 12960, 12960, 12968, 12976, 12976, 12976, 12976,
++++     12976, 12976, 12976, 12976, 12976, 12976, 12976, 12976, 12976, 12976,
++++     12976, 12976, 12976, 12976, 12976, 12976, 12976, 12976, 12976, 12984,
++++     12984, 12984, 12984, 12984, 12984, 12985, 12993, 13000, 13000, 13009,
++++     13016, 13016, 13016, 13016, 13016, 13016, 13016, 13016, 13016, 13016,
++++     13016, 13016, 13016, 13024, 13024, 13032, 13032, 13040, 13040, 13048,
++++     13048, 13056, 13056, 13064, 13064, 13072, 13072, 13080, 13080, 13088,
++++     13088, 13096, 13096, 13104, 13104, 13112, 13112, 13112, 13120, 13120,
++++     13128, 13128, 13136, 13136, 13136, 13136, 13136, 13136, 13136, 13144,
++++     13152, 13152, 13160, 13168, 13168, 13176, 13184, 13184, 13192, 13200,
++++     13200, 13208, 13216, 13216, 13216, 13216, 13216, 13216, 13216, 13216,
++++     13216, 13216, 13216, 13216, 13216, 13216, 13216, 13216, 13216, 13216,
++++     13216, 13216, 13216, 13216, 13216, 13224, 13224, 13224, 13232, 13240,
++++     13248, 13256, 13256, 13256, 13256, 13265, 13272},
++++    {13272, 13272, 13272, 13272, 13272, 13272, 13272, 13272, 13272, 13272,
++++     13272, 13272, 13272, 13272, 13272, 13272, 13272, 13272, 13272, 13272,
++++     13272, 13272, 13272, 13272, 13272, 13272, 13272, 13272, 13272, 13272,
++++     13272, 13272, 13272, 13272, 13272, 13272, 13272, 13272, 13272, 13272,
++++     13272, 13272, 13272, 13272, 13272, 13272, 13272, 13272, 13272, 13273,
++++     13277, 13281, 13285, 13289, 13293, 13297, 13301, 13305, 13309, 13313,
++++     13317, 13321, 13325, 13329, 13333, 13337, 13341, 13345, 13349, 13353,
++++     13357, 13361, 13365, 13369, 13373, 13377, 13381, 13385, 13389, 13393,
++++     13397, 13401, 13405, 13409, 13413, 13417, 13421, 13425, 13429, 13433,
++++     13437, 13441, 13445, 13449, 13453, 13457, 13461, 13465, 13469, 13473,
++++     13477, 13481, 13485, 13489, 13493, 13497, 13501, 13505, 13509, 13513,
++++     13517, 13521, 13525, 13529, 13533, 13537, 13541, 13545, 13549, 13553,
++++     13557, 13561, 13565, 13569, 13573, 13577, 13581, 13585, 13589, 13593,
++++     13597, 13601, 13605, 13609, 13613, 13617, 13621, 13625, 13629, 13633,
++++     13637, 13641, 13645, 13648, 13648, 13648, 13649, 13653, 13657, 13661,
++++     13665, 13669, 13673, 13677, 13681, 13685, 13689, 13693, 13697, 13701,
++++     13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704,
++++     13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704,
++++     13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704,
++++     13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704,
++++     13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704,
++++     13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704,
++++     13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704,
++++     13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704,
++++     13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704, 13704,
++++     13704, 13704, 13704, 13704, 13704, 13704, 13705},
++++    {13705, 13717, 13729, 13741, 13753, 13765, 13777, 13789, 13801, 13813,
++++     13825, 13837, 13849, 13861, 13873, 13889, 13905, 13921, 13937, 13953,
++++     13969, 13985, 14001, 14017, 14033, 14049, 14065, 14081, 14097, 14113,
++++     14141, 14164, 14165, 14177, 14189, 14201, 14213, 14225, 14237, 14249,
++++     14261, 14273, 14285, 14297, 14309, 14321, 14333, 14345, 14357, 14369,
++++     14381, 14393, 14405, 14417, 14429, 14441, 14453, 14465, 14477, 14489,
++++     14501, 14513, 14525, 14537, 14549, 14561, 14573, 14585, 14597, 14601,
++++     14605, 14609, 14612, 14612, 14612, 14612, 14612, 14612, 14612, 14612,
++++     14613, 14625, 14633, 14641, 14649, 14657, 14665, 14673, 14681, 14689,
++++     14697, 14705, 14713, 14721, 14729, 14737, 14745, 14749, 14753, 14757,
++++     14761, 14765, 14769, 14773, 14777, 14781, 14785, 14789, 14793, 14797,
++++     14801, 14809, 14817, 14825, 14833, 14841, 14849, 14857, 14865, 14873,
++++     14881, 14889, 14897, 14905, 14913, 14933, 14949, 14956, 14957, 14961,
++++     14965, 14969, 14973, 14977, 14981, 14985, 14989, 14993, 14997, 15001,
++++     15005, 15009, 15013, 15017, 15021, 15025, 15029, 15033, 15037, 15041,
++++     15045, 15049, 15053, 15057, 15061, 15065, 15069, 15073, 15077, 15081,
++++     15085, 15089, 15093, 15097, 15101, 15105, 15109, 15113, 15117, 15121,
++++     15125, 15129, 15133, 15137, 15141, 15145, 15149, 15153, 15161, 15169,
++++     15177, 15185, 15193, 15201, 15209, 15217, 15225, 15233, 15241, 15249,
++++     15257, 15265, 15273, 15281, 15289, 15297, 15305, 15313, 15321, 15329,
++++     15337, 15345, 15357, 15369, 15381, 15389, 15401, 15409, 15421, 15425,
++++     15429, 15433, 15437, 15441, 15445, 15449, 15453, 15457, 15461, 15465,
++++     15469, 15473, 15477, 15481, 15485, 15489, 15493, 15497, 15501, 15505,
++++     15509, 15513, 15517, 15521, 15525, 15529, 15533, 15537, 15541, 15545,
++++     15549, 15553, 15557, 15561, 15565, 15569, 15573, 15577, 15581, 15585,
++++     15589, 15593, 15597, 15601, 15605, 15609, 15617},
++++    {15617, 15637, 15653, 15673, 15685, 15705, 15717, 15729, 15753, 15769,
++++     15781, 15793, 15805, 15821, 15837, 15853, 15869, 15885, 15901, 15917,
++++     15941, 15949, 15973, 15997, 16017, 16033, 16057, 16081, 16097, 16109,
++++     16121, 16137, 16153, 16173, 16193, 16205, 16217, 16233, 16245, 16257,
++++     16265, 16273, 16285, 16297, 16321, 16337, 16357, 16381, 16397, 16409,
++++     16421, 16445, 16461, 16485, 16497, 16517, 16529, 16545, 16557, 16573,
++++     16593, 16609, 16629, 16645, 16653, 16673, 16685, 16697, 16713, 16725,
++++     16737, 16749, 16769, 16785, 16793, 16817, 16829, 16849, 16865, 16881,
++++     16893, 16905, 16921, 16929, 16945, 16965, 16973, 16997, 17009, 17017,
++++     17025, 17033, 17041, 17049, 17057, 17065, 17073, 17081, 17089, 17101,
++++     17113, 17125, 17137, 17149, 17161, 17173, 17185, 17197, 17209, 17221,
++++     17233, 17245, 17257, 17269, 17281, 17289, 17297, 17309, 17317, 17325,
++++     17333, 17345, 17357, 17365, 17373, 17381, 17389, 17397, 17413, 17421,
++++     17429, 17437, 17445, 17453, 17461, 17469, 17477, 17489, 17505, 17513,
++++     17521, 17529, 17537, 17545, 17553, 17561, 17573, 17585, 17597, 17609,
++++     17617, 17625, 17633, 17641, 17649, 17657, 17665, 17673, 17681, 17689,
++++     17701, 17713, 17721, 17733, 17745, 17757, 17765, 17777, 17789, 17805,
++++     17813, 17825, 17837, 17849, 17861, 17881, 17905, 17913, 17921, 17929,
++++     17937, 17945, 17953, 17961, 17969, 17977, 17985, 17993, 18001, 18009,
++++     18017, 18025, 18033, 18041, 18049, 18065, 18073, 18081, 18089, 18105,
++++     18117, 18125, 18133, 18141, 18149, 18157, 18165, 18173, 18181, 18189,
++++     18197, 18209, 18217, 18225, 18237, 18249, 18257, 18273, 18285, 18293,
++++     18301, 18309, 18317, 18329, 18341, 18349, 18357, 18365, 18373, 18381,
++++     18389, 18397, 18405, 18413, 18425, 18437, 18449, 18461, 18473, 18485,
++++     18497, 18509, 18521, 18533, 18545, 18557, 18569, 18581, 18593, 18605,
++++     18617, 18629, 18641, 18653, 18665, 18677, 18688},
++++    {18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688,
++++     18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688,
++++     18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688,
++++     18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688,
++++     18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688,
++++     18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688,
++++     18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688,
++++     18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688,
++++     18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688,
++++     18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688,
++++     18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688,
++++     18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688,
++++     18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688,
++++     18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688,
++++     18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688, 18688,
++++     18688, 18688, 18688, 18688, 18688, 18688, 18689, 18693, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696},
++++    {18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696, 18696,
++++     18696, 18696, 18697, 18700, 18700, 18700, 18700, 18700, 18700, 18700,
++++     18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700,
++++     18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700,
++++     18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700,
++++     18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700,
++++     18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700,
++++     18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700,
++++     18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700,
++++     18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700,
++++     18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700,
++++     18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700,
++++     18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700,
++++     18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700, 18700,
++++     18700, 18700, 18701, 18705, 18709, 18712, 18712, 18712, 18713, 18717,
++++     18720, 18720, 18720, 18720, 18720, 18720, 18720},
++++    {18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720,
++++     18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720,
++++     18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720,
++++     18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720,
++++     18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720,
++++     18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720,
++++     18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720,
++++     18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720,
++++     18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720, 18720,
++++     18720, 18720, 18721, 18725, 18729, 18733, 18736, 18736, 18736, 18736,
++++     18736, 18736, 18736, 18736, 18736, 18737, 18740, 18740, 18740, 18740,
++++     18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740,
++++     18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740,
++++     18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740,
++++     18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740,
++++     18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740,
++++     18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740,
++++     18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740,
++++     18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740,
++++     18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740,
++++     18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740,
++++     18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740,
++++     18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740,
++++     18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740,
++++     18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740, 18740,
++++     18740, 18740, 18740, 18740, 18740, 18740, 18740},
++++    {18740, 18744, 18748, 18752, 18756, 18760, 18764, 18768, 18772, 18776,
++++     18780, 18784, 18788, 18792, 18796, 18800, 18804, 18808, 18812, 18816,
++++     18820, 18824, 18828, 18832, 18836, 18840, 18844, 18848, 18852, 18856,
++++     18860, 18864, 18868, 18872, 18876, 18880, 18884, 18888, 18892, 18896,
++++     18900, 18904, 18908, 18912, 18916, 18920, 18924, 18928, 18932, 18936,
++++     18940, 18944, 18948, 18952, 18956, 18960, 18964, 18968, 18972, 18976,
++++     18980, 18984, 18988, 18992, 18996, 19000, 19004, 19008, 19012, 19016,
++++     19020, 19024, 19028, 19032, 19036, 19040, 19044, 19048, 19052, 19056,
++++     19060, 19064, 19068, 19072, 19076, 19080, 19084, 19088, 19092, 19096,
++++     19100, 19104, 19108, 19112, 19116, 19120, 19124, 19128, 19132, 19136,
++++     19140, 19144, 19148, 19152, 19156, 19160, 19164, 19168, 19172, 19176,
++++     19180, 19184, 19188, 19192, 19196, 19200, 19204, 19208, 19212, 19216,
++++     19220, 19224, 19228, 19232, 19236, 19240, 19244, 19248, 19252, 19256,
++++     19260, 19264, 19268, 19272, 19276, 19280, 19284, 19288, 19292, 19296,
++++     19300, 19304, 19308, 19312, 19316, 19320, 19324, 19328, 19332, 19336,
++++     19340, 19344, 19348, 19352, 19356, 19360, 19364, 19368, 19372, 19376,
++++     19380, 19384, 19388, 19392, 19396, 19400, 19404, 19408, 19412, 19416,
++++     19420, 19424, 19428, 19432, 19436, 19440, 19444, 19448, 19452, 19456,
++++     19460, 19464, 19468, 19472, 19476, 19480, 19484, 19488, 19492, 19496,
++++     19500, 19504, 19508, 19512, 19516, 19520, 19524, 19528, 19532, 19536,
++++     19540, 19544, 19548, 19552, 19556, 19560, 19564, 19568, 19572, 19576,
++++     19580, 19584, 19588, 19592, 19596, 19600, 19604, 19608, 19612, 19616,
++++     19620, 19624, 19628, 19632, 19636, 19640, 19644, 19648, 19652, 19656,
++++     19660, 19664, 19668, 19672, 19676, 19680, 19684, 19688, 19692, 19696,
++++     19700, 19704, 19708, 19712, 19716, 19720, 19724, 19728, 19732, 19736,
++++     19740, 19744, 19748, 19752, 19756, 19760, 19764},
++++    {19764, 19768, 19772, 19776, 19780, 19784, 19788, 19792, 19796, 19800,
++++     19804, 19808, 19812, 19816, 19820, 19820, 19820, 19824, 19824, 19828,
++++     19828, 19828, 19832, 19836, 19840, 19844, 19848, 19852, 19856, 19860,
++++     19864, 19868, 19868, 19872, 19872, 19876, 19876, 19876, 19880, 19884,
++++     19884, 19884, 19884, 19888, 19892, 19896, 19900, 19904, 19908, 19912,
++++     19916, 19920, 19924, 19928, 19932, 19936, 19940, 19944, 19948, 19952,
++++     19956, 19960, 19964, 19968, 19972, 19976, 19980, 19984, 19988, 19992,
++++     19996, 20000, 20004, 20008, 20012, 20016, 20020, 20024, 20028, 20032,
++++     20036, 20040, 20044, 20048, 20052, 20056, 20060, 20064, 20068, 20072,
++++     20076, 20080, 20084, 20088, 20092, 20096, 20100, 20104, 20108, 20112,
++++     20116, 20120, 20124, 20128, 20132, 20136, 20140, 20144, 20148, 20152,
++++     20156, 20156, 20156, 20160, 20164, 20168, 20172, 20176, 20180, 20184,
++++     20188, 20192, 20196, 20200, 20204, 20208, 20212, 20216, 20220, 20224,
++++     20228, 20232, 20236, 20240, 20244, 20248, 20252, 20256, 20260, 20264,
++++     20268, 20272, 20276, 20280, 20284, 20288, 20292, 20296, 20300, 20304,
++++     20308, 20312, 20316, 20320, 20324, 20328, 20332, 20336, 20340, 20344,
++++     20348, 20352, 20356, 20360, 20364, 20368, 20372, 20376, 20380, 20384,
++++     20388, 20392, 20396, 20400, 20404, 20408, 20412, 20416, 20420, 20424,
++++     20428, 20432, 20436, 20440, 20444, 20448, 20452, 20456, 20460, 20464,
++++     20468, 20472, 20476, 20480, 20484, 20488, 20492, 20496, 20500, 20504,
++++     20508, 20512, 20516, 20520, 20524, 20528, 20532, 20536, 20540, 20544,
++++     20548, 20552, 20556, 20560, 20564, 20568, 20572, 20576, 20580, 20580,
++++     20580, 20580, 20580, 20580, 20580, 20580, 20580, 20580, 20580, 20580,
++++     20580, 20580, 20580, 20580, 20580, 20580, 20580, 20580, 20580, 20580,
++++     20580, 20580, 20580, 20580, 20580, 20580, 20580, 20580, 20580, 20580,
++++     20580, 20580, 20580, 20580, 20580, 20580, 20581},
++++    {20581, 20589, 20597, 20605, 20617, 20629, 20637, 20644, 20644, 20644,
++++     20644, 20644, 20644, 20644, 20644, 20644, 20644, 20644, 20644, 20645,
++++     20653, 20661, 20669, 20677, 20684, 20684, 20684, 20684, 20684, 20684,
++++     20692, 20692, 20701, 20705, 20709, 20713, 20717, 20721, 20725, 20729,
++++     20733, 20737, 20740, 20748, 20756, 20768, 20780, 20788, 20796, 20804,
++++     20812, 20820, 20828, 20836, 20844, 20852, 20852, 20860, 20868, 20876,
++++     20884, 20892, 20892, 20900, 20900, 20908, 20916, 20916, 20924, 20932,
++++     20932, 20940, 20948, 20956, 20964, 20972, 20980, 20988, 20996, 21005,
++++     21013, 21017, 21021, 21025, 21029, 21033, 21037, 21041, 21045, 21049,
++++     21053, 21057, 21061, 21065, 21069, 21073, 21077, 21081, 21085, 21089,
++++     21093, 21097, 21101, 21105, 21109, 21113, 21117, 21121, 21125, 21129,
++++     21133, 21137, 21141, 21145, 21149, 21153, 21157, 21161, 21165, 21169,
++++     21173, 21177, 21181, 21185, 21189, 21193, 21197, 21201, 21205, 21209,
++++     21213, 21217, 21221, 21225, 21229, 21233, 21237, 21241, 21245, 21249,
++++     21253, 21257, 21261, 21265, 21269, 21273, 21277, 21281, 21285, 21289,
++++     21293, 21297, 21301, 21305, 21309, 21313, 21317, 21321, 21325, 21329,
++++     21333, 21337, 21341, 21345, 21349, 21357, 21365, 21369, 21373, 21377,
++++     21381, 21385, 21389, 21393, 21397, 21401, 21405, 21413, 21420, 21420,
++++     21420, 21420, 21420, 21420, 21420, 21420, 21420, 21420, 21420, 21420,
++++     21420, 21420, 21420, 21420, 21420, 21420, 21420, 21420, 21420, 21420,
++++     21420, 21420, 21420, 21420, 21420, 21420, 21420, 21420, 21420, 21420,
++++     21420, 21421, 21425, 21429, 21433, 21437, 21441, 21445, 21449, 21453,
++++     21457, 21461, 21469, 21473, 21477, 21481, 21485, 21489, 21493, 21497,
++++     21501, 21505, 21509, 21513, 21517, 21529, 21541, 21553, 21565, 21577,
++++     21589, 21601, 21613, 21625, 21637, 21649, 21661, 21673, 21685, 21697,
++++     21709, 21721, 21733, 21737, 21741, 21745, 21749},
++++    {21749, 21761, 21773, 21785, 21797, 21809, 21817, 21825, 21833, 21841,
++++     21849, 21857, 21865, 21873, 21881, 21889, 21897, 21905, 21913, 21921,
++++     21929, 21937, 21945, 21953, 21961, 21969, 21977, 21985, 21993, 22001,
++++     22009, 22017, 22025, 22033, 22041, 22049, 22057, 22065, 22073, 22081,
++++     22089, 22097, 22105, 22113, 22121, 22129, 22137, 22145, 22153, 22161,
++++     22169, 22177, 22185, 22193, 22201, 22209, 22217, 22225, 22233, 22241,
++++     22249, 22257, 22265, 22273, 22281, 22289, 22297, 22305, 22313, 22321,
++++     22329, 22337, 22345, 22353, 22361, 22369, 22377, 22385, 22393, 22401,
++++     22409, 22417, 22425, 22433, 22441, 22449, 22457, 22465, 22473, 22481,
++++     22489, 22497, 22505, 22513, 22521, 22533, 22545, 22557, 22569, 22581,
++++     22593, 22605, 22617, 22629, 22641, 22653, 22665, 22673, 22681, 22689,
++++     22697, 22705, 22713, 22721, 22729, 22737, 22745, 22753, 22761, 22769,
++++     22777, 22785, 22793, 22801, 22809, 22817, 22825, 22833, 22841, 22849,
++++     22857, 22865, 22873, 22881, 22889, 22897, 22905, 22913, 22921, 22929,
++++     22937, 22945, 22953, 22961, 22969, 22977, 22985, 22993, 23001, 23009,
++++     23017, 23025, 23037, 23049, 23061, 23073, 23085, 23093, 23101, 23109,
++++     23117, 23125, 23133, 23141, 23149, 23157, 23165, 23173, 23181, 23189,
++++     23197, 23205, 23213, 23221, 23229, 23237, 23245, 23253, 23261, 23269,
++++     23277, 23285, 23293, 23301, 23309, 23317, 23325, 23333, 23341, 23349,
++++     23357, 23365, 23373, 23381, 23389, 23397, 23405, 23413, 23421, 23429,
++++     23437, 23445, 23453, 23461, 23469, 23477, 23485, 23493, 23501, 23509,
++++     23517, 23525, 23533, 23541, 23549, 23557, 23565, 23573, 23581, 23589,
++++     23597, 23605, 23613, 23621, 23633, 23645, 23653, 23661, 23669, 23677,
++++     23685, 23693, 23701, 23709, 23717, 23725, 23733, 23741, 23749, 23757,
++++     23765, 23773, 23781, 23793, 23805, 23817, 23825, 23833, 23841, 23849,
++++     23857, 23865, 23873, 23881, 23889, 23897, 23905},
++++    {23905, 23913, 23921, 23929, 23937, 23945, 23953, 23961, 23969, 23977,
++++     23985, 23993, 24001, 24009, 24017, 24025, 24033, 24041, 24049, 24057,
++++     24065, 24073, 24081, 24089, 24097, 24105, 24113, 24121, 24129, 24137,
++++     24145, 24153, 24161, 24169, 24177, 24185, 24193, 24201, 24209, 24217,
++++     24225, 24233, 24241, 24249, 24257, 24265, 24273, 24281, 24289, 24297,
++++     24305, 24313, 24321, 24329, 24337, 24345, 24353, 24361, 24369, 24377,
++++     24385, 24393, 24400, 24400, 24400, 24400, 24400, 24400, 24400, 24400,
++++     24400, 24400, 24400, 24400, 24400, 24400, 24400, 24400, 24400, 24400,
++++     24401, 24413, 24425, 24437, 24449, 24461, 24473, 24485, 24497, 24509,
++++     24521, 24533, 24545, 24557, 24569, 24581, 24593, 24605, 24617, 24629,
++++     24641, 24653, 24665, 24677, 24689, 24701, 24713, 24725, 24737, 24749,
++++     24761, 24773, 24785, 24797, 24809, 24821, 24833, 24845, 24857, 24869,
++++     24881, 24893, 24905, 24917, 24929, 24941, 24953, 24965, 24977, 24989,
++++     25001, 25013, 25025, 25037, 25049, 25061, 25073, 25085, 25097, 25109,
++++     25121, 25133, 25145, 25157, 25168, 25168, 25169, 25181, 25193, 25205,
++++     25217, 25229, 25241, 25253, 25265, 25277, 25289, 25301, 25313, 25325,
++++     25337, 25349, 25361, 25373, 25385, 25397, 25409, 25421, 25433, 25445,
++++     25457, 25469, 25481, 25493, 25505, 25517, 25529, 25541, 25553, 25565,
++++     25577, 25589, 25601, 25613, 25625, 25637, 25649, 25661, 25673, 25685,
++++     25697, 25709, 25721, 25733, 25745, 25757, 25769, 25781, 25793, 25805,
++++     25816, 25816, 25816, 25816, 25816, 25816, 25816, 25816, 25816, 25816,
++++     25816, 25816, 25816, 25816, 25816, 25816, 25816, 25816, 25816, 25816,
++++     25816, 25816, 25816, 25816, 25816, 25816, 25816, 25816, 25816, 25816,
++++     25816, 25816, 25816, 25816, 25816, 25816, 25816, 25816, 25816, 25816,
++++     25817, 25829, 25841, 25857, 25873, 25889, 25905, 25921, 25937, 25953,
++++     25965, 26037, 26069, 26084, 26084, 26084, 26084},
++++    {26084, 26084, 26084, 26084, 26084, 26084, 26084, 26084, 26084, 26084,
++++     26084, 26084, 26084, 26084, 26084, 26084, 26085, 26089, 26093, 26097,
++++     26101, 26105, 26109, 26113, 26117, 26121, 26132, 26132, 26132, 26132,
++++     26132, 26132, 26132, 26132, 26132, 26132, 26132, 26132, 26132, 26132,
++++     26132, 26132, 26132, 26132, 26132, 26132, 26132, 26132, 26133, 26141,
++++     26145, 26149, 26153, 26157, 26161, 26165, 26169, 26173, 26177, 26181,
++++     26185, 26189, 26193, 26197, 26201, 26205, 26209, 26213, 26217, 26220,
++++     26220, 26221, 26225, 26229, 26237, 26245, 26253, 26261, 26265, 26269,
++++     26273, 26277, 26281, 26284, 26285, 26289, 26293, 26297, 26301, 26305,
++++     26309, 26313, 26317, 26321, 26325, 26329, 26333, 26337, 26341, 26345,
++++     26349, 26353, 26357, 26360, 26361, 26365, 26369, 26373, 26376, 26376,
++++     26376, 26376, 26377, 26385, 26393, 26400, 26401, 26408, 26409, 26417,
++++     26425, 26433, 26441, 26449, 26457, 26465, 26473, 26481, 26489, 26493,
++++     26501, 26509, 26517, 26525, 26533, 26541, 26549, 26557, 26565, 26573,
++++     26581, 26589, 26593, 26597, 26601, 26605, 26609, 26613, 26617, 26621,
++++     26625, 26629, 26633, 26637, 26641, 26645, 26649, 26653, 26657, 26661,
++++     26665, 26669, 26673, 26677, 26681, 26685, 26689, 26693, 26697, 26701,
++++     26705, 26709, 26713, 26717, 26721, 26725, 26729, 26733, 26737, 26741,
++++     26745, 26749, 26753, 26757, 26761, 26765, 26769, 26773, 26777, 26781,
++++     26785, 26789, 26793, 26797, 26801, 26805, 26809, 26813, 26817, 26821,
++++     26825, 26829, 26833, 26837, 26841, 26845, 26849, 26853, 26857, 26861,
++++     26865, 26869, 26873, 26877, 26881, 26885, 26889, 26893, 26897, 26901,
++++     26905, 26909, 26913, 26917, 26921, 26925, 26929, 26933, 26937, 26941,
++++     26945, 26949, 26953, 26957, 26961, 26965, 26969, 26973, 26977, 26981,
++++     26985, 26989, 26993, 26997, 27001, 27005, 27017, 27029, 27041, 27053,
++++     27065, 27077, 27085, 27092, 27092, 27092, 27092},
++++    {27092, 27093, 27097, 27101, 27105, 27109, 27113, 27117, 27121, 27125,
++++     27129, 27133, 27137, 27141, 27145, 27149, 27153, 27157, 27161, 27165,
++++     27169, 27173, 27177, 27181, 27185, 27189, 27193, 27197, 27201, 27205,
++++     27209, 27213, 27217, 27221, 27225, 27229, 27233, 27237, 27241, 27245,
++++     27249, 27253, 27257, 27261, 27265, 27269, 27273, 27277, 27281, 27285,
++++     27289, 27293, 27297, 27301, 27305, 27309, 27313, 27317, 27321, 27325,
++++     27329, 27333, 27337, 27341, 27345, 27349, 27353, 27357, 27361, 27365,
++++     27369, 27373, 27377, 27381, 27385, 27389, 27393, 27397, 27401, 27405,
++++     27409, 27413, 27417, 27421, 27425, 27429, 27433, 27437, 27441, 27445,
++++     27449, 27453, 27457, 27461, 27465, 27469, 27473, 27477, 27481, 27485,
++++     27489, 27493, 27497, 27501, 27505, 27509, 27513, 27517, 27521, 27525,
++++     27529, 27533, 27537, 27541, 27545, 27549, 27553, 27557, 27561, 27565,
++++     27569, 27573, 27577, 27581, 27585, 27589, 27593, 27597, 27601, 27605,
++++     27609, 27613, 27617, 27621, 27625, 27629, 27633, 27637, 27641, 27645,
++++     27649, 27653, 27657, 27661, 27665, 27669, 27673, 27677, 27681, 27685,
++++     27689, 27693, 27697, 27701, 27705, 27709, 27713, 27717, 27721, 27725,
++++     27729, 27733, 27737, 27741, 27745, 27749, 27753, 27757, 27761, 27765,
++++     27769, 27773, 27777, 27781, 27785, 27789, 27793, 27797, 27801, 27805,
++++     27809, 27813, 27817, 27821, 27825, 27829, 27833, 27837, 27841, 27845,
++++     27849, 27852, 27852, 27852, 27853, 27857, 27861, 27865, 27869, 27873,
++++     27876, 27876, 27877, 27881, 27885, 27889, 27893, 27897, 27900, 27900,
++++     27901, 27905, 27909, 27913, 27917, 27921, 27924, 27924, 27925, 27929,
++++     27933, 27936, 27936, 27936, 27937, 27941, 27945, 27949, 27957, 27961,
++++     27965, 27968, 27969, 27973, 27977, 27981, 27985, 27989, 27993, 27996,
++++     27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996,
++++     27996, 27996, 27996, 27996, 27996, 27996, 27996},
++++    {27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996,
++++     27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996,
++++     27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996,
++++     27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996,
++++     27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996,
++++     27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996,
++++     27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996,
++++     27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996,
++++     27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996,
++++     27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996,
++++     27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996,
++++     27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996,
++++     27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27996, 27997,
++++     28001, 28005, 28009, 28013, 28016, 28017, 28021, 28025, 28029, 28033,
++++     28037, 28041, 28045, 28049, 28053, 28057, 28061, 28065, 28069, 28073,
++++     28077, 28081, 28085, 28089, 28093, 28097, 28101, 28105, 28109, 28113,
++++     28117, 28121, 28125, 28129, 28133, 28137, 28141, 28145, 28149, 28153,
++++     28157, 28161, 28165, 28169, 28173, 28177, 28181, 28184, 28185, 28189,
++++     28193, 28197, 28201, 28205, 28209, 28213, 28217, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220},
++++    {28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220, 28220,
++++     28220, 28220, 28220, 28220, 28220, 28228, 28228, 28236, 28236, 28236,
++++     28236, 28236, 28236, 28236, 28236, 28236, 28236, 28236, 28236, 28236,
++++     28236, 28236, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244,
++++     28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244,
++++     28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244,
++++     28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244,
++++     28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244,
++++     28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244,
++++     28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244,
++++     28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244,
++++     28244, 28244, 28244, 28244, 28244, 28244, 28244},
++++    {28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244,
++++     28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244,
++++     28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244,
++++     28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244, 28244,
++++     28244, 28244, 28244, 28244, 28244, 28244, 28244, 28252, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260},
++++    {28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260, 28260,
++++     28260, 28260, 28260, 28260, 28260, 28260, 28268, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276},
++++    {28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276,
++++     28276, 28276, 28276, 28276, 28276, 28276, 28276, 28276, 28284, 28292,
++++     28292, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300},
++++    {28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300, 28300,
++++     28300, 28300, 28300, 28300, 28300, 28300, 28300, 28308, 28316, 28316,
++++     28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316,
++++     28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316,
++++     28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316,
++++     28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316,
++++     28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316,
++++     28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316,
++++     28316, 28316, 28316, 28316, 28316, 28316, 28316},
++++    {28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316,
++++     28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316,
++++     28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316,
++++     28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316,
++++     28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316, 28316,
++++     28316, 28316, 28316, 28316, 28316, 28316, 28316, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324},
++++    {28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324, 28324,
++++     28324, 28324, 28324, 28324, 28324, 28332, 28340, 28352, 28364, 28376,
++++     28388, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400,
++++     28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400,
++++     28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400,
++++     28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400,
++++     28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400,
++++     28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400,
++++     28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400,
++++     28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400,
++++     28400, 28400, 28400, 28400, 28400, 28400, 28400, 28400, 28408, 28416,
++++     28428, 28440, 28452, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464},
++++    {28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464, 28464,
++++     28464, 28464, 28464, 28464, 28464, 28464, 28465},
++++    {28465, 28469, 28473, 28477, 28481, 28485, 28489, 28493, 28497, 28501,
++++     28505, 28509, 28513, 28517, 28521, 28525, 28529, 28533, 28537, 28541,
++++     28545, 28549, 28553, 28557, 28561, 28565, 28569, 28573, 28577, 28581,
++++     28585, 28589, 28593, 28597, 28601, 28605, 28609, 28613, 28617, 28621,
++++     28625, 28629, 28633, 28637, 28641, 28645, 28649, 28653, 28657, 28661,
++++     28665, 28669, 28673, 28677, 28681, 28685, 28689, 28693, 28697, 28701,
++++     28705, 28709, 28713, 28717, 28721, 28725, 28729, 28733, 28737, 28741,
++++     28745, 28749, 28753, 28757, 28761, 28765, 28769, 28773, 28777, 28781,
++++     28785, 28789, 28793, 28797, 28801, 28804, 28805, 28809, 28813, 28817,
++++     28821, 28825, 28829, 28833, 28837, 28841, 28845, 28849, 28853, 28857,
++++     28861, 28865, 28869, 28873, 28877, 28881, 28885, 28889, 28893, 28897,
++++     28901, 28905, 28909, 28913, 28917, 28921, 28925, 28929, 28933, 28937,
++++     28941, 28945, 28949, 28953, 28957, 28961, 28965, 28969, 28973, 28977,
++++     28981, 28985, 28989, 28993, 28997, 29001, 29005, 29009, 29013, 29017,
++++     29021, 29025, 29029, 29033, 29037, 29041, 29045, 29049, 29053, 29057,
++++     29061, 29065, 29069, 29073, 29077, 29081, 29085, 29088, 29089, 29093,
++++     29096, 29096, 29097, 29100, 29100, 29101, 29105, 29108, 29108, 29109,
++++     29113, 29117, 29121, 29124, 29125, 29129, 29133, 29137, 29141, 29145,
++++     29149, 29153, 29157, 29161, 29165, 29169, 29172, 29173, 29176, 29177,
++++     29181, 29185, 29189, 29193, 29197, 29201, 29204, 29205, 29209, 29213,
++++     29217, 29221, 29225, 29229, 29233, 29237, 29241, 29245, 29249, 29253,
++++     29257, 29261, 29265, 29269, 29273, 29277, 29281, 29285, 29289, 29293,
++++     29297, 29301, 29305, 29309, 29313, 29317, 29321, 29325, 29329, 29333,
++++     29337, 29341, 29345, 29349, 29353, 29357, 29361, 29365, 29369, 29373,
++++     29377, 29381, 29385, 29389, 29393, 29397, 29401, 29405, 29409, 29413,
++++     29417, 29421, 29425, 29429, 29433, 29437, 29441},
++++    {29441, 29445, 29449, 29453, 29457, 29461, 29464, 29465, 29469, 29473,
++++     29477, 29480, 29480, 29481, 29485, 29489, 29493, 29497, 29501, 29505,
++++     29509, 29512, 29513, 29517, 29521, 29525, 29529, 29533, 29537, 29540,
++++     29541, 29545, 29549, 29553, 29557, 29561, 29565, 29569, 29573, 29577,
++++     29581, 29585, 29589, 29593, 29597, 29601, 29605, 29609, 29613, 29617,
++++     29621, 29625, 29629, 29633, 29637, 29641, 29645, 29649, 29652, 29653,
++++     29657, 29661, 29665, 29668, 29669, 29673, 29677, 29681, 29685, 29688,
++++     29689, 29692, 29692, 29692, 29693, 29697, 29701, 29705, 29709, 29713,
++++     29717, 29720, 29721, 29725, 29729, 29733, 29737, 29741, 29745, 29749,
++++     29753, 29757, 29761, 29765, 29769, 29773, 29777, 29781, 29785, 29789,
++++     29793, 29797, 29801, 29805, 29809, 29813, 29817, 29821, 29825, 29829,
++++     29833, 29837, 29841, 29845, 29849, 29853, 29857, 29861, 29865, 29869,
++++     29873, 29877, 29881, 29885, 29889, 29893, 29897, 29901, 29905, 29909,
++++     29913, 29917, 29921, 29925, 29929, 29933, 29937, 29941, 29945, 29949,
++++     29953, 29957, 29961, 29965, 29969, 29973, 29977, 29981, 29985, 29989,
++++     29993, 29997, 30001, 30005, 30009, 30013, 30017, 30021, 30025, 30029,
++++     30033, 30037, 30041, 30045, 30049, 30053, 30057, 30061, 30065, 30069,
++++     30073, 30077, 30081, 30085, 30089, 30093, 30097, 30101, 30105, 30109,
++++     30113, 30117, 30121, 30125, 30129, 30133, 30137, 30141, 30145, 30149,
++++     30153, 30157, 30161, 30165, 30169, 30173, 30177, 30181, 30185, 30189,
++++     30193, 30197, 30201, 30205, 30209, 30213, 30217, 30221, 30225, 30229,
++++     30233, 30237, 30241, 30245, 30249, 30253, 30257, 30261, 30265, 30269,
++++     30273, 30277, 30281, 30285, 30289, 30293, 30297, 30301, 30305, 30309,
++++     30313, 30317, 30321, 30325, 30329, 30333, 30337, 30341, 30345, 30349,
++++     30353, 30357, 30361, 30365, 30369, 30373, 30377, 30381, 30385, 30389,
++++     30393, 30397, 30401, 30405, 30409, 30413, 30417},
++++    {30417, 30421, 30425, 30429, 30433, 30437, 30441, 30445, 30449, 30453,
++++     30457, 30461, 30465, 30469, 30473, 30477, 30481, 30485, 30489, 30493,
++++     30497, 30501, 30505, 30509, 30513, 30517, 30521, 30525, 30529, 30533,
++++     30537, 30541, 30545, 30549, 30553, 30557, 30561, 30565, 30569, 30573,
++++     30577, 30581, 30585, 30589, 30593, 30597, 30601, 30605, 30609, 30613,
++++     30617, 30621, 30625, 30629, 30633, 30637, 30641, 30645, 30649, 30653,
++++     30657, 30661, 30665, 30669, 30673, 30677, 30681, 30685, 30689, 30693,
++++     30697, 30701, 30705, 30709, 30713, 30717, 30721, 30725, 30729, 30733,
++++     30737, 30741, 30745, 30749, 30753, 30757, 30761, 30765, 30769, 30773,
++++     30777, 30781, 30785, 30789, 30793, 30797, 30801, 30805, 30809, 30813,
++++     30817, 30821, 30825, 30829, 30833, 30837, 30841, 30845, 30849, 30853,
++++     30857, 30861, 30865, 30869, 30873, 30877, 30881, 30885, 30889, 30893,
++++     30897, 30901, 30905, 30909, 30913, 30917, 30921, 30925, 30929, 30933,
++++     30937, 30941, 30945, 30949, 30953, 30957, 30961, 30965, 30969, 30973,
++++     30977, 30981, 30985, 30989, 30993, 30997, 31001, 31005, 31009, 31013,
++++     31017, 31021, 31025, 31029, 31033, 31037, 31041, 31045, 31049, 31053,
++++     31057, 31061, 31065, 31069, 31073, 31077, 31080, 31080, 31081, 31085,
++++     31089, 31093, 31097, 31101, 31105, 31109, 31113, 31117, 31121, 31125,
++++     31129, 31133, 31137, 31141, 31145, 31149, 31153, 31157, 31161, 31165,
++++     31169, 31173, 31177, 31181, 31185, 31189, 31193, 31197, 31201, 31205,
++++     31209, 31213, 31217, 31221, 31225, 31229, 31233, 31237, 31241, 31245,
++++     31249, 31253, 31257, 31261, 31265, 31269, 31273, 31277, 31281, 31285,
++++     31289, 31293, 31297, 31301, 31305, 31309, 31313, 31317, 31321, 31325,
++++     31329, 31333, 31337, 31341, 31345, 31349, 31353, 31357, 31361, 31365,
++++     31369, 31373, 31377, 31381, 31385, 31389, 31393, 31397, 31401, 31405,
++++     31409, 31413, 31417, 31421, 31425, 31429, 31433},
++++    {31433, 31437, 31441, 31445, 31449, 31453, 31457, 31461, 31465, 31469,
++++     31473, 31477, 31481, 31485, 31489, 31493, 31497, 31501, 31505, 31509,
++++     31513, 31517, 31521, 31525, 31529, 31533, 31537, 31541, 31545, 31549,
++++     31553, 31557, 31561, 31565, 31569, 31573, 31577, 31581, 31585, 31589,
++++     31593, 31597, 31601, 31605, 31609, 31613, 31617, 31621, 31625, 31629,
++++     31633, 31637, 31641, 31645, 31649, 31653, 31657, 31661, 31665, 31669,
++++     31673, 31677, 31681, 31685, 31689, 31693, 31697, 31701, 31705, 31709,
++++     31713, 31717, 31721, 31725, 31729, 31733, 31737, 31741, 31745, 31749,
++++     31753, 31757, 31761, 31765, 31769, 31773, 31777, 31781, 31785, 31789,
++++     31793, 31797, 31801, 31805, 31809, 31813, 31817, 31821, 31825, 31829,
++++     31833, 31837, 31841, 31845, 31849, 31853, 31857, 31861, 31865, 31869,
++++     31873, 31877, 31881, 31885, 31889, 31893, 31897, 31901, 31905, 31909,
++++     31913, 31917, 31921, 31925, 31929, 31933, 31937, 31941, 31945, 31949,
++++     31953, 31957, 31961, 31965, 31969, 31973, 31977, 31981, 31985, 31989,
++++     31993, 31997, 32001, 32005, 32009, 32013, 32017, 32021, 32025, 32029,
++++     32033, 32037, 32041, 32045, 32049, 32053, 32057, 32061, 32065, 32069,
++++     32073, 32077, 32081, 32085, 32089, 32093, 32097, 32101, 32105, 32109,
++++     32113, 32117, 32121, 32125, 32129, 32133, 32137, 32141, 32145, 32149,
++++     32153, 32157, 32161, 32165, 32169, 32173, 32177, 32181, 32185, 32189,
++++     32193, 32197, 32201, 32205, 32209, 32213, 32217, 32221, 32225, 32229,
++++     32233, 32237, 32241, 32245, 32248, 32248, 32249, 32253, 32257, 32261,
++++     32265, 32269, 32273, 32277, 32281, 32285, 32289, 32293, 32297, 32301,
++++     32305, 32309, 32313, 32317, 32321, 32325, 32329, 32333, 32337, 32341,
++++     32345, 32349, 32353, 32357, 32361, 32365, 32369, 32373, 32377, 32381,
++++     32385, 32389, 32393, 32397, 32401, 32405, 32409, 32413, 32417, 32421,
++++     32425, 32429, 32433, 32437, 32441, 32445, 32448},
++++    {32448, 32448, 32448, 32448, 32448, 32448, 32448, 32448, 32448, 32448,
++++     32448, 32448, 32448, 32448, 32448, 32448, 32448, 32448, 32448, 32448,
++++     32448, 32448, 32448, 32448, 32448, 32448, 32448, 32448, 32448, 32448,
++++     32448, 32448, 32448, 32448, 32448, 32448, 32448, 32448, 32448, 32448,
++++     32448, 32448, 32448, 32448, 32448, 32448, 32448, 32448, 32449, 32453,
++++     32457, 32461, 32465, 32469, 32473, 32477, 32481, 32485, 32489, 32493,
++++     32497, 32501, 32505, 32509, 32513, 32517, 32521, 32525, 32529, 32533,
++++     32537, 32541, 32545, 32549, 32553, 32557, 32561, 32565, 32569, 32573,
++++     32577, 32581, 32585, 32589, 32593, 32597, 32601, 32605, 32609, 32613,
++++     32617, 32621, 32625, 32629, 32633, 32637, 32641, 32645, 32649, 32653,
++++     32657, 32661, 32665, 32669, 32673, 32677, 32681, 32685, 32689, 32693,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696},
++++    {32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696, 32696,
++++     32696, 32696, 32696, 32696, 32696, 32696, 32697},
++++    {32697, 32701, 32705, 32709, 32712, 32713, 32717, 32721, 32725, 32729,
++++     32733, 32737, 32741, 32745, 32749, 32753, 32757, 32761, 32765, 32769,
++++     32773, 32777, 32781, 32785, 32789, 32793, 32797, 32801, 32805, 32809,
++++     32813, 32817, 32820, 32821, 32825, 32828, 32829, 32832, 32832, 32833,
++++     32836, 32837, 32841, 32845, 32849, 32853, 32857, 32861, 32865, 32869,
++++     32873, 32876, 32877, 32881, 32885, 32889, 32892, 32893, 32896, 32897,
++++     32900, 32900, 32900, 32900, 32900, 32900, 32901, 32904, 32904, 32904,
++++     32904, 32905, 32908, 32909, 32912, 32913, 32916, 32917, 32921, 32925,
++++     32928, 32929, 32933, 32936, 32937, 32940, 32940, 32941, 32944, 32945,
++++     32948, 32949, 32952, 32953, 32956, 32957, 32960, 32961, 32965, 32968,
++++     32969, 32972, 32972, 32973, 32977, 32981, 32985, 32988, 32989, 32993,
++++     32997, 33001, 33005, 33009, 33013, 33016, 33017, 33021, 33025, 33029,
++++     33032, 33033, 33037, 33041, 33045, 33048, 33049, 33052, 33053, 33057,
++++     33061, 33065, 33069, 33073, 33077, 33081, 33085, 33089, 33092, 33093,
++++     33097, 33101, 33105, 33109, 33113, 33117, 33121, 33125, 33129, 33133,
++++     33137, 33141, 33145, 33149, 33153, 33157, 33160, 33160, 33160, 33160,
++++     33160, 33161, 33165, 33169, 33172, 33173, 33177, 33181, 33185, 33189,
++++     33192, 33193, 33197, 33201, 33205, 33209, 33213, 33217, 33221, 33225,
++++     33229, 33233, 33237, 33241, 33245, 33249, 33253, 33257, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260},
++++    {33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260, 33260,
++++     33260, 33260, 33260, 33260, 33260, 33260, 33261},
++++    {33261, 33269, 33277, 33285, 33293, 33301, 33309, 33317, 33325, 33333,
++++     33341, 33348, 33348, 33348, 33348, 33348, 33349, 33361, 33373, 33385,
++++     33397, 33409, 33421, 33433, 33445, 33457, 33469, 33481, 33493, 33505,
++++     33517, 33529, 33541, 33553, 33565, 33577, 33589, 33601, 33613, 33625,
++++     33637, 33649, 33661, 33673, 33677, 33681, 33689, 33696, 33697, 33701,
++++     33705, 33709, 33713, 33717, 33721, 33725, 33729, 33733, 33737, 33741,
++++     33745, 33749, 33753, 33757, 33761, 33765, 33769, 33773, 33777, 33781,
++++     33785, 33789, 33793, 33797, 33801, 33809, 33817, 33825, 33833, 33845,
++++     33852, 33852, 33852, 33852, 33852, 33852, 33852, 33852, 33852, 33852,
++++     33852, 33852, 33852, 33852, 33852, 33852, 33852, 33852, 33852, 33852,
++++     33852, 33852, 33852, 33852, 33852, 33852, 33853, 33861, 33869, 33876,
++++     33876, 33876, 33876, 33876, 33876, 33876, 33876, 33876, 33876, 33876,
++++     33876, 33876, 33876, 33876, 33876, 33876, 33876, 33876, 33876, 33876,
++++     33876, 33876, 33876, 33876, 33876, 33876, 33876, 33876, 33876, 33876,
++++     33876, 33876, 33876, 33876, 33877, 33884, 33884, 33884, 33884, 33884,
++++     33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884,
++++     33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884,
++++     33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884,
++++     33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884,
++++     33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884,
++++     33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884,
++++     33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884,
++++     33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884,
++++     33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884,
++++     33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884, 33884,
++++     33884, 33884, 33884, 33884, 33884, 33884, 33885},
++++    {33885, 33893, 33901, 33904, 33904, 33904, 33904, 33904, 33904, 33904,
++++     33904, 33904, 33904, 33904, 33904, 33904, 33905, 33909, 33913, 33917,
++++     33925, 33929, 33933, 33937, 33941, 33945, 33949, 33953, 33957, 33961,
++++     33965, 33969, 33973, 33977, 33981, 33985, 33989, 33993, 33997, 34001,
++++     34005, 34009, 34013, 34017, 34021, 34025, 34029, 34033, 34037, 34041,
++++     34045, 34049, 34053, 34057, 34061, 34065, 34069, 34073, 34077, 34081,
++++     34084, 34084, 34084, 34084, 34085, 34097, 34109, 34121, 34133, 34145,
++++     34157, 34169, 34181, 34192, 34192, 34192, 34192, 34192, 34192, 34192,
++++     34193, 34197, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200},
++++    {34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200, 34200,
++++     34201, 34205, 34209, 34213, 34217, 34221, 34225, 34229, 34233, 34237,
++++     34240, 34240, 34240, 34240, 34240, 34240, 34240},
++++    {34240, 34244, 34248, 34252, 34256, 34260, 34264, 34268, 34272, 34276,
++++     34280, 34284, 34288, 34292, 34296, 34300, 34304, 34308, 34312, 34316,
++++     34320, 34324, 34328, 34332, 34336, 34340, 34344, 34348, 34352, 34356,
++++     34360, 34364, 34368, 34372, 34376, 34380, 34384, 34388, 34392, 34396,
++++     34400, 34404, 34408, 34412, 34416, 34420, 34424, 34428, 34432, 34436,
++++     34440, 34444, 34448, 34452, 34456, 34460, 34464, 34468, 34472, 34476,
++++     34480, 34484, 34488, 34492, 34496, 34500, 34504, 34508, 34512, 34516,
++++     34520, 34524, 34528, 34532, 34536, 34540, 34544, 34548, 34552, 34556,
++++     34560, 34564, 34568, 34572, 34576, 34580, 34584, 34588, 34592, 34596,
++++     34600, 34604, 34608, 34612, 34616, 34620, 34624, 34628, 34632, 34636,
++++     34640, 34644, 34648, 34652, 34656, 34660, 34664, 34668, 34672, 34676,
++++     34680, 34684, 34688, 34692, 34696, 34700, 34704, 34708, 34712, 34716,
++++     34720, 34724, 34728, 34732, 34736, 34740, 34744, 34748, 34752, 34756,
++++     34760, 34764, 34768, 34772, 34776, 34780, 34784, 34788, 34792, 34796,
++++     34800, 34804, 34808, 34812, 34816, 34820, 34824, 34828, 34832, 34836,
++++     34840, 34844, 34848, 34852, 34856, 34860, 34864, 34868, 34872, 34876,
++++     34880, 34884, 34888, 34892, 34896, 34900, 34904, 34908, 34912, 34916,
++++     34920, 34924, 34928, 34932, 34936, 34940, 34944, 34948, 34952, 34956,
++++     34960, 34964, 34968, 34972, 34976, 34980, 34984, 34988, 34992, 34996,
++++     35000, 35004, 35008, 35012, 35016, 35020, 35024, 35028, 35032, 35036,
++++     35040, 35044, 35048, 35052, 35056, 35060, 35064, 35068, 35072, 35076,
++++     35080, 35084, 35088, 35092, 35096, 35100, 35104, 35108, 35112, 35116,
++++     35120, 35124, 35128, 35132, 35136, 35140, 35144, 35148, 35152, 35156,
++++     35160, 35164, 35168, 35172, 35176, 35180, 35184, 35188, 35192, 35196,
++++     35200, 35204, 35208, 35212, 35216, 35220, 35224, 35228, 35232, 35236,
++++     35240, 35244, 35248, 35252, 35256, 35260, 35264},
++++    {35264, 35268, 35272, 35276, 35280, 35284, 35288, 35292, 35296, 35300,
++++     35304, 35308, 35312, 35316, 35320, 35324, 35328, 35332, 35336, 35340,
++++     35344, 35348, 35352, 35356, 35360, 35364, 35368, 35372, 35376, 35380,
++++     35384, 35388, 35392, 35396, 35400, 35404, 35408, 35412, 35416, 35420,
++++     35424, 35428, 35432, 35436, 35440, 35444, 35448, 35452, 35456, 35460,
++++     35464, 35468, 35472, 35476, 35480, 35484, 35488, 35492, 35496, 35500,
++++     35504, 35508, 35512, 35516, 35520, 35524, 35528, 35532, 35536, 35540,
++++     35544, 35548, 35552, 35556, 35560, 35564, 35568, 35572, 35576, 35580,
++++     35584, 35588, 35592, 35596, 35600, 35604, 35608, 35612, 35616, 35620,
++++     35624, 35628, 35632, 35636, 35640, 35644, 35648, 35652, 35656, 35660,
++++     35664, 35668, 35672, 35676, 35680, 35684, 35688, 35692, 35696, 35700,
++++     35704, 35708, 35712, 35716, 35720, 35724, 35728, 35732, 35736, 35740,
++++     35744, 35748, 35752, 35756, 35760, 35764, 35768, 35772, 35776, 35780,
++++     35784, 35788, 35792, 35796, 35800, 35804, 35808, 35812, 35816, 35820,
++++     35824, 35828, 35832, 35836, 35840, 35844, 35848, 35852, 35856, 35860,
++++     35864, 35868, 35872, 35876, 35880, 35884, 35888, 35892, 35896, 35900,
++++     35904, 35908, 35912, 35916, 35920, 35924, 35928, 35932, 35936, 35940,
++++     35944, 35948, 35952, 35956, 35960, 35964, 35968, 35972, 35976, 35980,
++++     35984, 35988, 35992, 35996, 36000, 36004, 36008, 36012, 36016, 36020,
++++     36024, 36028, 36032, 36036, 36040, 36044, 36048, 36052, 36056, 36060,
++++     36064, 36068, 36072, 36076, 36080, 36084, 36088, 36092, 36096, 36100,
++++     36104, 36108, 36112, 36116, 36120, 36124, 36128, 36132, 36136, 36140,
++++     36144, 36148, 36152, 36156, 36160, 36164, 36168, 36172, 36176, 36180,
++++     36184, 36188, 36192, 36196, 36200, 36204, 36208, 36212, 36216, 36220,
++++     36224, 36228, 36232, 36236, 36240, 36244, 36248, 36252, 36256, 36260,
++++     36264, 36268, 36272, 36276, 36280, 36284, 36288},
++++    {36288, 36292, 36296, 36300, 36304, 36308, 36312, 36316, 36320, 36324,
++++     36328, 36332, 36336, 36340, 36344, 36348, 36352, 36356, 36360, 36364,
++++     36368, 36372, 36376, 36380, 36384, 36388, 36392, 36396, 36400, 36404,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408, 36408,
++++     36408, 36408, 36408, 36408, 36408, 36408, 36408}};
++++const char32_t decomposition_data[9102] = {
++++    0,      32,     32,     776,    97,     32,     772,    50,     51,
++++    32,     769,    956,    32,     807,    49,     111,    49,     8260,
++++    52,     49,     8260,   50,     51,     8260,   52,     65,     768,
++++    65,     769,    65,     770,    65,     771,    65,     776,    65,
++++    778,    67,     807,    69,     768,    69,     769,    69,     770,
++++    69,     776,    73,     768,    73,     769,    73,     770,    73,
++++    776,    78,     771,    79,     768,    79,     769,    79,     770,
++++    79,     771,    79,     776,    85,     768,    85,     769,    85,
++++    770,    85,     776,    89,     769,    97,     768,    97,     769,
++++    97,     770,    97,     771,    97,     776,    97,     778,    99,
++++    807,    101,    768,    101,    769,    101,    770,    101,    776,
++++    105,    768,    105,    769,    105,    770,    105,    776,    110,
++++    771,    111,    768,    111,    769,    111,    770,    111,    771,
++++    111,    776,    117,    768,    117,    769,    117,    770,    117,
++++    776,    121,    769,    121,    776,    65,     772,    97,     772,
++++    65,     774,    97,     774,    65,     808,    97,     808,    67,
++++    769,    99,     769,    67,     770,    99,     770,    67,     775,
++++    99,     775,    67,     780,    99,     780,    68,     780,    100,
++++    780,    69,     772,    101,    772,    69,     774,    101,    774,
++++    69,     775,    101,    775,    69,     808,    101,    808,    69,
++++    780,    101,    780,    71,     770,    103,    770,    71,     774,
++++    103,    774,    71,     775,    103,    775,    71,     807,    103,
++++    807,    72,     770,    104,    770,    73,     771,    105,    771,
++++    73,     772,    105,    772,    73,     774,    105,    774,    73,
++++    808,    105,    808,    73,     775,    73,     74,     105,    106,
++++    74,     770,    106,    770,    75,     807,    107,    807,    76,
++++    769,    108,    769,    76,     807,    108,    807,    76,     780,
++++    108,    780,    76,     183,    108,    183,    78,     769,    110,
++++    769,    78,     807,    110,    807,    78,     780,    110,    780,
++++    700,    110,    79,     772,    111,    772,    79,     774,    111,
++++    774,    79,     779,    111,    779,    82,     769,    114,    769,
++++    82,     807,    114,    807,    82,     780,    114,    780,    83,
++++    769,    115,    769,    83,     770,    115,    770,    83,     807,
++++    115,    807,    83,     780,    115,    780,    84,     807,    116,
++++    807,    84,     780,    116,    780,    85,     771,    117,    771,
++++    85,     772,    117,    772,    85,     774,    117,    774,    85,
++++    778,    117,    778,    85,     779,    117,    779,    85,     808,
++++    117,    808,    87,     770,    119,    770,    89,     770,    121,
++++    770,    89,     776,    90,     769,    122,    769,    90,     775,
++++    122,    775,    90,     780,    122,    780,    115,    79,     795,
++++    111,    795,    85,     795,    117,    795,    68,     90,     780,
++++    68,     122,    780,    100,    122,    780,    76,     74,     76,
++++    106,    108,    106,    78,     74,     78,     106,    110,    106,
++++    65,     780,    97,     780,    73,     780,    105,    780,    79,
++++    780,    111,    780,    85,     780,    117,    780,    85,     776,
++++    772,    117,    776,    772,    85,     776,    769,    117,    776,
++++    769,    85,     776,    780,    117,    776,    780,    85,     776,
++++    768,    117,    776,    768,    65,     776,    772,    97,     776,
++++    772,    65,     775,    772,    97,     775,    772,    198,    772,
++++    230,    772,    71,     780,    103,    780,    75,     780,    107,
++++    780,    79,     808,    111,    808,    79,     808,    772,    111,
++++    808,    772,    439,    780,    658,    780,    106,    780,    68,
++++    90,     68,     122,    100,    122,    71,     769,    103,    769,
++++    78,     768,    110,    768,    65,     778,    769,    97,     778,
++++    769,    198,    769,    230,    769,    216,    769,    248,    769,
++++    65,     783,    97,     783,    65,     785,    97,     785,    69,
++++    783,    101,    783,    69,     785,    101,    785,    73,     783,
++++    105,    783,    73,     785,    105,    785,    79,     783,    111,
++++    783,    79,     785,    111,    785,    82,     783,    114,    783,
++++    82,     785,    114,    785,    85,     783,    117,    783,    85,
++++    785,    117,    785,    83,     806,    115,    806,    84,     806,
++++    116,    806,    72,     780,    104,    780,    65,     775,    97,
++++    775,    69,     807,    101,    807,    79,     776,    772,    111,
++++    776,    772,    79,     771,    772,    111,    771,    772,    79,
++++    775,    111,    775,    79,     775,    772,    111,    775,    772,
++++    89,     772,    121,    772,    104,    614,    106,    114,    633,
++++    635,    641,    119,    121,    32,     774,    32,     775,    32,
++++    778,    32,     808,    32,     771,    32,     779,    611,    108,
++++    115,    120,    661,    768,    769,    787,    776,    769,    697,
++++    32,     837,    59,     32,     769,    168,    769,    913,    769,
++++    183,    917,    769,    919,    769,    921,    769,    927,    769,
++++    933,    769,    937,    769,    953,    776,    769,    921,    776,
++++    933,    776,    945,    769,    949,    769,    951,    769,    953,
++++    769,    965,    776,    769,    953,    776,    965,    776,    959,
++++    769,    965,    769,    969,    769,    946,    952,    933,    978,
++++    769,    978,    776,    966,    960,    954,    961,    962,    920,
++++    949,    931,    1045,   768,    1045,   776,    1043,   769,    1030,
++++    776,    1050,   769,    1048,   768,    1059,   774,    1048,   774,
++++    1080,   774,    1077,   768,    1077,   776,    1075,   769,    1110,
++++    776,    1082,   769,    1080,   768,    1091,   774,    1140,   783,
++++    1141,   783,    1046,   774,    1078,   774,    1040,   774,    1072,
++++    774,    1040,   776,    1072,   776,    1045,   774,    1077,   774,
++++    1240,   776,    1241,   776,    1046,   776,    1078,   776,    1047,
++++    776,    1079,   776,    1048,   772,    1080,   772,    1048,   776,
++++    1080,   776,    1054,   776,    1086,   776,    1256,   776,    1257,
++++    776,    1069,   776,    1101,   776,    1059,   772,    1091,   772,
++++    1059,   776,    1091,   776,    1059,   779,    1091,   779,    1063,
++++    776,    1095,   776,    1067,   776,    1099,   776,    1381,   1410,
++++    1575,   1619,   1575,   1620,   1608,   1620,   1575,   1621,   1610,
++++    1620,   1575,   1652,   1608,   1652,   1735,   1652,   1610,   1652,
++++    1749,   1620,   1729,   1620,   1746,   1620,   2344,   2364,   2352,
++++    2364,   2355,   2364,   2325,   2364,   2326,   2364,   2327,   2364,
++++    2332,   2364,   2337,   2364,   2338,   2364,   2347,   2364,   2351,
++++    2364,   2503,   2494,   2503,   2519,   2465,   2492,   2466,   2492,
++++    2479,   2492,   2610,   2620,   2616,   2620,   2582,   2620,   2583,
++++    2620,   2588,   2620,   2603,   2620,   2887,   2902,   2887,   2878,
++++    2887,   2903,   2849,   2876,   2850,   2876,   2962,   3031,   3014,
++++    3006,   3015,   3006,   3014,   3031,   3142,   3158,   3263,   3285,
++++    3270,   3285,   3270,   3286,   3270,   3266,   3270,   3266,   3285,
++++    3398,   3390,   3399,   3390,   3398,   3415,   3545,   3530,   3545,
++++    3535,   3545,   3535,   3530,   3545,   3551,   3661,   3634,   3789,
++++    3762,   3755,   3737,   3755,   3745,   3851,   3906,   4023,   3916,
++++    4023,   3921,   4023,   3926,   4023,   3931,   4023,   3904,   4021,
++++    3953,   3954,   3953,   3956,   4018,   3968,   4018,   3953,   3968,
++++    4019,   3968,   4019,   3953,   3968,   3953,   3968,   3986,   4023,
++++    3996,   4023,   4001,   4023,   4006,   4023,   4011,   4023,   3984,
++++    4021,   4133,   4142,   4316,   6917,   6965,   6919,   6965,   6921,
++++    6965,   6923,   6965,   6925,   6965,   6929,   6965,   6970,   6965,
++++    6972,   6965,   6974,   6965,   6975,   6965,   6978,   6965,   65,
++++    198,    66,     68,     69,     398,    71,     72,     73,     74,
++++    75,     76,     77,     78,     79,     546,    80,     82,     84,
++++    85,     87,     97,     592,    593,    7426,   98,     100,    101,
++++    601,    603,    604,    103,    107,    109,    331,    111,    596,
++++    7446,   7447,   112,    116,    117,    7453,   623,    118,    7461,
++++    946,    947,    948,    966,    967,    105,    114,    117,    118,
++++    946,    947,    961,    966,    967,    1085,   594,    99,     597,
++++    240,    604,    102,    607,    609,    613,    616,    617,    618,
++++    7547,   669,    621,    7557,   671,    625,    624,    626,    627,
++++    628,    629,    632,    642,    643,    427,    649,    650,    7452,
++++    651,    652,    122,    656,    657,    658,    952,    65,     805,
++++    97,     805,    66,     775,    98,     775,    66,     803,    98,
++++    803,    66,     817,    98,     817,    67,     807,    769,    99,
++++    807,    769,    68,     775,    100,    775,    68,     803,    100,
++++    803,    68,     817,    100,    817,    68,     807,    100,    807,
++++    68,     813,    100,    813,    69,     772,    768,    101,    772,
++++    768,    69,     772,    769,    101,    772,    769,    69,     813,
++++    101,    813,    69,     816,    101,    816,    69,     807,    774,
++++    101,    807,    774,    70,     775,    102,    775,    71,     772,
++++    103,    772,    72,     775,    104,    775,    72,     803,    104,
++++    803,    72,     776,    104,    776,    72,     807,    104,    807,
++++    72,     814,    104,    814,    73,     816,    105,    816,    73,
++++    776,    769,    105,    776,    769,    75,     769,    107,    769,
++++    75,     803,    107,    803,    75,     817,    107,    817,    76,
++++    803,    108,    803,    76,     803,    772,    108,    803,    772,
++++    76,     817,    108,    817,    76,     813,    108,    813,    77,
++++    769,    109,    769,    77,     775,    109,    775,    77,     803,
++++    109,    803,    78,     775,    110,    775,    78,     803,    110,
++++    803,    78,     817,    110,    817,    78,     813,    110,    813,
++++    79,     771,    769,    111,    771,    769,    79,     771,    776,
++++    111,    771,    776,    79,     772,    768,    111,    772,    768,
++++    79,     772,    769,    111,    772,    769,    80,     769,    112,
++++    769,    80,     775,    112,    775,    82,     775,    114,    775,
++++    82,     803,    114,    803,    82,     803,    772,    114,    803,
++++    772,    82,     817,    114,    817,    83,     775,    115,    775,
++++    83,     803,    115,    803,    83,     769,    775,    115,    769,
++++    775,    83,     780,    775,    115,    780,    775,    83,     803,
++++    775,    115,    803,    775,    84,     775,    116,    775,    84,
++++    803,    116,    803,    84,     817,    116,    817,    84,     813,
++++    116,    813,    85,     804,    117,    804,    85,     816,    117,
++++    816,    85,     813,    117,    813,    85,     771,    769,    117,
++++    771,    769,    85,     772,    776,    117,    772,    776,    86,
++++    771,    118,    771,    86,     803,    118,    803,    87,     768,
++++    119,    768,    87,     769,    119,    769,    87,     776,    119,
++++    776,    87,     775,    119,    775,    87,     803,    119,    803,
++++    88,     775,    120,    775,    88,     776,    120,    776,    89,
++++    775,    121,    775,    90,     770,    122,    770,    90,     803,
++++    122,    803,    90,     817,    122,    817,    104,    817,    116,
++++    776,    119,    778,    121,    778,    97,     702,    383,    775,
++++    65,     803,    97,     803,    65,     777,    97,     777,    65,
++++    770,    769,    97,     770,    769,    65,     770,    768,    97,
++++    770,    768,    65,     770,    777,    97,     770,    777,    65,
++++    770,    771,    97,     770,    771,    65,     803,    770,    97,
++++    803,    770,    65,     774,    769,    97,     774,    769,    65,
++++    774,    768,    97,     774,    768,    65,     774,    777,    97,
++++    774,    777,    65,     774,    771,    97,     774,    771,    65,
++++    803,    774,    97,     803,    774,    69,     803,    101,    803,
++++    69,     777,    101,    777,    69,     771,    101,    771,    69,
++++    770,    769,    101,    770,    769,    69,     770,    768,    101,
++++    770,    768,    69,     770,    777,    101,    770,    777,    69,
++++    770,    771,    101,    770,    771,    69,     803,    770,    101,
++++    803,    770,    73,     777,    105,    777,    73,     803,    105,
++++    803,    79,     803,    111,    803,    79,     777,    111,    777,
++++    79,     770,    769,    111,    770,    769,    79,     770,    768,
++++    111,    770,    768,    79,     770,    777,    111,    770,    777,
++++    79,     770,    771,    111,    770,    771,    79,     803,    770,
++++    111,    803,    770,    79,     795,    769,    111,    795,    769,
++++    79,     795,    768,    111,    795,    768,    79,     795,    777,
++++    111,    795,    777,    79,     795,    771,    111,    795,    771,
++++    79,     795,    803,    111,    795,    803,    85,     803,    117,
++++    803,    85,     777,    117,    777,    85,     795,    769,    117,
++++    795,    769,    85,     795,    768,    117,    795,    768,    85,
++++    795,    777,    117,    795,    777,    85,     795,    771,    117,
++++    795,    771,    85,     795,    803,    117,    795,    803,    89,
++++    768,    121,    768,    89,     803,    121,    803,    89,     777,
++++    121,    777,    89,     771,    121,    771,    945,    787,    945,
++++    788,    945,    787,    768,    945,    788,    768,    945,    787,
++++    769,    945,    788,    769,    945,    787,    834,    945,    788,
++++    834,    913,    787,    913,    788,    913,    787,    768,    913,
++++    788,    768,    913,    787,    769,    913,    788,    769,    913,
++++    787,    834,    913,    788,    834,    949,    787,    949,    788,
++++    949,    787,    768,    949,    788,    768,    949,    787,    769,
++++    949,    788,    769,    917,    787,    917,    788,    917,    787,
++++    768,    917,    788,    768,    917,    787,    769,    917,    788,
++++    769,    951,    787,    951,    788,    951,    787,    768,    951,
++++    788,    768,    951,    787,    769,    951,    788,    769,    951,
++++    787,    834,    951,    788,    834,    919,    787,    919,    788,
++++    919,    787,    768,    919,    788,    768,    919,    787,    769,
++++    919,    788,    769,    919,    787,    834,    919,    788,    834,
++++    953,    787,    953,    788,    953,    787,    768,    953,    788,
++++    768,    953,    787,    769,    953,    788,    769,    953,    787,
++++    834,    953,    788,    834,    921,    787,    921,    788,    921,
++++    787,    768,    921,    788,    768,    921,    787,    769,    921,
++++    788,    769,    921,    787,    834,    921,    788,    834,    959,
++++    787,    959,    788,    959,    787,    768,    959,    788,    768,
++++    959,    787,    769,    959,    788,    769,    927,    787,    927,
++++    788,    927,    787,    768,    927,    788,    768,    927,    787,
++++    769,    927,    788,    769,    965,    787,    965,    788,    965,
++++    787,    768,    965,    788,    768,    965,    787,    769,    965,
++++    788,    769,    965,    787,    834,    965,    788,    834,    933,
++++    788,    933,    788,    768,    933,    788,    769,    933,    788,
++++    834,    969,    787,    969,    788,    969,    787,    768,    969,
++++    788,    768,    969,    787,    769,    969,    788,    769,    969,
++++    787,    834,    969,    788,    834,    937,    787,    937,    788,
++++    937,    787,    768,    937,    788,    768,    937,    787,    769,
++++    937,    788,    769,    937,    787,    834,    937,    788,    834,
++++    945,    768,    945,    769,    949,    768,    949,    769,    951,
++++    768,    951,    769,    953,    768,    953,    769,    959,    768,
++++    959,    769,    965,    768,    965,    769,    969,    768,    969,
++++    769,    945,    787,    837,    945,    788,    837,    945,    787,
++++    768,    837,    945,    788,    768,    837,    945,    787,    769,
++++    837,    945,    788,    769,    837,    945,    787,    834,    837,
++++    945,    788,    834,    837,    913,    787,    837,    913,    788,
++++    837,    913,    787,    768,    837,    913,    788,    768,    837,
++++    913,    787,    769,    837,    913,    788,    769,    837,    913,
++++    787,    834,    837,    913,    788,    834,    837,    951,    787,
++++    837,    951,    788,    837,    951,    787,    768,    837,    951,
++++    788,    768,    837,    951,    787,    769,    837,    951,    788,
++++    769,    837,    951,    787,    834,    837,    951,    788,    834,
++++    837,    919,    787,    837,    919,    788,    837,    919,    787,
++++    768,    837,    919,    788,    768,    837,    919,    787,    769,
++++    837,    919,    788,    769,    837,    919,    787,    834,    837,
++++    919,    788,    834,    837,    969,    787,    837,    969,    788,
++++    837,    969,    787,    768,    837,    969,    788,    768,    837,
++++    969,    787,    769,    837,    969,    788,    769,    837,    969,
++++    787,    834,    837,    969,    788,    834,    837,    937,    787,
++++    837,    937,    788,    837,    937,    787,    768,    837,    937,
++++    788,    768,    837,    937,    787,    769,    837,    937,    788,
++++    769,    837,    937,    787,    834,    837,    937,    788,    834,
++++    837,    945,    774,    945,    772,    945,    768,    837,    945,
++++    837,    945,    769,    837,    945,    834,    945,    834,    837,
++++    913,    774,    913,    772,    913,    768,    913,    769,    913,
++++    837,    32,     787,    953,    32,     787,    32,     834,    168,
++++    834,    951,    768,    837,    951,    837,    951,    769,    837,
++++    951,    834,    951,    834,    837,    917,    768,    917,    769,
++++    919,    768,    919,    769,    919,    837,    8127,   768,    8127,
++++    769,    8127,   834,    953,    774,    953,    772,    953,    776,
++++    768,    953,    776,    769,    953,    834,    953,    776,    834,
++++    921,    774,    921,    772,    921,    768,    921,    769,    8190,
++++    768,    8190,   769,    8190,   834,    965,    774,    965,    772,
++++    965,    776,    768,    965,    776,    769,    961,    787,    961,
++++    788,    965,    834,    965,    776,    834,    933,    774,    933,
++++    772,    933,    768,    933,    769,    929,    788,    168,    768,
++++    168,    769,    96,     969,    768,    837,    969,    837,    969,
++++    769,    837,    969,    834,    969,    834,    837,    927,    768,
++++    927,    769,    937,    768,    937,    769,    937,    837,    180,
++++    32,     788,    8194,   8195,   32,     32,     32,     32,     32,
++++    32,     32,     32,     32,     8208,   32,     819,    46,     46,
++++    46,     46,     46,     46,     32,     8242,   8242,   8242,   8242,
++++    8242,   8245,   8245,   8245,   8245,   8245,   33,     33,     32,
++++    773,    63,     63,     63,     33,     33,     63,     8242,   8242,
++++    8242,   8242,   32,     48,     105,    52,     53,     54,     55,
++++    56,     57,     43,     8722,   61,     40,     41,     110,    48,
++++    49,     50,     51,     52,     53,     54,     55,     56,     57,
++++    43,     8722,   61,     40,     41,     97,     101,    111,    120,
++++    601,    104,    107,    108,    109,    110,    112,    115,    116,
++++    82,     115,    97,     47,     99,     97,     47,     115,    67,
++++    176,    67,     99,     47,     111,    99,     47,     117,    400,
++++    176,    70,     103,    72,     72,     72,     104,    295,    73,
++++    73,     76,     108,    78,     78,     111,    80,     81,     82,
++++    82,     82,     83,     77,     84,     69,     76,     84,     77,
++++    90,     937,    90,     75,     65,     778,    66,     67,     101,
++++    69,     70,     77,     111,    1488,   1489,   1490,   1491,   105,
++++    70,     65,     88,     960,    947,    915,    928,    8721,   68,
++++    100,    101,    105,    106,    49,     8260,   55,     49,     8260,
++++    57,     49,     8260,   49,     48,     49,     8260,   51,     50,
++++    8260,   51,     49,     8260,   53,     50,     8260,   53,     51,
++++    8260,   53,     52,     8260,   53,     49,     8260,   54,     53,
++++    8260,   54,     49,     8260,   56,     51,     8260,   56,     53,
++++    8260,   56,     55,     8260,   56,     49,     8260,   73,     73,
++++    73,     73,     73,     73,     73,     86,     86,     86,     73,
++++    86,     73,     73,     86,     73,     73,     73,     73,     88,
++++    88,     88,     73,     88,     73,     73,     76,     67,     68,
++++    77,     105,    105,    105,    105,    105,    105,    105,    118,
++++    118,    118,    105,    118,    105,    105,    118,    105,    105,
++++    105,    105,    120,    120,    120,    105,    120,    105,    105,
++++    108,    99,     100,    109,    48,     8260,   51,     8592,   824,
++++    8594,   824,    8596,   824,    8656,   824,    8660,   824,    8658,
++++    824,    8707,   824,    8712,   824,    8715,   824,    8739,   824,
++++    8741,   824,    8747,   8747,   8747,   8747,   8747,   8750,   8750,
++++    8750,   8750,   8750,   8764,   824,    8771,   824,    8773,   824,
++++    8776,   824,    61,     824,    8801,   824,    8781,   824,    60,
++++    824,    62,     824,    8804,   824,    8805,   824,    8818,   824,
++++    8819,   824,    8822,   824,    8823,   824,    8826,   824,    8827,
++++    824,    8834,   824,    8835,   824,    8838,   824,    8839,   824,
++++    8866,   824,    8872,   824,    8873,   824,    8875,   824,    8828,
++++    824,    8829,   824,    8849,   824,    8850,   824,    8882,   824,
++++    8883,   824,    8884,   824,    8885,   824,    12296,  12297,  49,
++++    50,     51,     52,     53,     54,     55,     56,     57,     49,
++++    48,     49,     49,     49,     50,     49,     51,     49,     52,
++++    49,     53,     49,     54,     49,     55,     49,     56,     49,
++++    57,     50,     48,     40,     49,     41,     40,     50,     41,
++++    40,     51,     41,     40,     52,     41,     40,     53,     41,
++++    40,     54,     41,     40,     55,     41,     40,     56,     41,
++++    40,     57,     41,     40,     49,     48,     41,     40,     49,
++++    49,     41,     40,     49,     50,     41,     40,     49,     51,
++++    41,     40,     49,     52,     41,     40,     49,     53,     41,
++++    40,     49,     54,     41,     40,     49,     55,     41,     40,
++++    49,     56,     41,     40,     49,     57,     41,     40,     50,
++++    48,     41,     49,     46,     50,     46,     51,     46,     52,
++++    46,     53,     46,     54,     46,     55,     46,     56,     46,
++++    57,     46,     49,     48,     46,     49,     49,     46,     49,
++++    50,     46,     49,     51,     46,     49,     52,     46,     49,
++++    53,     46,     49,     54,     46,     49,     55,     46,     49,
++++    56,     46,     49,     57,     46,     50,     48,     46,     40,
++++    97,     41,     40,     98,     41,     40,     99,     41,     40,
++++    100,    41,     40,     101,    41,     40,     102,    41,     40,
++++    103,    41,     40,     104,    41,     40,     105,    41,     40,
++++    106,    41,     40,     107,    41,     40,     108,    41,     40,
++++    109,    41,     40,     110,    41,     40,     111,    41,     40,
++++    112,    41,     40,     113,    41,     40,     114,    41,     40,
++++    115,    41,     40,     116,    41,     40,     117,    41,     40,
++++    118,    41,     40,     119,    41,     40,     120,    41,     40,
++++    121,    41,     40,     122,    41,     65,     66,     67,     68,
++++    69,     70,     71,     72,     73,     74,     75,     76,     77,
++++    78,     79,     80,     81,     82,     83,     84,     85,     86,
++++    87,     88,     89,     90,     97,     98,     99,     100,    101,
++++    102,    103,    104,    105,    106,    107,    108,    109,    110,
++++    111,    112,    113,    114,    115,    116,    117,    118,    119,
++++    120,    121,    122,    48,     8747,   8747,   8747,   8747,   58,
++++    58,     61,     61,     61,     61,     61,     61,     10973,  824,
++++    106,    86,     11617,  27597,  40863,  19968,  20008,  20022,  20031,
++++    20057,  20101,  20108,  20128,  20154,  20799,  20837,  20843,  20866,
++++    20886,  20907,  20960,  20981,  20992,  21147,  21241,  21269,  21274,
++++    21304,  21313,  21340,  21353,  21378,  21430,  21448,  21475,  22231,
++++    22303,  22763,  22786,  22794,  22805,  22823,  22899,  23376,  23424,
++++    23544,  23567,  23586,  23608,  23662,  23665,  24027,  24037,  24049,
++++    24062,  24178,  24186,  24191,  24308,  24318,  24331,  24339,  24400,
++++    24417,  24435,  24515,  25096,  25142,  25163,  25903,  25908,  25991,
++++    26007,  26020,  26041,  26080,  26085,  26352,  26376,  26408,  27424,
++++    27490,  27513,  27571,  27595,  27604,  27611,  27663,  27668,  27700,
++++    28779,  29226,  29238,  29243,  29247,  29255,  29273,  29275,  29356,
++++    29572,  29577,  29916,  29926,  29976,  29983,  29992,  30000,  30091,
++++    30098,  30326,  30333,  30382,  30399,  30446,  30683,  30690,  30707,
++++    31034,  31160,  31166,  31348,  31435,  31481,  31859,  31992,  32566,
++++    32593,  32650,  32701,  32769,  32780,  32786,  32819,  32895,  32905,
++++    33251,  33258,  33267,  33276,  33292,  33307,  33311,  33390,  33394,
++++    33400,  34381,  34411,  34880,  34892,  34915,  35198,  35211,  35282,
++++    35328,  35895,  35910,  35925,  35960,  35997,  36196,  36208,  36275,
++++    36523,  36554,  36763,  36784,  36789,  37009,  37193,  37318,  37324,
++++    37329,  38263,  38272,  38428,  38582,  38585,  38632,  38737,  38750,
++++    38754,  38761,  38859,  38893,  38899,  38913,  39080,  39131,  39135,
++++    39318,  39321,  39340,  39592,  39640,  39647,  39717,  39727,  39730,
++++    39740,  39770,  40165,  40565,  40575,  40613,  40635,  40643,  40653,
++++    40657,  40697,  40701,  40718,  40723,  40736,  40763,  40778,  40786,
++++    40845,  40860,  40864,  32,     12306,  21313,  21316,  21317,  12363,
++++    12441,  12365,  12441,  12367,  12441,  12369,  12441,  12371,  12441,
++++    12373,  12441,  12375,  12441,  12377,  12441,  12379,  12441,  12381,
++++    12441,  12383,  12441,  12385,  12441,  12388,  12441,  12390,  12441,
++++    12392,  12441,  12399,  12441,  12399,  12442,  12402,  12441,  12402,
++++    12442,  12405,  12441,  12405,  12442,  12408,  12441,  12408,  12442,
++++    12411,  12441,  12411,  12442,  12358,  12441,  32,     12441,  32,
++++    12442,  12445,  12441,  12424,  12426,  12459,  12441,  12461,  12441,
++++    12463,  12441,  12465,  12441,  12467,  12441,  12469,  12441,  12471,
++++    12441,  12473,  12441,  12475,  12441,  12477,  12441,  12479,  12441,
++++    12481,  12441,  12484,  12441,  12486,  12441,  12488,  12441,  12495,
++++    12441,  12495,  12442,  12498,  12441,  12498,  12442,  12501,  12441,
++++    12501,  12442,  12504,  12441,  12504,  12442,  12507,  12441,  12507,
++++    12442,  12454,  12441,  12527,  12441,  12528,  12441,  12529,  12441,
++++    12530,  12441,  12541,  12441,  12467,  12488,  4352,   4353,   4522,
++++    4354,   4524,   4525,   4355,   4356,   4357,   4528,   4529,   4530,
++++    4531,   4532,   4533,   4378,   4358,   4359,   4360,   4385,   4361,
++++    4362,   4363,   4364,   4365,   4366,   4367,   4368,   4369,   4370,
++++    4449,   4450,   4451,   4452,   4453,   4454,   4455,   4456,   4457,
++++    4458,   4459,   4460,   4461,   4462,   4463,   4464,   4465,   4466,
++++    4467,   4468,   4469,   4448,   4372,   4373,   4551,   4552,   4556,
++++    4558,   4563,   4567,   4569,   4380,   4573,   4575,   4381,   4382,
++++    4384,   4386,   4387,   4391,   4393,   4395,   4396,   4397,   4398,
++++    4399,   4402,   4406,   4416,   4423,   4428,   4593,   4594,   4439,
++++    4440,   4441,   4484,   4485,   4488,   4497,   4498,   4500,   4510,
++++    4513,   19968,  20108,  19977,  22235,  19978,  20013,  19979,  30002,
++++    20057,  19993,  19969,  22825,  22320,  20154,  40,     4352,   41,
++++    40,     4354,   41,     40,     4355,   41,     40,     4357,   41,
++++    40,     4358,   41,     40,     4359,   41,     40,     4361,   41,
++++    40,     4363,   41,     40,     4364,   41,     40,     4366,   41,
++++    40,     4367,   41,     40,     4368,   41,     40,     4369,   41,
++++    40,     4370,   41,     40,     4352,   4449,   41,     40,     4354,
++++    4449,   41,     40,     4355,   4449,   41,     40,     4357,   4449,
++++    41,     40,     4358,   4449,   41,     40,     4359,   4449,   41,
++++    40,     4361,   4449,   41,     40,     4363,   4449,   41,     40,
++++    4364,   4449,   41,     40,     4366,   4449,   41,     40,     4367,
++++    4449,   41,     40,     4368,   4449,   41,     40,     4369,   4449,
++++    41,     40,     4370,   4449,   41,     40,     4364,   4462,   41,
++++    40,     4363,   4457,   4364,   4453,   4523,   41,     40,     4363,
++++    4457,   4370,   4462,   41,     40,     19968,  41,     40,     20108,
++++    41,     40,     19977,  41,     40,     22235,  41,     40,     20116,
++++    41,     40,     20845,  41,     40,     19971,  41,     40,     20843,
++++    41,     40,     20061,  41,     40,     21313,  41,     40,     26376,
++++    41,     40,     28779,  41,     40,     27700,  41,     40,     26408,
++++    41,     40,     37329,  41,     40,     22303,  41,     40,     26085,
++++    41,     40,     26666,  41,     40,     26377,  41,     40,     31038,
++++    41,     40,     21517,  41,     40,     29305,  41,     40,     36001,
++++    41,     40,     31069,  41,     40,     21172,  41,     40,     20195,
++++    41,     40,     21628,  41,     40,     23398,  41,     40,     30435,
++++    41,     40,     20225,  41,     40,     36039,  41,     40,     21332,
++++    41,     40,     31085,  41,     40,     20241,  41,     40,     33258,
++++    41,     40,     33267,  41,     21839,  24188,  25991,  31631,  80,
++++    84,     69,     50,     49,     50,     50,     50,     51,     50,
++++    52,     50,     53,     50,     54,     50,     55,     50,     56,
++++    50,     57,     51,     48,     51,     49,     51,     50,     51,
++++    51,     51,     52,     51,     53,     4352,   4354,   4355,   4357,
++++    4358,   4359,   4361,   4363,   4364,   4366,   4367,   4368,   4369,
++++    4370,   4352,   4449,   4354,   4449,   4355,   4449,   4357,   4449,
++++    4358,   4449,   4359,   4449,   4361,   4449,   4363,   4449,   4364,
++++    4449,   4366,   4449,   4367,   4449,   4368,   4449,   4369,   4449,
++++    4370,   4449,   4366,   4449,   4535,   4352,   4457,   4364,   4462,
++++    4363,   4468,   4363,   4462,   19968,  20108,  19977,  22235,  20116,
++++    20845,  19971,  20843,  20061,  21313,  26376,  28779,  27700,  26408,
++++    37329,  22303,  26085,  26666,  26377,  31038,  21517,  29305,  36001,
++++    31069,  21172,  31192,  30007,  22899,  36969,  20778,  21360,  27880,
++++    38917,  20241,  20889,  27491,  19978,  20013,  19979,  24038,  21491,
++++    21307,  23447,  23398,  30435,  20225,  36039,  21332,  22812,  51,
++++    54,     51,     55,     51,     56,     51,     57,     52,     48,
++++    52,     49,     52,     50,     52,     51,     52,     52,     52,
++++    53,     52,     54,     52,     55,     52,     56,     52,     57,
++++    53,     48,     49,     26376,  50,     26376,  51,     26376,  52,
++++    26376,  53,     26376,  54,     26376,  55,     26376,  56,     26376,
++++    57,     26376,  49,     48,     26376,  49,     49,     26376,  49,
++++    50,     26376,  72,     103,    101,    114,    103,    101,    86,
++++    76,     84,     68,     12450,  12452,  12454,  12456,  12458,  12459,
++++    12461,  12463,  12465,  12467,  12469,  12471,  12473,  12475,  12477,
++++    12479,  12481,  12484,  12486,  12488,  12490,  12491,  12492,  12493,
++++    12494,  12495,  12498,  12501,  12504,  12507,  12510,  12511,  12512,
++++    12513,  12514,  12516,  12518,  12520,  12521,  12522,  12523,  12524,
++++    12525,  12527,  12528,  12529,  12530,  20196,  21644,  12450,  12495,
++++    12442,  12540,  12488,  12450,  12523,  12501,  12449,  12450,  12531,
++++    12504,  12442,  12450,  12450,  12540,  12523,  12452,  12491,  12531,
++++    12463,  12441,  12452,  12531,  12481,  12454,  12457,  12531,  12456,
++++    12473,  12463,  12540,  12488,  12441,  12456,  12540,  12459,  12540,
++++    12458,  12531,  12473,  12458,  12540,  12512,  12459,  12452,  12522,
++++    12459,  12521,  12483,  12488,  12459,  12525,  12522,  12540,  12459,
++++    12441,  12525,  12531,  12459,  12441,  12531,  12510,  12461,  12441,
++++    12459,  12441,  12461,  12441,  12491,  12540,  12461,  12517,  12522,
++++    12540,  12461,  12441,  12523,  12479,  12441,  12540,  12461,  12525,
++++    12461,  12525,  12463,  12441,  12521,  12512,  12461,  12525,  12513,
++++    12540,  12488,  12523,  12461,  12525,  12527,  12483,  12488,  12463,
++++    12441,  12521,  12512,  12463,  12441,  12521,  12512,  12488,  12531,
++++    12463,  12523,  12475,  12441,  12452,  12525,  12463,  12525,  12540,
++++    12493,  12465,  12540,  12473,  12467,  12523,  12490,  12467,  12540,
++++    12507,  12442,  12469,  12452,  12463,  12523,  12469,  12531,  12481,
++++    12540,  12512,  12471,  12522,  12531,  12463,  12441,  12475,  12531,
++++    12481,  12475,  12531,  12488,  12479,  12441,  12540,  12473,  12486,
++++    12441,  12471,  12488,  12441,  12523,  12488,  12531,  12490,  12494,
++++    12494,  12483,  12488,  12495,  12452,  12484,  12495,  12442,  12540,
++++    12475,  12531,  12488,  12495,  12442,  12540,  12484,  12495,  12441,
++++    12540,  12524,  12523,  12498,  12442,  12450,  12473,  12488,  12523,
++++    12498,  12442,  12463,  12523,  12498,  12442,  12467,  12498,  12441,
++++    12523,  12501,  12449,  12521,  12483,  12488,  12441,  12501,  12451,
++++    12540,  12488,  12501,  12441,  12483,  12471,  12455,  12523,  12501,
++++    12521,  12531,  12504,  12463,  12479,  12540,  12523,  12504,  12442,
++++    12477,  12504,  12442,  12491,  12498,  12504,  12523,  12484,  12504,
++++    12442,  12531,  12473,  12504,  12442,  12540,  12471,  12441,  12504,
++++    12441,  12540,  12479,  12507,  12442,  12452,  12531,  12488,  12507,
++++    12441,  12523,  12488,  12507,  12531,  12507,  12442,  12531,  12488,
++++    12441,  12507,  12540,  12523,  12507,  12540,  12531,  12510,  12452,
++++    12463,  12525,  12510,  12452,  12523,  12510,  12483,  12495,  12510,
++++    12523,  12463,  12510,  12531,  12471,  12519,  12531,  12511,  12463,
++++    12525,  12531,  12511,  12522,  12511,  12522,  12495,  12441,  12540,
++++    12523,  12513,  12459,  12441,  12513,  12459,  12441,  12488,  12531,
++++    12513,  12540,  12488,  12523,  12516,  12540,  12488,  12441,  12516,
++++    12540,  12523,  12518,  12450,  12531,  12522,  12483,  12488,  12523,
++++    12522,  12521,  12523,  12498,  12442,  12540,  12523,  12540,  12501,
++++    12441,  12523,  12524,  12512,  12524,  12531,  12488,  12465,  12441,
++++    12531,  12527,  12483,  12488,  48,     28857,  49,     28857,  50,
++++    28857,  51,     28857,  52,     28857,  53,     28857,  54,     28857,
++++    55,     28857,  56,     28857,  57,     28857,  49,     48,     28857,
++++    49,     49,     28857,  49,     50,     28857,  49,     51,     28857,
++++    49,     52,     28857,  49,     53,     28857,  49,     54,     28857,
++++    49,     55,     28857,  49,     56,     28857,  49,     57,     28857,
++++    50,     48,     28857,  50,     49,     28857,  50,     50,     28857,
++++    50,     51,     28857,  50,     52,     28857,  104,    80,     97,
++++    100,    97,     65,     85,     98,     97,     114,    111,    86,
++++    112,    99,     100,    109,    100,    109,    50,     100,    109,
++++    51,     73,     85,     24179,  25104,  26157,  21644,  22823,  27491,
++++    26126,  27835,  26666,  24335,  20250,  31038,  112,    65,     110,
++++    65,     956,    65,     109,    65,     107,    65,     75,     66,
++++    77,     66,     71,     66,     99,     97,     108,    107,    99,
++++    97,     108,    112,    70,     110,    70,     956,    70,     956,
++++    103,    109,    103,    107,    103,    72,     122,    107,    72,
++++    122,    77,     72,     122,    71,     72,     122,    84,     72,
++++    122,    956,    108,    109,    108,    100,    108,    107,    108,
++++    102,    109,    110,    109,    956,    109,    109,    109,    99,
++++    109,    107,    109,    109,    109,    50,     99,     109,    50,
++++    109,    50,     107,    109,    50,     109,    109,    51,     99,
++++    109,    51,     109,    51,     107,    109,    51,     109,    8725,
++++    115,    109,    8725,   115,    50,     80,     97,     107,    80,
++++    97,     77,     80,     97,     71,     80,     97,     114,    97,
++++    100,    114,    97,     100,    8725,   115,    114,    97,     100,
++++    8725,   115,    50,     112,    115,    110,    115,    956,    115,
++++    109,    115,    112,    86,     110,    86,     956,    86,     109,
++++    86,     107,    86,     77,     86,     112,    87,     110,    87,
++++    956,    87,     109,    87,     107,    87,     77,     87,     107,
++++    937,    77,     937,    97,     46,     109,    46,     66,     113,
++++    99,     99,     99,     100,    67,     8725,   107,    103,    67,
++++    111,    46,     100,    66,     71,     121,    104,    97,     72,
++++    80,     105,    110,    75,     75,     75,     77,     107,    116,
++++    108,    109,    108,    110,    108,    111,    103,    108,    120,
++++    109,    98,     109,    105,    108,    109,    111,    108,    80,
++++    72,     112,    46,     109,    46,     80,     80,     77,     80,
++++    82,     115,    114,    83,     118,    87,     98,     86,     8725,
++++    109,    65,     8725,   109,    49,     26085,  50,     26085,  51,
++++    26085,  52,     26085,  53,     26085,  54,     26085,  55,     26085,
++++    56,     26085,  57,     26085,  49,     48,     26085,  49,     49,
++++    26085,  49,     50,     26085,  49,     51,     26085,  49,     52,
++++    26085,  49,     53,     26085,  49,     54,     26085,  49,     55,
++++    26085,  49,     56,     26085,  49,     57,     26085,  50,     48,
++++    26085,  50,     49,     26085,  50,     50,     26085,  50,     51,
++++    26085,  50,     52,     26085,  50,     53,     26085,  50,     54,
++++    26085,  50,     55,     26085,  50,     56,     26085,  50,     57,
++++    26085,  51,     48,     26085,  51,     49,     26085,  103,    97,
++++    108,    1098,   1100,   42863,  67,     70,     81,     294,    339,
++++    42791,  43831,  619,    43858,  653,    35912,  26356,  36554,  36040,
++++    28369,  20018,  21477,  40860,  40860,  22865,  37329,  21895,  22856,
++++    25078,  30313,  32645,  34367,  34746,  35064,  37007,  27138,  27931,
++++    28889,  29662,  33853,  37226,  39409,  20098,  21365,  27396,  29211,
++++    34349,  40478,  23888,  28651,  34253,  35172,  25289,  33240,  34847,
++++    24266,  26391,  28010,  29436,  37070,  20358,  20919,  21214,  25796,
++++    27347,  29200,  30439,  32769,  34310,  34396,  36335,  38706,  39791,
++++    40442,  30860,  31103,  32160,  33737,  37636,  40575,  35542,  22751,
++++    24324,  31840,  32894,  29282,  30922,  36034,  38647,  22744,  23650,
++++    27155,  28122,  28431,  32047,  32311,  38475,  21202,  32907,  20956,
++++    20940,  31260,  32190,  33777,  38517,  35712,  25295,  27138,  35582,
++++    20025,  23527,  24594,  29575,  30064,  21271,  30971,  20415,  24489,
++++    19981,  27852,  25976,  32034,  21443,  22622,  30465,  33865,  35498,
++++    27578,  36784,  27784,  25342,  33509,  25504,  30053,  20142,  20841,
++++    20937,  26753,  31975,  33391,  35538,  37327,  21237,  21570,  22899,
++++    24300,  26053,  28670,  31018,  38317,  39530,  40599,  40654,  21147,
++++    26310,  27511,  36706,  24180,  24976,  25088,  25754,  28451,  29001,
++++    29833,  31178,  32244,  32879,  36646,  34030,  36899,  37706,  21015,
++++    21155,  21693,  28872,  35010,  35498,  24265,  24565,  25467,  27566,
++++    31806,  29557,  20196,  22265,  23527,  23994,  24604,  29618,  29801,
++++    32666,  32838,  37428,  38646,  38728,  38936,  20363,  31150,  37300,
++++    38584,  24801,  20102,  20698,  23534,  23615,  26009,  27138,  29134,
++++    30274,  34044,  36988,  40845,  26248,  38446,  21129,  26491,  26611,
++++    27969,  28316,  29705,  30041,  30827,  32016,  39006,  20845,  25134,
++++    38520,  20523,  23833,  28138,  36650,  24459,  24900,  26647,  29575,
++++    38534,  21033,  21519,  23653,  26131,  26446,  26792,  27877,  29702,
++++    30178,  32633,  35023,  35041,  37324,  38626,  21311,  28346,  21533,
++++    29136,  29848,  34298,  38563,  40023,  40607,  26519,  28107,  33256,
++++    31435,  31520,  31890,  29376,  28825,  35672,  20160,  33590,  21050,
++++    20999,  24230,  25299,  31958,  23429,  27934,  26292,  36667,  34892,
++++    38477,  35211,  24275,  20800,  21952,  22618,  26228,  20958,  29482,
++++    30410,  31036,  31070,  31077,  31119,  38742,  31934,  32701,  34322,
++++    35576,  36920,  37117,  39151,  39164,  39208,  40372,  37086,  38583,
++++    20398,  20711,  20813,  21193,  21220,  21329,  21917,  22022,  22120,
++++    22592,  22696,  23652,  23662,  24724,  24936,  24974,  25074,  25935,
++++    26082,  26257,  26757,  28023,  28186,  28450,  29038,  29227,  29730,
++++    30865,  31038,  31049,  31048,  31056,  31062,  31069,  31117,  31118,
++++    31296,  31361,  31680,  32244,  32265,  32321,  32626,  32773,  33261,
++++    33401,  33401,  33879,  35088,  35222,  35585,  35641,  36051,  36104,
++++    36790,  36920,  38627,  38911,  38971,  24693,  148206, 33304,  20006,
++++    20917,  20840,  20352,  20805,  20864,  21191,  21242,  21917,  21845,
++++    21913,  21986,  22618,  22707,  22852,  22868,  23138,  23336,  24274,
++++    24281,  24425,  24493,  24792,  24910,  24840,  24974,  24928,  25074,
++++    25140,  25540,  25628,  25682,  25942,  26228,  26391,  26395,  26454,
++++    27513,  27578,  27969,  28379,  28363,  28450,  28702,  29038,  30631,
++++    29237,  29359,  29482,  29809,  29958,  30011,  30237,  30239,  30410,
++++    30427,  30452,  30538,  30528,  30924,  31409,  31680,  31867,  32091,
++++    32244,  32574,  32773,  33618,  33775,  34681,  35137,  35206,  35222,
++++    35519,  35576,  35531,  35585,  35582,  35565,  35641,  35722,  36104,
++++    36664,  36978,  37273,  37494,  38524,  38627,  38742,  38875,  38911,
++++    38923,  38971,  39698,  40860,  141386, 141380, 144341, 15261,  16408,
++++    16441,  152137, 154832, 163539, 40771,  40846,  102,    102,    102,
++++    105,    102,    108,    102,    102,    105,    102,    102,    108,
++++    115,    116,    115,    116,    1396,   1398,   1396,   1381,   1396,
++++    1387,   1406,   1398,   1396,   1389,   1497,   1460,   1522,   1463,
++++    1506,   1488,   1491,   1492,   1499,   1500,   1501,   1512,   1514,
++++    43,     1513,   1473,   1513,   1474,   1513,   1468,   1473,   1513,
++++    1468,   1474,   1488,   1463,   1488,   1464,   1488,   1468,   1489,
++++    1468,   1490,   1468,   1491,   1468,   1492,   1468,   1493,   1468,
++++    1494,   1468,   1496,   1468,   1497,   1468,   1498,   1468,   1499,
++++    1468,   1500,   1468,   1502,   1468,   1504,   1468,   1505,   1468,
++++    1507,   1468,   1508,   1468,   1510,   1468,   1511,   1468,   1512,
++++    1468,   1513,   1468,   1514,   1468,   1493,   1465,   1489,   1471,
++++    1499,   1471,   1508,   1471,   1488,   1500,   1649,   1649,   1659,
++++    1659,   1659,   1659,   1662,   1662,   1662,   1662,   1664,   1664,
++++    1664,   1664,   1658,   1658,   1658,   1658,   1663,   1663,   1663,
++++    1663,   1657,   1657,   1657,   1657,   1700,   1700,   1700,   1700,
++++    1702,   1702,   1702,   1702,   1668,   1668,   1668,   1668,   1667,
++++    1667,   1667,   1667,   1670,   1670,   1670,   1670,   1671,   1671,
++++    1671,   1671,   1677,   1677,   1676,   1676,   1678,   1678,   1672,
++++    1672,   1688,   1688,   1681,   1681,   1705,   1705,   1705,   1705,
++++    1711,   1711,   1711,   1711,   1715,   1715,   1715,   1715,   1713,
++++    1713,   1713,   1713,   1722,   1722,   1723,   1723,   1723,   1723,
++++    1749,   1620,   1749,   1620,   1729,   1729,   1729,   1729,   1726,
++++    1726,   1726,   1726,   1746,   1746,   1746,   1620,   1746,   1620,
++++    1709,   1709,   1709,   1709,   1735,   1735,   1734,   1734,   1736,
++++    1736,   1735,   1652,   1739,   1739,   1733,   1733,   1737,   1737,
++++    1744,   1744,   1744,   1744,   1609,   1609,   1610,   1620,   1575,
++++    1610,   1620,   1575,   1610,   1620,   1749,   1610,   1620,   1749,
++++    1610,   1620,   1608,   1610,   1620,   1608,   1610,   1620,   1735,
++++    1610,   1620,   1735,   1610,   1620,   1734,   1610,   1620,   1734,
++++    1610,   1620,   1736,   1610,   1620,   1736,   1610,   1620,   1744,
++++    1610,   1620,   1744,   1610,   1620,   1744,   1610,   1620,   1609,
++++    1610,   1620,   1609,   1610,   1620,   1609,   1740,   1740,   1740,
++++    1740,   1610,   1620,   1580,   1610,   1620,   1581,   1610,   1620,
++++    1605,   1610,   1620,   1609,   1610,   1620,   1610,   1576,   1580,
++++    1576,   1581,   1576,   1582,   1576,   1605,   1576,   1609,   1576,
++++    1610,   1578,   1580,   1578,   1581,   1578,   1582,   1578,   1605,
++++    1578,   1609,   1578,   1610,   1579,   1580,   1579,   1605,   1579,
++++    1609,   1579,   1610,   1580,   1581,   1580,   1605,   1581,   1580,
++++    1581,   1605,   1582,   1580,   1582,   1581,   1582,   1605,   1587,
++++    1580,   1587,   1581,   1587,   1582,   1587,   1605,   1589,   1581,
++++    1589,   1605,   1590,   1580,   1590,   1581,   1590,   1582,   1590,
++++    1605,   1591,   1581,   1591,   1605,   1592,   1605,   1593,   1580,
++++    1593,   1605,   1594,   1580,   1594,   1605,   1601,   1580,   1601,
++++    1581,   1601,   1582,   1601,   1605,   1601,   1609,   1601,   1610,
++++    1602,   1581,   1602,   1605,   1602,   1609,   1602,   1610,   1603,
++++    1575,   1603,   1580,   1603,   1581,   1603,   1582,   1603,   1604,
++++    1603,   1605,   1603,   1609,   1603,   1610,   1604,   1580,   1604,
++++    1581,   1604,   1582,   1604,   1605,   1604,   1609,   1604,   1610,
++++    1605,   1580,   1605,   1581,   1605,   1582,   1605,   1605,   1605,
++++    1609,   1605,   1610,   1606,   1580,   1606,   1581,   1606,   1582,
++++    1606,   1605,   1606,   1609,   1606,   1610,   1607,   1580,   1607,
++++    1605,   1607,   1609,   1607,   1610,   1610,   1580,   1610,   1581,
++++    1610,   1582,   1610,   1605,   1610,   1609,   1610,   1610,   1584,
++++    1648,   1585,   1648,   1609,   1648,   32,     1612,   1617,   32,
++++    1613,   1617,   32,     1614,   1617,   32,     1615,   1617,   32,
++++    1616,   1617,   32,     1617,   1648,   1610,   1620,   1585,   1610,
++++    1620,   1586,   1610,   1620,   1605,   1610,   1620,   1606,   1610,
++++    1620,   1609,   1610,   1620,   1610,   1576,   1585,   1576,   1586,
++++    1576,   1605,   1576,   1606,   1576,   1609,   1576,   1610,   1578,
++++    1585,   1578,   1586,   1578,   1605,   1578,   1606,   1578,   1609,
++++    1578,   1610,   1579,   1585,   1579,   1586,   1579,   1605,   1579,
++++    1606,   1579,   1609,   1579,   1610,   1601,   1609,   1601,   1610,
++++    1602,   1609,   1602,   1610,   1603,   1575,   1603,   1604,   1603,
++++    1605,   1603,   1609,   1603,   1610,   1604,   1605,   1604,   1609,
++++    1604,   1610,   1605,   1575,   1605,   1605,   1606,   1585,   1606,
++++    1586,   1606,   1605,   1606,   1606,   1606,   1609,   1606,   1610,
++++    1609,   1648,   1610,   1585,   1610,   1586,   1610,   1605,   1610,
++++    1606,   1610,   1609,   1610,   1610,   1610,   1620,   1580,   1610,
++++    1620,   1581,   1610,   1620,   1582,   1610,   1620,   1605,   1610,
++++    1620,   1607,   1576,   1580,   1576,   1581,   1576,   1582,   1576,
++++    1605,   1576,   1607,   1578,   1580,   1578,   1581,   1578,   1582,
++++    1578,   1605,   1578,   1607,   1579,   1605,   1580,   1581,   1580,
++++    1605,   1581,   1580,   1581,   1605,   1582,   1580,   1582,   1605,
++++    1587,   1580,   1587,   1581,   1587,   1582,   1587,   1605,   1589,
++++    1581,   1589,   1582,   1589,   1605,   1590,   1580,   1590,   1581,
++++    1590,   1582,   1590,   1605,   1591,   1581,   1592,   1605,   1593,
++++    1580,   1593,   1605,   1594,   1580,   1594,   1605,   1601,   1580,
++++    1601,   1581,   1601,   1582,   1601,   1605,   1602,   1581,   1602,
++++    1605,   1603,   1580,   1603,   1581,   1603,   1582,   1603,   1604,
++++    1603,   1605,   1604,   1580,   1604,   1581,   1604,   1582,   1604,
++++    1605,   1604,   1607,   1605,   1580,   1605,   1581,   1605,   1582,
++++    1605,   1605,   1606,   1580,   1606,   1581,   1606,   1582,   1606,
++++    1605,   1606,   1607,   1607,   1580,   1607,   1605,   1607,   1648,
++++    1610,   1580,   1610,   1581,   1610,   1582,   1610,   1605,   1610,
++++    1607,   1610,   1620,   1605,   1610,   1620,   1607,   1576,   1605,
++++    1576,   1607,   1578,   1605,   1578,   1607,   1579,   1605,   1579,
++++    1607,   1587,   1605,   1587,   1607,   1588,   1605,   1588,   1607,
++++    1603,   1604,   1603,   1605,   1604,   1605,   1606,   1605,   1606,
++++    1607,   1610,   1605,   1610,   1607,   1600,   1614,   1617,   1600,
++++    1615,   1617,   1600,   1616,   1617,   1591,   1609,   1591,   1610,
++++    1593,   1609,   1593,   1610,   1594,   1609,   1594,   1610,   1587,
++++    1609,   1587,   1610,   1588,   1609,   1588,   1610,   1581,   1609,
++++    1581,   1610,   1580,   1609,   1580,   1610,   1582,   1609,   1582,
++++    1610,   1589,   1609,   1589,   1610,   1590,   1609,   1590,   1610,
++++    1588,   1580,   1588,   1581,   1588,   1582,   1588,   1605,   1588,
++++    1585,   1587,   1585,   1589,   1585,   1590,   1585,   1591,   1609,
++++    1591,   1610,   1593,   1609,   1593,   1610,   1594,   1609,   1594,
++++    1610,   1587,   1609,   1587,   1610,   1588,   1609,   1588,   1610,
++++    1581,   1609,   1581,   1610,   1580,   1609,   1580,   1610,   1582,
++++    1609,   1582,   1610,   1589,   1609,   1589,   1610,   1590,   1609,
++++    1590,   1610,   1588,   1580,   1588,   1581,   1588,   1582,   1588,
++++    1605,   1588,   1585,   1587,   1585,   1589,   1585,   1590,   1585,
++++    1588,   1580,   1588,   1581,   1588,   1582,   1588,   1605,   1587,
++++    1607,   1588,   1607,   1591,   1605,   1587,   1580,   1587,   1581,
++++    1587,   1582,   1588,   1580,   1588,   1581,   1588,   1582,   1591,
++++    1605,   1592,   1605,   1575,   1611,   1575,   1611,   1578,   1580,
++++    1605,   1578,   1581,   1580,   1578,   1581,   1580,   1578,   1581,
++++    1605,   1578,   1582,   1605,   1578,   1605,   1580,   1578,   1605,
++++    1581,   1578,   1605,   1582,   1580,   1605,   1581,   1580,   1605,
++++    1581,   1581,   1605,   1610,   1581,   1605,   1609,   1587,   1581,
++++    1580,   1587,   1580,   1581,   1587,   1580,   1609,   1587,   1605,
++++    1581,   1587,   1605,   1581,   1587,   1605,   1580,   1587,   1605,
++++    1605,   1587,   1605,   1605,   1589,   1581,   1581,   1589,   1581,
++++    1581,   1589,   1605,   1605,   1588,   1581,   1605,   1588,   1581,
++++    1605,   1588,   1580,   1610,   1588,   1605,   1582,   1588,   1605,
++++    1582,   1588,   1605,   1605,   1588,   1605,   1605,   1590,   1581,
++++    1609,   1590,   1582,   1605,   1590,   1582,   1605,   1591,   1605,
++++    1581,   1591,   1605,   1581,   1591,   1605,   1605,   1591,   1605,
++++    1610,   1593,   1580,   1605,   1593,   1605,   1605,   1593,   1605,
++++    1605,   1593,   1605,   1609,   1594,   1605,   1605,   1594,   1605,
++++    1610,   1594,   1605,   1609,   1601,   1582,   1605,   1601,   1582,
++++    1605,   1602,   1605,   1581,   1602,   1605,   1605,   1604,   1581,
++++    1605,   1604,   1581,   1610,   1604,   1581,   1609,   1604,   1580,
++++    1580,   1604,   1580,   1580,   1604,   1582,   1605,   1604,   1582,
++++    1605,   1604,   1605,   1581,   1604,   1605,   1581,   1605,   1581,
++++    1580,   1605,   1581,   1605,   1605,   1581,   1610,   1605,   1580,
++++    1581,   1605,   1580,   1605,   1605,   1582,   1580,   1605,   1582,
++++    1605,   1605,   1580,   1582,   1607,   1605,   1580,   1607,   1605,
++++    1605,   1606,   1581,   1605,   1606,   1581,   1609,   1606,   1580,
++++    1605,   1606,   1580,   1605,   1606,   1580,   1609,   1606,   1605,
++++    1610,   1606,   1605,   1609,   1610,   1605,   1605,   1610,   1605,
++++    1605,   1576,   1582,   1610,   1578,   1580,   1610,   1578,   1580,
++++    1609,   1578,   1582,   1610,   1578,   1582,   1609,   1578,   1605,
++++    1610,   1578,   1605,   1609,   1580,   1605,   1610,   1580,   1581,
++++    1609,   1580,   1605,   1609,   1587,   1582,   1609,   1589,   1581,
++++    1610,   1588,   1581,   1610,   1590,   1581,   1610,   1604,   1580,
++++    1610,   1604,   1605,   1610,   1610,   1581,   1610,   1610,   1580,
++++    1610,   1610,   1605,   1610,   1605,   1605,   1610,   1602,   1605,
++++    1610,   1606,   1581,   1610,   1602,   1605,   1581,   1604,   1581,
++++    1605,   1593,   1605,   1610,   1603,   1605,   1610,   1606,   1580,
++++    1581,   1605,   1582,   1610,   1604,   1580,   1605,   1603,   1605,
++++    1605,   1604,   1580,   1605,   1606,   1580,   1581,   1580,   1581,
++++    1610,   1581,   1580,   1610,   1605,   1580,   1610,   1601,   1605,
++++    1610,   1576,   1581,   1610,   1603,   1605,   1605,   1593,   1580,
++++    1605,   1589,   1605,   1605,   1587,   1582,   1610,   1606,   1580,
++++    1610,   1589,   1604,   1746,   1602,   1604,   1746,   1575,   1604,
++++    1604,   1607,   1575,   1603,   1576,   1585,   1605,   1581,   1605,
++++    1583,   1589,   1604,   1593,   1605,   1585,   1587,   1608,   1604,
++++    1593,   1604,   1610,   1607,   1608,   1587,   1604,   1605,   1589,
++++    1604,   1609,   1589,   1604,   1609,   32,     1575,   1604,   1604,
++++    1607,   32,     1593,   1604,   1610,   1607,   32,     1608,   1587,
++++    1604,   1605,   1580,   1604,   32,     1580,   1604,   1575,   1604,
++++    1607,   1585,   1740,   1575,   1604,   44,     12289,  12290,  58,
++++    59,     33,     63,     12310,  12311,  46,     46,     46,     46,
++++    46,     8212,   8211,   95,     95,     40,     41,     123,    125,
++++    12308,  12309,  12304,  12305,  12298,  12299,  12296,  12297,  12300,
++++    12301,  12302,  12303,  91,     93,     32,     773,    32,     773,
++++    32,     773,    32,     773,    95,     95,     95,     44,     12289,
++++    46,     59,     58,     63,     33,     8212,   40,     41,     123,
++++    125,    12308,  12309,  35,     38,     42,     43,     45,     60,
++++    62,     61,     92,     36,     37,     64,     32,     1611,   1600,
++++    1611,   32,     1612,   32,     1613,   32,     1614,   1600,   1614,
++++    32,     1615,   1600,   1615,   32,     1616,   1600,   1616,   32,
++++    1617,   1600,   1617,   32,     1618,   1600,   1618,   1569,   1575,
++++    1619,   1575,   1619,   1575,   1620,   1575,   1620,   1608,   1620,
++++    1608,   1620,   1575,   1621,   1575,   1621,   1610,   1620,   1610,
++++    1620,   1610,   1620,   1610,   1620,   1575,   1575,   1576,   1576,
++++    1576,   1576,   1577,   1577,   1578,   1578,   1578,   1578,   1579,
++++    1579,   1579,   1579,   1580,   1580,   1580,   1580,   1581,   1581,
++++    1581,   1581,   1582,   1582,   1582,   1582,   1583,   1583,   1584,
++++    1584,   1585,   1585,   1586,   1586,   1587,   1587,   1587,   1587,
++++    1588,   1588,   1588,   1588,   1589,   1589,   1589,   1589,   1590,
++++    1590,   1590,   1590,   1591,   1591,   1591,   1591,   1592,   1592,
++++    1592,   1592,   1593,   1593,   1593,   1593,   1594,   1594,   1594,
++++    1594,   1601,   1601,   1601,   1601,   1602,   1602,   1602,   1602,
++++    1603,   1603,   1603,   1603,   1604,   1604,   1604,   1604,   1605,
++++    1605,   1605,   1605,   1606,   1606,   1606,   1606,   1607,   1607,
++++    1607,   1607,   1608,   1608,   1609,   1609,   1610,   1610,   1610,
++++    1610,   1604,   1575,   1619,   1604,   1575,   1619,   1604,   1575,
++++    1620,   1604,   1575,   1620,   1604,   1575,   1621,   1604,   1575,
++++    1621,   1604,   1575,   1604,   1575,   33,     34,     35,     36,
++++    37,     38,     39,     40,     41,     42,     43,     44,     45,
++++    46,     47,     48,     49,     50,     51,     52,     53,     54,
++++    55,     56,     57,     58,     59,     60,     61,     62,     63,
++++    64,     65,     66,     67,     68,     69,     70,     71,     72,
++++    73,     74,     75,     76,     77,     78,     79,     80,     81,
++++    82,     83,     84,     85,     86,     87,     88,     89,     90,
++++    91,     92,     93,     94,     95,     96,     97,     98,     99,
++++    100,    101,    102,    103,    104,    105,    106,    107,    108,
++++    109,    110,    111,    112,    113,    114,    115,    116,    117,
++++    118,    119,    120,    121,    122,    123,    124,    125,    126,
++++    10629,  10630,  12290,  12300,  12301,  12289,  12539,  12530,  12449,
++++    12451,  12453,  12455,  12457,  12515,  12517,  12519,  12483,  12540,
++++    12450,  12452,  12454,  12456,  12458,  12459,  12461,  12463,  12465,
++++    12467,  12469,  12471,  12473,  12475,  12477,  12479,  12481,  12484,
++++    12486,  12488,  12490,  12491,  12492,  12493,  12494,  12495,  12498,
++++    12501,  12504,  12507,  12510,  12511,  12512,  12513,  12514,  12516,
++++    12518,  12520,  12521,  12522,  12523,  12524,  12525,  12527,  12531,
++++    12441,  12442,  4448,   4352,   4353,   4522,   4354,   4524,   4525,
++++    4355,   4356,   4357,   4528,   4529,   4530,   4531,   4532,   4533,
++++    4378,   4358,   4359,   4360,   4385,   4361,   4362,   4363,   4364,
++++    4365,   4366,   4367,   4368,   4369,   4370,   4449,   4450,   4451,
++++    4452,   4453,   4454,   4455,   4456,   4457,   4458,   4459,   4460,
++++    4461,   4462,   4463,   4464,   4465,   4466,   4467,   4468,   4469,
++++    162,    163,    172,    32,     772,    166,    165,    8361,   9474,
++++    8592,   8593,   8594,   8595,   9632,   9675,   720,    721,    230,
++++    665,    595,    675,    43878,  677,    676,    598,    599,    7569,
++++    600,    606,    681,    612,    610,    608,    667,    295,    668,
++++    615,    644,    682,    683,    620,    122628, 42894,  622,    122629,
++++    654,    122630, 248,    630,    631,    113,    634,    122632, 637,
++++    638,    640,    680,    678,    43879,  679,    648,    11377,  655,
++++    673,    674,    664,    448,    449,    450,    122634, 122654, 69785,
++++    69818,  69787,  69818,  69797,  69818,  69937,  69927,  69938,  69927,
++++    70471,  70462,  70471,  70487,  70841,  70842,  70841,  70832,  70841,
++++    70845,  71096,  71087,  71097,  71087,  71989,  71984,  119127, 119141,
++++    119128, 119141, 119128, 119141, 119150, 119128, 119141, 119151, 119128,
++++    119141, 119152, 119128, 119141, 119153, 119128, 119141, 119154, 119225,
++++    119141, 119226, 119141, 119225, 119141, 119150, 119226, 119141, 119150,
++++    119225, 119141, 119151, 119226, 119141, 119151, 65,     66,     67,
++++    68,     69,     70,     71,     72,     73,     74,     75,     76,
++++    77,     78,     79,     80,     81,     82,     83,     84,     85,
++++    86,     87,     88,     89,     90,     97,     98,     99,     100,
++++    101,    102,    103,    104,    105,    106,    107,    108,    109,
++++    110,    111,    112,    113,    114,    115,    116,    117,    118,
++++    119,    120,    121,    122,    65,     66,     67,     68,     69,
++++    70,     71,     72,     73,     74,     75,     76,     77,     78,
++++    79,     80,     81,     82,     83,     84,     85,     86,     87,
++++    88,     89,     90,     97,     98,     99,     100,    101,    102,
++++    103,    105,    106,    107,    108,    109,    110,    111,    112,
++++    113,    114,    115,    116,    117,    118,    119,    120,    121,
++++    122,    65,     66,     67,     68,     69,     70,     71,     72,
++++    73,     74,     75,     76,     77,     78,     79,     80,     81,
++++    82,     83,     84,     85,     86,     87,     88,     89,     90,
++++    97,     98,     99,     100,    101,    102,    103,    104,    105,
++++    106,    107,    108,    109,    110,    111,    112,    113,    114,
++++    115,    116,    117,    118,    119,    120,    121,    122,    65,
++++    67,     68,     71,     74,     75,     78,     79,     80,     81,
++++    83,     84,     85,     86,     87,     88,     89,     90,     97,
++++    98,     99,     100,    102,    104,    105,    106,    107,    108,
++++    109,    110,    112,    113,    114,    115,    116,    117,    118,
++++    119,    120,    121,    122,    65,     66,     67,     68,     69,
++++    70,     71,     72,     73,     74,     75,     76,     77,     78,
++++    79,     80,     81,     82,     83,     84,     85,     86,     87,
++++    88,     89,     90,     97,     98,     99,     100,    101,    102,
++++    103,    104,    105,    106,    107,    108,    109,    110,    111,
++++    112,    113,    114,    115,    116,    117,    118,    119,    120,
++++    121,    122,    65,     66,     68,     69,     70,     71,     74,
++++    75,     76,     77,     78,     79,     80,     81,     83,     84,
++++    85,     86,     87,     88,     89,     97,     98,     99,     100,
++++    101,    102,    103,    104,    105,    106,    107,    108,    109,
++++    110,    111,    112,    113,    114,    115,    116,    117,    118,
++++    119,    120,    121,    122,    65,     66,     68,     69,     70,
++++    71,     73,     74,     75,     76,     77,     79,     83,     84,
++++    85,     86,     87,     88,     89,     97,     98,     99,     100,
++++    101,    102,    103,    104,    105,    106,    107,    108,    109,
++++    110,    111,    112,    113,    114,    115,    116,    117,    118,
++++    119,    120,    121,    122,    65,     66,     67,     68,     69,
++++    70,     71,     72,     73,     74,     75,     76,     77,     78,
++++    79,     80,     81,     82,     83,     84,     85,     86,     87,
++++    88,     89,     90,     97,     98,     99,     100,    101,    102,
++++    103,    104,    105,    106,    107,    108,    109,    110,    111,
++++    112,    113,    114,    115,    116,    117,    118,    119,    120,
++++    121,    122,    65,     66,     67,     68,     69,     70,     71,
++++    72,     73,     74,     75,     76,     77,     78,     79,     80,
++++    81,     82,     83,     84,     85,     86,     87,     88,     89,
++++    90,     97,     98,     99,     100,    101,    102,    103,    104,
++++    105,    106,    107,    108,    109,    110,    111,    112,    113,
++++    114,    115,    116,    117,    118,    119,    120,    121,    122,
++++    65,     66,     67,     68,     69,     70,     71,     72,     73,
++++    74,     75,     76,     77,     78,     79,     80,     81,     82,
++++    83,     84,     85,     86,     87,     88,     89,     90,     97,
++++    98,     99,     100,    101,    102,    103,    104,    105,    106,
++++    107,    108,    109,    110,    111,    112,    113,    114,    115,
++++    116,    117,    118,    119,    120,    121,    122,    65,     66,
++++    67,     68,     69,     70,     71,     72,     73,     74,     75,
++++    76,     77,     78,     79,     80,     81,     82,     83,     84,
++++    85,     86,     87,     88,     89,     90,     97,     98,     99,
++++    100,    101,    102,    103,    104,    105,    106,    107,    108,
++++    109,    110,    111,    112,    113,    114,    115,    116,    117,
++++    118,    119,    120,    121,    122,    65,     66,     67,     68,
++++    69,     70,     71,     72,     73,     74,     75,     76,     77,
++++    78,     79,     80,     81,     82,     83,     84,     85,     86,
++++    87,     88,     89,     90,     97,     98,     99,     100,    101,
++++    102,    103,    104,    105,    106,    107,    108,    109,    110,
++++    111,    112,    113,    114,    115,    116,    117,    118,    119,
++++    120,    121,    122,    65,     66,     67,     68,     69,     70,
++++    71,     72,     73,     74,     75,     76,     77,     78,     79,
++++    80,     81,     82,     83,     84,     85,     86,     87,     88,
++++    89,     90,     97,     98,     99,     100,    101,    102,    103,
++++    104,    105,    106,    107,    108,    109,    110,    111,    112,
++++    113,    114,    115,    116,    117,    118,    119,    120,    121,
++++    122,    305,    567,    913,    914,    915,    916,    917,    918,
++++    919,    920,    921,    922,    923,    924,    925,    926,    927,
++++    928,    929,    920,    931,    932,    933,    934,    935,    936,
++++    937,    8711,   945,    946,    947,    948,    949,    950,    951,
++++    952,    953,    954,    955,    956,    957,    958,    959,    960,
++++    961,    962,    963,    964,    965,    966,    967,    968,    969,
++++    8706,   949,    952,    954,    966,    961,    960,    913,    914,
++++    915,    916,    917,    918,    919,    920,    921,    922,    923,
++++    924,    925,    926,    927,    928,    929,    920,    931,    932,
++++    933,    934,    935,    936,    937,    8711,   945,    946,    947,
++++    948,    949,    950,    951,    952,    953,    954,    955,    956,
++++    957,    958,    959,    960,    961,    962,    963,    964,    965,
++++    966,    967,    968,    969,    8706,   949,    952,    954,    966,
++++    961,    960,    913,    914,    915,    916,    917,    918,    919,
++++    920,    921,    922,    923,    924,    925,    926,    927,    928,
++++    929,    920,    931,    932,    933,    934,    935,    936,    937,
++++    8711,   945,    946,    947,    948,    949,    950,    951,    952,
++++    953,    954,    955,    956,    957,    958,    959,    960,    961,
++++    962,    963,    964,    965,    966,    967,    968,    969,    8706,
++++    949,    952,    954,    966,    961,    960,    913,    914,    915,
++++    916,    917,    918,    919,    920,    921,    922,    923,    924,
++++    925,    926,    927,    928,    929,    920,    931,    932,    933,
++++    934,    935,    936,    937,    8711,   945,    946,    947,    948,
++++    949,    950,    951,    952,    953,    954,    955,    956,    957,
++++    958,    959,    960,    961,    962,    963,    964,    965,    966,
++++    967,    968,    969,    8706,   949,    952,    954,    966,    961,
++++    960,    913,    914,    915,    916,    917,    918,    919,    920,
++++    921,    922,    923,    924,    925,    926,    927,    928,    929,
++++    920,    931,    932,    933,    934,    935,    936,    937,    8711,
++++    945,    946,    947,    948,    949,    950,    951,    952,    953,
++++    954,    955,    956,    957,    958,    959,    960,    961,    962,
++++    963,    964,    965,    966,    967,    968,    969,    8706,   949,
++++    952,    954,    966,    961,    960,    988,    989,    48,     49,
++++    50,     51,     52,     53,     54,     55,     56,     57,     48,
++++    49,     50,     51,     52,     53,     54,     55,     56,     57,
++++    48,     49,     50,     51,     52,     53,     54,     55,     56,
++++    57,     48,     49,     50,     51,     52,     53,     54,     55,
++++    56,     57,     48,     49,     50,     51,     52,     53,     54,
++++    55,     56,     57,     1072,   1073,   1074,   1075,   1076,   1077,
++++    1078,   1079,   1080,   1082,   1083,   1084,   1086,   1087,   1088,
++++    1089,   1090,   1091,   1092,   1093,   1094,   1095,   1096,   1099,
++++    1101,   1102,   42633,  1241,   1110,   1112,   1257,   1199,   1231,
++++    1072,   1073,   1074,   1075,   1076,   1077,   1078,   1079,   1080,
++++    1082,   1083,   1086,   1087,   1089,   1091,   1092,   1093,   1094,
++++    1095,   1096,   1098,   1099,   1169,   1110,   1109,   1119,   1195,
++++    42577,  1201,   1575,   1576,   1580,   1583,   1608,   1586,   1581,
++++    1591,   1610,   1603,   1604,   1605,   1606,   1587,   1593,   1601,
++++    1589,   1602,   1585,   1588,   1578,   1579,   1582,   1584,   1590,
++++    1592,   1594,   1646,   1722,   1697,   1647,   1576,   1580,   1607,
++++    1581,   1610,   1603,   1604,   1605,   1606,   1587,   1593,   1601,
++++    1589,   1602,   1588,   1578,   1579,   1582,   1590,   1594,   1580,
++++    1581,   1610,   1604,   1606,   1587,   1593,   1589,   1602,   1588,
++++    1582,   1590,   1594,   1722,   1647,   1576,   1580,   1607,   1581,
++++    1591,   1610,   1603,   1605,   1606,   1587,   1593,   1601,   1589,
++++    1602,   1588,   1578,   1579,   1582,   1590,   1592,   1594,   1646,
++++    1697,   1575,   1576,   1580,   1583,   1607,   1608,   1586,   1581,
++++    1591,   1610,   1604,   1605,   1606,   1587,   1593,   1601,   1589,
++++    1602,   1585,   1588,   1578,   1579,   1582,   1584,   1590,   1592,
++++    1594,   1576,   1580,   1583,   1608,   1586,   1581,   1591,   1610,
++++    1604,   1605,   1606,   1587,   1593,   1601,   1589,   1602,   1585,
++++    1588,   1578,   1579,   1582,   1584,   1590,   1592,   1594,   48,
++++    46,     48,     44,     49,     44,     50,     44,     51,     44,
++++    52,     44,     53,     44,     54,     44,     55,     44,     56,
++++    44,     57,     44,     40,     65,     41,     40,     66,     41,
++++    40,     67,     41,     40,     68,     41,     40,     69,     41,
++++    40,     70,     41,     40,     71,     41,     40,     72,     41,
++++    40,     73,     41,     40,     74,     41,     40,     75,     41,
++++    40,     76,     41,     40,     77,     41,     40,     78,     41,
++++    40,     79,     41,     40,     80,     41,     40,     81,     41,
++++    40,     82,     41,     40,     83,     41,     40,     84,     41,
++++    40,     85,     41,     40,     86,     41,     40,     87,     41,
++++    40,     88,     41,     40,     89,     41,     40,     90,     41,
++++    12308,  83,     12309,  67,     82,     67,     68,     87,     90,
++++    65,     66,     67,     68,     69,     70,     71,     72,     73,
++++    74,     75,     76,     77,     78,     79,     80,     81,     82,
++++    83,     84,     85,     86,     87,     88,     89,     90,     72,
++++    86,     77,     86,     83,     68,     83,     83,     80,     80,
++++    86,     87,     67,     77,     67,     77,     68,     77,     82,
++++    68,     74,     12411,  12363,  12467,  12467,  12469,  25163,  23383,
++++    21452,  12486,  12441,  20108,  22810,  35299,  22825,  20132,  26144,
++++    28961,  26009,  21069,  24460,  20877,  26032,  21021,  32066,  29983,
++++    36009,  22768,  21561,  28436,  25237,  25429,  19968,  19977,  36938,
++++    24038,  20013,  21491,  25351,  36208,  25171,  31105,  31354,  21512,
++++    28288,  26377,  26376,  30003,  21106,  21942,  37197,  12308,  26412,
++++    12309,  12308,  19977,  12309,  12308,  20108,  12309,  12308,  23433,
++++    12309,  12308,  28857,  12309,  12308,  25171,  12309,  12308,  30423,
++++    12309,  12308,  21213,  12309,  12308,  25943,  12309,  24471,  21487,
++++    48,     49,     50,     51,     52,     53,     54,     55,     56,
++++    57,     20029,  20024,  20033,  131362, 20320,  20398,  20411,  20482,
++++    20602,  20633,  20711,  20687,  13470,  132666, 20813,  20820,  20836,
++++    20855,  132380, 13497,  20839,  20877,  132427, 20887,  20900,  20172,
++++    20908,  20917,  168415, 20981,  20995,  13535,  21051,  21062,  21106,
++++    21111,  13589,  21191,  21193,  21220,  21242,  21253,  21254,  21271,
++++    21321,  21329,  21338,  21363,  21373,  21375,  21375,  21375,  133676,
++++    28784,  21450,  21471,  133987, 21483,  21489,  21510,  21662,  21560,
++++    21576,  21608,  21666,  21750,  21776,  21843,  21859,  21892,  21892,
++++    21913,  21931,  21939,  21954,  22294,  22022,  22295,  22097,  22132,
++++    20999,  22766,  22478,  22516,  22541,  22411,  22578,  22577,  22700,
++++    136420, 22770,  22775,  22790,  22810,  22818,  22882,  136872, 136938,
++++    23020,  23067,  23079,  23000,  23142,  14062,  14076,  23304,  23358,
++++    23358,  137672, 23491,  23512,  23527,  23539,  138008, 23551,  23558,
++++    24403,  23586,  14209,  23648,  23662,  23744,  23693,  138724, 23875,
++++    138726, 23918,  23915,  23932,  24033,  24034,  14383,  24061,  24104,
++++    24125,  24169,  14434,  139651, 14460,  24240,  24243,  24246,  24266,
++++    172946, 24318,  140081, 140081, 33281,  24354,  24354,  14535,  144056,
++++    156122, 24418,  24427,  14563,  24474,  24525,  24535,  24569,  24705,
++++    14650,  14620,  24724,  141012, 24775,  24904,  24908,  24910,  24908,
++++    24954,  24974,  25010,  24996,  25007,  25054,  25074,  25078,  25104,
++++    25115,  25181,  25265,  25300,  25424,  142092, 25405,  25340,  25448,
++++    25475,  25572,  142321, 25634,  25541,  25513,  14894,  25705,  25726,
++++    25757,  25719,  14956,  25935,  25964,  143370, 26083,  26360,  26185,
++++    15129,  26257,  15112,  15076,  20882,  20885,  26368,  26268,  32941,
++++    17369,  26391,  26395,  26401,  26462,  26451,  144323, 15177,  26618,
++++    26501,  26706,  26757,  144493, 26766,  26655,  26900,  15261,  26946,
++++    27043,  27114,  27304,  145059, 27355,  15384,  27425,  145575, 27476,
++++    15438,  27506,  27551,  27578,  27579,  146061, 138507, 146170, 27726,
++++    146620, 27839,  27853,  27751,  27926,  27966,  28023,  27969,  28009,
++++    28024,  28037,  146718, 27956,  28207,  28270,  15667,  28363,  28359,
++++    147153, 28153,  28526,  147294, 147342, 28614,  28729,  28702,  28699,
++++    15766,  28746,  28797,  28791,  28845,  132389, 28997,  148067, 29084,
++++    148395, 29224,  29237,  29264,  149000, 29312,  29333,  149301, 149524,
++++    29562,  29579,  16044,  29605,  16056,  16056,  29767,  29788,  29809,
++++    29829,  29898,  16155,  29988,  150582, 30014,  150674, 30064,  139679,
++++    30224,  151457, 151480, 151620, 16380,  16392,  30452,  151795, 151794,
++++    151833, 151859, 30494,  30495,  30495,  30538,  16441,  30603,  16454,
++++    16534,  152605, 30798,  30860,  30924,  16611,  153126, 31062,  153242,
++++    153285, 31119,  31211,  16687,  31296,  31306,  31311,  153980, 154279,
++++    154279, 31470,  16898,  154539, 31686,  31689,  16935,  154752, 31954,
++++    17056,  31976,  31971,  32000,  155526, 32099,  17153,  32199,  32258,
++++    32325,  17204,  156200, 156231, 17241,  156377, 32634,  156478, 32661,
++++    32762,  32773,  156890, 156963, 32864,  157096, 32880,  144223, 17365,
++++    32946,  33027,  17419,  33086,  23221,  157607, 157621, 144275, 144284,
++++    33281,  33284,  36766,  17515,  33425,  33419,  33437,  21171,  33457,
++++    33459,  33469,  33510,  158524, 33509,  33565,  33635,  33709,  33571,
++++    33725,  33767,  33879,  33619,  33738,  33740,  33756,  158774, 159083,
++++    158933, 17707,  34033,  34035,  34070,  160714, 34148,  159532, 17757,
++++    17761,  159665, 159954, 17771,  34384,  34396,  34407,  34409,  34473,
++++    34440,  34574,  34530,  34681,  34600,  34667,  34694,  17879,  34785,
++++    34817,  17913,  34912,  34915,  161383, 35031,  35038,  17973,  35066,
++++    13499,  161966, 162150, 18110,  18119,  35488,  35565,  35722,  35925,
++++    162984, 36011,  36033,  36123,  36215,  163631, 133124, 36299,  36284,
++++    36336,  133342, 36564,  36664,  165330, 165357, 37012,  37105,  37137,
++++    165678, 37147,  37432,  37591,  37592,  37500,  37881,  37909,  166906,
++++    38283,  18837,  38327,  167287, 18918,  38595,  23986,  38691,  168261,
++++    168474, 19054,  19062,  38880,  168970, 19122,  169110, 38923,  38923,
++++    38953,  169398, 39138,  19251,  39209,  39335,  39362,  39422,  19406,
++++    170800, 39698,  40000,  40189,  19662,  19693,  40295,  172238, 19704,
++++    172293, 172558, 172689, 40635,  19798,  40697,  40702,  40709,  40719,
++++    40726,  40763,  173568};
++++
++++const uint8_t canonical_combining_class_index[4352] = {
++++    0,  0,  0,  1,  2,  3,  4,  5,  6,  7,  8,  9,  10, 11, 12, 13, 14, 0,  0,
++++    15, 0,  0,  0,  16, 17, 18, 19, 20, 21, 22, 0,  0,  23, 0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  24, 25, 0,  0,  26, 0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  27, 0,  28, 29, 30,
++++    31, 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  32, 0,  0,  33, 0,  0,  34, 35, 36, 0,  0,  0,  0,  0,  0,
++++    37, 0,  0,  38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0,  52,
++++    53, 0,  54, 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  55, 56, 0,  0,  0,  57, 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  58, 0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  59, 60, 0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  61, 56, 62, 0,  63, 0,  0,  0,  64, 65, 0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
++++    0};
++++const uint8_t canonical_combining_class_block[67][256] = {
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
++++     230, 230, 230, 230, 230, 230, 232, 220, 220, 220, 220, 232, 216, 220, 220,
++++     220, 220, 220, 202, 202, 220, 220, 220, 220, 202, 202, 220, 220, 220, 220,
++++     220, 220, 220, 220, 220, 220, 220, 1,   1,   1,   1,   1,   220, 220, 220,
++++     220, 230, 230, 230, 230, 230, 230, 230, 230, 240, 230, 220, 220, 220, 230,
++++     230, 230, 220, 220, 0,   230, 230, 230, 220, 220, 220, 220, 230, 232, 220,
++++     220, 230, 233, 234, 234, 233, 234, 234, 233, 230, 230, 230, 230, 230, 230,
++++     230, 230, 230, 230, 230, 230, 230, 0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0},
++++    {0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 230,
++++     230, 230, 230, 230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   220, 230, 230, 230, 230,
++++     220, 230, 230, 230, 222, 220, 230, 230, 230, 230, 230, 230, 220, 220, 220,
++++     220, 220, 220, 230, 230, 220, 230, 230, 222, 228, 230, 10,  11,  12,  13,
++++     14,  15,  16,  17,  18,  19,  19,  20,  21,  22,  0,   23,  0,   24,  25,
++++     0,   230, 220, 0,   18,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0},
++++    {0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   230, 230, 230, 230, 230, 230, 230, 230, 30,  31,  32,  0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     27,  28,  29,  30,  31,  32,  33,  34,  230, 230, 220, 220, 230, 230, 230,
++++     230, 230, 220, 230, 230, 220, 0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   35,  0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   230, 230, 230, 230, 230, 230, 230, 0,   0,   230, 230,
++++     230, 230, 220, 230, 0,   0,   230, 230, 0,   220, 230, 230, 220, 0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0},
++++    {0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   36,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   230, 220, 230, 230, 220, 230, 230, 220, 220, 220, 230, 220,
++++     220, 230, 220, 230, 230, 230, 220, 230, 220, 230, 220, 230, 220, 230, 230,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   230, 230, 230, 230, 230,
++++     230, 230, 220, 230, 0,   0,   0,   0,   0,   0,   0,   0,   0,   220, 0,
++++     0},
++++    {0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   230, 230, 230, 230, 0,   230, 230, 230,
++++     230, 230, 230, 230, 230, 230, 0,   230, 230, 230, 0,   230, 230, 230, 230,
++++     230, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   220,
++++     220, 220, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   230, 220, 220, 220, 230, 230, 230, 230, 0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   230, 230, 230, 230, 230, 220, 220, 220,
++++     220, 220, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
++++     230, 0,   220, 230, 230, 220, 230, 230, 220, 230, 230, 230, 220, 220, 220,
++++     27,  28,  29,  230, 230, 230, 220, 230, 230, 220, 220, 230, 230, 230, 230,
++++     230},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0,   0,   0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0,   0,   0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0,   7,   0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0,   0, 0, 230, 220, 230, 230, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0,   0,   0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0,   0,   0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0,   0,   0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0,   0,   0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7,   0, 0, 0,   0,   0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0,   0, 0, 0,   0,   0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0,   0,   0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 230, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,  0,  0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,  0,  0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0,  0,  0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 84, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,  0,  0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,  0,  0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,  0,  0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,  0,  0, 0, 0, 0, 0, 7, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9,  0,  0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,  0,  0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,  0,  0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   103, 103, 9,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     107, 107, 107, 107, 0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   118, 118, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   122, 122, 122, 122, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0},
++++    {0,   0, 0,   0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0, 0,
++++     0,   0, 0,   0,   0,   0,   0, 0, 0,   220, 220, 0,   0,   0, 0,
++++     0,   0, 0,   0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0, 0,
++++     0,   0, 0,   0,   0,   0,   0, 0, 220, 0,   220, 0,   216, 0, 0,
++++     0,   0, 0,   0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0, 0,
++++     0,   0, 0,   0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0, 0,
++++     0,   0, 0,   0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0, 0,
++++     0,   0, 0,   0,   0,   0,   0, 0, 129, 130, 0,   132, 0,   0, 0,
++++     0,   0, 130, 130, 130, 130, 0, 0, 130, 0,   230, 230, 9,   0, 230,
++++     230, 0, 0,   0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0, 0,
++++     0,   0, 0,   0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0, 0,
++++     0,   0, 0,   0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0, 0,
++++     0,   0, 0,   0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0, 0,
++++     0,   0, 0,   220, 0,   0,   0, 0, 0,   0,   0,   0,   0,   0, 0,
++++     0,   0, 0,   0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0, 0,
++++     0,   0, 0,   0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0, 0,
++++     0,   0, 0,   0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0, 0,
++++     0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 7, 0, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 230, 230, 230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 9, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 9, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 228, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 222, 230, 220, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   230, 220, 0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   9,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   230, 230, 230,
++++     230, 230, 230, 230, 230, 0,   0,   220, 0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   230, 230, 230, 230,
++++     230, 220, 220, 220, 220, 220, 220, 230, 230, 220, 0,   220, 220, 230, 230,
++++     220, 220, 230, 230, 230, 230, 230, 220, 230, 230, 230, 230, 0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0},
++++    {0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   7,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 230, 220, 230, 230, 230, 230, 230,
++++     230, 230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   9,
++++     9,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   9,   9,   0,   0,   0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0},
++++    {0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   7,   0,   0,   0,   0,
++++     0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   230, 230,
++++     230, 0, 1, 220, 220, 220, 220, 220, 230, 230, 220, 220, 220, 220, 230,
++++     0,   1, 1, 1,   1,   1,   1,   1,   0,   0,   0,   0,   220, 0,   0,
++++     0,   0, 0, 0,   230, 0,   0,   0,   230, 230, 0,   0,   0,   0,   0,
++++     0},
++++    {0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   230, 230, 220,
++++     230, 230, 230, 230, 230, 230, 230, 220, 230, 230, 234, 214, 220, 202, 230,
++++     230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
++++     230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
++++     230, 230, 230, 230, 230, 230, 232, 228, 228, 220, 218, 230, 233, 220, 230,
++++     220},
++++    {0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,
++++     230, 230, 1, 1, 230, 230, 230, 230, 1,   1,   1, 230, 230, 0,   0,   0,
++++     0,   230, 0, 0, 0,   1,   1,   230, 220, 230, 1, 1,   220, 220, 220, 220,
++++     230, 0,   0, 0, 0,   0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 230, 230, 230,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   9,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   230,
++++     230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
++++     230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
++++     230},
++++    {0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 218, 228, 232, 222, 224, 224, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 8, 8, 0, 0, 0, 0, 0,
++++     0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0},
++++    {0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   230,
++++     0,   0,   0, 0, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   230, 230,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     230, 230, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0},
++++    {0,   0,   0,   0,   0,   0,   9,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   9,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   9,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   230,
++++     230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
++++     230, 230, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0},
++++    {0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 220,
++++     220, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0,   0,   0, 0,   0, 0,   0, 0,   0,   0,   0, 0, 0,   0,   0, 0, 0, 0, 0,
++++     0,   0,   0, 0,   0, 0,   0, 0,   0,   0,   0, 0, 0,   0,   0, 0, 0, 0, 0,
++++     0,   0,   0, 0,   0, 0,   0, 0,   0,   0,   0, 0, 0,   0,   0, 0, 0, 0, 0,
++++     0,   0,   0, 0,   0, 0,   0, 0,   0,   0,   0, 0, 0,   0,   0, 0, 0, 0, 0,
++++     0,   0,   0, 0,   0, 0,   0, 0,   0,   0,   0, 0, 0,   0,   0, 0, 0, 0, 0,
++++     0,   0,   0, 0,   0, 0,   0, 0,   0,   0,   0, 0, 0,   0,   0, 0, 0, 0, 0,
++++     0,   0,   0, 0,   0, 0,   0, 0,   0,   0,   0, 0, 0,   0,   0, 0, 0, 0, 0,
++++     0,   0,   0, 0,   0, 0,   0, 0,   0,   0,   0, 0, 0,   0,   0, 0, 0, 0, 0,
++++     0,   0,   0, 0,   0, 0,   0, 0,   0,   0,   0, 0, 0,   0,   0, 0, 0, 0, 0,
++++     0,   0,   0, 0,   0, 230, 0, 230, 230, 220, 0, 0, 230, 230, 0, 0, 0, 0, 0,
++++     230, 230, 0, 230, 0, 0,   0, 0,   0,   0,   0, 0, 0,   0,   0, 0, 0, 0, 0,
++++     0,   0,   0, 0,   0, 0,   0, 0,   0,   0,   0, 0, 0,   0,   0, 0, 0, 0, 0,
++++     0,   0,   0, 0,   0, 0,   0, 0,   0,   0,   0, 0, 0,   0,   0, 0, 0, 0, 9,
++++     0,   0,   0, 0,   0, 0,   0, 0,   0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   230, 230, 230, 230, 230, 230, 230, 220, 220, 220, 220, 220, 220,
++++     220, 230, 230, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 230, 230, 230, 230, 230, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0, 0, 220, 0, 230, 0,   0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0, 0, 0,   0, 0,   0,   0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0, 0, 0,   0, 0,   230, 1, 220, 0,
++++     0, 0, 0, 9, 0, 0, 0, 0, 0, 0,   0,   0, 0, 0,   0, 0,   0,   0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0, 0, 0,   0, 0,   0,   0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0, 0, 0,   0, 0,   0,   0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0, 0, 0,   0, 0,   0,   0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0, 0, 0,   0, 0,   0,   0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0, 0, 0,   0, 0,   0,   0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0, 0, 0,   0, 0,   0,   0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0, 0, 0,   0, 0,   0,   0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 230, 220, 0, 0, 0,   0, 0,   0,   0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0, 0, 0,   0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 230, 230, 230, 230, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,  0, 0, 0, 0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,  0, 0, 0, 0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,  0, 0, 0, 0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,  0, 0, 0, 0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,  0, 0, 0, 0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,  0, 0, 0, 0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,  0, 0, 0, 0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,  0, 0, 0, 230, 230, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,  0, 0, 0, 0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,  0, 0, 0, 0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,  0, 0, 0, 0,   0,   0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 220, 220, 220},
++++    {0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 220, 220,
++++     230, 230, 230, 220, 230, 220, 220, 220, 220, 0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0,   0,   0,   0,   230, 220, 230, 220, 0,   0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0,   0,   0,   0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 7, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {230, 230, 230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 9, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 9, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0,
++++     0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0,
++++     0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0,
++++     0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,   7,   7,   0, 0, 0,
++++     0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,   0,   0,   9, 0, 0,
++++     0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0,
++++     0,   0,   0,   0,   0,   0, 230, 230, 230, 230, 230, 230, 230, 0, 0, 0,
++++     230, 230, 230, 230, 230, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0,
++++     0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0,
++++     0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0,
++++     0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0,
++++     0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0,
++++     0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0,
++++     0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0,
++++     0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0,
++++     0,   0,   0,   0,   0,   0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 7,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 230, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0, 0, 9, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9,
++++     7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 7, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 9, 0, 0, 0, 0, 7, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 9, 9, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 9, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 230, 230, 230, 230, 230, 230, 230, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0, 0, 216, 216, 1,   1,   1,   0,   0,   0,   226, 216, 216,
++++     216, 216, 216, 0, 0, 0,   0,   0,   0,   0,   0,   220, 220, 220, 220, 220,
++++     220, 220, 220, 0, 0, 230, 230, 230, 230, 230, 220, 220, 0,   0,   0,   0,
++++     0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   230, 230, 230, 230, 0,   0,
++++     0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0, 0, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0},
++++    {0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     230, 230, 230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0,   0,   0,   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {230, 230, 230, 230, 230, 230, 230, 0,   230, 230, 230, 230, 230, 230, 230,
++++     230, 230, 230, 230, 230, 230, 230, 230, 230, 230, 0,   0,   230, 230, 230,
++++     230, 230, 230, 230, 0,   230, 230, 0,   230, 230, 230, 230, 230, 0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   230, 0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
++++     0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   230, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 230, 230, 230, 230, 0,   0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 232, 232, 220, 230, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 220, 220, 220, 220, 220, 220, 220, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0,   0},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 230, 230, 230, 230, 230, 230, 7, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,   0, 0}};
++++
++++const uint8_t composition_index[4352] = {
++++    0, 1, 2, 3, 4,  5,  6, 5, 5,  7,  5, 8,  9,  10, 5, 5, 11, 5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  12, 5, 5, 13, 14, 5, 15, 16, 5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 17, 5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 18, 19, 5, 20, 21, 22, 5, 5, 5,  23, 5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5,  5, 5, 5, 5,
++++    5, 5, 5, 5, 5,  5,  5, 5, 5,  5,  5, 5,  5,  5,  5, 5, 5,  5};
++++const uint16_t composition_block[67][257] = {
++++    {1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,
++++     1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,
++++     1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,
++++     1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,
++++     1,   3,   5,   7,   7,   7,   39,  45,  55,  67,  101, 103, 117, 131, 161,
++++     163, 173, 185, 191, 209, 241, 245, 245, 261, 275, 289, 327, 331, 343, 347,
++++     365, 377, 377, 377, 377, 377, 377, 377, 409, 415, 425, 437, 471, 473, 487,
++++     503, 531, 535, 545, 557, 563, 581, 613, 617, 617, 633, 647, 663, 701, 705,
++++     719, 723, 743, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755,
++++     755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755,
++++     755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755,
++++     755, 755, 755, 755, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761,
++++     761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761,
++++     769, 769, 771, 773, 777, 779, 779, 779, 787, 787, 787, 787, 787, 789, 789,
++++     789, 789, 789, 797, 803, 805, 805, 807, 807, 807, 807, 815, 815, 815, 815,
++++     815, 815, 823, 823, 825, 827, 831, 833, 833, 833, 841, 841, 841, 841, 841,
++++     843, 843, 843, 843, 843, 851, 857, 859, 859, 861, 861, 861, 861, 869, 869,
++++     869, 869},
++++    {869, 869, 869, 877, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885,
++++     885, 885, 885, 885, 889, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893,
++++     893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893,
++++     893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893,
++++     893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893,
++++     893, 893, 897, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901,
++++     901, 903, 905, 905, 905, 905, 905, 907, 909, 909, 909, 909, 909, 909, 909,
++++     911, 913, 915, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917,
++++     917, 917, 917, 917, 917, 917, 917, 917, 919, 919, 919, 919, 919, 919, 919,
++++     919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919,
++++     919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 929, 939, 939, 939,
++++     939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 939, 949, 959, 959, 959,
++++     959, 959, 959, 959, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961,
++++     961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961,
++++     961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 961,
++++     961, 961, 961, 961, 961, 961, 961, 961, 961, 961, 963, 965, 965, 965, 965,
++++     965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965,
++++     965, 965},
++++    {965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965,
++++     965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, 965,
++++     965, 965, 965, 965, 965, 965, 965, 965, 965, 967, 969, 971, 973, 973, 973,
++++     973, 973, 975, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977,
++++     977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977,
++++     977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977,
++++     977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977,
++++     977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977,
++++     977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977,
++++     977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 977, 979, 979, 979,
++++     979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979,
++++     979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979,
++++     979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979,
++++     979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979,
++++     979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979,
++++     979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979,
++++     979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979, 979,
++++     979, 979},
++++    {979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,
++++     979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,
++++     979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,
++++     979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,
++++     979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,
++++     979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,
++++     979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,
++++     979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,
++++     979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,
++++     979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,
++++     979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,
++++     979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,  979,
++++     979,  979,  993,  993,  993,  993,  1001, 1001, 1011, 1011, 1025, 1025,
++++     1025, 1025, 1025, 1025, 1033, 1033, 1035, 1035, 1035, 1035, 1047, 1047,
++++     1047, 1047, 1057, 1057, 1057, 1059, 1059, 1061, 1061, 1061, 1077, 1077,
++++     1077, 1077, 1085, 1085, 1097, 1097, 1113, 1113, 1113, 1113, 1113, 1113,
++++     1121, 1121, 1125, 1125, 1125, 1125, 1141, 1141, 1141, 1141, 1153, 1159,
++++     1165, 1165, 1165, 1167, 1167, 1167, 1167, 1171, 1171, 1171, 1171, 1171,
++++     1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171,
++++     1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171,
++++     1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171, 1171,
++++     1171, 1171, 1171, 1171, 1171},
++++    {1171, 1171, 1171, 1171, 1171, 1171, 1171, 1173, 1173, 1173, 1173, 1173,
++++     1173, 1173, 1173, 1173, 1173, 1177, 1177, 1177, 1179, 1179, 1185, 1189,
++++     1191, 1199, 1199, 1201, 1201, 1201, 1201, 1203, 1203, 1203, 1203, 1203,
++++     1211, 1211, 1211, 1211, 1213, 1213, 1213, 1213, 1215, 1215, 1217, 1217,
++++     1217, 1221, 1221, 1221, 1223, 1223, 1229, 1233, 1235, 1243, 1243, 1245,
++++     1245, 1245, 1245, 1247, 1247, 1247, 1247, 1247, 1255, 1255, 1255, 1255,
++++     1257, 1257, 1257, 1257, 1259, 1259, 1261, 1261, 1261, 1261, 1261, 1261,
++++     1261, 1261, 1261, 1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263,
++++     1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263,
++++     1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263, 1265, 1267, 1267,
++++     1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267,
++++     1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267,
++++     1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267,
++++     1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267,
++++     1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267,
++++     1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267,
++++     1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267,
++++     1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267, 1267,
++++     1267, 1269, 1271, 1271, 1271, 1271, 1271, 1271, 1271, 1271, 1271, 1271,
++++     1271, 1271, 1271, 1271, 1271, 1273, 1275, 1275, 1275, 1275, 1275, 1275,
++++     1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275,
++++     1275, 1275, 1275, 1275, 1275},
++++    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
++++    {1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275,
++++     1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275,
++++     1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275, 1275,
++++     1275, 1275, 1275, 1275, 1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281,
++++     1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281,
++++     1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281, 1281,
++++     1281, 1283, 1283, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
++++     1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
++++     1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
++++     1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
++++     1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
++++     1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
++++     1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
++++     1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
++++     1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
++++     1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285,
++++     1285, 1285, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287,
++++     1287, 1287, 1287, 1287, 1287, 1287, 1287, 1289, 1289, 1289, 1291, 1291,
++++     1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291,
++++     1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291,
++++     1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291,
++++     1291, 1291, 1291, 1291, 1291},
++++    {1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291,
++++     1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291,
++++     1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291,
++++     1291, 1291, 1291, 1291, 1291, 1293, 1293, 1293, 1293, 1293, 1293, 1293,
++++     1293, 1295, 1295, 1295, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297,
++++     1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297,
++++     1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297,
++++     1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297,
++++     1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297,
++++     1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297,
++++     1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297,
++++     1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297,
++++     1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297,
++++     1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297,
++++     1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297,
++++     1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297,
++++     1297, 1297, 1297, 1297, 1297, 1297, 1297, 1297, 1301, 1301, 1301, 1301,
++++     1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301,
++++     1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301,
++++     1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301,
++++     1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301,
++++     1301, 1301, 1301, 1301, 1301},
++++    {1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301,
++++     1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301,
++++     1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301,
++++     1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301,
++++     1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301,
++++     1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301, 1301,
++++     1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307,
++++     1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307,
++++     1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307,
++++     1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307,
++++     1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307,
++++     1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307,
++++     1307, 1307, 1307, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309,
++++     1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309,
++++     1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309,
++++     1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309, 1309,
++++     1309, 1309, 1309, 1309, 1309, 1309, 1309, 1313, 1315, 1315, 1315, 1315,
++++     1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315,
++++     1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315,
++++     1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315,
++++     1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315,
++++     1315, 1315, 1315, 1315, 1315},
++++    {1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315,
++++     1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315,
++++     1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315,
++++     1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315,
++++     1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315,
++++     1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1315, 1317,
++++     1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317,
++++     1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317,
++++     1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317,
++++     1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317,
++++     1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317,
++++     1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317,
++++     1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317,
++++     1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317,
++++     1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317,
++++     1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317,
++++     1319, 1319, 1319, 1319, 1319, 1319, 1319, 1325, 1325, 1325, 1325, 1327,
++++     1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
++++     1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
++++     1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
++++     1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
++++     1327, 1327, 1327, 1327, 1327},
++++    {1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
++++     1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
++++     1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
++++     1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
++++     1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327,
++++     1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1331,
++++     1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333,
++++     1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333,
++++     1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333,
++++     1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333,
++++     1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333,
++++     1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333,
++++     1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333,
++++     1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333,
++++     1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333,
++++     1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333,
++++     1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333,
++++     1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333, 1333,
++++     1333, 1333, 1339, 1339, 1339, 1341, 1341, 1341, 1341, 1341, 1341, 1341,
++++     1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341,
++++     1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341,
++++     1341, 1341, 1341, 1341, 1341},
++++    {1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341,
++++     1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341,
++++     1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341, 1341,
++++     1341, 1341, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343, 1343,
++++     1343, 1343, 1343, 1343, 1343},
++++    {1343, 1343, 1343, 1343, 1343, 1343, 1345, 1345, 1347, 1347, 1349, 1349,
++++     1351, 1351, 1353, 1353, 1353, 1353, 1355, 1355, 1355, 1355, 1355, 1355,
++++     1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355,
++++     1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355,
++++     1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1355, 1357,
++++     1357, 1359, 1359, 1361, 1363, 1363, 1363, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365},
++++    {1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365, 1365,
++++     1365, 1365, 1365, 1365, 1365, 1365, 1365, 1367, 1369, 1369, 1369, 1369,
++++     1369, 1369, 1369, 1369, 1369, 1369, 1369, 1369, 1369, 1369, 1369, 1369,
++++     1369, 1369, 1369, 1369, 1369, 1369, 1369, 1369, 1369, 1369, 1369, 1369,
++++     1369, 1369, 1369, 1369, 1369, 1369, 1369, 1371, 1373, 1373, 1373, 1373,
++++     1373, 1373, 1373, 1375, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377,
++++     1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377,
++++     1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377,
++++     1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377,
++++     1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377,
++++     1377, 1377, 1377, 1377, 1377, 1381, 1385, 1385, 1385, 1385, 1385, 1385,
++++     1385, 1385, 1385, 1385, 1385, 1385, 1385, 1385, 1385, 1385, 1385, 1385,
++++     1385, 1385, 1385, 1385, 1385, 1387, 1389, 1389, 1389, 1389, 1389, 1389,
++++     1389, 1389, 1389, 1389, 1389, 1389, 1389, 1389, 1389, 1389, 1389, 1389,
++++     1389, 1391, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393,
++++     1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393,
++++     1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393,
++++     1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393, 1393,
++++     1393, 1393, 1393, 1393, 1393},
++++    {1393, 1401, 1409, 1411, 1413, 1415, 1417, 1419, 1421, 1429, 1437, 1439,
++++     1441, 1443, 1445, 1447, 1449, 1453, 1457, 1457, 1457, 1457, 1457, 1457,
++++     1457, 1461, 1465, 1465, 1465, 1465, 1465, 1465, 1465, 1473, 1481, 1483,
++++     1485, 1487, 1489, 1491, 1493, 1501, 1509, 1511, 1513, 1515, 1517, 1519,
++++     1521, 1527, 1533, 1533, 1533, 1533, 1533, 1533, 1533, 1539, 1545, 1545,
++++     1545, 1545, 1545, 1545, 1545, 1549, 1553, 1553, 1553, 1553, 1553, 1553,
++++     1553, 1557, 1561, 1561, 1561, 1561, 1561, 1561, 1561, 1567, 1573, 1573,
++++     1573, 1573, 1573, 1573, 1573, 1573, 1579, 1579, 1579, 1579, 1579, 1579,
++++     1579, 1587, 1595, 1597, 1599, 1601, 1603, 1605, 1607, 1615, 1623, 1625,
++++     1627, 1629, 1631, 1633, 1635, 1637, 1637, 1637, 1637, 1639, 1639, 1639,
++++     1639, 1639, 1639, 1639, 1639, 1641, 1641, 1641, 1641, 1641, 1641, 1641,
++++     1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641,
++++     1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641,
++++     1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641,
++++     1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641, 1641,
++++     1641, 1641, 1641, 1643, 1643, 1643, 1643, 1643, 1643, 1643, 1643, 1643,
++++     1649, 1649, 1649, 1649, 1649, 1649, 1649, 1651, 1651, 1651, 1651, 1651,
++++     1651, 1651, 1651, 1651, 1651, 1651, 1651, 1651, 1651, 1651, 1651, 1651,
++++     1651, 1651, 1651, 1651, 1651, 1651, 1651, 1651, 1651, 1651, 1651, 1651,
++++     1651, 1651, 1651, 1651, 1651, 1651, 1651, 1651, 1651, 1651, 1651, 1651,
++++     1651, 1651, 1651, 1651, 1651, 1651, 1651, 1653, 1653, 1653, 1653, 1653,
++++     1653, 1653, 1653, 1659, 1659},
++++    {1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659,
++++     1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659,
++++     1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659,
++++     1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659,
++++     1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659,
++++     1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659,
++++     1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659,
++++     1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659,
++++     1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659,
++++     1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659,
++++     1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659,
++++     1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659, 1659,
++++     1659, 1661, 1661, 1663, 1663, 1665, 1665, 1665, 1665, 1665, 1665, 1665,
++++     1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665,
++++     1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665,
++++     1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665,
++++     1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665, 1665,
++++     1665, 1665, 1665, 1665, 1665, 1667, 1667, 1669, 1669, 1671, 1671, 1671,
++++     1671, 1671, 1671, 1671, 1671, 1671, 1671, 1671, 1671, 1671, 1671, 1671,
++++     1671, 1671, 1671, 1671, 1671, 1671, 1671, 1671, 1671, 1671, 1671, 1671,
++++     1671, 1671, 1671, 1671, 1671, 1671, 1671, 1671, 1671, 1671, 1671, 1671,
++++     1671, 1671, 1671, 1671, 1671},
++++    {1671, 1671, 1671, 1671, 1673, 1673, 1673, 1673, 1673, 1675, 1675, 1675,
++++     1677, 1677, 1677, 1677, 1677, 1677, 1677, 1677, 1677, 1677, 1677, 1677,
++++     1677, 1677, 1677, 1677, 1677, 1677, 1677, 1677, 1677, 1677, 1677, 1677,
++++     1679, 1679, 1681, 1681, 1681, 1681, 1681, 1681, 1681, 1681, 1681, 1681,
++++     1681, 1681, 1681, 1681, 1681, 1681, 1681, 1681, 1681, 1681, 1681, 1681,
++++     1681, 1683, 1683, 1683, 1683, 1683, 1683, 1683, 1685, 1685, 1687, 1687,
++++     1687, 1689, 1689, 1689, 1689, 1689, 1691, 1691, 1691, 1691, 1691, 1691,
++++     1691, 1691, 1691, 1691, 1691, 1691, 1691, 1691, 1691, 1691, 1691, 1691,
++++     1691, 1691, 1693, 1693, 1693, 1695, 1697, 1697, 1697, 1697, 1697, 1697,
++++     1697, 1697, 1697, 1697, 1697, 1697, 1697, 1699, 1701, 1701, 1701, 1703,
++++     1705, 1705, 1705, 1707, 1709, 1711, 1713, 1713, 1713, 1713, 1713, 1715,
++++     1717, 1717, 1717, 1719, 1721, 1721, 1721, 1721, 1721, 1721, 1721, 1721,
++++     1721, 1721, 1723, 1725, 1725, 1725, 1725, 1725, 1725, 1725, 1725, 1725,
++++     1725, 1725, 1725, 1725, 1725, 1725, 1725, 1727, 1727, 1727, 1727, 1727,
++++     1727, 1729, 1731, 1731, 1733, 1733, 1733, 1733, 1733, 1733, 1733, 1735,
++++     1737, 1739, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741,
++++     1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741,
++++     1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741,
++++     1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741,
++++     1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741,
++++     1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741,
++++     1741, 1741, 1741, 1741, 1741},
++++    {1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741,
++++     1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741,
++++     1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741,
++++     1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741,
++++     1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741,
++++     1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1741, 1743,
++++     1743, 1743, 1743, 1743, 1745, 1745, 1747, 1747, 1749, 1749, 1751, 1751,
++++     1753, 1753, 1755, 1755, 1757, 1757, 1759, 1759, 1761, 1761, 1763, 1763,
++++     1765, 1765, 1767, 1767, 1767, 1769, 1769, 1771, 1771, 1773, 1773, 1773,
++++     1773, 1773, 1773, 1773, 1777, 1777, 1777, 1781, 1781, 1781, 1785, 1785,
++++     1785, 1789, 1789, 1789, 1793, 1793, 1793, 1793, 1793, 1793, 1793, 1793,
++++     1793, 1793, 1793, 1793, 1793, 1793, 1793, 1793, 1793, 1793, 1793, 1793,
++++     1793, 1793, 1793, 1793, 1793, 1793, 1793, 1793, 1793, 1793, 1793, 1793,
++++     1793, 1793, 1795, 1795, 1795, 1795, 1795, 1795, 1795, 1795, 1795, 1797,
++++     1797, 1797, 1797, 1797, 1799, 1799, 1801, 1801, 1803, 1803, 1805, 1805,
++++     1807, 1807, 1809, 1809, 1811, 1811, 1813, 1813, 1815, 1815, 1817, 1817,
++++     1819, 1819, 1821, 1821, 1821, 1823, 1823, 1825, 1825, 1827, 1827, 1827,
++++     1827, 1827, 1827, 1827, 1831, 1831, 1831, 1835, 1835, 1835, 1839, 1839,
++++     1839, 1843, 1843, 1843, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847,
++++     1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847,
++++     1849, 1851, 1853, 1855, 1855, 1855, 1855, 1855, 1855, 1855, 1855, 1855,
++++     1855, 1855, 1857, 1857, 1857},
++++    {1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857,
++++     1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857,
++++     1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857,
++++     1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857,
++++     1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857,
++++     1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857,
++++     1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857,
++++     1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857,
++++     1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857,
++++     1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857,
++++     1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857,
++++     1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857,
++++     1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1857, 1859, 1859,
++++     1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1863, 1863,
++++     1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863,
++++     1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863,
++++     1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863,
++++     1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863,
++++     1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863,
++++     1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863,
++++     1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863,
++++     1863, 1863, 1863, 1863, 1863},
++++    {1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863,
++++     1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863,
++++     1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863,
++++     1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863, 1863,
++++     1863, 1863, 1865, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867},
++++    {1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867, 1867,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871},
++++    {1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871, 1871,
++++     1871, 1871, 1871, 1871, 1871, 1871, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877},
++++    {1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877, 1877,
++++     1877, 1877, 1877, 1877, 1877, 1879, 1881, 1881, 1881, 1881, 1881, 1881,
++++     1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881,
++++     1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881,
++++     1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881,
++++     1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881,
++++     1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881,
++++     1881, 1881, 1881, 1881, 1881},
++++    {1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881,
++++     1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881,
++++     1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881,
++++     1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881,
++++     1881, 1881, 1881, 1881, 1881, 1881, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883, 1883,
++++     1883, 1883, 1883, 1883, 1883}};
++++const char32_t composition_data[1883] = {
++++    0,     824,   8814,  824,   8800,  824,   8815,  768,   192,   769,   193,
++++    770,   194,   771,   195,   772,   256,   774,   258,   775,   550,   776,
++++    196,   777,   7842,  778,   197,   780,   461,   783,   512,   785,   514,
++++    803,   7840,  805,   7680,  808,   260,   775,   7682,  803,   7684,  817,
++++    7686,  769,   262,   770,   264,   775,   266,   780,   268,   807,   199,
++++    775,   7690,  780,   270,   803,   7692,  807,   7696,  813,   7698,  817,
++++    7694,  768,   200,   769,   201,   770,   202,   771,   7868,  772,   274,
++++    774,   276,   775,   278,   776,   203,   777,   7866,  780,   282,   783,
++++    516,   785,   518,   803,   7864,  807,   552,   808,   280,   813,   7704,
++++    816,   7706,  775,   7710,  769,   500,   770,   284,   772,   7712,  774,
++++    286,   775,   288,   780,   486,   807,   290,   770,   292,   775,   7714,
++++    776,   7718,  780,   542,   803,   7716,  807,   7720,  814,   7722,  768,
++++    204,   769,   205,   770,   206,   771,   296,   772,   298,   774,   300,
++++    775,   304,   776,   207,   777,   7880,  780,   463,   783,   520,   785,
++++    522,   803,   7882,  808,   302,   816,   7724,  770,   308,   769,   7728,
++++    780,   488,   803,   7730,  807,   310,   817,   7732,  769,   313,   780,
++++    317,   803,   7734,  807,   315,   813,   7740,  817,   7738,  769,   7742,
++++    775,   7744,  803,   7746,  768,   504,   769,   323,   771,   209,   775,
++++    7748,  780,   327,   803,   7750,  807,   325,   813,   7754,  817,   7752,
++++    768,   210,   769,   211,   770,   212,   771,   213,   772,   332,   774,
++++    334,   775,   558,   776,   214,   777,   7886,  779,   336,   780,   465,
++++    783,   524,   785,   526,   795,   416,   803,   7884,  808,   490,   769,
++++    7764,  775,   7766,  769,   340,   775,   7768,  780,   344,   783,   528,
++++    785,   530,   803,   7770,  807,   342,   817,   7774,  769,   346,   770,
++++    348,   775,   7776,  780,   352,   803,   7778,  806,   536,   807,   350,
++++    775,   7786,  780,   356,   803,   7788,  806,   538,   807,   354,   813,
++++    7792,  817,   7790,  768,   217,   769,   218,   770,   219,   771,   360,
++++    772,   362,   774,   364,   776,   220,   777,   7910,  778,   366,   779,
++++    368,   780,   467,   783,   532,   785,   534,   795,   431,   803,   7908,
++++    804,   7794,  808,   370,   813,   7798,  816,   7796,  771,   7804,  803,
++++    7806,  768,   7808,  769,   7810,  770,   372,   775,   7814,  776,   7812,
++++    803,   7816,  775,   7818,  776,   7820,  768,   7922,  769,   221,   770,
++++    374,   771,   7928,  772,   562,   775,   7822,  776,   376,   777,   7926,
++++    803,   7924,  769,   377,   770,   7824,  775,   379,   780,   381,   803,
++++    7826,  817,   7828,  768,   224,   769,   225,   770,   226,   771,   227,
++++    772,   257,   774,   259,   775,   551,   776,   228,   777,   7843,  778,
++++    229,   780,   462,   783,   513,   785,   515,   803,   7841,  805,   7681,
++++    808,   261,   775,   7683,  803,   7685,  817,   7687,  769,   263,   770,
++++    265,   775,   267,   780,   269,   807,   231,   775,   7691,  780,   271,
++++    803,   7693,  807,   7697,  813,   7699,  817,   7695,  768,   232,   769,
++++    233,   770,   234,   771,   7869,  772,   275,   774,   277,   775,   279,
++++    776,   235,   777,   7867,  780,   283,   783,   517,   785,   519,   803,
++++    7865,  807,   553,   808,   281,   813,   7705,  816,   7707,  775,   7711,
++++    769,   501,   770,   285,   772,   7713,  774,   287,   775,   289,   780,
++++    487,   807,   291,   770,   293,   775,   7715,  776,   7719,  780,   543,
++++    803,   7717,  807,   7721,  814,   7723,  817,   7830,  768,   236,   769,
++++    237,   770,   238,   771,   297,   772,   299,   774,   301,   776,   239,
++++    777,   7881,  780,   464,   783,   521,   785,   523,   803,   7883,  808,
++++    303,   816,   7725,  770,   309,   780,   496,   769,   7729,  780,   489,
++++    803,   7731,  807,   311,   817,   7733,  769,   314,   780,   318,   803,
++++    7735,  807,   316,   813,   7741,  817,   7739,  769,   7743,  775,   7745,
++++    803,   7747,  768,   505,   769,   324,   771,   241,   775,   7749,  780,
++++    328,   803,   7751,  807,   326,   813,   7755,  817,   7753,  768,   242,
++++    769,   243,   770,   244,   771,   245,   772,   333,   774,   335,   775,
++++    559,   776,   246,   777,   7887,  779,   337,   780,   466,   783,   525,
++++    785,   527,   795,   417,   803,   7885,  808,   491,   769,   7765,  775,
++++    7767,  769,   341,   775,   7769,  780,   345,   783,   529,   785,   531,
++++    803,   7771,  807,   343,   817,   7775,  769,   347,   770,   349,   775,
++++    7777,  780,   353,   803,   7779,  806,   537,   807,   351,   775,   7787,
++++    776,   7831,  780,   357,   803,   7789,  806,   539,   807,   355,   813,
++++    7793,  817,   7791,  768,   249,   769,   250,   770,   251,   771,   361,
++++    772,   363,   774,   365,   776,   252,   777,   7911,  778,   367,   779,
++++    369,   780,   468,   783,   533,   785,   535,   795,   432,   803,   7909,
++++    804,   7795,  808,   371,   813,   7799,  816,   7797,  771,   7805,  803,
++++    7807,  768,   7809,  769,   7811,  770,   373,   775,   7815,  776,   7813,
++++    778,   7832,  803,   7817,  775,   7819,  776,   7821,  768,   7923,  769,
++++    253,   770,   375,   771,   7929,  772,   563,   775,   7823,  776,   255,
++++    777,   7927,  778,   7833,  803,   7925,  769,   378,   770,   7825,  775,
++++    380,   780,   382,   803,   7827,  817,   7829,  768,   8173,  769,   901,
++++    834,   8129,  768,   7846,  769,   7844,  771,   7850,  777,   7848,  772,
++++    478,   769,   506,   769,   508,   772,   482,   769,   7688,  768,   7872,
++++    769,   7870,  771,   7876,  777,   7874,  769,   7726,  768,   7890,  769,
++++    7888,  771,   7894,  777,   7892,  769,   7756,  772,   556,   776,   7758,
++++    772,   554,   769,   510,   768,   475,   769,   471,   772,   469,   780,
++++    473,   768,   7847,  769,   7845,  771,   7851,  777,   7849,  772,   479,
++++    769,   507,   769,   509,   772,   483,   769,   7689,  768,   7873,  769,
++++    7871,  771,   7877,  777,   7875,  769,   7727,  768,   7891,  769,   7889,
++++    771,   7895,  777,   7893,  769,   7757,  772,   557,   776,   7759,  772,
++++    555,   769,   511,   768,   476,   769,   472,   772,   470,   780,   474,
++++    768,   7856,  769,   7854,  771,   7860,  777,   7858,  768,   7857,  769,
++++    7855,  771,   7861,  777,   7859,  768,   7700,  769,   7702,  768,   7701,
++++    769,   7703,  768,   7760,  769,   7762,  768,   7761,  769,   7763,  775,
++++    7780,  775,   7781,  775,   7782,  775,   7783,  769,   7800,  769,   7801,
++++    776,   7802,  776,   7803,  775,   7835,  768,   7900,  769,   7898,  771,
++++    7904,  777,   7902,  803,   7906,  768,   7901,  769,   7899,  771,   7905,
++++    777,   7903,  803,   7907,  768,   7914,  769,   7912,  771,   7918,  777,
++++    7916,  803,   7920,  768,   7915,  769,   7913,  771,   7919,  777,   7917,
++++    803,   7921,  780,   494,   772,   492,   772,   493,   772,   480,   772,
++++    481,   774,   7708,  774,   7709,  772,   560,   772,   561,   780,   495,
++++    768,   8122,  769,   902,   772,   8121,  774,   8120,  787,   7944,  788,
++++    7945,  837,   8124,  768,   8136,  769,   904,   787,   7960,  788,   7961,
++++    768,   8138,  769,   905,   787,   7976,  788,   7977,  837,   8140,  768,
++++    8154,  769,   906,   772,   8153,  774,   8152,  776,   938,   787,   7992,
++++    788,   7993,  768,   8184,  769,   908,   787,   8008,  788,   8009,  788,
++++    8172,  768,   8170,  769,   910,   772,   8169,  774,   8168,  776,   939,
++++    788,   8025,  768,   8186,  769,   911,   787,   8040,  788,   8041,  837,
++++    8188,  837,   8116,  837,   8132,  768,   8048,  769,   940,   772,   8113,
++++    774,   8112,  787,   7936,  788,   7937,  834,   8118,  837,   8115,  768,
++++    8050,  769,   941,   787,   7952,  788,   7953,  768,   8052,  769,   942,
++++    787,   7968,  788,   7969,  834,   8134,  837,   8131,  768,   8054,  769,
++++    943,   772,   8145,  774,   8144,  776,   970,   787,   7984,  788,   7985,
++++    834,   8150,  768,   8056,  769,   972,   787,   8000,  788,   8001,  787,
++++    8164,  788,   8165,  768,   8058,  769,   973,   772,   8161,  774,   8160,
++++    776,   971,   787,   8016,  788,   8017,  834,   8166,  768,   8060,  769,
++++    974,   787,   8032,  788,   8033,  834,   8182,  837,   8179,  768,   8146,
++++    769,   912,   834,   8151,  768,   8162,  769,   944,   834,   8167,  837,
++++    8180,  769,   979,   776,   980,   776,   1031,  774,   1232,  776,   1234,
++++    769,   1027,  768,   1024,  774,   1238,  776,   1025,  774,   1217,  776,
++++    1244,  776,   1246,  768,   1037,  772,   1250,  774,   1049,  776,   1252,
++++    769,   1036,  776,   1254,  772,   1262,  774,   1038,  776,   1264,  779,
++++    1266,  776,   1268,  776,   1272,  776,   1260,  774,   1233,  776,   1235,
++++    769,   1107,  768,   1104,  774,   1239,  776,   1105,  774,   1218,  776,
++++    1245,  776,   1247,  768,   1117,  772,   1251,  774,   1081,  776,   1253,
++++    769,   1116,  776,   1255,  772,   1263,  774,   1118,  776,   1265,  779,
++++    1267,  776,   1269,  776,   1273,  776,   1261,  776,   1111,  783,   1142,
++++    783,   1143,  776,   1242,  776,   1243,  776,   1258,  776,   1259,  1619,
++++    1570,  1620,  1571,  1621,  1573,  1620,  1572,  1620,  1574,  1620,  1730,
++++    1620,  1747,  1620,  1728,  2364,  2345,  2364,  2353,  2364,  2356,  2494,
++++    2507,  2519,  2508,  2878,  2891,  2902,  2888,  2903,  2892,  3031,  2964,
++++    3006,  3018,  3031,  3020,  3006,  3019,  3158,  3144,  3285,  3264,  3266,
++++    3274,  3285,  3271,  3286,  3272,  3285,  3275,  3390,  3402,  3415,  3404,
++++    3390,  3403,  3530,  3546,  3535,  3548,  3551,  3550,  3530,  3549,  4142,
++++    4134,  6965,  6918,  6965,  6920,  6965,  6922,  6965,  6924,  6965,  6926,
++++    6965,  6930,  6965,  6971,  6965,  6973,  6965,  6976,  6965,  6977,  6965,
++++    6979,  772,   7736,  772,   7737,  772,   7772,  772,   7773,  775,   7784,
++++    775,   7785,  770,   7852,  774,   7862,  770,   7853,  774,   7863,  770,
++++    7878,  770,   7879,  770,   7896,  770,   7897,  768,   7938,  769,   7940,
++++    834,   7942,  837,   8064,  768,   7939,  769,   7941,  834,   7943,  837,
++++    8065,  837,   8066,  837,   8067,  837,   8068,  837,   8069,  837,   8070,
++++    837,   8071,  768,   7946,  769,   7948,  834,   7950,  837,   8072,  768,
++++    7947,  769,   7949,  834,   7951,  837,   8073,  837,   8074,  837,   8075,
++++    837,   8076,  837,   8077,  837,   8078,  837,   8079,  768,   7954,  769,
++++    7956,  768,   7955,  769,   7957,  768,   7962,  769,   7964,  768,   7963,
++++    769,   7965,  768,   7970,  769,   7972,  834,   7974,  837,   8080,  768,
++++    7971,  769,   7973,  834,   7975,  837,   8081,  837,   8082,  837,   8083,
++++    837,   8084,  837,   8085,  837,   8086,  837,   8087,  768,   7978,  769,
++++    7980,  834,   7982,  837,   8088,  768,   7979,  769,   7981,  834,   7983,
++++    837,   8089,  837,   8090,  837,   8091,  837,   8092,  837,   8093,  837,
++++    8094,  837,   8095,  768,   7986,  769,   7988,  834,   7990,  768,   7987,
++++    769,   7989,  834,   7991,  768,   7994,  769,   7996,  834,   7998,  768,
++++    7995,  769,   7997,  834,   7999,  768,   8002,  769,   8004,  768,   8003,
++++    769,   8005,  768,   8010,  769,   8012,  768,   8011,  769,   8013,  768,
++++    8018,  769,   8020,  834,   8022,  768,   8019,  769,   8021,  834,   8023,
++++    768,   8027,  769,   8029,  834,   8031,  768,   8034,  769,   8036,  834,
++++    8038,  837,   8096,  768,   8035,  769,   8037,  834,   8039,  837,   8097,
++++    837,   8098,  837,   8099,  837,   8100,  837,   8101,  837,   8102,  837,
++++    8103,  768,   8042,  769,   8044,  834,   8046,  837,   8104,  768,   8043,
++++    769,   8045,  834,   8047,  837,   8105,  837,   8106,  837,   8107,  837,
++++    8108,  837,   8109,  837,   8110,  837,   8111,  837,   8114,  837,   8130,
++++    837,   8178,  837,   8119,  768,   8141,  769,   8142,  834,   8143,  837,
++++    8135,  837,   8183,  768,   8157,  769,   8158,  834,   8159,  824,   8602,
++++    824,   8603,  824,   8622,  824,   8653,  824,   8655,  824,   8654,  824,
++++    8708,  824,   8713,  824,   8716,  824,   8740,  824,   8742,  824,   8769,
++++    824,   8772,  824,   8775,  824,   8777,  824,   8813,  824,   8802,  824,
++++    8816,  824,   8817,  824,   8820,  824,   8821,  824,   8824,  824,   8825,
++++    824,   8832,  824,   8833,  824,   8928,  824,   8929,  824,   8836,  824,
++++    8837,  824,   8840,  824,   8841,  824,   8930,  824,   8931,  824,   8876,
++++    824,   8877,  824,   8878,  824,   8879,  824,   8938,  824,   8939,  824,
++++    8940,  824,   8941,  12441, 12436, 12441, 12364, 12441, 12366, 12441, 12368,
++++    12441, 12370, 12441, 12372, 12441, 12374, 12441, 12376, 12441, 12378, 12441,
++++    12380, 12441, 12382, 12441, 12384, 12441, 12386, 12441, 12389, 12441, 12391,
++++    12441, 12393, 12441, 12400, 12442, 12401, 12441, 12403, 12442, 12404, 12441,
++++    12406, 12442, 12407, 12441, 12409, 12442, 12410, 12441, 12412, 12442, 12413,
++++    12441, 12446, 12441, 12532, 12441, 12460, 12441, 12462, 12441, 12464, 12441,
++++    12466, 12441, 12468, 12441, 12470, 12441, 12472, 12441, 12474, 12441, 12476,
++++    12441, 12478, 12441, 12480, 12441, 12482, 12441, 12485, 12441, 12487, 12441,
++++    12489, 12441, 12496, 12442, 12497, 12441, 12499, 12442, 12500, 12441, 12502,
++++    12442, 12503, 12441, 12505, 12442, 12506, 12441, 12508, 12442, 12509, 12441,
++++    12535, 12441, 12536, 12441, 12537, 12441, 12538, 12441, 12542, 69818, 69786,
++++    69818, 69788, 69818, 69803, 69927, 69934, 69927, 69935, 70462, 70475, 70487,
++++    70476, 70832, 70844, 70842, 70843, 70845, 70846, 71087, 71098, 71087, 71099,
++++    71984, 71992};
++++
++++}  // namespace ada::idna
++++#endif  // ADA_IDNA_NORMALIZATION_TABLES_H
++++/* end file src/normalization_tables.cpp */
++++
++++namespace ada::idna {
++++
++++// See
++++// https://github.com/uni-algo/uni-algo/blob/c612968c5ed3ace39bde4c894c24286c5f2c7fe2/include/uni_algo/impl/impl_norm.h#L467
++++constexpr char32_t hangul_sbase = 0xAC00;
++++constexpr char32_t hangul_tbase = 0x11A7;
++++constexpr char32_t hangul_vbase = 0x1161;
++++constexpr char32_t hangul_lbase = 0x1100;
++++constexpr char32_t hangul_lcount = 19;
++++constexpr char32_t hangul_vcount = 21;
++++constexpr char32_t hangul_tcount = 28;
++++constexpr char32_t hangul_ncount = hangul_vcount * hangul_tcount;
++++constexpr char32_t hangul_scount =
++++    hangul_lcount * hangul_vcount * hangul_tcount;
++++
++++std::pair<bool, size_t> compute_decomposition_length(
++++    const std::u32string_view input) noexcept {
++++  bool decomposition_needed{false};
++++  size_t additional_elements{0};
++++  for (char32_t current_character : input) {
++++    size_t decomposition_length{0};
++++
++++    if (current_character >= hangul_sbase &&
++++        current_character < hangul_sbase + hangul_scount) {
++++      decomposition_length = 2;
++++      if ((current_character - hangul_sbase) % hangul_tcount) {
++++        decomposition_length = 3;
++++      }
++++    } else if (current_character < 0x110000) {
++++      const uint8_t di = decomposition_index[current_character >> 8];
++++      const uint16_t* const decomposition =
++++          decomposition_block[di] + (current_character % 256);
++++      decomposition_length = (decomposition[1] >> 2) - (decomposition[0] >> 2);
++++      if ((decomposition_length > 0) && (decomposition[0] & 1)) {
++++        decomposition_length = 0;
++++      }
++++    }
++++    if (decomposition_length != 0) {
++++      decomposition_needed = true;
++++      additional_elements += decomposition_length - 1;
++++    }
++++  }
++++  return {decomposition_needed, additional_elements};
++++}
++++
++++void decompose(std::u32string& input, size_t additional_elements) {
++++  input.resize(input.size() + additional_elements);
++++  for (size_t descending_idx = input.size(),
++++              input_count = descending_idx - additional_elements;
++++       input_count--;) {
++++    if (input[input_count] >= hangul_sbase &&
++++        input[input_count] < hangul_sbase + hangul_scount) {
++++      // Hangul decomposition.
++++      char32_t s_index = input[input_count] - hangul_sbase;
++++      if (s_index % hangul_tcount != 0) {
++++        input[--descending_idx] = hangul_tbase + s_index % hangul_tcount;
++++      }
++++      input[--descending_idx] =
++++          hangul_vbase + (s_index % hangul_ncount) / hangul_tcount;
++++      input[--descending_idx] = hangul_lbase + s_index / hangul_ncount;
++++    } else if (input[input_count] < 0x110000) {
++++      // Check decomposition_data.
++++      const uint16_t* decomposition =
++++          decomposition_block[decomposition_index[input[input_count] >> 8]] +
++++          (input[input_count] % 256);
++++      uint16_t decomposition_length =
++++          (decomposition[1] >> 2) - (decomposition[0] >> 2);
++++      if (decomposition_length > 0 && (decomposition[0] & 1)) {
++++        decomposition_length = 0;
++++      }
++++      if (decomposition_length > 0) {
++++        // Non-recursive decomposition.
++++        while (decomposition_length-- > 0) {
++++          input[--descending_idx] = decomposition_data[(decomposition[0] >> 2) +
++++                                                       decomposition_length];
++++        }
++++      } else {
++++        // No decomposition.
++++        input[--descending_idx] = input[input_count];
++++      }
++++    } else {
++++      // Non-Unicode character.
++++      input[--descending_idx] = input[input_count];
++++    }
++++  }
++++}
++++
++++uint8_t get_ccc(char32_t c) noexcept {
++++  return c < 0x110000 ? canonical_combining_class_block
++++                            [canonical_combining_class_index[c >> 8]][c % 256]
++++                      : 0;
++++}
++++
++++void sort_marks(std::u32string& input) {
++++  for (size_t idx = 1; idx < input.size(); idx++) {
++++    uint8_t ccc = get_ccc(input[idx]);
++++    if (ccc == 0) {
++++      continue;
++++    }  // Skip non-combining characters.
++++    auto current_character = input[idx];
++++    size_t back_idx = idx;
++++    while (back_idx != 0 && get_ccc(input[back_idx - 1]) > ccc) {
++++      input[back_idx] = input[back_idx - 1];
++++      back_idx--;
++++    }
++++    input[back_idx] = current_character;
++++  }
++++}
++++
++++void decompose_nfc(std::u32string& input) {
++++  /**
++++   * Decompose the domain_name string to Unicode Normalization Form C.
++++   * @see https://www.unicode.org/reports/tr46/#ProcessingStepDecompose
++++   */
++++  auto [decomposition_needed, additional_elements] =
++++      compute_decomposition_length(input);
++++  if (decomposition_needed) {
++++    decompose(input, additional_elements);
++++  }
++++  sort_marks(input);
++++}
++++
++++void compose(std::u32string& input) {
++++  /**
++++   * Compose the domain_name string to Unicode Normalization Form C.
++++   * @see https://www.unicode.org/reports/tr46/#ProcessingStepCompose
++++   */
++++  size_t input_count{0};
++++  size_t composition_count{0};
++++  for (; input_count < input.size(); input_count++, composition_count++) {
++++    input[composition_count] = input[input_count];
++++    if (input[input_count] >= hangul_lbase &&
++++        input[input_count] < hangul_lbase + hangul_lcount) {
++++      if (input_count + 1 < input.size() &&
++++          input[input_count + 1] >= hangul_vbase &&
++++          input[input_count + 1] < hangul_vbase + hangul_vcount) {
++++        input[composition_count] =
++++            hangul_sbase +
++++            ((input[input_count] - hangul_lbase) * hangul_vcount +
++++             input[input_count + 1] - hangul_vbase) *
++++                hangul_tcount;
++++        input_count++;
++++        if (input_count + 1 < input.size() &&
++++            input[input_count + 1] > hangul_tbase &&
++++            input[input_count + 1] < hangul_tbase + hangul_tcount) {
++++          input[composition_count] += input[++input_count] - hangul_tbase;
++++        }
++++      }
++++    } else if (input[input_count] >= hangul_sbase &&
++++               input[input_count] < hangul_sbase + hangul_scount) {
++++      if ((input[input_count] - hangul_sbase) % hangul_tcount &&
++++          input_count + 1 < input.size() &&
++++          input[input_count + 1] > hangul_tbase &&
++++          input[input_count + 1] < hangul_tbase + hangul_tcount) {
++++        input[composition_count] += input[++input_count] - hangul_tbase;
++++      }
++++    } else if (input[input_count] < 0x110000) {
++++      const uint16_t* composition =
++++          &composition_block[composition_index[input[input_count] >> 8]]
++++                            [input[input_count] % 256];
++++      size_t initial_composition_count = composition_count;
++++      for (int32_t previous_ccc = -1; input_count + 1 < input.size();
++++           input_count++) {
++++        uint8_t ccc = get_ccc(input[input_count + 1]);
++++
++++        if (composition[1] != composition[0] && previous_ccc < ccc) {
++++          // Try finding a composition.
++++          uint16_t left = composition[0];
++++          uint16_t right = composition[1];
++++          while (left + 2 < right) {
++++            // mean without overflow
++++            uint16_t middle = left + (((right - left) >> 1) & ~1);
++++            if (composition_data[middle] <= input[input_count + 1]) {
++++              left = middle;
++++            }
++++            if (composition_data[middle] >= input[input_count + 1]) {
++++              right = middle;
++++            }
++++          }
++++          if (composition_data[left] == input[input_count + 1]) {
++++            input[initial_composition_count] = composition_data[left + 1];
++++            composition =
++++                &composition_block
++++                    [composition_index[composition_data[left + 1] >> 8]]
++++                    [composition_data[left + 1] % 256];
++++            continue;
++++          }
++++        }
++++
++++        if (ccc == 0) {
++++          break;
++++        }  // Not a combining character.
++++        previous_ccc = ccc;
++++        input[++composition_count] = input[input_count + 1];
++++      }
++++    }
++++  }
++++
++++  if (composition_count < input_count) {
++++    input.resize(composition_count);
++++  }
++++}
++++
++++void normalize(std::u32string& input) {
++++  /**
++++   * Normalize the domain_name string to Unicode Normalization Form C.
++++   * @see https://www.unicode.org/reports/tr46/#ProcessingStepNormalize
++++   */
++++  decompose_nfc(input);
++++  compose(input);
++++}
++++
++++}  // namespace ada::idna
++++/* end file src/normalization.cpp */
++++/* begin file src/punycode.cpp */
++++
++++#include <cstdint>
++++
++++namespace ada::idna {
++++
++++constexpr int32_t base = 36;
++++constexpr int32_t tmin = 1;
++++constexpr int32_t tmax = 26;
++++constexpr int32_t skew = 38;
++++constexpr int32_t damp = 700;
++++constexpr int32_t initial_bias = 72;
++++constexpr uint32_t initial_n = 128;
++++
++++static constexpr int32_t char_to_digit_value(char value) {
++++  if (value >= 'a' && value <= 'z') return value - 'a';
++++  if (value >= '0' && value <= '9') return value - '0' + 26;
++++  return -1;
++++}
++++
++++static constexpr char digit_to_char(int32_t digit) {
++++  return digit < 26 ? char(digit + 97) : char(digit + 22);
++++}
++++
++++static constexpr int32_t adapt(int32_t d, int32_t n, bool firsttime) {
++++  if (firsttime) {
++++    d = d / damp;
++++  } else {
++++    d = d / 2;
++++  }
++++  d += d / n;
++++  int32_t k = 0;
++++  while (d > ((base - tmin) * tmax) / 2) {
++++    d /= base - tmin;
++++    k += base;
++++  }
++++  return k + (((base - tmin + 1) * d) / (d + skew));
++++}
++++
++++bool punycode_to_utf32(std::string_view input, std::u32string &out) {
++++  int32_t written_out{0};
++++  out.reserve(out.size() + input.size());
++++  uint32_t n = initial_n;
++++  int32_t i = 0;
++++  int32_t bias = initial_bias;
++++  // grab ascii content
++++  size_t end_of_ascii = input.find_last_of('-');
++++  if (end_of_ascii != std::string_view::npos) {
++++    for (uint8_t c : input.substr(0, end_of_ascii)) {
++++      if (c >= 0x80) {
++++        return false;
++++      }
++++      out.push_back(c);
++++      written_out++;
++++    }
++++    input.remove_prefix(end_of_ascii + 1);
++++  }
++++  while (!input.empty()) {
++++    int32_t oldi = i;
++++    int32_t w = 1;
++++    for (int32_t k = base;; k += base) {
++++      if (input.empty()) {
++++        return false;
++++      }
++++      uint8_t code_point = input.front();
++++      input.remove_prefix(1);
++++      int32_t digit = char_to_digit_value(code_point);
++++      if (digit < 0) {
++++        return false;
++++      }
++++      if (digit > (0x7fffffff - i) / w) {
++++        return false;
++++      }
++++      i = i + digit * w;
++++      int32_t t = k <= bias ? tmin : k >= bias + tmax ? tmax : k - bias;
++++      if (digit < t) {
++++        break;
++++      }
++++      if (w > 0x7fffffff / (base - t)) {
++++        return false;
++++      }
++++      w = w * (base - t);
++++    }
++++    bias = adapt(i - oldi, written_out + 1, oldi == 0);
++++    if (i / (written_out + 1) > int32_t(0x7fffffff - n)) {
++++      return false;
++++    }
++++    n = n + i / (written_out + 1);
++++    i = i % (written_out + 1);
++++    if (n < 0x80) {
++++      return false;
++++    }
++++    out.insert(out.begin() + i, n);
++++    written_out++;
++++    ++i;
++++  }
++++
++++  return true;
++++}
++++
++++bool verify_punycode(std::string_view input) {
++++  size_t written_out{0};
++++  uint32_t n = initial_n;
++++  int32_t i = 0;
++++  int32_t bias = initial_bias;
++++  // grab ascii content
++++  size_t end_of_ascii = input.find_last_of('-');
++++  if (end_of_ascii != std::string_view::npos) {
++++    for (uint8_t c : input.substr(0, end_of_ascii)) {
++++      if (c >= 0x80) {
++++        return false;
++++      }
++++      written_out++;
++++    }
++++    input.remove_prefix(end_of_ascii + 1);
++++  }
++++  while (!input.empty()) {
++++    int32_t oldi = i;
++++    int32_t w = 1;
++++    for (int32_t k = base;; k += base) {
++++      if (input.empty()) {
++++        return false;
++++      }
++++      uint8_t code_point = input.front();
++++      input.remove_prefix(1);
++++      int32_t digit = char_to_digit_value(code_point);
++++      if (digit < 0) {
++++        return false;
++++      }
++++      if (digit > (0x7fffffff - i) / w) {
++++        return false;
++++      }
++++      i = i + digit * w;
++++      int32_t t = k <= bias ? tmin : k >= bias + tmax ? tmax : k - bias;
++++      if (digit < t) {
++++        break;
++++      }
++++      if (w > 0x7fffffff / (base - t)) {
++++        return false;
++++      }
++++      w = w * (base - t);
++++    }
++++    bias = adapt(i - oldi, int32_t(written_out + 1), oldi == 0);
++++    if (i / (written_out + 1) > 0x7fffffff - n) {
++++      return false;
++++    }
++++    n = n + i / int32_t(written_out + 1);
++++    i = i % int32_t(written_out + 1);
++++    if (n < 0x80) {
++++      return false;
++++    }
++++    written_out++;
++++    ++i;
++++  }
++++
++++  return true;
++++}
++++
++++bool utf32_to_punycode(std::u32string_view input, std::string &out) {
++++  out.reserve(input.size() + out.size());
++++  uint32_t n = initial_n;
++++  int32_t d = 0;
++++  int32_t bias = initial_bias;
++++  size_t h = 0;
++++  // first push the ascii content
++++  for (uint32_t c : input) {
++++    if (c < 0x80) {
++++      ++h;
++++      out.push_back(char(c));
++++    }
++++    if (c > 0x10ffff || (c >= 0xd880 && c < 0xe000)) {
++++      return false;
++++    }
++++  }
++++  size_t b = h;
++++  if (b > 0) {
++++    out.push_back('-');
++++  }
++++  while (h < input.size()) {
++++    uint32_t m = 0x10FFFF;
++++    for (auto code_point : input) {
++++      if (code_point >= n && code_point < m) m = code_point;
++++    }
++++
++++    if ((m - n) > (0x7fffffff - d) / (h + 1)) {
++++      return false;
++++    }
++++    d = d + int32_t((m - n) * (h + 1));
++++    n = m;
++++    for (auto c : input) {
++++      if (c < n) {
++++        if (d == 0x7fffffff) {
++++          return false;
++++        }
++++        ++d;
++++      }
++++      if (c == n) {
++++        int32_t q = d;
++++        for (int32_t k = base;; k += base) {
++++          int32_t t = k <= bias ? tmin : k >= bias + tmax ? tmax : k - bias;
++++
++++          if (q < t) {
++++            break;
++++          }
++++          out.push_back(digit_to_char(t + ((q - t) % (base - t))));
++++          q = (q - t) / (base - t);
++++        }
++++        out.push_back(digit_to_char(q));
++++        bias = adapt(d, int32_t(h + 1), h == b);
++++        d = 0;
++++        ++h;
++++      }
++++    }
++++    ++d;
++++    ++n;
++++  }
++++  return true;
++++}
++++
++++}  // namespace ada::idna
++++/* end file src/punycode.cpp */
++++/* begin file src/validity.cpp */
++++#include <algorithm>
++++#include <string_view>
++++
++++namespace ada::idna {
++++
++++enum direction : uint8_t {
++++  NONE,
++++  BN,
++++  CS,
++++  ES,
++++  ON,
++++  EN,
++++  L,
++++  R,
++++  NSM,
++++  AL,
++++  AN,
++++  ET,
++++  WS,
++++  RLO,
++++  LRO,
++++  PDF,
++++  RLE,
++++  RLI,
++++  FSI,
++++  PDI,
++++  LRI,
++++  B,
++++  S,
++++  LRE
++++};
++++
++++struct directions {
++++  uint32_t start_code;
++++  uint32_t final_code;
++++  direction direct;
++++};
++++
++++static directions dir_table[] = {
++++    {0x0, 0x8, direction::BN},          {0x9, 0x9, direction::S},
++++    {0xa, 0xa, direction::B},           {0xb, 0xb, direction::S},
++++    {0xc, 0xc, direction::WS},          {0xd, 0xd, direction::B},
++++    {0xe, 0x1b, direction::BN},         {0x1c, 0x1e, direction::B},
++++    {0x1f, 0x1f, direction::S},         {0x20, 0x20, direction::WS},
++++    {0x21, 0x22, direction::ON},        {0x23, 0x25, direction::ET},
++++    {0x26, 0x2a, direction::ON},        {0x2b, 0x2b, direction::ES},
++++    {0x2c, 0x2c, direction::CS},        {0x2d, 0x2d, direction::ES},
++++    {0x2e, 0x2f, direction::CS},        {0x30, 0x39, direction::EN},
++++    {0x3a, 0x3a, direction::CS},        {0x3b, 0x40, direction::ON},
++++    {0x41, 0x5a, direction::L},         {0x5b, 0x60, direction::ON},
++++    {0x61, 0x7a, direction::L},         {0x7b, 0x7e, direction::ON},
++++    {0x7f, 0x84, direction::BN},        {0x85, 0x85, direction::B},
++++    {0x86, 0x9f, direction::BN},        {0xa0, 0xa0, direction::CS},
++++    {0xa1, 0xa1, direction::ON},        {0xa2, 0xa5, direction::ET},
++++    {0xa6, 0xa9, direction::ON},        {0xaa, 0xaa, direction::L},
++++    {0xab, 0xac, direction::ON},        {0xad, 0xad, direction::BN},
++++    {0xae, 0xaf, direction::ON},        {0xb0, 0xb1, direction::ET},
++++    {0xb2, 0xb3, direction::EN},        {0xb4, 0xb4, direction::ON},
++++    {0xb5, 0xb5, direction::L},         {0xb6, 0xb8, direction::ON},
++++    {0xb9, 0xb9, direction::EN},        {0xba, 0xba, direction::L},
++++    {0xbb, 0xbf, direction::ON},        {0xc0, 0xd6, direction::L},
++++    {0xd7, 0xd7, direction::ON},        {0xd8, 0xf6, direction::L},
++++    {0xf7, 0xf7, direction::ON},        {0xf8, 0x2b8, direction::L},
++++    {0x2b9, 0x2ba, direction::ON},      {0x2bb, 0x2c1, direction::L},
++++    {0x2c2, 0x2cf, direction::ON},      {0x2d0, 0x2d1, direction::L},
++++    {0x2d2, 0x2df, direction::ON},      {0x2e0, 0x2e4, direction::L},
++++    {0x2e5, 0x2ed, direction::ON},      {0x2ee, 0x2ee, direction::L},
++++    {0x2ef, 0x2ff, direction::ON},      {0x300, 0x36f, direction::NSM},
++++    {0x370, 0x373, direction::L},       {0x374, 0x375, direction::ON},
++++    {0x376, 0x377, direction::L},       {0x37a, 0x37d, direction::L},
++++    {0x37e, 0x37e, direction::ON},      {0x37f, 0x37f, direction::L},
++++    {0x384, 0x385, direction::ON},      {0x386, 0x386, direction::L},
++++    {0x387, 0x387, direction::ON},      {0x388, 0x38a, direction::L},
++++    {0x38c, 0x38c, direction::L},       {0x38e, 0x3a1, direction::L},
++++    {0x3a3, 0x3f5, direction::L},       {0x3f6, 0x3f6, direction::ON},
++++    {0x3f7, 0x482, direction::L},       {0x483, 0x489, direction::NSM},
++++    {0x48a, 0x52f, direction::L},       {0x531, 0x556, direction::L},
++++    {0x559, 0x589, direction::L},       {0x58a, 0x58a, direction::ON},
++++    {0x58d, 0x58e, direction::ON},      {0x58f, 0x58f, direction::ET},
++++    {0x591, 0x5bd, direction::NSM},     {0x5be, 0x5be, direction::R},
++++    {0x5bf, 0x5bf, direction::NSM},     {0x5c0, 0x5c0, direction::R},
++++    {0x5c1, 0x5c2, direction::NSM},     {0x5c3, 0x5c3, direction::R},
++++    {0x5c4, 0x5c5, direction::NSM},     {0x5c6, 0x5c6, direction::R},
++++    {0x5c7, 0x5c7, direction::NSM},     {0x5d0, 0x5ea, direction::R},
++++    {0x5ef, 0x5f4, direction::R},       {0x600, 0x605, direction::AN},
++++    {0x606, 0x607, direction::ON},      {0x608, 0x608, direction::AL},
++++    {0x609, 0x60a, direction::ET},      {0x60b, 0x60b, direction::AL},
++++    {0x60c, 0x60c, direction::CS},      {0x60d, 0x60d, direction::AL},
++++    {0x60e, 0x60f, direction::ON},      {0x610, 0x61a, direction::NSM},
++++    {0x61b, 0x61c, direction::AL},      {0x61e, 0x64a, direction::AL},
++++    {0x64b, 0x65f, direction::NSM},     {0x660, 0x669, direction::AN},
++++    {0x66a, 0x66a, direction::ET},      {0x66b, 0x66c, direction::AN},
++++    {0x66d, 0x66f, direction::AL},      {0x670, 0x670, direction::NSM},
++++    {0x671, 0x6d5, direction::AL},      {0x6d6, 0x6dc, direction::NSM},
++++    {0x6dd, 0x6dd, direction::AN},      {0x6de, 0x6de, direction::ON},
++++    {0x6df, 0x6e4, direction::NSM},     {0x6e5, 0x6e6, direction::AL},
++++    {0x6e7, 0x6e8, direction::NSM},     {0x6e9, 0x6e9, direction::ON},
++++    {0x6ea, 0x6ed, direction::NSM},     {0x6ee, 0x6ef, direction::AL},
++++    {0x6f0, 0x6f9, direction::EN},      {0x6fa, 0x70d, direction::AL},
++++    {0x70f, 0x710, direction::AL},      {0x711, 0x711, direction::NSM},
++++    {0x712, 0x72f, direction::AL},      {0x730, 0x74a, direction::NSM},
++++    {0x74d, 0x7a5, direction::AL},      {0x7a6, 0x7b0, direction::NSM},
++++    {0x7b1, 0x7b1, direction::AL},      {0x7c0, 0x7ea, direction::R},
++++    {0x7eb, 0x7f3, direction::NSM},     {0x7f4, 0x7f5, direction::R},
++++    {0x7f6, 0x7f9, direction::ON},      {0x7fa, 0x7fa, direction::R},
++++    {0x7fd, 0x7fd, direction::NSM},     {0x7fe, 0x815, direction::R},
++++    {0x816, 0x819, direction::NSM},     {0x81a, 0x81a, direction::R},
++++    {0x81b, 0x823, direction::NSM},     {0x824, 0x824, direction::R},
++++    {0x825, 0x827, direction::NSM},     {0x828, 0x828, direction::R},
++++    {0x829, 0x82d, direction::NSM},     {0x830, 0x83e, direction::R},
++++    {0x840, 0x858, direction::R},       {0x859, 0x85b, direction::NSM},
++++    {0x85e, 0x85e, direction::R},       {0x860, 0x86a, direction::AL},
++++    {0x8a0, 0x8b4, direction::AL},      {0x8b6, 0x8c7, direction::AL},
++++    {0x8d3, 0x8e1, direction::NSM},     {0x8e2, 0x8e2, direction::AN},
++++    {0x8e3, 0x902, direction::NSM},     {0x903, 0x939, direction::L},
++++    {0x93a, 0x93a, direction::NSM},     {0x93b, 0x93b, direction::L},
++++    {0x93c, 0x93c, direction::NSM},     {0x93d, 0x940, direction::L},
++++    {0x941, 0x948, direction::NSM},     {0x949, 0x94c, direction::L},
++++    {0x94d, 0x94d, direction::NSM},     {0x94e, 0x950, direction::L},
++++    {0x951, 0x957, direction::NSM},     {0x958, 0x961, direction::L},
++++    {0x962, 0x963, direction::NSM},     {0x964, 0x980, direction::L},
++++    {0x981, 0x981, direction::NSM},     {0x982, 0x983, direction::L},
++++    {0x985, 0x98c, direction::L},       {0x98f, 0x990, direction::L},
++++    {0x993, 0x9a8, direction::L},       {0x9aa, 0x9b0, direction::L},
++++    {0x9b2, 0x9b2, direction::L},       {0x9b6, 0x9b9, direction::L},
++++    {0x9bc, 0x9bc, direction::NSM},     {0x9bd, 0x9c0, direction::L},
++++    {0x9c1, 0x9c4, direction::NSM},     {0x9c7, 0x9c8, direction::L},
++++    {0x9cb, 0x9cc, direction::L},       {0x9cd, 0x9cd, direction::NSM},
++++    {0x9ce, 0x9ce, direction::L},       {0x9d7, 0x9d7, direction::L},
++++    {0x9dc, 0x9dd, direction::L},       {0x9df, 0x9e1, direction::L},
++++    {0x9e2, 0x9e3, direction::NSM},     {0x9e6, 0x9f1, direction::L},
++++    {0x9f2, 0x9f3, direction::ET},      {0x9f4, 0x9fa, direction::L},
++++    {0x9fb, 0x9fb, direction::ET},      {0x9fc, 0x9fd, direction::L},
++++    {0x9fe, 0x9fe, direction::NSM},     {0xa01, 0xa02, direction::NSM},
++++    {0xa03, 0xa03, direction::L},       {0xa05, 0xa0a, direction::L},
++++    {0xa0f, 0xa10, direction::L},       {0xa13, 0xa28, direction::L},
++++    {0xa2a, 0xa30, direction::L},       {0xa32, 0xa33, direction::L},
++++    {0xa35, 0xa36, direction::L},       {0xa38, 0xa39, direction::L},
++++    {0xa3c, 0xa3c, direction::NSM},     {0xa3e, 0xa40, direction::L},
++++    {0xa41, 0xa42, direction::NSM},     {0xa47, 0xa48, direction::NSM},
++++    {0xa4b, 0xa4d, direction::NSM},     {0xa51, 0xa51, direction::NSM},
++++    {0xa59, 0xa5c, direction::L},       {0xa5e, 0xa5e, direction::L},
++++    {0xa66, 0xa6f, direction::L},       {0xa70, 0xa71, direction::NSM},
++++    {0xa72, 0xa74, direction::L},       {0xa75, 0xa75, direction::NSM},
++++    {0xa76, 0xa76, direction::L},       {0xa81, 0xa82, direction::NSM},
++++    {0xa83, 0xa83, direction::L},       {0xa85, 0xa8d, direction::L},
++++    {0xa8f, 0xa91, direction::L},       {0xa93, 0xaa8, direction::L},
++++    {0xaaa, 0xab0, direction::L},       {0xab2, 0xab3, direction::L},
++++    {0xab5, 0xab9, direction::L},       {0xabc, 0xabc, direction::NSM},
++++    {0xabd, 0xac0, direction::L},       {0xac1, 0xac5, direction::NSM},
++++    {0xac7, 0xac8, direction::NSM},     {0xac9, 0xac9, direction::L},
++++    {0xacb, 0xacc, direction::L},       {0xacd, 0xacd, direction::NSM},
++++    {0xad0, 0xad0, direction::L},       {0xae0, 0xae1, direction::L},
++++    {0xae2, 0xae3, direction::NSM},     {0xae6, 0xaf0, direction::L},
++++    {0xaf1, 0xaf1, direction::ET},      {0xaf9, 0xaf9, direction::L},
++++    {0xafa, 0xaff, direction::NSM},     {0xb01, 0xb01, direction::NSM},
++++    {0xb02, 0xb03, direction::L},       {0xb05, 0xb0c, direction::L},
++++    {0xb0f, 0xb10, direction::L},       {0xb13, 0xb28, direction::L},
++++    {0xb2a, 0xb30, direction::L},       {0xb32, 0xb33, direction::L},
++++    {0xb35, 0xb39, direction::L},       {0xb3c, 0xb3c, direction::NSM},
++++    {0xb3d, 0xb3e, direction::L},       {0xb3f, 0xb3f, direction::NSM},
++++    {0xb40, 0xb40, direction::L},       {0xb41, 0xb44, direction::NSM},
++++    {0xb47, 0xb48, direction::L},       {0xb4b, 0xb4c, direction::L},
++++    {0xb4d, 0xb4d, direction::NSM},     {0xb55, 0xb56, direction::NSM},
++++    {0xb57, 0xb57, direction::L},       {0xb5c, 0xb5d, direction::L},
++++    {0xb5f, 0xb61, direction::L},       {0xb62, 0xb63, direction::NSM},
++++    {0xb66, 0xb77, direction::L},       {0xb82, 0xb82, direction::NSM},
++++    {0xb83, 0xb83, direction::L},       {0xb85, 0xb8a, direction::L},
++++    {0xb8e, 0xb90, direction::L},       {0xb92, 0xb95, direction::L},
++++    {0xb99, 0xb9a, direction::L},       {0xb9c, 0xb9c, direction::L},
++++    {0xb9e, 0xb9f, direction::L},       {0xba3, 0xba4, direction::L},
++++    {0xba8, 0xbaa, direction::L},       {0xbae, 0xbb9, direction::L},
++++    {0xbbe, 0xbbf, direction::L},       {0xbc0, 0xbc0, direction::NSM},
++++    {0xbc1, 0xbc2, direction::L},       {0xbc6, 0xbc8, direction::L},
++++    {0xbca, 0xbcc, direction::L},       {0xbcd, 0xbcd, direction::NSM},
++++    {0xbd0, 0xbd0, direction::L},       {0xbd7, 0xbd7, direction::L},
++++    {0xbe6, 0xbf2, direction::L},       {0xbf3, 0xbf8, direction::ON},
++++    {0xbf9, 0xbf9, direction::ET},      {0xbfa, 0xbfa, direction::ON},
++++    {0xc00, 0xc00, direction::NSM},     {0xc01, 0xc03, direction::L},
++++    {0xc04, 0xc04, direction::NSM},     {0xc05, 0xc0c, direction::L},
++++    {0xc0e, 0xc10, direction::L},       {0xc12, 0xc28, direction::L},
++++    {0xc2a, 0xc39, direction::L},       {0xc3d, 0xc3d, direction::L},
++++    {0xc3e, 0xc40, direction::NSM},     {0xc41, 0xc44, direction::L},
++++    {0xc46, 0xc48, direction::NSM},     {0xc4a, 0xc4d, direction::NSM},
++++    {0xc55, 0xc56, direction::NSM},     {0xc58, 0xc5a, direction::L},
++++    {0xc60, 0xc61, direction::L},       {0xc62, 0xc63, direction::NSM},
++++    {0xc66, 0xc6f, direction::L},       {0xc77, 0xc77, direction::L},
++++    {0xc78, 0xc7e, direction::ON},      {0xc7f, 0xc80, direction::L},
++++    {0xc81, 0xc81, direction::NSM},     {0xc82, 0xc8c, direction::L},
++++    {0xc8e, 0xc90, direction::L},       {0xc92, 0xca8, direction::L},
++++    {0xcaa, 0xcb3, direction::L},       {0xcb5, 0xcb9, direction::L},
++++    {0xcbc, 0xcbc, direction::NSM},     {0xcbd, 0xcc4, direction::L},
++++    {0xcc6, 0xcc8, direction::L},       {0xcca, 0xccb, direction::L},
++++    {0xccc, 0xccd, direction::NSM},     {0xcd5, 0xcd6, direction::L},
++++    {0xcde, 0xcde, direction::L},       {0xce0, 0xce1, direction::L},
++++    {0xce2, 0xce3, direction::NSM},     {0xce6, 0xcef, direction::L},
++++    {0xcf1, 0xcf2, direction::L},       {0xd00, 0xd01, direction::NSM},
++++    {0xd02, 0xd0c, direction::L},       {0xd0e, 0xd10, direction::L},
++++    {0xd12, 0xd3a, direction::L},       {0xd3b, 0xd3c, direction::NSM},
++++    {0xd3d, 0xd40, direction::L},       {0xd41, 0xd44, direction::NSM},
++++    {0xd46, 0xd48, direction::L},       {0xd4a, 0xd4c, direction::L},
++++    {0xd4d, 0xd4d, direction::NSM},     {0xd4e, 0xd4f, direction::L},
++++    {0xd54, 0xd61, direction::L},       {0xd62, 0xd63, direction::NSM},
++++    {0xd66, 0xd7f, direction::L},       {0xd81, 0xd81, direction::NSM},
++++    {0xd82, 0xd83, direction::L},       {0xd85, 0xd96, direction::L},
++++    {0xd9a, 0xdb1, direction::L},       {0xdb3, 0xdbb, direction::L},
++++    {0xdbd, 0xdbd, direction::L},       {0xdc0, 0xdc6, direction::L},
++++    {0xdca, 0xdca, direction::NSM},     {0xdcf, 0xdd1, direction::L},
++++    {0xdd2, 0xdd4, direction::NSM},     {0xdd6, 0xdd6, direction::NSM},
++++    {0xdd8, 0xddf, direction::L},       {0xde6, 0xdef, direction::L},
++++    {0xdf2, 0xdf4, direction::L},       {0xe01, 0xe30, direction::L},
++++    {0xe31, 0xe31, direction::NSM},     {0xe32, 0xe33, direction::L},
++++    {0xe34, 0xe3a, direction::NSM},     {0xe3f, 0xe3f, direction::ET},
++++    {0xe40, 0xe46, direction::L},       {0xe47, 0xe4e, direction::NSM},
++++    {0xe4f, 0xe5b, direction::L},       {0xe81, 0xe82, direction::L},
++++    {0xe84, 0xe84, direction::L},       {0xe86, 0xe8a, direction::L},
++++    {0xe8c, 0xea3, direction::L},       {0xea5, 0xea5, direction::L},
++++    {0xea7, 0xeb0, direction::L},       {0xeb1, 0xeb1, direction::NSM},
++++    {0xeb2, 0xeb3, direction::L},       {0xeb4, 0xebc, direction::NSM},
++++    {0xebd, 0xebd, direction::L},       {0xec0, 0xec4, direction::L},
++++    {0xec6, 0xec6, direction::L},       {0xec8, 0xecd, direction::NSM},
++++    {0xed0, 0xed9, direction::L},       {0xedc, 0xedf, direction::L},
++++    {0xf00, 0xf17, direction::L},       {0xf18, 0xf19, direction::NSM},
++++    {0xf1a, 0xf34, direction::L},       {0xf35, 0xf35, direction::NSM},
++++    {0xf36, 0xf36, direction::L},       {0xf37, 0xf37, direction::NSM},
++++    {0xf38, 0xf38, direction::L},       {0xf39, 0xf39, direction::NSM},
++++    {0xf3a, 0xf3d, direction::ON},      {0xf3e, 0xf47, direction::L},
++++    {0xf49, 0xf6c, direction::L},       {0xf71, 0xf7e, direction::NSM},
++++    {0xf7f, 0xf7f, direction::L},       {0xf80, 0xf84, direction::NSM},
++++    {0xf85, 0xf85, direction::L},       {0xf86, 0xf87, direction::NSM},
++++    {0xf88, 0xf8c, direction::L},       {0xf8d, 0xf97, direction::NSM},
++++    {0xf99, 0xfbc, direction::NSM},     {0xfbe, 0xfc5, direction::L},
++++    {0xfc6, 0xfc6, direction::NSM},     {0xfc7, 0xfcc, direction::L},
++++    {0xfce, 0xfda, direction::L},       {0x1000, 0x102c, direction::L},
++++    {0x102d, 0x1030, direction::NSM},   {0x1031, 0x1031, direction::L},
++++    {0x1032, 0x1037, direction::NSM},   {0x1038, 0x1038, direction::L},
++++    {0x1039, 0x103a, direction::NSM},   {0x103b, 0x103c, direction::L},
++++    {0x103d, 0x103e, direction::NSM},   {0x103f, 0x1057, direction::L},
++++    {0x1058, 0x1059, direction::NSM},   {0x105a, 0x105d, direction::L},
++++    {0x105e, 0x1060, direction::NSM},   {0x1061, 0x1070, direction::L},
++++    {0x1071, 0x1074, direction::NSM},   {0x1075, 0x1081, direction::L},
++++    {0x1082, 0x1082, direction::NSM},   {0x1083, 0x1084, direction::L},
++++    {0x1085, 0x1086, direction::NSM},   {0x1087, 0x108c, direction::L},
++++    {0x108d, 0x108d, direction::NSM},   {0x108e, 0x109c, direction::L},
++++    {0x109d, 0x109d, direction::NSM},   {0x109e, 0x10c5, direction::L},
++++    {0x10c7, 0x10c7, direction::L},     {0x10cd, 0x10cd, direction::L},
++++    {0x10d0, 0x1248, direction::L},     {0x124a, 0x124d, direction::L},
++++    {0x1250, 0x1256, direction::L},     {0x1258, 0x1258, direction::L},
++++    {0x125a, 0x125d, direction::L},     {0x1260, 0x1288, direction::L},
++++    {0x128a, 0x128d, direction::L},     {0x1290, 0x12b0, direction::L},
++++    {0x12b2, 0x12b5, direction::L},     {0x12b8, 0x12be, direction::L},
++++    {0x12c0, 0x12c0, direction::L},     {0x12c2, 0x12c5, direction::L},
++++    {0x12c8, 0x12d6, direction::L},     {0x12d8, 0x1310, direction::L},
++++    {0x1312, 0x1315, direction::L},     {0x1318, 0x135a, direction::L},
++++    {0x135d, 0x135f, direction::NSM},   {0x1360, 0x137c, direction::L},
++++    {0x1380, 0x138f, direction::L},     {0x1390, 0x1399, direction::ON},
++++    {0x13a0, 0x13f5, direction::L},     {0x13f8, 0x13fd, direction::L},
++++    {0x1400, 0x1400, direction::ON},    {0x1401, 0x167f, direction::L},
++++    {0x1680, 0x1680, direction::WS},    {0x1681, 0x169a, direction::L},
++++    {0x169b, 0x169c, direction::ON},    {0x16a0, 0x16f8, direction::L},
++++    {0x1700, 0x170c, direction::L},     {0x170e, 0x1711, direction::L},
++++    {0x1712, 0x1714, direction::NSM},   {0x1720, 0x1731, direction::L},
++++    {0x1732, 0x1734, direction::NSM},   {0x1735, 0x1736, direction::L},
++++    {0x1740, 0x1751, direction::L},     {0x1752, 0x1753, direction::NSM},
++++    {0x1760, 0x176c, direction::L},     {0x176e, 0x1770, direction::L},
++++    {0x1772, 0x1773, direction::NSM},   {0x1780, 0x17b3, direction::L},
++++    {0x17b4, 0x17b5, direction::NSM},   {0x17b6, 0x17b6, direction::L},
++++    {0x17b7, 0x17bd, direction::NSM},   {0x17be, 0x17c5, direction::L},
++++    {0x17c6, 0x17c6, direction::NSM},   {0x17c7, 0x17c8, direction::L},
++++    {0x17c9, 0x17d3, direction::NSM},   {0x17d4, 0x17da, direction::L},
++++    {0x17db, 0x17db, direction::ET},    {0x17dc, 0x17dc, direction::L},
++++    {0x17dd, 0x17dd, direction::NSM},   {0x17e0, 0x17e9, direction::L},
++++    {0x17f0, 0x17f9, direction::ON},    {0x1800, 0x180a, direction::ON},
++++    {0x180b, 0x180d, direction::NSM},   {0x180e, 0x180e, direction::BN},
++++    {0x1810, 0x1819, direction::L},     {0x1820, 0x1878, direction::L},
++++    {0x1880, 0x1884, direction::L},     {0x1885, 0x1886, direction::NSM},
++++    {0x1887, 0x18a8, direction::L},     {0x18a9, 0x18a9, direction::NSM},
++++    {0x18aa, 0x18aa, direction::L},     {0x18b0, 0x18f5, direction::L},
++++    {0x1900, 0x191e, direction::L},     {0x1920, 0x1922, direction::NSM},
++++    {0x1923, 0x1926, direction::L},     {0x1927, 0x1928, direction::NSM},
++++    {0x1929, 0x192b, direction::L},     {0x1930, 0x1931, direction::L},
++++    {0x1932, 0x1932, direction::NSM},   {0x1933, 0x1938, direction::L},
++++    {0x1939, 0x193b, direction::NSM},   {0x1940, 0x1940, direction::ON},
++++    {0x1944, 0x1945, direction::ON},    {0x1946, 0x196d, direction::L},
++++    {0x1970, 0x1974, direction::L},     {0x1980, 0x19ab, direction::L},
++++    {0x19b0, 0x19c9, direction::L},     {0x19d0, 0x19da, direction::L},
++++    {0x19de, 0x19ff, direction::ON},    {0x1a00, 0x1a16, direction::L},
++++    {0x1a17, 0x1a18, direction::NSM},   {0x1a19, 0x1a1a, direction::L},
++++    {0x1a1b, 0x1a1b, direction::NSM},   {0x1a1e, 0x1a55, direction::L},
++++    {0x1a56, 0x1a56, direction::NSM},   {0x1a57, 0x1a57, direction::L},
++++    {0x1a58, 0x1a5e, direction::NSM},   {0x1a60, 0x1a60, direction::NSM},
++++    {0x1a61, 0x1a61, direction::L},     {0x1a62, 0x1a62, direction::NSM},
++++    {0x1a63, 0x1a64, direction::L},     {0x1a65, 0x1a6c, direction::NSM},
++++    {0x1a6d, 0x1a72, direction::L},     {0x1a73, 0x1a7c, direction::NSM},
++++    {0x1a7f, 0x1a7f, direction::NSM},   {0x1a80, 0x1a89, direction::L},
++++    {0x1a90, 0x1a99, direction::L},     {0x1aa0, 0x1aad, direction::L},
++++    {0x1ab0, 0x1ac0, direction::NSM},   {0x1b00, 0x1b03, direction::NSM},
++++    {0x1b04, 0x1b33, direction::L},     {0x1b34, 0x1b34, direction::NSM},
++++    {0x1b35, 0x1b35, direction::L},     {0x1b36, 0x1b3a, direction::NSM},
++++    {0x1b3b, 0x1b3b, direction::L},     {0x1b3c, 0x1b3c, direction::NSM},
++++    {0x1b3d, 0x1b41, direction::L},     {0x1b42, 0x1b42, direction::NSM},
++++    {0x1b43, 0x1b4b, direction::L},     {0x1b50, 0x1b6a, direction::L},
++++    {0x1b6b, 0x1b73, direction::NSM},   {0x1b74, 0x1b7c, direction::L},
++++    {0x1b80, 0x1b81, direction::NSM},   {0x1b82, 0x1ba1, direction::L},
++++    {0x1ba2, 0x1ba5, direction::NSM},   {0x1ba6, 0x1ba7, direction::L},
++++    {0x1ba8, 0x1ba9, direction::NSM},   {0x1baa, 0x1baa, direction::L},
++++    {0x1bab, 0x1bad, direction::NSM},   {0x1bae, 0x1be5, direction::L},
++++    {0x1be6, 0x1be6, direction::NSM},   {0x1be7, 0x1be7, direction::L},
++++    {0x1be8, 0x1be9, direction::NSM},   {0x1bea, 0x1bec, direction::L},
++++    {0x1bed, 0x1bed, direction::NSM},   {0x1bee, 0x1bee, direction::L},
++++    {0x1bef, 0x1bf1, direction::NSM},   {0x1bf2, 0x1bf3, direction::L},
++++    {0x1bfc, 0x1c2b, direction::L},     {0x1c2c, 0x1c33, direction::NSM},
++++    {0x1c34, 0x1c35, direction::L},     {0x1c36, 0x1c37, direction::NSM},
++++    {0x1c3b, 0x1c49, direction::L},     {0x1c4d, 0x1c88, direction::L},
++++    {0x1c90, 0x1cba, direction::L},     {0x1cbd, 0x1cc7, direction::L},
++++    {0x1cd0, 0x1cd2, direction::NSM},   {0x1cd3, 0x1cd3, direction::L},
++++    {0x1cd4, 0x1ce0, direction::NSM},   {0x1ce1, 0x1ce1, direction::L},
++++    {0x1ce2, 0x1ce8, direction::NSM},   {0x1ce9, 0x1cec, direction::L},
++++    {0x1ced, 0x1ced, direction::NSM},   {0x1cee, 0x1cf3, direction::L},
++++    {0x1cf4, 0x1cf4, direction::NSM},   {0x1cf5, 0x1cf7, direction::L},
++++    {0x1cf8, 0x1cf9, direction::NSM},   {0x1cfa, 0x1cfa, direction::L},
++++    {0x1d00, 0x1dbf, direction::L},     {0x1dc0, 0x1df9, direction::NSM},
++++    {0x1dfb, 0x1dff, direction::NSM},   {0x1e00, 0x1f15, direction::L},
++++    {0x1f18, 0x1f1d, direction::L},     {0x1f20, 0x1f45, direction::L},
++++    {0x1f48, 0x1f4d, direction::L},     {0x1f50, 0x1f57, direction::L},
++++    {0x1f59, 0x1f59, direction::L},     {0x1f5b, 0x1f5b, direction::L},
++++    {0x1f5d, 0x1f5d, direction::L},     {0x1f5f, 0x1f7d, direction::L},
++++    {0x1f80, 0x1fb4, direction::L},     {0x1fb6, 0x1fbc, direction::L},
++++    {0x1fbd, 0x1fbd, direction::ON},    {0x1fbe, 0x1fbe, direction::L},
++++    {0x1fbf, 0x1fc1, direction::ON},    {0x1fc2, 0x1fc4, direction::L},
++++    {0x1fc6, 0x1fcc, direction::L},     {0x1fcd, 0x1fcf, direction::ON},
++++    {0x1fd0, 0x1fd3, direction::L},     {0x1fd6, 0x1fdb, direction::L},
++++    {0x1fdd, 0x1fdf, direction::ON},    {0x1fe0, 0x1fec, direction::L},
++++    {0x1fed, 0x1fef, direction::ON},    {0x1ff2, 0x1ff4, direction::L},
++++    {0x1ff6, 0x1ffc, direction::L},     {0x1ffd, 0x1ffe, direction::ON},
++++    {0x2000, 0x200a, direction::WS},    {0x200b, 0x200d, direction::BN},
++++    {0x200e, 0x200e, direction::L},     {0x200f, 0x200f, direction::R},
++++    {0x2010, 0x2027, direction::ON},    {0x2028, 0x2028, direction::WS},
++++    {0x2029, 0x2029, direction::B},     {0x202a, 0x202a, direction::LRE},
++++    {0x202b, 0x202b, direction::RLE},   {0x202c, 0x202c, direction::PDF},
++++    {0x202d, 0x202d, direction::LRO},   {0x202e, 0x202e, direction::RLO},
++++    {0x202f, 0x202f, direction::CS},    {0x2030, 0x2034, direction::ET},
++++    {0x2035, 0x2043, direction::ON},    {0x2044, 0x2044, direction::CS},
++++    {0x2045, 0x205e, direction::ON},    {0x205f, 0x205f, direction::WS},
++++    {0x2060, 0x2064, direction::BN},    {0x2066, 0x2066, direction::LRI},
++++    {0x2067, 0x2067, direction::RLI},   {0x2068, 0x2068, direction::FSI},
++++    {0x2069, 0x2069, direction::PDI},   {0x206a, 0x206f, direction::BN},
++++    {0x2070, 0x2070, direction::EN},    {0x2071, 0x2071, direction::L},
++++    {0x2074, 0x2079, direction::EN},    {0x207a, 0x207b, direction::ES},
++++    {0x207c, 0x207e, direction::ON},    {0x207f, 0x207f, direction::L},
++++    {0x2080, 0x2089, direction::EN},    {0x208a, 0x208b, direction::ES},
++++    {0x208c, 0x208e, direction::ON},    {0x2090, 0x209c, direction::L},
++++    {0x20a0, 0x20bf, direction::ET},    {0x20d0, 0x20f0, direction::NSM},
++++    {0x2100, 0x2101, direction::ON},    {0x2102, 0x2102, direction::L},
++++    {0x2103, 0x2106, direction::ON},    {0x2107, 0x2107, direction::L},
++++    {0x2108, 0x2109, direction::ON},    {0x210a, 0x2113, direction::L},
++++    {0x2114, 0x2114, direction::ON},    {0x2115, 0x2115, direction::L},
++++    {0x2116, 0x2118, direction::ON},    {0x2119, 0x211d, direction::L},
++++    {0x211e, 0x2123, direction::ON},    {0x2124, 0x2124, direction::L},
++++    {0x2125, 0x2125, direction::ON},    {0x2126, 0x2126, direction::L},
++++    {0x2127, 0x2127, direction::ON},    {0x2128, 0x2128, direction::L},
++++    {0x2129, 0x2129, direction::ON},    {0x212a, 0x212d, direction::L},
++++    {0x212e, 0x212e, direction::ET},    {0x212f, 0x2139, direction::L},
++++    {0x213a, 0x213b, direction::ON},    {0x213c, 0x213f, direction::L},
++++    {0x2140, 0x2144, direction::ON},    {0x2145, 0x2149, direction::L},
++++    {0x214a, 0x214d, direction::ON},    {0x214e, 0x214f, direction::L},
++++    {0x2150, 0x215f, direction::ON},    {0x2160, 0x2188, direction::L},
++++    {0x2189, 0x218b, direction::ON},    {0x2190, 0x2211, direction::ON},
++++    {0x2212, 0x2212, direction::ES},    {0x2213, 0x2213, direction::ET},
++++    {0x2214, 0x2335, direction::ON},    {0x2336, 0x237a, direction::L},
++++    {0x237b, 0x2394, direction::ON},    {0x2395, 0x2395, direction::L},
++++    {0x2396, 0x2426, direction::ON},    {0x2440, 0x244a, direction::ON},
++++    {0x2460, 0x2487, direction::ON},    {0x2488, 0x249b, direction::EN},
++++    {0x249c, 0x24e9, direction::L},     {0x24ea, 0x26ab, direction::ON},
++++    {0x26ac, 0x26ac, direction::L},     {0x26ad, 0x27ff, direction::ON},
++++    {0x2800, 0x28ff, direction::L},     {0x2900, 0x2b73, direction::ON},
++++    {0x2b76, 0x2b95, direction::ON},    {0x2b97, 0x2bff, direction::ON},
++++    {0x2c00, 0x2c2e, direction::L},     {0x2c30, 0x2c5e, direction::L},
++++    {0x2c60, 0x2ce4, direction::L},     {0x2ce5, 0x2cea, direction::ON},
++++    {0x2ceb, 0x2cee, direction::L},     {0x2cef, 0x2cf1, direction::NSM},
++++    {0x2cf2, 0x2cf3, direction::L},     {0x2cf9, 0x2cff, direction::ON},
++++    {0x2d00, 0x2d25, direction::L},     {0x2d27, 0x2d27, direction::L},
++++    {0x2d2d, 0x2d2d, direction::L},     {0x2d30, 0x2d67, direction::L},
++++    {0x2d6f, 0x2d70, direction::L},     {0x2d7f, 0x2d7f, direction::NSM},
++++    {0x2d80, 0x2d96, direction::L},     {0x2da0, 0x2da6, direction::L},
++++    {0x2da8, 0x2dae, direction::L},     {0x2db0, 0x2db6, direction::L},
++++    {0x2db8, 0x2dbe, direction::L},     {0x2dc0, 0x2dc6, direction::L},
++++    {0x2dc8, 0x2dce, direction::L},     {0x2dd0, 0x2dd6, direction::L},
++++    {0x2dd8, 0x2dde, direction::L},     {0x2de0, 0x2dff, direction::NSM},
++++    {0x2e00, 0x2e52, direction::ON},    {0x2e80, 0x2e99, direction::ON},
++++    {0x2e9b, 0x2ef3, direction::ON},    {0x2f00, 0x2fd5, direction::ON},
++++    {0x2ff0, 0x2ffb, direction::ON},    {0x3000, 0x3000, direction::WS},
++++    {0x3001, 0x3004, direction::ON},    {0x3005, 0x3007, direction::L},
++++    {0x3008, 0x3020, direction::ON},    {0x3021, 0x3029, direction::L},
++++    {0x302a, 0x302d, direction::NSM},   {0x302e, 0x302f, direction::L},
++++    {0x3030, 0x3030, direction::ON},    {0x3031, 0x3035, direction::L},
++++    {0x3036, 0x3037, direction::ON},    {0x3038, 0x303c, direction::L},
++++    {0x303d, 0x303f, direction::ON},    {0x3041, 0x3096, direction::L},
++++    {0x3099, 0x309a, direction::NSM},   {0x309b, 0x309c, direction::ON},
++++    {0x309d, 0x309f, direction::L},     {0x30a0, 0x30a0, direction::ON},
++++    {0x30a1, 0x30fa, direction::L},     {0x30fb, 0x30fb, direction::ON},
++++    {0x30fc, 0x30ff, direction::L},     {0x3105, 0x312f, direction::L},
++++    {0x3131, 0x318e, direction::L},     {0x3190, 0x31bf, direction::L},
++++    {0x31c0, 0x31e3, direction::ON},    {0x31f0, 0x321c, direction::L},
++++    {0x321d, 0x321e, direction::ON},    {0x3220, 0x324f, direction::L},
++++    {0x3250, 0x325f, direction::ON},    {0x3260, 0x327b, direction::L},
++++    {0x327c, 0x327e, direction::ON},    {0x327f, 0x32b0, direction::L},
++++    {0x32b1, 0x32bf, direction::ON},    {0x32c0, 0x32cb, direction::L},
++++    {0x32cc, 0x32cf, direction::ON},    {0x32d0, 0x3376, direction::L},
++++    {0x3377, 0x337a, direction::ON},    {0x337b, 0x33dd, direction::L},
++++    {0x33de, 0x33df, direction::ON},    {0x33e0, 0x33fe, direction::L},
++++    {0x33ff, 0x33ff, direction::ON},    {0x3400, 0x4dbf, direction::L},
++++    {0x4dc0, 0x4dff, direction::ON},    {0x4e00, 0x9ffc, direction::L},
++++    {0xa000, 0xa48c, direction::L},     {0xa490, 0xa4c6, direction::ON},
++++    {0xa4d0, 0xa60c, direction::L},     {0xa60d, 0xa60f, direction::ON},
++++    {0xa610, 0xa62b, direction::L},     {0xa640, 0xa66e, direction::L},
++++    {0xa66f, 0xa672, direction::NSM},   {0xa673, 0xa673, direction::ON},
++++    {0xa674, 0xa67d, direction::NSM},   {0xa67e, 0xa67f, direction::ON},
++++    {0xa680, 0xa69d, direction::L},     {0xa69e, 0xa69f, direction::NSM},
++++    {0xa6a0, 0xa6ef, direction::L},     {0xa6f0, 0xa6f1, direction::NSM},
++++    {0xa6f2, 0xa6f7, direction::L},     {0xa700, 0xa721, direction::ON},
++++    {0xa722, 0xa787, direction::L},     {0xa788, 0xa788, direction::ON},
++++    {0xa789, 0xa7bf, direction::L},     {0xa7c2, 0xa7ca, direction::L},
++++    {0xa7f5, 0xa801, direction::L},     {0xa802, 0xa802, direction::NSM},
++++    {0xa803, 0xa805, direction::L},     {0xa806, 0xa806, direction::NSM},
++++    {0xa807, 0xa80a, direction::L},     {0xa80b, 0xa80b, direction::NSM},
++++    {0xa80c, 0xa824, direction::L},     {0xa825, 0xa826, direction::NSM},
++++    {0xa827, 0xa827, direction::L},     {0xa828, 0xa82b, direction::ON},
++++    {0xa82c, 0xa82c, direction::NSM},   {0xa830, 0xa837, direction::L},
++++    {0xa838, 0xa839, direction::ET},    {0xa840, 0xa873, direction::L},
++++    {0xa874, 0xa877, direction::ON},    {0xa880, 0xa8c3, direction::L},
++++    {0xa8c4, 0xa8c5, direction::NSM},   {0xa8ce, 0xa8d9, direction::L},
++++    {0xa8e0, 0xa8f1, direction::NSM},   {0xa8f2, 0xa8fe, direction::L},
++++    {0xa8ff, 0xa8ff, direction::NSM},   {0xa900, 0xa925, direction::L},
++++    {0xa926, 0xa92d, direction::NSM},   {0xa92e, 0xa946, direction::L},
++++    {0xa947, 0xa951, direction::NSM},   {0xa952, 0xa953, direction::L},
++++    {0xa95f, 0xa97c, direction::L},     {0xa980, 0xa982, direction::NSM},
++++    {0xa983, 0xa9b2, direction::L},     {0xa9b3, 0xa9b3, direction::NSM},
++++    {0xa9b4, 0xa9b5, direction::L},     {0xa9b6, 0xa9b9, direction::NSM},
++++    {0xa9ba, 0xa9bb, direction::L},     {0xa9bc, 0xa9bd, direction::NSM},
++++    {0xa9be, 0xa9cd, direction::L},     {0xa9cf, 0xa9d9, direction::L},
++++    {0xa9de, 0xa9e4, direction::L},     {0xa9e5, 0xa9e5, direction::NSM},
++++    {0xa9e6, 0xa9fe, direction::L},     {0xaa00, 0xaa28, direction::L},
++++    {0xaa29, 0xaa2e, direction::NSM},   {0xaa2f, 0xaa30, direction::L},
++++    {0xaa31, 0xaa32, direction::NSM},   {0xaa33, 0xaa34, direction::L},
++++    {0xaa35, 0xaa36, direction::NSM},   {0xaa40, 0xaa42, direction::L},
++++    {0xaa43, 0xaa43, direction::NSM},   {0xaa44, 0xaa4b, direction::L},
++++    {0xaa4c, 0xaa4c, direction::NSM},   {0xaa4d, 0xaa4d, direction::L},
++++    {0xaa50, 0xaa59, direction::L},     {0xaa5c, 0xaa7b, direction::L},
++++    {0xaa7c, 0xaa7c, direction::NSM},   {0xaa7d, 0xaaaf, direction::L},
++++    {0xaab0, 0xaab0, direction::NSM},   {0xaab1, 0xaab1, direction::L},
++++    {0xaab2, 0xaab4, direction::NSM},   {0xaab5, 0xaab6, direction::L},
++++    {0xaab7, 0xaab8, direction::NSM},   {0xaab9, 0xaabd, direction::L},
++++    {0xaabe, 0xaabf, direction::NSM},   {0xaac0, 0xaac0, direction::L},
++++    {0xaac1, 0xaac1, direction::NSM},   {0xaac2, 0xaac2, direction::L},
++++    {0xaadb, 0xaaeb, direction::L},     {0xaaec, 0xaaed, direction::NSM},
++++    {0xaaee, 0xaaf5, direction::L},     {0xaaf6, 0xaaf6, direction::NSM},
++++    {0xab01, 0xab06, direction::L},     {0xab09, 0xab0e, direction::L},
++++    {0xab11, 0xab16, direction::L},     {0xab20, 0xab26, direction::L},
++++    {0xab28, 0xab2e, direction::L},     {0xab30, 0xab69, direction::L},
++++    {0xab6a, 0xab6b, direction::ON},    {0xab70, 0xabe4, direction::L},
++++    {0xabe5, 0xabe5, direction::NSM},   {0xabe6, 0xabe7, direction::L},
++++    {0xabe8, 0xabe8, direction::NSM},   {0xabe9, 0xabec, direction::L},
++++    {0xabed, 0xabed, direction::NSM},   {0xabf0, 0xabf9, direction::L},
++++    {0xac00, 0xd7a3, direction::L},     {0xd7b0, 0xd7c6, direction::L},
++++    {0xd7cb, 0xd7fb, direction::L},     {0xd800, 0xfa6d, direction::L},
++++    {0xfa70, 0xfad9, direction::L},     {0xfb00, 0xfb06, direction::L},
++++    {0xfb13, 0xfb17, direction::L},     {0xfb1d, 0xfb1d, direction::R},
++++    {0xfb1e, 0xfb1e, direction::NSM},   {0xfb1f, 0xfb28, direction::R},
++++    {0xfb29, 0xfb29, direction::ES},    {0xfb2a, 0xfb36, direction::R},
++++    {0xfb38, 0xfb3c, direction::R},     {0xfb3e, 0xfb3e, direction::R},
++++    {0xfb40, 0xfb41, direction::R},     {0xfb43, 0xfb44, direction::R},
++++    {0xfb46, 0xfb4f, direction::R},     {0xfb50, 0xfbc1, direction::AL},
++++    {0xfbd3, 0xfd3d, direction::AL},    {0xfd3e, 0xfd3f, direction::ON},
++++    {0xfd50, 0xfd8f, direction::AL},    {0xfd92, 0xfdc7, direction::AL},
++++    {0xfdf0, 0xfdfc, direction::AL},    {0xfdfd, 0xfdfd, direction::ON},
++++    {0xfe00, 0xfe0f, direction::NSM},   {0xfe10, 0xfe19, direction::ON},
++++    {0xfe20, 0xfe2f, direction::NSM},   {0xfe30, 0xfe4f, direction::ON},
++++    {0xfe50, 0xfe50, direction::CS},    {0xfe51, 0xfe51, direction::ON},
++++    {0xfe52, 0xfe52, direction::CS},    {0xfe54, 0xfe54, direction::ON},
++++    {0xfe55, 0xfe55, direction::CS},    {0xfe56, 0xfe5e, direction::ON},
++++    {0xfe5f, 0xfe5f, direction::ET},    {0xfe60, 0xfe61, direction::ON},
++++    {0xfe62, 0xfe63, direction::ES},    {0xfe64, 0xfe66, direction::ON},
++++    {0xfe68, 0xfe68, direction::ON},    {0xfe69, 0xfe6a, direction::ET},
++++    {0xfe6b, 0xfe6b, direction::ON},    {0xfe70, 0xfe74, direction::AL},
++++    {0xfe76, 0xfefc, direction::AL},    {0xfeff, 0xfeff, direction::BN},
++++    {0xff01, 0xff02, direction::ON},    {0xff03, 0xff05, direction::ET},
++++    {0xff06, 0xff0a, direction::ON},    {0xff0b, 0xff0b, direction::ES},
++++    {0xff0c, 0xff0c, direction::CS},    {0xff0d, 0xff0d, direction::ES},
++++    {0xff0e, 0xff0f, direction::CS},    {0xff10, 0xff19, direction::EN},
++++    {0xff1a, 0xff1a, direction::CS},    {0xff1b, 0xff20, direction::ON},
++++    {0xff21, 0xff3a, direction::L},     {0xff3b, 0xff40, direction::ON},
++++    {0xff41, 0xff5a, direction::L},     {0xff5b, 0xff65, direction::ON},
++++    {0xff66, 0xffbe, direction::L},     {0xffc2, 0xffc7, direction::L},
++++    {0xffca, 0xffcf, direction::L},     {0xffd2, 0xffd7, direction::L},
++++    {0xffda, 0xffdc, direction::L},     {0xffe0, 0xffe1, direction::ET},
++++    {0xffe2, 0xffe4, direction::ON},    {0xffe5, 0xffe6, direction::ET},
++++    {0xffe8, 0xffee, direction::ON},    {0xfff9, 0xfffd, direction::ON},
++++    {0x10000, 0x1000b, direction::L},   {0x1000d, 0x10026, direction::L},
++++    {0x10028, 0x1003a, direction::L},   {0x1003c, 0x1003d, direction::L},
++++    {0x1003f, 0x1004d, direction::L},   {0x10050, 0x1005d, direction::L},
++++    {0x10080, 0x100fa, direction::L},   {0x10100, 0x10100, direction::L},
++++    {0x10101, 0x10101, direction::ON},  {0x10102, 0x10102, direction::L},
++++    {0x10107, 0x10133, direction::L},   {0x10137, 0x1013f, direction::L},
++++    {0x10140, 0x1018c, direction::ON},  {0x1018d, 0x1018e, direction::L},
++++    {0x10190, 0x1019c, direction::ON},  {0x101a0, 0x101a0, direction::ON},
++++    {0x101d0, 0x101fc, direction::L},   {0x101fd, 0x101fd, direction::NSM},
++++    {0x10280, 0x1029c, direction::L},   {0x102a0, 0x102d0, direction::L},
++++    {0x102e0, 0x102e0, direction::NSM}, {0x102e1, 0x102fb, direction::EN},
++++    {0x10300, 0x10323, direction::L},   {0x1032d, 0x1034a, direction::L},
++++    {0x10350, 0x10375, direction::L},   {0x10376, 0x1037a, direction::NSM},
++++    {0x10380, 0x1039d, direction::L},   {0x1039f, 0x103c3, direction::L},
++++    {0x103c8, 0x103d5, direction::L},   {0x10400, 0x1049d, direction::L},
++++    {0x104a0, 0x104a9, direction::L},   {0x104b0, 0x104d3, direction::L},
++++    {0x104d8, 0x104fb, direction::L},   {0x10500, 0x10527, direction::L},
++++    {0x10530, 0x10563, direction::L},   {0x1056f, 0x1056f, direction::L},
++++    {0x10600, 0x10736, direction::L},   {0x10740, 0x10755, direction::L},
++++    {0x10760, 0x10767, direction::L},   {0x10800, 0x10805, direction::R},
++++    {0x10808, 0x10808, direction::R},   {0x1080a, 0x10835, direction::R},
++++    {0x10837, 0x10838, direction::R},   {0x1083c, 0x1083c, direction::R},
++++    {0x1083f, 0x10855, direction::R},   {0x10857, 0x1089e, direction::R},
++++    {0x108a7, 0x108af, direction::R},   {0x108e0, 0x108f2, direction::R},
++++    {0x108f4, 0x108f5, direction::R},   {0x108fb, 0x1091b, direction::R},
++++    {0x1091f, 0x1091f, direction::ON},  {0x10920, 0x10939, direction::R},
++++    {0x1093f, 0x1093f, direction::R},   {0x10980, 0x109b7, direction::R},
++++    {0x109bc, 0x109cf, direction::R},   {0x109d2, 0x10a00, direction::R},
++++    {0x10a01, 0x10a03, direction::NSM}, {0x10a05, 0x10a06, direction::NSM},
++++    {0x10a0c, 0x10a0f, direction::NSM}, {0x10a10, 0x10a13, direction::R},
++++    {0x10a15, 0x10a17, direction::R},   {0x10a19, 0x10a35, direction::R},
++++    {0x10a38, 0x10a3a, direction::NSM}, {0x10a3f, 0x10a3f, direction::NSM},
++++    {0x10a40, 0x10a48, direction::R},   {0x10a50, 0x10a58, direction::R},
++++    {0x10a60, 0x10a9f, direction::R},   {0x10ac0, 0x10ae4, direction::R},
++++    {0x10ae5, 0x10ae6, direction::NSM}, {0x10aeb, 0x10af6, direction::R},
++++    {0x10b00, 0x10b35, direction::R},   {0x10b39, 0x10b3f, direction::ON},
++++    {0x10b40, 0x10b55, direction::R},   {0x10b58, 0x10b72, direction::R},
++++    {0x10b78, 0x10b91, direction::R},   {0x10b99, 0x10b9c, direction::R},
++++    {0x10ba9, 0x10baf, direction::R},   {0x10c00, 0x10c48, direction::R},
++++    {0x10c80, 0x10cb2, direction::R},   {0x10cc0, 0x10cf2, direction::R},
++++    {0x10cfa, 0x10cff, direction::R},   {0x10d00, 0x10d23, direction::AL},
++++    {0x10d24, 0x10d27, direction::NSM}, {0x10d30, 0x10d39, direction::AN},
++++    {0x10e60, 0x10e7e, direction::AN},  {0x10e80, 0x10ea9, direction::R},
++++    {0x10eab, 0x10eac, direction::NSM}, {0x10ead, 0x10ead, direction::R},
++++    {0x10eb0, 0x10eb1, direction::R},   {0x10f00, 0x10f27, direction::R},
++++    {0x10f30, 0x10f45, direction::AL},  {0x10f46, 0x10f50, direction::NSM},
++++    {0x10f51, 0x10f59, direction::AL},  {0x10fb0, 0x10fcb, direction::R},
++++    {0x10fe0, 0x10ff6, direction::R},   {0x11000, 0x11000, direction::L},
++++    {0x11001, 0x11001, direction::NSM}, {0x11002, 0x11037, direction::L},
++++    {0x11038, 0x11046, direction::NSM}, {0x11047, 0x1104d, direction::L},
++++    {0x11052, 0x11065, direction::ON},  {0x11066, 0x1106f, direction::L},
++++    {0x1107f, 0x11081, direction::NSM}, {0x11082, 0x110b2, direction::L},
++++    {0x110b3, 0x110b6, direction::NSM}, {0x110b7, 0x110b8, direction::L},
++++    {0x110b9, 0x110ba, direction::NSM}, {0x110bb, 0x110c1, direction::L},
++++    {0x110cd, 0x110cd, direction::L},   {0x110d0, 0x110e8, direction::L},
++++    {0x110f0, 0x110f9, direction::L},   {0x11100, 0x11102, direction::NSM},
++++    {0x11103, 0x11126, direction::L},   {0x11127, 0x1112b, direction::NSM},
++++    {0x1112c, 0x1112c, direction::L},   {0x1112d, 0x11134, direction::NSM},
++++    {0x11136, 0x11147, direction::L},   {0x11150, 0x11172, direction::L},
++++    {0x11173, 0x11173, direction::NSM}, {0x11174, 0x11176, direction::L},
++++    {0x11180, 0x11181, direction::NSM}, {0x11182, 0x111b5, direction::L},
++++    {0x111b6, 0x111be, direction::NSM}, {0x111bf, 0x111c8, direction::L},
++++    {0x111c9, 0x111cc, direction::NSM}, {0x111cd, 0x111ce, direction::L},
++++    {0x111cf, 0x111cf, direction::NSM}, {0x111d0, 0x111df, direction::L},
++++    {0x111e1, 0x111f4, direction::L},   {0x11200, 0x11211, direction::L},
++++    {0x11213, 0x1122e, direction::L},   {0x1122f, 0x11231, direction::NSM},
++++    {0x11232, 0x11233, direction::L},   {0x11234, 0x11234, direction::NSM},
++++    {0x11235, 0x11235, direction::L},   {0x11236, 0x11237, direction::NSM},
++++    {0x11238, 0x1123d, direction::L},   {0x1123e, 0x1123e, direction::NSM},
++++    {0x11280, 0x11286, direction::L},   {0x11288, 0x11288, direction::L},
++++    {0x1128a, 0x1128d, direction::L},   {0x1128f, 0x1129d, direction::L},
++++    {0x1129f, 0x112a9, direction::L},   {0x112b0, 0x112de, direction::L},
++++    {0x112df, 0x112df, direction::NSM}, {0x112e0, 0x112e2, direction::L},
++++    {0x112e3, 0x112ea, direction::NSM}, {0x112f0, 0x112f9, direction::L},
++++    {0x11300, 0x11301, direction::NSM}, {0x11302, 0x11303, direction::L},
++++    {0x11305, 0x1130c, direction::L},   {0x1130f, 0x11310, direction::L},
++++    {0x11313, 0x11328, direction::L},   {0x1132a, 0x11330, direction::L},
++++    {0x11332, 0x11333, direction::L},   {0x11335, 0x11339, direction::L},
++++    {0x1133b, 0x1133c, direction::NSM}, {0x1133d, 0x1133f, direction::L},
++++    {0x11340, 0x11340, direction::NSM}, {0x11341, 0x11344, direction::L},
++++    {0x11347, 0x11348, direction::L},   {0x1134b, 0x1134d, direction::L},
++++    {0x11350, 0x11350, direction::L},   {0x11357, 0x11357, direction::L},
++++    {0x1135d, 0x11363, direction::L},   {0x11366, 0x1136c, direction::NSM},
++++    {0x11370, 0x11374, direction::NSM}, {0x11400, 0x11437, direction::L},
++++    {0x11438, 0x1143f, direction::NSM}, {0x11440, 0x11441, direction::L},
++++    {0x11442, 0x11444, direction::NSM}, {0x11445, 0x11445, direction::L},
++++    {0x11446, 0x11446, direction::NSM}, {0x11447, 0x1145b, direction::L},
++++    {0x1145d, 0x1145d, direction::L},   {0x1145e, 0x1145e, direction::NSM},
++++    {0x1145f, 0x11461, direction::L},   {0x11480, 0x114b2, direction::L},
++++    {0x114b3, 0x114b8, direction::NSM}, {0x114b9, 0x114b9, direction::L},
++++    {0x114ba, 0x114ba, direction::NSM}, {0x114bb, 0x114be, direction::L},
++++    {0x114bf, 0x114c0, direction::NSM}, {0x114c1, 0x114c1, direction::L},
++++    {0x114c2, 0x114c3, direction::NSM}, {0x114c4, 0x114c7, direction::L},
++++    {0x114d0, 0x114d9, direction::L},   {0x11580, 0x115b1, direction::L},
++++    {0x115b2, 0x115b5, direction::NSM}, {0x115b8, 0x115bb, direction::L},
++++    {0x115bc, 0x115bd, direction::NSM}, {0x115be, 0x115be, direction::L},
++++    {0x115bf, 0x115c0, direction::NSM}, {0x115c1, 0x115db, direction::L},
++++    {0x115dc, 0x115dd, direction::NSM}, {0x11600, 0x11632, direction::L},
++++    {0x11633, 0x1163a, direction::NSM}, {0x1163b, 0x1163c, direction::L},
++++    {0x1163d, 0x1163d, direction::NSM}, {0x1163e, 0x1163e, direction::L},
++++    {0x1163f, 0x11640, direction::NSM}, {0x11641, 0x11644, direction::L},
++++    {0x11650, 0x11659, direction::L},   {0x11660, 0x1166c, direction::ON},
++++    {0x11680, 0x116aa, direction::L},   {0x116ab, 0x116ab, direction::NSM},
++++    {0x116ac, 0x116ac, direction::L},   {0x116ad, 0x116ad, direction::NSM},
++++    {0x116ae, 0x116af, direction::L},   {0x116b0, 0x116b5, direction::NSM},
++++    {0x116b6, 0x116b6, direction::L},   {0x116b7, 0x116b7, direction::NSM},
++++    {0x116b8, 0x116b8, direction::L},   {0x116c0, 0x116c9, direction::L},
++++    {0x11700, 0x1171a, direction::L},   {0x1171d, 0x1171f, direction::NSM},
++++    {0x11720, 0x11721, direction::L},   {0x11722, 0x11725, direction::NSM},
++++    {0x11726, 0x11726, direction::L},   {0x11727, 0x1172b, direction::NSM},
++++    {0x11730, 0x1173f, direction::L},   {0x11800, 0x1182e, direction::L},
++++    {0x1182f, 0x11837, direction::NSM}, {0x11838, 0x11838, direction::L},
++++    {0x11839, 0x1183a, direction::NSM}, {0x1183b, 0x1183b, direction::L},
++++    {0x118a0, 0x118f2, direction::L},   {0x118ff, 0x11906, direction::L},
++++    {0x11909, 0x11909, direction::L},   {0x1190c, 0x11913, direction::L},
++++    {0x11915, 0x11916, direction::L},   {0x11918, 0x11935, direction::L},
++++    {0x11937, 0x11938, direction::L},   {0x1193b, 0x1193c, direction::NSM},
++++    {0x1193d, 0x1193d, direction::L},   {0x1193e, 0x1193e, direction::NSM},
++++    {0x1193f, 0x11942, direction::L},   {0x11943, 0x11943, direction::NSM},
++++    {0x11944, 0x11946, direction::L},   {0x11950, 0x11959, direction::L},
++++    {0x119a0, 0x119a7, direction::L},   {0x119aa, 0x119d3, direction::L},
++++    {0x119d4, 0x119d7, direction::NSM}, {0x119da, 0x119db, direction::NSM},
++++    {0x119dc, 0x119df, direction::L},   {0x119e0, 0x119e0, direction::NSM},
++++    {0x119e1, 0x119e4, direction::L},   {0x11a00, 0x11a00, direction::L},
++++    {0x11a01, 0x11a06, direction::NSM}, {0x11a07, 0x11a08, direction::L},
++++    {0x11a09, 0x11a0a, direction::NSM}, {0x11a0b, 0x11a32, direction::L},
++++    {0x11a33, 0x11a38, direction::NSM}, {0x11a39, 0x11a3a, direction::L},
++++    {0x11a3b, 0x11a3e, direction::NSM}, {0x11a3f, 0x11a46, direction::L},
++++    {0x11a47, 0x11a47, direction::NSM}, {0x11a50, 0x11a50, direction::L},
++++    {0x11a51, 0x11a56, direction::NSM}, {0x11a57, 0x11a58, direction::L},
++++    {0x11a59, 0x11a5b, direction::NSM}, {0x11a5c, 0x11a89, direction::L},
++++    {0x11a8a, 0x11a96, direction::NSM}, {0x11a97, 0x11a97, direction::L},
++++    {0x11a98, 0x11a99, direction::NSM}, {0x11a9a, 0x11aa2, direction::L},
++++    {0x11ac0, 0x11af8, direction::L},   {0x11c00, 0x11c08, direction::L},
++++    {0x11c0a, 0x11c2f, direction::L},   {0x11c30, 0x11c36, direction::NSM},
++++    {0x11c38, 0x11c3d, direction::NSM}, {0x11c3e, 0x11c45, direction::L},
++++    {0x11c50, 0x11c6c, direction::L},   {0x11c70, 0x11c8f, direction::L},
++++    {0x11c92, 0x11ca7, direction::NSM}, {0x11ca9, 0x11ca9, direction::L},
++++    {0x11caa, 0x11cb0, direction::NSM}, {0x11cb1, 0x11cb1, direction::L},
++++    {0x11cb2, 0x11cb3, direction::NSM}, {0x11cb4, 0x11cb4, direction::L},
++++    {0x11cb5, 0x11cb6, direction::NSM}, {0x11d00, 0x11d06, direction::L},
++++    {0x11d08, 0x11d09, direction::L},   {0x11d0b, 0x11d30, direction::L},
++++    {0x11d31, 0x11d36, direction::NSM}, {0x11d3a, 0x11d3a, direction::NSM},
++++    {0x11d3c, 0x11d3d, direction::NSM}, {0x11d3f, 0x11d45, direction::NSM},
++++    {0x11d46, 0x11d46, direction::L},   {0x11d47, 0x11d47, direction::NSM},
++++    {0x11d50, 0x11d59, direction::L},   {0x11d60, 0x11d65, direction::L},
++++    {0x11d67, 0x11d68, direction::L},   {0x11d6a, 0x11d8e, direction::L},
++++    {0x11d90, 0x11d91, direction::NSM}, {0x11d93, 0x11d94, direction::L},
++++    {0x11d95, 0x11d95, direction::NSM}, {0x11d96, 0x11d96, direction::L},
++++    {0x11d97, 0x11d97, direction::NSM}, {0x11d98, 0x11d98, direction::L},
++++    {0x11da0, 0x11da9, direction::L},   {0x11ee0, 0x11ef2, direction::L},
++++    {0x11ef3, 0x11ef4, direction::NSM}, {0x11ef5, 0x11ef8, direction::L},
++++    {0x11fb0, 0x11fb0, direction::L},   {0x11fc0, 0x11fd4, direction::L},
++++    {0x11fd5, 0x11fdc, direction::ON},  {0x11fdd, 0x11fe0, direction::ET},
++++    {0x11fe1, 0x11ff1, direction::ON},  {0x11fff, 0x12399, direction::L},
++++    {0x12400, 0x1246e, direction::L},   {0x12470, 0x12474, direction::L},
++++    {0x12480, 0x12543, direction::L},   {0x13000, 0x1342e, direction::L},
++++    {0x13430, 0x13438, direction::L},   {0x14400, 0x14646, direction::L},
++++    {0x16800, 0x16a38, direction::L},   {0x16a40, 0x16a5e, direction::L},
++++    {0x16a60, 0x16a69, direction::L},   {0x16a6e, 0x16a6f, direction::L},
++++    {0x16ad0, 0x16aed, direction::L},   {0x16af0, 0x16af4, direction::NSM},
++++    {0x16af5, 0x16af5, direction::L},   {0x16b00, 0x16b2f, direction::L},
++++    {0x16b30, 0x16b36, direction::NSM}, {0x16b37, 0x16b45, direction::L},
++++    {0x16b50, 0x16b59, direction::L},   {0x16b5b, 0x16b61, direction::L},
++++    {0x16b63, 0x16b77, direction::L},   {0x16b7d, 0x16b8f, direction::L},
++++    {0x16e40, 0x16e9a, direction::L},   {0x16f00, 0x16f4a, direction::L},
++++    {0x16f4f, 0x16f4f, direction::NSM}, {0x16f50, 0x16f87, direction::L},
++++    {0x16f8f, 0x16f92, direction::NSM}, {0x16f93, 0x16f9f, direction::L},
++++    {0x16fe0, 0x16fe1, direction::L},   {0x16fe2, 0x16fe2, direction::ON},
++++    {0x16fe3, 0x16fe3, direction::L},   {0x16fe4, 0x16fe4, direction::NSM},
++++    {0x16ff0, 0x16ff1, direction::L},   {0x17000, 0x187f7, direction::L},
++++    {0x18800, 0x18cd5, direction::L},   {0x18d00, 0x18d08, direction::L},
++++    {0x1b000, 0x1b11e, direction::L},   {0x1b150, 0x1b152, direction::L},
++++    {0x1b164, 0x1b167, direction::L},   {0x1b170, 0x1b2fb, direction::L},
++++    {0x1bc00, 0x1bc6a, direction::L},   {0x1bc70, 0x1bc7c, direction::L},
++++    {0x1bc80, 0x1bc88, direction::L},   {0x1bc90, 0x1bc99, direction::L},
++++    {0x1bc9c, 0x1bc9c, direction::L},   {0x1bc9d, 0x1bc9e, direction::NSM},
++++    {0x1bc9f, 0x1bc9f, direction::L},   {0x1bca0, 0x1bca3, direction::BN},
++++    {0x1d000, 0x1d0f5, direction::L},   {0x1d100, 0x1d126, direction::L},
++++    {0x1d129, 0x1d166, direction::L},   {0x1d167, 0x1d169, direction::NSM},
++++    {0x1d16a, 0x1d172, direction::L},   {0x1d173, 0x1d17a, direction::BN},
++++    {0x1d17b, 0x1d182, direction::NSM}, {0x1d183, 0x1d184, direction::L},
++++    {0x1d185, 0x1d18b, direction::NSM}, {0x1d18c, 0x1d1a9, direction::L},
++++    {0x1d1aa, 0x1d1ad, direction::NSM}, {0x1d1ae, 0x1d1e8, direction::L},
++++    {0x1d200, 0x1d241, direction::ON},  {0x1d242, 0x1d244, direction::NSM},
++++    {0x1d245, 0x1d245, direction::ON},  {0x1d2e0, 0x1d2f3, direction::L},
++++    {0x1d300, 0x1d356, direction::ON},  {0x1d360, 0x1d378, direction::L},
++++    {0x1d400, 0x1d454, direction::L},   {0x1d456, 0x1d49c, direction::L},
++++    {0x1d49e, 0x1d49f, direction::L},   {0x1d4a2, 0x1d4a2, direction::L},
++++    {0x1d4a5, 0x1d4a6, direction::L},   {0x1d4a9, 0x1d4ac, direction::L},
++++    {0x1d4ae, 0x1d4b9, direction::L},   {0x1d4bb, 0x1d4bb, direction::L},
++++    {0x1d4bd, 0x1d4c3, direction::L},   {0x1d4c5, 0x1d505, direction::L},
++++    {0x1d507, 0x1d50a, direction::L},   {0x1d50d, 0x1d514, direction::L},
++++    {0x1d516, 0x1d51c, direction::L},   {0x1d51e, 0x1d539, direction::L},
++++    {0x1d53b, 0x1d53e, direction::L},   {0x1d540, 0x1d544, direction::L},
++++    {0x1d546, 0x1d546, direction::L},   {0x1d54a, 0x1d550, direction::L},
++++    {0x1d552, 0x1d6a5, direction::L},   {0x1d6a8, 0x1d6da, direction::L},
++++    {0x1d6db, 0x1d6db, direction::ON},  {0x1d6dc, 0x1d714, direction::L},
++++    {0x1d715, 0x1d715, direction::ON},  {0x1d716, 0x1d74e, direction::L},
++++    {0x1d74f, 0x1d74f, direction::ON},  {0x1d750, 0x1d788, direction::L},
++++    {0x1d789, 0x1d789, direction::ON},  {0x1d78a, 0x1d7c2, direction::L},
++++    {0x1d7c3, 0x1d7c3, direction::ON},  {0x1d7c4, 0x1d7cb, direction::L},
++++    {0x1d7ce, 0x1d7ff, direction::EN},  {0x1d800, 0x1d9ff, direction::L},
++++    {0x1da00, 0x1da36, direction::NSM}, {0x1da37, 0x1da3a, direction::L},
++++    {0x1da3b, 0x1da6c, direction::NSM}, {0x1da6d, 0x1da74, direction::L},
++++    {0x1da75, 0x1da75, direction::NSM}, {0x1da76, 0x1da83, direction::L},
++++    {0x1da84, 0x1da84, direction::NSM}, {0x1da85, 0x1da8b, direction::L},
++++    {0x1da9b, 0x1da9f, direction::NSM}, {0x1daa1, 0x1daaf, direction::NSM},
++++    {0x1e000, 0x1e006, direction::NSM}, {0x1e008, 0x1e018, direction::NSM},
++++    {0x1e01b, 0x1e021, direction::NSM}, {0x1e023, 0x1e024, direction::NSM},
++++    {0x1e026, 0x1e02a, direction::NSM}, {0x1e100, 0x1e12c, direction::L},
++++    {0x1e130, 0x1e136, direction::NSM}, {0x1e137, 0x1e13d, direction::L},
++++    {0x1e140, 0x1e149, direction::L},   {0x1e14e, 0x1e14f, direction::L},
++++    {0x1e2c0, 0x1e2eb, direction::L},   {0x1e2ec, 0x1e2ef, direction::NSM},
++++    {0x1e2f0, 0x1e2f9, direction::L},   {0x1e2ff, 0x1e2ff, direction::ET},
++++    {0x1e800, 0x1e8c4, direction::R},   {0x1e8c7, 0x1e8cf, direction::R},
++++    {0x1e8d0, 0x1e8d6, direction::NSM}, {0x1e900, 0x1e943, direction::R},
++++    {0x1e944, 0x1e94a, direction::NSM}, {0x1e94b, 0x1e94b, direction::R},
++++    {0x1e950, 0x1e959, direction::R},   {0x1e95e, 0x1e95f, direction::R},
++++    {0x1ec71, 0x1ecb4, direction::AL},  {0x1ed01, 0x1ed3d, direction::AL},
++++    {0x1ee00, 0x1ee03, direction::AL},  {0x1ee05, 0x1ee1f, direction::AL},
++++    {0x1ee21, 0x1ee22, direction::AL},  {0x1ee24, 0x1ee24, direction::AL},
++++    {0x1ee27, 0x1ee27, direction::AL},  {0x1ee29, 0x1ee32, direction::AL},
++++    {0x1ee34, 0x1ee37, direction::AL},  {0x1ee39, 0x1ee39, direction::AL},
++++    {0x1ee3b, 0x1ee3b, direction::AL},  {0x1ee42, 0x1ee42, direction::AL},
++++    {0x1ee47, 0x1ee47, direction::AL},  {0x1ee49, 0x1ee49, direction::AL},
++++    {0x1ee4b, 0x1ee4b, direction::AL},  {0x1ee4d, 0x1ee4f, direction::AL},
++++    {0x1ee51, 0x1ee52, direction::AL},  {0x1ee54, 0x1ee54, direction::AL},
++++    {0x1ee57, 0x1ee57, direction::AL},  {0x1ee59, 0x1ee59, direction::AL},
++++    {0x1ee5b, 0x1ee5b, direction::AL},  {0x1ee5d, 0x1ee5d, direction::AL},
++++    {0x1ee5f, 0x1ee5f, direction::AL},  {0x1ee61, 0x1ee62, direction::AL},
++++    {0x1ee64, 0x1ee64, direction::AL},  {0x1ee67, 0x1ee6a, direction::AL},
++++    {0x1ee6c, 0x1ee72, direction::AL},  {0x1ee74, 0x1ee77, direction::AL},
++++    {0x1ee79, 0x1ee7c, direction::AL},  {0x1ee7e, 0x1ee7e, direction::AL},
++++    {0x1ee80, 0x1ee89, direction::AL},  {0x1ee8b, 0x1ee9b, direction::AL},
++++    {0x1eea1, 0x1eea3, direction::AL},  {0x1eea5, 0x1eea9, direction::AL},
++++    {0x1eeab, 0x1eebb, direction::AL},  {0x1eef0, 0x1eef1, direction::ON},
++++    {0x1f000, 0x1f02b, direction::ON},  {0x1f030, 0x1f093, direction::ON},
++++    {0x1f0a0, 0x1f0ae, direction::ON},  {0x1f0b1, 0x1f0bf, direction::ON},
++++    {0x1f0c1, 0x1f0cf, direction::ON},  {0x1f0d1, 0x1f0f5, direction::ON},
++++    {0x1f100, 0x1f10a, direction::EN},  {0x1f10b, 0x1f10f, direction::ON},
++++    {0x1f110, 0x1f12e, direction::L},   {0x1f12f, 0x1f12f, direction::ON},
++++    {0x1f130, 0x1f169, direction::L},   {0x1f16a, 0x1f16f, direction::ON},
++++    {0x1f170, 0x1f1ac, direction::L},   {0x1f1ad, 0x1f1ad, direction::ON},
++++    {0x1f1e6, 0x1f202, direction::L},   {0x1f210, 0x1f23b, direction::L},
++++    {0x1f240, 0x1f248, direction::L},   {0x1f250, 0x1f251, direction::L},
++++    {0x1f260, 0x1f265, direction::ON},  {0x1f300, 0x1f6d7, direction::ON},
++++    {0x1f6e0, 0x1f6ec, direction::ON},  {0x1f6f0, 0x1f6fc, direction::ON},
++++    {0x1f700, 0x1f773, direction::ON},  {0x1f780, 0x1f7d8, direction::ON},
++++    {0x1f7e0, 0x1f7eb, direction::ON},  {0x1f800, 0x1f80b, direction::ON},
++++    {0x1f810, 0x1f847, direction::ON},  {0x1f850, 0x1f859, direction::ON},
++++    {0x1f860, 0x1f887, direction::ON},  {0x1f890, 0x1f8ad, direction::ON},
++++    {0x1f8b0, 0x1f8b1, direction::ON},  {0x1f900, 0x1f978, direction::ON},
++++    {0x1f97a, 0x1f9cb, direction::ON},  {0x1f9cd, 0x1fa53, direction::ON},
++++    {0x1fa60, 0x1fa6d, direction::ON},  {0x1fa70, 0x1fa74, direction::ON},
++++    {0x1fa78, 0x1fa7a, direction::ON},  {0x1fa80, 0x1fa86, direction::ON},
++++    {0x1fa90, 0x1faa8, direction::ON},  {0x1fab0, 0x1fab6, direction::ON},
++++    {0x1fac0, 0x1fac2, direction::ON},  {0x1fad0, 0x1fad6, direction::ON},
++++    {0x1fb00, 0x1fb92, direction::ON},  {0x1fb94, 0x1fbca, direction::ON},
++++    {0x1fbf0, 0x1fbf9, direction::EN},  {0x20000, 0x2a6dd, direction::L},
++++    {0x2a700, 0x2b734, direction::L},   {0x2b740, 0x2b81d, direction::L},
++++    {0x2b820, 0x2cea1, direction::L},   {0x2ceb0, 0x2ebe0, direction::L},
++++    {0x2f800, 0x2fa1d, direction::L},   {0x30000, 0x3134a, direction::L},
++++    {0xe0001, 0xe0001, direction::BN},  {0xe0020, 0xe007f, direction::BN},
++++    {0xe0100, 0xe01ef, direction::NSM}, {0xf0000, 0xffffd, direction::L},
++++    {0x100000, 0x10fffd, direction::L}};
++++
++++// CheckJoiners and CheckBidi are true for URL specification.
++++
++++inline static direction find_direction(uint32_t code_point) noexcept {
++++  auto it = std::lower_bound(
++++      std::begin(dir_table), std::end(dir_table), code_point,
++++      [](const directions& d, uint32_t c) { return d.final_code < c; });
++++
++++  // next check is almost surely in vain, but we use it for safety.
++++  if (it == std::end(dir_table)) {
++++    return direction::NONE;
++++  }
++++  // We have that d.final_code >= c.
++++  if (code_point >= it->start_code) {
++++    return it->direct;
++++  }
++++  return direction::NONE;
++++}
++++
++++inline static size_t find_last_not_of_nsm(
++++    const std::u32string_view label) noexcept {
++++  for (int i = label.size() - 1; i >= 0; i--)
++++    if (find_direction(label[i]) != direction::NSM) return i;
++++
++++  return std::u32string_view::npos;
++++}
++++
++++// An RTL label is a label that contains at least one character of type R, AL,
++++// or AN. https://www.rfc-editor.org/rfc/rfc5893#section-2
++++inline static bool is_rtl_label(const std::u32string_view label) noexcept {
++++  const size_t mask =
++++      (1u << direction::R) | (1u << direction::AL) | (1u << direction::AN);
++++
++++  size_t directions = 0;
++++  for (size_t i = 0; i < label.size(); i++) {
++++    directions |= 1u << find_direction(label[i]);
++++  }
++++  return (directions & mask) != 0;
++++}
++++
++++bool is_label_valid(const std::u32string_view label) {
++++  if (label.empty()) {
++++    return true;
++++  }
++++
++++  ///////////////
++++  // We have a normalization step which ensures that we are in NFC.
++++  // If we receive punycode, we normalize and check that the normalized
++++  // version matches the original.
++++  // --------------------------------------
++++  // The label must be in Unicode Normalization Form NFC.
++++
++++  // Current URL standard indicatest that CheckHyphens is set to false.
++++  // ---------------------------------------
++++  // If CheckHyphens, the label must not contain a U+002D HYPHEN-MINUS character
++++  // in both the third and fourth positions. If CheckHyphens, the label must
++++  // neither begin nor end with a U+002D HYPHEN-MINUS character.
++++
++++  // This is not necessary because we segment the
++++  // labels by '.'.
++++  // ---------------------------------------
++++  // The label must not contain a U+002E ( . ) FULL STOP.
++++  // if (label.find('.') != std::string_view::npos) return false;
++++
++++  // The label must not begin with a combining mark, that is:
++++  // General_Category=Mark.
++++  constexpr static uint32_t combining[] = {
++++      0x300,   0x301,   0x302,   0x303,   0x304,   0x305,   0x306,   0x307,
++++      0x308,   0x309,   0x30a,   0x30b,   0x30c,   0x30d,   0x30e,   0x30f,
++++      0x310,   0x311,   0x312,   0x313,   0x314,   0x315,   0x316,   0x317,
++++      0x318,   0x319,   0x31a,   0x31b,   0x31c,   0x31d,   0x31e,   0x31f,
++++      0x320,   0x321,   0x322,   0x323,   0x324,   0x325,   0x326,   0x327,
++++      0x328,   0x329,   0x32a,   0x32b,   0x32c,   0x32d,   0x32e,   0x32f,
++++      0x330,   0x331,   0x332,   0x333,   0x334,   0x335,   0x336,   0x337,
++++      0x338,   0x339,   0x33a,   0x33b,   0x33c,   0x33d,   0x33e,   0x33f,
++++      0x340,   0x341,   0x342,   0x343,   0x344,   0x345,   0x346,   0x347,
++++      0x348,   0x349,   0x34a,   0x34b,   0x34c,   0x34d,   0x34e,   0x34f,
++++      0x350,   0x351,   0x352,   0x353,   0x354,   0x355,   0x356,   0x357,
++++      0x358,   0x359,   0x35a,   0x35b,   0x35c,   0x35d,   0x35e,   0x35f,
++++      0x360,   0x361,   0x362,   0x363,   0x364,   0x365,   0x366,   0x367,
++++      0x368,   0x369,   0x36a,   0x36b,   0x36c,   0x36d,   0x36e,   0x36f,
++++      0x483,   0x484,   0x485,   0x486,   0x487,   0x488,   0x489,   0x591,
++++      0x592,   0x593,   0x594,   0x595,   0x596,   0x597,   0x598,   0x599,
++++      0x59a,   0x59b,   0x59c,   0x59d,   0x59e,   0x59f,   0x5a0,   0x5a1,
++++      0x5a2,   0x5a3,   0x5a4,   0x5a5,   0x5a6,   0x5a7,   0x5a8,   0x5a9,
++++      0x5aa,   0x5ab,   0x5ac,   0x5ad,   0x5ae,   0x5af,   0x5b0,   0x5b1,
++++      0x5b2,   0x5b3,   0x5b4,   0x5b5,   0x5b6,   0x5b7,   0x5b8,   0x5b9,
++++      0x5ba,   0x5bb,   0x5bc,   0x5bd,   0x5bf,   0x5c1,   0x5c2,   0x5c4,
++++      0x5c5,   0x5c7,   0x610,   0x611,   0x612,   0x613,   0x614,   0x615,
++++      0x616,   0x617,   0x618,   0x619,   0x61a,   0x64b,   0x64c,   0x64d,
++++      0x64e,   0x64f,   0x650,   0x651,   0x652,   0x653,   0x654,   0x655,
++++      0x656,   0x657,   0x658,   0x659,   0x65a,   0x65b,   0x65c,   0x65d,
++++      0x65e,   0x65f,   0x670,   0x6d6,   0x6d7,   0x6d8,   0x6d9,   0x6da,
++++      0x6db,   0x6dc,   0x6df,   0x6e0,   0x6e1,   0x6e2,   0x6e3,   0x6e4,
++++      0x6e7,   0x6e8,   0x6ea,   0x6eb,   0x6ec,   0x6ed,   0x711,   0x730,
++++      0x731,   0x732,   0x733,   0x734,   0x735,   0x736,   0x737,   0x738,
++++      0x739,   0x73a,   0x73b,   0x73c,   0x73d,   0x73e,   0x73f,   0x740,
++++      0x741,   0x742,   0x743,   0x744,   0x745,   0x746,   0x747,   0x748,
++++      0x749,   0x74a,   0x7a6,   0x7a7,   0x7a8,   0x7a9,   0x7aa,   0x7ab,
++++      0x7ac,   0x7ad,   0x7ae,   0x7af,   0x7b0,   0x7eb,   0x7ec,   0x7ed,
++++      0x7ee,   0x7ef,   0x7f0,   0x7f1,   0x7f2,   0x7f3,   0x7fd,   0x816,
++++      0x817,   0x818,   0x819,   0x81b,   0x81c,   0x81d,   0x81e,   0x81f,
++++      0x820,   0x821,   0x822,   0x823,   0x825,   0x826,   0x827,   0x829,
++++      0x82a,   0x82b,   0x82c,   0x82d,   0x859,   0x85a,   0x85b,   0x8d3,
++++      0x8d4,   0x8d5,   0x8d6,   0x8d7,   0x8d8,   0x8d9,   0x8da,   0x8db,
++++      0x8dc,   0x8dd,   0x8de,   0x8df,   0x8e0,   0x8e1,   0x8e3,   0x8e4,
++++      0x8e5,   0x8e6,   0x8e7,   0x8e8,   0x8e9,   0x8ea,   0x8eb,   0x8ec,
++++      0x8ed,   0x8ee,   0x8ef,   0x8f0,   0x8f1,   0x8f2,   0x8f3,   0x8f4,
++++      0x8f5,   0x8f6,   0x8f7,   0x8f8,   0x8f9,   0x8fa,   0x8fb,   0x8fc,
++++      0x8fd,   0x8fe,   0x8ff,   0x900,   0x901,   0x902,   0x903,   0x93a,
++++      0x93b,   0x93c,   0x93e,   0x93f,   0x940,   0x941,   0x942,   0x943,
++++      0x944,   0x945,   0x946,   0x947,   0x948,   0x949,   0x94a,   0x94b,
++++      0x94c,   0x94d,   0x94e,   0x94f,   0x951,   0x952,   0x953,   0x954,
++++      0x955,   0x956,   0x957,   0x962,   0x963,   0x981,   0x982,   0x983,
++++      0x9bc,   0x9be,   0x9bf,   0x9c0,   0x9c1,   0x9c2,   0x9c3,   0x9c4,
++++      0x9c7,   0x9c8,   0x9cb,   0x9cc,   0x9cd,   0x9d7,   0x9e2,   0x9e3,
++++      0x9fe,   0xa01,   0xa02,   0xa03,   0xa3c,   0xa3e,   0xa3f,   0xa40,
++++      0xa41,   0xa42,   0xa47,   0xa48,   0xa4b,   0xa4c,   0xa4d,   0xa51,
++++      0xa70,   0xa71,   0xa75,   0xa81,   0xa82,   0xa83,   0xabc,   0xabe,
++++      0xabf,   0xac0,   0xac1,   0xac2,   0xac3,   0xac4,   0xac5,   0xac7,
++++      0xac8,   0xac9,   0xacb,   0xacc,   0xacd,   0xae2,   0xae3,   0xafa,
++++      0xafb,   0xafc,   0xafd,   0xafe,   0xaff,   0xb01,   0xb02,   0xb03,
++++      0xb3c,   0xb3e,   0xb3f,   0xb40,   0xb41,   0xb42,   0xb43,   0xb44,
++++      0xb47,   0xb48,   0xb4b,   0xb4c,   0xb4d,   0xb55,   0xb56,   0xb57,
++++      0xb62,   0xb63,   0xb82,   0xbbe,   0xbbf,   0xbc0,   0xbc1,   0xbc2,
++++      0xbc6,   0xbc7,   0xbc8,   0xbca,   0xbcb,   0xbcc,   0xbcd,   0xbd7,
++++      0xc00,   0xc01,   0xc02,   0xc03,   0xc04,   0xc3e,   0xc3f,   0xc40,
++++      0xc41,   0xc42,   0xc43,   0xc44,   0xc46,   0xc47,   0xc48,   0xc4a,
++++      0xc4b,   0xc4c,   0xc4d,   0xc55,   0xc56,   0xc62,   0xc63,   0xc81,
++++      0xc82,   0xc83,   0xcbc,   0xcbe,   0xcbf,   0xcc0,   0xcc1,   0xcc2,
++++      0xcc3,   0xcc4,   0xcc6,   0xcc7,   0xcc8,   0xcca,   0xccb,   0xccc,
++++      0xccd,   0xcd5,   0xcd6,   0xce2,   0xce3,   0xd00,   0xd01,   0xd02,
++++      0xd03,   0xd3b,   0xd3c,   0xd3e,   0xd3f,   0xd40,   0xd41,   0xd42,
++++      0xd43,   0xd44,   0xd46,   0xd47,   0xd48,   0xd4a,   0xd4b,   0xd4c,
++++      0xd4d,   0xd57,   0xd62,   0xd63,   0xd81,   0xd82,   0xd83,   0xdca,
++++      0xdcf,   0xdd0,   0xdd1,   0xdd2,   0xdd3,   0xdd4,   0xdd6,   0xdd8,
++++      0xdd9,   0xdda,   0xddb,   0xddc,   0xddd,   0xdde,   0xddf,   0xdf2,
++++      0xdf3,   0xe31,   0xe34,   0xe35,   0xe36,   0xe37,   0xe38,   0xe39,
++++      0xe3a,   0xe47,   0xe48,   0xe49,   0xe4a,   0xe4b,   0xe4c,   0xe4d,
++++      0xe4e,   0xeb1,   0xeb4,   0xeb5,   0xeb6,   0xeb7,   0xeb8,   0xeb9,
++++      0xeba,   0xebb,   0xebc,   0xec8,   0xec9,   0xeca,   0xecb,   0xecc,
++++      0xecd,   0xf18,   0xf19,   0xf35,   0xf37,   0xf39,   0xf3e,   0xf3f,
++++      0xf71,   0xf72,   0xf73,   0xf74,   0xf75,   0xf76,   0xf77,   0xf78,
++++      0xf79,   0xf7a,   0xf7b,   0xf7c,   0xf7d,   0xf7e,   0xf7f,   0xf80,
++++      0xf81,   0xf82,   0xf83,   0xf84,   0xf86,   0xf87,   0xf8d,   0xf8e,
++++      0xf8f,   0xf90,   0xf91,   0xf92,   0xf93,   0xf94,   0xf95,   0xf96,
++++      0xf97,   0xf99,   0xf9a,   0xf9b,   0xf9c,   0xf9d,   0xf9e,   0xf9f,
++++      0xfa0,   0xfa1,   0xfa2,   0xfa3,   0xfa4,   0xfa5,   0xfa6,   0xfa7,
++++      0xfa8,   0xfa9,   0xfaa,   0xfab,   0xfac,   0xfad,   0xfae,   0xfaf,
++++      0xfb0,   0xfb1,   0xfb2,   0xfb3,   0xfb4,   0xfb5,   0xfb6,   0xfb7,
++++      0xfb8,   0xfb9,   0xfba,   0xfbb,   0xfbc,   0xfc6,   0x102b,  0x102c,
++++      0x102d,  0x102e,  0x102f,  0x1030,  0x1031,  0x1032,  0x1033,  0x1034,
++++      0x1035,  0x1036,  0x1037,  0x1038,  0x1039,  0x103a,  0x103b,  0x103c,
++++      0x103d,  0x103e,  0x1056,  0x1057,  0x1058,  0x1059,  0x105e,  0x105f,
++++      0x1060,  0x1062,  0x1063,  0x1064,  0x1067,  0x1068,  0x1069,  0x106a,
++++      0x106b,  0x106c,  0x106d,  0x1071,  0x1072,  0x1073,  0x1074,  0x1082,
++++      0x1083,  0x1084,  0x1085,  0x1086,  0x1087,  0x1088,  0x1089,  0x108a,
++++      0x108b,  0x108c,  0x108d,  0x108f,  0x109a,  0x109b,  0x109c,  0x109d,
++++      0x135d,  0x135e,  0x135f,  0x1712,  0x1713,  0x1714,  0x1732,  0x1733,
++++      0x1734,  0x1752,  0x1753,  0x1772,  0x1773,  0x17b4,  0x17b5,  0x17b6,
++++      0x17b7,  0x17b8,  0x17b9,  0x17ba,  0x17bb,  0x17bc,  0x17bd,  0x17be,
++++      0x17bf,  0x17c0,  0x17c1,  0x17c2,  0x17c3,  0x17c4,  0x17c5,  0x17c6,
++++      0x17c7,  0x17c8,  0x17c9,  0x17ca,  0x17cb,  0x17cc,  0x17cd,  0x17ce,
++++      0x17cf,  0x17d0,  0x17d1,  0x17d2,  0x17d3,  0x17dd,  0x180b,  0x180c,
++++      0x180d,  0x1885,  0x1886,  0x18a9,  0x1920,  0x1921,  0x1922,  0x1923,
++++      0x1924,  0x1925,  0x1926,  0x1927,  0x1928,  0x1929,  0x192a,  0x192b,
++++      0x1930,  0x1931,  0x1932,  0x1933,  0x1934,  0x1935,  0x1936,  0x1937,
++++      0x1938,  0x1939,  0x193a,  0x193b,  0x1a17,  0x1a18,  0x1a19,  0x1a1a,
++++      0x1a1b,  0x1a55,  0x1a56,  0x1a57,  0x1a58,  0x1a59,  0x1a5a,  0x1a5b,
++++      0x1a5c,  0x1a5d,  0x1a5e,  0x1a60,  0x1a61,  0x1a62,  0x1a63,  0x1a64,
++++      0x1a65,  0x1a66,  0x1a67,  0x1a68,  0x1a69,  0x1a6a,  0x1a6b,  0x1a6c,
++++      0x1a6d,  0x1a6e,  0x1a6f,  0x1a70,  0x1a71,  0x1a72,  0x1a73,  0x1a74,
++++      0x1a75,  0x1a76,  0x1a77,  0x1a78,  0x1a79,  0x1a7a,  0x1a7b,  0x1a7c,
++++      0x1a7f,  0x1ab0,  0x1ab1,  0x1ab2,  0x1ab3,  0x1ab4,  0x1ab5,  0x1ab6,
++++      0x1ab7,  0x1ab8,  0x1ab9,  0x1aba,  0x1abb,  0x1abc,  0x1abd,  0x1abe,
++++      0x1abf,  0x1ac0,  0x1b00,  0x1b01,  0x1b02,  0x1b03,  0x1b04,  0x1b34,
++++      0x1b35,  0x1b36,  0x1b37,  0x1b38,  0x1b39,  0x1b3a,  0x1b3b,  0x1b3c,
++++      0x1b3d,  0x1b3e,  0x1b3f,  0x1b40,  0x1b41,  0x1b42,  0x1b43,  0x1b44,
++++      0x1b6b,  0x1b6c,  0x1b6d,  0x1b6e,  0x1b6f,  0x1b70,  0x1b71,  0x1b72,
++++      0x1b73,  0x1b80,  0x1b81,  0x1b82,  0x1ba1,  0x1ba2,  0x1ba3,  0x1ba4,
++++      0x1ba5,  0x1ba6,  0x1ba7,  0x1ba8,  0x1ba9,  0x1baa,  0x1bab,  0x1bac,
++++      0x1bad,  0x1be6,  0x1be7,  0x1be8,  0x1be9,  0x1bea,  0x1beb,  0x1bec,
++++      0x1bed,  0x1bee,  0x1bef,  0x1bf0,  0x1bf1,  0x1bf2,  0x1bf3,  0x1c24,
++++      0x1c25,  0x1c26,  0x1c27,  0x1c28,  0x1c29,  0x1c2a,  0x1c2b,  0x1c2c,
++++      0x1c2d,  0x1c2e,  0x1c2f,  0x1c30,  0x1c31,  0x1c32,  0x1c33,  0x1c34,
++++      0x1c35,  0x1c36,  0x1c37,  0x1cd0,  0x1cd1,  0x1cd2,  0x1cd4,  0x1cd5,
++++      0x1cd6,  0x1cd7,  0x1cd8,  0x1cd9,  0x1cda,  0x1cdb,  0x1cdc,  0x1cdd,
++++      0x1cde,  0x1cdf,  0x1ce0,  0x1ce1,  0x1ce2,  0x1ce3,  0x1ce4,  0x1ce5,
++++      0x1ce6,  0x1ce7,  0x1ce8,  0x1ced,  0x1cf4,  0x1cf7,  0x1cf8,  0x1cf9,
++++      0x1dc0,  0x1dc1,  0x1dc2,  0x1dc3,  0x1dc4,  0x1dc5,  0x1dc6,  0x1dc7,
++++      0x1dc8,  0x1dc9,  0x1dca,  0x1dcb,  0x1dcc,  0x1dcd,  0x1dce,  0x1dcf,
++++      0x1dd0,  0x1dd1,  0x1dd2,  0x1dd3,  0x1dd4,  0x1dd5,  0x1dd6,  0x1dd7,
++++      0x1dd8,  0x1dd9,  0x1dda,  0x1ddb,  0x1ddc,  0x1ddd,  0x1dde,  0x1ddf,
++++      0x1de0,  0x1de1,  0x1de2,  0x1de3,  0x1de4,  0x1de5,  0x1de6,  0x1de7,
++++      0x1de8,  0x1de9,  0x1dea,  0x1deb,  0x1dec,  0x1ded,  0x1dee,  0x1def,
++++      0x1df0,  0x1df1,  0x1df2,  0x1df3,  0x1df4,  0x1df5,  0x1df6,  0x1df7,
++++      0x1df8,  0x1df9,  0x1dfb,  0x1dfc,  0x1dfd,  0x1dfe,  0x1dff,  0x20d0,
++++      0x20d1,  0x20d2,  0x20d3,  0x20d4,  0x20d5,  0x20d6,  0x20d7,  0x20d8,
++++      0x20d9,  0x20da,  0x20db,  0x20dc,  0x20dd,  0x20de,  0x20df,  0x20e0,
++++      0x20e1,  0x20e2,  0x20e3,  0x20e4,  0x20e5,  0x20e6,  0x20e7,  0x20e8,
++++      0x20e9,  0x20ea,  0x20eb,  0x20ec,  0x20ed,  0x20ee,  0x20ef,  0x20f0,
++++      0x2cef,  0x2cf0,  0x2cf1,  0x2d7f,  0x2de0,  0x2de1,  0x2de2,  0x2de3,
++++      0x2de4,  0x2de5,  0x2de6,  0x2de7,  0x2de8,  0x2de9,  0x2dea,  0x2deb,
++++      0x2dec,  0x2ded,  0x2dee,  0x2def,  0x2df0,  0x2df1,  0x2df2,  0x2df3,
++++      0x2df4,  0x2df5,  0x2df6,  0x2df7,  0x2df8,  0x2df9,  0x2dfa,  0x2dfb,
++++      0x2dfc,  0x2dfd,  0x2dfe,  0x2dff,  0x302a,  0x302b,  0x302c,  0x302d,
++++      0x302e,  0x302f,  0x3099,  0x309a,  0xa66f,  0xa670,  0xa671,  0xa672,
++++      0xa674,  0xa675,  0xa676,  0xa677,  0xa678,  0xa679,  0xa67a,  0xa67b,
++++      0xa67c,  0xa67d,  0xa69e,  0xa69f,  0xa6f0,  0xa6f1,  0xa802,  0xa806,
++++      0xa80b,  0xa823,  0xa824,  0xa825,  0xa826,  0xa827,  0xa82c,  0xa880,
++++      0xa881,  0xa8b4,  0xa8b5,  0xa8b6,  0xa8b7,  0xa8b8,  0xa8b9,  0xa8ba,
++++      0xa8bb,  0xa8bc,  0xa8bd,  0xa8be,  0xa8bf,  0xa8c0,  0xa8c1,  0xa8c2,
++++      0xa8c3,  0xa8c4,  0xa8c5,  0xa8e0,  0xa8e1,  0xa8e2,  0xa8e3,  0xa8e4,
++++      0xa8e5,  0xa8e6,  0xa8e7,  0xa8e8,  0xa8e9,  0xa8ea,  0xa8eb,  0xa8ec,
++++      0xa8ed,  0xa8ee,  0xa8ef,  0xa8f0,  0xa8f1,  0xa8ff,  0xa926,  0xa927,
++++      0xa928,  0xa929,  0xa92a,  0xa92b,  0xa92c,  0xa92d,  0xa947,  0xa948,
++++      0xa949,  0xa94a,  0xa94b,  0xa94c,  0xa94d,  0xa94e,  0xa94f,  0xa950,
++++      0xa951,  0xa952,  0xa953,  0xa980,  0xa981,  0xa982,  0xa983,  0xa9b3,
++++      0xa9b4,  0xa9b5,  0xa9b6,  0xa9b7,  0xa9b8,  0xa9b9,  0xa9ba,  0xa9bb,
++++      0xa9bc,  0xa9bd,  0xa9be,  0xa9bf,  0xa9c0,  0xa9e5,  0xaa29,  0xaa2a,
++++      0xaa2b,  0xaa2c,  0xaa2d,  0xaa2e,  0xaa2f,  0xaa30,  0xaa31,  0xaa32,
++++      0xaa33,  0xaa34,  0xaa35,  0xaa36,  0xaa43,  0xaa4c,  0xaa4d,  0xaa7b,
++++      0xaa7c,  0xaa7d,  0xaab0,  0xaab2,  0xaab3,  0xaab4,  0xaab7,  0xaab8,
++++      0xaabe,  0xaabf,  0xaac1,  0xaaeb,  0xaaec,  0xaaed,  0xaaee,  0xaaef,
++++      0xaaf5,  0xaaf6,  0xabe3,  0xabe4,  0xabe5,  0xabe6,  0xabe7,  0xabe8,
++++      0xabe9,  0xabea,  0xabec,  0xabed,  0xfb1e,  0xfe00,  0xfe01,  0xfe02,
++++      0xfe03,  0xfe04,  0xfe05,  0xfe06,  0xfe07,  0xfe08,  0xfe09,  0xfe0a,
++++      0xfe0b,  0xfe0c,  0xfe0d,  0xfe0e,  0xfe0f,  0xfe20,  0xfe21,  0xfe22,
++++      0xfe23,  0xfe24,  0xfe25,  0xfe26,  0xfe27,  0xfe28,  0xfe29,  0xfe2a,
++++      0xfe2b,  0xfe2c,  0xfe2d,  0xfe2e,  0xfe2f,  0x101fd, 0x102e0, 0x10376,
++++      0x10377, 0x10378, 0x10379, 0x1037a, 0x10a01, 0x10a02, 0x10a03, 0x10a05,
++++      0x10a06, 0x10a0c, 0x10a0d, 0x10a0e, 0x10a0f, 0x10a38, 0x10a39, 0x10a3a,
++++      0x10a3f, 0x10ae5, 0x10ae6, 0x10d24, 0x10d25, 0x10d26, 0x10d27, 0x10eab,
++++      0x10eac, 0x10f46, 0x10f47, 0x10f48, 0x10f49, 0x10f4a, 0x10f4b, 0x10f4c,
++++      0x10f4d, 0x10f4e, 0x10f4f, 0x10f50, 0x11000, 0x11001, 0x11002, 0x11038,
++++      0x11039, 0x1103a, 0x1103b, 0x1103c, 0x1103d, 0x1103e, 0x1103f, 0x11040,
++++      0x11041, 0x11042, 0x11043, 0x11044, 0x11045, 0x11046, 0x1107f, 0x11080,
++++      0x11081, 0x11082, 0x110b0, 0x110b1, 0x110b2, 0x110b3, 0x110b4, 0x110b5,
++++      0x110b6, 0x110b7, 0x110b8, 0x110b9, 0x110ba, 0x11100, 0x11101, 0x11102,
++++      0x11127, 0x11128, 0x11129, 0x1112a, 0x1112b, 0x1112c, 0x1112d, 0x1112e,
++++      0x1112f, 0x11130, 0x11131, 0x11132, 0x11133, 0x11134, 0x11145, 0x11146,
++++      0x11173, 0x11180, 0x11181, 0x11182, 0x111b3, 0x111b4, 0x111b5, 0x111b6,
++++      0x111b7, 0x111b8, 0x111b9, 0x111ba, 0x111bb, 0x111bc, 0x111bd, 0x111be,
++++      0x111bf, 0x111c0, 0x111c9, 0x111ca, 0x111cb, 0x111cc, 0x111ce, 0x111cf,
++++      0x1122c, 0x1122d, 0x1122e, 0x1122f, 0x11230, 0x11231, 0x11232, 0x11233,
++++      0x11234, 0x11235, 0x11236, 0x11237, 0x1123e, 0x112df, 0x112e0, 0x112e1,
++++      0x112e2, 0x112e3, 0x112e4, 0x112e5, 0x112e6, 0x112e7, 0x112e8, 0x112e9,
++++      0x112ea, 0x11300, 0x11301, 0x11302, 0x11303, 0x1133b, 0x1133c, 0x1133e,
++++      0x1133f, 0x11340, 0x11341, 0x11342, 0x11343, 0x11344, 0x11347, 0x11348,
++++      0x1134b, 0x1134c, 0x1134d, 0x11357, 0x11362, 0x11363, 0x11366, 0x11367,
++++      0x11368, 0x11369, 0x1136a, 0x1136b, 0x1136c, 0x11370, 0x11371, 0x11372,
++++      0x11373, 0x11374, 0x11435, 0x11436, 0x11437, 0x11438, 0x11439, 0x1143a,
++++      0x1143b, 0x1143c, 0x1143d, 0x1143e, 0x1143f, 0x11440, 0x11441, 0x11442,
++++      0x11443, 0x11444, 0x11445, 0x11446, 0x1145e, 0x114b0, 0x114b1, 0x114b2,
++++      0x114b3, 0x114b4, 0x114b5, 0x114b6, 0x114b7, 0x114b8, 0x114b9, 0x114ba,
++++      0x114bb, 0x114bc, 0x114bd, 0x114be, 0x114bf, 0x114c0, 0x114c1, 0x114c2,
++++      0x114c3, 0x115af, 0x115b0, 0x115b1, 0x115b2, 0x115b3, 0x115b4, 0x115b5,
++++      0x115b8, 0x115b9, 0x115ba, 0x115bb, 0x115bc, 0x115bd, 0x115be, 0x115bf,
++++      0x115c0, 0x115dc, 0x115dd, 0x11630, 0x11631, 0x11632, 0x11633, 0x11634,
++++      0x11635, 0x11636, 0x11637, 0x11638, 0x11639, 0x1163a, 0x1163b, 0x1163c,
++++      0x1163d, 0x1163e, 0x1163f, 0x11640, 0x116ab, 0x116ac, 0x116ad, 0x116ae,
++++      0x116af, 0x116b0, 0x116b1, 0x116b2, 0x116b3, 0x116b4, 0x116b5, 0x116b6,
++++      0x116b7, 0x1171d, 0x1171e, 0x1171f, 0x11720, 0x11721, 0x11722, 0x11723,
++++      0x11724, 0x11725, 0x11726, 0x11727, 0x11728, 0x11729, 0x1172a, 0x1172b,
++++      0x1182c, 0x1182d, 0x1182e, 0x1182f, 0x11830, 0x11831, 0x11832, 0x11833,
++++      0x11834, 0x11835, 0x11836, 0x11837, 0x11838, 0x11839, 0x1183a, 0x11930,
++++      0x11931, 0x11932, 0x11933, 0x11934, 0x11935, 0x11937, 0x11938, 0x1193b,
++++      0x1193c, 0x1193d, 0x1193e, 0x11940, 0x11942, 0x11943, 0x119d1, 0x119d2,
++++      0x119d3, 0x119d4, 0x119d5, 0x119d6, 0x119d7, 0x119da, 0x119db, 0x119dc,
++++      0x119dd, 0x119de, 0x119df, 0x119e0, 0x119e4, 0x11a01, 0x11a02, 0x11a03,
++++      0x11a04, 0x11a05, 0x11a06, 0x11a07, 0x11a08, 0x11a09, 0x11a0a, 0x11a33,
++++      0x11a34, 0x11a35, 0x11a36, 0x11a37, 0x11a38, 0x11a39, 0x11a3b, 0x11a3c,
++++      0x11a3d, 0x11a3e, 0x11a47, 0x11a51, 0x11a52, 0x11a53, 0x11a54, 0x11a55,
++++      0x11a56, 0x11a57, 0x11a58, 0x11a59, 0x11a5a, 0x11a5b, 0x11a8a, 0x11a8b,
++++      0x11a8c, 0x11a8d, 0x11a8e, 0x11a8f, 0x11a90, 0x11a91, 0x11a92, 0x11a93,
++++      0x11a94, 0x11a95, 0x11a96, 0x11a97, 0x11a98, 0x11a99, 0x11c2f, 0x11c30,
++++      0x11c31, 0x11c32, 0x11c33, 0x11c34, 0x11c35, 0x11c36, 0x11c38, 0x11c39,
++++      0x11c3a, 0x11c3b, 0x11c3c, 0x11c3d, 0x11c3e, 0x11c3f, 0x11c92, 0x11c93,
++++      0x11c94, 0x11c95, 0x11c96, 0x11c97, 0x11c98, 0x11c99, 0x11c9a, 0x11c9b,
++++      0x11c9c, 0x11c9d, 0x11c9e, 0x11c9f, 0x11ca0, 0x11ca1, 0x11ca2, 0x11ca3,
++++      0x11ca4, 0x11ca5, 0x11ca6, 0x11ca7, 0x11ca9, 0x11caa, 0x11cab, 0x11cac,
++++      0x11cad, 0x11cae, 0x11caf, 0x11cb0, 0x11cb1, 0x11cb2, 0x11cb3, 0x11cb4,
++++      0x11cb5, 0x11cb6, 0x11d31, 0x11d32, 0x11d33, 0x11d34, 0x11d35, 0x11d36,
++++      0x11d3a, 0x11d3c, 0x11d3d, 0x11d3f, 0x11d40, 0x11d41, 0x11d42, 0x11d43,
++++      0x11d44, 0x11d45, 0x11d47, 0x11d8a, 0x11d8b, 0x11d8c, 0x11d8d, 0x11d8e,
++++      0x11d90, 0x11d91, 0x11d93, 0x11d94, 0x11d95, 0x11d96, 0x11d97, 0x11ef3,
++++      0x11ef4, 0x11ef5, 0x11ef6, 0x16af0, 0x16af1, 0x16af2, 0x16af3, 0x16af4,
++++      0x16b30, 0x16b31, 0x16b32, 0x16b33, 0x16b34, 0x16b35, 0x16b36, 0x16f4f,
++++      0x16f51, 0x16f52, 0x16f53, 0x16f54, 0x16f55, 0x16f56, 0x16f57, 0x16f58,
++++      0x16f59, 0x16f5a, 0x16f5b, 0x16f5c, 0x16f5d, 0x16f5e, 0x16f5f, 0x16f60,
++++      0x16f61, 0x16f62, 0x16f63, 0x16f64, 0x16f65, 0x16f66, 0x16f67, 0x16f68,
++++      0x16f69, 0x16f6a, 0x16f6b, 0x16f6c, 0x16f6d, 0x16f6e, 0x16f6f, 0x16f70,
++++      0x16f71, 0x16f72, 0x16f73, 0x16f74, 0x16f75, 0x16f76, 0x16f77, 0x16f78,
++++      0x16f79, 0x16f7a, 0x16f7b, 0x16f7c, 0x16f7d, 0x16f7e, 0x16f7f, 0x16f80,
++++      0x16f81, 0x16f82, 0x16f83, 0x16f84, 0x16f85, 0x16f86, 0x16f87, 0x16f8f,
++++      0x16f90, 0x16f91, 0x16f92, 0x16fe4, 0x16ff0, 0x16ff1, 0x1bc9d, 0x1bc9e,
++++      0x1d165, 0x1d166, 0x1d167, 0x1d168, 0x1d169, 0x1d16d, 0x1d16e, 0x1d16f,
++++      0x1d170, 0x1d171, 0x1d172, 0x1d17b, 0x1d17c, 0x1d17d, 0x1d17e, 0x1d17f,
++++      0x1d180, 0x1d181, 0x1d182, 0x1d185, 0x1d186, 0x1d187, 0x1d188, 0x1d189,
++++      0x1d18a, 0x1d18b, 0x1d1aa, 0x1d1ab, 0x1d1ac, 0x1d1ad, 0x1d242, 0x1d243,
++++      0x1d244, 0x1da00, 0x1da01, 0x1da02, 0x1da03, 0x1da04, 0x1da05, 0x1da06,
++++      0x1da07, 0x1da08, 0x1da09, 0x1da0a, 0x1da0b, 0x1da0c, 0x1da0d, 0x1da0e,
++++      0x1da0f, 0x1da10, 0x1da11, 0x1da12, 0x1da13, 0x1da14, 0x1da15, 0x1da16,
++++      0x1da17, 0x1da18, 0x1da19, 0x1da1a, 0x1da1b, 0x1da1c, 0x1da1d, 0x1da1e,
++++      0x1da1f, 0x1da20, 0x1da21, 0x1da22, 0x1da23, 0x1da24, 0x1da25, 0x1da26,
++++      0x1da27, 0x1da28, 0x1da29, 0x1da2a, 0x1da2b, 0x1da2c, 0x1da2d, 0x1da2e,
++++      0x1da2f, 0x1da30, 0x1da31, 0x1da32, 0x1da33, 0x1da34, 0x1da35, 0x1da36,
++++      0x1da3b, 0x1da3c, 0x1da3d, 0x1da3e, 0x1da3f, 0x1da40, 0x1da41, 0x1da42,
++++      0x1da43, 0x1da44, 0x1da45, 0x1da46, 0x1da47, 0x1da48, 0x1da49, 0x1da4a,
++++      0x1da4b, 0x1da4c, 0x1da4d, 0x1da4e, 0x1da4f, 0x1da50, 0x1da51, 0x1da52,
++++      0x1da53, 0x1da54, 0x1da55, 0x1da56, 0x1da57, 0x1da58, 0x1da59, 0x1da5a,
++++      0x1da5b, 0x1da5c, 0x1da5d, 0x1da5e, 0x1da5f, 0x1da60, 0x1da61, 0x1da62,
++++      0x1da63, 0x1da64, 0x1da65, 0x1da66, 0x1da67, 0x1da68, 0x1da69, 0x1da6a,
++++      0x1da6b, 0x1da6c, 0x1da75, 0x1da84, 0x1da9b, 0x1da9c, 0x1da9d, 0x1da9e,
++++      0x1da9f, 0x1daa1, 0x1daa2, 0x1daa3, 0x1daa4, 0x1daa5, 0x1daa6, 0x1daa7,
++++      0x1daa8, 0x1daa9, 0x1daaa, 0x1daab, 0x1daac, 0x1daad, 0x1daae, 0x1daaf,
++++      0x1e000, 0x1e001, 0x1e002, 0x1e003, 0x1e004, 0x1e005, 0x1e006, 0x1e008,
++++      0x1e009, 0x1e00a, 0x1e00b, 0x1e00c, 0x1e00d, 0x1e00e, 0x1e00f, 0x1e010,
++++      0x1e011, 0x1e012, 0x1e013, 0x1e014, 0x1e015, 0x1e016, 0x1e017, 0x1e018,
++++      0x1e01b, 0x1e01c, 0x1e01d, 0x1e01e, 0x1e01f, 0x1e020, 0x1e021, 0x1e023,
++++      0x1e024, 0x1e026, 0x1e027, 0x1e028, 0x1e029, 0x1e02a, 0x1e130, 0x1e131,
++++      0x1e132, 0x1e133, 0x1e134, 0x1e135, 0x1e136, 0x1e2ec, 0x1e2ed, 0x1e2ee,
++++      0x1e2ef, 0x1e8d0, 0x1e8d1, 0x1e8d2, 0x1e8d3, 0x1e8d4, 0x1e8d5, 0x1e8d6,
++++      0x1e944, 0x1e945, 0x1e946, 0x1e947, 0x1e948, 0x1e949, 0x1e94a, 0xe0100,
++++      0xe0101, 0xe0102, 0xe0103, 0xe0104, 0xe0105, 0xe0106, 0xe0107, 0xe0108,
++++      0xe0109, 0xe010a, 0xe010b, 0xe010c, 0xe010d, 0xe010e, 0xe010f, 0xe0110,
++++      0xe0111, 0xe0112, 0xe0113, 0xe0114, 0xe0115, 0xe0116, 0xe0117, 0xe0118,
++++      0xe0119, 0xe011a, 0xe011b, 0xe011c, 0xe011d, 0xe011e, 0xe011f, 0xe0120,
++++      0xe0121, 0xe0122, 0xe0123, 0xe0124, 0xe0125, 0xe0126, 0xe0127, 0xe0128,
++++      0xe0129, 0xe012a, 0xe012b, 0xe012c, 0xe012d, 0xe012e, 0xe012f, 0xe0130,
++++      0xe0131, 0xe0132, 0xe0133, 0xe0134, 0xe0135, 0xe0136, 0xe0137, 0xe0138,
++++      0xe0139, 0xe013a, 0xe013b, 0xe013c, 0xe013d, 0xe013e, 0xe013f, 0xe0140,
++++      0xe0141, 0xe0142, 0xe0143, 0xe0144, 0xe0145, 0xe0146, 0xe0147, 0xe0148,
++++      0xe0149, 0xe014a, 0xe014b, 0xe014c, 0xe014d, 0xe014e, 0xe014f, 0xe0150,
++++      0xe0151, 0xe0152, 0xe0153, 0xe0154, 0xe0155, 0xe0156, 0xe0157, 0xe0158,
++++      0xe0159, 0xe015a, 0xe015b, 0xe015c, 0xe015d, 0xe015e, 0xe015f, 0xe0160,
++++      0xe0161, 0xe0162, 0xe0163, 0xe0164, 0xe0165, 0xe0166, 0xe0167, 0xe0168,
++++      0xe0169, 0xe016a, 0xe016b, 0xe016c, 0xe016d, 0xe016e, 0xe016f, 0xe0170,
++++      0xe0171, 0xe0172, 0xe0173, 0xe0174, 0xe0175, 0xe0176, 0xe0177, 0xe0178,
++++      0xe0179, 0xe017a, 0xe017b, 0xe017c, 0xe017d, 0xe017e, 0xe017f, 0xe0180,
++++      0xe0181, 0xe0182, 0xe0183, 0xe0184, 0xe0185, 0xe0186, 0xe0187, 0xe0188,
++++      0xe0189, 0xe018a, 0xe018b, 0xe018c, 0xe018d, 0xe018e, 0xe018f, 0xe0190,
++++      0xe0191, 0xe0192, 0xe0193, 0xe0194, 0xe0195, 0xe0196, 0xe0197, 0xe0198,
++++      0xe0199, 0xe019a, 0xe019b, 0xe019c, 0xe019d, 0xe019e, 0xe019f, 0xe01a0,
++++      0xe01a1, 0xe01a2, 0xe01a3, 0xe01a4, 0xe01a5, 0xe01a6, 0xe01a7, 0xe01a8,
++++      0xe01a9, 0xe01aa, 0xe01ab, 0xe01ac, 0xe01ad, 0xe01ae, 0xe01af, 0xe01b0,
++++      0xe01b1, 0xe01b2, 0xe01b3, 0xe01b4, 0xe01b5, 0xe01b6, 0xe01b7, 0xe01b8,
++++      0xe01b9, 0xe01ba, 0xe01bb, 0xe01bc, 0xe01bd, 0xe01be, 0xe01bf, 0xe01c0,
++++      0xe01c1, 0xe01c2, 0xe01c3, 0xe01c4, 0xe01c5, 0xe01c6, 0xe01c7, 0xe01c8,
++++      0xe01c9, 0xe01ca, 0xe01cb, 0xe01cc, 0xe01cd, 0xe01ce, 0xe01cf, 0xe01d0,
++++      0xe01d1, 0xe01d2, 0xe01d3, 0xe01d4, 0xe01d5, 0xe01d6, 0xe01d7, 0xe01d8,
++++      0xe01d9, 0xe01da, 0xe01db, 0xe01dc, 0xe01dd, 0xe01de, 0xe01df, 0xe01e0,
++++      0xe01e1, 0xe01e2, 0xe01e3, 0xe01e4, 0xe01e5, 0xe01e6, 0xe01e7, 0xe01e8,
++++      0xe01e9, 0xe01ea, 0xe01eb, 0xe01ec, 0xe01ed, 0xe01ee, 0xe01ef};
++++  if (std::binary_search(std::begin(combining), std::end(combining),
++++                         label.front())) {
++++    return false;
++++  }
++++  // We verify this next step as part of the mapping:
++++  // ---------------------------------------------
++++  // Each code point in the label must only have certain status values
++++  // according to Section 5, IDNA Mapping Table:
++++  // - For Transitional Processing, each value must be valid.
++++  // - For Nontransitional Processing, each value must be either valid or
++++  // deviation.
++++
++++  // If CheckJoiners, the label must satisfy the ContextJ rules from Appendix
++++  // A, in The Unicode Code Points and Internationalized Domain Names for
++++  // Applications (IDNA) [IDNA2008].
++++  constexpr static uint32_t virama[] = {
++++      0x094D,  0x09CD,  0x0A4D,  0x0ACD,  0x0B4D,  0x0BCD,  0x0C4D,  0x0CCD,
++++      0x0D3B,  0x0D3C,  0x0D4D,  0x0DCA,  0x0E3A,  0x0EBA,  0x0F84,  0x1039,
++++      0x103A,  0x1714,  0x1734,  0x17D2,  0x1A60,  0x1B44,  0x1BAA,  0x1BAB,
++++      0x1BF2,  0x1BF3,  0x2D7F,  0xA806,  0xA82C,  0xA8C4,  0xA953,  0xA9C0,
++++      0xAAF6,  0xABED,  0x10A3F, 0x11046, 0x1107F, 0x110B9, 0x11133, 0x11134,
++++      0x111C0, 0x11235, 0x112EA, 0x1134D, 0x11442, 0x114C2, 0x115BF, 0x1163F,
++++      0x116B6, 0x1172B, 0x11839, 0x1193D, 0x1193E, 0x119E0, 0x11A34, 0x11A47,
++++      0x11A99, 0x11C3F, 0x11D44, 0x11D45, 0x11D97};
++++  constexpr static uint32_t R[] = {
++++      0x622, 0x623, 0x624, 0x625, 0x627, 0x629, 0x62f, 0x630, 0x631,
++++      0x632, 0x648, 0x671, 0x672, 0x673, 0x675, 0x676, 0x677, 0x688,
++++      0x689, 0x68a, 0x68b, 0x68c, 0x68d, 0x68e, 0x68f, 0x690, 0x691,
++++      0x692, 0x693, 0x694, 0x695, 0x696, 0x697, 0x698, 0x699, 0x6c0,
++++      0x6c3, 0x6c4, 0x6c5, 0x6c6, 0x6c7, 0x6c8, 0x6c9, 0x6ca, 0x6cb,
++++      0x6cd, 0x6cf, 0x6d2, 0x6d3, 0x6d5, 0x6ee, 0x6ef, 0x710, 0x715,
++++      0x716, 0x717, 0x718, 0x719, 0x71e, 0x728, 0x72a, 0x72c, 0x72f,
++++      0x74d, 0x759, 0x75a, 0x75b, 0x854, 0x8aa, 0x8ab, 0x8ac};
++++  constexpr static uint32_t L[] = {0xa872};
++++  constexpr static uint32_t D[] = {
++++      0x620,  0x626,  0x628,  0x62a,  0x62b,  0x62c,  0x62d,  0x62e,  0x633,
++++      0x634,  0x635,  0x636,  0x637,  0x638,  0x639,  0x63a,  0x63b,  0x63c,
++++      0x63d,  0x63e,  0x63f,  0x641,  0x642,  0x643,  0x644,  0x645,  0x646,
++++      0x647,  0x649,  0x64a,  0x66e,  0x66f,  0x678,  0x679,  0x67a,  0x67b,
++++      0x67c,  0x67d,  0x67e,  0x67f,  0x680,  0x681,  0x682,  0x683,  0x684,
++++      0x685,  0x686,  0x687,  0x69a,  0x69b,  0x69c,  0x69d,  0x69e,  0x69f,
++++      0x6a0,  0x6a1,  0x6a2,  0x6a3,  0x6a4,  0x6a5,  0x6a6,  0x6a7,  0x6a8,
++++      0x6a9,  0x6aa,  0x6ab,  0x6ac,  0x6ad,  0x6ae,  0x6af,  0x6b0,  0x6b1,
++++      0x6b2,  0x6b3,  0x6b4,  0x6b5,  0x6b6,  0x6b7,  0x6b8,  0x6b9,  0x6ba,
++++      0x6bb,  0x6bc,  0x6bd,  0x6be,  0x6bf,  0x6c1,  0x6c2,  0x6cc,  0x6ce,
++++      0x6d0,  0x6d1,  0x6fa,  0x6fb,  0x6fc,  0x6ff,  0x712,  0x713,  0x714,
++++      0x71a,  0x71b,  0x71c,  0x71d,  0x71f,  0x720,  0x721,  0x722,  0x723,
++++      0x724,  0x725,  0x726,  0x727,  0x729,  0x72b,  0x72d,  0x72e,  0x74e,
++++      0x74f,  0x750,  0x751,  0x752,  0x753,  0x754,  0x755,  0x756,  0x757,
++++      0x758,  0x75c,  0x75d,  0x75e,  0x75f,  0x760,  0x761,  0x762,  0x763,
++++      0x764,  0x765,  0x766,  0x850,  0x851,  0x852,  0x853,  0x855,  0x8a0,
++++      0x8a2,  0x8a3,  0x8a4,  0x8a5,  0x8a6,  0x8a7,  0x8a8,  0x8a9,  0x1807,
++++      0x1820, 0x1821, 0x1822, 0x1823, 0x1824, 0x1825, 0x1826, 0x1827, 0x1828,
++++      0x1829, 0x182a, 0x182b, 0x182c, 0x182d, 0x182e, 0x182f, 0x1830, 0x1831,
++++      0x1832, 0x1833, 0x1834, 0x1835, 0x1836, 0x1837, 0x1838, 0x1839, 0x183a,
++++      0x183b, 0x183c, 0x183d, 0x183e, 0x183f, 0x1840, 0x1841, 0x1842, 0x1843,
++++      0x1844, 0x1845, 0x1846, 0x1847, 0x1848, 0x1849, 0x184a, 0x184b, 0x184c,
++++      0x184d, 0x184e, 0x184f, 0x1850, 0x1851, 0x1852, 0x1853, 0x1854, 0x1855,
++++      0x1856, 0x1857, 0x1858, 0x1859, 0x185a, 0x185b, 0x185c, 0x185d, 0x185e,
++++      0x185f, 0x1860, 0x1861, 0x1862, 0x1863, 0x1864, 0x1865, 0x1866, 0x1867,
++++      0x1868, 0x1869, 0x186a, 0x186b, 0x186c, 0x186d, 0x186e, 0x186f, 0x1870,
++++      0x1871, 0x1872, 0x1873, 0x1874, 0x1875, 0x1876, 0x1877, 0x1887, 0x1888,
++++      0x1889, 0x188a, 0x188b, 0x188c, 0x188d, 0x188e, 0x188f, 0x1890, 0x1891,
++++      0x1892, 0x1893, 0x1894, 0x1895, 0x1896, 0x1897, 0x1898, 0x1899, 0x189a,
++++      0x189b, 0x189c, 0x189d, 0x189e, 0x189f, 0x18a0, 0x18a1, 0x18a2, 0x18a3,
++++      0x18a4, 0x18a5, 0x18a6, 0x18a7, 0x18a8, 0x18aa, 0xa840, 0xa841, 0xa842,
++++      0xa843, 0xa844, 0xa845, 0xa846, 0xa847, 0xa848, 0xa849, 0xa84a, 0xa84b,
++++      0xa84c, 0xa84d, 0xa84e, 0xa84f, 0xa850, 0xa851, 0xa852, 0xa853, 0xa854,
++++      0xa855, 0xa856, 0xa857, 0xa858, 0xa859, 0xa85a, 0xa85b, 0xa85c, 0xa85d,
++++      0xa85e, 0xa85f, 0xa860, 0xa861, 0xa862, 0xa863, 0xa864, 0xa865, 0xa866,
++++      0xa867, 0xa868, 0xa869, 0xa86a, 0xa86b, 0xa86c, 0xa86d, 0xa86e, 0xa86f,
++++      0xa870, 0xa871};
++++
++++  for (size_t i = 0; i < label.size(); i++) {
++++    uint32_t c = label[i];
++++    if (c == 0x200c) {
++++      if (i > 0) {
++++        if (std::binary_search(std::begin(virama), std::end(virama),
++++                               label[i - 1])) {
++++          return true;
++++        }
++++      }
++++      if ((i == 0) || (i + 1 >= label.size())) {
++++        return false;
++++      }
++++      // we go backward looking for L or D
++++      auto is_l_or_d = [](uint32_t code) {
++++        return std::binary_search(std::begin(L), std::end(L), code) ||
++++               std::binary_search(std::begin(D), std::end(D), code);
++++      };
++++      auto is_r_or_d = [](uint32_t code) {
++++        return std::binary_search(std::begin(R), std::end(R), code) ||
++++               std::binary_search(std::begin(D), std::end(D), code);
++++      };
++++      std::u32string_view before = label.substr(0, i);
++++      std::u32string_view after = label.substr(i + 1);
++++      return (std::find_if(before.begin(), before.end(), is_l_or_d) !=
++++              before.end()) &&
++++             (std::find_if(after.begin(), after.end(), is_r_or_d) !=
++++              after.end());
++++    } else if (c == 0x200d) {
++++      if (i > 0) {
++++        if (std::binary_search(std::begin(virama), std::end(virama),
++++                               label[i - 1])) {
++++          return true;
++++        }
++++      }
++++      return false;
++++    }
++++  }
++++
++++  // If CheckBidi, and if the domain name is a  Bidi domain name, then the label
++++  // must satisfy all six of the numbered conditions in [IDNA2008] RFC 5893,
++++  // Section 2.
++++
++++  // The following rule, consisting of six conditions, applies to labels
++++  // in Bidi domain names.  The requirements that this rule satisfies are
++++  // described in Section 3.  All of the conditions must be satisfied for
++++  // the rule to be satisfied.
++++  //
++++  //  1.  The first character must be a character with Bidi property L, R,
++++  //     or AL.  If it has the R or AL property, it is an RTL label; if it
++++  //     has the L property, it is an LTR label.
++++  //
++++  //  2.  In an RTL label, only characters with the Bidi properties R, AL,
++++  //      AN, EN, ES, CS, ET, ON, BN, or NSM are allowed.
++++  //
++++  //   3.  In an RTL label, the end of the label must be a character with
++++  //       Bidi property R, AL, EN, or AN, followed by zero or more
++++  //       characters with Bidi property NSM.
++++  //
++++  //   4.  In an RTL label, if an EN is present, no AN may be present, and
++++  //       vice versa.
++++  //
++++  //  5.  In an LTR label, only characters with the Bidi properties L, EN,
++++  //       ES, CS, ET, ON, BN, or NSM are allowed.
++++  //
++++  //   6.  In an LTR label, the end of the label must be a character with
++++  //       Bidi property L or EN, followed by zero or more characters with
++++  //       Bidi property NSM.
++++
++++  size_t last_non_nsm_char = find_last_not_of_nsm(label);
++++  if (last_non_nsm_char == std::u32string_view::npos) {
++++    return false;
++++  }
++++
++++  // A "Bidi domain name" is a domain name that contains at least one RTL label.
++++  // The following rule, consisting of six conditions, applies to labels in Bidi
++++  // domain names.
++++  if (is_rtl_label(label)) {
++++    // The first character must be a character with Bidi property L, R,
++++    // or AL. If it has the R or AL property, it is an RTL label; if it
++++    // has the L property, it is an LTR label.
++++
++++    if (find_direction(label[0]) == direction::L) {
++++      // Eval as LTR
++++
++++      // In an LTR label, only characters with the Bidi properties L, EN,
++++      // ES, CS, ET, ON, BN, or NSM are allowed.
++++      for (size_t i = 0; i < last_non_nsm_char; i++) {
++++        const direction d = find_direction(label[i]);
++++        if (!(d == direction::L || d == direction::EN || d == direction::ES ||
++++              d == direction::CS || d == direction::ET || d == direction::ON ||
++++              d == direction::BN || d == direction::NSM)) {
++++          return false;
++++        }
++++
++++        if ((i == last_non_nsm_char) &&
++++            !(d == direction::L || d == direction::EN)) {
++++          return false;
++++        }
++++      }
++++
++++      return true;
++++
++++    } else {
++++      // Eval as RTL
++++
++++      bool has_an = false;
++++      bool has_en = false;
++++      for (size_t i = 0; i <= last_non_nsm_char; i++) {
++++        const direction d = find_direction(label[i]);
++++
++++        // In an RTL label, if an EN is present, no AN may be present, and vice
++++        // versa.
++++        if ((d == direction::EN && ((has_en = true) && has_an)) ||
++++            (d == direction::AN && ((has_an = true) && has_en))) {
++++          return false;
++++        }
++++
++++        if (!(d == direction::R || d == direction::AL || d == direction::AN ||
++++              d == direction::EN || d == direction::ES || d == direction::CS ||
++++              d == direction::ET || d == direction::ON || d == direction::BN ||
++++              d == direction::NSM)) {
++++          return false;
++++        }
++++
++++        if (i == last_non_nsm_char &&
++++            !(d == direction::R || d == direction::AL || d == direction::AN ||
++++              d == direction::EN)) {
++++          return false;
++++        }
++++      }
++++
++++      return true;
++++    }
++++  }
++++
++++  return true;
++++}
++++
++++}  // namespace ada::idna
++++/* end file src/validity.cpp */
++++/* begin file src/to_ascii.cpp */
++++
++++#include <algorithm>
++++#include <cstdint>
++++
++++
++++namespace ada::idna {
++++
++++bool begins_with(std::u32string_view view, std::u32string_view prefix) {
++++  if (view.size() < prefix.size()) {
++++    return false;
++++  }
++++  // constexpr as of C++20
++++  return std::equal(prefix.begin(), prefix.end(), view.begin());
++++}
++++
++++bool begins_with(std::string_view view, std::string_view prefix) {
++++  if (view.size() < prefix.size()) {
++++    return false;
++++  }
++++  // constexpr as of C++20
++++  return std::equal(prefix.begin(), prefix.end(), view.begin());
++++}
++++
++++bool constexpr is_ascii(std::u32string_view view) {
++++  for (uint32_t c : view) {
++++    if (c >= 0x80) {
++++      return false;
++++    }
++++  }
++++  return true;
++++}
++++
++++bool constexpr is_ascii(std::string_view view) {
++++  for (uint8_t c : view) {
++++    if (c >= 0x80) {
++++      return false;
++++    }
++++  }
++++  return true;
++++}
++++
++++constexpr static uint8_t is_forbidden_domain_code_point_table[] = {
++++    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
++++    1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
++++    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0,
++++    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0,
++++    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++++    0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
++++    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
++++    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
++++    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
++++    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
++++    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
++++
++++static_assert(sizeof(is_forbidden_domain_code_point_table) == 256);
++++
++++inline bool is_forbidden_domain_code_point(const char c) noexcept {
++++  return is_forbidden_domain_code_point_table[uint8_t(c)];
++++}
++++
++++bool contains_forbidden_domain_code_point(std::string_view view) {
++++  return (
++++      std::any_of(view.begin(), view.end(), is_forbidden_domain_code_point));
++++}
++++
++++// We return "" on error.
++++static std::string from_ascii_to_ascii(std::string_view ut8_string) {
++++  static const std::string error = "";
++++  // copy and map
++++  // we could be more efficient by avoiding the copy when unnecessary.
++++  std::string mapped_string = std::string(ut8_string);
++++  ascii_map(mapped_string.data(), mapped_string.size());
++++  std::string out;
++++  size_t label_start = 0;
++++
++++  while (label_start != mapped_string.size()) {
++++    size_t loc_dot = mapped_string.find('.', label_start);
++++    bool is_last_label = (loc_dot == std::string_view::npos);
++++    size_t label_size = is_last_label ? mapped_string.size() - label_start
++++                                      : loc_dot - label_start;
++++    size_t label_size_with_dot = is_last_label ? label_size : label_size + 1;
++++    std::string_view label_view(mapped_string.data() + label_start, label_size);
++++    label_start += label_size_with_dot;
++++    if (label_size == 0) {
++++      // empty label? Nothing to do.
++++    } else if (begins_with(label_view, "xn--")) {
++++      // The xn-- part is the expensive game.
++++      out.append(label_view);
++++      std::string_view puny_segment_ascii(
++++          out.data() + out.size() - label_view.size() + 4,
++++          label_view.size() - 4);
++++      std::u32string tmp_buffer;
++++      bool is_ok = ada::idna::punycode_to_utf32(puny_segment_ascii, tmp_buffer);
++++      if (!is_ok) {
++++        return error;
++++      }
++++      std::u32string post_map = ada::idna::map(tmp_buffer);
++++      if (tmp_buffer != post_map) {
++++        return error;
++++      }
++++      std::u32string pre_normal = post_map;
++++      normalize(post_map);
++++      if (post_map != pre_normal) {
++++        return error;
++++      }
++++      if (post_map.empty()) {
++++        return error;
++++      }
++++      if (!is_label_valid(post_map)) {
++++        return error;
++++      }
++++    } else {
++++      out.append(label_view);
++++    }
++++    if (!is_last_label) {
++++      out.push_back('.');
++++    }
++++  }
++++  return out;
++++}
++++
++++// We return "" on error.
++++std::string to_ascii(std::string_view ut8_string) {
++++  if (is_ascii(ut8_string)) {
++++    return from_ascii_to_ascii(ut8_string);
++++  }
++++  static const std::string error = "";
++++  // We convert to UTF-32
++++  size_t utf32_length =
++++      ada::idna::utf32_length_from_utf8(ut8_string.data(), ut8_string.size());
++++  std::u32string utf32(utf32_length, '\0');
++++  size_t actual_utf32_length = ada::idna::utf8_to_utf32(
++++      ut8_string.data(), ut8_string.size(), utf32.data());
++++  if (actual_utf32_length == 0) {
++++    return error;
++++  }
++++  // mapping
++++  utf32 = ada::idna::map(utf32);
++++  normalize(utf32);
++++  std::string out;
++++  size_t label_start = 0;
++++
++++  while (label_start != utf32.size()) {
++++    size_t loc_dot = utf32.find('.', label_start);
++++    bool is_last_label = (loc_dot == std::string_view::npos);
++++    size_t label_size =
++++        is_last_label ? utf32.size() - label_start : loc_dot - label_start;
++++    size_t label_size_with_dot = is_last_label ? label_size : label_size + 1;
++++    std::u32string_view label_view(utf32.data() + label_start, label_size);
++++    label_start += label_size_with_dot;
++++    if (label_size == 0) {
++++      // empty label? Nothing to do.
++++    } else if (begins_with(label_view, U"xn--")) {
++++      // we do not need to check, e.g., Xn-- because mapping goes to lower case
++++      for (char32_t c : label_view) {
++++        if (c >= 0x80) {
++++          return error;
++++        }
++++        out += (unsigned char)(c);
++++      }
++++      std::string_view puny_segment_ascii(
++++          out.data() + out.size() - label_view.size() + 4,
++++          label_view.size() - 4);
++++      std::u32string tmp_buffer;
++++      bool is_ok = ada::idna::punycode_to_utf32(puny_segment_ascii, tmp_buffer);
++++      if (!is_ok) {
++++        return error;
++++      }
++++      std::u32string post_map = ada::idna::map(tmp_buffer);
++++      if (tmp_buffer != post_map) {
++++        return error;
++++      }
++++      std::u32string pre_normal = post_map;
++++      normalize(post_map);
++++      if (post_map != pre_normal) {
++++        return error;
++++      }
++++      if (post_map.empty()) {
++++        return error;
++++      }
++++      if (!is_label_valid(post_map)) {
++++        return error;
++++      }
++++    } else {
++++      // The fast path here is an ascii label.
++++      if (is_ascii(label_view)) {
++++        // no validation needed.
++++        for (char32_t c : label_view) {
++++          out += (unsigned char)(c);
++++        }
++++      } else {
++++        // slow path.
++++        // first check validity.
++++        if (!is_label_valid(label_view)) {
++++          return error;
++++        }
++++        // It is valid! So now we must encode it as punycode...
++++        out.append("xn--");
++++        bool is_ok = ada::idna::utf32_to_punycode(label_view, out);
++++        if (!is_ok) {
++++          return error;
++++        }
++++      }
++++    }
++++    if (!is_last_label) {
++++      out.push_back('.');
++++    }
++++  }
++++  return out;
++++}
++++}  // namespace ada::idna
++++/* end file src/to_ascii.cpp */
++++/* begin file src/to_unicode.cpp */
++++
++++#include <algorithm>
++++#include <string>
++++
++++
++++namespace ada::idna {
++++std::string to_unicode(std::string_view input) {
++++  std::string output;
++++  output.reserve(input.size());
++++
++++  size_t label_start = 0;
++++  while (label_start < input.size()) {
++++    size_t loc_dot = input.find('.', label_start);
++++    bool is_last_label = (loc_dot == std::string_view::npos);
++++    size_t label_size =
++++        is_last_label ? input.size() - label_start : loc_dot - label_start;
++++    auto label_view = std::string_view(input.data() + label_start, label_size);
++++
++++    if (ada::idna::begins_with(label_view, "xn--") &&
++++        ada::idna::is_ascii(label_view)) {
++++      label_view.remove_prefix(4);
++++      if (ada::idna::verify_punycode(label_view)) {
++++        std::u32string tmp_buffer;
++++        if (ada::idna::punycode_to_utf32(label_view, tmp_buffer)) {
++++          auto utf8_size = ada::idna::utf8_length_from_utf32(tmp_buffer.data(),
++++                                                             tmp_buffer.size());
++++          std::string final_utf8(utf8_size, '\0');
++++          ada::idna::utf32_to_utf8(tmp_buffer.data(), tmp_buffer.size(),
++++                                   final_utf8.data());
++++          output.append(final_utf8);
++++        } else {
++++          // ToUnicode never fails.  If any step fails, then the original input
++++          // sequence is returned immediately in that step.
++++          output.append(
++++              std::string_view(input.data() + label_start, label_size));
++++        }
++++      } else {
++++        output.append(std::string_view(input.data() + label_start, label_size));
++++      }
++++    } else {
++++      output.append(label_view);
++++    }
++++
++++    if (!is_last_label) {
++++      output.push_back('.');
++++    }
++++
++++    label_start += label_size + 1;
++++  }
++++
++++  return output;
++++}
++++}  // namespace ada::idna
++++/* end file src/to_unicode.cpp */
++++/* end file src/idna.cpp */
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..46d43f618001409b42e71d4096e57ae54c8470fb
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,127 @@@@@
++++#include "ada/checkers.h"
++++
++++#include <algorithm>
++++
++++namespace ada::checkers {
++++
++++ada_really_inline ada_constexpr bool is_ipv4(std::string_view view) noexcept {
++++  // The string is not empty and does not contain upper case ASCII characters.
++++  //
++++  // Optimization. To be considered as a possible ipv4, the string must end
++++  // with 'x' or a lowercase hex character.
++++  // Most of the time, this will be false so this simple check will save a lot
++++  // of effort.
++++  char last_char = view.back();
++++  // If the address ends with a dot, we need to prune it (special case).
++++  if (last_char == '.') {
++++    view.remove_suffix(1);
++++    if (view.empty()) {
++++      return false;
++++    }
++++    last_char = view.back();
++++  }
++++  bool possible_ipv4 = (last_char >= '0' && last_char <= '9') ||
++++                       (last_char >= 'a' && last_char <= 'f') ||
++++                       last_char == 'x';
++++  if (!possible_ipv4) {
++++    return false;
++++  }
++++  // From the last character, find the last dot.
++++  size_t last_dot = view.rfind('.');
++++  if (last_dot != std::string_view::npos) {
++++    // We have at least one dot.
++++    view = view.substr(last_dot + 1);
++++  }
++++  /** Optimization opportunity: we have basically identified the last number of
++++     the ipv4 if we return true here. We might as well parse it and have at
++++     least one number parsed when we get to parse_ipv4. */
++++  if (std::all_of(view.begin(), view.end(), ada::checkers::is_digit)) {
++++    return true;
++++  }
++++  // It could be hex (0x), but not if there is a single character.
++++  if (view.size() == 1) {
++++    return false;
++++  }
++++  // It must start with 0x.
++++  if (!std::equal(view.begin(), view.begin() + 2, "0x")) {
++++    return false;
++++  }
++++  // We must allow "0x".
++++  if (view.size() == 2) {
++++    return true;
++++  }
++++  // We have 0x followed by some characters, we need to check that they are
++++  // hexadecimals.
++++  return std::all_of(view.begin() + 2, view.end(),
++++                     ada::unicode::is_lowercase_hex);
++++}
++++
++++// for use with path_signature, we include all characters that need percent
++++// encoding.
++++static constexpr std::array<uint8_t, 256> path_signature_table =
++++    []() constexpr {
++++      std::array<uint8_t, 256> result{};
++++      for (size_t i = 0; i < 256; i++) {
++++        if (i <= 0x20 || i == 0x22 || i == 0x23 || i == 0x3c || i == 0x3e ||
++++            i == 0x3f || i == 0x60 || i == 0x7b || i == 0x7d || i > 0x7e) {
++++          result[i] = 1;
++++        } else if (i == 0x25) {
++++          result[i] = 8;
++++        } else if (i == 0x2e) {
++++          result[i] = 4;
++++        } else if (i == 0x5c) {
++++          result[i] = 2;
++++        } else {
++++          result[i] = 0;
++++        }
++++      }
++++      return result;
++++    }();
++++
++++ada_really_inline constexpr uint8_t path_signature(
++++    std::string_view input) noexcept {
++++  // The path percent-encode set is the query percent-encode set and U+003F (?),
++++  // U+0060 (`), U+007B ({), and U+007D (}). The query percent-encode set is the
++++  // C0 control percent-encode set and U+0020 SPACE, U+0022 ("), U+0023 (#),
++++  // U+003C (<), and U+003E (>). The C0 control percent-encode set are the C0
++++  // controls and all code points greater than U+007E (~).
++++  size_t i = 0;
++++  uint8_t accumulator{};
++++  for (; i + 7 < input.size(); i += 8) {
++++    accumulator |= uint8_t(path_signature_table[uint8_t(input[i])] |
++++                           path_signature_table[uint8_t(input[i + 1])] |
++++                           path_signature_table[uint8_t(input[i + 2])] |
++++                           path_signature_table[uint8_t(input[i + 3])] |
++++                           path_signature_table[uint8_t(input[i + 4])] |
++++                           path_signature_table[uint8_t(input[i + 5])] |
++++                           path_signature_table[uint8_t(input[i + 6])] |
++++                           path_signature_table[uint8_t(input[i + 7])]);
++++  }
++++  for (; i < input.size(); i++) {
++++    accumulator |= uint8_t(path_signature_table[uint8_t(input[i])]);
++++  }
++++  return accumulator;
++++}
++++
++++ada_really_inline constexpr bool verify_dns_length(
++++    std::string_view input) noexcept {
++++  if (input.back() == '.') {
++++    if (input.size() > 254) return false;
++++  } else if (input.size() > 253)
++++    return false;
++++
++++  size_t start = 0;
++++  while (start < input.size()) {
++++    auto dot_location = input.find('.', start);
++++    // If not found, it's likely the end of the domain
++++    if (dot_location == std::string_view::npos) dot_location = input.size();
++++
++++    auto label_size = dot_location - start;
++++    if (label_size > 63 || label_size == 0) return false;
++++
++++    start = dot_location + 1;
++++  }
++++
++++  return true;
++++}
++++}  // namespace ada::checkers
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..d64673d7b745016a6b066b9abc14f194907a542b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,795 @@@@@
++++#include "ada.h"
++++#include "ada/checkers-inl.h"
++++#include "ada/common_defs.h"  // make sure ADA_IS_BIG_ENDIAN gets defined.
++++#include "ada/scheme.h"
++++
++++#include <algorithm>
++++#include <charconv>
++++#include <cstring>
++++#include <sstream>
++++
++++namespace ada::helpers {
++++
++++template <typename out_iter>
++++void encode_json(std::string_view view, out_iter out) {
++++  // trivial implementation. could be faster.
++++  const char* hexvalues =
++++      "000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f";
++++  for (uint8_t c : view) {
++++    if (c == '\\') {
++++      *out++ = '\\';
++++      *out++ = '\\';
++++    } else if (c == '"') {
++++      *out++ = '\\';
++++      *out++ = '"';
++++    } else if (c <= 0x1f) {
++++      *out++ = '\\';
++++      *out++ = 'u';
++++      *out++ = '0';
++++      *out++ = '0';
++++      *out++ = hexvalues[2 * c];
++++      *out++ = hexvalues[2 * c + 1];
++++    } else {
++++      *out++ = c;
++++    }
++++  }
++++}
++++
++++ada_unused std::string get_state(ada::state s) {
++++  switch (s) {
++++    case ada::state::AUTHORITY:
++++      return "Authority";
++++    case ada::state::SCHEME_START:
++++      return "Scheme Start";
++++    case ada::state::SCHEME:
++++      return "Scheme";
++++    case ada::state::HOST:
++++      return "Host";
++++    case ada::state::NO_SCHEME:
++++      return "No Scheme";
++++    case ada::state::FRAGMENT:
++++      return "Fragment";
++++    case ada::state::RELATIVE_SCHEME:
++++      return "Relative Scheme";
++++    case ada::state::RELATIVE_SLASH:
++++      return "Relative Slash";
++++    case ada::state::FILE:
++++      return "File";
++++    case ada::state::FILE_HOST:
++++      return "File Host";
++++    case ada::state::FILE_SLASH:
++++      return "File Slash";
++++    case ada::state::PATH_OR_AUTHORITY:
++++      return "Path or Authority";
++++    case ada::state::SPECIAL_AUTHORITY_IGNORE_SLASHES:
++++      return "Special Authority Ignore Slashes";
++++    case ada::state::SPECIAL_AUTHORITY_SLASHES:
++++      return "Special Authority Slashes";
++++    case ada::state::SPECIAL_RELATIVE_OR_AUTHORITY:
++++      return "Special Relative or Authority";
++++    case ada::state::QUERY:
++++      return "Query";
++++    case ada::state::PATH:
++++      return "Path";
++++    case ada::state::PATH_START:
++++      return "Path Start";
++++    case ada::state::OPAQUE_PATH:
++++      return "Opaque Path";
++++    case ada::state::PORT:
++++      return "Port";
++++    default:
++++      return "unknown state";
++++  }
++++}
++++
++++ada_really_inline std::optional<std::string_view> prune_hash(
++++    std::string_view& input) noexcept {
++++  // compiles down to 20--30 instructions including a class to memchr (C
++++  // function). this function should be quite fast.
++++  size_t location_of_first = input.find('#');
++++  if (location_of_first == std::string_view::npos) {
++++    return std::nullopt;
++++  }
++++  std::string_view hash = input;
++++  hash.remove_prefix(location_of_first + 1);
++++  input.remove_suffix(input.size() - location_of_first);
++++  return hash;
++++}
++++
++++ada_really_inline bool shorten_path(std::string& path,
++++                                    ada::scheme::type type) noexcept {
++++  size_t first_delimiter = path.find_first_of('/', 1);
++++
++++  // Let path be url's path.
++++  // If url's scheme is "file", path's size is 1, and path[0] is a normalized
++++  // Windows drive letter, then return.
++++  if (type == ada::scheme::type::FILE &&
++++      first_delimiter == std::string_view::npos && !path.empty()) {
++++    if (checkers::is_normalized_windows_drive_letter(
++++            helpers::substring(path, 1))) {
++++      return false;
++++    }
++++  }
++++
++++  // Remove path's last item, if any.
++++  size_t last_delimiter = path.rfind('/');
++++  if (last_delimiter != std::string::npos) {
++++    path.erase(last_delimiter);
++++    return true;
++++  }
++++
++++  return false;
++++}
++++
++++ada_really_inline bool shorten_path(std::string_view& path,
++++                                    ada::scheme::type type) noexcept {
++++  size_t first_delimiter = path.find_first_of('/', 1);
++++
++++  // Let path be url's path.
++++  // If url's scheme is "file", path's size is 1, and path[0] is a normalized
++++  // Windows drive letter, then return.
++++  if (type == ada::scheme::type::FILE &&
++++      first_delimiter == std::string_view::npos && !path.empty()) {
++++    if (checkers::is_normalized_windows_drive_letter(
++++            helpers::substring(path, 1))) {
++++      return false;
++++    }
++++  }
++++
++++  // Remove path's last item, if any.
++++  if (!path.empty()) {
++++    size_t slash_loc = path.rfind('/');
++++    if (slash_loc != std::string_view::npos) {
++++      path.remove_suffix(path.size() - slash_loc);
++++      return true;
++++    }
++++  }
++++
++++  return false;
++++}
++++
++++ada_really_inline void remove_ascii_tab_or_newline(
++++    std::string& input) noexcept {
++++  // if this ever becomes a performance issue, we could use an approach similar
++++  // to has_tabs_or_newline
++++  input.erase(std::remove_if(input.begin(), input.end(),
++++                             [](char c) {
++++                               return ada::unicode::is_ascii_tab_or_newline(c);
++++                             }),
++++              input.end());
++++}
++++
++++ada_really_inline std::string_view substring(std::string_view input,
++++                                             size_t pos) noexcept {
++++  ADA_ASSERT_TRUE(pos <= input.size());
++++  // The following is safer but unneeded if we have the above line:
++++  // return pos > input.size() ? std::string_view() : input.substr(pos);
++++  return input.substr(pos);
++++}
++++
++++ada_really_inline void resize(std::string_view& input, size_t pos) noexcept {
++++  ADA_ASSERT_TRUE(pos <= input.size());
++++  input.remove_suffix(input.size() - pos);
++++}
++++
++++// computes the number of trailing zeroes
++++// this is a private inline function only defined in this source file.
++++ada_really_inline int trailing_zeroes(uint32_t input_num) noexcept {
++++#ifdef ADA_REGULAR_VISUAL_STUDIO
++++  unsigned long ret;
++++  // Search the mask data from least significant bit (LSB)
++++  // to the most significant bit (MSB) for a set bit (1).
++++  _BitScanForward(&ret, input_num);
++++  return (int)ret;
++++#else   // ADA_REGULAR_VISUAL_STUDIO
++++  return __builtin_ctzl(input_num);
++++#endif  // ADA_REGULAR_VISUAL_STUDIO
++++}
++++
++++// starting at index location, this finds the next location of a character
++++// :, /, \\, ? or [. If none is found, view.size() is returned.
++++// For use within get_host_delimiter_location.
++++#if ADA_NEON
++++// The ada_make_uint8x16_t macro is necessary because Visual Studio does not
++++// support direct initialization of uint8x16_t. See
++++// https://developercommunity.visualstudio.com/t/error-C2078:-too-many-initializers-whe/402911?q=backend+neon
++++#ifndef ada_make_uint8x16_t
++++#define ada_make_uint8x16_t(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, \
++++                            x13, x14, x15, x16)                                \
++++  ([=]() {                                                                     \
++++    static uint8_t array[16] = {x1, x2,  x3,  x4,  x5,  x6,  x7,  x8,          \
++++                                x9, x10, x11, x12, x13, x14, x15, x16};        \
++++    return vld1q_u8(array);                                                    \
++++  }())
++++#endif
++++
++++ada_really_inline size_t find_next_host_delimiter_special(
++++    std::string_view view, size_t location) noexcept {
++++  // first check for short strings in which case we do it naively.
++++  if (view.size() - location < 16) {  // slow path
++++    for (size_t i = location; i < view.size(); i++) {
++++      if (view[i] == ':' || view[i] == '/' || view[i] == '\\' ||
++++          view[i] == '?' || view[i] == '[') {
++++        return i;
++++      }
++++    }
++++    return size_t(view.size());
++++  }
++++  auto to_bitmask = [](uint8x16_t input) -> uint16_t {
++++    uint8x16_t bit_mask =
++++        ada_make_uint8x16_t(0x01, 0x02, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80, 0x01,
++++                            0x02, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80);
++++    uint8x16_t minput = vandq_u8(input, bit_mask);
++++    uint8x16_t tmp = vpaddq_u8(minput, minput);
++++    tmp = vpaddq_u8(tmp, tmp);
++++    tmp = vpaddq_u8(tmp, tmp);
++++    return vgetq_lane_u16(vreinterpretq_u16_u8(tmp), 0);
++++  };
++++
++++  // fast path for long strings (expected to be common)
++++  size_t i = location;
++++  uint8x16_t low_mask =
++++      ada_make_uint8x16_t(0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
++++                          0x00, 0x01, 0x04, 0x04, 0x00, 0x00, 0x03);
++++  uint8x16_t high_mask =
++++      ada_make_uint8x16_t(0x00, 0x00, 0x02, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
++++                          0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);
++++  uint8x16_t fmask = vmovq_n_u8(0xf);
++++  uint8x16_t zero{0};
++++  for (; i + 15 < view.size(); i += 16) {
++++    uint8x16_t word = vld1q_u8((const uint8_t*)view.data() + i);
++++    uint8x16_t lowpart = vqtbl1q_u8(low_mask, vandq_u8(word, fmask));
++++    uint8x16_t highpart = vqtbl1q_u8(high_mask, vshrq_n_u8(word, 4));
++++    uint8x16_t classify = vandq_u8(lowpart, highpart);
++++    if (vmaxvq_u32(vreinterpretq_u32_u8(classify)) != 0) {
++++      uint8x16_t is_zero = vceqq_u8(classify, zero);
++++      uint16_t is_non_zero = ~to_bitmask(is_zero);
++++      return i + trailing_zeroes(is_non_zero);
++++    }
++++  }
++++
++++  if (i < view.size()) {
++++    uint8x16_t word =
++++        vld1q_u8((const uint8_t*)view.data() + view.length() - 16);
++++    uint8x16_t lowpart = vqtbl1q_u8(low_mask, vandq_u8(word, fmask));
++++    uint8x16_t highpart = vqtbl1q_u8(high_mask, vshrq_n_u8(word, 4));
++++    uint8x16_t classify = vandq_u8(lowpart, highpart);
++++    if (vmaxvq_u32(vreinterpretq_u32_u8(classify)) != 0) {
++++      uint8x16_t is_zero = vceqq_u8(classify, zero);
++++      uint16_t is_non_zero = ~to_bitmask(is_zero);
++++      return view.length() - 16 + trailing_zeroes(is_non_zero);
++++    }
++++  }
++++  return size_t(view.size());
++++}
++++#elif ADA_SSE2
++++ada_really_inline size_t find_next_host_delimiter_special(
++++    std::string_view view, size_t location) noexcept {
++++  // first check for short strings in which case we do it naively.
++++  if (view.size() - location < 16) {  // slow path
++++    for (size_t i = location; i < view.size(); i++) {
++++      if (view[i] == ':' || view[i] == '/' || view[i] == '\\' ||
++++          view[i] == '?' || view[i] == '[') {
++++        return i;
++++      }
++++    }
++++    return size_t(view.size());
++++  }
++++  // fast path for long strings (expected to be common)
++++  size_t i = location;
++++  const __m128i mask1 = _mm_set1_epi8(':');
++++  const __m128i mask2 = _mm_set1_epi8('/');
++++  const __m128i mask3 = _mm_set1_epi8('\\');
++++  const __m128i mask4 = _mm_set1_epi8('?');
++++  const __m128i mask5 = _mm_set1_epi8('[');
++++
++++  for (; i + 15 < view.size(); i += 16) {
++++    __m128i word = _mm_loadu_si128((const __m128i*)(view.data() + i));
++++    __m128i m1 = _mm_cmpeq_epi8(word, mask1);
++++    __m128i m2 = _mm_cmpeq_epi8(word, mask2);
++++    __m128i m3 = _mm_cmpeq_epi8(word, mask3);
++++    __m128i m4 = _mm_cmpeq_epi8(word, mask4);
++++    __m128i m5 = _mm_cmpeq_epi8(word, mask5);
++++    __m128i m = _mm_or_si128(
++++        _mm_or_si128(_mm_or_si128(m1, m2), _mm_or_si128(m3, m4)), m5);
++++    int mask = _mm_movemask_epi8(m);
++++    if (mask != 0) {
++++      return i + trailing_zeroes(mask);
++++    }
++++  }
++++  if (i < view.size()) {
++++    __m128i word =
++++        _mm_loadu_si128((const __m128i*)(view.data() + view.length() - 16));
++++    __m128i m1 = _mm_cmpeq_epi8(word, mask1);
++++    __m128i m2 = _mm_cmpeq_epi8(word, mask2);
++++    __m128i m3 = _mm_cmpeq_epi8(word, mask3);
++++    __m128i m4 = _mm_cmpeq_epi8(word, mask4);
++++    __m128i m5 = _mm_cmpeq_epi8(word, mask5);
++++    __m128i m = _mm_or_si128(
++++        _mm_or_si128(_mm_or_si128(m1, m2), _mm_or_si128(m3, m4)), m5);
++++    int mask = _mm_movemask_epi8(m);
++++    if (mask != 0) {
++++      return view.length() - 16 + trailing_zeroes(mask);
++++    }
++++  }
++++  return size_t(view.length());
++++}
++++#else
++++// : / [ \\ ?
++++static constexpr std::array<uint8_t, 256> special_host_delimiters =
++++    []() constexpr {
++++      std::array<uint8_t, 256> result{};
++++      for (int i : {':', '/', '[', '\\', '?'}) {
++++        result[i] = 1;
++++      }
++++      return result;
++++    }();
++++// credit: @the-moisrex recommended a table-based approach
++++ada_really_inline size_t find_next_host_delimiter_special(
++++    std::string_view view, size_t location) noexcept {
++++  auto const str = view.substr(location);
++++  for (auto pos = str.begin(); pos != str.end(); ++pos) {
++++    if (special_host_delimiters[(uint8_t)*pos]) {
++++      return pos - str.begin() + location;
++++    }
++++  }
++++  return size_t(view.size());
++++}
++++#endif
++++
++++// starting at index location, this finds the next location of a character
++++// :, /, ? or [. If none is found, view.size() is returned.
++++// For use within get_host_delimiter_location.
++++#if ADA_NEON
++++ada_really_inline size_t find_next_host_delimiter(std::string_view view,
++++                                                  size_t location) noexcept {
++++  // first check for short strings in which case we do it naively.
++++  if (view.size() - location < 16) {  // slow path
++++    for (size_t i = location; i < view.size(); i++) {
++++      if (view[i] == ':' || view[i] == '/' || view[i] == '?' ||
++++          view[i] == '[') {
++++        return i;
++++      }
++++    }
++++    return size_t(view.size());
++++  }
++++  auto to_bitmask = [](uint8x16_t input) -> uint16_t {
++++    uint8x16_t bit_mask =
++++        ada_make_uint8x16_t(0x01, 0x02, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80, 0x01,
++++                            0x02, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80);
++++    uint8x16_t minput = vandq_u8(input, bit_mask);
++++    uint8x16_t tmp = vpaddq_u8(minput, minput);
++++    tmp = vpaddq_u8(tmp, tmp);
++++    tmp = vpaddq_u8(tmp, tmp);
++++    return vgetq_lane_u16(vreinterpretq_u16_u8(tmp), 0);
++++  };
++++
++++  // fast path for long strings (expected to be common)
++++  size_t i = location;
++++  uint8x16_t low_mask =
++++      ada_make_uint8x16_t(0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
++++                          0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x03);
++++  uint8x16_t high_mask =
++++      ada_make_uint8x16_t(0x00, 0x00, 0x02, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
++++                          0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);
++++  uint8x16_t fmask = vmovq_n_u8(0xf);
++++  uint8x16_t zero{0};
++++  for (; i + 15 < view.size(); i += 16) {
++++    uint8x16_t word = vld1q_u8((const uint8_t*)view.data() + i);
++++    uint8x16_t lowpart = vqtbl1q_u8(low_mask, vandq_u8(word, fmask));
++++    uint8x16_t highpart = vqtbl1q_u8(high_mask, vshrq_n_u8(word, 4));
++++    uint8x16_t classify = vandq_u8(lowpart, highpart);
++++    if (vmaxvq_u32(vreinterpretq_u32_u8(classify)) != 0) {
++++      uint8x16_t is_zero = vceqq_u8(classify, zero);
++++      uint16_t is_non_zero = ~to_bitmask(is_zero);
++++      return i + trailing_zeroes(is_non_zero);
++++    }
++++  }
++++
++++  if (i < view.size()) {
++++    uint8x16_t word =
++++        vld1q_u8((const uint8_t*)view.data() + view.length() - 16);
++++    uint8x16_t lowpart = vqtbl1q_u8(low_mask, vandq_u8(word, fmask));
++++    uint8x16_t highpart = vqtbl1q_u8(high_mask, vshrq_n_u8(word, 4));
++++    uint8x16_t classify = vandq_u8(lowpart, highpart);
++++    if (vmaxvq_u32(vreinterpretq_u32_u8(classify)) != 0) {
++++      uint8x16_t is_zero = vceqq_u8(classify, zero);
++++      uint16_t is_non_zero = ~to_bitmask(is_zero);
++++      return view.length() - 16 + trailing_zeroes(is_non_zero);
++++    }
++++  }
++++  return size_t(view.size());
++++}
++++#elif ADA_SSE2
++++ada_really_inline size_t find_next_host_delimiter(std::string_view view,
++++                                                  size_t location) noexcept {
++++  // first check for short strings in which case we do it naively.
++++  if (view.size() - location < 16) {  // slow path
++++    for (size_t i = location; i < view.size(); i++) {
++++      if (view[i] == ':' || view[i] == '/' || view[i] == '?' ||
++++          view[i] == '[') {
++++        return i;
++++      }
++++    }
++++    return size_t(view.size());
++++  }
++++  // fast path for long strings (expected to be common)
++++  size_t i = location;
++++  const __m128i mask1 = _mm_set1_epi8(':');
++++  const __m128i mask2 = _mm_set1_epi8('/');
++++  const __m128i mask4 = _mm_set1_epi8('?');
++++  const __m128i mask5 = _mm_set1_epi8('[');
++++
++++  for (; i + 15 < view.size(); i += 16) {
++++    __m128i word = _mm_loadu_si128((const __m128i*)(view.data() + i));
++++    __m128i m1 = _mm_cmpeq_epi8(word, mask1);
++++    __m128i m2 = _mm_cmpeq_epi8(word, mask2);
++++    __m128i m4 = _mm_cmpeq_epi8(word, mask4);
++++    __m128i m5 = _mm_cmpeq_epi8(word, mask5);
++++    __m128i m = _mm_or_si128(_mm_or_si128(m1, m2), _mm_or_si128(m4, m5));
++++    int mask = _mm_movemask_epi8(m);
++++    if (mask != 0) {
++++      return i + trailing_zeroes(mask);
++++    }
++++  }
++++  if (i < view.size()) {
++++    __m128i word =
++++        _mm_loadu_si128((const __m128i*)(view.data() + view.length() - 16));
++++    __m128i m1 = _mm_cmpeq_epi8(word, mask1);
++++    __m128i m2 = _mm_cmpeq_epi8(word, mask2);
++++    __m128i m4 = _mm_cmpeq_epi8(word, mask4);
++++    __m128i m5 = _mm_cmpeq_epi8(word, mask5);
++++    __m128i m = _mm_or_si128(_mm_or_si128(m1, m2), _mm_or_si128(m4, m5));
++++    int mask = _mm_movemask_epi8(m);
++++    if (mask != 0) {
++++      return view.length() - 16 + trailing_zeroes(mask);
++++    }
++++  }
++++  return size_t(view.length());
++++}
++++#else
++++// : / [ ?
++++static constexpr std::array<uint8_t, 256> host_delimiters = []() constexpr {
++++  std::array<uint8_t, 256> result{};
++++  for (int i : {':', '/', '?', '['}) {
++++    result[i] = 1;
++++  }
++++  return result;
++++}();
++++// credit: @the-moisrex recommended a table-based approach
++++ada_really_inline size_t find_next_host_delimiter(std::string_view view,
++++                                                  size_t location) noexcept {
++++  auto const str = view.substr(location);
++++  for (auto pos = str.begin(); pos != str.end(); ++pos) {
++++    if (host_delimiters[(uint8_t)*pos]) {
++++      return pos - str.begin() + location;
++++    }
++++  }
++++  return size_t(view.size());
++++}
++++#endif
++++
++++ada_really_inline std::pair<size_t, bool> get_host_delimiter_location(
++++    const bool is_special, std::string_view& view) noexcept {
++++  /**
++++   * The spec at https://url.spec.whatwg.org/#hostname-state expects us to
++++   * compute a variable called insideBrackets but this variable is only used
++++   * once, to check whether a ':' character was found outside brackets. Exact
++++   * text: "Otherwise, if c is U+003A (:) and insideBrackets is false, then:".
++++   * It is conceptually simpler and arguably more efficient to just return a
++++   * Boolean indicating whether ':' was found outside brackets.
++++   */
++++  const size_t view_size = view.size();
++++  size_t location = 0;
++++  bool found_colon = false;
++++  /**
++++   * Performance analysis:
++++   *
++++   * We are basically seeking the end of the hostname which can be indicated
++++   * by the end of the view, or by one of the characters ':', '/', '?', '\\'
++++   * (where '\\' is only applicable for special URLs). However, these must
++++   * appear outside a bracket range. E.g., if you have [something?]fd: then the
++++   * '?' does not count.
++++   *
++++   * So we can skip ahead to the next delimiter, as long as we include '[' in
++++   * the set of delimiters, and that we handle it first.
++++   *
++++   * So the trick is to have a fast function that locates the next delimiter.
++++   * Unless we find '[', then it only needs to be called once! Ideally, such a
++++   * function would be provided by the C++ standard library, but it seems that
++++   * find_first_of is not very fast, so we are forced to roll our own.
++++   *
++++   * We do not break into two loops for speed, but for clarity.
++++   */
++++  if (is_special) {
++++    // We move to the next delimiter.
++++    location = find_next_host_delimiter_special(view, location);
++++    // Unless we find '[' then we are going only going to have to call
++++    // find_next_host_delimiter_special once.
++++    for (; location < view_size;
++++         location = find_next_host_delimiter_special(view, location)) {
++++      if (view[location] == '[') {
++++        location = view.find(']', location);
++++        if (location == std::string_view::npos) {
++++          // performance: view.find might get translated to a memchr, which
++++          // has no notion of std::string_view::npos, so the code does not
++++          // reflect the assembly.
++++          location = view_size;
++++          break;
++++        }
++++      } else {
++++        found_colon = view[location] == ':';
++++        break;
++++      }
++++    }
++++  } else {
++++    // We move to the next delimiter.
++++    location = find_next_host_delimiter(view, location);
++++    // Unless we find '[' then we are going only going to have to call
++++    // find_next_host_delimiter_special once.
++++    for (; location < view_size;
++++         location = find_next_host_delimiter(view, location)) {
++++      if (view[location] == '[') {
++++        location = view.find(']', location);
++++        if (location == std::string_view::npos) {
++++          // performance: view.find might get translated to a memchr, which
++++          // has no notion of std::string_view::npos, so the code does not
++++          // reflect the assembly.
++++          location = view_size;
++++          break;
++++        }
++++      } else {
++++        found_colon = view[location] == ':';
++++        break;
++++      }
++++    }
++++  }
++++  // performance: remove_suffix may translate into a single instruction.
++++  view.remove_suffix(view_size - location);
++++  return {location, found_colon};
++++}
++++
++++ada_really_inline void trim_c0_whitespace(std::string_view& input) noexcept {
++++  while (!input.empty() &&
++++         ada::unicode::is_c0_control_or_space(input.front())) {
++++    input.remove_prefix(1);
++++  }
++++  while (!input.empty() && ada::unicode::is_c0_control_or_space(input.back())) {
++++    input.remove_suffix(1);
++++  }
++++}
++++
++++ada_really_inline void parse_prepared_path(std::string_view input,
++++                                           ada::scheme::type type,
++++                                           std::string& path) {
++++  ada_log("parse_prepared_path ", input);
++++  uint8_t accumulator = checkers::path_signature(input);
++++  // Let us first detect a trivial case.
++++  // If it is special, we check that we have no dot, no %,  no \ and no
++++  // character needing percent encoding. Otherwise, we check that we have no %,
++++  // no dot, and no character needing percent encoding.
++++  constexpr uint8_t need_encoding = 1;
++++  constexpr uint8_t backslash_char = 2;
++++  constexpr uint8_t dot_char = 4;
++++  constexpr uint8_t percent_char = 8;
++++  bool special = type != ada::scheme::NOT_SPECIAL;
++++  bool may_need_slow_file_handling = (type == ada::scheme::type::FILE &&
++++                                      checkers::is_windows_drive_letter(input));
++++  bool trivial_path =
++++      (special ? (accumulator == 0)
++++               : ((accumulator & (need_encoding | dot_char | percent_char)) ==
++++                  0)) &&
++++      (!may_need_slow_file_handling);
++++  if (accumulator == dot_char && !may_need_slow_file_handling) {
++++    // '4' means that we have at least one dot, but nothing that requires
++++    // percent encoding or decoding. The only part that is not trivial is
++++    // that we may have single dots and double dots path segments.
++++    // If we have such segments, then we either have a path that begins
++++    // with '.' (easy to check), or we have the sequence './'.
++++    // Note: input cannot be empty, it must at least contain one character ('.')
++++    // Note: we know that '\' is not present.
++++    if (input[0] != '.') {
++++      size_t slashdot = input.find("/.");
++++      if (slashdot == std::string_view::npos) {  // common case
++++        trivial_path = true;
++++      } else {  // uncommon
++++        // only three cases matter: /./, /.. or a final /
++++        trivial_path =
++++            !(slashdot + 2 == input.size() || input[slashdot + 2] == '.' ||
++++              input[slashdot + 2] == '/');
++++      }
++++    }
++++  }
++++  if (trivial_path) {
++++    ada_log("parse_path trivial");
++++    path += '/';
++++    path += input;
++++    return;
++++  }
++++  // We are going to need to look a bit at the path, but let us see if we can
++++  // ignore percent encoding *and* backslashes *and* percent characters.
++++  // Except for the trivial case, this is likely to capture 99% of paths out
++++  // there.
++++  bool fast_path =
++++      (special &&
++++       (accumulator & (need_encoding | backslash_char | percent_char)) == 0) &&
++++      (type != ada::scheme::type::FILE);
++++  if (fast_path) {
++++    ada_log("parse_prepared_path fast");
++++    // Here we don't need to worry about \ or percent encoding.
++++    // We also do not have a file protocol. We might have dots, however,
++++    // but dots must as appear as '.', and they cannot be encoded because
++++    // the symbol '%' is not present.
++++    size_t previous_location = 0;  // We start at 0.
++++    do {
++++      size_t new_location = input.find('/', previous_location);
++++      // std::string_view path_view = input;
++++      //  We process the last segment separately:
++++      if (new_location == std::string_view::npos) {
++++        std::string_view path_view = input.substr(previous_location);
++++        if (path_view == "..") {  // The path ends with ..
++++          // e.g., if you receive ".." with an empty path, you go to "/".
++++          if (path.empty()) {
++++            path = '/';
++++            return;
++++          }
++++          // Fast case where we have nothing to do:
++++          if (path.back() == '/') {
++++            return;
++++          }
++++          // If you have the path "/joe/myfriend",
++++          // then you delete 'myfriend'.
++++          path.resize(path.rfind('/') + 1);
++++          return;
++++        }
++++        path += '/';
++++        if (path_view != ".") {
++++          path.append(path_view);
++++        }
++++        return;
++++      } else {
++++        // This is a non-final segment.
++++        std::string_view path_view =
++++            input.substr(previous_location, new_location - previous_location);
++++        previous_location = new_location + 1;
++++        if (path_view == "..") {
++++          size_t last_delimiter = path.rfind('/');
++++          if (last_delimiter != std::string::npos) {
++++            path.erase(last_delimiter);
++++          }
++++        } else if (path_view != ".") {
++++          path += '/';
++++          path.append(path_view);
++++        }
++++      }
++++    } while (true);
++++  } else {
++++    ada_log("parse_path slow");
++++    // we have reached the general case
++++    bool needs_percent_encoding = (accumulator & 1);
++++    std::string path_buffer_tmp;
++++    do {
++++      size_t location = (special && (accumulator & 2))
++++                            ? input.find_first_of("/\\")
++++                            : input.find('/');
++++      std::string_view path_view = input;
++++      if (location != std::string_view::npos) {
++++        path_view.remove_suffix(path_view.size() - location);
++++        input.remove_prefix(location + 1);
++++      }
++++      // path_buffer is either path_view or it might point at a percent encoded
++++      // temporary file.
++++      std::string_view path_buffer =
++++          (needs_percent_encoding &&
++++           ada::unicode::percent_encode<false>(
++++               path_view, character_sets::PATH_PERCENT_ENCODE, path_buffer_tmp))
++++              ? path_buffer_tmp
++++              : path_view;
++++      if (unicode::is_double_dot_path_segment(path_buffer)) {
++++        if ((helpers::shorten_path(path, type) || special) &&
++++            location == std::string_view::npos) {
++++          path += '/';
++++        }
++++      } else if (unicode::is_single_dot_path_segment(path_buffer) &&
++++                 (location == std::string_view::npos)) {
++++        path += '/';
++++      }
++++      // Otherwise, if path_buffer is not a single-dot path segment, then:
++++      else if (!unicode::is_single_dot_path_segment(path_buffer)) {
++++        // If url's scheme is "file", url's path is empty, and path_buffer is a
++++        // Windows drive letter, then replace the second code point in
++++        // path_buffer with U+003A (:).
++++        if (type == ada::scheme::type::FILE && path.empty() &&
++++            checkers::is_windows_drive_letter(path_buffer)) {
++++          path += '/';
++++          path += path_buffer[0];
++++          path += ':';
++++          path_buffer.remove_prefix(2);
++++          path.append(path_buffer);
++++        } else {
++++          // Append path_buffer to url's path.
++++          path += '/';
++++          path.append(path_buffer);
++++        }
++++      }
++++      if (location == std::string_view::npos) {
++++        return;
++++      }
++++    } while (true);
++++  }
++++}
++++
++++bool overlaps(std::string_view input1, const std::string& input2) noexcept {
++++  ada_log("helpers::overlaps check if string_view '", input1, "' [",
++++          input1.size(), " bytes] is part of string '", input2, "' [",
++++          input2.size(), " bytes]");
++++  return !input1.empty() && !input2.empty() && input1.data() >= input2.data() &&
++++         input1.data() < input2.data() + input2.size();
++++}
++++
++++template <class url_type>
++++ada_really_inline void strip_trailing_spaces_from_opaque_path(
++++    url_type& url) noexcept {
++++  ada_log("helpers::strip_trailing_spaces_from_opaque_path");
++++  if (!url.has_opaque_path) return;
++++  if (url.has_hash()) return;
++++  if (url.has_search()) return;
++++
++++  auto path = std::string(url.get_pathname());
++++  while (!path.empty() && path.back() == ' ') {
++++    path.resize(path.size() - 1);
++++  }
++++  url.update_base_pathname(path);
++++}
++++
++++// @ / \\ ?
++++static constexpr std::array<uint8_t, 256> authority_delimiter_special =
++++    []() constexpr {
++++      std::array<uint8_t, 256> result{};
++++      for (uint8_t i : {'@', '/', '\\', '?'}) {
++++        result[i] = 1;
++++      }
++++      return result;
++++    }();
++++// credit: @the-moisrex recommended a table-based approach
++++ada_really_inline size_t
++++find_authority_delimiter_special(std::string_view view) noexcept {
++++  // performance note: we might be able to gain further performance
++++  // with SIMD instrinsics.
++++  for (auto pos = view.begin(); pos != view.end(); ++pos) {
++++    if (authority_delimiter_special[(uint8_t)*pos]) {
++++      return pos - view.begin();
++++    }
++++  }
++++  return size_t(view.size());
++++}
++++
++++// @ / ?
++++static constexpr std::array<uint8_t, 256> authority_delimiter = []() constexpr {
++++  std::array<uint8_t, 256> result{};
++++  for (uint8_t i : {'@', '/', '?'}) {
++++    result[i] = 1;
++++  }
++++  return result;
++++}();
++++// credit: @the-moisrex recommended a table-based approach
++++ada_really_inline size_t
++++find_authority_delimiter(std::string_view view) noexcept {
++++  // performance note: we might be able to gain further performance
++++  // with SIMD instrinsics.
++++  for (auto pos = view.begin(); pos != view.end(); ++pos) {
++++    if (authority_delimiter[(uint8_t)*pos]) {
++++      return pos - view.begin();
++++    }
++++  }
++++  return size_t(view.size());
++++}
++++
++++}  // namespace ada::helpers
++++
++++namespace ada {
++++ada_warn_unused std::string to_string(ada::state state) {
++++  return ada::helpers::get_state(state);
++++}
++++#undef ada_make_uint8x16_t
++++}  // namespace ada
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..fef682e5181fb715561ee25fd2d8c258c1b12b9a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,82 @@@@@
++++#include <string_view>
++++
++++#include "ada.h"
++++#include "ada/common_defs.h"
++++#include "ada/parser.h"
++++#include "ada/url.h"
++++#include "ada/url_aggregator.h"
++++
++++namespace ada {
++++
++++template <class result_type>
++++ada_warn_unused tl::expected<result_type, ada::errors> parse(
++++    std::string_view input, const result_type* base_url) {
++++  result_type u =
++++      ada::parser::parse_url_impl<result_type, true>(input, base_url);
++++  if (!u.is_valid) {
++++    return tl::unexpected(errors::generic_error);
++++  }
++++  return u;
++++}
++++
++++template ada::result<url> parse<url>(std::string_view input,
++++                                     const url* base_url = nullptr);
++++template ada::result<url_aggregator> parse<url_aggregator>(
++++    std::string_view input, const url_aggregator* base_url = nullptr);
++++
++++std::string href_from_file(std::string_view input) {
++++  // This is going to be much faster than constructing a URL.
++++  std::string tmp_buffer;
++++  std::string_view internal_input;
++++  if (unicode::has_tabs_or_newline(input)) {
++++    tmp_buffer = input;
++++    helpers::remove_ascii_tab_or_newline(tmp_buffer);
++++    internal_input = tmp_buffer;
++++  } else {
++++    internal_input = input;
++++  }
++++  std::string path;
++++  if (internal_input.empty()) {
++++    path = "/";
++++  } else if ((internal_input[0] == '/') || (internal_input[0] == '\\')) {
++++    helpers::parse_prepared_path(internal_input.substr(1),
++++                                 ada::scheme::type::FILE, path);
++++  } else {
++++    helpers::parse_prepared_path(internal_input, ada::scheme::type::FILE, path);
++++  }
++++  return "file://" + path;
++++}
++++
++++bool can_parse(std::string_view input, const std::string_view* base_input) {
++++  ada::url_aggregator base_aggregator;
++++  ada::url_aggregator* base_pointer = nullptr;
++++
++++  if (base_input != nullptr) {
++++    base_aggregator = ada::parser::parse_url_impl<ada::url_aggregator, false>(
++++        *base_input, nullptr);
++++    if (!base_aggregator.is_valid) {
++++      return false;
++++    }
++++    base_pointer = &base_aggregator;
++++  }
++++
++++  ada::url_aggregator result =
++++      ada::parser::parse_url_impl<ada::url_aggregator, false>(input,
++++                                                              base_pointer);
++++  return result.is_valid;
++++}
++++
++++ada_warn_unused std::string to_string(ada::encoding_type type) {
++++  switch (type) {
++++    case ada::encoding_type::UTF8:
++++      return "UTF-8";
++++    case ada::encoding_type::UTF_16LE:
++++      return "UTF-16LE";
++++    case ada::encoding_type::UTF_16BE:
++++      return "UTF-16BE";
++++    default:
++++      unreachable();
++++  }
++++}
++++
++++}  // namespace ada
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e17731309edb1937183fa68bc9290d0ebb1e509b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,937 @@@@@
++++#include "ada/parser.h"
++++
++++#include <limits>
++++
++++#include "ada.h"
++++#include "ada/character_sets-inl.h"
++++#include "ada/common_defs.h"
++++#include "ada/log.h"
++++#include "ada/unicode.h"
++++#include "ada/url-inl.h"
++++
++++namespace ada::parser {
++++
++++template <class result_type, bool store_values>
++++result_type parse_url_impl(std::string_view user_input,
++++                           const result_type* base_url) {
++++  // We can specialize the implementation per type.
++++  // Important: result_type_is_ada_url is evaluated at *compile time*. This
++++  // means that doing if constexpr(result_type_is_ada_url) { something } else {
++++  // something else } is free (at runtime). This means that ada::url_aggregator
++++  // and ada::url **do not have to support the exact same API**.
++++  constexpr bool result_type_is_ada_url =
++++      std::is_same<ada::url, result_type>::value;
++++  constexpr bool result_type_is_ada_url_aggregator =
++++      std::is_same<ada::url_aggregator, result_type>::value;
++++  static_assert(result_type_is_ada_url ||
++++                result_type_is_ada_url_aggregator);  // We don't support
++++                                                     // anything else for now.
++++
++++  ada_log("ada::parser::parse_url('", user_input, "' [", user_input.size(),
++++          " bytes],", (base_url != nullptr ? base_url->to_string() : "null"),
++++          ")");
++++
++++  ada::state state = ada::state::SCHEME_START;
++++  result_type url{};
++++
++++  // We refuse to parse URL strings that exceed 4GB. Such strings are almost
++++  // surely the result of a bug or are otherwise a security concern.
++++  if (user_input.size() > std::numeric_limits<uint32_t>::max()) {
++++    url.is_valid = false;
++++  }
++++  // Going forward, user_input.size() is in [0,
++++  // std::numeric_limits<uint32_t>::max). If we are provided with an invalid
++++  // base, or the optional_url was invalid, we must return.
++++  if (base_url != nullptr) {
++++    url.is_valid &= base_url->is_valid;
++++  }
++++  if (!url.is_valid) {
++++    return url;
++++  }
++++  if constexpr (result_type_is_ada_url_aggregator && store_values) {
++++    // Most of the time, we just need user_input.size().
++++    // In some instances, we may need a bit more.
++++    ///////////////////////////
++++    // This is *very* important. This line should *not* be removed
++++    // hastily. There are principled reasons why reserve is important
++++    // for performance. If you have a benchmark with small inputs,
++++    // it may not matter, but in other instances, it could.
++++    ////
++++    // This rounds up to the next power of two.
++++    // We know that user_input.size() is in [0,
++++    // std::numeric_limits<uint32_t>::max).
++++    uint32_t reserve_capacity =
++++        (0xFFFFFFFF >>
++++         helpers::leading_zeroes(uint32_t(1 | user_input.size()))) +
++++        1;
++++    url.reserve(reserve_capacity);
++++  }
++++  std::string tmp_buffer;
++++  std::string_view internal_input;
++++  if (unicode::has_tabs_or_newline(user_input)) {
++++    tmp_buffer = user_input;
++++    // Optimization opportunity: Instead of copying and then pruning, we could
++++    // just directly build the string from user_input.
++++    helpers::remove_ascii_tab_or_newline(tmp_buffer);
++++    internal_input = tmp_buffer;
++++  } else {
++++    internal_input = user_input;
++++  }
++++
++++  // Leading and trailing control characters are uncommon and easy to deal with
++++  // (no performance concern).
++++  std::string_view url_data = internal_input;
++++  helpers::trim_c0_whitespace(url_data);
++++
++++  // Optimization opportunity. Most websites do not have fragment.
++++  std::optional<std::string_view> fragment = helpers::prune_hash(url_data);
++++  // We add it last so that an implementation like ada::url_aggregator
++++  // can append it last to its internal buffer, thus improving performance.
++++
++++  // Here url_data no longer has its fragment.
++++  // We are going to access the data from url_data (it is immutable).
++++  // At any given time, we are pointing at byte 'input_position' in url_data.
++++  // The input_position variable should range from 0 to input_size.
++++  // It is illegal to access url_data at input_size.
++++  size_t input_position = 0;
++++  const size_t input_size = url_data.size();
++++  // Keep running the following state machine by switching on state.
++++  // If after a run pointer points to the EOF code point, go to the next step.
++++  // Otherwise, increase pointer by 1 and continue with the state machine.
++++  // We never decrement input_position.
++++  while (input_position <= input_size) {
++++    ada_log("In parsing at ", input_position, " out of ", input_size,
++++            " in state ", ada::to_string(state));
++++    switch (state) {
++++      case ada::state::SCHEME_START: {
++++        ada_log("SCHEME_START ", helpers::substring(url_data, input_position));
++++        // If c is an ASCII alpha, append c, lowercased, to buffer, and set
++++        // state to scheme state.
++++        if ((input_position != input_size) &&
++++            checkers::is_alpha(url_data[input_position])) {
++++          state = ada::state::SCHEME;
++++          input_position++;
++++        } else {
++++          // Otherwise, if state override is not given, set state to no scheme
++++          // state and decrease pointer by 1.
++++          state = ada::state::NO_SCHEME;
++++        }
++++        break;
++++      }
++++      case ada::state::SCHEME: {
++++        ada_log("SCHEME ", helpers::substring(url_data, input_position));
++++        // If c is an ASCII alphanumeric, U+002B (+), U+002D (-), or U+002E (.),
++++        // append c, lowercased, to buffer.
++++        while ((input_position != input_size) &&
++++               (ada::unicode::is_alnum_plus(url_data[input_position]))) {
++++          input_position++;
++++        }
++++        // Otherwise, if c is U+003A (:), then:
++++        if ((input_position != input_size) &&
++++            (url_data[input_position] == ':')) {
++++          ada_log("SCHEME the scheme should be ",
++++                  url_data.substr(0, input_position));
++++          if constexpr (result_type_is_ada_url) {
++++            if (!url.parse_scheme(url_data.substr(0, input_position))) {
++++              return url;
++++            }
++++          } else {
++++            // we pass the colon along instead of painfully adding it back.
++++            if (!url.parse_scheme_with_colon(
++++                    url_data.substr(0, input_position + 1))) {
++++              return url;
++++            }
++++          }
++++          ada_log("SCHEME the scheme is ", url.get_protocol());
++++
++++          // If url's scheme is "file", then:
++++          if (url.type == ada::scheme::type::FILE) {
++++            // Set state to file state.
++++            state = ada::state::FILE;
++++          }
++++          // Otherwise, if url is special, base is non-null, and base's scheme
++++          // is url's scheme: Note: Doing base_url->scheme is unsafe if base_url
++++          // != nullptr is false.
++++          else if (url.is_special() && base_url != nullptr &&
++++                   base_url->type == url.type) {
++++            // Set state to special relative or authority state.
++++            state = ada::state::SPECIAL_RELATIVE_OR_AUTHORITY;
++++          }
++++          // Otherwise, if url is special, set state to special authority
++++          // slashes state.
++++          else if (url.is_special()) {
++++            state = ada::state::SPECIAL_AUTHORITY_SLASHES;
++++          }
++++          // Otherwise, if remaining starts with an U+002F (/), set state to
++++          // path or authority state and increase pointer by 1.
++++          else if (input_position + 1 < input_size &&
++++                   url_data[input_position + 1] == '/') {
++++            state = ada::state::PATH_OR_AUTHORITY;
++++            input_position++;
++++          }
++++          // Otherwise, set url's path to the empty string and set state to
++++          // opaque path state.
++++          else {
++++            state = ada::state::OPAQUE_PATH;
++++          }
++++        }
++++        // Otherwise, if state override is not given, set buffer to the empty
++++        // string, state to no scheme state, and start over (from the first code
++++        // point in input).
++++        else {
++++          state = ada::state::NO_SCHEME;
++++          input_position = 0;
++++          break;
++++        }
++++        input_position++;
++++        break;
++++      }
++++      case ada::state::NO_SCHEME: {
++++        ada_log("NO_SCHEME ", helpers::substring(url_data, input_position));
++++        // If base is null, or base has an opaque path and c is not U+0023 (#),
++++        // validation error, return failure.
++++        if (base_url == nullptr ||
++++            (base_url->has_opaque_path && !fragment.has_value())) {
++++          ada_log("NO_SCHEME validation error");
++++          url.is_valid = false;
++++          return url;
++++        }
++++        // Otherwise, if base has an opaque path and c is U+0023 (#),
++++        // set url's scheme to base's scheme, url's path to base's path, url's
++++        // query to base's query, and set state to fragment state.
++++        else if (base_url->has_opaque_path && fragment.has_value() &&
++++                 input_position == input_size) {
++++          ada_log("NO_SCHEME opaque base with fragment");
++++          url.copy_scheme(*base_url);
++++          url.has_opaque_path = base_url->has_opaque_path;
++++
++++          if constexpr (result_type_is_ada_url) {
++++            url.path = base_url->path;
++++            url.query = base_url->query;
++++          } else {
++++            url.update_base_pathname(base_url->get_pathname());
++++            url.update_base_search(base_url->get_search());
++++          }
++++          url.update_unencoded_base_hash(*fragment);
++++          return url;
++++        }
++++        // Otherwise, if base's scheme is not "file", set state to relative
++++        // state and decrease pointer by 1.
++++        else if (base_url->type != ada::scheme::type::FILE) {
++++          ada_log("NO_SCHEME non-file relative path");
++++          state = ada::state::RELATIVE_SCHEME;
++++        }
++++        // Otherwise, set state to file state and decrease pointer by 1.
++++        else {
++++          ada_log("NO_SCHEME file base type");
++++          state = ada::state::FILE;
++++        }
++++        break;
++++      }
++++      case ada::state::AUTHORITY: {
++++        ada_log("AUTHORITY ", helpers::substring(url_data, input_position));
++++        // most URLs have no @. Having no @ tells us that we don't have to worry
++++        // about AUTHORITY. Of course, we could have @ and still not have to
++++        // worry about AUTHORITY.
++++        // TODO: Instead of just collecting a bool, collect the location of the
++++        // '@' and do something useful with it.
++++        // TODO: We could do various processing early on, using a single pass
++++        // over the string to collect information about it, e.g., telling us
++++        // whether there is a @ and if so, where (or how many).
++++        const bool contains_ampersand =
++++            (url_data.find('@', input_position) != std::string_view::npos);
++++
++++        if (!contains_ampersand) {
++++          state = ada::state::HOST;
++++          break;
++++        }
++++        bool at_sign_seen{false};
++++        bool password_token_seen{false};
++++        /**
++++         * We expect something of the sort...
++++         * https://user:pass@example.com:1234/foo/bar?baz#quux
++++         * --------^
++++         */
++++        do {
++++          std::string_view view = helpers::substring(url_data, input_position);
++++          // The delimiters are @, /, ? \\.
++++          size_t location =
++++              url.is_special() ? helpers::find_authority_delimiter_special(view)
++++                               : helpers::find_authority_delimiter(view);
++++          std::string_view authority_view(view.data(), location);
++++          size_t end_of_authority = input_position + authority_view.size();
++++          // If c is U+0040 (@), then:
++++          if ((end_of_authority != input_size) &&
++++              (url_data[end_of_authority] == '@')) {
++++            // If atSignSeen is true, then prepend "%40" to buffer.
++++            if (at_sign_seen) {
++++              if (password_token_seen) {
++++                if constexpr (result_type_is_ada_url) {
++++                  url.password += "%40";
++++                } else {
++++                  url.append_base_password("%40");
++++                }
++++              } else {
++++                if constexpr (result_type_is_ada_url) {
++++                  url.username += "%40";
++++                } else {
++++                  url.append_base_username("%40");
++++                }
++++              }
++++            }
++++
++++            at_sign_seen = true;
++++
++++            if (!password_token_seen) {
++++              size_t password_token_location = authority_view.find(':');
++++              password_token_seen =
++++                  password_token_location != std::string_view::npos;
++++
++++              if constexpr (store_values) {
++++                if (!password_token_seen) {
++++                  if constexpr (result_type_is_ada_url) {
++++                    url.username += unicode::percent_encode(
++++                        authority_view,
++++                        character_sets::USERINFO_PERCENT_ENCODE);
++++                  } else {
++++                    url.append_base_username(unicode::percent_encode(
++++                        authority_view,
++++                        character_sets::USERINFO_PERCENT_ENCODE));
++++                  }
++++                } else {
++++                  if constexpr (result_type_is_ada_url) {
++++                    url.username += unicode::percent_encode(
++++                        authority_view.substr(0, password_token_location),
++++                        character_sets::USERINFO_PERCENT_ENCODE);
++++                    url.password += unicode::percent_encode(
++++                        authority_view.substr(password_token_location + 1),
++++                        character_sets::USERINFO_PERCENT_ENCODE);
++++                  } else {
++++                    url.append_base_username(unicode::percent_encode(
++++                        authority_view.substr(0, password_token_location),
++++                        character_sets::USERINFO_PERCENT_ENCODE));
++++                    url.append_base_password(unicode::percent_encode(
++++                        authority_view.substr(password_token_location + 1),
++++                        character_sets::USERINFO_PERCENT_ENCODE));
++++                  }
++++                }
++++              }
++++            } else if constexpr (store_values) {
++++              if constexpr (result_type_is_ada_url) {
++++                url.password += unicode::percent_encode(
++++                    authority_view, character_sets::USERINFO_PERCENT_ENCODE);
++++              } else {
++++                url.append_base_password(unicode::percent_encode(
++++                    authority_view, character_sets::USERINFO_PERCENT_ENCODE));
++++              }
++++            }
++++          }
++++          // Otherwise, if one of the following is true:
++++          // - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
++++          // - url is special and c is U+005C (\)
++++          else if (end_of_authority == input_size ||
++++                   url_data[end_of_authority] == '/' ||
++++                   url_data[end_of_authority] == '?' ||
++++                   (url.is_special() && url_data[end_of_authority] == '\\')) {
++++            // If atSignSeen is true and authority_view is the empty string,
++++            // validation error, return failure.
++++            if (at_sign_seen && authority_view.empty()) {
++++              url.is_valid = false;
++++              return url;
++++            }
++++            state = ada::state::HOST;
++++            break;
++++          }
++++          if (end_of_authority == input_size) {
++++            if constexpr (store_values) {
++++              if (fragment.has_value()) {
++++                url.update_unencoded_base_hash(*fragment);
++++              }
++++            }
++++            return url;
++++          }
++++          input_position = end_of_authority + 1;
++++        } while (true);
++++
++++        break;
++++      }
++++      case ada::state::SPECIAL_RELATIVE_OR_AUTHORITY: {
++++        ada_log("SPECIAL_RELATIVE_OR_AUTHORITY ",
++++                helpers::substring(url_data, input_position));
++++
++++        // If c is U+002F (/) and remaining starts with U+002F (/),
++++        // then set state to special authority ignore slashes state and increase
++++        // pointer by 1.
++++        std::string_view view = helpers::substring(url_data, input_position);
++++        if (ada::checkers::begins_with(view, "//")) {
++++          state = ada::state::SPECIAL_AUTHORITY_IGNORE_SLASHES;
++++          input_position += 2;
++++        } else {
++++          // Otherwise, validation error, set state to relative state and
++++          // decrease pointer by 1.
++++          state = ada::state::RELATIVE_SCHEME;
++++        }
++++
++++        break;
++++      }
++++      case ada::state::PATH_OR_AUTHORITY: {
++++        ada_log("PATH_OR_AUTHORITY ",
++++                helpers::substring(url_data, input_position));
++++
++++        // If c is U+002F (/), then set state to authority state.
++++        if ((input_position != input_size) &&
++++            (url_data[input_position] == '/')) {
++++          state = ada::state::AUTHORITY;
++++          input_position++;
++++        } else {
++++          // Otherwise, set state to path state, and decrease pointer by 1.
++++          state = ada::state::PATH;
++++        }
++++
++++        break;
++++      }
++++      case ada::state::RELATIVE_SCHEME: {
++++        ada_log("RELATIVE_SCHEME ",
++++                helpers::substring(url_data, input_position));
++++
++++        // Set url's scheme to base's scheme.
++++        url.copy_scheme(*base_url);
++++
++++        // If c is U+002F (/), then set state to relative slash state.
++++        if ((input_position != input_size) &&
++++            (url_data[input_position] == '/')) {
++++          ada_log(
++++              "RELATIVE_SCHEME if c is U+002F (/), then set state to relative "
++++              "slash state");
++++          state = ada::state::RELATIVE_SLASH;
++++        } else if (url.is_special() && (input_position != input_size) &&
++++                   (url_data[input_position] == '\\')) {
++++          // Otherwise, if url is special and c is U+005C (\), validation error,
++++          // set state to relative slash state.
++++          ada_log(
++++              "RELATIVE_SCHEME  if url is special and c is U+005C, validation "
++++              "error, set state to relative slash state");
++++          state = ada::state::RELATIVE_SLASH;
++++        } else {
++++          ada_log("RELATIVE_SCHEME otherwise");
++++          // Set url's username to base's username, url's password to base's
++++          // password, url's host to base's host, url's port to base's port,
++++          // url's path to a clone of base's path, and url's query to base's
++++          // query.
++++          if constexpr (result_type_is_ada_url) {
++++            url.username = base_url->username;
++++            url.password = base_url->password;
++++            url.host = base_url->host;
++++            url.port = base_url->port;
++++            // cloning the base path includes cloning the has_opaque_path flag
++++            url.has_opaque_path = base_url->has_opaque_path;
++++            url.path = base_url->path;
++++            url.query = base_url->query;
++++          } else {
++++            url.update_base_authority(base_url->get_href(),
++++                                      base_url->get_components());
++++            // TODO: Get rid of set_hostname and replace it with
++++            // update_base_hostname
++++            url.set_hostname(base_url->get_hostname());
++++            url.update_base_port(base_url->retrieve_base_port());
++++            // cloning the base path includes cloning the has_opaque_path flag
++++            url.has_opaque_path = base_url->has_opaque_path;
++++            url.update_base_pathname(base_url->get_pathname());
++++            url.update_base_search(base_url->get_search());
++++          }
++++
++++          url.has_opaque_path = base_url->has_opaque_path;
++++
++++          // If c is U+003F (?), then set url's query to the empty string, and
++++          // state to query state.
++++          if ((input_position != input_size) &&
++++              (url_data[input_position] == '?')) {
++++            state = ada::state::QUERY;
++++          }
++++          // Otherwise, if c is not the EOF code point:
++++          else if (input_position != input_size) {
++++            // Set url's query to null.
++++            url.clear_search();
++++            if constexpr (result_type_is_ada_url) {
++++              // Shorten url's path.
++++              helpers::shorten_path(url.path, url.type);
++++            } else {
++++              std::string_view path = url.get_pathname();
++++              if (helpers::shorten_path(path, url.type)) {
++++                url.update_base_pathname(std::string(path));
++++              }
++++            }
++++            // Set state to path state and decrease pointer by 1.
++++            state = ada::state::PATH;
++++            break;
++++          }
++++        }
++++        input_position++;
++++        break;
++++      }
++++      case ada::state::RELATIVE_SLASH: {
++++        ada_log("RELATIVE_SLASH ",
++++                helpers::substring(url_data, input_position));
++++
++++        // If url is special and c is U+002F (/) or U+005C (\), then:
++++        if (url.is_special() && (input_position != input_size) &&
++++            (url_data[input_position] == '/' ||
++++             url_data[input_position] == '\\')) {
++++          // Set state to special authority ignore slashes state.
++++          state = ada::state::SPECIAL_AUTHORITY_IGNORE_SLASHES;
++++        }
++++        // Otherwise, if c is U+002F (/), then set state to authority state.
++++        else if ((input_position != input_size) &&
++++                 (url_data[input_position] == '/')) {
++++          state = ada::state::AUTHORITY;
++++        }
++++        // Otherwise, set
++++        // - url's username to base's username,
++++        // - url's password to base's password,
++++        // - url's host to base's host,
++++        // - url's port to base's port,
++++        // - state to path state, and then, decrease pointer by 1.
++++        else {
++++          if constexpr (result_type_is_ada_url) {
++++            url.username = base_url->username;
++++            url.password = base_url->password;
++++            url.host = base_url->host;
++++            url.port = base_url->port;
++++          } else {
++++            url.update_base_authority(base_url->get_href(),
++++                                      base_url->get_components());
++++            // TODO: Get rid of set_hostname and replace it with
++++            // update_base_hostname
++++            url.set_hostname(base_url->get_hostname());
++++            url.update_base_port(base_url->retrieve_base_port());
++++          }
++++          state = ada::state::PATH;
++++          break;
++++        }
++++
++++        input_position++;
++++        break;
++++      }
++++      case ada::state::SPECIAL_AUTHORITY_SLASHES: {
++++        ada_log("SPECIAL_AUTHORITY_SLASHES ",
++++                helpers::substring(url_data, input_position));
++++
++++        // If c is U+002F (/) and remaining starts with U+002F (/),
++++        // then set state to special authority ignore slashes state and increase
++++        // pointer by 1.
++++        std::string_view view = helpers::substring(url_data, input_position);
++++        if (ada::checkers::begins_with(view, "//")) {
++++          input_position += 2;
++++        }
++++
++++        [[fallthrough]];
++++      }
++++      case ada::state::SPECIAL_AUTHORITY_IGNORE_SLASHES: {
++++        ada_log("SPECIAL_AUTHORITY_IGNORE_SLASHES ",
++++                helpers::substring(url_data, input_position));
++++
++++        // If c is neither U+002F (/) nor U+005C (\), then set state to
++++        // authority state and decrease pointer by 1.
++++        while ((input_position != input_size) &&
++++               ((url_data[input_position] == '/') ||
++++                (url_data[input_position] == '\\'))) {
++++          input_position++;
++++        }
++++        state = ada::state::AUTHORITY;
++++
++++        break;
++++      }
++++      case ada::state::QUERY: {
++++        ada_log("QUERY ", helpers::substring(url_data, input_position));
++++        if constexpr (store_values) {
++++          // Let queryPercentEncodeSet be the special-query percent-encode set
++++          // if url is special; otherwise the query percent-encode set.
++++          const uint8_t* query_percent_encode_set =
++++              url.is_special()
++++                  ? ada::character_sets::SPECIAL_QUERY_PERCENT_ENCODE
++++                  : ada::character_sets::QUERY_PERCENT_ENCODE;
++++
++++          // Percent-encode after encoding, with encoding, buffer, and
++++          // queryPercentEncodeSet, and append the result to url's query.
++++          url.update_base_search(helpers::substring(url_data, input_position),
++++                                 query_percent_encode_set);
++++          ada_log("QUERY update_base_search completed ");
++++          if (fragment.has_value()) {
++++            url.update_unencoded_base_hash(*fragment);
++++          }
++++        }
++++        return url;
++++      }
++++      case ada::state::HOST: {
++++        ada_log("HOST ", helpers::substring(url_data, input_position));
++++
++++        std::string_view host_view =
++++            helpers::substring(url_data, input_position);
++++        auto [location, found_colon] =
++++            helpers::get_host_delimiter_location(url.is_special(), host_view);
++++        input_position = (location != std::string_view::npos)
++++                             ? input_position + location
++++                             : input_size;
++++        // Otherwise, if c is U+003A (:) and insideBrackets is false, then:
++++        // Note: the 'found_colon' value is true if and only if a colon was
++++        // encountered while not inside brackets.
++++        if (found_colon) {
++++          // If buffer is the empty string, validation error, return failure.
++++          // Let host be the result of host parsing buffer with url is not
++++          // special.
++++          ada_log("HOST parsing ", host_view);
++++          if (!url.parse_host(host_view)) {
++++            return url;
++++          }
++++          ada_log("HOST parsing results in ", url.get_hostname());
++++          // Set url's host to host, buffer to the empty string, and state to
++++          // port state.
++++          state = ada::state::PORT;
++++          input_position++;
++++        }
++++        // Otherwise, if one of the following is true:
++++        // - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
++++        // - url is special and c is U+005C (\)
++++        // The get_host_delimiter_location function either brings us to
++++        // the colon outside of the bracket, or to one of those characters.
++++        else {
++++          // If url is special and host_view is the empty string, validation
++++          // error, return failure.
++++          if (url.is_special() && host_view.empty()) {
++++            url.is_valid = false;
++++            return url;
++++          }
++++          ada_log("HOST parsing ", host_view, " href=", url.get_href());
++++          // Let host be the result of host parsing host_view with url is not
++++          // special.
++++          if (host_view.empty()) {
++++            url.update_base_hostname("");
++++          } else if (!url.parse_host(host_view)) {
++++            return url;
++++          }
++++          ada_log("HOST parsing results in ", url.get_hostname(),
++++                  " href=", url.get_href());
++++
++++          // Set url's host to host, and state to path start state.
++++          state = ada::state::PATH_START;
++++        }
++++
++++        break;
++++      }
++++      case ada::state::OPAQUE_PATH: {
++++        ada_log("OPAQUE_PATH ", helpers::substring(url_data, input_position));
++++        std::string_view view = helpers::substring(url_data, input_position);
++++        // If c is U+003F (?), then set url's query to the empty string and
++++        // state to query state.
++++        size_t location = view.find('?');
++++        if (location != std::string_view::npos) {
++++          view.remove_suffix(view.size() - location);
++++          state = ada::state::QUERY;
++++          input_position += location + 1;
++++        } else {
++++          input_position = input_size + 1;
++++        }
++++        url.has_opaque_path = true;
++++        // This is a really unlikely scenario in real world. We should not seek
++++        // to optimize it.
++++        url.update_base_pathname(unicode::percent_encode(
++++            view, character_sets::C0_CONTROL_PERCENT_ENCODE));
++++        break;
++++      }
++++      case ada::state::PORT: {
++++        ada_log("PORT ", helpers::substring(url_data, input_position));
++++        std::string_view port_view =
++++            helpers::substring(url_data, input_position);
++++        size_t consumed_bytes = url.parse_port(port_view, true);
++++        input_position += consumed_bytes;
++++        if (!url.is_valid) {
++++          return url;
++++        }
++++        state = state::PATH_START;
++++        [[fallthrough]];
++++      }
++++      case ada::state::PATH_START: {
++++        ada_log("PATH_START ", helpers::substring(url_data, input_position));
++++
++++        // If url is special, then:
++++        if (url.is_special()) {
++++          // Set state to path state.
++++          state = ada::state::PATH;
++++
++++          // Optimization: Avoiding going into PATH state improves the
++++          // performance of urls ending with /.
++++          if (input_position == input_size) {
++++            if constexpr (store_values) {
++++              url.update_base_pathname("/");
++++              if (fragment.has_value()) {
++++                url.update_unencoded_base_hash(*fragment);
++++              }
++++            }
++++            return url;
++++          }
++++          // If c is neither U+002F (/) nor U+005C (\), then decrease pointer
++++          // by 1. We know that (input_position == input_size) is impossible
++++          // here, because of the previous if-check.
++++          if ((url_data[input_position] != '/') &&
++++              (url_data[input_position] != '\\')) {
++++            break;
++++          }
++++        }
++++        // Otherwise, if state override is not given and c is U+003F (?),
++++        // set url's query to the empty string and state to query state.
++++        else if ((input_position != input_size) &&
++++                 (url_data[input_position] == '?')) {
++++          state = ada::state::QUERY;
++++        }
++++        // Otherwise, if c is not the EOF code point:
++++        else if (input_position != input_size) {
++++          // Set state to path state.
++++          state = ada::state::PATH;
++++
++++          // If c is not U+002F (/), then decrease pointer by 1.
++++          if (url_data[input_position] != '/') {
++++            break;
++++          }
++++        }
++++
++++        input_position++;
++++        break;
++++      }
++++      case ada::state::PATH: {
++++        std::string_view view = helpers::substring(url_data, input_position);
++++        ada_log("PATH ", helpers::substring(url_data, input_position));
++++
++++        // Most time, we do not need percent encoding.
++++        // Furthermore, we can immediately locate the '?'.
++++        size_t locofquestionmark = view.find('?');
++++        if (locofquestionmark != std::string_view::npos) {
++++          state = ada::state::QUERY;
++++          view.remove_suffix(view.size() - locofquestionmark);
++++          input_position += locofquestionmark + 1;
++++        } else {
++++          input_position = input_size + 1;
++++        }
++++        if constexpr (store_values) {
++++          if constexpr (result_type_is_ada_url) {
++++            helpers::parse_prepared_path(view, url.type, url.path);
++++          } else {
++++            url.consume_prepared_path(view);
++++            ADA_ASSERT_TRUE(url.validate());
++++          }
++++        }
++++        break;
++++      }
++++      case ada::state::FILE_SLASH: {
++++        ada_log("FILE_SLASH ", helpers::substring(url_data, input_position));
++++
++++        // If c is U+002F (/) or U+005C (\), then:
++++        if ((input_position != input_size) &&
++++            (url_data[input_position] == '/' ||
++++             url_data[input_position] == '\\')) {
++++          ada_log("FILE_SLASH c is U+002F or U+005C");
++++          // Set state to file host state.
++++          state = ada::state::FILE_HOST;
++++          input_position++;
++++        } else {
++++          ada_log("FILE_SLASH otherwise");
++++          // If base is non-null and base's scheme is "file", then:
++++          // Note: it is unsafe to do base_url->scheme unless you know that
++++          // base_url_has_value() is true.
++++          if (base_url != nullptr &&
++++              base_url->type == ada::scheme::type::FILE) {
++++            // Set url's host to base's host.
++++            if constexpr (result_type_is_ada_url) {
++++              url.host = base_url->host;
++++            } else {
++++              // TODO: Optimization opportunity.
++++              url.set_host(base_url->get_host());
++++            }
++++            // If the code point substring from pointer to the end of input does
++++            // not start with a Windows drive letter and base's path[0] is a
++++            // normalized Windows drive letter, then append base's path[0] to
++++            // url's path.
++++            if (!base_url->get_pathname().empty()) {
++++              if (!checkers::is_windows_drive_letter(
++++                      helpers::substring(url_data, input_position))) {
++++                std::string_view first_base_url_path =
++++                    base_url->get_pathname().substr(1);
++++                size_t loc = first_base_url_path.find('/');
++++                if (loc != std::string_view::npos) {
++++                  helpers::resize(first_base_url_path, loc);
++++                }
++++                if (checkers::is_normalized_windows_drive_letter(
++++                        first_base_url_path)) {
++++                  if constexpr (result_type_is_ada_url) {
++++                    url.path += '/';
++++                    url.path += first_base_url_path;
++++                  } else {
++++                    url.append_base_pathname(
++++                        helpers::concat("/", first_base_url_path));
++++                  }
++++                }
++++              }
++++            }
++++          }
++++
++++          // Set state to path state, and decrease pointer by 1.
++++          state = ada::state::PATH;
++++        }
++++
++++        break;
++++      }
++++      case ada::state::FILE_HOST: {
++++        std::string_view view = helpers::substring(url_data, input_position);
++++        ada_log("FILE_HOST ", helpers::substring(url_data, input_position));
++++
++++        size_t location = view.find_first_of("/\\?");
++++        std::string_view file_host_buffer(
++++            view.data(),
++++            (location != std::string_view::npos) ? location : view.size());
++++
++++        if (checkers::is_windows_drive_letter(file_host_buffer)) {
++++          state = ada::state::PATH;
++++        } else if (file_host_buffer.empty()) {
++++          // Set url's host to the empty string.
++++          if constexpr (result_type_is_ada_url) {
++++            url.host = "";
++++          } else {
++++            url.update_base_hostname("");
++++          }
++++          // Set state to path start state.
++++          state = ada::state::PATH_START;
++++        } else {
++++          size_t consumed_bytes = file_host_buffer.size();
++++          input_position += consumed_bytes;
++++          // Let host be the result of host parsing buffer with url is not
++++          // special.
++++          if (!url.parse_host(file_host_buffer)) {
++++            return url;
++++          }
++++
++++          if constexpr (result_type_is_ada_url) {
++++            // If host is "localhost", then set host to the empty string.
++++            if (url.host.has_value() && url.host.value() == "localhost") {
++++              url.host = "";
++++            }
++++          } else {
++++            if (url.get_hostname() == "localhost") {
++++              url.update_base_hostname("");
++++            }
++++          }
++++
++++          // Set buffer to the empty string and state to path start state.
++++          state = ada::state::PATH_START;
++++        }
++++
++++        break;
++++      }
++++      case ada::state::FILE: {
++++        ada_log("FILE ", helpers::substring(url_data, input_position));
++++        std::string_view file_view =
++++            helpers::substring(url_data, input_position);
++++
++++        url.set_protocol_as_file();
++++        if constexpr (result_type_is_ada_url) {
++++          // Set url's host to the empty string.
++++          url.host = "";
++++        } else {
++++          url.update_base_hostname("");
++++        }
++++        // If c is U+002F (/) or U+005C (\), then:
++++        if (input_position != input_size &&
++++            (url_data[input_position] == '/' ||
++++             url_data[input_position] == '\\')) {
++++          ada_log("FILE c is U+002F or U+005C");
++++          // Set state to file slash state.
++++          state = ada::state::FILE_SLASH;
++++        }
++++        // Otherwise, if base is non-null and base's scheme is "file":
++++        else if (base_url != nullptr &&
++++                 base_url->type == ada::scheme::type::FILE) {
++++          // Set url's host to base's host, url's path to a clone of base's
++++          // path, and url's query to base's query.
++++          ada_log("FILE base non-null");
++++          if constexpr (result_type_is_ada_url) {
++++            url.host = base_url->host;
++++            url.path = base_url->path;
++++            url.query = base_url->query;
++++          } else {
++++            // TODO: Get rid of set_hostname and replace it with
++++            // update_base_hostname
++++            url.set_hostname(base_url->get_hostname());
++++            url.update_base_pathname(base_url->get_pathname());
++++            url.update_base_search(base_url->get_search());
++++          }
++++          url.has_opaque_path = base_url->has_opaque_path;
++++
++++          // If c is U+003F (?), then set url's query to the empty string and
++++          // state to query state.
++++          if (input_position != input_size && url_data[input_position] == '?') {
++++            state = ada::state::QUERY;
++++          }
++++          // Otherwise, if c is not the EOF code point:
++++          else if (input_position != input_size) {
++++            // Set url's query to null.
++++            url.clear_search();
++++            // If the code point substring from pointer to the end of input does
++++            // not start with a Windows drive letter, then shorten url's path.
++++            if (!checkers::is_windows_drive_letter(file_view)) {
++++              if constexpr (result_type_is_ada_url) {
++++                helpers::shorten_path(url.path, url.type);
++++              } else {
++++                std::string_view path = url.get_pathname();
++++                if (helpers::shorten_path(path, url.type)) {
++++                  url.update_base_pathname(std::string(path));
++++                }
++++              }
++++            }
++++            // Otherwise:
++++            else {
++++              // Set url's path to an empty list.
++++              url.clear_pathname();
++++              url.has_opaque_path = true;
++++            }
++++
++++            // Set state to path state and decrease pointer by 1.
++++            state = ada::state::PATH;
++++            break;
++++          }
++++        }
++++        // Otherwise, set state to path state, and decrease pointer by 1.
++++        else {
++++          ada_log("FILE go to path");
++++          state = ada::state::PATH;
++++          break;
++++        }
++++
++++        input_position++;
++++        break;
++++      }
++++      default:
++++        ada::unreachable();
++++    }
++++  }
++++  if constexpr (store_values) {
++++    if (fragment.has_value()) {
++++      url.update_unencoded_base_hash(*fragment);
++++    }
++++  }
++++  return url;
++++}
++++
++++template url parse_url_impl(std::string_view user_input,
++++                            const url* base_url = nullptr);
++++template url_aggregator parse_url_impl(
++++    std::string_view user_input, const url_aggregator* base_url = nullptr);
++++
++++template <class result_type>
++++result_type parse_url(std::string_view user_input,
++++                      const result_type* base_url) {
++++  return parse_url_impl<result_type, true>(user_input, base_url);
++++}
++++
++++template url parse_url<url>(std::string_view user_input,
++++                            const url* base_url = nullptr);
++++template url_aggregator parse_url<url_aggregator>(
++++    std::string_view user_input, const url_aggregator* base_url = nullptr);
++++}  // namespace ada::parser
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..91be39ce18b2f966ddf40f626ad78e06352ad15d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,80 @@@@@
++++#include "ada.h"
++++
++++#include <array>
++++#include <string>
++++
++++namespace ada::serializers {
++++
++++void find_longest_sequence_of_ipv6_pieces(
++++    const std::array<uint16_t, 8>& address, size_t& compress,
++++    size_t& compress_length) noexcept {
++++  for (size_t i = 0; i < 8; i++) {
++++    if (address[i] == 0) {
++++      size_t next = i + 1;
++++      while (next != 8 && address[next] == 0) ++next;
++++      const size_t count = next - i;
++++      if (compress_length < count) {
++++        compress_length = count;
++++        compress = i;
++++        if (next == 8) break;
++++        i = next;
++++      }
++++    }
++++  }
++++}
++++
++++std::string ipv6(const std::array<uint16_t, 8>& address) noexcept {
++++  size_t compress_length = 0;  // The length of a long sequence of zeros.
++++  size_t compress = 0;         // The start of a long sequence of zeros.
++++  find_longest_sequence_of_ipv6_pieces(address, compress, compress_length);
++++
++++  if (compress_length <= 1) {
++++    // Optimization opportunity: Find a faster way then snprintf for imploding
++++    // and return here.
++++    compress = compress_length = 8;
++++  }
++++
++++  std::string output(4 * 8 + 7 + 2, '\0');
++++  size_t piece_index = 0;
++++  char* point = output.data();
++++  char* point_end = output.data() + output.size();
++++  *point++ = '[';
++++  while (true) {
++++    if (piece_index == compress) {
++++      *point++ = ':';
++++      // If we skip a value initially, we need to write '::', otherwise
++++      // a single ':' will do since it follows a previous ':'.
++++      if (piece_index == 0) {
++++        *point++ = ':';
++++      }
++++      piece_index += compress_length;
++++      if (piece_index == 8) {
++++        break;
++++      }
++++    }
++++    point = std::to_chars(point, point_end, address[piece_index], 16).ptr;
++++    piece_index++;
++++    if (piece_index == 8) {
++++      break;
++++    }
++++    *point++ = ':';
++++  }
++++  *point++ = ']';
++++  output.resize(point - output.data());
++++  return output;
++++}
++++
++++std::string ipv4(const uint64_t address) noexcept {
++++  std::string output(15, '\0');
++++  char* point = output.data();
++++  char* point_end = output.data() + output.size();
++++  point = std::to_chars(point, point_end, uint8_t(address >> 24)).ptr;
++++  for (int i = 2; i >= 0; i--) {
++++    *point++ = '.';
++++    point = std::to_chars(point, point_end, uint8_t(address >> (i * 8))).ptr;
++++  }
++++  output.resize(point - output.data());
++++  return output;
++++}
++++
++++}  // namespace ada::serializers
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4df074f19d384367629eae5e5cdf58ddd75b044f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,482 @@@@@
++++#include "ada.h"
++++#include "ada/character_sets-inl.h"
++++#include "ada/common_defs.h"
++++#include "ada/unicode.h"
++++
++++ADA_PUSH_DISABLE_ALL_WARNINGS
++++#include "ada_idna.cpp"
++++ADA_POP_DISABLE_WARNINGS
++++
++++#include <algorithm>
++++#if ADA_NEON
++++#include <arm_neon.h>
++++#elif ADA_SSE2
++++#include <emmintrin.h>
++++#endif
++++
++++namespace ada::unicode {
++++
++++constexpr bool is_tabs_or_newline(char c) noexcept {
++++  return c == '\r' || c == '\n' || c == '\t';
++++}
++++
++++constexpr uint64_t broadcast(uint8_t v) noexcept {
++++  return 0x101010101010101ull * v;
++++}
++++
++++constexpr bool to_lower_ascii(char* input, size_t length) noexcept {
++++  uint64_t broadcast_80 = broadcast(0x80);
++++  uint64_t broadcast_Ap = broadcast(128 - 'A');
++++  uint64_t broadcast_Zp = broadcast(128 - 'Z' - 1);
++++  uint64_t non_ascii = 0;
++++  size_t i = 0;
++++
++++  for (; i + 7 < length; i += 8) {
++++    uint64_t word{};
++++    memcpy(&word, input + i, sizeof(word));
++++    non_ascii |= (word & broadcast_80);
++++    word ^=
++++        (((word + broadcast_Ap) ^ (word + broadcast_Zp)) & broadcast_80) >> 2;
++++    memcpy(input + i, &word, sizeof(word));
++++  }
++++  if (i < length) {
++++    uint64_t word{};
++++    memcpy(&word, input + i, length - i);
++++    non_ascii |= (word & broadcast_80);
++++    word ^=
++++        (((word + broadcast_Ap) ^ (word + broadcast_Zp)) & broadcast_80) >> 2;
++++    memcpy(input + i, &word, length - i);
++++  }
++++  return non_ascii == 0;
++++}
++++#if ADA_NEON
++++ada_really_inline bool has_tabs_or_newline(
++++    std::string_view user_input) noexcept {
++++  // first check for short strings in which case we do it naively.
++++  if (user_input.size() < 16) {  // slow path
++++    return std::any_of(user_input.begin(), user_input.end(),
++++                       is_tabs_or_newline);
++++  }
++++  // fast path for long strings (expected to be common)
++++  size_t i = 0;
++++  /**
++++   * The fastest way to check for `\t` (==9), '\n'(== 10) and `\r` (==13) relies
++++   * on table lookup instruction. We notice that these are all unique numbers
++++   * between 0..15. Let's prepare a special register, where we put '\t' in the
++++   * 9th position, '\n' - 10th and '\r' - 13th. Then we shuffle this register by
++++   * input register. If the input had `\t` in position X then this shuffled
++++   * register will also have '\t' in that position. Comparing input with this
++++   * shuffled register will mark us all interesting characters in the input.
++++   *
++++   * credit for algorithmic idea: @aqrit, credit for description:
++++   * @DenisYaroshevskiy
++++   */
++++  static uint8_t rnt_array[16] = {1, 0, 0,  0, 0, 0,  0, 0,
++++                                  0, 9, 10, 0, 0, 13, 0, 0};
++++  const uint8x16_t rnt = vld1q_u8(rnt_array);
++++  // m['0xd', '0xa', '0x9']
++++  uint8x16_t running{0};
++++  for (; i + 15 < user_input.size(); i += 16) {
++++    uint8x16_t word = vld1q_u8((const uint8_t*)user_input.data() + i);
++++
++++    running = vorrq_u8(running, vceqq_u8(vqtbl1q_u8(rnt, word), word));
++++  }
++++  if (i < user_input.size()) {
++++    uint8x16_t word =
++++        vld1q_u8((const uint8_t*)user_input.data() + user_input.length() - 16);
++++    running = vorrq_u8(running, vceqq_u8(vqtbl1q_u8(rnt, word), word));
++++  }
++++  return vmaxvq_u32(vreinterpretq_u32_u8(running)) != 0;
++++}
++++#elif ADA_SSE2
++++ada_really_inline bool has_tabs_or_newline(
++++    std::string_view user_input) noexcept {
++++  // first check for short strings in which case we do it naively.
++++  if (user_input.size() < 16) {  // slow path
++++    return std::any_of(user_input.begin(), user_input.end(),
++++                       is_tabs_or_newline);
++++  }
++++  // fast path for long strings (expected to be common)
++++  size_t i = 0;
++++  const __m128i mask1 = _mm_set1_epi8('\r');
++++  const __m128i mask2 = _mm_set1_epi8('\n');
++++  const __m128i mask3 = _mm_set1_epi8('\t');
++++  // If we supported SSSE3, we could use the algorithm that we use for NEON.
++++  __m128i running{0};
++++  for (; i + 15 < user_input.size(); i += 16) {
++++    __m128i word = _mm_loadu_si128((const __m128i*)(user_input.data() + i));
++++    running = _mm_or_si128(
++++        _mm_or_si128(running, _mm_or_si128(_mm_cmpeq_epi8(word, mask1),
++++                                           _mm_cmpeq_epi8(word, mask2))),
++++        _mm_cmpeq_epi8(word, mask3));
++++  }
++++  if (i < user_input.size()) {
++++    __m128i word = _mm_loadu_si128(
++++        (const __m128i*)(user_input.data() + user_input.length() - 16));
++++    running = _mm_or_si128(
++++        _mm_or_si128(running, _mm_or_si128(_mm_cmpeq_epi8(word, mask1),
++++                                           _mm_cmpeq_epi8(word, mask2))),
++++        _mm_cmpeq_epi8(word, mask3));
++++  }
++++  return _mm_movemask_epi8(running) != 0;
++++}
++++#else
++++ada_really_inline bool has_tabs_or_newline(
++++    std::string_view user_input) noexcept {
++++  auto has_zero_byte = [](uint64_t v) {
++++    return ((v - 0x0101010101010101) & ~(v) & 0x8080808080808080);
++++  };
++++  size_t i = 0;
++++  uint64_t mask1 = broadcast('\r');
++++  uint64_t mask2 = broadcast('\n');
++++  uint64_t mask3 = broadcast('\t');
++++  uint64_t running{0};
++++  for (; i + 7 < user_input.size(); i += 8) {
++++    uint64_t word{};
++++    memcpy(&word, user_input.data() + i, sizeof(word));
++++    uint64_t xor1 = word ^ mask1;
++++    uint64_t xor2 = word ^ mask2;
++++    uint64_t xor3 = word ^ mask3;
++++    running |= has_zero_byte(xor1) | has_zero_byte(xor2) | has_zero_byte(xor3);
++++  }
++++  if (i < user_input.size()) {
++++    uint64_t word{};
++++    memcpy(&word, user_input.data() + i, user_input.size() - i);
++++    uint64_t xor1 = word ^ mask1;
++++    uint64_t xor2 = word ^ mask2;
++++    uint64_t xor3 = word ^ mask3;
++++    running |= has_zero_byte(xor1) | has_zero_byte(xor2) | has_zero_byte(xor3);
++++  }
++++  return running;
++++}
++++#endif
++++
++++// A forbidden host code point is U+0000 NULL, U+0009 TAB, U+000A LF, U+000D CR,
++++// U+0020 SPACE, U+0023 (#), U+002F (/), U+003A (:), U+003C (<), U+003E (>),
++++// U+003F (?), U+0040 (@), U+005B ([), U+005C (\), U+005D (]), U+005E (^), or
++++// U+007C (|).
++++constexpr static std::array<uint8_t, 256> is_forbidden_host_code_point_table =
++++    []() constexpr {
++++      std::array<uint8_t, 256> result{};
++++      for (uint8_t c : {'\0', '\x09', '\x0a', '\x0d', ' ', '#', '/', ':', '<',
++++                        '>', '?', '@', '[', '\\', ']', '^', '|'}) {
++++        result[c] = true;
++++      }
++++      return result;
++++    }();
++++
++++ada_really_inline constexpr bool is_forbidden_host_code_point(
++++    const char c) noexcept {
++++  return is_forbidden_host_code_point_table[uint8_t(c)];
++++}
++++
++++constexpr static std::array<uint8_t, 256> is_forbidden_domain_code_point_table =
++++    []() constexpr {
++++      std::array<uint8_t, 256> result{};
++++      for (uint8_t c : {'\0', '\x09', '\x0a', '\x0d', ' ', '#', '/', ':', '<',
++++                        '>', '?', '@', '[', '\\', ']', '^', '|', '%'}) {
++++        result[c] = true;
++++      }
++++      for (uint8_t c = 0; c <= 32; c++) {
++++        result[c] = true;
++++      }
++++      for (size_t c = 127; c < 255; c++) {
++++        result[c] = true;
++++      }
++++      return result;
++++    }();
++++
++++static_assert(sizeof(is_forbidden_domain_code_point_table) == 256);
++++
++++ada_really_inline constexpr bool is_forbidden_domain_code_point(
++++    const char c) noexcept {
++++  return is_forbidden_domain_code_point_table[uint8_t(c)];
++++}
++++
++++ada_really_inline constexpr bool contains_forbidden_domain_code_point(
++++    const char* input, size_t length) noexcept {
++++  size_t i = 0;
++++  uint8_t accumulator{};
++++  for (; i + 4 <= length; i += 4) {
++++    accumulator |= is_forbidden_domain_code_point_table[uint8_t(input[i])];
++++    accumulator |= is_forbidden_domain_code_point_table[uint8_t(input[i + 1])];
++++    accumulator |= is_forbidden_domain_code_point_table[uint8_t(input[i + 2])];
++++    accumulator |= is_forbidden_domain_code_point_table[uint8_t(input[i + 3])];
++++  }
++++  for (; i < length; i++) {
++++    accumulator |= is_forbidden_domain_code_point_table[uint8_t(input[i])];
++++  }
++++  return accumulator;
++++}
++++
++++constexpr static std::array<uint8_t, 256>
++++    is_forbidden_domain_code_point_table_or_upper = []() constexpr {
++++      std::array<uint8_t, 256> result{};
++++      for (uint8_t c : {'\0', '\x09', '\x0a', '\x0d', ' ', '#', '/', ':', '<',
++++                        '>', '?', '@', '[', '\\', ']', '^', '|', '%'}) {
++++        result[c] = 1;
++++      }
++++      for (uint8_t c = 'A'; c <= 'Z'; c++) {
++++        result[c] = 2;
++++      }
++++      for (uint8_t c = 0; c <= 32; c++) {
++++        result[c] = 1;
++++      }
++++      for (size_t c = 127; c < 255; c++) {
++++        result[c] = 1;
++++      }
++++      return result;
++++    }();
++++
++++ada_really_inline constexpr uint8_t
++++contains_forbidden_domain_code_point_or_upper(const char* input,
++++                                              size_t length) noexcept {
++++  size_t i = 0;
++++  uint8_t accumulator{};
++++  for (; i + 4 <= length; i += 4) {
++++    accumulator |=
++++        is_forbidden_domain_code_point_table_or_upper[uint8_t(input[i])];
++++    accumulator |=
++++        is_forbidden_domain_code_point_table_or_upper[uint8_t(input[i + 1])];
++++    accumulator |=
++++        is_forbidden_domain_code_point_table_or_upper[uint8_t(input[i + 2])];
++++    accumulator |=
++++        is_forbidden_domain_code_point_table_or_upper[uint8_t(input[i + 3])];
++++  }
++++  for (; i < length; i++) {
++++    accumulator |=
++++        is_forbidden_domain_code_point_table_or_upper[uint8_t(input[i])];
++++  }
++++  return accumulator;
++++}
++++
++++// std::isalnum(c) || c == '+' || c == '-' || c == '.') is true for
++++constexpr static std::array<bool, 256> is_alnum_plus_table = []() constexpr {
++++  std::array<bool, 256> result{};
++++  for (size_t c = 0; c < 256; c++) {
++++    result[c] = (c >= '0' && c <= '9') || (c >= 'a' && c <= 'z') ||
++++                (c >= 'A' && c <= 'Z') || c == '+' || c == '-' || c == '.';
++++  }
++++  return result;
++++}();
++++
++++ada_really_inline constexpr bool is_alnum_plus(const char c) noexcept {
++++  return is_alnum_plus_table[uint8_t(c)];
++++  // A table is almost surely much faster than the
++++  // following under most compilers: return
++++  // return (std::isalnum(c) || c == '+' || c == '-' || c == '.');
++++}
++++
++++ada_really_inline constexpr bool is_ascii_hex_digit(const char c) noexcept {
++++  return (c >= '0' && c <= '9') || (c >= 'A' && c <= 'F') ||
++++         (c >= 'a' && c <= 'f');
++++}
++++
++++ada_really_inline constexpr bool is_c0_control_or_space(const char c) noexcept {
++++  return (unsigned char)c <= ' ';
++++}
++++
++++ada_really_inline constexpr bool is_ascii_tab_or_newline(
++++    const char c) noexcept {
++++  return c == '\t' || c == '\n' || c == '\r';
++++}
++++
++++constexpr std::string_view table_is_double_dot_path_segment[] = {
++++    "..", "%2e.", ".%2e", "%2e%2e"};
++++
++++ada_really_inline ada_constexpr bool is_double_dot_path_segment(
++++    std::string_view input) noexcept {
++++  // This will catch most cases:
++++  // The length must be 2,4 or 6.
++++  // We divide by two and require
++++  // that the result be between 1 and 3 inclusively.
++++  uint64_t half_length = uint64_t(input.size()) / 2;
++++  if (half_length - 1 > 2) {
++++    return false;
++++  }
++++  // We have a string of length 2, 4 or 6.
++++  // We now check the first character:
++++  if ((input[0] != '.') && (input[0] != '%')) {
++++    return false;
++++  }
++++  // We are unlikely the get beyond this point.
++++  int hash_value = (input.size() + (unsigned)(input[0])) & 3;
++++  const std::string_view target = table_is_double_dot_path_segment[hash_value];
++++  if (target.size() != input.size()) {
++++    return false;
++++  }
++++  // We almost never get here.
++++  // Optimizing the rest is relatively unimportant.
++++  auto prefix_equal_unsafe = [](std::string_view a, std::string_view b) {
++++    uint16_t A, B;
++++    memcpy(&A, a.data(), sizeof(A));
++++    memcpy(&B, b.data(), sizeof(B));
++++    return A == B;
++++  };
++++  if (!prefix_equal_unsafe(input, target)) {
++++    return false;
++++  }
++++  for (size_t i = 2; i < input.size(); i++) {
++++    char c = input[i];
++++    if ((uint8_t((c | 0x20) - 0x61) <= 25 ? (c | 0x20) : c) != target[i]) {
++++      return false;
++++    }
++++  }
++++  return true;
++++  // The above code might be a bit better than the code below. Compilers
++++  // are not stupid and may use the fact that these strings have length 2,4 and
++++  // 6 and other tricks.
++++  // return input == ".." ||
++++  //  input == ".%2e" || input == ".%2E" ||
++++  //  input == "%2e." || input == "%2E." ||
++++  //  input == "%2e%2e" || input == "%2E%2E" || input == "%2E%2e" || input ==
++++  //  "%2e%2E";
++++}
++++
++++ada_really_inline constexpr bool is_single_dot_path_segment(
++++    std::string_view input) noexcept {
++++  return input == "." || input == "%2e" || input == "%2E";
++++}
++++
++++ada_really_inline constexpr bool is_lowercase_hex(const char c) noexcept {
++++  return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f');
++++}
++++
++++constexpr static char hex_to_binary_table[] = {
++++    0,  1,  2,  3,  4, 5, 6, 7, 8, 9, 0, 0,  0,  0,  0,  0,  0, 10, 11,
++++    12, 13, 14, 15, 0, 0, 0, 0, 0, 0, 0, 0,  0,  0,  0,  0,  0, 0,  0,
++++    0,  0,  0,  0,  0, 0, 0, 0, 0, 0, 0, 10, 11, 12, 13, 14, 15};
++++unsigned constexpr convert_hex_to_binary(const char c) noexcept {
++++  return hex_to_binary_table[c - '0'];
++++}
++++
++++std::string percent_decode(const std::string_view input, size_t first_percent) {
++++  // next line is for safety only, we expect users to avoid calling
++++  // percent_decode when first_percent is outside the range.
++++  if (first_percent == std::string_view::npos) {
++++    return std::string(input);
++++  }
++++  std::string dest;
++++  dest.reserve(input.length());
++++  dest.append(input.substr(0, first_percent));
++++  const char* pointer = input.data() + first_percent;
++++  const char* end = input.data() + input.size();
++++  // Optimization opportunity: if the following code gets
++++  // called often, it can be optimized quite a bit.
++++  while (pointer < end) {
++++    const char ch = pointer[0];
++++    size_t remaining = end - pointer - 1;
++++    if (ch != '%' || remaining < 2 ||
++++        (  // ch == '%' && // It is unnecessary to check that ch == '%'.
++++            (!is_ascii_hex_digit(pointer[1]) ||
++++             !is_ascii_hex_digit(pointer[2])))) {
++++      dest += ch;
++++      pointer++;
++++      continue;
++++    } else {
++++      unsigned a = convert_hex_to_binary(pointer[1]);
++++      unsigned b = convert_hex_to_binary(pointer[2]);
++++      char c = static_cast<char>(a * 16 + b);
++++      dest += c;
++++      pointer += 3;
++++    }
++++  }
++++  return dest;
++++}
++++
++++std::string percent_encode(const std::string_view input,
++++                           const uint8_t character_set[]) {
++++  auto pointer =
++++      std::find_if(input.begin(), input.end(), [character_set](const char c) {
++++        return character_sets::bit_at(character_set, c);
++++      });
++++  // Optimization: Don't iterate if percent encode is not required
++++  if (pointer == input.end()) {
++++    return std::string(input);
++++  }
++++
++++  std::string result;
++++  result.reserve(input.length());  // in the worst case, percent encoding might
++++                                   // produce 3 characters.
++++  result.append(input.substr(0, std::distance(input.begin(), pointer)));
++++
++++  for (; pointer != input.end(); pointer++) {
++++    if (character_sets::bit_at(character_set, *pointer)) {
++++      result.append(character_sets::hex + uint8_t(*pointer) * 4, 3);
++++    } else {
++++      result += *pointer;
++++    }
++++  }
++++
++++  return result;
++++}
++++
++++template <bool append>
++++bool percent_encode(const std::string_view input, const uint8_t character_set[],
++++                    std::string& out) {
++++  ada_log("percent_encode ", input, " to output string while ",
++++          append ? "appending" : "overwriting");
++++  auto pointer =
++++      std::find_if(input.begin(), input.end(), [character_set](const char c) {
++++        return character_sets::bit_at(character_set, c);
++++      });
++++  ada_log("percent_encode done checking, moved to ",
++++          std::distance(input.begin(), pointer));
++++
++++  // Optimization: Don't iterate if percent encode is not required
++++  if (pointer == input.end()) {
++++    ada_log("percent_encode encoding not needed.");
++++    return false;
++++  }
++++  if (!append) {
++++    out.clear();
++++  }
++++  ada_log("percent_encode appending ", std::distance(input.begin(), pointer),
++++          " bytes");
++++  out.append(input.data(), std::distance(input.begin(), pointer));
++++  ada_log("percent_encode processing ", std::distance(pointer, input.end()),
++++          " bytes");
++++  for (; pointer != input.end(); pointer++) {
++++    if (character_sets::bit_at(character_set, *pointer)) {
++++      out.append(character_sets::hex + uint8_t(*pointer) * 4, 3);
++++    } else {
++++      out += *pointer;
++++    }
++++  }
++++  return true;
++++}
++++
++++bool to_ascii(std::optional<std::string>& out, const std::string_view plain,
++++              size_t first_percent) {
++++  std::string percent_decoded_buffer;
++++  std::string_view input = plain;
++++  if (first_percent != std::string_view::npos) {
++++    percent_decoded_buffer = unicode::percent_decode(plain, first_percent);
++++    input = percent_decoded_buffer;
++++  }
++++  // input is a non-empty UTF-8 string, must be percent decoded
++++  std::string idna_ascii = ada::idna::to_ascii(input);
++++  if (idna_ascii.empty() || contains_forbidden_domain_code_point(
++++                                idna_ascii.data(), idna_ascii.size())) {
++++    return false;
++++  }
++++  out = std::move(idna_ascii);
++++  return true;
++++}
++++
++++std::string percent_encode(const std::string_view input,
++++                           const uint8_t character_set[], size_t index) {
++++  std::string out;
++++  out.append(input.data(), index);
++++  auto pointer = input.begin() + index;
++++  for (; pointer != input.end(); pointer++) {
++++    if (character_sets::bit_at(character_set, *pointer)) {
++++      out.append(character_sets::hex + uint8_t(*pointer) * 4, 3);
++++    } else {
++++      out += *pointer;
++++    }
++++  }
++++  return out;
++++}
++++
++++}  // namespace ada::unicode
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..227863a71f5cbd732a6bfb8652c816b639449b59
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,95 @@@@@
++++/**
++++ * @file url-getters.cpp
++++ * Includes all the getters of `ada::url`
++++ */
++++#include "ada.h"
++++#include "ada/implementation.h"
++++#include "ada/helpers.h"
++++#include "ada/scheme.h"
++++
++++#include <string>
++++
++++namespace ada {
++++[[nodiscard]] std::string url::get_origin() const noexcept {
++++  if (is_special()) {
++++    // Return a new opaque origin.
++++    if (type == scheme::FILE) {
++++      return "null";
++++    }
++++    return ada::helpers::concat(get_protocol(), "//", get_host());
++++  }
++++
++++  if (non_special_scheme == "blob") {
++++    if (!path.empty()) {
++++      auto result = ada::parse<ada::url>(path);
++++      if (result &&
++++          (result->type == scheme::HTTP || result->type == scheme::HTTPS)) {
++++        // If pathURL's scheme is not "http" and not "https", then return a
++++        // new opaque origin.
++++        return ada::helpers::concat(result->get_protocol(), "//",
++++                                    result->get_host());
++++      }
++++    }
++++  }
++++
++++  // Return a new opaque origin.
++++  return "null";
++++}
++++
++++[[nodiscard]] std::string url::get_protocol() const noexcept {
++++  if (is_special()) {
++++    return helpers::concat(ada::scheme::details::is_special_list[type], ":");
++++  }
++++  // We only move the 'scheme' if it is non-special.
++++  return helpers::concat(non_special_scheme, ":");
++++}
++++
++++[[nodiscard]] std::string url::get_host() const noexcept {
++++  // If url's host is null, then return the empty string.
++++  // If url's port is null, return url's host, serialized.
++++  // Return url's host, serialized, followed by U+003A (:) and url's port,
++++  // serialized.
++++  if (!host.has_value()) {
++++    return "";
++++  }
++++  if (port.has_value()) {
++++    return host.value() + ":" + get_port();
++++  }
++++  return host.value();
++++}
++++
++++[[nodiscard]] std::string url::get_hostname() const noexcept {
++++  return host.value_or("");
++++}
++++
++++[[nodiscard]] std::string_view url::get_pathname() const noexcept {
++++  return path;
++++}
++++
++++[[nodiscard]] std::string url::get_search() const noexcept {
++++  // If this's URL's query is either null or the empty string, then return the
++++  // empty string. Return U+003F (?), followed by this's URL's query.
++++  return (!query.has_value() || (query.value().empty())) ? ""
++++                                                         : "?" + query.value();
++++}
++++
++++[[nodiscard]] const std::string& url::get_username() const noexcept {
++++  return username;
++++}
++++
++++[[nodiscard]] const std::string& url::get_password() const noexcept {
++++  return password;
++++}
++++
++++[[nodiscard]] std::string url::get_port() const noexcept {
++++  return port.has_value() ? std::to_string(port.value()) : "";
++++}
++++
++++[[nodiscard]] std::string url::get_hash() const noexcept {
++++  // If this's URL's fragment is either null or the empty string, then return
++++  // the empty string. Return U+0023 (#), followed by this's URL's fragment.
++++  return (!hash.has_value() || (hash.value().empty())) ? ""
++++                                                       : "#" + hash.value();
++++}
++++
++++}  // namespace ada
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a3c4166205a24bb912a806b1d447bbd3319ebd48
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,236 @@@@@
++++/**
++++ * @file url-setters.cpp
++++ * Includes all the setters of `ada::url`
++++ */
++++#include "ada.h"
++++#include "ada/helpers.h"
++++
++++#include <optional>
++++#include <string>
++++
++++namespace ada {
++++
++++template <bool override_hostname>
++++bool url::set_host_or_hostname(const std::string_view input) {
++++  if (has_opaque_path) {
++++    return false;
++++  }
++++
++++  std::optional<std::string> previous_host = host;
++++  std::optional<uint16_t> previous_port = port;
++++
++++  size_t host_end_pos = input.find('#');
++++  std::string _host(input.data(), host_end_pos != std::string_view::npos
++++                                      ? host_end_pos
++++                                      : input.size());
++++  helpers::remove_ascii_tab_or_newline(_host);
++++  std::string_view new_host(_host);
++++
++++  // If url's scheme is "file", then set state to file host state, instead of
++++  // host state.
++++  if (type != ada::scheme::type::FILE) {
++++    std::string_view host_view(_host.data(), _host.length());
++++    auto [location, found_colon] =
++++        helpers::get_host_delimiter_location(is_special(), host_view);
++++
++++    // Otherwise, if c is U+003A (:) and insideBrackets is false, then:
++++    // Note: the 'found_colon' value is true if and only if a colon was
++++    // encountered while not inside brackets.
++++    if (found_colon) {
++++      if (override_hostname) {
++++        return false;
++++      }
++++      std::string_view buffer = new_host.substr(location + 1);
++++      if (!buffer.empty()) {
++++        set_port(buffer);
++++      }
++++    }
++++    // If url is special and host_view is the empty string, validation error,
++++    // return failure. Otherwise, if state override is given, host_view is the
++++    // empty string, and either url includes credentials or url's port is
++++    // non-null, return.
++++    else if (host_view.empty() &&
++++             (is_special() || has_credentials() || port.has_value())) {
++++      return false;
++++    }
++++
++++    // Let host be the result of host parsing host_view with url is not special.
++++    if (host_view.empty() && !is_special()) {
++++      host = "";
++++      return true;
++++    }
++++
++++    bool succeeded = parse_host(host_view);
++++    if (!succeeded) {
++++      host = previous_host;
++++      update_base_port(previous_port);
++++    }
++++    return succeeded;
++++  }
++++
++++  size_t location = new_host.find_first_of("/\\?");
++++  if (location != std::string_view::npos) {
++++    new_host.remove_suffix(new_host.length() - location);
++++  }
++++
++++  if (new_host.empty()) {
++++    // Set url's host to the empty string.
++++    host = "";
++++  } else {
++++    // Let host be the result of host parsing buffer with url is not special.
++++    if (!parse_host(new_host)) {
++++      host = previous_host;
++++      update_base_port(previous_port);
++++      return false;
++++    }
++++
++++    // If host is "localhost", then set host to the empty string.
++++    if (host.has_value() && host.value() == "localhost") {
++++      host = "";
++++    }
++++  }
++++  return true;
++++}
++++
++++bool url::set_host(const std::string_view input) {
++++  return set_host_or_hostname<false>(input);
++++}
++++
++++bool url::set_hostname(const std::string_view input) {
++++  return set_host_or_hostname<true>(input);
++++}
++++
++++bool url::set_username(const std::string_view input) {
++++  if (cannot_have_credentials_or_port()) {
++++    return false;
++++  }
++++  username = ada::unicode::percent_encode(
++++      input, character_sets::USERINFO_PERCENT_ENCODE);
++++  return true;
++++}
++++
++++bool url::set_password(const std::string_view input) {
++++  if (cannot_have_credentials_or_port()) {
++++    return false;
++++  }
++++  password = ada::unicode::percent_encode(
++++      input, character_sets::USERINFO_PERCENT_ENCODE);
++++  return true;
++++}
++++
++++bool url::set_port(const std::string_view input) {
++++  if (cannot_have_credentials_or_port()) {
++++    return false;
++++  }
++++  std::string trimmed(input);
++++  helpers::remove_ascii_tab_or_newline(trimmed);
++++  if (trimmed.empty()) {
++++    port = std::nullopt;
++++    return true;
++++  }
++++  // Input should not start with control characters.
++++  if (ada::unicode::is_c0_control_or_space(trimmed.front())) {
++++    return false;
++++  }
++++  // Input should contain at least one ascii digit.
++++  if (input.find_first_of("0123456789") == std::string_view::npos) {
++++    return false;
++++  }
++++
++++  // Revert changes if parse_port fails.
++++  std::optional<uint16_t> previous_port = port;
++++  parse_port(trimmed);
++++  if (is_valid) {
++++    return true;
++++  }
++++  port = previous_port;
++++  is_valid = true;
++++  return false;
++++}
++++
++++void url::set_hash(const std::string_view input) {
++++  if (input.empty()) {
++++    hash = std::nullopt;
++++    helpers::strip_trailing_spaces_from_opaque_path(*this);
++++    return;
++++  }
++++
++++  std::string new_value;
++++  new_value = input[0] == '#' ? input.substr(1) : input;
++++  helpers::remove_ascii_tab_or_newline(new_value);
++++  hash = unicode::percent_encode(new_value,
++++                                 ada::character_sets::FRAGMENT_PERCENT_ENCODE);
++++}
++++
++++void url::set_search(const std::string_view input) {
++++  if (input.empty()) {
++++    query = std::nullopt;
++++    helpers::strip_trailing_spaces_from_opaque_path(*this);
++++    return;
++++  }
++++
++++  std::string new_value;
++++  new_value = input[0] == '?' ? input.substr(1) : input;
++++  helpers::remove_ascii_tab_or_newline(new_value);
++++
++++  auto query_percent_encode_set =
++++      is_special() ? ada::character_sets::SPECIAL_QUERY_PERCENT_ENCODE
++++                   : ada::character_sets::QUERY_PERCENT_ENCODE;
++++
++++  query = ada::unicode::percent_encode(std::string_view(new_value),
++++                                       query_percent_encode_set);
++++}
++++
++++bool url::set_pathname(const std::string_view input) {
++++  if (has_opaque_path) {
++++    return false;
++++  }
++++  path = "";
++++  parse_path(input);
++++  return true;
++++}
++++
++++bool url::set_protocol(const std::string_view input) {
++++  std::string view(input);
++++  helpers::remove_ascii_tab_or_newline(view);
++++  if (view.empty()) {
++++    return true;
++++  }
++++
++++  // Schemes should start with alpha values.
++++  if (!checkers::is_alpha(view[0])) {
++++    return false;
++++  }
++++
++++  view.append(":");
++++
++++  std::string::iterator pointer =
++++      std::find_if_not(view.begin(), view.end(), unicode::is_alnum_plus);
++++
++++  if (pointer != view.end() && *pointer == ':') {
++++    return parse_scheme<true>(
++++        std::string_view(view.data(), pointer - view.begin()));
++++  }
++++  return false;
++++}
++++
++++bool url::set_href(const std::string_view input) {
++++  ada::result<ada::url> out = ada::parse<ada::url>(input);
++++
++++  if (out) {
++++    username = out->username;
++++    password = out->password;
++++    host = out->host;
++++    port = out->port;
++++    path = out->path;
++++    query = out->query;
++++    hash = out->hash;
++++    type = out->type;
++++    non_special_scheme = out->non_special_scheme;
++++    has_opaque_path = out->has_opaque_path;
++++  }
++++
++++  return out.has_value();
++++}
++++
++++}  // namespace ada
diff --cc ada/src/url.cpp
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c3121056bbb746227fe2611c523d4bd6877d1075
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,592 @@@@@
++++#include "ada.h"
++++#include "ada/scheme.h"
++++#include "ada/log.h"
++++
++++#include <numeric>
++++#include <algorithm>
++++#include <string>
++++
++++namespace ada {
++++
++++bool url::parse_opaque_host(std::string_view input) {
++++  ada_log("parse_opaque_host ", input, " [", input.size(), " bytes]");
++++  if (std::any_of(input.begin(), input.end(),
++++                  ada::unicode::is_forbidden_host_code_point)) {
++++    return is_valid = false;
++++  }
++++
++++  // Return the result of running UTF-8 percent-encode on input using the C0
++++  // control percent-encode set.
++++  host = ada::unicode::percent_encode(
++++      input, ada::character_sets::C0_CONTROL_PERCENT_ENCODE);
++++  return true;
++++}
++++
++++bool url::parse_ipv4(std::string_view input) {
++++  ada_log("parse_ipv4 ", input, " [", input.size(), " bytes]");
++++  if (input.back() == '.') {
++++    input.remove_suffix(1);
++++  }
++++  size_t digit_count{0};
++++  int pure_decimal_count = 0;  // entries that are decimal
++++  std::string_view original_input =
++++      input;  // we might use this if pure_decimal_count == 4.
++++  uint64_t ipv4{0};
++++  // we could unroll for better performance?
++++  for (; (digit_count < 4) && !(input.empty()); digit_count++) {
++++    uint32_t
++++        segment_result{};  // If any number exceeds 32 bits, we have an error.
++++    bool is_hex = checkers::has_hex_prefix(input);
++++    if (is_hex && ((input.length() == 2) ||
++++                   ((input.length() > 2) && (input[2] == '.')))) {
++++      // special case
++++      segment_result = 0;
++++      input.remove_prefix(2);
++++    } else {
++++      std::from_chars_result r{};
++++      if (is_hex) {
++++        r = std::from_chars(input.data() + 2, input.data() + input.size(),
++++                            segment_result, 16);
++++      } else if ((input.length() >= 2) && input[0] == '0' &&
++++                 checkers::is_digit(input[1])) {
++++        r = std::from_chars(input.data() + 1, input.data() + input.size(),
++++                            segment_result, 8);
++++      } else {
++++        pure_decimal_count++;
++++        r = std::from_chars(input.data(), input.data() + input.size(),
++++                            segment_result, 10);
++++      }
++++      if (r.ec != std::errc()) {
++++        return is_valid = false;
++++      }
++++      input.remove_prefix(r.ptr - input.data());
++++    }
++++    if (input.empty()) {
++++      // We have the last value.
++++      // At this stage, ipv4 contains digit_count*8 bits.
++++      // So we have 32-digit_count*8 bits left.
++++      if (segment_result >= (uint64_t(1) << (32 - digit_count * 8))) {
++++        return is_valid = false;
++++      }
++++      ipv4 <<= (32 - digit_count * 8);
++++      ipv4 |= segment_result;
++++      goto final;
++++    } else {
++++      // There is more, so that the value must no be larger than 255
++++      // and we must have a '.'.
++++      if ((segment_result > 255) || (input[0] != '.')) {
++++        return is_valid = false;
++++      }
++++      ipv4 <<= 8;
++++      ipv4 |= segment_result;
++++      input.remove_prefix(1);  // remove '.'
++++    }
++++  }
++++  if ((digit_count != 4) || (!input.empty())) {
++++    return is_valid = false;
++++  }
++++final:
++++  // We could also check r.ptr to see where the parsing ended.
++++  if (pure_decimal_count == 4) {
++++    host = original_input;  // The original input was already all decimal and we
++++                            // validated it.
++++  } else {
++++    host = ada::serializers::ipv4(ipv4);  // We have to reserialize the address.
++++  }
++++  host_type = IPV4;
++++  return true;
++++}
++++
++++bool url::parse_ipv6(std::string_view input) {
++++  ada_log("parse_ipv6 ", input, " [", input.size(), " bytes]");
++++
++++  if (input.empty()) {
++++    return is_valid = false;
++++  }
++++  // Let address be a new IPv6 address whose IPv6 pieces are all 0.
++++  std::array<uint16_t, 8> address{};
++++
++++  // Let pieceIndex be 0.
++++  int piece_index = 0;
++++
++++  // Let compress be null.
++++  std::optional<int> compress{};
++++
++++  // Let pointer be a pointer for input.
++++  std::string_view::iterator pointer = input.begin();
++++
++++  // If c is U+003A (:), then:
++++  if (input[0] == ':') {
++++    // If remaining does not start with U+003A (:), validation error, return
++++    // failure.
++++    if (input.size() == 1 || input[1] != ':') {
++++      ada_log("parse_ipv6 starts with : but the rest does not start with :");
++++      return is_valid = false;
++++    }
++++
++++    // Increase pointer by 2.
++++    pointer += 2;
++++
++++    // Increase pieceIndex by 1 and then set compress to pieceIndex.
++++    compress = ++piece_index;
++++  }
++++
++++  // While c is not the EOF code point:
++++  while (pointer != input.end()) {
++++    // If pieceIndex is 8, validation error, return failure.
++++    if (piece_index == 8) {
++++      ada_log("parse_ipv6 piece_index == 8");
++++      return is_valid = false;
++++    }
++++
++++    // If c is U+003A (:), then:
++++    if (*pointer == ':') {
++++      // If compress is non-null, validation error, return failure.
++++      if (compress.has_value()) {
++++        ada_log("parse_ipv6 compress is non-null");
++++        return is_valid = false;
++++      }
++++
++++      // Increase pointer and pieceIndex by 1, set compress to pieceIndex, and
++++      // then continue.
++++      pointer++;
++++      compress = ++piece_index;
++++      continue;
++++    }
++++
++++    // Let value and length be 0.
++++    uint16_t value = 0, length = 0;
++++
++++    // While length is less than 4 and c is an ASCII hex digit,
++++    // set value to value times 0x10 + c interpreted as hexadecimal number, and
++++    // increase pointer and length by 1.
++++    while (length < 4 && pointer != input.end() &&
++++           unicode::is_ascii_hex_digit(*pointer)) {
++++      // https://stackoverflow.com/questions/39060852/why-does-the-addition-of-two-shorts-return-an-int
++++      value = uint16_t(value * 0x10 + unicode::convert_hex_to_binary(*pointer));
++++      pointer++;
++++      length++;
++++    }
++++
++++    // If c is U+002E (.), then:
++++    if (pointer != input.end() && *pointer == '.') {
++++      // If length is 0, validation error, return failure.
++++      if (length == 0) {
++++        ada_log("parse_ipv6 length is 0");
++++        return is_valid = false;
++++      }
++++
++++      // Decrease pointer by length.
++++      pointer -= length;
++++
++++      // If pieceIndex is greater than 6, validation error, return failure.
++++      if (piece_index > 6) {
++++        ada_log("parse_ipv6 piece_index > 6");
++++        return is_valid = false;
++++      }
++++
++++      // Let numbersSeen be 0.
++++      int numbers_seen = 0;
++++
++++      // While c is not the EOF code point:
++++      while (pointer != input.end()) {
++++        // Let ipv4Piece be null.
++++        std::optional<uint16_t> ipv4_piece{};
++++
++++        // If numbersSeen is greater than 0, then:
++++        if (numbers_seen > 0) {
++++          // If c is a U+002E (.) and numbersSeen is less than 4, then increase
++++          // pointer by 1.
++++          if (*pointer == '.' && numbers_seen < 4) {
++++            pointer++;
++++          }
++++          // Otherwise, validation error, return failure.
++++          else {
++++            ada_log("parse_ipv6 Otherwise, validation error, return failure");
++++            return is_valid = false;
++++          }
++++        }
++++
++++        // If c is not an ASCII digit, validation error, return failure.
++++        if (pointer == input.end() || !checkers::is_digit(*pointer)) {
++++          ada_log(
++++              "parse_ipv6 If c is not an ASCII digit, validation error, return "
++++              "failure");
++++          return is_valid = false;
++++        }
++++
++++        // While c is an ASCII digit:
++++        while (pointer != input.end() && checkers::is_digit(*pointer)) {
++++          // Let number be c interpreted as decimal number.
++++          int number = *pointer - '0';
++++
++++          // If ipv4Piece is null, then set ipv4Piece to number.
++++          if (!ipv4_piece.has_value()) {
++++            ipv4_piece = number;
++++          }
++++          // Otherwise, if ipv4Piece is 0, validation error, return failure.
++++          else if (ipv4_piece == 0) {
++++            ada_log("parse_ipv6 if ipv4Piece is 0, validation error");
++++            return is_valid = false;
++++          }
++++          // Otherwise, set ipv4Piece to ipv4Piece times 10 + number.
++++          else {
++++            ipv4_piece = *ipv4_piece * 10 + number;
++++          }
++++
++++          // If ipv4Piece is greater than 255, validation error, return failure.
++++          if (ipv4_piece > 255) {
++++            ada_log("parse_ipv6 ipv4_piece > 255");
++++            return is_valid = false;
++++          }
++++
++++          // Increase pointer by 1.
++++          pointer++;
++++        }
++++
++++        // Set address[pieceIndex] to address[pieceIndex] times 0x100 +
++++        // ipv4Piece.
++++        // https://stackoverflow.com/questions/39060852/why-does-the-addition-of-two-shorts-return-an-int
++++        address[piece_index] =
++++            uint16_t(address[piece_index] * 0x100 + *ipv4_piece);
++++
++++        // Increase numbersSeen by 1.
++++        numbers_seen++;
++++
++++        // If numbersSeen is 2 or 4, then increase pieceIndex by 1.
++++        if (numbers_seen == 2 || numbers_seen == 4) {
++++          piece_index++;
++++        }
++++      }
++++
++++      // If numbersSeen is not 4, validation error, return failure.
++++      if (numbers_seen != 4) {
++++        return is_valid = false;
++++      }
++++
++++      // Break.
++++      break;
++++    }
++++    // Otherwise, if c is U+003A (:):
++++    else if ((pointer != input.end()) && (*pointer == ':')) {
++++      // Increase pointer by 1.
++++      pointer++;
++++
++++      // If c is the EOF code point, validation error, return failure.
++++      if (pointer == input.end()) {
++++        ada_log(
++++            "parse_ipv6 If c is the EOF code point, validation error, return "
++++            "failure");
++++        return is_valid = false;
++++      }
++++    }
++++    // Otherwise, if c is not the EOF code point, validation error, return
++++    // failure.
++++    else if (pointer != input.end()) {
++++      ada_log(
++++          "parse_ipv6 Otherwise, if c is not the EOF code point, validation "
++++          "error, return failure");
++++      return is_valid = false;
++++    }
++++
++++    // Set address[pieceIndex] to value.
++++    address[piece_index] = value;
++++
++++    // Increase pieceIndex by 1.
++++    piece_index++;
++++  }
++++
++++  // If compress is non-null, then:
++++  if (compress.has_value()) {
++++    // Let swaps be pieceIndex - compress.
++++    int swaps = piece_index - *compress;
++++
++++    // Set pieceIndex to 7.
++++    piece_index = 7;
++++
++++    // While pieceIndex is not 0 and swaps is greater than 0,
++++    // swap address[pieceIndex] with address[compress + swaps - 1], and then
++++    // decrease both pieceIndex and swaps by 1.
++++    while (piece_index != 0 && swaps > 0) {
++++      std::swap(address[piece_index], address[*compress + swaps - 1]);
++++      piece_index--;
++++      swaps--;
++++    }
++++  }
++++  // Otherwise, if compress is null and pieceIndex is not 8, validation error,
++++  // return failure.
++++  else if (piece_index != 8) {
++++    ada_log(
++++        "parse_ipv6 if compress is null and pieceIndex is not 8, validation "
++++        "error, return failure");
++++    return is_valid = false;
++++  }
++++  host = ada::serializers::ipv6(address);
++++  ada_log("parse_ipv6 ", *host);
++++  host_type = IPV6;
++++  return true;
++++}
++++
++++template <bool has_state_override>
++++ada_really_inline bool url::parse_scheme(const std::string_view input) {
++++  auto parsed_type = ada::scheme::get_scheme_type(input);
++++  bool is_input_special = (parsed_type != ada::scheme::NOT_SPECIAL);
++++  /**
++++   * In the common case, we will immediately recognize a special scheme (e.g.,
++++   *http, https), in which case, we can go really fast.
++++   **/
++++  if (is_input_special) {  // fast path!!!
++++    if (has_state_override) {
++++      // If url's scheme is not a special scheme and buffer is a special scheme,
++++      // then return.
++++      if (is_special() != is_input_special) {
++++        return false;
++++      }
++++
++++      // If url includes credentials or has a non-null port, and buffer is
++++      // "file", then return.
++++      if ((has_credentials() || port.has_value()) &&
++++          parsed_type == ada::scheme::type::FILE) {
++++        return false;
++++      }
++++
++++      // If url's scheme is "file" and its host is an empty host, then return.
++++      // An empty host is the empty string.
++++      if (type == ada::scheme::type::FILE && host.has_value() &&
++++          host.value().empty()) {
++++        return false;
++++      }
++++    }
++++
++++    type = parsed_type;
++++
++++    if (has_state_override) {
++++      // This is uncommon.
++++      uint16_t urls_scheme_port = get_special_port();
++++
++++      if (urls_scheme_port) {
++++        // If url's port is url's scheme's default port, then set url's port to
++++        // null.
++++        if (port.has_value() && *port == urls_scheme_port) {
++++          port = std::nullopt;
++++        }
++++      }
++++    }
++++  } else {  // slow path
++++    std::string _buffer(input);
++++    // Next function is only valid if the input is ASCII and returns false
++++    // otherwise, but it seems that we always have ascii content so we do not
++++    // need to check the return value.
++++    // bool is_ascii =
++++    unicode::to_lower_ascii(_buffer.data(), _buffer.size());
++++
++++    if (has_state_override) {
++++      // If url's scheme is a special scheme and buffer is not a special scheme,
++++      // then return. If url's scheme is not a special scheme and buffer is a
++++      // special scheme, then return.
++++      if (is_special() != ada::scheme::is_special(_buffer)) {
++++        return true;
++++      }
++++
++++      // If url includes credentials or has a non-null port, and buffer is
++++      // "file", then return.
++++      if ((has_credentials() || port.has_value()) && _buffer == "file") {
++++        return true;
++++      }
++++
++++      // If url's scheme is "file" and its host is an empty host, then return.
++++      // An empty host is the empty string.
++++      if (type == ada::scheme::type::FILE && host.has_value() &&
++++          host.value().empty()) {
++++        return true;
++++      }
++++    }
++++
++++    set_scheme(std::move(_buffer));
++++
++++    if (has_state_override) {
++++      // This is uncommon.
++++      uint16_t urls_scheme_port = get_special_port();
++++
++++      if (urls_scheme_port) {
++++        // If url's port is url's scheme's default port, then set url's port to
++++        // null.
++++        if (port.has_value() && *port == urls_scheme_port) {
++++          port = std::nullopt;
++++        }
++++      }
++++    }
++++  }
++++
++++  return true;
++++}
++++
++++ada_really_inline bool url::parse_host(std::string_view input) {
++++  ada_log("parse_host ", input, " [", input.size(), " bytes]");
++++  if (input.empty()) {
++++    return is_valid = false;
++++  }  // technically unnecessary.
++++  // If input starts with U+005B ([), then:
++++  if (input[0] == '[') {
++++    // If input does not end with U+005D (]), validation error, return failure.
++++    if (input.back() != ']') {
++++      return is_valid = false;
++++    }
++++    ada_log("parse_host ipv6");
++++
++++    // Return the result of IPv6 parsing input with its leading U+005B ([) and
++++    // trailing U+005D (]) removed.
++++    input.remove_prefix(1);
++++    input.remove_suffix(1);
++++    return parse_ipv6(input);
++++  }
++++
++++  // If isNotSpecial is true, then return the result of opaque-host parsing
++++  // input.
++++  if (!is_special()) {
++++    return parse_opaque_host(input);
++++  }
++++  // Let domain be the result of running UTF-8 decode without BOM on the
++++  // percent-decoding of input. Let asciiDomain be the result of running domain
++++  // to ASCII with domain and false. The most common case is an ASCII input, in
++++  // which case we do not need to call the expensive 'to_ascii' if a few
++++  // conditions are met: no '%' and no 'xn-' subsequence.
++++  std::string buffer = std::string(input);
++++  // This next function checks that the result is ascii, but we are going to
++++  // to check anyhow with is_forbidden.
++++  // bool is_ascii =
++++  unicode::to_lower_ascii(buffer.data(), buffer.size());
++++  bool is_forbidden = unicode::contains_forbidden_domain_code_point(
++++      buffer.data(), buffer.size());
++++  if (is_forbidden == 0 && buffer.find("xn-") == std::string_view::npos) {
++++    // fast path
++++    host = std::move(buffer);
++++    if (checkers::is_ipv4(host.value())) {
++++      ada_log("parse_host fast path ipv4");
++++      return parse_ipv4(host.value());
++++    }
++++    ada_log("parse_host fast path ", *host);
++++    return true;
++++  }
++++  ada_log("parse_host calling to_ascii");
++++  is_valid = ada::unicode::to_ascii(host, input, input.find('%'));
++++  if (!is_valid) {
++++    ada_log("parse_host to_ascii returns false");
++++    return is_valid = false;
++++  }
++++  ada_log("parse_host to_ascii succeeded ", *host, " [", host->size(),
++++          " bytes]");
++++
++++  if (std::any_of(host.value().begin(), host.value().end(),
++++                  ada::unicode::is_forbidden_domain_code_point)) {
++++    host = std::nullopt;
++++    return is_valid = false;
++++  }
++++
++++  // If asciiDomain ends in a number, then return the result of IPv4 parsing
++++  // asciiDomain.
++++  if (checkers::is_ipv4(host.value())) {
++++    ada_log("parse_host got ipv4 ", *host);
++++    return parse_ipv4(host.value());
++++  }
++++
++++  return true;
++++}
++++
++++ada_really_inline void url::parse_path(std::string_view input) {
++++  ada_log("parse_path ", input);
++++  std::string tmp_buffer;
++++  std::string_view internal_input;
++++  if (unicode::has_tabs_or_newline(input)) {
++++    tmp_buffer = input;
++++    // Optimization opportunity: Instead of copying and then pruning, we could
++++    // just directly build the string from user_input.
++++    helpers::remove_ascii_tab_or_newline(tmp_buffer);
++++    internal_input = tmp_buffer;
++++  } else {
++++    internal_input = input;
++++  }
++++
++++  // If url is special, then:
++++  if (is_special()) {
++++    if (internal_input.empty()) {
++++      path = "/";
++++    } else if ((internal_input[0] == '/') || (internal_input[0] == '\\')) {
++++      helpers::parse_prepared_path(internal_input.substr(1), type, path);
++++      return;
++++    } else {
++++      helpers::parse_prepared_path(internal_input, type, path);
++++      return;
++++    }
++++  } else if (!internal_input.empty()) {
++++    if (internal_input[0] == '/') {
++++      helpers::parse_prepared_path(internal_input.substr(1), type, path);
++++      return;
++++    } else {
++++      helpers::parse_prepared_path(internal_input, type, path);
++++      return;
++++    }
++++  } else {
++++    if (!host.has_value()) {
++++      path = "/";
++++    }
++++  }
++++}
++++
++++[[nodiscard]] std::string url::to_string() const {
++++  if (!is_valid) {
++++    return "null";
++++  }
++++  std::string answer;
++++  auto back = std::back_insert_iterator(answer);
++++  answer.append("{\n");
++++  answer.append("\t\"protocol\":\"");
++++  helpers::encode_json(get_protocol(), back);
++++  answer.append("\",\n");
++++  if (has_credentials()) {
++++    answer.append("\t\"username\":\"");
++++    helpers::encode_json(username, back);
++++    answer.append("\",\n");
++++    answer.append("\t\"password\":\"");
++++    helpers::encode_json(password, back);
++++    answer.append("\",\n");
++++  }
++++  if (host.has_value()) {
++++    answer.append("\t\"host\":\"");
++++    helpers::encode_json(host.value(), back);
++++    answer.append("\",\n");
++++  }
++++  if (port.has_value()) {
++++    answer.append("\t\"port\":\"");
++++    answer.append(std::to_string(port.value()));
++++    answer.append("\",\n");
++++  }
++++  answer.append("\t\"path\":\"");
++++  helpers::encode_json(path, back);
++++  answer.append("\",\n");
++++  answer.append("\t\"opaque path\":");
++++  answer.append((has_opaque_path ? "true" : "false"));
++++  if (has_search()) {
++++    answer.append(",\n");
++++    answer.append("\t\"query\":\"");
++++    helpers::encode_json(query.value(), back);
++++    answer.append("\"");
++++  }
++++  if (hash.has_value()) {
++++    answer.append(",\n");
++++    answer.append("\t\"hash\":\"");
++++    helpers::encode_json(hash.value(), back);
++++    answer.append("\"");
++++  }
++++  answer.append("\n}");
++++  return answer;
++++}
++++
++++[[nodiscard]] bool url::has_valid_domain() const noexcept {
++++  if (!host.has_value()) {
++++    return false;
++++  }
++++  return checkers::verify_dns_length(host.value());
++++}
++++
++++}  // namespace ada
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..372261da85e4a91195d8fd9d6d6b2cdfeedb407c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1739 @@@@@
++++#include "ada.h"
++++#include "ada/checkers-inl.h"
++++#include "ada/helpers.h"
++++#include "ada/implementation.h"
++++#include "ada/scheme.h"
++++#include "ada/unicode-inl.h"
++++#include "ada/url_components.h"
++++#include "ada/url_aggregator.h"
++++#include "ada/url_aggregator-inl.h"
++++
++++#include <string>
++++#include <string_view>
++++
++++namespace ada {
++++template <bool has_state_override>
++++[[nodiscard]] ada_really_inline bool url_aggregator::parse_scheme_with_colon(
++++    const std::string_view input_with_colon) {
++++  ada_log("url_aggregator::parse_scheme_with_colon ", input_with_colon);
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input_with_colon, buffer));
++++  std::string_view input{input_with_colon};
++++  input.remove_suffix(1);
++++  auto parsed_type = ada::scheme::get_scheme_type(input);
++++  bool is_input_special = (parsed_type != ada::scheme::NOT_SPECIAL);
++++  /**
++++   * In the common case, we will immediately recognize a special scheme (e.g.,
++++   *http, https), in which case, we can go really fast.
++++   **/
++++  if (is_input_special) {  // fast path!!!
++++    if (has_state_override) {
++++      // If url's scheme is not a special scheme and buffer is a special scheme,
++++      // then return.
++++      if (is_special() != is_input_special) {
++++        return false;
++++      }
++++
++++      // If url includes credentials or has a non-null port, and buffer is
++++      // "file", then return.
++++      if ((has_credentials() || components.port != url_components::omitted) &&
++++          parsed_type == ada::scheme::type::FILE) {
++++        return false;
++++      }
++++
++++      // If url's scheme is "file" and its host is an empty host, then return.
++++      // An empty host is the empty string.
++++      if (type == ada::scheme::type::FILE &&
++++          components.host_start == components.host_end) {
++++        return false;
++++      }
++++    }
++++
++++    type = parsed_type;
++++    set_scheme_from_view_with_colon(input_with_colon);
++++
++++    if (has_state_override) {
++++      // This is uncommon.
++++      uint16_t urls_scheme_port = get_special_port();
++++
++++      // If url's port is url's scheme's default port, then set url's port to
++++      // null.
++++      if (components.port == urls_scheme_port) {
++++        clear_port();
++++      }
++++    }
++++  } else {  // slow path
++++    std::string _buffer(input);
++++    // Next function is only valid if the input is ASCII and returns false
++++    // otherwise, but it seems that we always have ascii content so we do not
++++    // need to check the return value.
++++    unicode::to_lower_ascii(_buffer.data(), _buffer.size());
++++
++++    if (has_state_override) {
++++      // If url's scheme is a special scheme and buffer is not a special scheme,
++++      // then return. If url's scheme is not a special scheme and buffer is a
++++      // special scheme, then return.
++++      if (is_special() != ada::scheme::is_special(_buffer)) {
++++        return true;
++++      }
++++
++++      // If url includes credentials or has a non-null port, and buffer is
++++      // "file", then return.
++++      if ((has_credentials() || components.port != url_components::omitted) &&
++++          _buffer == "file") {
++++        return true;
++++      }
++++
++++      // If url's scheme is "file" and its host is an empty host, then return.
++++      // An empty host is the empty string.
++++      if (type == ada::scheme::type::FILE &&
++++          components.host_start == components.host_end) {
++++        return true;
++++      }
++++    }
++++
++++    set_scheme(_buffer);
++++
++++    if (has_state_override) {
++++      // This is uncommon.
++++      uint16_t urls_scheme_port = get_special_port();
++++
++++      // If url's port is url's scheme's default port, then set url's port to
++++      // null.
++++      if (components.port == urls_scheme_port) {
++++        clear_port();
++++      }
++++    }
++++  }
++++  ADA_ASSERT_TRUE(validate());
++++  return true;
++++}
++++
++++inline void url_aggregator::copy_scheme(const url_aggregator& u) noexcept {
++++  ada_log("url_aggregator::copy_scheme ", u.buffer);
++++  ADA_ASSERT_TRUE(validate());
++++  // next line could overflow but unsigned arithmetic has well-defined
++++  // overflows.
++++  uint32_t new_difference = u.components.protocol_end - components.protocol_end;
++++  type = u.type;
++++  buffer.erase(0, components.protocol_end);
++++  buffer.insert(0, u.get_protocol());
++++  components.protocol_end = u.components.protocol_end;
++++
++++  // No need to update the components
++++  if (new_difference == 0) {
++++    return;
++++  }
++++
++++  // Update the rest of the components.
++++  components.username_end += new_difference;
++++  components.host_start += new_difference;
++++  components.host_end += new_difference;
++++  components.pathname_start += new_difference;
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start += new_difference;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start += new_difference;
++++  }
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++inline void url_aggregator::set_scheme_from_view_with_colon(
++++    std::string_view new_scheme_with_colon) noexcept {
++++  ada_log("url_aggregator::set_scheme_from_view_with_colon ",
++++          new_scheme_with_colon);
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!new_scheme_with_colon.empty() &&
++++                  new_scheme_with_colon.back() == ':');
++++  // next line could overflow but unsigned arithmetic has well-defined
++++  // overflows.
++++  uint32_t new_difference =
++++      uint32_t(new_scheme_with_colon.size()) - components.protocol_end;
++++
++++  if (buffer.empty()) {
++++    buffer.append(new_scheme_with_colon);
++++  } else {
++++    buffer.erase(0, components.protocol_end);
++++    buffer.insert(0, new_scheme_with_colon);
++++  }
++++  components.protocol_end += new_difference;
++++
++++  // Update the rest of the components.
++++  components.username_end += new_difference;
++++  components.host_start += new_difference;
++++  components.host_end += new_difference;
++++  components.pathname_start += new_difference;
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start += new_difference;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start += new_difference;
++++  }
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++inline void url_aggregator::set_scheme(std::string_view new_scheme) noexcept {
++++  ada_log("url_aggregator::set_scheme ", new_scheme);
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(new_scheme.empty() || new_scheme.back() != ':');
++++  // next line could overflow but unsigned arithmetic has well-defined
++++  // overflows.
++++  uint32_t new_difference =
++++      uint32_t(new_scheme.size()) - components.protocol_end + 1;
++++
++++  type = ada::scheme::get_scheme_type(new_scheme);
++++  if (buffer.empty()) {
++++    buffer.append(helpers::concat(new_scheme, ":"));
++++  } else {
++++    buffer.erase(0, components.protocol_end);
++++    buffer.insert(0, helpers::concat(new_scheme, ":"));
++++  }
++++  components.protocol_end = uint32_t(new_scheme.size() + 1);
++++
++++  // Update the rest of the components.
++++  components.username_end += new_difference;
++++  components.host_start += new_difference;
++++  components.host_end += new_difference;
++++  components.pathname_start += new_difference;
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start += new_difference;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start += new_difference;
++++  }
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++bool url_aggregator::set_protocol(const std::string_view input) {
++++  ada_log("url_aggregator::set_protocol ", input);
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  std::string view(input);
++++  helpers::remove_ascii_tab_or_newline(view);
++++  if (view.empty()) {
++++    return true;
++++  }
++++
++++  // Schemes should start with alpha values.
++++  if (!checkers::is_alpha(view[0])) {
++++    return false;
++++  }
++++
++++  view.append(":");
++++
++++  std::string::iterator pointer =
++++      std::find_if_not(view.begin(), view.end(), unicode::is_alnum_plus);
++++
++++  if (pointer != view.end() && *pointer == ':') {
++++    return parse_scheme_with_colon<true>(
++++        std::string_view(view.data(), pointer - view.begin() + 1));
++++  }
++++  return false;
++++}
++++
++++bool url_aggregator::set_username(const std::string_view input) {
++++  ada_log("url_aggregator::set_username '", input, "' ");
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  if (cannot_have_credentials_or_port()) {
++++    return false;
++++  }
++++  size_t idx = ada::unicode::percent_encode_index(
++++      input, character_sets::USERINFO_PERCENT_ENCODE);
++++  if (idx == input.size()) {
++++    update_base_username(input);
++++  } else {
++++    // We only create a temporary string if we have to!
++++    update_base_username(ada::unicode::percent_encode(
++++        input, character_sets::USERINFO_PERCENT_ENCODE, idx));
++++  }
++++  ADA_ASSERT_TRUE(validate());
++++  return true;
++++}
++++
++++bool url_aggregator::set_password(const std::string_view input) {
++++  ada_log("url_aggregator::set_password '", input, "'");
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  if (cannot_have_credentials_or_port()) {
++++    return false;
++++  }
++++  size_t idx = ada::unicode::percent_encode_index(
++++      input, character_sets::USERINFO_PERCENT_ENCODE);
++++  if (idx == input.size()) {
++++    update_base_password(input);
++++  } else {
++++    // We only create a temporary string if we have to!
++++    update_base_password(ada::unicode::percent_encode(
++++        input, character_sets::USERINFO_PERCENT_ENCODE, idx));
++++  }
++++  ADA_ASSERT_TRUE(validate());
++++  return true;
++++}
++++
++++bool url_aggregator::set_port(const std::string_view input) {
++++  ada_log("url_aggregator::set_port ", input);
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  if (cannot_have_credentials_or_port()) {
++++    return false;
++++  }
++++  std::string trimmed(input);
++++  helpers::remove_ascii_tab_or_newline(trimmed);
++++  if (trimmed.empty()) {
++++    clear_port();
++++    return true;
++++  }
++++  // Input should not start with control characters.
++++  if (ada::unicode::is_c0_control_or_space(trimmed.front())) {
++++    return false;
++++  }
++++  // Input should contain at least one ascii digit.
++++  if (input.find_first_of("0123456789") == std::string_view::npos) {
++++    return false;
++++  }
++++
++++  // Revert changes if parse_port fails.
++++  uint32_t previous_port = components.port;
++++  parse_port(trimmed);
++++  if (is_valid) {
++++    return true;
++++  }
++++  update_base_port(previous_port);
++++  is_valid = true;
++++  ADA_ASSERT_TRUE(validate());
++++  return false;
++++}
++++
++++bool url_aggregator::set_pathname(const std::string_view input) {
++++  ada_log("url_aggregator::set_pathname ", input);
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  if (has_opaque_path) {
++++    return false;
++++  }
++++  clear_pathname();
++++  parse_path(input);
++++  if (checkers::begins_with(get_pathname(), "//") && !has_authority() &&
++++      !has_dash_dot()) {
++++    buffer.insert(components.pathname_start, "/.");
++++    components.pathname_start += 2;
++++  }
++++  ADA_ASSERT_TRUE(validate());
++++  return true;
++++}
++++
++++ada_really_inline void url_aggregator::parse_path(std::string_view input) {
++++  ada_log("url_aggregator::parse_path ", input);
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  std::string tmp_buffer;
++++  std::string_view internal_input;
++++  if (unicode::has_tabs_or_newline(input)) {
++++    tmp_buffer = input;
++++    // Optimization opportunity: Instead of copying and then pruning, we could
++++    // just directly build the string from user_input.
++++    helpers::remove_ascii_tab_or_newline(tmp_buffer);
++++    internal_input = tmp_buffer;
++++  } else {
++++    internal_input = input;
++++  }
++++
++++  // If url is special, then:
++++  if (is_special()) {
++++    if (internal_input.empty()) {
++++      update_base_pathname("/");
++++    } else if ((internal_input[0] == '/') || (internal_input[0] == '\\')) {
++++      consume_prepared_path(internal_input.substr(1));
++++    } else {
++++      consume_prepared_path(internal_input);
++++    }
++++  } else if (!internal_input.empty()) {
++++    if (internal_input[0] == '/') {
++++      consume_prepared_path(internal_input.substr(1));
++++    } else {
++++      consume_prepared_path(internal_input);
++++    }
++++  } else {
++++    // Non-special URLs with an empty host can have their paths erased
++++    // Path-only URLs cannot have their paths erased
++++    if (components.host_start == components.host_end && !has_authority()) {
++++      update_base_pathname("/");
++++    }
++++  }
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++void url_aggregator::set_search(const std::string_view input) {
++++  ada_log("url_aggregator::set_search ", input);
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  if (input.empty()) {
++++    clear_search();
++++    helpers::strip_trailing_spaces_from_opaque_path(*this);
++++    return;
++++  }
++++
++++  std::string new_value;
++++  new_value = input[0] == '?' ? input.substr(1) : input;
++++  helpers::remove_ascii_tab_or_newline(new_value);
++++
++++  auto query_percent_encode_set =
++++      is_special() ? ada::character_sets::SPECIAL_QUERY_PERCENT_ENCODE
++++                   : ada::character_sets::QUERY_PERCENT_ENCODE;
++++
++++  update_base_search(new_value, query_percent_encode_set);
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++void url_aggregator::set_hash(const std::string_view input) {
++++  ada_log("url_aggregator::set_hash ", input);
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  if (input.empty()) {
++++    if (components.hash_start != url_components::omitted) {
++++      buffer.resize(components.hash_start);
++++      components.hash_start = url_components::omitted;
++++    }
++++    helpers::strip_trailing_spaces_from_opaque_path(*this);
++++    return;
++++  }
++++
++++  std::string new_value;
++++  new_value = input[0] == '#' ? input.substr(1) : input;
++++  helpers::remove_ascii_tab_or_newline(new_value);
++++  update_unencoded_base_hash(new_value);
++++  ADA_ASSERT_TRUE(validate());
++++}
++++
++++bool url_aggregator::set_href(const std::string_view input) {
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  ada_log("url_aggregator::set_href ", input, " [", input.size(), " bytes]");
++++  ada::result<url_aggregator> out = ada::parse<url_aggregator>(input);
++++  ada_log("url_aggregator::set_href, success :", out.has_value());
++++
++++  if (out) {
++++    ada_log("url_aggregator::set_href, parsed ", out->to_string());
++++    // TODO: Figure out why the following line puts test to never finish.
++++    *this = *out;
++++  }
++++
++++  return out.has_value();
++++}
++++
++++ada_really_inline bool url_aggregator::parse_host(std::string_view input) {
++++  ada_log("url_aggregator:parse_host \"", input, "\" [", input.size(),
++++          " bytes]");
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  if (input.empty()) {
++++    return is_valid = false;
++++  }  // technically unnecessary.
++++  // If input starts with U+005B ([), then:
++++  if (input[0] == '[') {
++++    // If input does not end with U+005D (]), validation error, return failure.
++++    if (input.back() != ']') {
++++      return is_valid = false;
++++    }
++++    ada_log("parse_host ipv6");
++++
++++    // Return the result of IPv6 parsing input with its leading U+005B ([) and
++++    // trailing U+005D (]) removed.
++++    input.remove_prefix(1);
++++    input.remove_suffix(1);
++++    return parse_ipv6(input);
++++  }
++++
++++  // If isNotSpecial is true, then return the result of opaque-host parsing
++++  // input.
++++  if (!is_special()) {
++++    return parse_opaque_host(input);
++++  }
++++  // Let domain be the result of running UTF-8 decode without BOM on the
++++  // percent-decoding of input. Let asciiDomain be the result of running domain
++++  // to ASCII with domain and false. The most common case is an ASCII input, in
++++  // which case we do not need to call the expensive 'to_ascii' if a few
++++  // conditions are met: no '%' and no 'xn-' subsequence.
++++
++++  // Often, the input does not contain any forbidden code points, and no upper
++++  // case ASCII letter, then we can just copy it to the buffer. We want to
++++  // optimize for such a common case.
++++  uint8_t is_forbidden_or_upper =
++++      unicode::contains_forbidden_domain_code_point_or_upper(input.data(),
++++                                                             input.size());
++++  // Minor optimization opportunity:
++++  // contains_forbidden_domain_code_point_or_upper could be extend to check for
++++  // the presence of characters that cannot appear in the ipv4 address and we
++++  // could also check whether x and n and - are present, and so we could skip
++++  // some of the checks below. However, the gains are likely to be small, and
++++  // the code would be more complex.
++++  if (is_forbidden_or_upper == 0 &&
++++      input.find("xn-") == std::string_view::npos) {
++++    // fast path
++++    update_base_hostname(input);
++++    if (checkers::is_ipv4(get_hostname())) {
++++      ada_log("parse_host fast path ipv4");
++++      return parse_ipv4(get_hostname(), true);
++++    }
++++    ada_log("parse_host fast path ", get_hostname());
++++    return true;
++++  }
++++  // We have encountered at least one forbidden code point or the input contains
++++  // 'xn-' (case insensitive), so we need to call 'to_ascii' to perform the full
++++  // conversion.
++++
++++  ada_log("parse_host calling to_ascii");
++++  std::optional<std::string> host = std::string(get_hostname());
++++  is_valid = ada::unicode::to_ascii(host, input, input.find('%'));
++++  if (!is_valid) {
++++    ada_log("parse_host to_ascii returns false");
++++    return is_valid = false;
++++  }
++++  ada_log("parse_host to_ascii succeeded ", *host, " [", host->size(),
++++          " bytes]");
++++
++++  if (std::any_of(host.value().begin(), host.value().end(),
++++                  ada::unicode::is_forbidden_domain_code_point)) {
++++    return is_valid = false;
++++  }
++++
++++  // If asciiDomain ends in a number, then return the result of IPv4 parsing
++++  // asciiDomain.
++++  if (checkers::is_ipv4(host.value())) {
++++    ada_log("parse_host got ipv4 ", *host);
++++    return parse_ipv4(host.value(), false);
++++  }
++++
++++  update_base_hostname(host.value());
++++  ADA_ASSERT_TRUE(validate());
++++  return true;
++++}
++++
++++template <bool override_hostname>
++++bool url_aggregator::set_host_or_hostname(const std::string_view input) {
++++  ada_log("url_aggregator::set_host_or_hostname ", input);
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  if (has_opaque_path) {
++++    return false;
++++  }
++++
++++  std::string previous_host(get_hostname());
++++  uint32_t previous_port = components.port;
++++
++++  size_t host_end_pos = input.find('#');
++++  std::string _host(input.data(), host_end_pos != std::string_view::npos
++++                                      ? host_end_pos
++++                                      : input.size());
++++  helpers::remove_ascii_tab_or_newline(_host);
++++  std::string_view new_host(_host);
++++
++++  // If url's scheme is "file", then set state to file host state, instead of
++++  // host state.
++++  if (type != ada::scheme::type::FILE) {
++++    std::string_view host_view(_host.data(), _host.length());
++++    auto [location, found_colon] =
++++        helpers::get_host_delimiter_location(is_special(), host_view);
++++
++++    // Otherwise, if c is U+003A (:) and insideBrackets is false, then:
++++    // Note: the 'found_colon' value is true if and only if a colon was
++++    // encountered while not inside brackets.
++++    if (found_colon) {
++++      if (override_hostname) {
++++        return false;
++++      }
++++      std::string_view sub_buffer = new_host.substr(location + 1);
++++      if (!sub_buffer.empty()) {
++++        set_port(sub_buffer);
++++      }
++++    }
++++    // If url is special and host_view is the empty string, validation error,
++++    // return failure. Otherwise, if state override is given, host_view is the
++++    // empty string, and either url includes credentials or url's port is
++++    // non-null, return.
++++    else if (host_view.empty() &&
++++             (is_special() || has_credentials() || has_port())) {
++++      return false;
++++    }
++++
++++    // Let host be the result of host parsing host_view with url is not special.
++++    if (host_view.empty() && !is_special()) {
++++      if (has_hostname()) {
++++        clear_hostname();  // easy!
++++      } else if (has_dash_dot()) {
++++        add_authority_slashes_if_needed();
++++        delete_dash_dot();
++++      }
++++      return true;
++++    }
++++
++++    bool succeeded = parse_host(host_view);
++++    if (!succeeded) {
++++      update_base_hostname(previous_host);
++++      update_base_port(previous_port);
++++    } else if (has_dash_dot()) {
++++      // Should remove dash_dot from pathname
++++      delete_dash_dot();
++++    }
++++    return succeeded;
++++  }
++++
++++  size_t location = new_host.find_first_of("/\\?");
++++  if (location != std::string_view::npos) {
++++    new_host.remove_suffix(new_host.length() - location);
++++  }
++++
++++  if (new_host.empty()) {
++++    // Set url's host to the empty string.
++++    clear_hostname();
++++  } else {
++++    // Let host be the result of host parsing buffer with url is not special.
++++    if (!parse_host(new_host)) {
++++      update_base_hostname(previous_host);
++++      update_base_port(previous_port);
++++      return false;
++++    }
++++
++++    // If host is "localhost", then set host to the empty string.
++++    if (helpers::substring(buffer, components.host_start,
++++                           components.host_end) == "localhost") {
++++      clear_hostname();
++++    }
++++  }
++++  ADA_ASSERT_TRUE(validate());
++++  return true;
++++}
++++
++++bool url_aggregator::set_host(const std::string_view input) {
++++  ada_log("url_aggregator::set_host '", input, "'");
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  return set_host_or_hostname<false>(input);
++++}
++++
++++bool url_aggregator::set_hostname(const std::string_view input) {
++++  ada_log("url_aggregator::set_hostname '", input, "'");
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  return set_host_or_hostname<true>(input);
++++}
++++
++++[[nodiscard]] std::string url_aggregator::get_origin() const noexcept {
++++  ada_log("url_aggregator::get_origin");
++++  if (is_special()) {
++++    // Return a new opaque origin.
++++    if (type == scheme::FILE) {
++++      return "null";
++++    }
++++
++++    return helpers::concat(get_protocol(), "//", get_host());
++++  }
++++
++++  if (get_protocol() == "blob:") {
++++    std::string_view path = get_pathname();
++++    if (!path.empty()) {
++++      auto out = ada::parse<ada::url_aggregator>(path);
++++      if (out && (out->type == scheme::HTTP || out->type == scheme::HTTPS)) {
++++        // If pathURL's scheme is not "http" and not "https", then return a
++++        // new opaque origin.
++++        return helpers::concat(out->get_protocol(), "//", out->get_host());
++++      }
++++    }
++++  }
++++
++++  // Return a new opaque origin.
++++  return "null";
++++}
++++
++++[[nodiscard]] std::string_view url_aggregator::get_username() const noexcept
++++    ada_lifetime_bound {
++++  ada_log("url_aggregator::get_username");
++++  if (has_non_empty_username()) {
++++    return helpers::substring(buffer, components.protocol_end + 2,
++++                              components.username_end);
++++  }
++++  return "";
++++}
++++
++++[[nodiscard]] std::string_view url_aggregator::get_password() const noexcept
++++    ada_lifetime_bound {
++++  ada_log("url_aggregator::get_password");
++++  if (has_non_empty_password()) {
++++    return helpers::substring(buffer, components.username_end + 1,
++++                              components.host_start);
++++  }
++++  return "";
++++}
++++
++++[[nodiscard]] std::string_view url_aggregator::get_port() const noexcept
++++    ada_lifetime_bound {
++++  ada_log("url_aggregator::get_port");
++++  if (components.port == url_components::omitted) {
++++    return "";
++++  }
++++  return helpers::substring(buffer, components.host_end + 1,
++++                            components.pathname_start);
++++}
++++
++++[[nodiscard]] std::string_view url_aggregator::get_hash() const noexcept
++++    ada_lifetime_bound {
++++  ada_log("url_aggregator::get_hash");
++++  // If this's URL's fragment is either null or the empty string, then return
++++  // the empty string. Return U+0023 (#), followed by this's URL's fragment.
++++  if (components.hash_start == url_components::omitted) {
++++    return "";
++++  }
++++  if (buffer.size() - components.hash_start <= 1) {
++++    return "";
++++  }
++++  return helpers::substring(buffer, components.hash_start);
++++}
++++
++++[[nodiscard]] std::string_view url_aggregator::get_host() const noexcept
++++    ada_lifetime_bound {
++++  ada_log("url_aggregator::get_host");
++++  // Technically, we should check if there is a hostname, but
++++  // the code below works even if there isn't.
++++  // if(!has_hostname()) { return ""; }
++++  size_t start = components.host_start;
++++  if (components.host_end > components.host_start &&
++++      buffer[components.host_start] == '@') {
++++    start++;
++++  }
++++  // if we have an empty host, then the space between components.host_end and
++++  // components.pathname_start may be occupied by /.
++++  if (start == components.host_end) {
++++    return {};
++++  }
++++  return helpers::substring(buffer, start, components.pathname_start);
++++}
++++
++++[[nodiscard]] std::string_view url_aggregator::get_hostname() const noexcept
++++    ada_lifetime_bound {
++++  ada_log("url_aggregator::get_hostname");
++++  // Technically, we should check if there is a hostname, but
++++  // the code below works even if there isn't.
++++  // if(!has_hostname()) { return ""; }
++++  size_t start = components.host_start;
++++  // So host_start is not where the host begins.
++++  if (components.host_end > components.host_start &&
++++      buffer[components.host_start] == '@') {
++++    start++;
++++  }
++++  return helpers::substring(buffer, start, components.host_end);
++++}
++++
++++[[nodiscard]] std::string_view url_aggregator::get_pathname() const noexcept
++++    ada_lifetime_bound {
++++  ada_log("url_aggregator::get_pathname pathname_start = ",
++++          components.pathname_start, " buffer.size() = ", buffer.size(),
++++          " components.search_start = ", components.search_start,
++++          " components.hash_start = ", components.hash_start);
++++  auto ending_index = uint32_t(buffer.size());
++++  if (components.search_start != url_components::omitted) {
++++    ending_index = components.search_start;
++++  } else if (components.hash_start != url_components::omitted) {
++++    ending_index = components.hash_start;
++++  }
++++  return helpers::substring(buffer, components.pathname_start, ending_index);
++++}
++++
++++[[nodiscard]] std::string_view url_aggregator::get_search() const noexcept
++++    ada_lifetime_bound {
++++  ada_log("url_aggregator::get_search");
++++  // If this's URL's query is either null or the empty string, then return the
++++  // empty string. Return U+003F (?), followed by this's URL's query.
++++  if (components.search_start == url_components::omitted) {
++++    return "";
++++  }
++++  auto ending_index = uint32_t(buffer.size());
++++  if (components.hash_start != url_components::omitted) {
++++    ending_index = components.hash_start;
++++  }
++++  if (ending_index - components.search_start <= 1) {
++++    return "";
++++  }
++++  return helpers::substring(buffer, components.search_start, ending_index);
++++}
++++
++++[[nodiscard]] std::string_view url_aggregator::get_protocol() const noexcept
++++    ada_lifetime_bound {
++++  ada_log("url_aggregator::get_protocol");
++++  return helpers::substring(buffer, 0, components.protocol_end);
++++}
++++
++++[[nodiscard]] std::string ada::url_aggregator::to_string() const {
++++  ada_log("url_aggregator::to_string buffer:", buffer, " [", buffer.size(),
++++          " bytes]");
++++  if (!is_valid) {
++++    return "null";
++++  }
++++
++++  std::string answer;
++++  auto back = std::back_insert_iterator(answer);
++++  answer.append("{\n");
++++
++++  answer.append("\t\"buffer\":\"");
++++  helpers::encode_json(buffer, back);
++++  answer.append("\",\n");
++++
++++  answer.append("\t\"protocol\":\"");
++++  helpers::encode_json(get_protocol(), back);
++++  answer.append("\",\n");
++++
++++  if (has_credentials()) {
++++    answer.append("\t\"username\":\"");
++++    helpers::encode_json(get_username(), back);
++++    answer.append("\",\n");
++++    answer.append("\t\"password\":\"");
++++    helpers::encode_json(get_password(), back);
++++    answer.append("\",\n");
++++  }
++++
++++  answer.append("\t\"host\":\"");
++++  helpers::encode_json(get_host(), back);
++++  answer.append("\",\n");
++++
++++  answer.append("\t\"path\":\"");
++++  helpers::encode_json(get_pathname(), back);
++++  answer.append("\",\n");
++++  answer.append("\t\"opaque path\":");
++++  answer.append((has_opaque_path ? "true" : "false"));
++++  answer.append(",\n");
++++
++++  if (components.search_start != url_components::omitted) {
++++    answer.append("\t\"query\":\"");
++++    helpers::encode_json(get_search(), back);
++++    answer.append("\",\n");
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    answer.append("\t\"fragment\":\"");
++++    helpers::encode_json(get_hash(), back);
++++    answer.append("\",\n");
++++  }
++++
++++  auto convert_offset_to_string = [](uint32_t offset) -> std::string {
++++    if (offset == url_components::omitted) {
++++      return "null";
++++    } else {
++++      return std::to_string(offset);
++++    }
++++  };
++++
++++  answer.append("\t\"protocol_end\":");
++++  answer.append(convert_offset_to_string(components.protocol_end));
++++  answer.append(",\n");
++++
++++  answer.append("\t\"username_end\":");
++++  answer.append(convert_offset_to_string(components.username_end));
++++  answer.append(",\n");
++++
++++  answer.append("\t\"host_start\":");
++++  answer.append(convert_offset_to_string(components.host_start));
++++  answer.append(",\n");
++++
++++  answer.append("\t\"host_end\":");
++++  answer.append(convert_offset_to_string(components.host_end));
++++  answer.append(",\n");
++++
++++  answer.append("\t\"port\":");
++++  answer.append(convert_offset_to_string(components.port));
++++  answer.append(",\n");
++++
++++  answer.append("\t\"pathname_start\":");
++++  answer.append(convert_offset_to_string(components.pathname_start));
++++  answer.append(",\n");
++++
++++  answer.append("\t\"search_start\":");
++++  answer.append(convert_offset_to_string(components.search_start));
++++  answer.append(",\n");
++++
++++  answer.append("\t\"hash_start\":");
++++  answer.append(convert_offset_to_string(components.hash_start));
++++  answer.append("\n}");
++++
++++  return answer;
++++}
++++
++++[[nodiscard]] bool url_aggregator::has_valid_domain() const noexcept {
++++  if (components.host_start == components.host_end) {
++++    return false;
++++  }
++++  return checkers::verify_dns_length(get_hostname());
++++}
++++
++++bool url_aggregator::parse_ipv4(std::string_view input, bool in_place) {
++++  ada_log("parse_ipv4 ", input, " [", input.size(),
++++          " bytes], overlaps with buffer: ",
++++          helpers::overlaps(input, buffer) ? "yes" : "no");
++++  ADA_ASSERT_TRUE(validate());
++++  const bool trailing_dot = (input.back() == '.');
++++  if (trailing_dot) {
++++    input.remove_suffix(1);
++++  }
++++  size_t digit_count{0};
++++  int pure_decimal_count = 0;  // entries that are decimal
++++  uint64_t ipv4{0};
++++  // we could unroll for better performance?
++++  for (; (digit_count < 4) && !(input.empty()); digit_count++) {
++++    uint32_t
++++        segment_result{};  // If any number exceeds 32 bits, we have an error.
++++    bool is_hex = checkers::has_hex_prefix(input);
++++    if (is_hex && ((input.length() == 2) ||
++++                   ((input.length() > 2) && (input[2] == '.')))) {
++++      // special case
++++      segment_result = 0;
++++      input.remove_prefix(2);
++++    } else {
++++      std::from_chars_result r{};
++++      if (is_hex) {
++++        ada_log("parse_ipv4 trying to parse hex number");
++++        r = std::from_chars(input.data() + 2, input.data() + input.size(),
++++                            segment_result, 16);
++++      } else if ((input.length() >= 2) && input[0] == '0' &&
++++                 checkers::is_digit(input[1])) {
++++        ada_log("parse_ipv4 trying to parse octal number");
++++        r = std::from_chars(input.data() + 1, input.data() + input.size(),
++++                            segment_result, 8);
++++      } else {
++++        ada_log("parse_ipv4 trying to parse decimal number");
++++        pure_decimal_count++;
++++        r = std::from_chars(input.data(), input.data() + input.size(),
++++                            segment_result, 10);
++++      }
++++      if (r.ec != std::errc()) {
++++        ada_log("parse_ipv4 parsing failed");
++++        return is_valid = false;
++++      }
++++      ada_log("parse_ipv4 parsed ", segment_result);
++++      input.remove_prefix(r.ptr - input.data());
++++    }
++++    if (input.empty()) {
++++      // We have the last value.
++++      // At this stage, ipv4 contains digit_count*8 bits.
++++      // So we have 32-digit_count*8 bits left.
++++      if (segment_result >= (uint64_t(1) << (32 - digit_count * 8))) {
++++        return is_valid = false;
++++      }
++++      ipv4 <<= (32 - digit_count * 8);
++++      ipv4 |= segment_result;
++++      goto final;
++++    } else {
++++      // There is more, so that the value must no be larger than 255
++++      // and we must have a '.'.
++++      if ((segment_result > 255) || (input[0] != '.')) {
++++        return is_valid = false;
++++      }
++++      ipv4 <<= 8;
++++      ipv4 |= segment_result;
++++      input.remove_prefix(1);  // remove '.'
++++    }
++++  }
++++  if ((digit_count != 4) || (!input.empty())) {
++++    ada_log("parse_ipv4 found invalid (more than 4 numbers or empty) ");
++++    return is_valid = false;
++++  }
++++final:
++++  ada_log("url_aggregator::parse_ipv4 completed ", get_href(),
++++          " host: ", get_host());
++++
++++  // We could also check r.ptr to see where the parsing ended.
++++  if (in_place && pure_decimal_count == 4 && !trailing_dot) {
++++    ada_log(
++++        "url_aggregator::parse_ipv4 completed and was already correct in the "
++++        "buffer");
++++    // The original input was already all decimal and we validated it. So we
++++    // don't need to do anything.
++++  } else {
++++    ada_log("url_aggregator::parse_ipv4 completed and we need to update it");
++++    // Optimization opportunity: Get rid of unnecessary string return in ipv4
++++    // serializer.
++++    // TODO: This is likely a bug because it goes back update_base_hostname, not
++++    // what we want to do.
++++    update_base_hostname(
++++        ada::serializers::ipv4(ipv4));  // We have to reserialize the address.
++++  }
++++  host_type = IPV4;
++++  ADA_ASSERT_TRUE(validate());
++++  return true;
++++}
++++
++++bool url_aggregator::parse_ipv6(std::string_view input) {
++++  // TODO: Implement in_place optimization: we know that input points
++++  // in the buffer, so we can just check whether the buffer is already
++++  // well formatted.
++++  // TODO: Find a way to merge parse_ipv6 with url.cpp implementation.
++++  ada_log("parse_ipv6 ", input, " [", input.size(), " bytes]");
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  if (input.empty()) {
++++    return is_valid = false;
++++  }
++++  // Let address be a new IPv6 address whose IPv6 pieces are all 0.
++++  std::array<uint16_t, 8> address{};
++++
++++  // Let pieceIndex be 0.
++++  int piece_index = 0;
++++
++++  // Let compress be null.
++++  std::optional<int> compress{};
++++
++++  // Let pointer be a pointer for input.
++++  std::string_view::iterator pointer = input.begin();
++++
++++  // If c is U+003A (:), then:
++++  if (input[0] == ':') {
++++    // If remaining does not start with U+003A (:), validation error, return
++++    // failure.
++++    if (input.size() == 1 || input[1] != ':') {
++++      ada_log("parse_ipv6 starts with : but the rest does not start with :");
++++      return is_valid = false;
++++    }
++++
++++    // Increase pointer by 2.
++++    pointer += 2;
++++
++++    // Increase pieceIndex by 1 and then set compress to pieceIndex.
++++    compress = ++piece_index;
++++  }
++++
++++  // While c is not the EOF code point:
++++  while (pointer != input.end()) {
++++    // If pieceIndex is 8, validation error, return failure.
++++    if (piece_index == 8) {
++++      ada_log("parse_ipv6 piece_index == 8");
++++      return is_valid = false;
++++    }
++++
++++    // If c is U+003A (:), then:
++++    if (*pointer == ':') {
++++      // If compress is non-null, validation error, return failure.
++++      if (compress.has_value()) {
++++        ada_log("parse_ipv6 compress is non-null");
++++        return is_valid = false;
++++      }
++++
++++      // Increase pointer and pieceIndex by 1, set compress to pieceIndex, and
++++      // then continue.
++++      pointer++;
++++      compress = ++piece_index;
++++      continue;
++++    }
++++
++++    // Let value and length be 0.
++++    uint16_t value = 0, length = 0;
++++
++++    // While length is less than 4 and c is an ASCII hex digit,
++++    // set value to value times 0x10 + c interpreted as hexadecimal number, and
++++    // increase pointer and length by 1.
++++    while (length < 4 && pointer != input.end() &&
++++           unicode::is_ascii_hex_digit(*pointer)) {
++++      // https://stackoverflow.com/questions/39060852/why-does-the-addition-of-two-shorts-return-an-int
++++      value = uint16_t(value * 0x10 + unicode::convert_hex_to_binary(*pointer));
++++      pointer++;
++++      length++;
++++    }
++++
++++    // If c is U+002E (.), then:
++++    if (pointer != input.end() && *pointer == '.') {
++++      // If length is 0, validation error, return failure.
++++      if (length == 0) {
++++        ada_log("parse_ipv6 length is 0");
++++        return is_valid = false;
++++      }
++++
++++      // Decrease pointer by length.
++++      pointer -= length;
++++
++++      // If pieceIndex is greater than 6, validation error, return failure.
++++      if (piece_index > 6) {
++++        ada_log("parse_ipv6 piece_index > 6");
++++        return is_valid = false;
++++      }
++++
++++      // Let numbersSeen be 0.
++++      int numbers_seen = 0;
++++
++++      // While c is not the EOF code point:
++++      while (pointer != input.end()) {
++++        // Let ipv4Piece be null.
++++        std::optional<uint16_t> ipv4_piece{};
++++
++++        // If numbersSeen is greater than 0, then:
++++        if (numbers_seen > 0) {
++++          // If c is a U+002E (.) and numbersSeen is less than 4, then increase
++++          // pointer by 1.
++++          if (*pointer == '.' && numbers_seen < 4) {
++++            pointer++;
++++          } else {
++++            // Otherwise, validation error, return failure.
++++            ada_log("parse_ipv6 Otherwise, validation error, return failure");
++++            return is_valid = false;
++++          }
++++        }
++++
++++        // If c is not an ASCII digit, validation error, return failure.
++++        if (pointer == input.end() || !checkers::is_digit(*pointer)) {
++++          ada_log(
++++              "parse_ipv6 If c is not an ASCII digit, validation error, return "
++++              "failure");
++++          return is_valid = false;
++++        }
++++
++++        // While c is an ASCII digit:
++++        while (pointer != input.end() && checkers::is_digit(*pointer)) {
++++          // Let number be c interpreted as decimal number.
++++          int number = *pointer - '0';
++++
++++          // If ipv4Piece is null, then set ipv4Piece to number.
++++          if (!ipv4_piece.has_value()) {
++++            ipv4_piece = number;
++++          }
++++          // Otherwise, if ipv4Piece is 0, validation error, return failure.
++++          else if (ipv4_piece == 0) {
++++            ada_log("parse_ipv6 if ipv4Piece is 0, validation error");
++++            return is_valid = false;
++++          }
++++          // Otherwise, set ipv4Piece to ipv4Piece times 10 + number.
++++          else {
++++            ipv4_piece = *ipv4_piece * 10 + number;
++++          }
++++
++++          // If ipv4Piece is greater than 255, validation error, return failure.
++++          if (ipv4_piece > 255) {
++++            ada_log("parse_ipv6 ipv4_piece > 255");
++++            return is_valid = false;
++++          }
++++
++++          // Increase pointer by 1.
++++          pointer++;
++++        }
++++
++++        // Set address[pieceIndex] to address[pieceIndex] times 0x100 +
++++        // ipv4Piece.
++++        // https://stackoverflow.com/questions/39060852/why-does-the-addition-of-two-shorts-return-an-int
++++        address[piece_index] =
++++            uint16_t(address[piece_index] * 0x100 + *ipv4_piece);
++++
++++        // Increase numbersSeen by 1.
++++        numbers_seen++;
++++
++++        // If numbersSeen is 2 or 4, then increase pieceIndex by 1.
++++        if (numbers_seen == 2 || numbers_seen == 4) {
++++          piece_index++;
++++        }
++++      }
++++
++++      // If numbersSeen is not 4, validation error, return failure.
++++      if (numbers_seen != 4) {
++++        return is_valid = false;
++++      }
++++
++++      // Break.
++++      break;
++++    }
++++    // Otherwise, if c is U+003A (:):
++++    else if ((pointer != input.end()) && (*pointer == ':')) {
++++      // Increase pointer by 1.
++++      pointer++;
++++
++++      // If c is the EOF code point, validation error, return failure.
++++      if (pointer == input.end()) {
++++        ada_log(
++++            "parse_ipv6 If c is the EOF code point, validation error, return "
++++            "failure");
++++        return is_valid = false;
++++      }
++++    }
++++    // Otherwise, if c is not the EOF code point, validation error, return
++++    // failure.
++++    else if (pointer != input.end()) {
++++      ada_log(
++++          "parse_ipv6 Otherwise, if c is not the EOF code point, validation "
++++          "error, return failure");
++++      return is_valid = false;
++++    }
++++
++++    // Set address[pieceIndex] to value.
++++    address[piece_index] = value;
++++
++++    // Increase pieceIndex by 1.
++++    piece_index++;
++++  }
++++
++++  // If compress is non-null, then:
++++  if (compress.has_value()) {
++++    // Let swaps be pieceIndex - compress.
++++    int swaps = piece_index - *compress;
++++
++++    // Set pieceIndex to 7.
++++    piece_index = 7;
++++
++++    // While pieceIndex is not 0 and swaps is greater than 0,
++++    // swap address[pieceIndex] with address[compress + swaps - 1], and then
++++    // decrease both pieceIndex and swaps by 1.
++++    while (piece_index != 0 && swaps > 0) {
++++      std::swap(address[piece_index], address[*compress + swaps - 1]);
++++      piece_index--;
++++      swaps--;
++++    }
++++  }
++++  // Otherwise, if compress is null and pieceIndex is not 8, validation error,
++++  // return failure.
++++  else if (piece_index != 8) {
++++    ada_log(
++++        "parse_ipv6 if compress is null and pieceIndex is not 8, validation "
++++        "error, return failure");
++++    return is_valid = false;
++++  }
++++  // TODO: Optimization opportunity: Get rid of unnecessary string creation.
++++  // TODO: This is likely a bug because it goes back update_base_hostname, not
++++  // what we want to do.
++++  update_base_hostname(ada::serializers::ipv6(address));
++++  ada_log("parse_ipv6 ", get_hostname());
++++  ADA_ASSERT_TRUE(validate());
++++  host_type = IPV6;
++++  return true;
++++}
++++
++++bool url_aggregator::parse_opaque_host(std::string_view input) {
++++  ada_log("parse_opaque_host ", input, " [", input.size(), " bytes]");
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
++++  if (std::any_of(input.begin(), input.end(),
++++                  ada::unicode::is_forbidden_host_code_point)) {
++++    return is_valid = false;
++++  }
++++
++++  // Return the result of running UTF-8 percent-encode on input using the C0
++++  // control percent-encode set.
++++  size_t idx = ada::unicode::percent_encode_index(
++++      input, character_sets::C0_CONTROL_PERCENT_ENCODE);
++++  if (idx == input.size()) {
++++    update_base_hostname(input);
++++  } else {
++++    // We only create a temporary string if we need to.
++++    update_base_hostname(ada::unicode::percent_encode(
++++        input, character_sets::C0_CONTROL_PERCENT_ENCODE, idx));
++++  }
++++  ADA_ASSERT_TRUE(validate());
++++  return true;
++++}
++++
++++[[nodiscard]] std::string url_aggregator::to_diagram() const {
++++  if (!is_valid) {
++++    return "invalid";
++++  }
++++  std::string answer;
++++  answer.append(buffer);
++++  answer.append(" [");
++++  answer.append(std::to_string(buffer.size()));
++++  answer.append(" bytes]");
++++  answer.append("\n");
++++  // first line
++++  std::string line1;
++++  line1.resize(buffer.size(), ' ');
++++  if (components.hash_start != url_components::omitted) {
++++    line1[components.hash_start] = '|';
++++  }
++++  if (components.search_start != url_components::omitted) {
++++    line1[components.search_start] = '|';
++++  }
++++  if (components.pathname_start != buffer.size()) {
++++    line1[components.pathname_start] = '|';
++++  }
++++  if (components.host_end != buffer.size()) {
++++    line1[components.host_end] = '|';
++++  }
++++  if (components.host_start != buffer.size()) {
++++    line1[components.host_start] = '|';
++++  }
++++  if (components.username_end != buffer.size()) {
++++    line1[components.username_end] = '|';
++++  }
++++  if (components.protocol_end != buffer.size()) {
++++    line1[components.protocol_end] = '|';
++++  }
++++  answer.append(line1);
++++  answer.append("\n");
++++
++++  std::string line2 = line1;
++++  if (components.hash_start != url_components::omitted) {
++++    line2[components.hash_start] = '`';
++++    line1[components.hash_start] = ' ';
++++
++++    for (size_t i = components.hash_start + 1; i < line2.size(); i++) {
++++      line2[i] = '-';
++++    }
++++    line2.append(" hash_start");
++++    answer.append(line2);
++++    answer.append("\n");
++++  }
++++
++++  std::string line3 = line1;
++++  if (components.search_start != url_components::omitted) {
++++    line3[components.search_start] = '`';
++++    line1[components.search_start] = ' ';
++++
++++    for (size_t i = components.search_start + 1; i < line3.size(); i++) {
++++      line3[i] = '-';
++++    }
++++    line3.append(" search_start ");
++++    line3.append(std::to_string(components.search_start));
++++    answer.append(line3);
++++    answer.append("\n");
++++  }
++++
++++  std::string line4 = line1;
++++  if (components.pathname_start != buffer.size()) {
++++    line4[components.pathname_start] = '`';
++++    line1[components.pathname_start] = ' ';
++++    for (size_t i = components.pathname_start + 1; i < line4.size(); i++) {
++++      line4[i] = '-';
++++    }
++++    line4.append(" pathname_start ");
++++    line4.append(std::to_string(components.pathname_start));
++++    answer.append(line4);
++++    answer.append("\n");
++++  }
++++
++++  std::string line5 = line1;
++++  if (components.host_end != buffer.size()) {
++++    line5[components.host_end] = '`';
++++    line1[components.host_end] = ' ';
++++
++++    for (size_t i = components.host_end + 1; i < line5.size(); i++) {
++++      line5[i] = '-';
++++    }
++++    line5.append(" host_end ");
++++    line5.append(std::to_string(components.host_end));
++++    answer.append(line5);
++++    answer.append("\n");
++++  }
++++
++++  std::string line6 = line1;
++++  if (components.host_start != buffer.size()) {
++++    line6[components.host_start] = '`';
++++    line1[components.host_start] = ' ';
++++
++++    for (size_t i = components.host_start + 1; i < line6.size(); i++) {
++++      line6[i] = '-';
++++    }
++++    line6.append(" host_start ");
++++    line6.append(std::to_string(components.host_start));
++++    answer.append(line6);
++++    answer.append("\n");
++++  }
++++
++++  std::string line7 = line1;
++++  if (components.username_end != buffer.size()) {
++++    line7[components.username_end] = '`';
++++    line1[components.username_end] = ' ';
++++
++++    for (size_t i = components.username_end + 1; i < line7.size(); i++) {
++++      line7[i] = '-';
++++    }
++++    line7.append(" username_end ");
++++    line7.append(std::to_string(components.username_end));
++++    answer.append(line7);
++++    answer.append("\n");
++++  }
++++
++++  std::string line8 = line1;
++++  if (components.protocol_end != buffer.size()) {
++++    line8[components.protocol_end] = '`';
++++    line1[components.protocol_end] = ' ';
++++
++++    for (size_t i = components.protocol_end + 1; i < line8.size(); i++) {
++++      line8[i] = '-';
++++    }
++++    line8.append(" protocol_end ");
++++    line8.append(std::to_string(components.protocol_end));
++++    answer.append(line8);
++++    answer.append("\n");
++++  }
++++
++++  if (components.hash_start == url_components::omitted) {
++++    answer.append("note: hash omitted\n");
++++  }
++++  if (components.search_start == url_components::omitted) {
++++    answer.append("note: search omitted\n");
++++  }
++++  if (components.protocol_end > buffer.size()) {
++++    answer.append("warning: protocol_end overflows\n");
++++  }
++++  if (components.username_end > buffer.size()) {
++++    answer.append("warning: username_end overflows\n");
++++  }
++++  if (components.host_start > buffer.size()) {
++++    answer.append("warning: host_start overflows\n");
++++  }
++++  if (components.host_end > buffer.size()) {
++++    answer.append("warning: host_end overflows\n");
++++  }
++++  if (components.pathname_start > buffer.size()) {
++++    answer.append("warning: pathname_start overflows\n");
++++  }
++++  return answer;
++++}
++++
++++[[nodiscard]] bool url_aggregator::validate() const noexcept {
++++  if (!is_valid) {
++++    return true;
++++  }
++++  if (!components.check_offset_consistency()) {
++++    ada_log("url_aggregator::validate inconsistent components \n",
++++            to_diagram());
++++    return false;
++++  }
++++  // We have a credible components struct, but let us investivate more
++++  // carefully:
++++  /**
++++   * https://user:pass@example.com:1234/foo/bar?baz#quux
++++   *       |     |    |          | ^^^^|       |   |
++++   *       |     |    |          | |   |       |   `----- hash_start
++++   *       |     |    |          | |   |       `--------- search_start
++++   *       |     |    |          | |   `----------------- pathname_start
++++   *       |     |    |          | `--------------------- port
++++   *       |     |    |          `----------------------- host_end
++++   *       |     |    `---------------------------------- host_start
++++   *       |     `--------------------------------------- username_end
++++   *       `--------------------------------------------- protocol_end
++++   */
++++  if (components.protocol_end == url_components::omitted) {
++++    ada_log("url_aggregator::validate omitted protocol_end \n", to_diagram());
++++    return false;
++++  }
++++  if (components.username_end == url_components::omitted) {
++++    ada_log("url_aggregator::validate omitted username_end \n", to_diagram());
++++    return false;
++++  }
++++  if (components.host_start == url_components::omitted) {
++++    ada_log("url_aggregator::validate omitted host_start \n", to_diagram());
++++    return false;
++++  }
++++  if (components.host_end == url_components::omitted) {
++++    ada_log("url_aggregator::validate omitted host_end \n", to_diagram());
++++    return false;
++++  }
++++  if (components.pathname_start == url_components::omitted) {
++++    ada_log("url_aggregator::validate omitted pathname_start \n", to_diagram());
++++    return false;
++++  }
++++
++++  if (components.protocol_end > buffer.size()) {
++++    ada_log("url_aggregator::validate protocol_end overflow \n", to_diagram());
++++    return false;
++++  }
++++  if (components.username_end > buffer.size()) {
++++    ada_log("url_aggregator::validate username_end overflow \n", to_diagram());
++++    return false;
++++  }
++++  if (components.host_start > buffer.size()) {
++++    ada_log("url_aggregator::validate host_start overflow \n", to_diagram());
++++    return false;
++++  }
++++  if (components.host_end > buffer.size()) {
++++    ada_log("url_aggregator::validate host_end overflow \n", to_diagram());
++++    return false;
++++  }
++++  if (components.pathname_start > buffer.size()) {
++++    ada_log("url_aggregator::validate pathname_start overflow \n",
++++            to_diagram());
++++    return false;
++++  }
++++
++++  if (components.protocol_end > 0) {
++++    if (buffer[components.protocol_end - 1] != ':') {
++++      ada_log(
++++          "url_aggregator::validate missing : at the end of the protocol \n",
++++          to_diagram());
++++      return false;
++++    }
++++  }
++++
++++  if (components.username_end != buffer.size() &&
++++      components.username_end > components.protocol_end + 2) {
++++    if (buffer[components.username_end] != ':' &&
++++        buffer[components.username_end] != '@') {
++++      ada_log(
++++          "url_aggregator::validate missing : or @ at the end of the username "
++++          "\n",
++++          to_diagram());
++++      return false;
++++    }
++++  }
++++
++++  if (components.host_start != buffer.size()) {
++++    if (components.host_start > components.username_end) {
++++      if (buffer[components.host_start] != '@') {
++++        ada_log(
++++            "url_aggregator::validate missing @ at the end of the password \n",
++++            to_diagram());
++++        return false;
++++      }
++++    } else if (components.host_start == components.username_end &&
++++               components.host_end > components.host_start) {
++++      if (components.host_start == components.protocol_end + 2) {
++++        if (buffer[components.protocol_end] != '/' ||
++++            buffer[components.protocol_end + 1] != '/') {
++++          ada_log(
++++              "url_aggregator::validate missing // between protocol and host "
++++              "\n",
++++              to_diagram());
++++          return false;
++++        }
++++      } else {
++++        if (components.host_start > components.protocol_end &&
++++            buffer[components.host_start] != '@') {
++++          ada_log(
++++              "url_aggregator::validate missing @ at the end of the username "
++++              "\n",
++++              to_diagram());
++++          return false;
++++        }
++++      }
++++    } else {
++++      if (components.host_end != components.host_start) {
++++        ada_log("url_aggregator::validate expected omitted host \n",
++++                to_diagram());
++++        return false;
++++      }
++++    }
++++  }
++++  if (components.host_end != buffer.size() &&
++++      components.pathname_start > components.host_end) {
++++    if (components.pathname_start == components.host_end + 2 &&
++++        buffer[components.host_end] == '/' &&
++++        buffer[components.host_end + 1] == '.') {
++++      if (components.pathname_start + 1 >= buffer.size() ||
++++          buffer[components.pathname_start] != '/' ||
++++          buffer[components.pathname_start + 1] != '/') {
++++        ada_log(
++++            "url_aggregator::validate expected the path to begin with // \n",
++++            to_diagram());
++++        return false;
++++      }
++++    } else if (buffer[components.host_end] != ':') {
++++      ada_log("url_aggregator::validate missing : at the port \n",
++++              to_diagram());
++++      return false;
++++    }
++++  }
++++  if (components.pathname_start != buffer.size() &&
++++      components.pathname_start < components.search_start &&
++++      components.pathname_start < components.hash_start && !has_opaque_path) {
++++    if (buffer[components.pathname_start] != '/') {
++++      ada_log("url_aggregator::validate missing / at the path \n",
++++              to_diagram());
++++      return false;
++++    }
++++  }
++++  if (components.search_start != url_components::omitted) {
++++    if (buffer[components.search_start] != '?') {
++++      ada_log("url_aggregator::validate missing ? at the search \n",
++++              to_diagram());
++++      return false;
++++    }
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    if (buffer[components.hash_start] != '#') {
++++      ada_log("url_aggregator::validate missing # at the hash \n",
++++              to_diagram());
++++      return false;
++++    }
++++  }
++++
++++  return true;
++++}
++++
++++void url_aggregator::delete_dash_dot() {
++++  ada_log("url_aggregator::delete_dash_dot");
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(has_dash_dot());
++++  buffer.erase(components.host_end, 2);
++++  components.pathname_start -= 2;
++++  if (components.search_start != url_components::omitted) {
++++    components.search_start -= 2;
++++  }
++++  if (components.hash_start != url_components::omitted) {
++++    components.hash_start -= 2;
++++  }
++++  ADA_ASSERT_TRUE(validate());
++++  ADA_ASSERT_TRUE(!has_dash_dot());
++++}
++++
++++inline void url_aggregator::consume_prepared_path(std::string_view input) {
++++  ada_log("url_aggregator::consume_prepared_path ", input);
++++  /***
++++   * This is largely duplicated code from helpers::parse_prepared_path, which is
++++   * unfortunate. This particular function is nearly identical, except that it
++++   * is a method on url_aggregator. The idea is that the trivial path (which is
++++   * very common) merely appends to the buffer. This is the same trivial path as
++++   * with helpers::parse_prepared_path, except that we have the additional check
++++   * for is_at_path(). Otherwise, we grab a copy of the current path and we
++++   * modify it, and then insert it back into the buffer.
++++   */
++++  uint8_t accumulator = checkers::path_signature(input);
++++  // Let us first detect a trivial case.
++++  // If it is special, we check that we have no dot, no %,  no \ and no
++++  // character needing percent encoding. Otherwise, we check that we have no %,
++++  // no dot, and no character needing percent encoding.
++++  constexpr uint8_t need_encoding = 1;
++++  constexpr uint8_t backslash_char = 2;
++++  constexpr uint8_t dot_char = 4;
++++  constexpr uint8_t percent_char = 8;
++++  bool special = type != ada::scheme::NOT_SPECIAL;
++++  bool may_need_slow_file_handling = (type == ada::scheme::type::FILE &&
++++                                      checkers::is_windows_drive_letter(input));
++++  bool trivial_path =
++++      (special ? (accumulator == 0)
++++               : ((accumulator & (need_encoding | dot_char | percent_char)) ==
++++                  0)) &&
++++      (!may_need_slow_file_handling);
++++  if (accumulator == dot_char && !may_need_slow_file_handling) {
++++    // '4' means that we have at least one dot, but nothing that requires
++++    // percent encoding or decoding. The only part that is not trivial is
++++    // that we may have single dots and double dots path segments.
++++    // If we have such segments, then we either have a path that begins
++++    // with '.' (easy to check), or we have the sequence './'.
++++    // Note: input cannot be empty, it must at least contain one character ('.')
++++    // Note: we know that '\' is not present.
++++    if (input[0] != '.') {
++++      size_t slashdot = input.find("/.");
++++      if (slashdot == std::string_view::npos) {  // common case
++++        trivial_path = true;
++++      } else {  // uncommon
++++        // only three cases matter: /./, /.. or a final /
++++        trivial_path =
++++            !(slashdot + 2 == input.size() || input[slashdot + 2] == '.' ||
++++              input[slashdot + 2] == '/');
++++      }
++++    }
++++  }
++++  if (trivial_path && is_at_path()) {
++++    ada_log("parse_path trivial");
++++    buffer += '/';
++++    buffer += input;
++++    return;
++++  }
++++  std::string path = std::string(get_pathname());
++++  // We are going to need to look a bit at the path, but let us see if we can
++++  // ignore percent encoding *and* backslashes *and* percent characters.
++++  // Except for the trivial case, this is likely to capture 99% of paths out
++++  // there.
++++  bool fast_path =
++++      (special &&
++++       (accumulator & (need_encoding | backslash_char | percent_char)) == 0) &&
++++      (type != ada::scheme::type::FILE);
++++  if (fast_path) {
++++    ada_log("parse_prepared_path fast");
++++    // Here we don't need to worry about \ or percent encoding.
++++    // We also do not have a file protocol. We might have dots, however,
++++    // but dots must as appear as '.', and they cannot be encoded because
++++    // the symbol '%' is not present.
++++    size_t previous_location = 0;  // We start at 0.
++++    do {
++++      size_t new_location = input.find('/', previous_location);
++++      // std::string_view path_view = input;
++++      //  We process the last segment separately:
++++      if (new_location == std::string_view::npos) {
++++        std::string_view path_view = input.substr(previous_location);
++++        if (path_view == "..") {  // The path ends with ..
++++          // e.g., if you receive ".." with an empty path, you go to "/".
++++          if (path.empty()) {
++++            path = '/';
++++            update_base_pathname(path);
++++            return;
++++          }
++++          // Fast case where we have nothing to do:
++++          if (path.back() == '/') {
++++            update_base_pathname(path);
++++            return;
++++          }
++++          // If you have the path "/joe/myfriend",
++++          // then you delete 'myfriend'.
++++          path.resize(path.rfind('/') + 1);
++++          update_base_pathname(path);
++++          return;
++++        }
++++        path += '/';
++++        if (path_view != ".") {
++++          path.append(path_view);
++++        }
++++        update_base_pathname(path);
++++        return;
++++      } else {
++++        // This is a non-final segment.
++++        std::string_view path_view =
++++            input.substr(previous_location, new_location - previous_location);
++++        previous_location = new_location + 1;
++++        if (path_view == "..") {
++++          size_t last_delimiter = path.rfind('/');
++++          if (last_delimiter != std::string::npos) {
++++            path.erase(last_delimiter);
++++          }
++++        } else if (path_view != ".") {
++++          path += '/';
++++          path.append(path_view);
++++        }
++++      }
++++    } while (true);
++++  } else {
++++    ada_log("parse_path slow");
++++    // we have reached the general case
++++    bool needs_percent_encoding = (accumulator & 1);
++++    std::string path_buffer_tmp;
++++    do {
++++      size_t location = (special && (accumulator & 2))
++++                            ? input.find_first_of("/\\")
++++                            : input.find('/');
++++      std::string_view path_view = input;
++++      if (location != std::string_view::npos) {
++++        path_view.remove_suffix(path_view.size() - location);
++++        input.remove_prefix(location + 1);
++++      }
++++      // path_buffer is either path_view or it might point at a percent encoded
++++      // temporary string.
++++      std::string_view path_buffer =
++++          (needs_percent_encoding &&
++++           ada::unicode::percent_encode<false>(
++++               path_view, character_sets::PATH_PERCENT_ENCODE, path_buffer_tmp))
++++              ? path_buffer_tmp
++++              : path_view;
++++      if (unicode::is_double_dot_path_segment(path_buffer)) {
++++        if ((helpers::shorten_path(path, type) || special) &&
++++            location == std::string_view::npos) {
++++          path += '/';
++++        }
++++      } else if (unicode::is_single_dot_path_segment(path_buffer) &&
++++                 (location == std::string_view::npos)) {
++++        path += '/';
++++      }
++++      // Otherwise, if path_buffer is not a single-dot path segment, then:
++++      else if (!unicode::is_single_dot_path_segment(path_buffer)) {
++++        // If url's scheme is "file", url's path is empty, and path_buffer is a
++++        // Windows drive letter, then replace the second code point in
++++        // path_buffer with U+003A (:).
++++        if (type == ada::scheme::type::FILE && path.empty() &&
++++            checkers::is_windows_drive_letter(path_buffer)) {
++++          path += '/';
++++          path += path_buffer[0];
++++          path += ':';
++++          path_buffer.remove_prefix(2);
++++          path.append(path_buffer);
++++        } else {
++++          // Append path_buffer to url's path.
++++          path += '/';
++++          path.append(path_buffer);
++++        }
++++      }
++++      if (location == std::string_view::npos) {
++++        update_base_pathname(path);
++++        return;
++++      }
++++    } while (true);
++++  }
++++}
++++}  // namespace ada
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7324caeb9a6bdadddfd99b1ba58ae1fedbd694a3
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,126 @@@@@
++++#include "ada.h"
++++#include "ada/helpers.h"
++++#include "ada/url_components.h"
++++
++++#include <numeric>
++++#include <string>
++++
++++namespace ada {
++++
++++[[nodiscard]] bool url_components::check_offset_consistency() const noexcept {
++++  /**
++++   * https://user:pass@example.com:1234/foo/bar?baz#quux
++++   *       |     |    |          | ^^^^|       |   |
++++   *       |     |    |          | |   |       |   `----- hash_start
++++   *       |     |    |          | |   |       `--------- search_start
++++   *       |     |    |          | |   `----------------- pathname_start
++++   *       |     |    |          | `--------------------- port
++++   *       |     |    |          `----------------------- host_end
++++   *       |     |    `---------------------------------- host_start
++++   *       |     `--------------------------------------- username_end
++++   *       `--------------------------------------------- protocol_end
++++   */
++++  // These conditions can be made more strict.
++++  uint32_t index = 0;
++++
++++  if (protocol_end == url_components::omitted) {
++++    return false;
++++  }
++++  if (protocol_end < index) {
++++    return false;
++++  }
++++  index = protocol_end;
++++
++++  if (username_end == url_components::omitted) {
++++    return false;
++++  }
++++  if (username_end < index) {
++++    return false;
++++  }
++++  index = username_end;
++++
++++  if (host_start == url_components::omitted) {
++++    return false;
++++  }
++++  if (host_start < index) {
++++    return false;
++++  }
++++  index = host_start;
++++
++++  if (port != url_components::omitted) {
++++    if (port > 0xffff) {
++++      return false;
++++    }
++++    uint32_t port_length = helpers::fast_digit_count(port) + 1;
++++    if (index + port_length < index) {
++++      return false;
++++    }
++++    index += port_length;
++++  }
++++
++++  if (pathname_start == url_components::omitted) {
++++    return false;
++++  }
++++  if (pathname_start < index) {
++++    return false;
++++  }
++++  index = pathname_start;
++++
++++  if (search_start != url_components::omitted) {
++++    if (search_start < index) {
++++      return false;
++++    }
++++    index = search_start;
++++  }
++++
++++  if (hash_start != url_components::omitted) {
++++    if (hash_start < index) {
++++      return false;
++++    }
++++  }
++++
++++  return true;
++++}
++++
++++[[nodiscard]] std::string url_components::to_string() const {
++++  std::string answer;
++++  auto back = std::back_insert_iterator(answer);
++++  answer.append("{\n");
++++
++++  answer.append("\t\"protocol_end\":\"");
++++  helpers::encode_json(std::to_string(protocol_end), back);
++++  answer.append("\",\n");
++++
++++  answer.append("\t\"username_end\":\"");
++++  helpers::encode_json(std::to_string(username_end), back);
++++  answer.append("\",\n");
++++
++++  answer.append("\t\"host_start\":\"");
++++  helpers::encode_json(std::to_string(host_start), back);
++++  answer.append("\",\n");
++++
++++  answer.append("\t\"host_end\":\"");
++++  helpers::encode_json(std::to_string(host_end), back);
++++  answer.append("\",\n");
++++
++++  answer.append("\t\"port\":\"");
++++  helpers::encode_json(std::to_string(port), back);
++++  answer.append("\",\n");
++++
++++  answer.append("\t\"pathname_start\":\"");
++++  helpers::encode_json(std::to_string(pathname_start), back);
++++  answer.append("\",\n");
++++
++++  answer.append("\t\"search_start\":\"");
++++  helpers::encode_json(std::to_string(search_start), back);
++++  answer.append("\",\n");
++++
++++  answer.append("\t\"hash_start\":\"");
++++  helpers::encode_json(std::to_string(hash_start), back);
++++  answer.append("\",\n");
++++
++++  answer.append("\n}");
++++  return answer;
++++}
++++
++++}  // namespace ada
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f9a242b038263572309fdc7b11980f5f5acb685a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,66 @@@@@
++++add_subdirectory(wpt)
++++
++++set(ADA_TEST_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../)
++++if(MSVC)
++++  add_compile_options("/Zi" "/EHsc" "/GR")
++++  add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
++++  add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
++++endif()
++++
++++include(${PROJECT_SOURCE_DIR}/cmake/add-cpp-test.cmake)
++++link_libraries(ada)
++++
++++add_cpp_test(basic_fuzzer)
++++
++++if(MSVC AND BUILD_SHARED_LIBS)
++++  # Copy the ada dll into the directory
++++  add_custom_command(TARGET basic_fuzzer PRE_BUILD        # Adds a pre-build event
++++    COMMAND ${CMAKE_COMMAND} -E copy_if_different  # which executes "cmake -E copy_if_different..."
++++        "$<TARGET_FILE:ada>"      # <--this is in-file
++++        "$<TARGET_FILE_DIR:basic_fuzzer>")                 # <--this is out-file path
++++endif()
++++
++++if(MSVC AND BUILD_SHARED_LIBS)
++++  message(STATUS "For some tests we use Google Test and it fails when building a DLL.")
++++  message(STATUS "Thus the tests are disabled. Sorry.")
++++else()
++++  include(GoogleTest)
++++  add_executable(wpt_tests wpt_tests.cpp)
++++  add_executable(url_components url_components.cpp)
++++  add_executable(basic_tests basic_tests.cpp)
++++  add_executable(from_file_tests from_file_tests.cpp)
++++  add_executable(ada_c ada_c.cpp)
++++  add_executable(url_search_params url_search_params.cpp)
++++
++++  target_link_libraries(wpt_tests PRIVATE simdjson GTest::gtest_main)
++++  target_link_libraries(url_components PRIVATE simdjson GTest::gtest_main)
++++  target_link_libraries(basic_tests PRIVATE simdjson GTest::gtest_main)
++++  target_link_libraries(from_file_tests PRIVATE simdjson GTest::gtest_main)
++++  target_link_libraries(ada_c PRIVATE simdjson GTest::gtest_main)
++++  target_link_libraries(url_search_params PRIVATE simdjson GTest::gtest_main)
++++
++++  gtest_discover_tests(wpt_tests PROPERTIES TEST_DISCOVERY_TIMEOUT 600)
++++  gtest_discover_tests(url_components PROPERTIES TEST_DISCOVERY_TIMEOUT 600)
++++  gtest_discover_tests(basic_tests PROPERTIES TEST_DISCOVERY_TIMEOUT 600)
++++  gtest_discover_tests(from_file_tests PROPERTIES TEST_DISCOVERY_TIMEOUT 600)
++++  gtest_discover_tests(ada_c PROPERTIES TEST_DISCOVERY_TIMEOUT 600)
++++  gtest_discover_tests(url_search_params PROPERTIES TEST_DISCOVERY_TIMEOUT 600)
++++
++++  if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
++++    if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9)
++++      target_link_libraries(wpt_tests PUBLIC stdc++fs)
++++      target_link_libraries(url_components PUBLIC stdc++fs)
++++      target_link_libraries(url_search_params PUBLIC stdc++fs)
++++    endif()
++++  endif()
++++
++++  if(MSVC OR MINGW)
++++    target_compile_definitions(wpt_tests PRIVATE _CRT_SECURE_NO_WARNINGS)
++++    target_compile_definitions(url_components PRIVATE _CRT_SECURE_NO_WARNINGS)
++++    target_compile_definitions(basic_fuzzer PRIVATE _CRT_SECURE_NO_WARNINGS)
++++    target_compile_definitions(from_file_tests PRIVATE _CRT_SECURE_NO_WARNINGS)
++++    target_compile_definitions(basic_tests PRIVATE _CRT_SECURE_NO_WARNINGS)
++++    target_compile_definitions(url_search_params PRIVATE _CRT_SECURE_NO_WARNINGS)
++++  endif()
++++
++++endif()
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..2d68d7998e5f56cba0f834c4ebb0a87d37953568
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,358 @@@@@
++++// gest is a C++ library so we are in C++.
++++#include "gtest/gtest.h"
++++extern "C" {
++++#include "ada_c.h"
++++}
++++
++++template <typename T>
++++std::string convert_string(const T& input) {
++++  printf("result %s \n", std::string(input.data, input.length).c_str());
++++  return std::string(input.data, input.length);
++++}
++++
++++TEST(ada_c, ada_parse) {
++++  std::string_view input =
++++      "https://username:password@www.google.com:8080/"
++++      "pathname?query=true#hash-exists";
++++  ada_url url = ada_parse(input.data(), input.length());
++++
++++  ASSERT_TRUE(ada_is_valid(url));
++++
++++  ada_free(url);
++++
++++  SUCCEED();
++++}
++++
++++TEST(ada_c, ada_parse_with_base) {
++++  std::string_view input = "/hello";
++++  std::string_view base =
++++      "https://username:password@www.google.com:8080/"
++++      "pathname?query=true#hash-exists";
++++  ada_url url = ada_parse_with_base(input.data(), input.length(), base.data(),
++++                                    base.length());
++++
++++  ASSERT_TRUE(ada_is_valid(url));
++++
++++  ada_free(url);
++++
++++  SUCCEED();
++++}
++++
++++TEST(ada_c, getters) {
++++  std::string_view input =
++++      "https://username:password@www.google.com:8080/"
++++      "pathname?query=true#hash-exists";
++++  ada_url url = ada_parse(input.data(), input.length());
++++
++++  ASSERT_TRUE(ada_is_valid(url));
++++
++++  ada_owned_string origin = ada_get_origin(url);
++++  ASSERT_EQ(convert_string(origin), "https://www.google.com:8080");
++++  ada_free_owned_string(origin);
++++
++++  ASSERT_EQ(convert_string(ada_get_href(url)),
++++            "https://username:password@www.google.com:8080/"
++++            "pathname?query=true#hash-exists");
++++  ASSERT_EQ(convert_string(ada_get_username(url)), "username");
++++  ASSERT_EQ(convert_string(ada_get_password(url)), "password");
++++  ASSERT_EQ(convert_string(ada_get_port(url)), "8080");
++++  ASSERT_EQ(convert_string(ada_get_hash(url)), "#hash-exists");
++++  ASSERT_EQ(convert_string(ada_get_host(url)), "www.google.com:8080");
++++  ASSERT_EQ(convert_string(ada_get_hostname(url)), "www.google.com");
++++  ASSERT_EQ(convert_string(ada_get_pathname(url)), "/pathname");
++++  ASSERT_EQ(convert_string(ada_get_search(url)), "?query=true");
++++  ASSERT_EQ(convert_string(ada_get_protocol(url)), "https:");
++++
++++  ada_free(url);
++++
++++  SUCCEED();
++++}
++++
++++TEST(ada_c, setters) {
++++  std::string input =
++++      "https://username:password@www.google.com:8080/"
++++      "pathname?query=true#hash-exists";
++++  ada_url url = ada_parse(input.data(), input.length());
++++
++++  ASSERT_TRUE(ada_is_valid(url));
++++
++++  ada_set_href(url, "https://www.yagiz.co", strlen("https://www.yagiz.co"));
++++  ASSERT_EQ(convert_string(ada_get_href(url)), "https://www.yagiz.co/");
++++
++++  ada_set_username(url, "new-username", strlen("new-username"));
++++  ASSERT_EQ(convert_string(ada_get_username(url)), "new-username");
++++
++++  ada_set_password(url, "new-password", strlen("new-password"));
++++  ASSERT_EQ(convert_string(ada_get_password(url)), "new-password");
++++
++++  ada_set_port(url, "4242", 4);
++++  ASSERT_EQ(convert_string(ada_get_port(url)), "4242");
++++  ada_clear_port(url);
++++  ASSERT_EQ(convert_string(ada_get_port(url)), "");
++++  ASSERT_FALSE(ada_has_port(url));
++++
++++  ada_set_hash(url, "new-hash", strlen("new-hash"));
++++  ASSERT_EQ(convert_string(ada_get_hash(url)), "#new-hash");
++++  ada_clear_hash(url);
++++  ASSERT_FALSE(ada_has_hash(url));
++++
++++  ada_set_hostname(url, "new-host", strlen("new-host"));
++++  ASSERT_EQ(convert_string(ada_get_hostname(url)), "new-host");
++++
++++  ada_set_host(url, "changed-host:9090", strlen("changed-host:9090"));
++++  ASSERT_EQ(convert_string(ada_get_host(url)), "changed-host:9090");
++++
++++  ada_set_pathname(url, "new-pathname", strlen("new-pathname"));
++++  ASSERT_EQ(convert_string(ada_get_pathname(url)), "/new-pathname");
++++
++++  ada_set_search(url, "new-search", strlen("new-search"));
++++  ASSERT_EQ(convert_string(ada_get_search(url)), "?new-search");
++++  ada_clear_search(url);
++++  ASSERT_EQ(convert_string(ada_get_search(url)), "");
++++
++++  ada_set_protocol(url, "wss", 3);
++++  ASSERT_EQ(convert_string(ada_get_protocol(url)), "wss:");
++++
++++  ASSERT_EQ(ada_get_host_type(url), 0);
++++
++++  ada_free(url);
++++
++++  SUCCEED();
++++}
++++
++++TEST(ada_c, can_parse) {
++++  std::string input = "https://www.google.com";
++++  std::string path = "/hello-world";
++++
++++  ASSERT_TRUE(ada_can_parse(input.data(), input.length()));
++++  ASSERT_FALSE(ada_can_parse(path.data(), path.length()));
++++  ASSERT_TRUE(ada_can_parse_with_base(path.data(), path.length(), input.data(),
++++                                      input.length()));
++++}
++++
++++TEST(ada_c, ada_url_components) {
++++  std::string input = "https://www.google.com";
++++  ada_url url = ada_parse(input.data(), input.length());
++++  const ada_url_components* components = ada_get_components(url);
++++
++++  ASSERT_EQ(components->protocol_end, 6);
++++  ASSERT_EQ(components->port, ada_url_omitted);
++++  ASSERT_EQ(components->search_start, ada_url_omitted);
++++  ASSERT_EQ(components->hash_start, ada_url_omitted);
++++
++++  ada_free(url);
++++
++++  SUCCEED();
++++}
++++
++++TEST(ada_c, ada_copy) {
++++  std::string lemire_blog = "https://lemire.me";
++++  std::string anonrig_blog = "https://yagiz.co";
++++  ada_url first = ada_parse(lemire_blog.data(), lemire_blog.length());
++++  ada_url second = ada_copy(first);
++++
++++  ASSERT_TRUE(ada_set_href(second, anonrig_blog.data(), anonrig_blog.size()));
++++
++++  ASSERT_EQ(convert_string(ada_get_href(first)), "https://lemire.me/");
++++  ASSERT_EQ(convert_string(ada_get_href(second)), "https://yagiz.co/");
++++
++++  ada_free(first);
++++  ada_free(second);
++++
++++  SUCCEED();
++++}
++++
++++TEST(ada_c, ada_idna) {
++++  std::string_view ascii_input = "straße.de";
++++  std::string_view unicode_input = "xn--strae-oqa.de";
++++  ada_owned_string ascii =
++++      ada_idna_to_ascii(ascii_input.data(), ascii_input.length());
++++  ASSERT_EQ(std::string_view(ascii.data, ascii.length), unicode_input);
++++
++++  ada_owned_string unicode =
++++      ada_idna_to_unicode(unicode_input.data(), unicode_input.length());
++++  ASSERT_EQ(std::string_view(unicode.data, unicode.length), ascii_input);
++++
++++  ada_free_owned_string(ascii);
++++  ada_free_owned_string(unicode);
++++  SUCCEED();
++++}
++++
++++TEST(ada_c, ada_clear_hash) {
++++  // Make sure a hash attribute with `#` is removed.
++++  std::string_view input = "https://www.google.com/hello-world?query=1#";
++++  ada_url out = ada_parse(input.data(), input.size());
++++  ASSERT_TRUE(ada_is_valid(out));
++++
++++  ada_clear_hash(out);
++++  ASSERT_EQ(convert_string(ada_get_hash(out)), "");
++++  ASSERT_FALSE(ada_has_hash(out));
++++  ASSERT_EQ(convert_string(ada_get_href(out)),
++++            "https://www.google.com/hello-world?query=1");
++++
++++  ada_free(out);
++++  SUCCEED();
++++}
++++
++++TEST(ada_c, ada_clear_search) {
++++  // Make sure a search attribute with `?` is removed.
++++  std::string_view input = "https://www.google.com/hello-world?#hash";
++++  ada_url out = ada_parse(input.data(), input.size());
++++  ASSERT_TRUE(ada_is_valid(out));
++++
++++  ada_clear_search(out);
++++  ASSERT_EQ(convert_string(ada_get_search(out)), "");
++++  ASSERT_FALSE(ada_has_search(out));
++++  ASSERT_EQ(convert_string(ada_get_href(out)),
++++            "https://www.google.com/hello-world#hash");
++++
++++  ada_free(out);
++++  SUCCEED();
++++}
++++
++++TEST(ada_c, ada_get_scheme_type) {
++++  std::string_view input;
++++  ada_url out;
++++
++++  input = "http://www.google.com";
++++  out = ada_parse(input.data(), input.size());
++++  ASSERT_TRUE(ada_is_valid(out));
++++  ASSERT_EQ(ada_get_scheme_type(out), 0);
++++
++++  input = "notspecial://www.google.com";
++++  ada_free(out);
++++  out = ada_parse(input.data(), input.size());
++++  ASSERT_TRUE(ada_is_valid(out));
++++  ASSERT_EQ(ada_get_scheme_type(out), 1);
++++
++++  input = "https://www.google.com";
++++  ada_free(out);
++++  out = ada_parse(input.data(), input.size());
++++  ASSERT_TRUE(ada_is_valid(out));
++++  ASSERT_EQ(ada_get_scheme_type(out), 2);
++++
++++  input = "ws://www.google.com/ws";
++++  ada_free(out);
++++  out = ada_parse(input.data(), input.size());
++++  ASSERT_TRUE(ada_is_valid(out));
++++  ASSERT_EQ(ada_get_scheme_type(out), 3);
++++
++++  input = "ftp://www.google.com/file.txt";
++++  ada_free(out);
++++  out = ada_parse(input.data(), input.size());
++++  ASSERT_TRUE(ada_is_valid(out));
++++  ASSERT_EQ(ada_get_scheme_type(out), 4);
++++
++++  input = "wss://www.google.com/wss";
++++  ada_free(out);
++++  out = ada_parse(input.data(), input.size());
++++  ASSERT_TRUE(ada_is_valid(out));
++++  ASSERT_EQ(ada_get_scheme_type(out), 5);
++++
++++  input = "file:///foo/bar";
++++  ada_free(out);
++++  out = ada_parse(input.data(), input.size());
++++  ASSERT_TRUE(ada_is_valid(out));
++++  ASSERT_EQ(ada_get_scheme_type(out), 6);
++++
++++  ada_free(out);
++++  SUCCEED();
++++}
++++
++++TEST(ada_c, ada_search_params_reset) {
++++  ada_url_search_params out;
++++
++++  std::string_view input = "a=b&c=d&c=e&f=g";
++++  out = ada_parse_search_params(input.data(), input.size());
++++  ASSERT_EQ(ada_search_params_size(out), 4);
++++
++++  std::string_view resetted_value = "a=b";
++++  ada_search_params_reset(out, resetted_value.data(), resetted_value.size());
++++  ASSERT_EQ(ada_search_params_size(out), 1);
++++
++++  ada_free_search_params(out);
++++  SUCCEED();
++++}
++++
++++TEST(ada_c, ada_url_search_params) {
++++  std::string_view input;
++++  ada_url_search_params out;
++++
++++  input = "a=b&c=d&c=e&f=g";
++++  out = ada_parse_search_params(input.data(), input.size());
++++
++++  ASSERT_EQ(ada_search_params_size(out), 4);
++++
++++  std::string key = "key1";
++++  std::string value = "value1";
++++  std::string value2 = "value2";
++++  ada_search_params_append(out, key.c_str(), key.length(), value.c_str(),
++++                           value.length());
++++  ASSERT_EQ(ada_search_params_size(out), 5);
++++
++++  ada_search_params_set(out, key.c_str(), key.length(), value2.c_str(),
++++                        value2.length());
++++  ASSERT_EQ(ada_search_params_size(out), 5);
++++
++++  ASSERT_TRUE(ada_search_params_has(out, key.c_str(), key.length()));
++++  ASSERT_FALSE(ada_search_params_has_value(out, key.c_str(), key.length(),
++++                                           value.c_str(), value.length()));
++++  ASSERT_TRUE(ada_search_params_has_value(out, key.c_str(), key.length(),
++++                                          value2.c_str(), value2.length()));
++++
++++  ada_strings result =
++++      ada_search_params_get_all(out, key.c_str(), key.length());
++++  ASSERT_EQ(ada_strings_size(result), 1);
++++  ada_free_strings(result);
++++
++++  ada_url_search_params_keys_iter keys = ada_search_params_get_keys(out);
++++  ada_url_search_params_values_iter values = ada_search_params_get_values(out);
++++  ada_url_search_params_entries_iter entries =
++++      ada_search_params_get_entries(out);
++++
++++  ASSERT_TRUE(ada_search_params_keys_iter_has_next(keys));
++++  ASSERT_TRUE(ada_search_params_values_iter_has_next(values));
++++  ASSERT_TRUE(ada_search_params_entries_iter_has_next(entries));
++++
++++  ASSERT_EQ(convert_string(ada_search_params_keys_iter_next(keys)), "a");
++++  ASSERT_EQ(convert_string(ada_search_params_keys_iter_next(keys)), "c");
++++  ASSERT_EQ(convert_string(ada_search_params_keys_iter_next(keys)), "c");
++++  ASSERT_EQ(convert_string(ada_search_params_keys_iter_next(keys)), "f");
++++  ASSERT_EQ(convert_string(ada_search_params_keys_iter_next(keys)), "key1");
++++  ASSERT_FALSE(ada_search_params_keys_iter_has_next(keys));
++++
++++  ASSERT_EQ(convert_string(ada_search_params_values_iter_next(values)), "b");
++++  ASSERT_EQ(convert_string(ada_search_params_values_iter_next(values)), "d");
++++  ASSERT_EQ(convert_string(ada_search_params_values_iter_next(values)), "e");
++++  ASSERT_EQ(convert_string(ada_search_params_values_iter_next(values)), "g");
++++  ASSERT_EQ(convert_string(ada_search_params_values_iter_next(values)),
++++            "value2");
++++  ASSERT_FALSE(ada_search_params_values_iter_has_next(values));
++++
++++  ada_string_pair pair = ada_search_params_entries_iter_next(entries);
++++  ASSERT_EQ(convert_string(pair.value), "b");
++++  ASSERT_EQ(convert_string(pair.key), "a");
++++
++++  pair = ada_search_params_entries_iter_next(entries);
++++  ASSERT_EQ(convert_string(pair.value), "d");
++++  ASSERT_EQ(convert_string(pair.key), "c");
++++
++++  while (ada_search_params_entries_iter_has_next(entries)) {
++++    ada_search_params_entries_iter_next(entries);
++++  }
++++
++++  ada_search_params_remove(out, key.c_str(), key.length());
++++  ada_search_params_remove_value(out, key.c_str(), key.length(), value.c_str(),
++++                                 value.length());
++++
++++  ada_owned_string str = ada_search_params_to_string(out);
++++  ASSERT_EQ(convert_string(str), "a=b&c=d&c=e&f=g");
++++
++++  ada_free_search_params_keys_iter(keys);
++++  ada_free_search_params_values_iter(values);
++++  ada_free_search_params_entries_iter(entries);
++++  ada_free_owned_string(str);
++++  ada_free_search_params(out);
++++
++++  SUCCEED();
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a64698acff6631645ca1432d899540ab9205d7a7
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,140 @@@@@
++++#include "ada.h"
++++#include <iostream>
++++#include <memory>
++++
++++std::string url_examples[] = {
++++    "https://www.google.com/"
++++    "webhp?hl=en&amp;ictx=2&amp;sa=X&amp;ved=0ahUKEwil_"
++++    "oSxzJj8AhVtEFkFHTHnCGQQPQgI",
++++    "https://support.google.com/websearch/"
++++    "?p=ws_results_help&amp;hl=en-CA&amp;fg=1",
++++    "https://en.wikipedia.org/wiki/Dog#Roles_with_humans",
++++    "https://www.tiktok.com/@aguyandagolden/video/7133277734310038830",
++++    "https://business.twitter.com/en/help/troubleshooting/"
++++    "how-twitter-ads-work.html?ref=web-twc-ao-gbl-adsinfo&utm_source=twc&utm_"
++++    "medium=web&utm_campaign=ao&utm_content=adsinfo",
++++    "https://images-na.ssl-images-amazon.com/images/I/"
++++    "41Gc3C8UysL.css?AUIClients/AmazonGatewayAuiAssets",
++++    "https://www.reddit.com/?after=t3_zvz1ze",
++++    "https://www.reddit.com/login/?dest=https%3A%2F%2Fwww.reddit.com%2F",
++++    "postgresql://other:9818274x1!!@localhost:5432/"
++++    "otherdb?connect_timeout=10&application_name=myapp",
++++    "http://192.168.1.1",             // ipv4
++++    "http://[2606:4700:4700::1111]",  // ipv6
++++    "https://static.files.bbci.co.uk/orbit/737a4ee2bed596eb65afc4d2ce9af568/js/"
++++    "polyfills.js",
++++    "https://static.files.bbci.co.uk/orbit/737a4ee2bed596eb65afc4d2ce9af568/"
++++    "css/orbit-v5-ltr.min.css",
++++    "https://static.files.bbci.co.uk/orbit/737a4ee2bed596eb65afc4d2ce9af568/js/"
++++    "require.min.js",
++++    "https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_Rg.woff2",
++++    "https://nav.files.bbci.co.uk/searchbox/c8bfe8595e453f2b9483fda4074e9d15/"
++++    "css/box.css",
++++    "https://static.files.bbci.co.uk/cookies/d3bb303e79f041fec95388e04f84e716/"
++++    "cookie-banner/cookie-library.bundle.js",
++++    "https://static.files.bbci.co.uk/account/id-cta/597/style/id-cta.css",
++++    "https://gn-web-assets.api.bbc.com/wwhp/"
++++    "20220908-1153-091014d07889c842a7bdc06e00fa711c9e04f049/responsive/css/"
++++    "old-ie.min.css",
++++    "https://gn-web-assets.api.bbc.com/wwhp/"
++++    "20220908-1153-091014d07889c842a7bdc06e00fa711c9e04f049/modules/vendor/"
++++    "bower/modernizr/modernizr.js"};
++++
++++// This function copies your input onto a memory buffer that
++++// has just the necessary size. This will entice tools to detect
++++// an out-of-bound access.
++++template <class result>
++++ada::result<result> ada_parse(std::string_view view) {
++++  std::unique_ptr<char[]> buffer(new char[view.size()]);
++++  memcpy(buffer.get(), view.data(), view.size());
++++  return ada::parse<result>(std::string_view(buffer.get(), view.size()));
++++}
++++
++++template <class result>
++++size_t fancy_fuzz(size_t N, size_t seed = 0) {
++++  size_t counter = seed;
++++  for (size_t trial = 0; trial < N; trial++) {
++++    std::string copy =
++++        url_examples[(seed++) % (sizeof(url_examples) / sizeof(std::string))];
++++    auto url = ada::parse<result>(copy);
++++    while (url) {
++++      // mutate the string.
++++      int k = ((321321 * counter++) % 3);
++++      switch (k) {
++++        case 0:
++++          copy.erase((11134 * counter++) % copy.size());
++++          break;
++++        case 1:
++++          copy.insert(copy.begin() + (211311 * counter) % copy.size(),
++++                      char((counter + 1) * 777));
++++          counter += 2;
++++          break;
++++        case 2:
++++          copy[(13134 * counter++) % copy.size()] = char(counter++ * 71117);
++++          break;
++++        default:
++++          break;
++++      }
++++      url = ada_parse<result>(copy);
++++    }
++++  }
++++  return counter;
++++}
++++
++++template <class result>
++++size_t simple_fuzz(size_t N, size_t seed = 0) {
++++  size_t counter = seed;
++++  for (size_t trial = 0; trial < N; trial++) {
++++    std::string copy =
++++        url_examples[(seed++) % (sizeof(url_examples) / sizeof(std::string))];
++++    auto url = ada::parse<result>(copy);
++++    while (url) {
++++      // mutate the string.
++++      copy[(13134 * counter++) % copy.size()] = char(counter++ * 71117);
++++      url = ada_parse<result>(copy);
++++    }
++++  }
++++  return counter;
++++}
++++
++++template <class result>
++++size_t roller_fuzz(size_t N) {
++++  size_t valid{};
++++
++++  for (std::string copy : url_examples) {
++++    for (size_t index = 0; index < copy.size(); index++) {
++++      char orig = copy[index];
++++      for (unsigned int value = 0; value < 255; value++) {
++++        copy[index] = char(value);
++++        auto url = ada_parse<result>(copy);
++++        if (url) {
++++          valid++;
++++        }
++++      }
++++      copy[index] = orig;
++++    }
++++  }
++++  return valid;
++++}
++++
++++int main() {
++++#if ADA_IS_BIG_ENDIAN
++++  std::cout << "You have big-endian system." << std::endl;
++++#else
++++  std::cout << "You have litte-endian system." << std::endl;
++++#endif
++++  std::cout << "Running basic fuzzer.\n";
++++  std::cout << "[fancy]  Executed " << fancy_fuzz<ada::url>(100000)
++++            << " mutations.\n";
++++  std::cout << "[simple] Executed " << simple_fuzz<ada::url>(40000)
++++            << " mutations.\n";
++++  std::cout << "[roller] Executed " << roller_fuzz<ada::url>(40000)
++++            << " correct cases.\n";
++++  std::cout << "[fancy]  Executed " << fancy_fuzz<ada::url_aggregator>(100000)
++++            << " mutations.\n";
++++  std::cout << "[simple] Executed " << simple_fuzz<ada::url_aggregator>(40000)
++++            << " mutations.\n";
++++  std::cout << "[roller] Executed " << roller_fuzz<ada::url_aggregator>(40000)
++++            << " correct cases.\n";
++++  return EXIT_SUCCESS;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..d1d452a42328dd6c632901ba0c85f584a215385f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,465 @@@@@
++++#include "ada.h"
++++#include "gtest/gtest.h"
++++#include <cstdlib>
++++#include <iostream>
++++
++++using Types = testing::Types<ada::url, ada::url_aggregator>;
++++template <class T>
++++struct basic_tests : testing::Test {};
++++TYPED_TEST_SUITE(basic_tests, Types);
++++
++++TYPED_TEST(basic_tests, insane_url) {
++++  auto r = ada::parse<ada::url_aggregator>("e:@EEEEEEEEEE");
++++  ASSERT_TRUE(r);
++++  ASSERT_EQ(r->get_protocol(), "e:");
++++  ASSERT_EQ(r->get_username(), "");
++++  ASSERT_EQ(r->get_password(), "");
++++  ASSERT_EQ(r->get_hostname(), "");
++++  ASSERT_EQ(r->get_port(), "");
++++  ASSERT_EQ(r->get_pathname(), "@EEEEEEEEEE");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, bad_percent_encoding) {
++++  auto r = ada::parse<TypeParam>("http://www.google.com/%X%");
++++  ASSERT_TRUE(r);
++++  ASSERT_EQ(r->get_href(), "http://www.google.com/%X%");
++++  r = ada::parse<TypeParam>("http://www.google%X%.com/");
++++  ASSERT_FALSE(r);
++++  r = ada::parse<TypeParam>("http://www.google.com/");
++++  ASSERT_TRUE(r);
++++  r->set_href("http://www.google.com/%X%");
++++  ASSERT_EQ(r->get_href(), "http://www.google.com/%X%");
++++  ASSERT_FALSE(r->set_host("www.google%X%.com"));
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, spaces_spaces) {
++++  auto r = ada::parse<TypeParam>("http://www.google.com/%37/ /");
++++  ASSERT_TRUE(r);
++++  ASSERT_EQ(r->get_href(), "http://www.google.com/%37/%20/");
++++  r->set_href("http://www.google.com/  /  /+/");
++++  ASSERT_TRUE(r);
++++  ASSERT_EQ(r->get_href(), "http://www.google.com/%20%20/%20%20/+/");
++++  r = ada::parse<TypeParam>("http://www.google com/");
++++  ASSERT_FALSE(r);
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, pluses) {
++++  auto r = ada::parse<TypeParam>("http://www.google.com/%37+/");
++++  ASSERT_TRUE(r);
++++  ASSERT_EQ(r->get_href(), "http://www.google.com/%37+/");
++++  r = ada::parse<TypeParam>("http://www.google+com/");
++++  ASSERT_TRUE(r);
++++  ASSERT_EQ(r->get_href(), "http://www.google+com/");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, set_host_should_return_false_sometimes) {
++++  auto r = ada::parse<TypeParam>("mailto:a@b.com");
++++  ASSERT_FALSE(r->set_host("something"));
++++  auto r2 = ada::parse<TypeParam>("mailto:a@b.com");
++++  ASSERT_FALSE(r2->set_host("something"));
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, empty_url_should_return_false) {
++++  auto r = ada::parse<TypeParam>("");
++++  ASSERT_FALSE(r);
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, set_host_should_return_true_sometimes) {
++++  auto r = ada::parse<TypeParam>("https://www.google.com");
++++  ASSERT_TRUE(r->set_host("something"));
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, set_hostname_should_return_false_sometimes) {
++++  auto r = ada::parse<TypeParam>("mailto:a@b.com");
++++  ASSERT_FALSE(r->set_hostname("something"));
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, set_hostname_should_return_true_sometimes) {
++++  auto r = ada::parse<TypeParam>("https://www.google.com");
++++  ASSERT_TRUE(r->set_hostname("something"));
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, readme) {
++++  auto url = ada::parse<TypeParam>("https://www.google.com");
++++  ASSERT_TRUE(bool(url));
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, readme2) {
++++  auto url = ada::parse<TypeParam>("https://www.google.com");
++++  url->set_username("username");
++++  url->set_password("password");
++++  ASSERT_EQ(url->get_href(), "https://username:password@www.google.com/");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, readme3) {
++++  auto url = ada::parse<TypeParam>("https://www.google.com");
++++  ASSERT_EQ(url->set_protocol("wss"), true);
++++  ASSERT_EQ(url->get_protocol(), "wss:");
++++  ASSERT_EQ(url->get_href(), "wss://www.google.com/");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, set_protocol_should_return_false_sometimes) {
++++  auto url = ada::parse<TypeParam>("file:");
++++  ASSERT_EQ(url->set_protocol("https"), false);
++++  ASSERT_EQ(url->set_host("google.com"), true);
++++  ASSERT_EQ(url->get_href(), "file://google.com/");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, set_protocol_should_return_true_sometimes) {
++++  auto url = ada::parse<TypeParam>("file:");
++++  ASSERT_EQ(url->set_host("google.com"), true);
++++  ASSERT_EQ(url->set_protocol("https"), true);
++++  ASSERT_EQ(url->get_href(), "https://google.com/");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, readme4) {
++++  auto url = ada::parse<TypeParam>("https://www.google.com");
++++  url->set_host("github.com");
++++  ASSERT_EQ(url->get_host(), "github.com");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, readme5) {
++++  auto url = ada::parse<TypeParam>("https://www.google.com");
++++  url->set_port("8080");
++++  ASSERT_EQ(url->get_port(), "8080");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, readme6) {
++++  auto url = ada::parse<TypeParam>("https://www.google.com");
++++  url->set_pathname("/my-super-long-path");
++++  ASSERT_EQ(url->get_pathname(), "/my-super-long-path");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, readme7) {
++++  auto url = ada::parse<TypeParam>("https://www.google.com");
++++  url->set_search("target=self");
++++  ASSERT_EQ(url->get_search(), "?target=self");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, readme8) {
++++  auto url = ada::parse<TypeParam>("https://www.google.com");
++++  url->set_hash("is-this-the-real-life");
++++  ASSERT_EQ(url->get_hash(), "#is-this-the-real-life");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, nodejs1) {
++++  auto base = ada::parse<TypeParam>("http://other.com/");
++++  ASSERT_TRUE(base.has_value());
++++  auto url = ada::parse<TypeParam>("http://GOOgoo.com", &base.value());
++++  ASSERT_TRUE(url.has_value());
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, nodejs2) {
++++  auto url = ada::parse<TypeParam>("data:space    ?test");
++++  ASSERT_EQ(url->get_search(), "?test");
++++  url->set_search("");
++++  ASSERT_EQ(url->get_search(), "");
++++  ASSERT_EQ(url->get_pathname(), "space");
++++  ASSERT_EQ(url->get_href(), "data:space");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, nodejs3) {
++++  auto url = ada::parse<TypeParam>("data:space    ?test#test");
++++  ASSERT_EQ(url->get_search(), "?test");
++++  url->set_search("");
++++  ASSERT_EQ(url->get_search(), "");
++++  ASSERT_EQ(url->get_pathname(), "space    ");
++++  ASSERT_EQ(url->get_href(), "data:space    #test");
++++  SUCCEED();
++++}
++++
++++// https://github.com/nodejs/node/issues/46755
++++TYPED_TEST(basic_tests, nodejs4) {
++++  auto url = ada::parse<TypeParam>("file:///var/log/system.log");
++++  url->set_href("http://0300.168.0xF0");
++++  ASSERT_EQ(url->get_protocol(), "http:");
++++  ASSERT_EQ(url->get_href(), "http://192.168.0.240/");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, empty_url) {
++++  auto url = ada::parse<TypeParam>("");
++++  ASSERT_FALSE(url);
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, just_hash) {
++++  auto url = ada::parse<TypeParam>("#x");
++++  ASSERT_FALSE(url);
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, empty_host_dash_dash_path) {
++++  auto url = ada::parse<TypeParam>("something:/.//");
++++  ASSERT_TRUE(url);
++++  ASSERT_FALSE(url->has_opaque_path);
++++  ASSERT_EQ(url->get_href(), "something:/.//");
++++  ASSERT_EQ(url->get_pathname(), "//");
++++  ASSERT_EQ(url->get_hostname(), "");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, confusing_mess) {
++++  auto base_url = ada::parse<TypeParam>("http://example.org/foo/bar");
++++  ASSERT_TRUE(base_url);
++++  auto url = ada::parse<TypeParam>("http://::@c@d:2", &*base_url);
++++  ASSERT_TRUE(url);
++++  ASSERT_FALSE(url->has_opaque_path);
++++  ASSERT_EQ(url->get_hostname(), "d");
++++  ASSERT_EQ(url->get_host(), "d:2");
++++  ASSERT_EQ(url->get_pathname(), "/");
++++  ASSERT_EQ(url->get_href(), "http://:%3A%40c@d:2/");
++++  ASSERT_EQ(url->get_origin(), "http://d:2");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, standard_file) {
++++  auto url = ada::parse<TypeParam>("file:///tmp/mock/path");
++++  ASSERT_TRUE(url);
++++  ASSERT_TRUE(url->has_empty_hostname());
++++  ASSERT_FALSE(url->has_opaque_path);
++++  ASSERT_EQ(url->get_pathname(), "/tmp/mock/path");
++++  ASSERT_EQ(url->get_hostname(), "");
++++  ASSERT_EQ(url->get_host(), "");
++++  ASSERT_EQ(url->get_href(), "file:///tmp/mock/path");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, default_port_should_be_removed) {
++++  auto url = ada::parse<TypeParam>("http://www.google.com:443");
++++  ASSERT_TRUE(url);
++++  url->set_protocol("https");
++++  ASSERT_EQ(url->get_port(), "");
++++  ASSERT_EQ(url->get_host(), "www.google.com");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, test_amazon) {
++++  auto url = ada::parse<TypeParam>("HTTP://AMAZON.COM");
++++  ASSERT_TRUE(url);
++++  ASSERT_EQ(url->get_href(), "http://amazon.com/");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, remove_username) {
++++  auto url = ada::parse<TypeParam>("http://me@example.net");
++++  ASSERT_TRUE(url);
++++  url->set_username("");
++++  ASSERT_EQ(url->get_username(), "");
++++  ASSERT_EQ(url->get_href(), "http://example.net/");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, remove_password) {
++++  auto url = ada::parse<TypeParam>("http://user:pass@example.net");
++++  ASSERT_TRUE(url);
++++  url->set_password("");
++++  ASSERT_EQ(url->get_password(), "");
++++  ASSERT_EQ(url->get_href(), "http://user@example.net/");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, remove_password_with_empty_username) {
++++  auto url = ada::parse<TypeParam>("http://:pass@example.net");
++++  ASSERT_TRUE(url);
++++  url->set_password("");
++++  ASSERT_EQ(url->get_username(), "");
++++  ASSERT_EQ(url->get_password(), "");
++++  ASSERT_EQ(url->get_href(), "http://example.net/");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, should_remove_dash_dot) {
++++  auto url = ada::parse<TypeParam>("non-spec:/.//p");
++++  ASSERT_TRUE(url);
++++  ASSERT_FALSE(url->has_empty_hostname());
++++  ASSERT_FALSE(url->has_hostname());
++++  url->set_hostname("h");
++++  ASSERT_TRUE(url->has_hostname());
++++  ASSERT_FALSE(url->has_empty_hostname());
++++  ASSERT_EQ(url->get_pathname(), "//p");
++++  ASSERT_EQ(url->get_href(), "non-spec://h//p");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, should_remove_dash_dot_with_empty_hostname) {
++++  auto url = ada::parse<TypeParam>("non-spec:/.//p");
++++  ASSERT_TRUE(url);
++++  ASSERT_EQ(url->get_pathname(), "//p");
++++  ASSERT_FALSE(url->has_empty_hostname());
++++  ASSERT_FALSE(url->has_hostname());
++++  url->set_hostname("");
++++  ASSERT_TRUE(url->has_hostname());
++++  ASSERT_TRUE(url->has_empty_hostname());
++++  ASSERT_EQ(url->get_pathname(), "//p");
++++  ASSERT_EQ(url->get_href(), "non-spec:////p");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, should_add_dash_dot_on_pathname) {
++++  auto url = ada::parse<TypeParam>("non-spec:/");
++++  ASSERT_TRUE(url);
++++  url->set_pathname("//p");
++++  ASSERT_EQ(url->get_pathname(), "//p");
++++  ASSERT_EQ(url->get_href(), "non-spec:/.//p");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, should_update_password_correctly) {
++++  auto url = ada::parse<TypeParam>(
++++      "https://username:password@host:8000/path?query#fragment");
++++  ASSERT_TRUE(url);
++++  ASSERT_TRUE(url->set_password("test"));
++++  ASSERT_EQ(url->get_password(), "test");
++++  ASSERT_EQ(url->get_href(),
++++            "https://username:test@host:8000/path?query#fragment");
++++  SUCCEED();
++++}
++++
++++// https://github.com/nodejs/node/issues/47889
++++TYPED_TEST(basic_tests, node_issue_47889) {
++++  auto urlbase = ada::parse<TypeParam>("a:b");
++++  ASSERT_EQ(urlbase->get_href(), "a:b");
++++  ASSERT_EQ(urlbase->get_protocol(), "a:");
++++  ASSERT_EQ(urlbase->get_pathname(), "b");
++++  ASSERT_TRUE(urlbase->has_opaque_path);
++++  ASSERT_TRUE(urlbase);
++++  auto expected_url = ada::parse<TypeParam>("a:b#");
++++  ASSERT_TRUE(expected_url);
++++  ASSERT_TRUE(expected_url->has_opaque_path);
++++  ASSERT_EQ(expected_url->get_href(), "a:b#");
++++  ASSERT_EQ(expected_url->get_pathname(), "b");
++++  auto url = ada::parse<TypeParam>("..#", &*urlbase);
++++  ASSERT_TRUE(url);
++++  ASSERT_TRUE(url->has_opaque_path);
++++  ASSERT_EQ(url->get_href(), "a:b#");
++++  ASSERT_EQ(url->get_pathname(), "b");
++++  SUCCEED();
++++}
++++
++++TEST(basic_tests, can_parse) {
++++  ASSERT_TRUE(ada::can_parse("https://www.yagiz.co"));
++++  std::string_view base = "https://yagiz.co";
++++  ASSERT_TRUE(ada::can_parse("/hello", &base));
++++
++++  std::string_view invalid_base = "!!!!!!!1";
++++  ASSERT_FALSE(ada::can_parse("/hello", &invalid_base));
++++  ASSERT_FALSE(ada::can_parse("!!!"));
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, node_issue_48254) {
++++  auto base_url = ada::parse<TypeParam>("localhost:80");
++++  ASSERT_TRUE(base_url);
++++  ASSERT_EQ(base_url->get_hostname(), "");
++++  ASSERT_EQ(base_url->get_host(), "");
++++  ASSERT_EQ(base_url->get_pathname(), "80");
++++  ASSERT_EQ(base_url->get_href(), "localhost:80");
++++  ASSERT_EQ(base_url->get_origin(), "null");
++++  ASSERT_EQ(base_url->has_opaque_path, true);
++++  auto url = ada::parse<TypeParam>("", &*base_url);
++++  ASSERT_FALSE(url);
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, url_host_type) {
++++  ASSERT_EQ(ada::parse<TypeParam>("http://localhost:3000")->host_type,
++++            ada::url_host_type::DEFAULT);
++++  ASSERT_EQ(ada::parse<TypeParam>("http://0.0.0.0")->host_type,
++++            ada::url_host_type::IPV4);
++++  ASSERT_EQ(
++++      ada::parse<TypeParam>("http://[2001:db8:3333:4444:5555:6666:7777:8888]")
++++          ->host_type,
++++      ada::url_host_type::IPV6);
++++  SUCCEED();
++++}
++++
++++// https://github.com/nodejs/node/issues/49650
++++TYPED_TEST(basic_tests, nodejs_49650) {
++++  auto out = ada::parse<TypeParam>("http://foo");
++++  ASSERT_TRUE(out);
++++  ASSERT_FALSE(out->set_host("::"));
++++  ASSERT_EQ(out->get_href(), "http://foo/");
++++  SUCCEED();
++++}
++++
++++// https://github.com/nodejs/node/issues/50235
++++TYPED_TEST(basic_tests, nodejs_50235) {
++++  auto out = ada::parse<TypeParam>("http://test.com:5/?param=1");
++++  ASSERT_TRUE(out);
++++  ASSERT_TRUE(out->set_pathname("path"));
++++  ASSERT_EQ(out->get_href(), "http://test.com:5/path?param=1");
++++  SUCCEED();
++++}
++++
++++// https://github.com/nodejs/node/issues/51514
++++TYPED_TEST(basic_tests, nodejs_51514) {
++++  auto out = ada::parse<TypeParam>("http://1.1.1.256");
++++  ASSERT_FALSE(out);
++++}
++++
++++// https://github.com/nodejs/node/issues/51593
++++TYPED_TEST(basic_tests, nodejs_51593) {
++++  auto out = ada::parse<TypeParam>("http://\u200b123.123.123.123");
++++  ASSERT_TRUE(out);
++++  ASSERT_EQ(out->get_href(), "http://123.123.123.123/");
++++  SUCCEED();
++++}
++++
++++// https://github.com/nodejs/node/issues/51619
++++TYPED_TEST(basic_tests, nodejs_51619) {
++++  auto out = ada::parse<TypeParam>("https://0.0.0.0x100/");
++++  ASSERT_FALSE(out);
++++  SUCCEED();
++++}
++++
++++// https://github.com/nodejs/undici/pull/2971
++++TYPED_TEST(basic_tests, nodejs_undici_2971) {
++++  std::string_view base =
++++      "https://non-ascii-location-header.sys.workers.dev/redirect";
++++  auto base_url = ada::parse<TypeParam>(base);
++++  ASSERT_TRUE(base_url);
++++  auto out = ada::parse<TypeParam>("/\xec\x95\x88\xeb\x85\x95", &*base_url);
++++  ASSERT_TRUE(out);
++++  ASSERT_EQ(
++++      out->get_href(),
++++      R"(https://non-ascii-location-header.sys.workers.dev/%EC%95%88%EB%85%95)");
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, path_setter_bug) {
++++  std::string_view base = "blob:/?";
++++  auto base_url = ada::parse<ada::url_aggregator>(base);
++++  ASSERT_TRUE(base_url);
++++  ASSERT_TRUE(base_url->validate());
++++  ASSERT_TRUE(base_url->set_pathname("//.."));
++++  ASSERT_TRUE(base_url->validate());
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(basic_tests, negativeport) {
++++  auto url = ada::parse<TypeParam>("https://www.google.com");
++++  ASSERT_FALSE(url->set_port("-1"));
++++  SUCCEED();
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1f10fa850190ae6243d6378d11ce0f7d0d0f3266
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,18 @@@@@
++++#include "ada.h"
++++#include <cstdlib>
++++#include <iostream>
++++#include "gtest/gtest.h"
++++
++++std::string long_way(std::string path) {
++++  ada::result<ada::url> base = ada::parse<ada::url>("file://");
++++  base->set_pathname(path);
++++  return base->get_href();
++++}
++++
++++TEST(from_file_tests, basics) {
++++  for (std::string path :
++++       {"", "fsfds", "C:\\\\blabala\\fdfds\\back.txt", "/home/user/txt.txt",
++++        "/%2e.bar", "/foo/%2e%2", "/foo/..bar", "foo\t%91"}) {
++++    ASSERT_TRUE(long_way(path) == ada::href_from_file(path));
++++  }
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..8e8759cdd9cc4ab77054078c92e9017745577f3e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,24 @@@@@
++++cmake_minimum_required(VERSION 3.15)
++++
++++project(test_ada_install VERSION 0.1.0 LANGUAGES CXX)
++++
++++set(CMAKE_CXX_STANDARD 17)
++++set(CMAKE_CXX_STANDARD_REQUIRED ON)
++++
++++find_package(ada REQUIRED)
++++
++++# You can provide your own code, this is just an example:
++++file(WRITE main.cpp "
++++#include \"ada.h\"
++++#include <iostream>
++++
++++int main(int , char *[]) {
++++  ada::result<ada::url_aggregator> url = ada::parse<ada::url_aggregator>(\"https://www.google.com\");
++++  url->set_protocol(\"http\");
++++  std::cout << url->get_protocol() << std::endl;
++++  std::cout << url->get_host() << std::endl;
++++  return EXIT_SUCCESS;
++++}")
++++
++++add_executable(main main.cpp)
++++target_link_libraries(main PUBLIC ada::ada)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4dfe00069b276c84ba18cb0ae3d3f968d0f31836
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,145 @@@@@
++++#include <cstring>
++++#include <filesystem>
++++#include <iostream>
++++#include <memory>
++++#include <set>
++++
++++#include "simdjson.h"
++++#include "gtest/gtest.h"
++++#include "ada.h"
++++#include "ada/url_components.h"
++++
++++using namespace simdjson;
++++
++++#ifndef WPT_DATA_DIR
++++#define WPT_DATA_DIR "wpt/"
++++#endif
++++const char* URLTESTDATA_JSON = WPT_DATA_DIR "urltestdata.json";
++++
++++// This function copies your input onto a memory buffer that
++++// has just the necessary size. This will entice tools to detect
++++// an out-of-bound access.
++++ada::result<ada::url> ada_parse(std::string_view view,
++++                                const ada::url* base = nullptr) {
++++  std::cout << "about to parse '" << view << "' [" << view.size() << " bytes]"
++++            << std::endl;
++++  std::unique_ptr<char[]> buffer(new char[view.size()]);
++++  memcpy(buffer.get(), view.data(), view.size());
++++  return ada::parse(std::string_view(buffer.get(), view.size()), base);
++++}
++++
++++bool file_exists(const char* filename) {
++++  namespace fs = std::filesystem;
++++  std::filesystem::path f{filename};
++++  if (std::filesystem::exists(filename)) {
++++    std::cout << "  file found: " << filename << std::endl;
++++    return true;
++++  } else {
++++    std::cout << "  file missing: " << filename << std::endl;
++++    return false;
++++  }
++++}
++++
++++TEST(url_components, urltestdata_encoding) {
++++  ondemand::parser parser;
++++  size_t counter{};
++++  ASSERT_TRUE(file_exists(URLTESTDATA_JSON));
++++  padded_string json = padded_string::load(URLTESTDATA_JSON);
++++  ondemand::document doc = parser.iterate(json);
++++  for (auto element : doc.get_array()) {
++++    if (element.type() == ondemand::json_type::string) {
++++      std::string_view comment = element.get_string().value();
++++      std::cout << comment << std::endl;
++++    } else if (element.type() == ondemand::json_type::object) {
++++      ondemand::object object = element.get_object();
++++      std::string element_string =
++++          std::string(std::string_view(object.raw_json()));
++++      object.reset();
++++
++++      auto input_element = object["input"];
++++      std::string_view input{};
++++      bool allow_replacement_characters = true;
++++      ASSERT_FALSE(
++++          input_element.get_string(allow_replacement_characters).get(input));
++++      std::cout << "input='" << input << "' [" << input.size() << " bytes]"
++++                << std::endl;
++++      std::string_view base;
++++      ada::result<ada::url> base_url;
++++      if (!object["base"].get(base)) {
++++        std::cout << "base=" << base << std::endl;
++++        base_url = ada_parse(base);
++++        if (!base_url) {
++++          bool failure = false;
++++          if (!object["failure"].get(failure) && failure == true) {
++++            // We are good. Failure was expected.
++++            continue;  // We can't proceed any further.
++++          } else {
++++            ASSERT_TRUE(base_url.has_value());
++++          }
++++        }
++++      }
++++      bool failure = false;
++++      ada::result<ada::url> input_url = (!object["base"].get(base))
++++                                            ? ada_parse(input, &*base_url)
++++                                            : ada_parse(input);
++++
++++      if (object["failure"].get(failure)) {
++++        auto url = input_url.value();
++++        auto out = url.get_components();
++++        auto href = url.get_href();
++++
++++        ASSERT_EQ(href.substr(0, out.protocol_end), url.get_protocol());
++++
++++        if (!url.username.empty()) {
++++          size_t username_start = href.find(url.username);
++++          ASSERT_EQ(href.substr(username_start, url.username.size()),
++++                    url.get_username());
++++        }
++++
++++        if (!url.password.empty()) {
++++          size_t password_start = out.username_end + 1;
++++          ASSERT_EQ(href.substr(password_start, url.password.size()),
++++                    url.get_password());
++++        }
++++
++++        size_t host_start = out.host_start;
++++        if (url.has_credentials()) {
++++          ASSERT_EQ(url.get_href()[out.host_start], '@');
++++          host_start++;
++++        }
++++        ASSERT_EQ(href.substr(host_start, url.get_hostname().size()),
++++                  url.get_hostname());
++++
++++        if (url.port.has_value()) {
++++          ASSERT_EQ(out.port, url.port.value());
++++        } else {
++++          ASSERT_EQ(out.port, ada::url_components::omitted);
++++        }
++++
++++        if (!url.get_pathname().empty()) {
++++          size_t pathname_end = std::string::npos;
++++          if (out.search_start != ada::url_components::omitted) {
++++            pathname_end = out.search_start;
++++          } else if (out.hash_start != ada::url_components::omitted) {
++++            pathname_end = out.hash_start;
++++          }
++++          ASSERT_EQ(href.substr(out.pathname_start,
++++                                pathname_end - out.pathname_start),
++++                    url.get_pathname());
++++        }
++++
++++        if (!url.get_search().empty()) {
++++          ASSERT_EQ(href.substr(out.search_start, url.get_search().size()),
++++                    url.get_search());
++++        }
++++
++++        if (!url.get_hash().empty()) {
++++          ASSERT_EQ(href.substr(out.hash_start, url.get_hash().size()),
++++                    url.get_hash());
++++        }
++++      }
++++    }
++++  }
++++  std::cout << "Tests executed = " << counter << std::endl;
++++  SUCCEED();
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a9002abcc8d2be4a55550e73ef7d54384eb143ef
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,259 @@@@@
++++#include "ada.h"
++++#include "gtest/gtest.h"
++++
++++TEST(url_search_params, append) {
++++  auto search_params = ada::url_search_params();
++++  search_params.append("key", "value");
++++  ASSERT_EQ(search_params.size(), 1);
++++  ASSERT_TRUE(search_params.has("key"));
++++  search_params.append("key", "value2");
++++  ASSERT_EQ(search_params.size(), 2);
++++  ASSERT_EQ(search_params.get_all("key").size(), 2);
++++  SUCCEED();
++++}
++++
++++TEST(url_search_params, to_string) {
++++  auto search_params = ada::url_search_params();
++++  search_params.append("key1", "value1");
++++  search_params.append("key2", "value2");
++++  ASSERT_EQ(search_params.size(), 2);
++++  ASSERT_EQ(search_params.to_string(), "key1=value1&key2=value2");
++++  SUCCEED();
++++}
++++
++++TEST(url_search_params, with_accents) {
++++  auto search_params = ada::url_search_params();
++++  search_params.append("key1", "été");
++++  search_params.append("key2", "Céline Dion++");
++++  ASSERT_EQ(search_params.size(), 2);
++++  ASSERT_EQ(search_params.to_string(),
++++            "key1=%C3%A9t%C3%A9&key2=C%C3%A9line+Dion%2B%2B");
++++  ASSERT_EQ(search_params.get("key1"), "été");
++++  ASSERT_EQ(search_params.get("key2"), "Céline Dion++");
++++  SUCCEED();
++++}
++++
++++/**
++++ * @see
++++ * https://github.com/web-platform-tests/wpt/blob/master/url/urlsearchparams-stringifier.any.js
++++ */
++++TEST(url_search_params, to_string_serialize_space) {
++++  auto params = ada::url_search_params();
++++  params.append("a", "b c");
++++  ASSERT_EQ(params.to_string(), "a=b+c");
++++  ASSERT_EQ(params.get("a").value(), "b c");
++++  params.remove("a");
++++  params.append("a b", "c");
++++  ASSERT_EQ(params.to_string(), "a+b=c");
++++  params.remove("a b");
++++  ASSERT_EQ(params.to_string(), "");
++++  params.append("a", "");
++++  ASSERT_EQ(params.to_string(), "a=");
++++  params.append("", "");
++++  ASSERT_EQ(params.to_string(), "a=&=");
++++  params.append("", "b");
++++  ASSERT_EQ(params.to_string(), "a=&=&=b");
++++  SUCCEED();
++++}
++++
++++TEST(url_search_params, to_string_serialize_plus) {
++++  auto params = ada::url_search_params();
++++  params.append("a", "b+c");
++++  ASSERT_EQ(params.to_string(), "a=b%2Bc");
++++  params.remove("a");
++++  params.append("a+b", "c");
++++  ASSERT_EQ(params.to_string(), "a%2Bb=c");
++++  SUCCEED();
++++}
++++
++++TEST(url_search_params, to_string_serialize_ampersand) {
++++  auto params = ada::url_search_params();
++++  params.append("&", "a");
++++  ASSERT_EQ(params.to_string(), "%26=a");
++++  params.append("b", "&");
++++  ASSERT_EQ(params.to_string(), "%26=a&b=%26");
++++  SUCCEED();
++++}
++++
++++TEST(url_search_params, set) {
++++  auto search_params = ada::url_search_params();
++++  search_params.append("key1", "value1");
++++  search_params.append("key1", "value2");
++++  ASSERT_EQ(search_params.size(), 2);
++++  search_params.set("key1", "hello");
++++  ASSERT_EQ(search_params.size(), 1);
++++  ASSERT_EQ(search_params.to_string(), "key1=hello");
++++
++++  // reset to initial state
++++  search_params.remove("key1");
++++  search_params.append("key1", "value1");
++++  search_params.append("key1", "value2");
++++  search_params.append("key2", "value1");
++++  search_params.set("key1", "value3");
++++  ASSERT_EQ(search_params.size(), 2);
++++  ASSERT_EQ(search_params.to_string(), "key1=value3&key2=value1");
++++  search_params.set("key1", "value4");
++++  ASSERT_EQ(search_params.to_string(), "key1=value4&key2=value1");
++++
++++  SUCCEED();
++++}
++++
++++TEST(url_search_params, remove) {
++++  auto search_params = ada::url_search_params();
++++  search_params.append("key1", "value1");
++++  search_params.append("key1", "value2");
++++  search_params.append("key2", "value2");
++++  search_params.remove("key2");
++++  ASSERT_EQ(search_params.size(), 2);
++++  ASSERT_EQ(search_params.to_string(), "key1=value1&key1=value2");
++++  search_params.remove("key1", "value2");
++++  ASSERT_EQ(search_params.size(), 1);
++++  ASSERT_EQ(search_params.to_string(), "key1=value1");
++++  SUCCEED();
++++}
++++
++++TEST(url_search_params, sort) {
++++  auto search_params = ada::url_search_params();
++++  search_params.append("bbb", "second");
++++  search_params.append("aaa", "first");
++++  search_params.append("ccc", "third");
++++  ASSERT_EQ(search_params.size(), 3);
++++  search_params.sort();
++++  ASSERT_EQ(search_params.to_string(), "aaa=first&bbb=second&ccc=third");
++++  SUCCEED();
++++}
++++
++++TEST(url_search_params, string_constructor) {
++++  auto p = ada::url_search_params("?a=b");
++++  ASSERT_EQ(p.to_string(), "a=b");
++++  SUCCEED();
++++}
++++
++++TEST(url_search_params, string_constructor_with_empty_input) {
++++  auto p = ada::url_search_params("");
++++  ASSERT_EQ(p.to_string(), "");
++++  ASSERT_EQ(p.size(), 0);
++++  SUCCEED();
++++}
++++
++++TEST(url_search_params, string_constructor_without_value) {
++++  auto p = ada::url_search_params("a=b&c");
++++  ASSERT_EQ(p.to_string(), "a=b&c=");
++++  SUCCEED();
++++}
++++
++++// Taken from
++++// https://github.com/web-platform-tests/wpt/blob/master/url/urlsearchparams-constructor.any.js
++++TEST(url_search_params, string_constructor_with_edge_cases) {
++++  auto p = ada::url_search_params("&a&&& &&&&&a+b=& c&m%c3%b8%c3%b8");
++++  p.to_string();
++++  ASSERT_TRUE(p.has("a"));
++++  ASSERT_TRUE(p.has("a b"));
++++  ASSERT_TRUE(p.has(" "));
++++  ASSERT_TRUE(!p.has("c"));
++++  ASSERT_TRUE(p.has(" c"));
++++  ASSERT_TRUE(p.has("møø"));
++++  SUCCEED();
++++}
++++
++++TEST(url_search_params, has) {
++++  auto search_params = ada::url_search_params("key1=value1&key2=value2");
++++  ASSERT_TRUE(search_params.has("key1"));
++++  ASSERT_TRUE(search_params.has("key2"));
++++  ASSERT_TRUE(search_params.has("key1", "value1"));
++++  ASSERT_TRUE(search_params.has("key2", "value2"));
++++  ASSERT_TRUE(!search_params.has("key3"));
++++  ASSERT_TRUE(!search_params.has("key1", "value2"));
++++  ASSERT_TRUE(!search_params.has("key3", "value3"));
++++  SUCCEED();
++++}
++++
++++TEST(url_search_params, iterators) {
++++  // JS style iterators
++++  auto search_params =
++++      ada::url_search_params("key1=value1&key1=value2&key2=value3");
++++  auto keys = search_params.get_keys();
++++  ASSERT_EQ(keys.next(), "key1");
++++  ASSERT_EQ(keys.next(), "key1");
++++  ASSERT_EQ(keys.next(), "key2");
++++  ASSERT_FALSE(keys.next().has_value());
++++
++++  auto values = search_params.get_values();
++++  ASSERT_EQ(values.next(), "value1");
++++  ASSERT_EQ(values.next(), "value2");
++++  ASSERT_EQ(values.next(), "value3");
++++  ASSERT_FALSE(keys.next().has_value());
++++
++++  auto entries = search_params.get_entries();
++++  auto next = entries.next();
++++  ASSERT_EQ(next->first, "key1");
++++  ASSERT_EQ(next->second, "value1");
++++  next = entries.next();
++++  ASSERT_EQ(next->first, "key1");
++++  ASSERT_EQ(next->second, "value2");
++++  next = entries.next();
++++  ASSERT_EQ(next->first, "key2");
++++  ASSERT_EQ(next->second, "value3");
++++  // At this point we can add a new entry and the iterator will pick it up.
++++  search_params.append("foo", "bar");
++++  next = entries.next();
++++  ASSERT_EQ(next->first, "foo");
++++  ASSERT_EQ(next->second, "bar");
++++
++++  ASSERT_FALSE(entries.next().has_value());
++++
++++  // C++ conventional iterator
++++  std::vector<std::pair<std::string, std::string>> expected = {
++++      {"foo", "bar"},
++++      {"key2", "value3"},
++++      {"key1", "value2"},
++++      {"key1", "value1"},
++++  };
++++  for (auto& entry : search_params) {
++++    auto check = expected.back();
++++    expected.pop_back();
++++    ASSERT_EQ(check.first, entry.first);
++++    ASSERT_EQ(check.second, entry.second);
++++  }
++++  ASSERT_EQ(expected.size(), 0);
++++
++++  SUCCEED();
++++}
++++
++++// https://github.com/cloudflare/workerd/issues/1777
++++TEST(url_search_params, test_to_string_encoding) {
++++  auto search_params =
++++      ada::url_search_params("q1=foo&q2=foo+bar&q3=foo bar&q4=foo/bar");
++++  ASSERT_EQ(search_params.get("q1").value(), "foo");
++++  ASSERT_EQ(search_params.get("q2").value(), "foo bar");
++++  ASSERT_EQ(search_params.get("q3").value(), "foo bar");
++++  ASSERT_EQ(search_params.get("q4").value(), "foo/bar");
++++  ASSERT_EQ(search_params.to_string(),
++++            "q1=foo&q2=foo+bar&q3=foo+bar&q4=foo%2Fbar");
++++  SUCCEED();
++++}
++++
++++// https://github.com/cloudflare/workerd/issues/1777
++++TEST(url_search_params, test_character_set) {
++++  auto search_params = ada::url_search_params("key=value");
++++
++++  // - The application/x-www-form-urlencoded percent-encode set is the component
++++  // percent-encode set and U+0021 (!), U+0027 (') to U+0029 RIGHT PARENTHESIS,
++++  // inclusive, and U+007E (~).
++++  // - The component percent-encode set is the userinfo percent-encode set and
++++  // U+0024 ($) to U+0026 (&), inclusive, U+002B (+), and U+002C (,).
++++  // - The userinfo percent-encode set is the path percent-encode set and U+002F
++++  // (/), U+003A (:), U+003B (;), U+003D (=), U+0040 (@), U+005B ([) to U+005E
++++  // (^), inclusive, and U+007C (|).
++++  std::vector<char> unique_keys = {'/', ':', ';', '=', '@', '[',  ']', '^', '|',
++++                                   '$', '&', '+', ',', '!', '\'', ')', '~'};
++++  for (auto& unique_key : unique_keys) {
++++    auto value = "value" + std::string(1, unique_key);
++++    search_params.set("key", value);
++++    // Getting should return the same thing.
++++    ASSERT_EQ(search_params.get("key").value(), value);
++++    // Stringified version should be percent encoded.
++++    ASSERT_NE(search_params.to_string(), "key=" + value);
++++  }
++++  SUCCEED();
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c57fe331d8833050a202ba168130bcfb3789c3c4
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,13 @@@@@
++++link_libraries(ada)
++++# Node
++++add_executable(wasm-node wasm.cpp)
++++set_target_properties(wasm-node PROPERTIES LINK_FLAGS "-Os -s ENVIRONMENT=node -s EXPORT_NAME=loadWASM -s MODULARIZE=1 --bind")
++++
++++configure_file(test.js.in test.js)
++++
++++find_program(NODEJS_BINARY NAMES node nodejs)
++++if(NODEJS_BINARY)
++++  add_test(NAME wasmtest
++++         COMMAND "${NODEJS_BINARY}" "${CMAKE_CURRENT_BINARY_DIR}/test.js")
++++endif(NODEJS_BINARY)
++++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..9306691b44d2f12d5122d6d9c29d08069127e620
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,33 @@@@@
++++const assert = require('node:assert');
++++const test = require('node:test');
++++const wasm = require('${CMAKE_CURRENT_BINARY_DIR}/wasm-node');
++++
++++function toJS(obj) {
++++  const result = {};
++++  for (const key of Object.keys(obj.__proto__)) {
++++       result[key] = typeof obj[key] === "object" ? toJS(obj[key]) : obj[key];
++++  }
++++  return result;
++++}
++++
++++const expected = {
++++  "result": "success",
++++  "href": "https://google.com/?q=Yagiz#Nizipli",
++++  "type": 2,
++++  "components": {
++++    "protocol_end": 6,
++++    "username_end": 8,
++++    "host_start": 8,
++++    "host_end": 18,
++++    "port": 4294967295,
++++    "pathname_start": 18,
++++    "search_start": 19,
++++    "hash_start": 27
++++  }
++++};
++++
++++test('wasm', async () => {
++++  const { parse } = await wasm();
++++  assert.deepStrictEqual(toJS(parse('https://google.com/?q=Yagiz#Nizipli')), expected);
++++});
++++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3df8e5ab104eafd00305d4265a89dac934e7aaae
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,45 @@@@@
++++#include "ada.h"
++++#include <emscripten/emscripten.h>
++++#include <emscripten/bind.h>
++++
++++using namespace emscripten;
++++
++++struct parse_result {
++++  std::string result;
++++  std::string href;
++++  uint32_t type;
++++  ada::url_components components;
++++};
++++
++++parse_result parse(const std::string &input) {
++++  auto out = ada::parse<ada::url_aggregator>(input);
++++  parse_result result;
++++  if (!out.has_value()) {
++++    result.result = "fail";
++++  } else {
++++    result.result = "success";
++++    result.href = std::string(out->get_href());
++++    result.type = out->type;
++++    result.components = out->get_components();
++++  }
++++  return result;
++++}
++++
++++EMSCRIPTEN_BINDINGS(url_components) {
++++  class_<parse_result>("Result")
++++      .property("result", &parse_result::result)
++++      .property("href", &parse_result::href)
++++      .property("type", &parse_result::type)
++++      .property("components", &parse_result::components);
++++  class_<ada::url_components>("URLComponents")
++++      .property("protocol_end", &ada::url_components::protocol_end)
++++      .property("username_end", &ada::url_components::username_end)
++++      .property("host_start", &ada::url_components::host_start)
++++      .property("host_end", &ada::url_components::host_end)
++++      .property("port", &ada::url_components::port)
++++      .property("pathname_start", &ada::url_components::pathname_start)
++++      .property("search_start", &ada::url_components::search_start)
++++      .property("hash_start", &ada::url_components::hash_start);
++++
++++  function("parse", &parse);
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..06011c207dbb33c80e218aa3e876481d626211bc
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,5 @@@@@
++++
++++file(GLOB_RECURSE wpt_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.json)
++++foreach(wpt_file ${wpt_files})
++++  configure_file(${wpt_file} ${wpt_file} COPYONLY)
++++endforeach(wpt_file)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..669d4b0938204a8b1bb1a4689d3077a3af1c0789
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,9754 @@@@@
++++[
++++  "THIS IS A GENERATED FILE. PLEASE DO NOT MODIFY DIRECTLY. See ../tools/IdnaTestV2-parser.py instead.",
++++  "--exclude-ipv4-like: True; --exclude-std3: True; --exclude_bidi: True",
++++  {
++++    "input": "fass.de",
++++    "output": "fass.de"
++++  },
++++  {
++++    "input": "fa\u00df.de",
++++    "output": "xn--fa-hia.de"
++++  },
++++  {
++++    "input": "Fa\u00df.de",
++++    "output": "xn--fa-hia.de"
++++  },
++++  {
++++    "input": "xn--fa-hia.de",
++++    "output": "xn--fa-hia.de"
++++  },
++++  {
++++    "input": "\u00e0.\u05d0\u0308",
++++    "output": "xn--0ca.xn--ssa73l"
++++  },
++++  {
++++    "input": "a\u0300.\u05d0\u0308",
++++    "output": "xn--0ca.xn--ssa73l"
++++  },
++++  {
++++    "input": "A\u0300.\u05d0\u0308",
++++    "output": "xn--0ca.xn--ssa73l"
++++  },
++++  {
++++    "input": "\u00c0.\u05d0\u0308",
++++    "output": "xn--0ca.xn--ssa73l"
++++  },
++++  {
++++    "input": "xn--0ca.xn--ssa73l",
++++    "output": "xn--0ca.xn--ssa73l"
++++  },
++++  {
++++    "input": "\u00e0\u0308.\u05d0",
++++    "output": "xn--0ca81i.xn--4db"
++++  },
++++  {
++++    "input": "a\u0300\u0308.\u05d0",
++++    "output": "xn--0ca81i.xn--4db"
++++  },
++++  {
++++    "input": "A\u0300\u0308.\u05d0",
++++    "output": "xn--0ca81i.xn--4db"
++++  },
++++  {
++++    "input": "\u00c0\u0308.\u05d0",
++++    "output": "xn--0ca81i.xn--4db"
++++  },
++++  {
++++    "input": "xn--0ca81i.xn--4db",
++++    "output": "xn--0ca81i.xn--4db"
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "a\u200cb",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "A\u200cB",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "A\u200cb",
++++    "output": null
++++  },
++++  {
++++    "input": "ab",
++++    "output": "ab"
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "xn--ab-j1t",
++++    "output": null
++++  },
++++  {
++++    "input": "a\u094d\u200cb",
++++    "output": "xn--ab-fsf604u"
++++  },
++++  {
++++    "input": "A\u094d\u200cB",
++++    "output": "xn--ab-fsf604u"
++++  },
++++  {
++++    "input": "A\u094d\u200cb",
++++    "output": "xn--ab-fsf604u"
++++  },
++++  {
++++    "input": "xn--ab-fsf",
++++    "output": "xn--ab-fsf"
++++  },
++++  {
++++    "input": "a\u094db",
++++    "output": "xn--ab-fsf"
++++  },
++++  {
++++    "input": "A\u094dB",
++++    "output": "xn--ab-fsf"
++++  },
++++  {
++++    "input": "A\u094db",
++++    "output": "xn--ab-fsf"
++++  },
++++  {
++++    "input": "xn--ab-fsf604u",
++++    "output": "xn--ab-fsf604u"
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "a\u200db",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "A\u200dB",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "A\u200db",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "xn--ab-m1t",
++++    "output": null
++++  },
++++  {
++++    "input": "a\u094d\u200db",
++++    "output": "xn--ab-fsf014u"
++++  },
++++  {
++++    "input": "A\u094d\u200dB",
++++    "output": "xn--ab-fsf014u"
++++  },
++++  {
++++    "input": "A\u094d\u200db",
++++    "output": "xn--ab-fsf014u"
++++  },
++++  {
++++    "input": "xn--ab-fsf014u",
++++    "output": "xn--ab-fsf014u"
++++  },
++++  {
++++    "input": "\u00a1",
++++    "output": "xn--7a"
++++  },
++++  {
++++    "input": "xn--7a",
++++    "output": "xn--7a"
++++  },
++++  {
++++    "input": "\u19da",
++++    "output": "xn--pkf"
++++  },
++++  {
++++    "input": "xn--pkf",
++++    "output": "xn--pkf"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "\u3002",
++++    "output": "."
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": ".",
++++    "output": "."
++++  },
++++  {
++++    "input": "\uab60",
++++    "output": "xn--3y9a"
++++  },
++++  {
++++    "input": "xn--3y9a",
++++    "output": "xn--3y9a"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "1234567890\u00e41234567890123456789012345678901234567890123456",
++++    "output": "xn--12345678901234567890123456789012345678901234567890123456-fxe"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "1234567890a\u03081234567890123456789012345678901234567890123456",
++++    "output": "xn--12345678901234567890123456789012345678901234567890123456-fxe"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "1234567890A\u03081234567890123456789012345678901234567890123456",
++++    "output": "xn--12345678901234567890123456789012345678901234567890123456-fxe"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "1234567890\u00c41234567890123456789012345678901234567890123456",
++++    "output": "xn--12345678901234567890123456789012345678901234567890123456-fxe"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "xn--12345678901234567890123456789012345678901234567890123456-fxe",
++++    "output": "xn--12345678901234567890123456789012345678901234567890123456-fxe"
++++  },
++++  {
++++    "input": "www.eXample.cOm",
++++    "output": "www.example.com"
++++  },
++++  {
++++    "input": "B\u00fccher.de",
++++    "output": "xn--bcher-kva.de"
++++  },
++++  {
++++    "input": "Bu\u0308cher.de",
++++    "output": "xn--bcher-kva.de"
++++  },
++++  {
++++    "input": "bu\u0308cher.de",
++++    "output": "xn--bcher-kva.de"
++++  },
++++  {
++++    "input": "b\u00fccher.de",
++++    "output": "xn--bcher-kva.de"
++++  },
++++  {
++++    "input": "B\u00dcCHER.DE",
++++    "output": "xn--bcher-kva.de"
++++  },
++++  {
++++    "input": "BU\u0308CHER.DE",
++++    "output": "xn--bcher-kva.de"
++++  },
++++  {
++++    "input": "xn--bcher-kva.de",
++++    "output": "xn--bcher-kva.de"
++++  },
++++  {
++++    "input": "\u00d6BB",
++++    "output": "xn--bb-eka"
++++  },
++++  {
++++    "input": "O\u0308BB",
++++    "output": "xn--bb-eka"
++++  },
++++  {
++++    "input": "o\u0308bb",
++++    "output": "xn--bb-eka"
++++  },
++++  {
++++    "input": "\u00f6bb",
++++    "output": "xn--bb-eka"
++++  },
++++  {
++++    "input": "\u00d6bb",
++++    "output": "xn--bb-eka"
++++  },
++++  {
++++    "input": "O\u0308bb",
++++    "output": "xn--bb-eka"
++++  },
++++  {
++++    "input": "xn--bb-eka",
++++    "output": "xn--bb-eka"
++++  },
++++  {
++++    "input": "\u03b2\u03cc\u03bb\u03bf\u03c2.com",
++++    "output": "xn--nxasmm1c.com"
++++  },
++++  {
++++    "input": "\u03b2\u03bf\u0301\u03bb\u03bf\u03c2.com",
++++    "output": "xn--nxasmm1c.com"
++++  },
++++  {
++++    "input": "\u0392\u039f\u0301\u039b\u039f\u03a3.COM",
++++    "output": "xn--nxasmq6b.com"
++++  },
++++  {
++++    "input": "\u0392\u038c\u039b\u039f\u03a3.COM",
++++    "output": "xn--nxasmq6b.com"
++++  },
++++  {
++++    "input": "\u03b2\u03cc\u03bb\u03bf\u03c3.com",
++++    "output": "xn--nxasmq6b.com"
++++  },
++++  {
++++    "input": "\u03b2\u03bf\u0301\u03bb\u03bf\u03c3.com",
++++    "output": "xn--nxasmq6b.com"
++++  },
++++  {
++++    "input": "\u0392\u03bf\u0301\u03bb\u03bf\u03c3.com",
++++    "output": "xn--nxasmq6b.com"
++++  },
++++  {
++++    "input": "\u0392\u03cc\u03bb\u03bf\u03c3.com",
++++    "output": "xn--nxasmq6b.com"
++++  },
++++  {
++++    "input": "xn--nxasmq6b.com",
++++    "output": "xn--nxasmq6b.com"
++++  },
++++  {
++++    "input": "\u0392\u03bf\u0301\u03bb\u03bf\u03c2.com",
++++    "output": "xn--nxasmm1c.com"
++++  },
++++  {
++++    "input": "\u0392\u03cc\u03bb\u03bf\u03c2.com",
++++    "output": "xn--nxasmm1c.com"
++++  },
++++  {
++++    "input": "xn--nxasmm1c.com",
++++    "output": "xn--nxasmm1c.com"
++++  },
++++  {
++++    "input": "xn--nxasmm1c",
++++    "output": "xn--nxasmm1c"
++++  },
++++  {
++++    "input": "\u03b2\u03cc\u03bb\u03bf\u03c2",
++++    "output": "xn--nxasmm1c"
++++  },
++++  {
++++    "input": "\u03b2\u03bf\u0301\u03bb\u03bf\u03c2",
++++    "output": "xn--nxasmm1c"
++++  },
++++  {
++++    "input": "\u0392\u039f\u0301\u039b\u039f\u03a3",
++++    "output": "xn--nxasmq6b"
++++  },
++++  {
++++    "input": "\u0392\u038c\u039b\u039f\u03a3",
++++    "output": "xn--nxasmq6b"
++++  },
++++  {
++++    "input": "\u03b2\u03cc\u03bb\u03bf\u03c3",
++++    "output": "xn--nxasmq6b"
++++  },
++++  {
++++    "input": "\u03b2\u03bf\u0301\u03bb\u03bf\u03c3",
++++    "output": "xn--nxasmq6b"
++++  },
++++  {
++++    "input": "\u0392\u03bf\u0301\u03bb\u03bf\u03c3",
++++    "output": "xn--nxasmq6b"
++++  },
++++  {
++++    "input": "\u0392\u03cc\u03bb\u03bf\u03c3",
++++    "output": "xn--nxasmq6b"
++++  },
++++  {
++++    "input": "xn--nxasmq6b",
++++    "output": "xn--nxasmq6b"
++++  },
++++  {
++++    "input": "\u0392\u03cc\u03bb\u03bf\u03c2",
++++    "output": "xn--nxasmm1c"
++++  },
++++  {
++++    "input": "\u0392\u03bf\u0301\u03bb\u03bf\u03c2",
++++    "output": "xn--nxasmm1c"
++++  },
++++  {
++++    "input": "www.\u0dc1\u0dca\u200d\u0dbb\u0dd3.com",
++++    "output": "www.xn--10cl1a0b660p.com"
++++  },
++++  {
++++    "input": "WWW.\u0dc1\u0dca\u200d\u0dbb\u0dd3.COM",
++++    "output": "www.xn--10cl1a0b660p.com"
++++  },
++++  {
++++    "input": "Www.\u0dc1\u0dca\u200d\u0dbb\u0dd3.com",
++++    "output": "www.xn--10cl1a0b660p.com"
++++  },
++++  {
++++    "input": "www.xn--10cl1a0b.com",
++++    "output": "www.xn--10cl1a0b.com"
++++  },
++++  {
++++    "input": "www.\u0dc1\u0dca\u0dbb\u0dd3.com",
++++    "output": "www.xn--10cl1a0b.com"
++++  },
++++  {
++++    "input": "WWW.\u0dc1\u0dca\u0dbb\u0dd3.COM",
++++    "output": "www.xn--10cl1a0b.com"
++++  },
++++  {
++++    "input": "Www.\u0dc1\u0dca\u0dbb\u0dd3.com",
++++    "output": "www.xn--10cl1a0b.com"
++++  },
++++  {
++++    "input": "www.xn--10cl1a0b660p.com",
++++    "output": "www.xn--10cl1a0b660p.com"
++++  },
++++  {
++++    "input": "\u0646\u0627\u0645\u0647\u200c\u0627\u06cc",
++++    "output": "xn--mgba3gch31f060k"
++++  },
++++  {
++++    "input": "xn--mgba3gch31f",
++++    "output": "xn--mgba3gch31f"
++++  },
++++  {
++++    "input": "\u0646\u0627\u0645\u0647\u0627\u06cc",
++++    "output": "xn--mgba3gch31f"
++++  },
++++  {
++++    "input": "xn--mgba3gch31f060k",
++++    "output": "xn--mgba3gch31f060k"
++++  },
++++  {
++++    "input": "xn--mgba3gch31f060k.com",
++++    "output": "xn--mgba3gch31f060k.com"
++++  },
++++  {
++++    "input": "\u0646\u0627\u0645\u0647\u200c\u0627\u06cc.com",
++++    "output": "xn--mgba3gch31f060k.com"
++++  },
++++  {
++++    "input": "\u0646\u0627\u0645\u0647\u200c\u0627\u06cc.COM",
++++    "output": "xn--mgba3gch31f060k.com"
++++  },
++++  {
++++    "input": "xn--mgba3gch31f.com",
++++    "output": "xn--mgba3gch31f.com"
++++  },
++++  {
++++    "input": "\u0646\u0627\u0645\u0647\u0627\u06cc.com",
++++    "output": "xn--mgba3gch31f.com"
++++  },
++++  {
++++    "input": "\u0646\u0627\u0645\u0647\u0627\u06cc.COM",
++++    "output": "xn--mgba3gch31f.com"
++++  },
++++  {
++++    "input": "a.b\uff0ec\u3002d\uff61",
++++    "output": "a.b.c.d."
++++  },
++++  {
++++    "input": "a.b.c\u3002d\u3002",
++++    "output": "a.b.c.d."
++++  },
++++  {
++++    "input": "A.B.C\u3002D\u3002",
++++    "output": "a.b.c.d."
++++  },
++++  {
++++    "input": "A.b.c\u3002D\u3002",
++++    "output": "a.b.c.d."
++++  },
++++  {
++++    "input": "a.b.c.d.",
++++    "output": "a.b.c.d."
++++  },
++++  {
++++    "input": "A.B\uff0eC\u3002D\uff61",
++++    "output": "a.b.c.d."
++++  },
++++  {
++++    "input": "A.b\uff0ec\u3002D\uff61",
++++    "output": "a.b.c.d."
++++  },
++++  {
++++    "input": "U\u0308.xn--tda",
++++    "output": "xn--tda.xn--tda"
++++  },
++++  {
++++    "input": "\u00dc.xn--tda",
++++    "output": "xn--tda.xn--tda"
++++  },
++++  {
++++    "input": "\u00fc.xn--tda",
++++    "output": "xn--tda.xn--tda"
++++  },
++++  {
++++    "input": "u\u0308.xn--tda",
++++    "output": "xn--tda.xn--tda"
++++  },
++++  {
++++    "input": "U\u0308.XN--TDA",
++++    "output": "xn--tda.xn--tda"
++++  },
++++  {
++++    "input": "\u00dc.XN--TDA",
++++    "output": "xn--tda.xn--tda"
++++  },
++++  {
++++    "input": "\u00dc.xn--Tda",
++++    "output": "xn--tda.xn--tda"
++++  },
++++  {
++++    "input": "U\u0308.xn--Tda",
++++    "output": "xn--tda.xn--tda"
++++  },
++++  {
++++    "input": "xn--tda.xn--tda",
++++    "output": "xn--tda.xn--tda"
++++  },
++++  {
++++    "input": "\u00fc.\u00fc",
++++    "output": "xn--tda.xn--tda"
++++  },
++++  {
++++    "input": "u\u0308.u\u0308",
++++    "output": "xn--tda.xn--tda"
++++  },
++++  {
++++    "input": "U\u0308.U\u0308",
++++    "output": "xn--tda.xn--tda"
++++  },
++++  {
++++    "input": "\u00dc.\u00dc",
++++    "output": "xn--tda.xn--tda"
++++  },
++++  {
++++    "input": "\u00dc.\u00fc",
++++    "output": "xn--tda.xn--tda"
++++  },
++++  {
++++    "input": "U\u0308.u\u0308",
++++    "output": "xn--tda.xn--tda"
++++  },
++++  {
++++    "comment": "V1",
++++    "input": "xn--u-ccb",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "a\u2488com",
++++    "output": null
++++  },
++++  {
++++    "input": "a1.com",
++++    "output": "a1.com"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "A\u2488COM",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "A\u2488Com",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--acom-0w1b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--a-ecp.ru",
++++    "output": null
++++  },
++++  {
++++    "comment": "P4",
++++    "input": "xn--0.pt",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--a.pt",
++++    "output": null
++++  },
++++  {
++++    "comment": "P4",
++++    "input": "xn--a-\u00c4.pt",
++++    "output": null
++++  },
++++  {
++++    "comment": "P4",
++++    "input": "xn--a-A\u0308.pt",
++++    "output": null
++++  },
++++  {
++++    "comment": "P4",
++++    "input": "xn--a-a\u0308.pt",
++++    "output": null
++++  },
++++  {
++++    "comment": "P4",
++++    "input": "xn--a-\u00e4.pt",
++++    "output": null
++++  },
++++  {
++++    "comment": "P4",
++++    "input": "XN--A-\u00c4.PT",
++++    "output": null
++++  },
++++  {
++++    "comment": "P4",
++++    "input": "XN--A-A\u0308.PT",
++++    "output": null
++++  },
++++  {
++++    "comment": "P4",
++++    "input": "Xn--A-A\u0308.pt",
++++    "output": null
++++  },
++++  {
++++    "comment": "P4",
++++    "input": "Xn--A-\u00c4.pt",
++++    "output": null
++++  },
++++  {
++++    "comment": "V2 (ignored)",
++++    "input": "xn--xn--a--gua.pt",
++++    "output": "xn--xn--a--gua.pt"
++++  },
++++  {
++++    "input": "\u65e5\u672c\u8a9e\u3002\uff2a\uff30",
++++    "output": "xn--wgv71a119e.jp"
++++  },
++++  {
++++    "input": "\u65e5\u672c\u8a9e\u3002JP",
++++    "output": "xn--wgv71a119e.jp"
++++  },
++++  {
++++    "input": "\u65e5\u672c\u8a9e\u3002jp",
++++    "output": "xn--wgv71a119e.jp"
++++  },
++++  {
++++    "input": "\u65e5\u672c\u8a9e\u3002Jp",
++++    "output": "xn--wgv71a119e.jp"
++++  },
++++  {
++++    "input": "xn--wgv71a119e.jp",
++++    "output": "xn--wgv71a119e.jp"
++++  },
++++  {
++++    "input": "\u65e5\u672c\u8a9e.jp",
++++    "output": "xn--wgv71a119e.jp"
++++  },
++++  {
++++    "input": "\u65e5\u672c\u8a9e.JP",
++++    "output": "xn--wgv71a119e.jp"
++++  },
++++  {
++++    "input": "\u65e5\u672c\u8a9e.Jp",
++++    "output": "xn--wgv71a119e.jp"
++++  },
++++  {
++++    "input": "\u65e5\u672c\u8a9e\u3002\uff4a\uff50",
++++    "output": "xn--wgv71a119e.jp"
++++  },
++++  {
++++    "input": "\u65e5\u672c\u8a9e\u3002\uff2a\uff50",
++++    "output": "xn--wgv71a119e.jp"
++++  },
++++  {
++++    "input": "\u2615",
++++    "output": "xn--53h"
++++  },
++++  {
++++    "input": "xn--53h",
++++    "output": "xn--53h"
++++  },
++++  {
++++    "comment": "C1; C2; A4_2 (ignored)",
++++    "input": "1.a\u00df\u200c\u200db\u200c\u200dc\u00df\u00df\u00df\u00dfd\u03c2\u03c3\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u00dfe\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u00dfx\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u00dfy\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u0302\u00dfz",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; A4_2 (ignored)",
++++    "input": "1.ASS\u200c\u200dB\u200c\u200dCSSSSSSSSD\u03a3\u03a3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSS\u0302SSZ",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; A4_2 (ignored)",
++++    "input": "1.ASS\u200c\u200dB\u200c\u200dCSSSSSSSSD\u03a3\u03a3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSS\u015cSSZ",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; A4_2 (ignored)",
++++    "input": "1.ass\u200c\u200db\u200c\u200dcssssssssd\u03c3\u03c3ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\u015dssz",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; A4_2 (ignored)",
++++    "input": "1.ass\u200c\u200db\u200c\u200dcssssssssd\u03c3\u03c3ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\u0302ssz",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; A4_2 (ignored)",
++++    "input": "1.Ass\u200c\u200db\u200c\u200dcssssssssd\u03c3\u03c3ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\u0302ssz",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; A4_2 (ignored)",
++++    "input": "1.Ass\u200c\u200db\u200c\u200dcssssssssd\u03c3\u03c3ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\u015dssz",
++++    "output": null
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa",
++++    "output": "1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "1.assbcssssssssd\u03c3\u03c3ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\u015dssz",
++++    "output": "1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "1.assbcssssssssd\u03c3\u03c3ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\u0302ssz",
++++    "output": "1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "1.ASSBCSSSSSSSSD\u03a3\u03a3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSSS\u0302SSZ",
++++    "output": "1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "1.ASSBCSSSSSSSSD\u03a3\u03a3SSSSSSSSSSSSSSSSESSSSSSSSSSSSSSSSSSSSXSSSSSSSSSSSSSSSSSSSSYSSSSSSSSSSSSSSS\u015cSSZ",
++++    "output": "1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "1.Assbcssssssssd\u03c3\u03c3ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssss\u015dssz",
++++    "output": "1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "1.Assbcssssssssd\u03c3\u03c3ssssssssssssssssessssssssssssssssssssxssssssssssssssssssssyssssssssssssssss\u0302ssz",
++++    "output": "1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa"
++++  },
++++  {
++++    "comment": "C1; C2; A4_2 (ignored)",
++++    "input": "1.xn--assbcssssssssdssssssssssssssssessssssssssssssssssssxssssssssssssssssssssysssssssssssssssssz-pxq1419aa69989dba9gc",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; A4_2 (ignored)",
++++    "input": "1.A\u00df\u200c\u200db\u200c\u200dc\u00df\u00df\u00df\u00dfd\u03c2\u03c3\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u00dfe\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u00dfx\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u00dfy\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u00df\u0302\u00dfz",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; A4_2 (ignored)",
++++    "input": "1.xn--abcdexyz-qyacaaabaaaaaaabaaaaaaaaabaaaaaaaaabaaaaaaaa010ze2isb1140zba8cc",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200cx\u200dn\u200c-\u200d-b\u00df",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200cX\u200dN\u200c-\u200d-BSS",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200cx\u200dn\u200c-\u200d-bss",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200cX\u200dn\u200c-\u200d-Bss",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--bss",
++++    "output": "xn--bss"
++++  },
++++  {
++++    "input": "\u5919",
++++    "output": "xn--bss"
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "xn--xn--bss-7z6ccid",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200cX\u200dn\u200c-\u200d-B\u00df",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "xn--xn--b-pqa5796ccahd",
++++    "output": null
++++  },
++++  {
++++    "input": "\u02e3\u034f\u2115\u200b\ufe63\u00ad\uff0d\u180c\u212c\ufe00\u017f\u2064\ud835\udd30\udb40\uddef\ufb04",
++++    "output": "xn--bssffl"
++++  },
++++  {
++++    "input": "x\u034fN\u200b-\u00ad-\u180cB\ufe00s\u2064s\udb40\uddefffl",
++++    "output": "xn--bssffl"
++++  },
++++  {
++++    "input": "x\u034fn\u200b-\u00ad-\u180cb\ufe00s\u2064s\udb40\uddefffl",
++++    "output": "xn--bssffl"
++++  },
++++  {
++++    "input": "X\u034fN\u200b-\u00ad-\u180cB\ufe00S\u2064S\udb40\uddefFFL",
++++    "output": "xn--bssffl"
++++  },
++++  {
++++    "input": "X\u034fn\u200b-\u00ad-\u180cB\ufe00s\u2064s\udb40\uddefffl",
++++    "output": "xn--bssffl"
++++  },
++++  {
++++    "input": "xn--bssffl",
++++    "output": "xn--bssffl"
++++  },
++++  {
++++    "input": "\u5921\u591e\u591c\u5919",
++++    "output": "xn--bssffl"
++++  },
++++  {
++++    "input": "\u02e3\u034f\u2115\u200b\ufe63\u00ad\uff0d\u180c\u212c\ufe00S\u2064\ud835\udd30\udb40\uddefFFL",
++++    "output": "xn--bssffl"
++++  },
++++  {
++++    "input": "x\u034fN\u200b-\u00ad-\u180cB\ufe00S\u2064s\udb40\uddefFFL",
++++    "output": "xn--bssffl"
++++  },
++++  {
++++    "input": "\u02e3\u034f\u2115\u200b\ufe63\u00ad\uff0d\u180c\u212c\ufe00s\u2064\ud835\udd30\udb40\uddefffl",
++++    "output": "xn--bssffl"
++++  },
++++  {
++++    "input": "\u00e41234567890123456789012345678901234567890123456789012345",
++++    "output": "xn--1234567890123456789012345678901234567890123456789012345-9te"
++++  },
++++  {
++++    "input": "a\u03081234567890123456789012345678901234567890123456789012345",
++++    "output": "xn--1234567890123456789012345678901234567890123456789012345-9te"
++++  },
++++  {
++++    "input": "A\u03081234567890123456789012345678901234567890123456789012345",
++++    "output": "xn--1234567890123456789012345678901234567890123456789012345-9te"
++++  },
++++  {
++++    "input": "\u00c41234567890123456789012345678901234567890123456789012345",
++++    "output": "xn--1234567890123456789012345678901234567890123456789012345-9te"
++++  },
++++  {
++++    "input": "xn--1234567890123456789012345678901234567890123456789012345-9te",
++++    "output": "xn--1234567890123456789012345678901234567890123456789012345-9te"
++++  },
++++  {
++++    "comment": "V2 (ignored); V3 (ignored); A4_2 (ignored)",
++++    "input": "a.b..-q--a-.e",
++++    "output": "a.b..-q--a-.e"
++++  },
++++  {
++++    "comment": "V2 (ignored); V3 (ignored); A4_2 (ignored)",
++++    "input": "a.b..-q--\u00e4-.e",
++++    "output": "a.b..xn---q----jra.e"
++++  },
++++  {
++++    "comment": "V2 (ignored); V3 (ignored); A4_2 (ignored)",
++++    "input": "a.b..-q--a\u0308-.e",
++++    "output": "a.b..xn---q----jra.e"
++++  },
++++  {
++++    "comment": "V2 (ignored); V3 (ignored); A4_2 (ignored)",
++++    "input": "A.B..-Q--A\u0308-.E",
++++    "output": "a.b..xn---q----jra.e"
++++  },
++++  {
++++    "comment": "V2 (ignored); V3 (ignored); A4_2 (ignored)",
++++    "input": "A.B..-Q--\u00c4-.E",
++++    "output": "a.b..xn---q----jra.e"
++++  },
++++  {
++++    "comment": "V2 (ignored); V3 (ignored); A4_2 (ignored)",
++++    "input": "A.b..-Q--\u00c4-.E",
++++    "output": "a.b..xn---q----jra.e"
++++  },
++++  {
++++    "comment": "V2 (ignored); V3 (ignored); A4_2 (ignored)",
++++    "input": "A.b..-Q--A\u0308-.E",
++++    "output": "a.b..xn---q----jra.e"
++++  },
++++  {
++++    "comment": "V2 (ignored); V3 (ignored); A4_2 (ignored)",
++++    "input": "a.b..xn---q----jra.e",
++++    "output": "a.b..xn---q----jra.e"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "a..c",
++++    "output": "a..c"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "a.-b.",
++++    "output": "a.-b."
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "a.b-.c",
++++    "output": "a.b-.c"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "a.-.c",
++++    "output": "a.-.c"
++++  },
++++  {
++++    "comment": "V2 (ignored)",
++++    "input": "a.bc--de.f",
++++    "output": "a.bc--de.f"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "\u00e4.\u00ad.c",
++++    "output": "xn--4ca..c"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "a\u0308.\u00ad.c",
++++    "output": "xn--4ca..c"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "A\u0308.\u00ad.C",
++++    "output": "xn--4ca..c"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "\u00c4.\u00ad.C",
++++    "output": "xn--4ca..c"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "xn--4ca..c",
++++    "output": "xn--4ca..c"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "\u00e4.-b.",
++++    "output": "xn--4ca.-b."
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "a\u0308.-b.",
++++    "output": "xn--4ca.-b."
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "A\u0308.-B.",
++++    "output": "xn--4ca.-b."
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "\u00c4.-B.",
++++    "output": "xn--4ca.-b."
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "xn--4ca.-b.",
++++    "output": "xn--4ca.-b."
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "\u00e4.b-.c",
++++    "output": "xn--4ca.b-.c"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "a\u0308.b-.c",
++++    "output": "xn--4ca.b-.c"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "A\u0308.B-.C",
++++    "output": "xn--4ca.b-.c"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "\u00c4.B-.C",
++++    "output": "xn--4ca.b-.c"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "\u00c4.b-.C",
++++    "output": "xn--4ca.b-.c"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "A\u0308.b-.C",
++++    "output": "xn--4ca.b-.c"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "xn--4ca.b-.c",
++++    "output": "xn--4ca.b-.c"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "\u00e4.-.c",
++++    "output": "xn--4ca.-.c"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "a\u0308.-.c",
++++    "output": "xn--4ca.-.c"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "A\u0308.-.C",
++++    "output": "xn--4ca.-.c"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "\u00c4.-.C",
++++    "output": "xn--4ca.-.c"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "xn--4ca.-.c",
++++    "output": "xn--4ca.-.c"
++++  },
++++  {
++++    "comment": "V2 (ignored)",
++++    "input": "\u00e4.bc--de.f",
++++    "output": "xn--4ca.bc--de.f"
++++  },
++++  {
++++    "comment": "V2 (ignored)",
++++    "input": "a\u0308.bc--de.f",
++++    "output": "xn--4ca.bc--de.f"
++++  },
++++  {
++++    "comment": "V2 (ignored)",
++++    "input": "A\u0308.BC--DE.F",
++++    "output": "xn--4ca.bc--de.f"
++++  },
++++  {
++++    "comment": "V2 (ignored)",
++++    "input": "\u00c4.BC--DE.F",
++++    "output": "xn--4ca.bc--de.f"
++++  },
++++  {
++++    "comment": "V2 (ignored)",
++++    "input": "\u00c4.bc--De.f",
++++    "output": "xn--4ca.bc--de.f"
++++  },
++++  {
++++    "comment": "V2 (ignored)",
++++    "input": "A\u0308.bc--De.f",
++++    "output": "xn--4ca.bc--de.f"
++++  },
++++  {
++++    "comment": "V2 (ignored)",
++++    "input": "xn--4ca.bc--de.f",
++++    "output": "xn--4ca.bc--de.f"
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "a.b.\u0308c.d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "A.B.\u0308C.D",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "A.b.\u0308c.d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "a.b.xn--c-bcb.d",
++++    "output": null
++++  },
++++  {
++++    "input": "A0",
++++    "output": "a0"
++++  },
++++  {
++++    "input": "0A",
++++    "output": "0a"
++++  },
++++  {
++++    "input": "\u05d0\u05c7",
++++    "output": "xn--vdbr"
++++  },
++++  {
++++    "input": "xn--vdbr",
++++    "output": "xn--vdbr"
++++  },
++++  {
++++    "input": "\u05d09\u05c7",
++++    "output": "xn--9-ihcz"
++++  },
++++  {
++++    "input": "xn--9-ihcz",
++++    "output": "xn--9-ihcz"
++++  },
++++  {
++++    "input": "\u05d0\u05ea",
++++    "output": "xn--4db6c"
++++  },
++++  {
++++    "input": "xn--4db6c",
++++    "output": "xn--4db6c"
++++  },
++++  {
++++    "input": "\u05d0\u05f3\u05ea",
++++    "output": "xn--4db6c0a"
++++  },
++++  {
++++    "input": "xn--4db6c0a",
++++    "output": "xn--4db6c0a"
++++  },
++++  {
++++    "input": "\u05d07\u05ea",
++++    "output": "xn--7-zhc3f"
++++  },
++++  {
++++    "input": "xn--7-zhc3f",
++++    "output": "xn--7-zhc3f"
++++  },
++++  {
++++    "input": "\u05d0\u0667\u05ea",
++++    "output": "xn--4db6c6t"
++++  },
++++  {
++++    "input": "xn--4db6c6t",
++++    "output": "xn--4db6c6t"
++++  },
++++  {
++++    "input": "\u0bb9\u0bcd\u200d",
++++    "output": "xn--dmc4b194h"
++++  },
++++  {
++++    "input": "xn--dmc4b",
++++    "output": "xn--dmc4b"
++++  },
++++  {
++++    "input": "\u0bb9\u0bcd",
++++    "output": "xn--dmc4b"
++++  },
++++  {
++++    "input": "xn--dmc4b194h",
++++    "output": "xn--dmc4b194h"
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u0bb9\u200d",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--dmc",
++++    "output": "xn--dmc"
++++  },
++++  {
++++    "input": "\u0bb9",
++++    "output": "xn--dmc"
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "xn--dmc225h",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "",
++++    "output": ""
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "xn--1ug",
++++    "output": null
++++  },
++++  {
++++    "input": "\u0bb9\u0bcd\u200c",
++++    "output": "xn--dmc4by94h"
++++  },
++++  {
++++    "input": "xn--dmc4by94h",
++++    "output": "xn--dmc4by94h"
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\u0bb9\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "xn--dmc025h",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "xn--0ug",
++++    "output": null
++++  },
++++  {
++++    "input": "\u0644\u0670\u200c\u06ed\u06ef",
++++    "output": "xn--ghb2gxqia7523a"
++++  },
++++  {
++++    "input": "xn--ghb2gxqia",
++++    "output": "xn--ghb2gxqia"
++++  },
++++  {
++++    "input": "\u0644\u0670\u06ed\u06ef",
++++    "output": "xn--ghb2gxqia"
++++  },
++++  {
++++    "input": "xn--ghb2gxqia7523a",
++++    "output": "xn--ghb2gxqia7523a"
++++  },
++++  {
++++    "input": "\u0644\u0670\u200c\u06ef",
++++    "output": "xn--ghb2g3qq34f"
++++  },
++++  {
++++    "input": "xn--ghb2g3q",
++++    "output": "xn--ghb2g3q"
++++  },
++++  {
++++    "input": "\u0644\u0670\u06ef",
++++    "output": "xn--ghb2g3q"
++++  },
++++  {
++++    "input": "xn--ghb2g3qq34f",
++++    "output": "xn--ghb2g3qq34f"
++++  },
++++  {
++++    "input": "\u0644\u200c\u06ed\u06ef",
++++    "output": "xn--ghb25aga828w"
++++  },
++++  {
++++    "input": "xn--ghb25aga",
++++    "output": "xn--ghb25aga"
++++  },
++++  {
++++    "input": "\u0644\u06ed\u06ef",
++++    "output": "xn--ghb25aga"
++++  },
++++  {
++++    "input": "xn--ghb25aga828w",
++++    "output": "xn--ghb25aga828w"
++++  },
++++  {
++++    "input": "\u0644\u200c\u06ef",
++++    "output": "xn--ghb65a953d"
++++  },
++++  {
++++    "input": "xn--ghb65a",
++++    "output": "xn--ghb65a"
++++  },
++++  {
++++    "input": "\u0644\u06ef",
++++    "output": "xn--ghb65a"
++++  },
++++  {
++++    "input": "xn--ghb65a953d",
++++    "output": "xn--ghb65a953d"
++++  },
++++  {
++++    "input": "xn--ghb2gxq",
++++    "output": "xn--ghb2gxq"
++++  },
++++  {
++++    "input": "\u0644\u0670\u06ed",
++++    "output": "xn--ghb2gxq"
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\u06ef\u200c\u06ef",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--cmba",
++++    "output": "xn--cmba"
++++  },
++++  {
++++    "input": "\u06ef\u06ef",
++++    "output": "xn--cmba"
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "xn--cmba004q",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--ghb",
++++    "output": "xn--ghb"
++++  },
++++  {
++++    "input": "\u0644",
++++    "output": "xn--ghb"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "a\u3002\u3002b",
++++    "output": "a..b"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "A\u3002\u3002B",
++++    "output": "a..b"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "a..b",
++++    "output": "a..b"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "..xn--skb",
++++    "output": "..xn--skb"
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\u2495\u221d\u065f\uda0e\udd26\uff0e-\udb40\udd2f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "14.\u221d\u065f\uda0e\udd26.-\udb40\udd2f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "14.xn--7hb713l3v90n.-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn--7hb713lfwbi1311b.-",
++++    "output": null
++++  },
++++  {
++++    "input": "\ua863.\u07cf",
++++    "output": "xn--8c9a.xn--qsb"
++++  },
++++  {
++++    "input": "xn--8c9a.xn--qsb",
++++    "output": "xn--8c9a.xn--qsb"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud97d\udf9c\uff0e\ud803\udfc7\u0fa2\u077d\u0600",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud97d\udf9c\uff0e\ud803\udfc7\u0fa1\u0fb7\u077d\u0600",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud97d\udf9c.\ud803\udfc7\u0fa1\u0fb7\u077d\u0600",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--gw68a.xn--ifb57ev2psc6027m",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud84f\udcd4\u0303.\ud805\udcc2",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--nsa95820a.xn--wz1d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\ud9d4\udfad.\u10b2\ud804\uddc0",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\ud9d4\udfad.\u2d12\ud804\uddc0",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--bn95b.xn--9kj2034e",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ug15083f.xn--9kj2034e",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--bn95b.xn--qnd6272k",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ug15083f.xn--qnd6272k",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u7e71\ud805\uddbf\u200d.\uff18\ufe12",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--gl0as212a.xn--8-o89h",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--1ug6928ac48e.xn--8-o89h",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; A4_2 (ignored)",
++++    "input": "\udb40\uddbe\uff0e\ud838\udc08",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; A4_2 (ignored)",
++++    "input": "\udb40\uddbe.\ud838\udc08",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; A4_2 (ignored)",
++++    "input": ".xn--ph4h",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u00df\u06eb\u3002\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "SS\u06eb\u3002\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "ss\u06eb\u3002\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "Ss\u06eb\u3002\u200d",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--ss-59d.",
++++    "output": "xn--ss-59d."
++++  },
++++  {
++++    "input": "ss\u06eb.",
++++    "output": "xn--ss-59d."
++++  },
++++  {
++++    "input": "SS\u06eb.",
++++    "output": "xn--ss-59d."
++++  },
++++  {
++++    "input": "Ss\u06eb.",
++++    "output": "xn--ss-59d."
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "xn--ss-59d.xn--1ug",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "xn--zca012a.xn--1ug",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\udb41\udc35\u200c\u2488\uff0e\udb40\udf87",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6; A4_2 (ignored)",
++++    "input": "\udb41\udc35\u200c1..\udb40\udf87",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": "xn--1-bs31m..xn--tv36e",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6; A4_2 (ignored)",
++++    "input": "xn--1-rgn37671n..xn--tv36e",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--tshz2001k.xn--tv36e",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ug88o47900b.xn--tv36e",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb3c\ude23\u065f\uaab2\u00df\u3002\udaf1\udce7",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb3c\ude23\u065f\uaab2SS\u3002\udaf1\udce7",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb3c\ude23\u065f\uaab2ss\u3002\udaf1\udce7",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb3c\ude23\u065f\uaab2Ss\u3002\udaf1\udce7",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--ss-3xd2839nncy1m.xn--bb79d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--zca92z0t7n5w96j.xn--bb79d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; P1; V6",
++++    "input": "\u0774\u200c\ud83a\udd3f\u3002\ud8b5\ude10\u425c\u200d\ud9be\udd3c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; P1; V6",
++++    "input": "\u0774\u200c\ud83a\udd1d\u3002\ud8b5\ude10\u425c\u200d\ud9be\udd3c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--4pb2977v.xn--z0nt555ukbnv",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; V6",
++++    "input": "xn--4pb607jjt73a.xn--1ug236ke314donv1a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u3164\u094d\u10a0\u17d0.\u180b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u1160\u094d\u10a0\u17d0.\u180b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u1160\u094d\u2d00\u17d0.\u180b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--n3b742bkqf4ty.",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--n3b468aoqa89r.",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u3164\u094d\u2d00\u17d0.\u180b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--n3b445e53po6d.",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--n3b468azngju2a.",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u2763\u200d\uff0e\u09cd\ud807\udc3d\u0612\ua929",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u2763\u200d.\u09cd\ud807\udc3d\u0612\ua929",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--pei.xn--0fb32q3w7q2g4d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "xn--1ugy10a.xn--0fb32q3w7q2g4d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u0349\u3002\ud85e\udc6b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--nua.xn--bc6k",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud807\udc3f\udb40\udd66\uff0e\u1160",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud807\udc3f\udb40\udd66.\u1160",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--ok3d.xn--psd",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u850f\uff61\ud807\udc3a",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u850f\u3002\ud807\udc3a",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--uy1a.xn--jk3d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--8g1d12120a.xn--5l6h",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud804\udee7\ua9c02\uff61\u39c9\uda09\udd84",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud804\udee7\ua9c02\u3002\u39c9\uda09\udd84",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--2-5z4eu89y.xn--97l02706d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2938\u03c2\ud8ab\udc40\uff61\uffa0",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2938\u03c2\ud8ab\udc40\u3002\u1160",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2938\u03a3\ud8ab\udc40\u3002\u1160",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2938\u03c3\ud8ab\udc40\u3002\u1160",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--4xa192qmp03d.xn--psd",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--3xa392qmp03d.xn--psd",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2938\u03a3\ud8ab\udc40\uff61\uffa0",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2938\u03c3\ud8ab\udc40\uff61\uffa0",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--4xa192qmp03d.xn--cl7c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--3xa392qmp03d.xn--cl7c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\u200d\udb7d\udc56\udb40\udc50\uff0e\u05bd\ud826\udfb0\ua85d\ud800\udee1",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\u200d\udb7d\udc56\udb40\udc50.\u05bd\ud826\udfb0\ua85d\ud800\udee1",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--b726ey18m.xn--ldb8734fg0qcyzzg",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5; V6",
++++    "input": "xn--1ug66101lt8me.xn--ldb8734fg0qcyzzg",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; A4_2 (ignored)",
++++    "input": "\u3002\udbcc\ude35\u03c2\ud8c2\udc07\u3002\ud802\udf88",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; A4_2 (ignored)",
++++    "input": "\u3002\udbcc\ude35\u03a3\ud8c2\udc07\u3002\ud802\udf88",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; A4_2 (ignored)",
++++    "input": "\u3002\udbcc\ude35\u03c3\ud8c2\udc07\u3002\ud802\udf88",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": ".xn--4xa68573c7n64d.xn--f29c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": ".xn--3xa88573c7n64d.xn--f29c",
++++    "output": null
++++  },
++++  {
++++    "input": "\ud83a\udd37.\ud802\udf90\ud83a\udc81\ud803\ude60\u0624",
++++    "output": "xn--ve6h.xn--jgb1694kz0b2176a"
++++  },
++++  {
++++    "input": "\ud83a\udd37.\ud802\udf90\ud83a\udc81\ud803\ude60\u0648\u0654",
++++    "output": "xn--ve6h.xn--jgb1694kz0b2176a"
++++  },
++++  {
++++    "input": "\ud83a\udd15.\ud802\udf90\ud83a\udc81\ud803\ude60\u0648\u0654",
++++    "output": "xn--ve6h.xn--jgb1694kz0b2176a"
++++  },
++++  {
++++    "input": "\ud83a\udd15.\ud802\udf90\ud83a\udc81\ud803\ude60\u0624",
++++    "output": "xn--ve6h.xn--jgb1694kz0b2176a"
++++  },
++++  {
++++    "input": "xn--ve6h.xn--jgb1694kz0b2176a",
++++    "output": "xn--ve6h.xn--jgb1694kz0b2176a"
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "-\udb40\ude56\ua867\uff0e\udb40\ude82\ud8dc\udd83\ud83c\udd09",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn----hg4ei0361g.xn--207ht163h7m94c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5",
++++    "input": "\u200c\uff61\u0354",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5",
++++    "input": "\u200c\u3002\u0354",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; A4_2 (ignored)",
++++    "input": ".xn--yua",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5",
++++    "input": "xn--0ug.xn--yua",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud83a\udd25\udb40\udd6e\uff0e\u1844\u10ae",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud83a\udd25\udb40\udd6e.\u1844\u10ae",
++++    "output": null
++++  },
++++  {
++++    "input": "\ud83a\udd25\udb40\udd6e.\u1844\u2d0e",
++++    "output": "xn--de6h.xn--37e857h"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud83a\udd03\udb40\udd6e.\u1844\u10ae",
++++    "output": null
++++  },
++++  {
++++    "input": "\ud83a\udd03\udb40\udd6e.\u1844\u2d0e",
++++    "output": "xn--de6h.xn--37e857h"
++++  },
++++  {
++++    "input": "xn--de6h.xn--37e857h",
++++    "output": "xn--de6h.xn--37e857h"
++++  },
++++  {
++++    "input": "\ud83a\udd25.\u1844\u2d0e",
++++    "output": "xn--de6h.xn--37e857h"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud83a\udd03.\u1844\u10ae",
++++    "output": null
++++  },
++++  {
++++    "input": "\ud83a\udd03.\u1844\u2d0e",
++++    "output": "xn--de6h.xn--37e857h"
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--de6h.xn--mnd799a",
++++    "output": null
++++  },
++++  {
++++    "input": "\ud83a\udd25\udb40\udd6e\uff0e\u1844\u2d0e",
++++    "output": "xn--de6h.xn--37e857h"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud83a\udd03\udb40\udd6e\uff0e\u1844\u10ae",
++++    "output": null
++++  },
++++  {
++++    "input": "\ud83a\udd03\udb40\udd6e\uff0e\u1844\u2d0e",
++++    "output": "xn--de6h.xn--37e857h"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud83a\udd25.\u1844\u10ae",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u0fa4\ud986\udd2f\uff0e\ud835\udfed\u10bb",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u0fa4\ud986\udd2f.1\u10bb",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u0fa4\ud986\udd2f.1\u2d1b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--0fd40533g.xn--1-tws",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--0fd40533g.xn--1-q1g",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u0fa4\ud986\udd2f\uff0e\ud835\udfed\u2d1b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u03c2\ud9d5\udf0c\uff18.\ud83a\udf64",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u03c2\ud9d5\udf0c8.\ud83a\udf64",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u03a3\ud9d5\udf0c8.\ud83a\udf64",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u03c3\ud9d5\udf0c8.\ud83a\udf64",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--8-zmb14974n.xn--su6h",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--8-xmb44974n.xn--su6h",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u03a3\ud9d5\udf0c\uff18.\ud83a\udf64",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u03c3\ud9d5\udf0c\uff18.\ud83a\udf64",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u200c\uae03.\u69b6-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u200c\u1100\u1173\u11b2.\u69b6-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "xn--ej0b.xn----d87b",
++++    "output": "xn--ej0b.xn----d87b"
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "xn--0ug3307c.xn----d87b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ub253\u6cd3\ud833\udd7d.\u09cd\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1102\u1170\u11be\u6cd3\ud833\udd7d.\u09cd\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--lwwp69lqs7m.xn--b7b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--lwwp69lqs7m.xn--b7b605i",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1bf3\u10b1\u115f\uff0e\ud804\udd34\u2132",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1bf3\u10b1\u115f.\ud804\udd34\u2132",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1bf3\u2d11\u115f.\ud804\udd34\u214e",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1bf3\u10b1\u115f.\ud804\udd34\u214e",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--pnd26a55x.xn--73g3065g",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--osd925cvyn.xn--73g3065g",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--pnd26a55x.xn--f3g7465g",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1bf3\u2d11\u115f\uff0e\ud804\udd34\u214e",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1bf3\u10b1\u115f\uff0e\ud804\udd34\u214e",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u00c5\ub444-\uff0e\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "A\u030a\u1103\u116d\u11b7-\uff0e\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u00c5\ub444-.\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "A\u030a\u1103\u116d\u11b7-.\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "a\u030a\u1103\u116d\u11b7-.\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u00e5\ub444-.\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "xn----1fa1788k.",
++++    "output": "xn----1fa1788k."
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "xn----1fa1788k.xn--0ug",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "a\u030a\u1103\u116d\u11b7-\uff0e\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u00e5\ub444-\uff0e\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; P1; V5; V6",
++++    "input": "\ub8f1\u200d\ud880\udf68\u200c\u3002\ud836\ude16\ufe12",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; P1; V5; V6",
++++    "input": "\u1105\u116e\u11b0\u200d\ud880\udf68\u200c\u3002\ud836\ude16\ufe12",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; V5",
++++    "input": "\ub8f1\u200d\ud880\udf68\u200c\u3002\ud836\ude16\u3002",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; V5",
++++    "input": "\u1105\u116e\u11b0\u200d\ud880\udf68\u200c\u3002\ud836\ude16\u3002",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--ct2b0738h.xn--772h.",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; V5",
++++    "input": "xn--0ugb3358ili2v.xn--772h.",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--ct2b0738h.xn--y86cl899a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; V5; V6",
++++    "input": "xn--0ugb3358ili2v.xn--y86cl899a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud83c\udd04\uff0e\u1cdc\u2488\u00df",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud83c\udd04\uff0e\u1cdc\u2488SS",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud83c\udd04\uff0e\u1cdc\u2488ss",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud83c\udd04\uff0e\u1cdc\u2488Ss",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--x07h.xn--ss-k1r094b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--x07h.xn--zca344lmif",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\u1bf3.-\u900b\ud98e\uddad\udb25\ude6e",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn--1zf.xn----483d46987byr50b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u0756\u3002\u3164\u200d\u03c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u0756\u3002\u1160\u200d\u03c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u0756\u3002\u1160\u200d\u03a3",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u0756\u3002\u1160\u200d\u03c3",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--9ob.xn--4xa380e",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--9ob.xn--4xa380ebol",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--9ob.xn--3xa580ebol",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u0756\u3002\u3164\u200d\u03a3",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u0756\u3002\u3164\u200d\u03c3",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--9ob.xn--4xa574u",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--9ob.xn--4xa795lq2l",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--9ob.xn--3xa995lq2l",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u1846\u10a3\uff61\udb3a\udca7\u0315\u200d\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u1846\u10a3\u3002\udb3a\udca7\u0315\u200d\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u1846\u2d03\u3002\udb3a\udca7\u0315\u200d\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--57e237h.xn--5sa98523p",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--57e237h.xn--5sa649la993427a",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--bnd320b.xn--5sa98523p",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--bnd320b.xn--5sa649la993427a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u1846\u2d03\uff61\udb3a\udca7\u0315\u200d\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud838\udc28\uff61\u1b44\uda45\udee8\ud838\udf87",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud838\udc28\u3002\u1b44\uda45\udee8\ud838\udf87",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--mi4h.xn--1uf6843smg20c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u189b\udb60\udd5f\u00df.\u1327",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u189b\udb60\udd5fSS.\u1327",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u189b\udb60\udd5fss.\u1327",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u189b\udb60\udd5fSs.\u1327",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--ss-7dp66033t.xn--p5d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--zca562jc642x.xn--p5d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u2b92\u200c.\ud909\ude97\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--b9i.xn--5p9y",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ugx66b.xn--0ugz2871c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u00df\uff61\ud800\udef3\u10ac\u0fb8",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u00df\u3002\ud800\udef3\u10ac\u0fb8",
++++    "output": null
++++  },
++++  {
++++    "input": "\u00df\u3002\ud800\udef3\u2d0c\u0fb8",
++++    "output": "xn--zca.xn--lgd921mvv0m"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "SS\u3002\ud800\udef3\u10ac\u0fb8",
++++    "output": null
++++  },
++++  {
++++    "input": "ss\u3002\ud800\udef3\u2d0c\u0fb8",
++++    "output": "ss.xn--lgd921mvv0m"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "Ss\u3002\ud800\udef3\u10ac\u0fb8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "ss.xn--lgd10cu829c",
++++    "output": null
++++  },
++++  {
++++    "input": "ss.xn--lgd921mvv0m",
++++    "output": "ss.xn--lgd921mvv0m"
++++  },
++++  {
++++    "input": "ss.\ud800\udef3\u2d0c\u0fb8",
++++    "output": "ss.xn--lgd921mvv0m"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "SS.\ud800\udef3\u10ac\u0fb8",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "Ss.\ud800\udef3\u10ac\u0fb8",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--zca.xn--lgd921mvv0m",
++++    "output": "xn--zca.xn--lgd921mvv0m"
++++  },
++++  {
++++    "input": "\u00df.\ud800\udef3\u2d0c\u0fb8",
++++    "output": "xn--zca.xn--lgd921mvv0m"
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--zca.xn--lgd10cu829c",
++++    "output": null
++++  },
++++  {
++++    "input": "\u00df\uff61\ud800\udef3\u2d0c\u0fb8",
++++    "output": "xn--zca.xn--lgd921mvv0m"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "SS\uff61\ud800\udef3\u10ac\u0fb8",
++++    "output": null
++++  },
++++  {
++++    "input": "ss\uff61\ud800\udef3\u2d0c\u0fb8",
++++    "output": "ss.xn--lgd921mvv0m"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "Ss\uff61\ud800\udef3\u10ac\u0fb8",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1a5a\ud82e\udd9d\u0c4d\u3002\ud829\udf6c\ud835\udff5",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1a5a\ud82e\udd9d\u0c4d\u3002\ud829\udf6c9",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--lqc703ebm93a.xn--9-000p",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\u1856\uff61\u031f\ud91d\udee8\u0b82-",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\u1856\u3002\u031f\ud91d\udee8\u0b82-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn--m8e.xn----mdb555dkk71m",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud83c\udd07\u4f10\ufe12.\ud831\ude5a\ua8c4",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--woqs083bel0g.xn--0f9ao925c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; A4_2 (ignored)",
++++    "input": "\udb40\udda0\uff0e\ud99d\udc34\udaf1\udfc8",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; A4_2 (ignored)",
++++    "input": "\udb40\udda0.\ud99d\udc34\udaf1\udfc8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": ".xn--rx21bhv12i",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "-.\u1886\udb47\udca3-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "-.xn----pbkx6497q",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\udafd\udcb0\uff0e-\ud835\udffb\u00df",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\udafd\udcb0.-5\u00df",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\udafd\udcb0.-5SS",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\udafd\udcb0.-5ss",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn--t960e.-5ss",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn--t960e.xn---5-hia",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\udafd\udcb0\uff0e-\ud835\udffbSS",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\udafd\udcb0\uff0e-\ud835\udffbss",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\udafd\udcb0\uff0e-\ud835\udffbSs",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\udafd\udcb0.-5Ss",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u200d\ud802\ude3f.\ud83e\udd12\u10c5\uda06\udfb6",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u200d\ud802\ude3f.\ud83e\udd12\u2d25\uda06\udfb6",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--0s9c.xn--tljz038l0gz4b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--1ug9533g.xn--tljz038l0gz4b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--0s9c.xn--9nd3211w0gz4b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--1ug9533g.xn--9nd3211w0gz4b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\ud894\udec5\u3002\u00df\ud873\udd69\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\ud894\udec5\u3002SS\ud873\udd69\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\ud894\udec5\u3002ss\ud873\udd69\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\ud894\udec5\u3002Ss\ud873\udd69\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--ey1p.xn--ss-eq36b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--ey1p.xn--ss-n1tx0508a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--ey1p.xn--zca870nz438b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u248b\uff61\u2488\u200d\uda8f\udd22",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6; A4_2 (ignored)",
++++    "input": "4.\u30021.\u200d\uda8f\udd22",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": "4..1.xn--sf51d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6; A4_2 (ignored)",
++++    "input": "4..1.xn--1ug64613i",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--wsh.xn--tsh07994h",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--wsh.xn--1ug58o74922a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10b3\ud805\udf2b\u200d\uda1e\udf53\uff0e\u06a7\ud807\udc36",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10b3\ud805\udf2b\u200d\uda1e\udf53.\u06a7\ud807\udc36",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2d13\ud805\udf2b\u200d\uda1e\udf53.\u06a7\ud807\udc36",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--blj6306ey091d.xn--9jb4223l",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--1ugy52cym7p7xu5e.xn--9jb4223l",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--rnd8945ky009c.xn--9jb4223l",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--rnd479ep20q7x12e.xn--9jb4223l",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2d13\ud805\udf2b\u200d\uda1e\udf53\uff0e\u06a7\ud807\udc36",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud802\ude3f.\ud83c\udd06\u2014",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--0s9c.xn--8ug8324p",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\uda10\udeb1\ud8c6\uddae\u06f8\u3002\udb43\udfad-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn--lmb18944c0g2z.xn----2k81m",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud83d\udf85\udb43\udce1\udb30\udf59.\ud989\uddb7",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--ie9hi1349bqdlb.xn--oj69a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\u20e7\ud97e\udc4e-\uda6e\udcdd.4\u10a4\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\u20e7\ud97e\udc4e-\uda6e\udcdd.4\u2d04\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn----9snu5320fi76w.xn--4-ivs",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V6",
++++    "input": "xn----9snu5320fi76w.xn--4-sgn589c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn----9snu5320fi76w.xn--4-f0g",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V6",
++++    "input": "xn----9snu5320fi76w.xn--4-f0g649i",
++++    "output": null
++++  },
++++  {
++++    "input": "\u16ad\uff61\ud834\udf20\u00df\ud81a\udef1",
++++    "output": "xn--hwe.xn--zca4946pblnc"
++++  },
++++  {
++++    "input": "\u16ad\u3002\ud834\udf20\u00df\ud81a\udef1",
++++    "output": "xn--hwe.xn--zca4946pblnc"
++++  },
++++  {
++++    "input": "\u16ad\u3002\ud834\udf20SS\ud81a\udef1",
++++    "output": "xn--hwe.xn--ss-ci1ub261a"
++++  },
++++  {
++++    "input": "\u16ad\u3002\ud834\udf20ss\ud81a\udef1",
++++    "output": "xn--hwe.xn--ss-ci1ub261a"
++++  },
++++  {
++++    "input": "\u16ad\u3002\ud834\udf20Ss\ud81a\udef1",
++++    "output": "xn--hwe.xn--ss-ci1ub261a"
++++  },
++++  {
++++    "input": "xn--hwe.xn--ss-ci1ub261a",
++++    "output": "xn--hwe.xn--ss-ci1ub261a"
++++  },
++++  {
++++    "input": "\u16ad.\ud834\udf20ss\ud81a\udef1",
++++    "output": "xn--hwe.xn--ss-ci1ub261a"
++++  },
++++  {
++++    "input": "\u16ad.\ud834\udf20SS\ud81a\udef1",
++++    "output": "xn--hwe.xn--ss-ci1ub261a"
++++  },
++++  {
++++    "input": "\u16ad.\ud834\udf20Ss\ud81a\udef1",
++++    "output": "xn--hwe.xn--ss-ci1ub261a"
++++  },
++++  {
++++    "input": "xn--hwe.xn--zca4946pblnc",
++++    "output": "xn--hwe.xn--zca4946pblnc"
++++  },
++++  {
++++    "input": "\u16ad.\ud834\udf20\u00df\ud81a\udef1",
++++    "output": "xn--hwe.xn--zca4946pblnc"
++++  },
++++  {
++++    "input": "\u16ad\uff61\ud834\udf20SS\ud81a\udef1",
++++    "output": "xn--hwe.xn--ss-ci1ub261a"
++++  },
++++  {
++++    "input": "\u16ad\uff61\ud834\udf20ss\ud81a\udef1",
++++    "output": "xn--hwe.xn--ss-ci1ub261a"
++++  },
++++  {
++++    "input": "\u16ad\uff61\ud834\udf20Ss\ud81a\udef1",
++++    "output": "xn--hwe.xn--ss-ci1ub261a"
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud8fc\udc47\u1734\uff0e\ud802\ude3a\u00c9\u2b13\ud804\udd34",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud8fc\udc47\u1734\uff0e\ud802\ude3aE\u0301\u2b13\ud804\udd34",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud8fc\udc47\u1734.\ud802\ude3a\u00c9\u2b13\ud804\udd34",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud8fc\udc47\u1734.\ud802\ude3aE\u0301\u2b13\ud804\udd34",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud8fc\udc47\u1734.\ud802\ude3ae\u0301\u2b13\ud804\udd34",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud8fc\udc47\u1734.\ud802\ude3a\u00e9\u2b13\ud804\udd34",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--c0e34564d.xn--9ca207st53lg3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud8fc\udc47\u1734\uff0e\ud802\ude3ae\u0301\u2b13\ud804\udd34",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud8fc\udc47\u1734\uff0e\ud802\ude3a\u00e9\u2b13\ud804\udd34",
++++    "output": null
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "xn--09e4694e..xn--ye6h",
++++    "output": "xn--09e4694e..xn--ye6h"
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u10c3\uff0e\u0653\u18a4",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u10c3.\u0653\u18a4",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u2d23.\u0653\u18a4",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--rlj.xn--vhb294g",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--7nd.xn--vhb294g",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u2d23\uff0e\u0653\u18a4",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb40\udd08\u0813\uff0e\uc2c9\ud9d0\uddbb\u10c4\ud9ca\udc50",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb40\udd08\u0813\uff0e\u1109\u1174\u11b0\ud9d0\uddbb\u10c4\ud9ca\udc50",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb40\udd08\u0813.\uc2c9\ud9d0\uddbb\u10c4\ud9ca\udc50",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb40\udd08\u0813.\u1109\u1174\u11b0\ud9d0\uddbb\u10c4\ud9ca\udc50",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb40\udd08\u0813.\u1109\u1174\u11b0\ud9d0\uddbb\u2d24\ud9ca\udc50",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb40\udd08\u0813.\uc2c9\ud9d0\uddbb\u2d24\ud9ca\udc50",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--oub.xn--sljz109bpe25dviva",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--oub.xn--8nd9522gpe69cviva",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb40\udd08\u0813\uff0e\u1109\u1174\u11b0\ud9d0\uddbb\u2d24\ud9ca\udc50",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb40\udd08\u0813\uff0e\uc2c9\ud9d0\uddbb\u2d24\ud9ca\udc50",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "\ud804\udc45\u3002-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "xn--210d.-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6; V3 (ignored)",
++++    "input": "\ua866\u1851\u200d\u2488\u3002\ud800\udee3-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V3 (ignored); A4_2 (ignored)",
++++    "input": "\ua866\u1851\u200d1.\u3002\ud800\udee3-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored); A4_2 (ignored)",
++++    "input": "xn--1-o7j0610f..xn----381i",
++++    "output": "xn--1-o7j0610f..xn----381i"
++++  },
++++  {
++++    "comment": "C2; V3 (ignored); A4_2 (ignored)",
++++    "input": "xn--1-o7j663bdl7m..xn----381i",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn--h8e863drj7h.xn----381i",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6; V3 (ignored)",
++++    "input": "xn--h8e470bl0d838o.xn----381i",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6; V3 (ignored)",
++++    "input": "\u2488\u4c39\u200d-\u3002\uc6c8",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6; V3 (ignored)",
++++    "input": "\u2488\u4c39\u200d-\u3002\u110b\u116e\u11bf",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "1.\u4c39\u200d-\u3002\uc6c8",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "1.\u4c39\u200d-\u3002\u110b\u116e\u11bf",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "1.xn----zw5a.xn--kp5b",
++++    "output": "1.xn----zw5a.xn--kp5b"
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "1.xn----tgnz80r.xn--kp5b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn----dcp160o.xn--kp5b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6; V3 (ignored)",
++++    "input": "xn----tgnx5rjr6c.xn--kp5b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u3066\u3002\u200c\udb43\udcfd\u07f3",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--m9j.xn--rtb10784p",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--m9j.xn--rtb154j9l73w",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u03c2\uff61\ua9c0\u06e7",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u03c2\u3002\ua9c0\u06e7",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u03a3\u3002\ua9c0\u06e7",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u03c3\u3002\ua9c0\u06e7",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--4xa.xn--3lb1944f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--3xa.xn--3lb1944f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u03a3\uff61\ua9c0\u06e7",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u03c3\uff61\ua9c0\u06e7",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u0bcd\udb56\udec5\ud9f0\ude51.\u10a2\u10b5",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u0bcd\udb56\udec5\ud9f0\ude51.\u2d02\u2d15",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u0bcd\udb56\udec5\ud9f0\ude51.\u10a2\u2d15",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--xmc83135idcxza.xn--9md086l",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--xmc83135idcxza.xn--tkjwb",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--xmc83135idcxza.xn--9md2b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\u1c32\ud83c\udd08\u2f9b\u05a6\uff0e\u200d\uda7e\udd64\u07fd",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--xcb756i493fwi5o.xn--1tb13454l",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5; V6",
++++    "input": "xn--xcb756i493fwi5o.xn--1tb334j1197q",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u1897\uff61\u04c0\ud934\udd3b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u1897\u3002\u04c0\ud934\udd3b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u1897\u3002\u04cf\ud934\udd3b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--hbf.xn--s5a83117e",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--hbf.xn--d5a86117e",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u1897\uff61\u04cf\ud934\udd3b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "-\ud800\udef7\ud81b\udf91\u3002\udb40\uddac",
++++    "output": "xn----991iq40y."
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "xn----991iq40y.",
++++    "output": "xn----991iq40y."
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud807\udc98\udb40\udd12\ud80d\udc61\uff61\ud835\udfea\u10bc",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud807\udc98\udb40\udd12\ud80d\udc61\u30028\u10bc",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud807\udc98\udb40\udd12\ud80d\udc61\u30028\u2d1c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--7m3d291b.xn--8-vws",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--7m3d291b.xn--8-s1g",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud807\udc98\udb40\udd12\ud80d\udc61\uff61\ud835\udfea\u2d1c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1bab\uff61\ud83c\udc89\udb40\udc70",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1bab\u3002\ud83c\udc89\udb40\udc70",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--zxf.xn--fx7ho0250c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6; V3 (ignored)",
++++    "input": "\udb71\udeb6\udba0\uded6\uda1a\ude70-\u3002\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn----7i12hu122k9ire.",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6; V3 (ignored)",
++++    "input": "xn----7i12hu122k9ire.xn--0ug",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ufe12\uff0e\ufe2f\ud805\udc42",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ufe12\uff0e\ud805\udc42\ufe2f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; A4_2 (ignored)",
++++    "input": "\u3002.\ud805\udc42\ufe2f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; A4_2 (ignored)",
++++    "input": "..xn--s96cu30b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--y86c.xn--s96cu30b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\ua92c\u3002\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--zi9a.",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "xn--zi9a.xn--1ug",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\udb58\ude04\u3002-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn--xm38e.-",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u0330\uff0e\udb81\udf31\u8680",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u0330.\udb81\udf31\u8680",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--xta.xn--e91aw9417e",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\ud83e\udc9f\ud83c\udd08\u200d\ua84e\uff61\u0f84",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--nc9aq743ds0e.xn--3ed",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5; V6",
++++    "input": "xn--1ug4874cfd0kbmg.xn--3ed",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ua854\u3002\u1039\u1887",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--tc9a.xn--9jd663b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\ud880\udd67\ud94e\ude60-\uff0e\uabed-\u609c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\ud880\udd67\ud94e\ude60-.\uabed-\u609c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn----7m53aj640l.xn----8f4br83t",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6; V3 (ignored)",
++++    "input": "\u1849\ud899\udce7\u2b1e\u189c.-\u200d\ud83a\udcd1\u202e",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn--87e0ol04cdl39e.xn----qinu247r",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6; V3 (ignored)",
++++    "input": "xn--87e0ol04cdl39e.xn----ugn5e3763s",
++++    "output": null
++++  },
++++  {
++++    "input": "\ud83a\udd53\uff0e\u0718",
++++    "output": "xn--of6h.xn--inb"
++++  },
++++  {
++++    "input": "\ud83a\udd53.\u0718",
++++    "output": "xn--of6h.xn--inb"
++++  },
++++  {
++++    "input": "xn--of6h.xn--inb",
++++    "output": "xn--of6h.xn--inb"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "\udb40\udd3d-\uff0e-\u0dca",
++++    "output": "-.xn----ptf"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "\udb40\udd3d-.-\u0dca",
++++    "output": "-.xn----ptf"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "-.xn----ptf",
++++    "output": "-.xn----ptf"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10ba\ud800\udef8\udb40\udd04\u3002\ud835\udfdd\ud7f6\u103a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10ba\ud800\udef8\udb40\udd04\u30025\ud7f6\u103a",
++++    "output": null
++++  },
++++  {
++++    "input": "\u2d1a\ud800\udef8\udb40\udd04\u30025\ud7f6\u103a",
++++    "output": "xn--ilj2659d.xn--5-dug9054m"
++++  },
++++  {
++++    "input": "xn--ilj2659d.xn--5-dug9054m",
++++    "output": "xn--ilj2659d.xn--5-dug9054m"
++++  },
++++  {
++++    "input": "\u2d1a\ud800\udef8.5\ud7f6\u103a",
++++    "output": "xn--ilj2659d.xn--5-dug9054m"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10ba\ud800\udef8.5\ud7f6\u103a",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--ynd2415j.xn--5-dug9054m",
++++    "output": null
++++  },
++++  {
++++    "input": "\u2d1a\ud800\udef8\udb40\udd04\u3002\ud835\udfdd\ud7f6\u103a",
++++    "output": "xn--ilj2659d.xn--5-dug9054m"
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\u200d-\u1839\ufe6a.\u1de1\u1922",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\u200d-\u1839%.\u1de1\u1922",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "xn---%-u4o.xn--gff52t",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "xn---%-u4oy48b.xn--gff52t",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn----c6jx047j.xn--gff52t",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5; V6",
++++    "input": "xn----c6j614b1z4v.xn--gff52t",
++++    "output": null
++++  },
++++  {
++++    "input": "\u0723\u05a3\uff61\u332a",
++++    "output": "xn--ucb18e.xn--eck4c5a"
++++  },
++++  {
++++    "input": "\u0723\u05a3\u3002\u30cf\u30a4\u30c4",
++++    "output": "xn--ucb18e.xn--eck4c5a"
++++  },
++++  {
++++    "input": "xn--ucb18e.xn--eck4c5a",
++++    "output": "xn--ucb18e.xn--eck4c5a"
++++  },
++++  {
++++    "input": "\u0723\u05a3.\u30cf\u30a4\u30c4",
++++    "output": "xn--ucb18e.xn--eck4c5a"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud84e\ude6b\uff0e\ud9f1\udc72",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud84e\ude6b.\ud9f1\udc72",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--td3j.xn--4628b",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--skb",
++++    "output": "xn--skb"
++++  },
++++  {
++++    "input": "\u06b9",
++++    "output": "xn--skb"
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "\u0c4d\ud836\ude3e\u05a9\ud835\udfed\u3002-\ud805\udf28",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "\u0c4d\ud836\ude3e\u05a91\u3002-\ud805\udf28",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "xn--1-rfc312cdp45c.xn----nq0j",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\uda4f\udfc8\u3002\ub64f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\uda4f\udfc8\u3002\u1104\u116b\u11ae",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--ph26c.xn--281b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud916\ude1a\udb40\udd0c\udb07\udf40\u1840.\u08b6",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--z7e98100evc01b.xn--czb",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u200d\uff61\ud8d4\udc5b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u200d\u3002\ud8d4\udc5b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": ".xn--6x4u",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--1ug.xn--6x4u",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5",
++++    "input": "\ud805\uddbf\ud836\ude14.\u185f\ud805\uddbf\u1b42\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--461dw464a.xn--v8e29loy65a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5",
++++    "input": "xn--461dw464a.xn--v8e29ldzfo952a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\ud02c-?\ud99b\udcd2.\u200c\u0ac5\udb67\ude24\u06f4",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u110f\u1170\u11bb-?\ud99b\udcd2.\u200c\u0ac5\udb67\ude24\u06f4",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "xn---?-6g4k75207c.xn--hmb76q74166b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "xn---?-6g4k75207c.xn--hmb76q48y18505a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud02c-?\ud99b\udcd2.xn--hmb76q74166b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u110f\u1170\u11bb-?\ud99b\udcd2.xn--hmb76q74166b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u110f\u1170\u11bb-?\ud99b\udcd2.XN--HMB76Q74166B",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud02c-?\ud99b\udcd2.XN--HMB76Q74166B",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud02c-?\ud99b\udcd2.Xn--Hmb76q74166b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u110f\u1170\u11bb-?\ud99b\udcd2.Xn--Hmb76q74166b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\ud02c-?\ud99b\udcd2.xn--hmb76q48y18505a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u110f\u1170\u11bb-?\ud99b\udcd2.xn--hmb76q48y18505a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u110f\u1170\u11bb-?\ud99b\udcd2.XN--HMB76Q48Y18505A",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\ud02c-?\ud99b\udcd2.XN--HMB76Q48Y18505A",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\ud02c-?\ud99b\udcd2.Xn--Hmb76q48y18505a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u110f\u1170\u11bb-?\ud99b\udcd2.Xn--Hmb76q48y18505a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u200d\u252e\udb40\uddd0\uff0e\u0c00\u0c4d\u1734\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u200d\u252e\udb40\uddd0.\u0c00\u0c4d\u1734\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--kxh.xn--eoc8m432a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "xn--1ug04r.xn--eoc8m432a40i",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udaa5\udeaa\uff61\ud83c\udd02",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--n433d.xn--v07h",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud804\udf68\u520d.\ud83d\udee6",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--rbry728b.xn--y88h",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\udb40\udf0f3\uff61\u1bf1\ud835\udfd2",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\udb40\udf0f3\u3002\u1bf14",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--3-ib31m.xn--4-pql",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u034a\uff0e\ud802\ude0e",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u034a.\ud802\ude0e",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--oua.xn--mr9c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\ua846\u3002\u2183\u0fb5\ub1ae-",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\ua846\u3002\u2183\u0fb5\u1102\u116a\u11c1-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "\ua846\u3002\u2184\u0fb5\u1102\u116a\u11c1-",
++++    "output": "xn--fc9a.xn----qmg097k469k"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "\ua846\u3002\u2184\u0fb5\ub1ae-",
++++    "output": "xn--fc9a.xn----qmg097k469k"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "xn--fc9a.xn----qmg097k469k",
++++    "output": "xn--fc9a.xn----qmg097k469k"
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn--fc9a.xn----qmg787k869k",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\ud805\udc42\uff61\u200d\udb55\udf80\ud83d\udf95\uda54\udc54",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\ud805\udc42\u3002\u200d\udb55\udf80\ud83d\udf95\uda54\udc54",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--8v1d.xn--ye9h41035a2qqs",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5; V6",
++++    "input": "xn--8v1d.xn--1ug1386plvx1cd8vya",
++++    "output": null
++++  },
++++  {
++++    "input": "\u00df\u09c1\u1ded\u3002\u06208\u2085",
++++    "output": "xn--zca266bwrr.xn--85-psd"
++++  },
++++  {
++++    "input": "\u00df\u09c1\u1ded\u3002\u062085",
++++    "output": "xn--zca266bwrr.xn--85-psd"
++++  },
++++  {
++++    "input": "SS\u09c1\u1ded\u3002\u062085",
++++    "output": "xn--ss-e2f077r.xn--85-psd"
++++  },
++++  {
++++    "input": "ss\u09c1\u1ded\u3002\u062085",
++++    "output": "xn--ss-e2f077r.xn--85-psd"
++++  },
++++  {
++++    "input": "Ss\u09c1\u1ded\u3002\u062085",
++++    "output": "xn--ss-e2f077r.xn--85-psd"
++++  },
++++  {
++++    "input": "xn--ss-e2f077r.xn--85-psd",
++++    "output": "xn--ss-e2f077r.xn--85-psd"
++++  },
++++  {
++++    "input": "ss\u09c1\u1ded.\u062085",
++++    "output": "xn--ss-e2f077r.xn--85-psd"
++++  },
++++  {
++++    "input": "SS\u09c1\u1ded.\u062085",
++++    "output": "xn--ss-e2f077r.xn--85-psd"
++++  },
++++  {
++++    "input": "Ss\u09c1\u1ded.\u062085",
++++    "output": "xn--ss-e2f077r.xn--85-psd"
++++  },
++++  {
++++    "input": "xn--zca266bwrr.xn--85-psd",
++++    "output": "xn--zca266bwrr.xn--85-psd"
++++  },
++++  {
++++    "input": "\u00df\u09c1\u1ded.\u062085",
++++    "output": "xn--zca266bwrr.xn--85-psd"
++++  },
++++  {
++++    "input": "SS\u09c1\u1ded\u3002\u06208\u2085",
++++    "output": "xn--ss-e2f077r.xn--85-psd"
++++  },
++++  {
++++    "input": "ss\u09c1\u1ded\u3002\u06208\u2085",
++++    "output": "xn--ss-e2f077r.xn--85-psd"
++++  },
++++  {
++++    "input": "Ss\u09c1\u1ded\u3002\u06208\u2085",
++++    "output": "xn--ss-e2f077r.xn--85-psd"
++++  },
++++  {
++++    "input": "\ufe0d\u0a9b\u3002\u5d68",
++++    "output": "xn--6dc.xn--tot"
++++  },
++++  {
++++    "input": "xn--6dc.xn--tot",
++++    "output": "xn--6dc.xn--tot"
++++  },
++++  {
++++    "input": "\u0a9b.\u5d68",
++++    "output": "xn--6dc.xn--tot"
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6; V3 (ignored)",
++++    "input": "-\u200c\u2499\ud802\udee5\uff61\ud836\ude35",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V3 (ignored)",
++++    "input": "-\u200c18.\ud802\udee5\u3002\ud836\ude35",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "-18.xn--rx9c.xn--382h",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V3 (ignored)",
++++    "input": "xn---18-9m0a.xn--rx9c.xn--382h",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn----ddps939g.xn--382h",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V6; V3 (ignored)",
++++    "input": "xn----sgn18r3191a.xn--382h",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ufe05\ufe12\u3002\ud858\udc3e\u1ce0",
++++    "output": null
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "\ufe05\u3002\u3002\ud858\udc3e\u1ce0",
++++    "output": "..xn--t6f5138v"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "..xn--t6f5138v",
++++    "output": "..xn--t6f5138v"
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--y86c.xn--t6f5138v",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--t6f5138v",
++++    "output": "xn--t6f5138v"
++++  },
++++  {
++++    "input": "\ud858\udc3e\u1ce0",
++++    "output": "xn--t6f5138v"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\uda7b\udd5b\u0613.\u10b5",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\uda7b\udd5b\u0613.\u2d15",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--1fb94204l.xn--dlj",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--1fb94204l.xn--tnd",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\udb40\udd37\uff61\uda09\udc41",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\udb40\udd37\u3002\uda09\udc41",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": ".xn--w720c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ug.xn--w720c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u2488\u0dd6\u7105.\udb1e\udc59\u200d\ua85f",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "1.\u0dd6\u7105.\udb1e\udc59\u200d\ua85f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "1.xn--t1c6981c.xn--4c9a21133d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5; V6",
++++    "input": "1.xn--t1c6981c.xn--1ugz184c9lw7i",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--t1c337io97c.xn--4c9a21133d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--t1c337io97c.xn--1ugz184c9lw7i",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud804\uddc0\u258d.\u205e\u1830",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--9zh3057f.xn--j7e103b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "-3.\u200d\u30cc\u1895",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "-3.xn--fbf115j",
++++    "output": "-3.xn--fbf115j"
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "-3.xn--fbf739aq5o",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud802\ude3f\udb40\udd8c\u9e2e\ud805\udeb6.\u03c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud802\ude3f\udb40\udd8c\u9e2e\ud805\udeb6.\u03a3",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud802\ude3f\udb40\udd8c\u9e2e\ud805\udeb6.\u03c3",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--l76a726rt2h.xn--4xa",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--l76a726rt2h.xn--3xa",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u03c2-\u3002\u200c\ud835\udfed-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u03c2-\u3002\u200c1-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u03a3-\u3002\u200c1-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u03c3-\u3002\u200c1-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "xn----zmb.1-",
++++    "output": "xn----zmb.1-"
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "xn----zmb.xn--1--i1t",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "xn----xmb.xn--1--i1t",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u03a3-\u3002\u200c\ud835\udfed-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u03c3-\u3002\u200c\ud835\udfed-",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1734-\u0ce2\uff0e\udb40\udd29\u10a4",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1734-\u0ce2.\udb40\udd29\u10a4",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u1734-\u0ce2.\udb40\udd29\u2d04",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn----ggf830f.xn--vkj",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn----ggf830f.xn--cnd",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u1734-\u0ce2\uff0e\udb40\udd29\u2d04",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\u200d\u3002\ud838\udc18\u2488\ua84d\u64c9",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u200d\u3002\ud838\udc181.\ua84d\u64c9",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; A4_2 (ignored)",
++++    "input": ".xn--1-1p4r.xn--s7uv61m",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "xn--1ug.xn--1-1p4r.xn--s7uv61m",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; A4_2 (ignored)",
++++    "input": ".xn--tsh026uql4bew9p",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5; V6",
++++    "input": "xn--1ug.xn--tsh026uql4bew9p",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2ad0\uff61\u10c0-\udacd\udc22",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2ad0\u3002\u10c0-\udacd\udc22",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2ad0\u3002\u2d20-\udacd\udc22",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--r3i.xn----2wst7439i",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--r3i.xn----z1g58579u",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2ad0\uff61\u2d20-\udacd\udc22",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud805\udc42\u25ca\uff0e\u299f\u2220",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud805\udc42\u25ca.\u299f\u2220",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--01h3338f.xn--79g270a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud5c1\udb21\udd99\u0e3a\udb28\udf5a\u3002\u06ba\ud835\udfdc",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u1112\u1164\u11bc\udb21\udd99\u0e3a\udb28\udf5a\u3002\u06ba\ud835\udfdc",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud5c1\udb21\udd99\u0e3a\udb28\udf5a\u3002\u06ba4",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u1112\u1164\u11bc\udb21\udd99\u0e3a\udb28\udf5a\u3002\u06ba4",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--o4c1723h8g85gt4ya.xn--4-dvc",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ua953.\u033d\ud804\udcbd\u998b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--3j9a.xn--bua0708eqzrd",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\udae2\udedd\uda69\udef8\u200d\uff61\u4716",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\udae2\udedd\uda69\udef8\u200d\u3002\u4716",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--g138cxw05a.xn--k0o",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--1ug30527h9mxi.xn--k0o",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u186f\u2689\u59f6\ud83c\udd09\uff0e\u06f7\u200d\ud83c\udfaa\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--c9e433epi4b3j20a.xn--kmb6733w",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--c9e433epi4b3j20a.xn--kmb859ja94998b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6; V3 (ignored)",
++++    "input": "\u135f\u1848\u200c\uff0e\ufe12-\ud81b\udf90-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V3 (ignored); A4_2 (ignored)",
++++    "input": "\u135f\u1848\u200c.\u3002-\ud81b\udf90-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored); A4_2 (ignored)",
++++    "input": "xn--b7d82w..xn-----pe4u",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V3 (ignored); A4_2 (ignored)",
++++    "input": "xn--b7d82wo4h..xn-----pe4u",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn--b7d82w.xn-----c82nz547a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V6; V3 (ignored)",
++++    "input": "xn--b7d82wo4h.xn-----c82nz547a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\ud836\ude5c\u3002-\u0b4d\u10ab",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "\ud836\ude5c\u3002-\u0b4d\u2d0b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "xn--792h.xn----bse820x",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn--792h.xn----bse632b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\ud835\udff5\u9681\u2bee\uff0e\u180d\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "9\u9681\u2bee.\u180d\u200c",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--9-mfs8024b.",
++++    "output": "xn--9-mfs8024b."
++++  },
++++  {
++++    "input": "9\u9681\u2bee.",
++++    "output": "xn--9-mfs8024b."
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "xn--9-mfs8024b.xn--0ug",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\u1bac\u10ac\u200c\u0325\u3002\ud835\udff8",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5",
++++    "input": "\u1bac\u2d0c\u200c\u0325\u3002\ud835\udff8",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--2ib43l.xn--te6h",
++++    "output": "xn--2ib43l.xn--te6h"
++++  },
++++  {
++++    "input": "\u067d\u0943.\ud83a\udd35",
++++    "output": "xn--2ib43l.xn--te6h"
++++  },
++++  {
++++    "input": "\u067d\u0943.\ud83a\udd13",
++++    "output": "xn--2ib43l.xn--te6h"
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\u3002\uffa0\u0f84\u0f96",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\u3002\u1160\u0f84\u0f96",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": ".xn--3ed0b20h",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ug.xn--3ed0b20h",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": ".xn--3ed0by082k",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ug.xn--3ed0by082k",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ua9d0\u04c0\u1baa\u08f6\uff0e\ub235",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ua9d0\u04c0\u1baa\u08f6\uff0e\u1102\u116f\u11bc",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ua9d0\u04c0\u1baa\u08f6.\ub235",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ua9d0\u04c0\u1baa\u08f6.\u1102\u116f\u11bc",
++++    "output": null
++++  },
++++  {
++++    "input": "\ua9d0\u04cf\u1baa\u08f6.\u1102\u116f\u11bc",
++++    "output": "xn--s5a04sn4u297k.xn--2e1b"
++++  },
++++  {
++++    "input": "\ua9d0\u04cf\u1baa\u08f6.\ub235",
++++    "output": "xn--s5a04sn4u297k.xn--2e1b"
++++  },
++++  {
++++    "input": "xn--s5a04sn4u297k.xn--2e1b",
++++    "output": "xn--s5a04sn4u297k.xn--2e1b"
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--d5a07sn4u297k.xn--2e1b",
++++    "output": null
++++  },
++++  {
++++    "input": "\ua9d0\u04cf\u1baa\u08f6\uff0e\u1102\u116f\u11bc",
++++    "output": "xn--s5a04sn4u297k.xn--2e1b"
++++  },
++++  {
++++    "input": "\ua9d0\u04cf\u1baa\u08f6\uff0e\ub235",
++++    "output": "xn--s5a04sn4u297k.xn--2e1b"
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ua8ea\uff61\ud818\udd3f\ud804\uddbe\udb40\uddd7",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ua8ea\u3002\ud818\udd3f\ud804\uddbe\udb40\uddd7",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--3g9a.xn--ud1dz07k",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--9hb7344k.",
++++    "output": "xn--9hb7344k."
++++  },
++++  {
++++    "input": "\ud802\udec7\u0661.",
++++    "output": "xn--9hb7344k."
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u10c5.\ud804\udd33\u32b8",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u10c5.\ud804\udd3343",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u2d25.\ud804\udd3343",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--tlj.xn--43-274o",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--9nd.xn--43-274o",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u2d25.\ud804\udd33\u32b8",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud91e\udea8\udb40\udd09\uffa0\u0fb7.\ud9a1\udfb0\ua953",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud91e\udea8\udb40\udd09\u1160\u0fb7.\ud9a1\udfb0\ua953",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--kgd36f9z57y.xn--3j9au7544a",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--kgd7493jee34a.xn--3j9au7544a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5",
++++    "input": "\u0618.\u06f3\u200c\ua953",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--6fb.xn--gmb0524f",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5",
++++    "input": "xn--6fb.xn--gmb469jjf1h",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u184c\uff0e\ufe12\u1891",
++++    "output": null
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "\u184c.\u3002\u1891",
++++    "output": "xn--c8e..xn--bbf"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "xn--c8e..xn--bbf",
++++    "output": "xn--c8e..xn--bbf"
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--c8e.xn--bbf9168i",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud83b\uddcf\u3002\u1822\uda0d\ude06",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--hd7h.xn--46e66060j",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u40b9\udbb9\udd85\ud800\udee6\uff0e\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u40b9\udbb9\udd85\ud800\udee6.\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--0on3543c5981i.",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--0on3543c5981i.xn--1ug",
++++    "output": null
++++  },
++++  {
++++    "input": "\u07e5.\u06b5",
++++    "output": "xn--dtb.xn--okb"
++++  },
++++  {
++++    "input": "xn--dtb.xn--okb",
++++    "output": "xn--dtb.xn--okb"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": ".xn--3e6h",
++++    "output": ".xn--3e6h"
++++  },
++++  {
++++    "input": "xn--3e6h",
++++    "output": "xn--3e6h"
++++  },
++++  {
++++    "input": "\ud83a\udd3f",
++++    "output": "xn--3e6h"
++++  },
++++  {
++++    "input": "\ud83a\udd1d",
++++    "output": "xn--3e6h"
++++  },
++++  {
++++    "comment": "C1; V5; V3 (ignored)",
++++    "input": "\u103a\u200d\u200c\u3002-\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "xn--bkd.-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V3 (ignored)",
++++    "input": "xn--bkd412fca.xn----sgn",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ufe12\uff61\u1b44\u1849",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; A4_2 (ignored)",
++++    "input": "\u3002\u3002\u1b44\u1849",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; A4_2 (ignored)",
++++    "input": "..xn--87e93m",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--y86c.xn--87e93m",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6; V3 (ignored)",
++++    "input": "-\u1bab\ufe12\u200d.\ud90b\udd88\ud957\ude53",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6; V3 (ignored)",
++++    "input": "-\u1bab\u3002\u200d.\ud90b\udd88\ud957\ude53",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored); A4_2 (ignored)",
++++    "input": "xn----qml..xn--x50zy803a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6; V3 (ignored)",
++++    "input": "xn----qml.xn--1ug.xn--x50zy803a",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn----qml1407i.xn--x50zy803a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6; V3 (ignored)",
++++    "input": "xn----qmlv7tw180a.xn--x50zy803a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u06b9\uff0e\u1873\u115f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u06b9.\u1873\u115f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--skb.xn--osd737a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u3a1b\ud823\udc4e.\ufe12\ud835\udfd5\u0d01",
++++    "output": null
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "\u3a1b\ud823\udc4e.\u30027\u0d01",
++++    "output": "xn--mbm8237g..xn--7-7hf"
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "xn--mbm8237g..xn--7-7hf",
++++    "output": "xn--mbm8237g..xn--7-7hf"
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--mbm8237g.xn--7-7hf1526p",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u00df\u200c\uaaf6\u18a5\uff0e\u22b6\u10c1\u10b6",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u00df\u200c\uaaf6\u18a5.\u22b6\u10c1\u10b6",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\u00df\u200c\uaaf6\u18a5.\u22b6\u2d21\u2d16",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "SS\u200c\uaaf6\u18a5.\u22b6\u10c1\u10b6",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "ss\u200c\uaaf6\u18a5.\u22b6\u2d21\u2d16",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "Ss\u200c\uaaf6\u18a5.\u22b6\u10c1\u2d16",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--ss-4epx629f.xn--5nd703gyrh",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--ss-4ep585bkm5p.xn--5nd703gyrh",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--ss-4epx629f.xn--ifh802b6a",
++++    "output": "xn--ss-4epx629f.xn--ifh802b6a"
++++  },
++++  {
++++    "input": "ss\uaaf6\u18a5.\u22b6\u2d21\u2d16",
++++    "output": "xn--ss-4epx629f.xn--ifh802b6a"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "SS\uaaf6\u18a5.\u22b6\u10c1\u10b6",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "Ss\uaaf6\u18a5.\u22b6\u10c1\u2d16",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--ss-4epx629f.xn--undv409k",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "xn--ss-4ep585bkm5p.xn--ifh802b6a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--ss-4ep585bkm5p.xn--undv409k",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "xn--zca682johfi89m.xn--ifh802b6a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--zca682johfi89m.xn--undv409k",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\u00df\u200c\uaaf6\u18a5\uff0e\u22b6\u2d21\u2d16",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "SS\u200c\uaaf6\u18a5\uff0e\u22b6\u10c1\u10b6",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "ss\u200c\uaaf6\u18a5\uff0e\u22b6\u2d21\u2d16",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "Ss\u200c\uaaf6\u18a5\uff0e\u22b6\u10c1\u2d16",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u200d\u3002\u03c2\udb40\udc49",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u200d\u3002\u03a3\udb40\udc49",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u200d\u3002\u03c3\udb40\udc49",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": ".xn--4xa24344p",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--1ug.xn--4xa24344p",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--1ug.xn--3xa44344p",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\u2492\uda61\ude19\uda8f\udce0\ud805\udcc0.-\udb3a\udc4a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "11.\uda61\ude19\uda8f\udce0\ud805\udcc0.-\udb3a\udc4a",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "11.xn--uz1d59632bxujd.xn----x310m",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn--3shy698frsu9dt1me.xn----x310m",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "-\uff61\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "-\u3002\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "-.",
++++    "output": "-."
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "-.xn--1ug",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u126c\uda12\udc3c\ud8c5\uddf6\uff61\ud802\ude2c\ud835\udfe0",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u126c\uda12\udc3c\ud8c5\uddf6\u3002\ud802\ude2c8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--d0d41273c887z.xn--8-ob5i",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6; V3 (ignored)",
++++    "input": "\u03c2\u200d-.\u10c3\ud859\udfd9",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "\u03c2\u200d-.\u2d23\ud859\udfd9",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6; V3 (ignored)",
++++    "input": "\u03a3\u200d-.\u10c3\ud859\udfd9",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "\u03c3\u200d-.\u2d23\ud859\udfd9",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "xn----zmb.xn--rlj2573p",
++++    "output": "xn----zmb.xn--rlj2573p"
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "xn----zmb048s.xn--rlj2573p",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn----zmb.xn--7nd64871a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6; V3 (ignored)",
++++    "input": "xn----zmb048s.xn--7nd64871a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "xn----xmb348s.xn--rlj2573p",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6; V3 (ignored)",
++++    "input": "xn----xmb348s.xn--7nd64871a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udad6\udf3d.\u8814",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--g747d.xn--xl2a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u08e6\u200d\uff0e\ubf3d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u08e6\u200d\uff0e\u1108\u1168\u11c0",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u08e6\u200d.\ubf3d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u08e6\u200d.\u1108\u1168\u11c0",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--p0b.xn--e43b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "xn--p0b869i.xn--e43b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud8f6\ude3d\uff0e\ud8ef\ude15",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud8f6\ude3d.\ud8ef\ude15",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--pr3x.xn--rv7w",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud802\udfc0\ud803\ude09\ud83a\uddcf\u3002\ud949\udea7\u2084\u10ab\ud8cb\ude6b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud802\udfc0\ud803\ude09\ud83a\uddcf\u3002\ud949\udea74\u10ab\ud8cb\ude6b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud802\udfc0\ud803\ude09\ud83a\uddcf\u3002\ud949\udea74\u2d0b\ud8cb\ude6b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--039c42bq865a.xn--4-wvs27840bnrzm",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--039c42bq865a.xn--4-t0g49302fnrzm",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud802\udfc0\ud803\ude09\ud83a\uddcf\u3002\ud949\udea7\u2084\u2d0b\ud8cb\ude6b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud835\udfd3\u3002\u06d7",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "5\u3002\u06d7",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "5.xn--nlb",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\udaab\ude29.\u2f95",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\udaab\ude29.\u8c37",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--i183d.xn--6g3a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ug26167i.xn--6g3a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; P1; V6; V3 (ignored)",
++++    "input": "\ufe12\udafb\udc07\u200d.-\u073c\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; P1; V6; V3 (ignored); A4_2 (ignored)",
++++    "input": "\u3002\udafb\udc07\u200d.-\u073c\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored); A4_2 (ignored)",
++++    "input": ".xn--hh50e.xn----t2c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; V6; V3 (ignored); A4_2 (ignored)",
++++    "input": ".xn--1ug05310k.xn----t2c071q",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn--y86c71305c.xn----t2c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; V6; V3 (ignored)",
++++    "input": "xn--1ug1658ftw26f.xn----t2c071q",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u200d\uff0e\ud835\udfd7",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u10ad\ud8be\udccd\ua868\u05ae\u3002\u10be\u200c\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u2d0d\ud8be\udccd\ua868\u05ae\u3002\u2d1e\u200c\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--5cb172r175fug38a.xn--mlj",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--5cb172r175fug38a.xn--0uga051h",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--5cb347co96jug15a.xn--2nd",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--5cb347co96jug15a.xn--2nd059ea",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud800\udef0\u3002\udb05\udcf1",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--k97c.xn--q031e",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u08df\u10ab\ud89b\udff8\uade4\uff0e\uda40\udd7c\ud835\udfe2\ud72a\u0ae3",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u08df\u10ab\ud89b\udff8\u1100\u1172\u11af\uff0e\uda40\udd7c\ud835\udfe2\u1112\u1171\u11b9\u0ae3",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u08df\u10ab\ud89b\udff8\uade4.\uda40\udd7c0\ud72a\u0ae3",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u08df\u10ab\ud89b\udff8\u1100\u1172\u11af.\uda40\udd7c0\u1112\u1171\u11b9\u0ae3",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u08df\u2d0b\ud89b\udff8\u1100\u1172\u11af.\uda40\udd7c0\u1112\u1171\u11b9\u0ae3",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u08df\u2d0b\ud89b\udff8\uade4.\uda40\udd7c0\ud72a\u0ae3",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--i0b436pkl2g2h42a.xn--0-8le8997mulr5f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--i0b601b6r7l2hs0a.xn--0-8le8997mulr5f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u08df\u2d0b\ud89b\udff8\u1100\u1172\u11af\uff0e\uda40\udd7c\ud835\udfe2\u1112\u1171\u11b9\u0ae3",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u08df\u2d0b\ud89b\udff8\uade4\uff0e\uda40\udd7c\ud835\udfe2\ud72a\u0ae3",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u0784\uff0e\ud83a\udc5d\u0601",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u0784.\ud83a\udc5d\u0601",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--lqb.xn--jfb1808v",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u0acd\u2083.8\ua8c4\u200d\ud83c\udce4",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u0acd3.8\ua8c4\u200d\ud83c\udce4",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--3-yke.xn--8-sl4et308f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--3-yke.xn--8-ugnv982dbkwm",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\u9c4a\u3002\u200c",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--rt6a.",
++++    "output": "xn--rt6a."
++++  },
++++  {
++++    "input": "\u9c4a.",
++++    "output": "xn--rt6a."
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "xn--rt6a.xn--0ug",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--4-0bd15808a.",
++++    "output": "xn--4-0bd15808a."
++++  },
++++  {
++++    "input": "\ud83a\udd3a\u07cc4.",
++++    "output": "xn--4-0bd15808a."
++++  },
++++  {
++++    "input": "\ud83a\udd18\u07cc4.",
++++    "output": "xn--4-0bd15808a."
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "-\uff61\u43db",
++++    "output": "-.xn--xco"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "-\u3002\u43db",
++++    "output": "-.xn--xco"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "-.xn--xco",
++++    "output": "-.xn--xco"
++++  },
++++  {
++++    "comment": "C1; C2; P1; V6",
++++    "input": "\u200c\ud908\udce0\uff0e\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; P1; V6",
++++    "input": "\u200c\ud908\udce0.\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--dj8y.",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; V6",
++++    "input": "xn--0ugz7551c.xn--1ug",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud804\uddc0.\udb42\ude31",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--wd1d.xn--k946e",
++++    "output": null
++++  },
++++  {
++++    "input": "\ud83a\udd2a.\u03c2",
++++    "output": "xn--ie6h.xn--3xa"
++++  },
++++  {
++++    "input": "\ud83a\udd08.\u03a3",
++++    "output": "xn--ie6h.xn--4xa"
++++  },
++++  {
++++    "input": "\ud83a\udd2a.\u03c3",
++++    "output": "xn--ie6h.xn--4xa"
++++  },
++++  {
++++    "input": "\ud83a\udd08.\u03c3",
++++    "output": "xn--ie6h.xn--4xa"
++++  },
++++  {
++++    "input": "xn--ie6h.xn--4xa",
++++    "output": "xn--ie6h.xn--4xa"
++++  },
++++  {
++++    "input": "\ud83a\udd08.\u03c2",
++++    "output": "xn--ie6h.xn--3xa"
++++  },
++++  {
++++    "input": "xn--ie6h.xn--3xa",
++++    "output": "xn--ie6h.xn--3xa"
++++  },
++++  {
++++    "input": "\ud83a\udd2a.\u03a3",
++++    "output": "xn--ie6h.xn--4xa"
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\u10ba\uff61\u03c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\u10ba\u3002\u03c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\u200c\u2d1a\u3002\u03c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\u10ba\u3002\u03a3",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\u200c\u2d1a\u3002\u03c3",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--ilj.xn--4xa",
++++    "output": "xn--ilj.xn--4xa"
++++  },
++++  {
++++    "input": "\u2d1a.\u03c3",
++++    "output": "xn--ilj.xn--4xa"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10ba.\u03a3",
++++    "output": null
++++  },
++++  {
++++    "input": "\u2d1a.\u03c2",
++++    "output": "xn--ilj.xn--3xa"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10ba.\u03c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--ynd.xn--4xa",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--ynd.xn--3xa",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--ilj.xn--3xa",
++++    "output": "xn--ilj.xn--3xa"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10ba.\u03c3",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "xn--0ug262c.xn--4xa",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--ynd759e.xn--4xa",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "xn--0ug262c.xn--3xa",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--ynd759e.xn--3xa",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\u200c\u2d1a\uff61\u03c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\u10ba\uff61\u03a3",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\u200c\u2d1a\uff61\u03c3",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200d\u2f95\u3002\u200c\u0310\ua953\ua84e",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200d\u2f95\u3002\u200c\ua953\u0310\ua84e",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200d\u8c37\u3002\u200c\ua953\u0310\ua84e",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--6g3a.xn--0sa8175flwa",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "xn--1ug0273b.xn--0sa359l6n7g13a",
++++    "output": null
++++  },
++++  {
++++    "input": "\u6dfd\u3002\u183e",
++++    "output": "xn--34w.xn--x7e"
++++  },
++++  {
++++    "input": "xn--34w.xn--x7e",
++++    "output": "xn--34w.xn--x7e"
++++  },
++++  {
++++    "input": "\u6dfd.\u183e",
++++    "output": "xn--34w.xn--x7e"
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\uda72\ude29\u10b3\u2753\uff61\ud804\udd28",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\uda72\ude29\u10b3\u2753\u3002\ud804\udd28",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\uda72\ude29\u2d13\u2753\u3002\ud804\udd28",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--8di78qvw32y.xn--k80d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--rnd896i0j14q.xn--k80d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\uda72\ude29\u2d13\u2753\uff61\ud804\udd28",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u17ff\uff61\ud83a\udf33",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u17ff\u3002\ud83a\udf33",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--45e.xn--et6h",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u0652\u200d\uff61\u0ccd\ud805\udeb3",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u0652\u200d\u3002\u0ccd\ud805\udeb3",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--uhb.xn--8tc4527k",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "xn--uhb882k.xn--8tc4527k",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u00df\ud880\udc3b\ud8da\udf17\uff61\ud836\ude68\ud83d\udd6e\u00df",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u00df\ud880\udc3b\ud8da\udf17\u3002\ud836\ude68\ud83d\udd6e\u00df",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "SS\ud880\udc3b\ud8da\udf17\u3002\ud836\ude68\ud83d\udd6eSS",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "ss\ud880\udc3b\ud8da\udf17\u3002\ud836\ude68\ud83d\udd6ess",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "Ss\ud880\udc3b\ud8da\udf17\u3002\ud836\ude68\ud83d\udd6eSs",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--ss-jl59biy67d.xn--ss-4d11aw87d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--zca20040bgrkh.xn--zca3653v86qa",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "SS\ud880\udc3b\ud8da\udf17\uff61\ud836\ude68\ud83d\udd6eSS",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "ss\ud880\udc3b\ud8da\udf17\uff61\ud836\ude68\ud83d\udd6ess",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "Ss\ud880\udc3b\ud8da\udf17\uff61\ud836\ude68\ud83d\udd6eSs",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200d\u3002\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "xn--1ug.xn--0ug",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb41\udc58\uff0e\udb40\udd2e",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb41\udc58.\udb40\udd2e",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--s136e.",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ua9b7\udb37\udd59\uba79\u3002\u249b\udb42\ude07",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ua9b7\udb37\udd59\u1106\u1167\u11b0\u3002\u249b\udb42\ude07",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ua9b7\udb37\udd59\uba79\u300220.\udb42\ude07",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ua9b7\udb37\udd59\u1106\u1167\u11b0\u300220.\udb42\ude07",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--ym9av13acp85w.20.xn--d846e",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--ym9av13acp85w.xn--dth22121k",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\uff61\ufe12",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; A4_2 (ignored)",
++++    "input": "\u200c\u3002\u3002",
++++    "output": null
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": "..",
++++    "output": ".."
++++  },
++++  {
++++    "comment": "C1; A4_2 (ignored)",
++++    "input": "xn--0ug..",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": ".xn--y86c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ug.xn--y86c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u1872-\ud835\udff9.\u00df-\u200c-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u1872-3.\u00df-\u200c-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u1872-3.SS-\u200c-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u1872-3.ss-\u200c-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u1872-3.Ss-\u200c-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V2 (ignored); V3 (ignored)",
++++    "input": "xn---3-p9o.ss--",
++++    "output": "xn---3-p9o.ss--"
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "xn---3-p9o.xn--ss---276a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "xn---3-p9o.xn-----fia9303a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u1872-\ud835\udff9.SS-\u200c-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u1872-\ud835\udff9.ss-\u200c-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u1872-\ud835\udff9.Ss-\u200c-",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\udb27\udd9c\u1898\u3002\u1a7f\u2ea2",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--ibf35138o.xn--fpfz94g",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\uda1c\udda7\ud835\udfef\u3002\u2488\u1a76\ud835\udfda\uda41\ude0c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\uda1c\udda73\u30021.\u1a762\uda41\ude0c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--3-rj42h.1.xn--2-13k96240l",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--3-rj42h.xn--2-13k746cq465x",
++++    "output": null
++++  },
++++  {
++++    "input": "\ua860\uff0e\u06f2",
++++    "output": "xn--5c9a.xn--fmb"
++++  },
++++  {
++++    "input": "\ua860.\u06f2",
++++    "output": "xn--5c9a.xn--fmb"
++++  },
++++  {
++++    "input": "xn--5c9a.xn--fmb",
++++    "output": "xn--5c9a.xn--fmb"
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\ua67d\u200c\ud87e\uddf5\ud83c\udd06\uff61\u200c\ud804\udc42\u1b01",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\ua67d\u200c\u9723\ud83c\udd06\uff61\u200c\ud804\udc42\u1b01",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--2q5a751a653w.xn--4sf0725i",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V6",
++++    "input": "xn--0ug4208b2vjuk63a.xn--4sf36u6u4w",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u514e\uff61\u183c\udb43\udd1c\ud805\udeb6\ud807\udc3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u514e\u3002\u183c\udb43\udd1c\ud805\udeb6\ud807\udc3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--b5q.xn--v7e6041kqqd4m251b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\ud835\udfd9\uff61\u200d\ud835\udff8\u200d\u2077",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "1\u3002\u200d2\u200d7",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "1.xn--27-l1tb",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\u1868-\uff61\udb43\udecb\ud835\udff7",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\u1868-\u3002\udb43\udecb1",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn----z8j.xn--1-5671m",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u10bc\ud9e3\udded\u0f80\u2f87\u3002\u10af\u2640\u200c\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u10bc\ud9e3\udded\u0f80\u821b\u3002\u10af\u2640\u200c\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u2d1c\ud9e3\udded\u0f80\u821b\u3002\u2d0f\u2640\u200c\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--zed372mdj2do3v4h.xn--e5h11w",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--zed372mdj2do3v4h.xn--0uga678bgyh",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--zed54dz10wo343g.xn--nnd651i",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--zed54dz10wo343g.xn--nnd089ea464d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u2d1c\ud9e3\udded\u0f80\u2f87\u3002\u2d0f\u2640\u200c\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\ud804\udc46\ud835\udff0.\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\ud804\udc464.\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--4-xu7i.",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "xn--4-xu7i.xn--1ug",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\ud97b\udd18\u10be\u7640\uff61\ud805\ude3f\u200d\u200c\ubdbc",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\ud97b\udd18\u10be\u7640\uff61\ud805\ude3f\u200d\u200c\u1107\u1170\u11ab",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\ud97b\udd18\u10be\u7640\u3002\ud805\ude3f\u200d\u200c\ubdbc",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\ud97b\udd18\u10be\u7640\u3002\ud805\ude3f\u200d\u200c\u1107\u1170\u11ab",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\ud97b\udd18\u2d1e\u7640\u3002\ud805\ude3f\u200d\u200c\u1107\u1170\u11ab",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\ud97b\udd18\u2d1e\u7640\u3002\ud805\ude3f\u200d\u200c\ubdbc",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--mlju35u7qx2f.xn--et3bn23n",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V6",
++++    "input": "xn--mlju35u7qx2f.xn--0ugb6122js83c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--2nd6803c7q37d.xn--et3bn23n",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V6",
++++    "input": "xn--2nd6803c7q37d.xn--0ugb6122js83c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\ud97b\udd18\u2d1e\u7640\uff61\ud805\ude3f\u200d\u200c\u1107\u1170\u11ab",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\ud97b\udd18\u2d1e\u7640\uff61\ud805\ude3f\u200d\u200c\ubdbc",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "-\ud804\ude36\u248f\uff0e\u248e\ud881\udee2\udb40\udfad",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored); A4_2 (ignored)",
++++    "input": "-\ud804\ude368..7.\ud881\udee2\udb40\udfad",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored); A4_2 (ignored)",
++++    "input": "xn---8-bv5o..7.xn--c35nf1622b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn----scp6252h.xn--zshy411yzpx2d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\u0ecb\u200d\uff0e\u9381\udb43\udc11",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\u0ecb\u200d.\u9381\udb43\udc11",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--t8c.xn--iz4a43209d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5; V6",
++++    "input": "xn--t8c059f.xn--iz4a43209d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\ud9e5\udef4.-\u1862\u0592\ud836\ude20",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn--ep37b.xn----hec165lho83b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\ud8bc\udc2b\uff0e\u1baa\u03c2\u10a6\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\ud8bc\udc2b.\u1baa\u03c2\u10a6\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\ud8bc\udc2b.\u1baa\u03c2\u2d06\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\ud8bc\udc2b.\u1baa\u03a3\u10a6\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\ud8bc\udc2b.\u1baa\u03c3\u2d06\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\ud8bc\udc2b.\u1baa\u03a3\u2d06\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--nu4s.xn--4xa153j7im",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5; V6",
++++    "input": "xn--nu4s.xn--4xa153jk8cs1q",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--nu4s.xn--4xa217dxri",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5; V6",
++++    "input": "xn--nu4s.xn--4xa217dxriome",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5; V6",
++++    "input": "xn--nu4s.xn--3xa353jk8cs1q",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5; V6",
++++    "input": "xn--nu4s.xn--3xa417dxriome",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\ud8bc\udc2b\uff0e\u1baa\u03c2\u2d06\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\ud8bc\udc2b\uff0e\u1baa\u03a3\u10a6\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\ud8bc\udc2b\uff0e\u1baa\u03c3\u2d06\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\ud8bc\udc2b\uff0e\u1baa\u03a3\u2d06\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\u2488\u200c\uaaec\ufe12\uff0e\u0acd",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; A4_2 (ignored)",
++++    "input": "1.\u200c\uaaec\u3002.\u0acd",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; A4_2 (ignored)",
++++    "input": "1.xn--sv9a..xn--mfc",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; A4_2 (ignored)",
++++    "input": "1.xn--0ug7185c..xn--mfc",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--tsh0720cse8b.xn--mfc",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V6",
++++    "input": "xn--0ug78o720myr1c.xn--mfc",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\u00df\u200d.\u1bf2\ud8d3\udfbc",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "SS\u200d.\u1bf2\ud8d3\udfbc",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "ss\u200d.\u1bf2\ud8d3\udfbc",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "Ss\u200d.\u1bf2\ud8d3\udfbc",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "ss.xn--0zf22107b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5; V6",
++++    "input": "xn--ss-n1t.xn--0zf22107b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5; V6",
++++    "input": "xn--zca870n.xn--0zf22107b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud83d\udd7c\uff0e\uffa0",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud83d\udd7c.\u1160",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--my8h.xn--psd",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--my8h.xn--cl7c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u7215\uda8d\ude51\uff0e\ud835\udff0\u6c17",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u7215\uda8d\ude51.4\u6c17",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--1zxq3199c.xn--4-678b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V2 (ignored); V3 (ignored)",
++++    "input": "\udb39\udf43\u3002\uda04\udd83\ud8e6\udc97--",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V2 (ignored); V3 (ignored)",
++++    "input": "xn--2y75e.xn-----1l15eer88n",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u8530\u3002\udb40\udc79\u08dd-\ud804\ude35",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--sz1a.xn----mrd9984r3dl0i",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u03c2\u10c5\u3002\u075a",
++++    "output": null
++++  },
++++  {
++++    "input": "\u03c2\u2d25\u3002\u075a",
++++    "output": "xn--3xa403s.xn--epb"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u03a3\u10c5\u3002\u075a",
++++    "output": null
++++  },
++++  {
++++    "input": "\u03c3\u2d25\u3002\u075a",
++++    "output": "xn--4xa203s.xn--epb"
++++  },
++++  {
++++    "input": "\u03a3\u2d25\u3002\u075a",
++++    "output": "xn--4xa203s.xn--epb"
++++  },
++++  {
++++    "input": "xn--4xa203s.xn--epb",
++++    "output": "xn--4xa203s.xn--epb"
++++  },
++++  {
++++    "input": "\u03c3\u2d25.\u075a",
++++    "output": "xn--4xa203s.xn--epb"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u03a3\u10c5.\u075a",
++++    "output": null
++++  },
++++  {
++++    "input": "\u03a3\u2d25.\u075a",
++++    "output": "xn--4xa203s.xn--epb"
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--4xa477d.xn--epb",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--3xa403s.xn--epb",
++++    "output": "xn--3xa403s.xn--epb"
++++  },
++++  {
++++    "input": "\u03c2\u2d25.\u075a",
++++    "output": "xn--3xa403s.xn--epb"
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--3xa677d.xn--epb",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--vkb.xn--08e172a",
++++    "output": "xn--vkb.xn--08e172a"
++++  },
++++  {
++++    "input": "\u06bc.\u1e8f\u1864",
++++    "output": "xn--vkb.xn--08e172a"
++++  },
++++  {
++++    "input": "\u06bc.y\u0307\u1864",
++++    "output": "xn--vkb.xn--08e172a"
++++  },
++++  {
++++    "input": "\u06bc.Y\u0307\u1864",
++++    "output": "xn--vkb.xn--08e172a"
++++  },
++++  {
++++    "input": "\u06bc.\u1e8e\u1864",
++++    "output": "xn--vkb.xn--08e172a"
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--pt9c.xn--hnd666l",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--pt9c.xn--0kjya",
++++    "output": "xn--pt9c.xn--0kjya"
++++  },
++++  {
++++    "input": "\ud802\ude57.\u2d09\u2d15",
++++    "output": "xn--pt9c.xn--0kjya"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud802\ude57.\u10a9\u10b5",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud802\ude57.\u10a9\u2d15",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--pt9c.xn--hndy",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\u200c\u200c\u3124\uff0e\u032e\udb16\ude11\u09c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\u200c\u200c\u3124.\u032e\udb16\ude11\u09c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--1fk.xn--vta284a9o563a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V6",
++++    "input": "xn--0uga242k.xn--vta284a9o563a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10b4\ud836\ude28\u2083\udb40\udc66\uff0e\ud835\udff3\ud804\udcb9\u0b82",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10b4\ud836\ude283\udb40\udc66.7\ud804\udcb9\u0b82",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2d14\ud836\ude283\udb40\udc66.7\ud804\udcb9\u0b82",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--3-ews6985n35s3g.xn--7-cve6271r",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--3-b1g83426a35t0g.xn--7-cve6271r",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2d14\ud836\ude28\u2083\udb40\udc66\uff0e\ud835\udff3\ud804\udcb9\u0b82",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u43c8\u200c\u3002\u200c\u2488\ud986\udc95",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u43c8\u200c\u3002\u200c1.\ud986\udc95",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--eco.1.xn--ms39a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ug491l.xn--1-rgn.xn--ms39a",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--eco.xn--tsh21126d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ug491l.xn--0ug88oot66q",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\uff11\uaaf6\u00df\ud807\udca5\uff61\u1dd8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "1\uaaf6\u00df\ud807\udca5\u3002\u1dd8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "1\uaaf6SS\ud807\udca5\u3002\u1dd8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "1\uaaf6ss\ud807\udca5\u3002\u1dd8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--1ss-ir6ln166b.xn--weg",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--1-qfa2471kdb0d.xn--weg",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\uff11\uaaf6SS\ud807\udca5\uff61\u1dd8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\uff11\uaaf6ss\ud807\udca5\uff61\u1dd8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "1\uaaf6Ss\ud807\udca5\u3002\u1dd8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\uff11\uaaf6Ss\ud807\udca5\uff61\u1dd8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--3j78f.xn--mkb20b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud88a\udd31\u249b\u2fb3\uff0e\ua866\u2488",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud88a\udd3120.\u97f3.\ua8661.",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--20-9802c.xn--0w5a.xn--1-eg4e.",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--dth6033bzbvx.xn--tsh9439b",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--ge6h.xn--oc9a",
++++    "output": "xn--ge6h.xn--oc9a"
++++  },
++++  {
++++    "input": "\ud83a\udd28.\ua84f",
++++    "output": "xn--ge6h.xn--oc9a"
++++  },
++++  {
++++    "input": "\ud83a\udd06.\ua84f",
++++    "output": "xn--ge6h.xn--oc9a"
++++  },
++++  {
++++    "comment": "C1; P1; V6; V3 (ignored)",
++++    "input": "\u200c.\u00df\u10a9-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u200c.\u00df\u2d09-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6; V3 (ignored)",
++++    "input": "\u200c.SS\u10a9-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u200c.ss\u2d09-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "\u200c.Ss\u2d09-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored); A4_2 (ignored)",
++++    "input": ".xn--ss--bi1b",
++++    "output": ".xn--ss--bi1b"
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "xn--0ug.xn--ss--bi1b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored); A4_2 (ignored)",
++++    "input": ".xn--ss--4rn",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6; V3 (ignored)",
++++    "input": "xn--0ug.xn--ss--4rn",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V3 (ignored)",
++++    "input": "xn--0ug.xn----pfa2305a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6; V3 (ignored)",
++++    "input": "xn--0ug.xn----pfa042j",
++++    "output": null
++++  },
++++  {
++++    "input": "\u9f59--\ud835\udff0.\u00df",
++++    "output": "xn----4-p16k.xn--zca"
++++  },
++++  {
++++    "input": "\u9f59--4.\u00df",
++++    "output": "xn----4-p16k.xn--zca"
++++  },
++++  {
++++    "input": "\u9f59--4.SS",
++++    "output": "xn----4-p16k.ss"
++++  },
++++  {
++++    "input": "\u9f59--4.ss",
++++    "output": "xn----4-p16k.ss"
++++  },
++++  {
++++    "input": "\u9f59--4.Ss",
++++    "output": "xn----4-p16k.ss"
++++  },
++++  {
++++    "input": "xn----4-p16k.ss",
++++    "output": "xn----4-p16k.ss"
++++  },
++++  {
++++    "input": "xn----4-p16k.xn--zca",
++++    "output": "xn----4-p16k.xn--zca"
++++  },
++++  {
++++    "input": "\u9f59--\ud835\udff0.SS",
++++    "output": "xn----4-p16k.ss"
++++  },
++++  {
++++    "input": "\u9f59--\ud835\udff0.ss",
++++    "output": "xn----4-p16k.ss"
++++  },
++++  {
++++    "input": "\u9f59--\ud835\udff0.Ss",
++++    "output": "xn----4-p16k.ss"
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\udacf\udc99\udb40\uded8\uff61?-\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\udacf\udc99\udb40\uded8\u3002?-\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "xn--ct86d8w51a.?-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "xn--ct86d8w51a.xn--?--n1t",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "xn--ct86d8w51a.?-\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "XN--CT86D8W51A.?-\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "Xn--Ct86d8w51a.?-\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud836\ude9e\u10b0\uff61\ucaa1",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud836\ude9e\u10b0\uff61\u110d\u1168\u11a8",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud836\ude9e\u10b0\u3002\ucaa1",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud836\ude9e\u10b0\u3002\u110d\u1168\u11a8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud836\ude9e\u2d10\u3002\u110d\u1168\u11a8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud836\ude9e\u2d10\u3002\ucaa1",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--7kj1858k.xn--pi6b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--ond3755u.xn--pi6b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud836\ude9e\u2d10\uff61\u110d\u1168\u11a8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud836\ude9e\u2d10\uff61\ucaa1",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u1845\uff10\u200c\uff61\u23a2\udb52\ude04",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u18450\u200c\u3002\u23a2\udb52\ude04",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--0-z6j.xn--8lh28773l",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0-z6jy93b.xn--8lh28773l",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\ud88a\udf9a\uff19\ua369\u17d3\uff0e\u200d\u00df",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\ud88a\udf9a9\ua369\u17d3.\u200d\u00df",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\ud88a\udf9a9\ua369\u17d3.\u200dSS",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\ud88a\udf9a9\ua369\u17d3.\u200dss",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--9-i0j5967eg3qz.ss",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--9-i0j5967eg3qz.xn--ss-l1t",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--9-i0j5967eg3qz.xn--zca770n",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\ud88a\udf9a\uff19\ua369\u17d3\uff0e\u200dSS",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\ud88a\udf9a\uff19\ua369\u17d3\uff0e\u200dss",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\ud88a\udf9a9\ua369\u17d3.\u200dSs",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\ud88a\udf9a\uff19\ua369\u17d3\uff0e\u200dSs",
++++    "output": null
++++  },
++++  {
++++    "input": "\ua5f7\ud804\udd80.\u075d\ud802\ude52",
++++    "output": "xn--ju8a625r.xn--hpb0073k"
++++  },
++++  {
++++    "input": "xn--ju8a625r.xn--hpb0073k",
++++    "output": "xn--ju8a625r.xn--hpb0073k"
++++  },
++++  {
++++    "comment": "C2; P1; V6; V3 (ignored)",
++++    "input": "\u10af\udb40\udd4b-\uff0e\u200d\u10a9",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6; V3 (ignored)",
++++    "input": "\u10af\udb40\udd4b-.\u200d\u10a9",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "\u2d0f\udb40\udd4b-.\u200d\u2d09",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "xn----3vs.xn--0kj",
++++    "output": "xn----3vs.xn--0kj"
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "xn----3vs.xn--1ug532c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn----00g.xn--hnd",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6; V3 (ignored)",
++++    "input": "xn----00g.xn--hnd399e",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "\u2d0f\udb40\udd4b-\uff0e\u200d\u2d09",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "\u1714\u3002\udb40\udda3-\ud804\udeea",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "xn--fze.xn----ly8i",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\uabe8-\uff0e\uda60\udfdc\u05bd\u00df",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\uabe8-.\uda60\udfdc\u05bd\u00df",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\uabe8-.\uda60\udfdc\u05bdSS",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\uabe8-.\uda60\udfdc\u05bdss",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\uabe8-.\uda60\udfdc\u05bdSs",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn----pw5e.xn--ss-7jd10716y",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn----pw5e.xn--zca50wfv060a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\uabe8-\uff0e\uda60\udfdc\u05bdSS",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\uabe8-\uff0e\uda60\udfdc\u05bdss",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\uabe8-\uff0e\uda60\udfdc\u05bdSs",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud835\udfe5\u266e\ud805\udf2b\u08ed\uff0e\u17d2\ud805\udf2b8\udb40\udd8f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "3\u266e\ud805\udf2b\u08ed.\u17d2\ud805\udf2b8\udb40\udd8f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--3-ksd277tlo7s.xn--8-f0jx021l",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6; V3 (ignored)",
++++    "input": "-\uff61\uda14\udf00\u200d\u2761",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6; V3 (ignored)",
++++    "input": "-\u3002\uda14\udf00\u200d\u2761",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "-.xn--nei54421f",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6; V3 (ignored)",
++++    "input": "-.xn--1ug800aq795s",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ud835\udfd3\u2631\ud835\udfd0\uda57\udc35\uff61\ud836\udeae\ud902\udc73",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "5\u26312\uda57\udc35\u3002\ud836\udeae\ud902\udc73",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--52-dwx47758j.xn--kd3hk431k",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "-.-\u251c\uda1a\udda3",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "-.xn----ukp70432h",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u03c2\uff0e\ufdc1\ud83d\udf9b\u2488",
++++    "output": null
++++  },
++++  {
++++    "input": "\u03c2.\u0641\u0645\u064a\ud83d\udf9b1.",
++++    "output": "xn--3xa.xn--1-gocmu97674d."
++++  },
++++  {
++++    "input": "\u03a3.\u0641\u0645\u064a\ud83d\udf9b1.",
++++    "output": "xn--4xa.xn--1-gocmu97674d."
++++  },
++++  {
++++    "input": "\u03c3.\u0641\u0645\u064a\ud83d\udf9b1.",
++++    "output": "xn--4xa.xn--1-gocmu97674d."
++++  },
++++  {
++++    "input": "xn--4xa.xn--1-gocmu97674d.",
++++    "output": "xn--4xa.xn--1-gocmu97674d."
++++  },
++++  {
++++    "input": "xn--3xa.xn--1-gocmu97674d.",
++++    "output": "xn--3xa.xn--1-gocmu97674d."
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u03a3\uff0e\ufdc1\ud83d\udf9b\u2488",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u03c3\uff0e\ufdc1\ud83d\udf9b\u2488",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--4xa.xn--dhbip2802atb20c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--3xa.xn--dhbip2802atb20c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "9\udb40\udde5\uff0e\udb6b\udd34\u1893",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "9\udb40\udde5.\udb6b\udd34\u1893",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "9.xn--dbf91222q",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\ufe12\u10b6\u0366\uff0e\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6; A4_2 (ignored)",
++++    "input": "\u3002\u10b6\u0366.\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; A4_2 (ignored)",
++++    "input": "\u3002\u2d16\u0366.\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": ".xn--hva754s.",
++++    "output": ".xn--hva754s."
++++  },
++++  {
++++    "comment": "C1; A4_2 (ignored)",
++++    "input": ".xn--hva754s.xn--0ug",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": ".xn--hva929d.",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6; A4_2 (ignored)",
++++    "input": ".xn--hva929d.xn--0ug",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\ufe12\u2d16\u0366\uff0e\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--hva754sy94k.",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--hva754sy94k.xn--0ug",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--hva929dl29p.",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--hva929dl29p.xn--0ug",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--hva754s.",
++++    "output": "xn--hva754s."
++++  },
++++  {
++++    "input": "\u2d16\u0366.",
++++    "output": "xn--hva754s."
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10b6\u0366.",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--hva929d.",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--hzb.xn--ukj4430l",
++++    "output": "xn--hzb.xn--ukj4430l"
++++  },
++++  {
++++    "input": "\u08bb.\u2d03\ud838\udc12",
++++    "output": "xn--hzb.xn--ukj4430l"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u08bb.\u10a3\ud838\udc12",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--hzb.xn--bnd2938u",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; P1; V6",
++++    "input": "\u200d\u200c\u3002\uff12\u4af7\udb42\uddf7",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; P1; V6",
++++    "input": "\u200d\u200c\u30022\u4af7\udb42\uddf7",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": ".xn--2-me5ay1273i",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2; V6",
++++    "input": "xn--0ugb.xn--2-me5ay1273i",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "-\ud838\udc24\udb32\udc10\u3002\ud9e2\udf16",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn----rq4re4997d.xn--l707b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\udb8d\udec2\ufe12\u200c\u37c0\uff0e\u0624\u2488",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\udb8d\udec2\ufe12\u200c\u37c0\uff0e\u0648\u0654\u2488",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--z272f.xn--etl.xn--1-smc.",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--etlt457ccrq7h.xn--jgb476m",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ug754gxl4ldlt0k.xn--jgb476m",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u07fc\ud803\ude06.\ud80d\udd8f\ufe12\ud8ea\ude29\u10b0",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u07fc\ud803\ude06.\ud80d\udd8f\u3002\ud8ea\ude29\u10b0",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u07fc\ud803\ude06.\ud80d\udd8f\u3002\ud8ea\ude29\u2d10",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--0tb8725k.xn--tu8d.xn--7kj73887a",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--0tb8725k.xn--tu8d.xn--ond97931d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u07fc\ud803\ude06.\ud80d\udd8f\ufe12\ud8ea\ude29\u2d10",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--0tb8725k.xn--7kj9008dt18a7py9c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--0tb8725k.xn--ond3562jt18a7py9c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u10c5\u26ad\udb41\uddab\u22c3\uff61\ud804\udf3c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u10c5\u26ad\udb41\uddab\u22c3\u3002\ud804\udf3c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u2d25\u26ad\udb41\uddab\u22c3\u3002\ud804\udf3c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--vfh16m67gx1162b.xn--ro1d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--9nd623g4zc5z060c.xn--ro1d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u2d25\u26ad\udb41\uddab\u22c3\uff61\ud804\udf3c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "\udb40\udd93\u26cf-\u3002\ua852",
++++    "output": "xn----o9p.xn--rc9a"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "xn----o9p.xn--rc9a",
++++    "output": "xn----o9p.xn--rc9a"
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u200d\u650c\uabed\u3002\u1896-\u10b8",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u200d\u650c\uabed\u3002\u1896-\u2d18",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--p9ut19m.xn----mck373i",
++++    "output": "xn--p9ut19m.xn----mck373i"
++++  },
++++  {
++++    "input": "\u650c\uabed.\u1896-\u2d18",
++++    "output": "xn--p9ut19m.xn----mck373i"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u650c\uabed.\u1896-\u10b8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--p9ut19m.xn----k1g451d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "xn--1ug592ykp6b.xn----mck373i",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--1ug592ykp6b.xn----k1g451d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\ua5a8\uff0e\u2497\uff13\ud212\u06f3",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\ua5a8\uff0e\u2497\uff13\u1110\u116d\u11a9\u06f3",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\u200c\ua5a8.16.3\ud212\u06f3",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\u200c\ua5a8.16.3\u1110\u116d\u11a9\u06f3",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--9r8a.16.xn--3-nyc0117m",
++++    "output": "xn--9r8a.16.xn--3-nyc0117m"
++++  },
++++  {
++++    "input": "\ua5a8.16.3\ud212\u06f3",
++++    "output": "xn--9r8a.16.xn--3-nyc0117m"
++++  },
++++  {
++++    "input": "\ua5a8.16.3\u1110\u116d\u11a9\u06f3",
++++    "output": "xn--9r8a.16.xn--3-nyc0117m"
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "xn--0ug2473c.16.xn--3-nyc0117m",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--9r8a.xn--3-nyc678tu07m",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ug2473c.xn--3-nyc678tu07m",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\ud835\udfcf\ud836\ude19\u2e16.\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "1\ud836\ude19\u2e16.\u200d",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--1-5bt6845n.",
++++    "output": "xn--1-5bt6845n."
++++  },
++++  {
++++    "input": "1\ud836\ude19\u2e16.",
++++    "output": "xn--1-5bt6845n."
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "xn--1-5bt6845n.xn--1ug",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "F\udb40\udd5f\uff61\ud9fd\uddc5\u265a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "F\udb40\udd5f\u3002\ud9fd\uddc5\u265a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "f\udb40\udd5f\u3002\ud9fd\uddc5\u265a",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "f.xn--45hz6953f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "f\udb40\udd5f\uff61\ud9fd\uddc5\u265a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u0b4d\ud804\udd34\u1de9\u3002\ud835\udfee\u10b8\ud838\udc28\ud8ce\udd47",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u0b4d\ud804\udd34\u1de9\u30022\u10b8\ud838\udc28\ud8ce\udd47",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u0b4d\ud804\udd34\u1de9\u30022\u2d18\ud838\udc28\ud8ce\udd47",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--9ic246gs21p.xn--2-nws2918ndrjr",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--9ic246gs21p.xn--2-k1g43076adrwq",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u0b4d\ud804\udd34\u1de9\u3002\ud835\udfee\u2d18\ud838\udc28\ud8ce\udd47",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\uda0e\udc2d\u200c\u200c\u2488\u3002\u52c9\ud804\udc45",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6; A4_2 (ignored)",
++++    "input": "\uda0e\udc2d\u200c\u200c1.\u3002\u52c9\ud804\udc45",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": "xn--1-yi00h..xn--4grs325b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6; A4_2 (ignored)",
++++    "input": "xn--1-rgna61159u..xn--4grs325b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--tsh11906f.xn--4grs325b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0uga855aez302a.xn--4grs325b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u1843.\u73bf\ud96c\ude1c\udb15\udf90",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--27e.xn--7cy81125a0yq4a",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "\u20da\uff0e\ud805\ude3f-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "\u20da.\ud805\ude3f-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "xn--w0g.xn----bd0j",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\u1082-\u200d\ua8ea\uff0e\ua84a\u200d\ud9b3\ude33",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\u1082-\u200d\ua8ea.\ua84a\u200d\ud9b3\ude33",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn----gyg3618i.xn--jc9ao4185a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5; V6",
++++    "input": "xn----gyg250jio7k.xn--1ug8774cri56d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud804\ude35\u5eca.\ud802\udc0d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--xytw701b.xn--yc9c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10be\ud899\udec0\ud82d\uddfb\uff0e\u1897\ub9ab",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10be\ud899\udec0\ud82d\uddfb\uff0e\u1897\u1105\u1174\u11c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10be\ud899\udec0\ud82d\uddfb.\u1897\ub9ab",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10be\ud899\udec0\ud82d\uddfb.\u1897\u1105\u1174\u11c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2d1e\ud899\udec0\ud82d\uddfb.\u1897\u1105\u1174\u11c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2d1e\ud899\udec0\ud82d\uddfb.\u1897\ub9ab",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--mlj0486jgl2j.xn--hbf6853f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--2nd8876sgl2j.xn--hbf6853f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2d1e\ud899\udec0\ud82d\uddfb\uff0e\u1897\u1105\u1174\u11c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2d1e\ud899\udec0\ud82d\uddfb\uff0e\u1897\ub9ab",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u00df\u200d\u103a\uff61\u2488",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "SS\u200d\u103a\uff61\u2488",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "ss\u200d\u103a\uff61\u2488",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "Ss\u200d\u103a\uff61\u2488",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--ss-f4j.xn--tsh",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--ss-f4j585j.xn--tsh",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--zca679eh2l.xn--tsh",
++++    "output": null
++++  },
++++  {
++++    "input": "\u06cc\ud802\ude3f\uff0e\u00df\u0f84\ud804\udf6c",
++++    "output": "xn--clb2593k.xn--zca216edt0r"
++++  },
++++  {
++++    "input": "\u06cc\ud802\ude3f.\u00df\u0f84\ud804\udf6c",
++++    "output": "xn--clb2593k.xn--zca216edt0r"
++++  },
++++  {
++++    "input": "\u06cc\ud802\ude3f.SS\u0f84\ud804\udf6c",
++++    "output": "xn--clb2593k.xn--ss-toj6092t"
++++  },
++++  {
++++    "input": "\u06cc\ud802\ude3f.ss\u0f84\ud804\udf6c",
++++    "output": "xn--clb2593k.xn--ss-toj6092t"
++++  },
++++  {
++++    "input": "xn--clb2593k.xn--ss-toj6092t",
++++    "output": "xn--clb2593k.xn--ss-toj6092t"
++++  },
++++  {
++++    "input": "xn--clb2593k.xn--zca216edt0r",
++++    "output": "xn--clb2593k.xn--zca216edt0r"
++++  },
++++  {
++++    "input": "\u06cc\ud802\ude3f\uff0eSS\u0f84\ud804\udf6c",
++++    "output": "xn--clb2593k.xn--ss-toj6092t"
++++  },
++++  {
++++    "input": "\u06cc\ud802\ude3f\uff0ess\u0f84\ud804\udf6c",
++++    "output": "xn--clb2593k.xn--ss-toj6092t"
++++  },
++++  {
++++    "input": "\u06cc\ud802\ude3f.Ss\u0f84\ud804\udf6c",
++++    "output": "xn--clb2593k.xn--ss-toj6092t"
++++  },
++++  {
++++    "input": "\u06cc\ud802\ude3f\uff0eSs\u0f84\ud804\udf6c",
++++    "output": "xn--clb2593k.xn--ss-toj6092t"
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "\u0f9f\uff0e-\u082a",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "\u0f9f.-\u082a",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "xn--vfd.xn----fhd",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u1d6c\udb40\udda0\uff0e\ud552\u2492\u2488\udbe0\udd26",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u1d6c\udb40\udda0\uff0e\u1111\u1175\u11bd\u2492\u2488\udbe0\udd26",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u1d6c\udb40\udda0.\ud55211.1.\udbe0\udd26",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u1d6c\udb40\udda0.\u1111\u1175\u11bd11.1.\udbe0\udd26",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--tbg.xn--11-5o7k.1.xn--k469f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--tbg.xn--tsht7586kyts9l",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2488\u270c\uda3e\udf1f\uff0e\ud835\udfe1\ud943\udc63",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "1.\u270c\uda3e\udf1f.9\ud943\udc63",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "1.xn--7bi44996f.xn--9-o706d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--tsh24g49550b.xn--9-o706d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u03c2\uff0e\ua9c0\ua8c4",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u03c2.\ua9c0\ua8c4",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u03a3.\ua9c0\ua8c4",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u03c3.\ua9c0\ua8c4",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--4xa.xn--0f9ars",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--3xa.xn--0f9ars",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u03a3\uff0e\ua9c0\ua8c4",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\u03c3\uff0e\ua9c0\ua8c4",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2786\ud99e\uddd5\u1ed7\u2488\uff0e\uda06\udf12\ud945\ude2e\u085b\ud835\udfeb",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2786\ud99e\uddd5o\u0302\u0303\u2488\uff0e\uda06\udf12\ud945\ude2e\u085b\ud835\udfeb",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; A4_2 (ignored)",
++++    "input": "\u2786\ud99e\uddd5\u1ed71..\uda06\udf12\ud945\ude2e\u085b9",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; A4_2 (ignored)",
++++    "input": "\u2786\ud99e\uddd5o\u0302\u03031..\uda06\udf12\ud945\ude2e\u085b9",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; A4_2 (ignored)",
++++    "input": "\u2786\ud99e\uddd5O\u0302\u03031..\uda06\udf12\ud945\ude2e\u085b9",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; A4_2 (ignored)",
++++    "input": "\u2786\ud99e\uddd5\u1ed61..\uda06\udf12\ud945\ude2e\u085b9",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": "xn--1-3xm292b6044r..xn--9-6jd87310jtcqs",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2786\ud99e\uddd5O\u0302\u0303\u2488\uff0e\uda06\udf12\ud945\ude2e\u085b\ud835\udfeb",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2786\ud99e\uddd5\u1ed6\u2488\uff0e\uda06\udf12\ud945\ude2e\u085b\ud835\udfeb",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--6lg26tvvc6v99z.xn--9-6jd87310jtcqs",
++++    "output": null
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": ".xn--ye6h",
++++    "output": ".xn--ye6h"
++++  },
++++  {
++++    "input": "xn--ye6h",
++++    "output": "xn--ye6h"
++++  },
++++  {
++++    "input": "\ud83a\udd3a",
++++    "output": "xn--ye6h"
++++  },
++++  {
++++    "input": "\ud83a\udd18",
++++    "output": "xn--ye6h"
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6; V3 (ignored)",
++++    "input": "\u073c\u200c-\u3002\ud80d\udc3e\u00df",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6; V3 (ignored)",
++++    "input": "\u073c\u200c-\u3002\ud80d\udc3eSS",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6; V3 (ignored)",
++++    "input": "\u073c\u200c-\u3002\ud80d\udc3ess",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6; V3 (ignored)",
++++    "input": "\u073c\u200c-\u3002\ud80d\udc3eSs",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn----s2c.xn--ss-066q",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V6; V3 (ignored)",
++++    "input": "xn----s2c071q.xn--ss-066q",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V6; V3 (ignored)",
++++    "input": "xn----s2c071q.xn--zca7848m",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "-\uda9d\udf6c\u135e\ud805\udf27.\u1deb-\ufe12",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "-\uda9d\udf6c\u135e\ud805\udf27.\u1deb-\u3002",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn----b5h1837n2ok9f.xn----mkm.",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn----b5h1837n2ok9f.xn----mkmw278h",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ufe12.\uda2a\udc21\u1a59",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; A4_2 (ignored)",
++++    "input": "\u3002.\uda2a\udc21\u1a59",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": "..xn--cof61594i",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--y86c.xn--cof61594i",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\ud807\udc3a.-\uda05\udfcf",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn--jk3d.xn----iz68g",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb43\udee9\uff0e\u8d4f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb43\udee9.\u8d4f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--2856e.xn--6o3a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u10ad\uff0e\ud8f4\udde6\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u10ad.\ud8f4\udde6\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u2d0d.\ud8f4\udde6\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--4kj.xn--p01x",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--4kj.xn--0ug56448b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--lnd.xn--p01x",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--lnd.xn--0ug56448b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u2d0d\uff0e\ud8f4\udde6\u200c",
++++    "output": null
++++  },
++++  {
++++    "input": "\ud835\udfdb\uff0e\uf9f8",
++++    "output": "3.xn--6vz"
++++  },
++++  {
++++    "input": "\ud835\udfdb\uff0e\u7b20",
++++    "output": "3.xn--6vz"
++++  },
++++  {
++++    "input": "3.\u7b20",
++++    "output": "3.xn--6vz"
++++  },
++++  {
++++    "input": "3.xn--6vz",
++++    "output": "3.xn--6vz"
++++  },
++++  {
++++    "comment": "C2; P1; V6; V3 (ignored)",
++++    "input": "-\u200d.\u10be\ud800\udef7",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "-\u200d.\u2d1e\ud800\udef7",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "-.xn--mlj8559d",
++++    "output": "-.xn--mlj8559d"
++++  },
++++  {
++++    "comment": "C2; V3 (ignored)",
++++    "input": "xn----ugn.xn--mlj8559d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "-.xn--2nd2315j",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6; V3 (ignored)",
++++    "input": "xn----ugn.xn--2nd2315j",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u200d\u03c2\u00df\u0731\uff0e\u0bcd",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u200d\u03c2\u00df\u0731.\u0bcd",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u200d\u03a3SS\u0731.\u0bcd",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u200d\u03c3ss\u0731.\u0bcd",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u200d\u03a3ss\u0731.\u0bcd",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--ss-ubc826a.xn--xmc",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "xn--ss-ubc826ab34b.xn--xmc",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u200d\u03a3\u00df\u0731.\u0bcd",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u200d\u03c3\u00df\u0731.\u0bcd",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "xn--zca39lk1di19a.xn--xmc",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "xn--zca19ln1di19a.xn--xmc",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u200d\u03a3SS\u0731\uff0e\u0bcd",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u200d\u03c3ss\u0731\uff0e\u0bcd",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u200d\u03a3ss\u0731\uff0e\u0bcd",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u200d\u03a3\u00df\u0731\uff0e\u0bcd",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u200d\u03c3\u00df\u0731\uff0e\u0bcd",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb5c\udef5\u09cd\u03c2\uff0e\u03c2\ud802\ude3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb5c\udef5\u09cd\u03c2.\u03c2\ud802\ude3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb5c\udef5\u09cd\u03a3.\u03a3\ud802\ude3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb5c\udef5\u09cd\u03c3.\u03c2\ud802\ude3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb5c\udef5\u09cd\u03c3.\u03c3\ud802\ude3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb5c\udef5\u09cd\u03a3.\u03c3\ud802\ude3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--4xa502av8297a.xn--4xa6055k",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb5c\udef5\u09cd\u03a3.\u03c2\ud802\ude3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--4xa502av8297a.xn--3xa8055k",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--3xa702av8297a.xn--3xa8055k",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb5c\udef5\u09cd\u03a3\uff0e\u03a3\ud802\ude3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb5c\udef5\u09cd\u03c3\uff0e\u03c2\ud802\ude3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb5c\udef5\u09cd\u03c3\uff0e\u03c3\ud802\ude3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb5c\udef5\u09cd\u03a3\uff0e\u03c3\ud802\ude3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb5c\udef5\u09cd\u03a3\uff0e\u03c2\ud802\ude3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud94e\udd12\uff61\ub967",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud94e\udd12\uff61\u1105\u1172\u11b6",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud94e\udd12\u3002\ub967",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud94e\udd12\u3002\u1105\u1172\u11b6",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--s264a.xn--pw2b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u1846\ud805\udcdd\uff0e\ud83b\udd46",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u1846\ud805\udcdd.\ud83b\udd46",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--57e0440k.xn--k86h",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udbef\udfe6\uff61\u183d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udbef\udfe6\u3002\u183d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--j890g.xn--w7e",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u5b03\ud834\udf4c\uff0e\u200d\u0b44",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u5b03\ud834\udf4c.\u200d\u0b44",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--b6s0078f.xn--0ic",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "xn--b6s0078f.xn--0ic557h",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c.\ud93d\udee4",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": ".xn--q823a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ug.xn--q823a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udaa9\uded5\u10a3\u4805\uff0e\ud803\ude11",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udaa9\uded5\u10a3\u4805.\ud803\ude11",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udaa9\uded5\u2d03\u4805.\ud803\ude11",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--ukju77frl47r.xn--yl0d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--bnd074zr557n.xn--yl0d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udaa9\uded5\u2d03\u4805\uff0e\ud803\ude11",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "-\uff61\ufe12",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored); A4_2 (ignored)",
++++    "input": "-\u3002\u3002",
++++    "output": "-.."
++++  },
++++  {
++++    "comment": "V3 (ignored); A4_2 (ignored)",
++++    "input": "-..",
++++    "output": "-.."
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "-.xn--y86c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u200d.F",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u200d.f",
++++    "output": null
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": ".f",
++++    "output": ".f"
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "xn--1ug.f",
++++    "output": null
++++  },
++++  {
++++    "input": "f",
++++    "output": "f"
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u200d\u3a32\uff61\u00df",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u200d\u3a32\u3002\u00df",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u200d\u3a32\u3002SS",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u200d\u3a32\u3002ss",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u200d\u3a32\u3002Ss",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--9bm.ss",
++++    "output": "xn--9bm.ss"
++++  },
++++  {
++++    "input": "\u3a32.ss",
++++    "output": "xn--9bm.ss"
++++  },
++++  {
++++    "input": "\u3a32.SS",
++++    "output": "xn--9bm.ss"
++++  },
++++  {
++++    "input": "\u3a32.Ss",
++++    "output": "xn--9bm.ss"
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "xn--1ug914h.ss",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "xn--1ug914h.xn--zca",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u200d\u3a32\uff61SS",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u200d\u3a32\uff61ss",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\u200d\u3a32\uff61Ss",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u200d\uff0e\udbc3\ude28",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u200d.\udbc3\ude28",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": ".xn--h327f",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--1ug.xn--h327f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--98e.xn--om9c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\uaaf6\u188f\u0e3a\uff12.\ud800\udee2\u0745\u0f9f\ufe12",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\uaaf6\u188f\u0e3a2.\ud800\udee2\u0745\u0f9f\u3002",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--2-2zf840fk16m.xn--sob093b2m7s.",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--2-2zf840fk16m.xn--sob093bj62sz9d",
++++    "output": null
++++  },
++++  {
++++    "input": "\ud835\udfce\u3002\u752f",
++++    "output": "0.xn--qny"
++++  },
++++  {
++++    "input": "0\u3002\u752f",
++++    "output": "0.xn--qny"
++++  },
++++  {
++++    "input": "0.xn--qny",
++++    "output": "0.xn--qny"
++++  },
++++  {
++++    "input": "0.\u752f",
++++    "output": "0.xn--qny"
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "-\u2f86\uff0e\uaaf6",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "-\u820c.\uaaf6",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "xn----ef8c.xn--2v9a",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "-\uff61\u1898",
++++    "output": "-.xn--ibf"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "-\u3002\u1898",
++++    "output": "-.xn--ibf"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "-.xn--ibf",
++++    "output": "-.xn--ibf"
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\u74bc\ud836\ude2d\uff61\u200c\udb40\udddf",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\u74bc\ud836\ude2d\u3002\u200c\udb40\udddf",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--gky8837e.",
++++    "output": "xn--gky8837e."
++++  },
++++  {
++++    "input": "\u74bc\ud836\ude2d.",
++++    "output": "xn--gky8837e."
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "xn--gky8837e.xn--0ug",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\u200c.\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "xn--0ug.xn--0ug",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--157b.xn--gnb",
++++    "output": "xn--157b.xn--gnb"
++++  },
++++  {
++++    "input": "\ud29b.\u0716",
++++    "output": "xn--157b.xn--gnb"
++++  },
++++  {
++++    "input": "\u1110\u1171\u11c2.\u0716",
++++    "output": "xn--157b.xn--gnb"
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u10b7\uff0e\u05c2\ud804\udd34\ua9b7\ud920\udce8",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u10b7\uff0e\ud804\udd34\u05c2\ua9b7\ud920\udce8",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u10b7.\ud804\udd34\u05c2\ua9b7\ud920\udce8",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u2d17.\ud804\udd34\u05c2\ua9b7\ud920\udce8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--flj.xn--qdb0605f14ycrms3c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--vnd.xn--qdb0605f14ycrms3c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u2d17\uff0e\ud804\udd34\u05c2\ua9b7\ud920\udce8",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u2d17\uff0e\u05c2\ud804\udd34\ua9b7\ud920\udce8",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u2488\u916b\ufe12\u3002\u08d6",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; A4_2 (ignored)",
++++    "input": "1.\u916b\u3002\u3002\u08d6",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; A4_2 (ignored)",
++++    "input": "1.xn--8j4a..xn--8zb",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--tsh4490bfe8c.xn--8zb",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--co6h.xn--1-h1g429s",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--co6h.xn--1-kwssa",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--co6h.xn--1-h1gs",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ua806\u3002\ud8ad\ude8f\u0fb0\u2495",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\ua806\u3002\ud8ad\ude8f\u0fb014.",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--l98a.xn--14-jsj57880f.",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--l98a.xn--dgd218hhp28d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\ud835\udfe04\udb40\uddd7\ud834\ude3b\uff0e\u200d\ud800\udef5\u26e7\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "84\udb40\uddd7\ud834\ude3b.\u200d\ud800\udef5\u26e7\u200d",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--84-s850a.xn--59h6326e",
++++    "output": "xn--84-s850a.xn--59h6326e"
++++  },
++++  {
++++    "input": "84\ud834\ude3b.\ud800\udef5\u26e7",
++++    "output": "xn--84-s850a.xn--59h6326e"
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "xn--84-s850a.xn--1uga573cfq1w",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\ud975\udf0e\u2488\uff61\u200c\ud835\udfe4",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6; A4_2 (ignored)",
++++    "input": "\ud975\udf0e1.\u3002\u200c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6; A4_2 (ignored)",
++++    "input": "xn--1-ex54e..xn--2-rgn",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--tsh94183d.xn--2-rgn",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200d\u200c\udb40\uddaa\uff61\u00df\ud805\udcc3",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200d\u200c\udb40\uddaa\u3002\u00df\ud805\udcc3",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200d\u200c\udb40\uddaa\u3002SS\ud805\udcc3",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200d\u200c\udb40\uddaa\u3002ss\ud805\udcc3",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200d\u200c\udb40\uddaa\u3002Ss\ud805\udcc3",
++++    "output": null
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": ".xn--ss-bh7o",
++++    "output": ".xn--ss-bh7o"
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "xn--0ugb.xn--ss-bh7o",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "xn--0ugb.xn--zca0732l",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200d\u200c\udb40\uddaa\uff61SS\ud805\udcc3",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200d\u200c\udb40\uddaa\uff61ss\ud805\udcc3",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; C2",
++++    "input": "\u200d\u200c\udb40\uddaa\uff61Ss\ud805\udcc3",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--ss-bh7o",
++++    "output": "xn--ss-bh7o"
++++  },
++++  {
++++    "input": "ss\ud805\udcc3",
++++    "output": "xn--ss-bh7o"
++++  },
++++  {
++++    "input": "SS\ud805\udcc3",
++++    "output": "xn--ss-bh7o"
++++  },
++++  {
++++    "input": "Ss\ud805\udcc3",
++++    "output": "xn--ss-bh7o"
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\ufe12\u200c\u30f6\u44a9.\ua86a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; A4_2 (ignored)",
++++    "input": "\u3002\u200c\u30f6\u44a9.\ua86a",
++++    "output": null
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": ".xn--qekw60d.xn--gd9a",
++++    "output": ".xn--qekw60d.xn--gd9a"
++++  },
++++  {
++++    "comment": "C1; A4_2 (ignored)",
++++    "input": ".xn--0ug287dj0o.xn--gd9a",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--qekw60dns9k.xn--gd9a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ug287dj0or48o.xn--gd9a",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--qekw60d.xn--gd9a",
++++    "output": "xn--qekw60d.xn--gd9a"
++++  },
++++  {
++++    "input": "\u30f6\u44a9.\ua86a",
++++    "output": "xn--qekw60d.xn--gd9a"
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\u2488\ud852\udf8d.\udb49\udccb\u1a60",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c1.\ud852\udf8d.\udb49\udccb\u1a60",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "1.xn--4x6j.xn--jof45148n",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--1-rgn.xn--4x6j.xn--jof45148n",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--tshw462r.xn--jof45148n",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ug88o7471d.xn--jof45148n",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud834\udd75\uff61\ud835\udfeb\ud838\udc08\u4b3a\u2488",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud834\udd75\u30029\ud838\udc08\u4b3a1.",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--3f1h.xn--91-030c1650n.",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--3f1h.xn--9-ecp936non25a",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--8c1a.xn--2ib8jn539l",
++++    "output": "xn--8c1a.xn--2ib8jn539l"
++++  },
++++  {
++++    "input": "\u821b.\u067d\ud83a\udd34\u06bb",
++++    "output": "xn--8c1a.xn--2ib8jn539l"
++++  },
++++  {
++++    "input": "\u821b.\u067d\ud83a\udd12\u06bb",
++++    "output": "xn--8c1a.xn--2ib8jn539l"
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "-\udb40\udd710\uff61\u17cf\u1dfd\ud187\uc2ed",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "-\udb40\udd710\uff61\u17cf\u1dfd\u1110\u1168\u11aa\u1109\u1175\u11b8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "-\udb40\udd710\u3002\u17cf\u1dfd\ud187\uc2ed",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "-\udb40\udd710\u3002\u17cf\u1dfd\u1110\u1168\u11aa\u1109\u1175\u11b8",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "-0.xn--r4e872ah77nghm",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u115f\u10bf\u10b5\u10e0\uff61\u0b4d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u115f\u10bf\u10b5\u10e0\u3002\u0b4d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u115f\u2d1f\u2d15\u10e0\u3002\u0b4d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u115f\u10bf\u10b5\u1ca0\u3002\u0b4d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--tndt4hvw.xn--9ic",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--1od7wz74eeb.xn--9ic",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u115f\u2d1f\u2d15\u10e0\uff61\u0b4d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u115f\u10bf\u10b5\u1ca0\uff61\u0b4d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u115f\u10bf\u2d15\u10e0\u3002\u0b4d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--3nd0etsm92g.xn--9ic",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u115f\u10bf\u2d15\u10e0\uff61\u0b4d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--l96h.xn--03e93aq365d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "\ud835\udfdb\ud834\uddaa\ua8c4\uff61\ua8ea-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "\ud835\udfdb\ua8c4\ud834\uddaa\uff61\ua8ea-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "3\ua8c4\ud834\uddaa\u3002\ua8ea-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "xn--3-sl4eu679e.xn----xn4e",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1139\uff61\u0eca\uda42\udfe4\udb40\udd1e",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1139\u3002\u0eca\uda42\udfe4\udb40\udd1e",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--lrd.xn--s8c05302k",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10a6\udaae\udca9\uff0e\udb40\udda1\ufe09\ud83a\udd0d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10a6\udaae\udca9.\udb40\udda1\ufe09\ud83a\udd0d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2d06\udaae\udca9.\udb40\udda1\ufe09\ud83a\udd2f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--xkjw3965g.xn--ne6h",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--end82983m.xn--ne6h",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2d06\udaae\udca9\uff0e\udb40\udda1\ufe09\ud83a\udd2f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2d06\udaae\udca9.\udb40\udda1\ufe09\ud83a\udd0d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u2d06\udaae\udca9\uff0e\udb40\udda1\ufe09\ud83a\udd0d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud91d\udee8.\ud9d5\udfe2\ud835\udfe8\ua8c4",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud91d\udee8.\ud9d5\udfe26\ua8c4",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--mi60a.xn--6-sl4es8023c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud800\udef8\udb79\ude0b\u10c2.\u10a1",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud800\udef8\udb79\ude0b\u2d22.\u2d01",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud800\udef8\udb79\ude0b\u10c2.\u2d01",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--6nd5215jr2u0h.xn--skj",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--qlj1559dr224h.xn--skj",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--6nd5215jr2u0h.xn--8md",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud91d\udc7f\ua806\u2084\uda65\udf86\uff61\ud88a\ude67\udb41\udcb9\u03c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud91d\udc7f\ua8064\uda65\udf86\u3002\ud88a\ude67\udb41\udcb9\u03c2",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud91d\udc7f\ua8064\uda65\udf86\u3002\ud88a\ude67\udb41\udcb9\u03a3",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud91d\udc7f\ua8064\uda65\udf86\u3002\ud88a\ude67\udb41\udcb9\u03c3",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--4-w93ej7463a9io5a.xn--4xa31142bk3f0d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--4-w93ej7463a9io5a.xn--3xa51142bk3f0d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud91d\udc7f\ua806\u2084\uda65\udf86\uff61\ud88a\ude67\udb41\udcb9\u03a3",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud91d\udc7f\ua806\u2084\uda65\udf86\uff61\ud88a\ude67\udb41\udcb9\u03c3",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud8ba\udcac\u3002\u0729\u3002\ucbd95",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\ud8ba\udcac\u3002\u0729\u3002\u110d\u1173\u11ac5",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--t92s.xn--znb.xn--5-y88f",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u17ca.\u200d\ud835\udfee\ud804\udc3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "\u17ca.\u200d2\ud804\udc3f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--m4e.xn--2-ku7i",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V5",
++++    "input": "xn--m4e.xn--2-tgnv469h",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\uaaf6\u3002\u5b36\u00df\u847d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\uaaf6\u3002\u5b36SS\u847d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\uaaf6\u3002\u5b36ss\u847d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\uaaf6\u3002\u5b36Ss\u847d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--2v9a.xn--ss-q40dp97m",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--2v9a.xn--zca7637b14za",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u03c2\ud805\udc3d\ud896\udc88\ud805\udf2b\uff61\ud83a\udf29\u200c\ud802\udec4",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u03c2\ud805\udc3d\ud896\udc88\ud805\udf2b\u3002\ud83a\udf29\u200c\ud802\udec4",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u03a3\ud805\udc3d\ud896\udc88\ud805\udf2b\u3002\ud83a\udf29\u200c\ud802\udec4",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u03c3\ud805\udc3d\ud896\udc88\ud805\udf2b\u3002\ud83a\udf29\u200c\ud802\udec4",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--4xa2260lk3b8z15g.xn--tw9ct349a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--4xa2260lk3b8z15g.xn--0ug4653g2xzf",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--3xa4260lk3b8z15g.xn--0ug4653g2xzf",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u03a3\ud805\udc3d\ud896\udc88\ud805\udf2b\uff61\ud83a\udf29\u200c\ud802\udec4",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u03c3\ud805\udc3d\ud896\udc88\ud805\udf2b\uff61\ud83a\udf29\u200c\ud802\udec4",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u2ea2\ud9df\ude85\ud835\udfe4\uff61\u200d\ud83d\udeb7",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u2ea2\ud9df\ude852\u3002\u200d\ud83d\udeb7",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--2-4jtr4282f.xn--m78h",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--2-4jtr4282f.xn--1ugz946p",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud836\ude25\u3002\u2adf\ud804\ude3e",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--n82h.xn--63iw010f",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6; V3 (ignored)",
++++    "input": "-\u1897\u200c\ud83c\udd04.\ud805\udf22",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn----pck1820x.xn--9h2d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V6; V3 (ignored)",
++++    "input": "xn----pck312bx563c.xn--9h2d",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\u17b4.\ucb87-",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "\u17b4.\u110d\u1170\u11ae-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn--z3e.xn----938f",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6",
++++    "input": "\u200c\ud805\udcc2\u3002\u2488-\udbc2\ude9b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6; V3 (ignored)",
++++    "input": "\u200c\ud805\udcc2\u30021.-\udbc2\ude9b",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn--wz1d.1.xn----rg03o",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6; V3 (ignored)",
++++    "input": "xn--0ugy057g.1.xn----rg03o",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--wz1d.xn----dcp29674o",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6",
++++    "input": "xn--0ugy057g.xn----dcp29674o",
++++    "output": null
++++  },
++++  {
++++    "comment": "A4_2 (ignored)",
++++    "input": ".xn--hcb32bni",
++++    "output": ".xn--hcb32bni"
++++  },
++++  {
++++    "input": "xn--hcb32bni",
++++    "output": "xn--hcb32bni"
++++  },
++++  {
++++    "input": "\u06bd\u0663\u0596",
++++    "output": "xn--hcb32bni"
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "\u0f94\ua84b-\uff0e-\ud81a\udf34",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "\u0f94\ua84b-.-\ud81a\udf34",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V3 (ignored)",
++++    "input": "xn----ukg9938i.xn----4u5m",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6; V3 (ignored)",
++++    "input": "\ud9bd\udcb3-\u22e2\u200c\uff0e\u6807-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6; V3 (ignored)",
++++    "input": "\ud9bd\udcb3-\u2291\u0338\u200c\uff0e\u6807-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6; V3 (ignored)",
++++    "input": "\ud9bd\udcb3-\u22e2\u200c.\u6807-",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V6; V3 (ignored)",
++++    "input": "\ud9bd\udcb3-\u2291\u0338\u200c.\u6807-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn----9mo67451g.xn----qj7b",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V6; V3 (ignored)",
++++    "input": "xn----sgn90kn5663a.xn----qj7b",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6; V3 (ignored)",
++++    "input": "-\ud914\ude74.\u06e0\u189a-",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6; V3 (ignored)",
++++    "input": "xn----qi38c.xn----jxc827k",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; A4_2 (ignored)",
++++    "input": "\u3002\u0635\u0649\u0e37\u0644\u0627\u3002\u5c93\u1bf2\udb43\udf83\u1842",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; A4_2 (ignored)",
++++    "input": ".xn--mgb1a7bt462h.xn--17e10qe61f9r71s",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "\u188c\uff0e-\u085a",
++++    "output": "xn--59e.xn----5jd"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "\u188c.-\u085a",
++++    "output": "xn--59e.xn----5jd"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "xn--59e.xn----5jd",
++++    "output": "xn--59e.xn----5jd"
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1039-\ud82a\udfad\ud83d\udfa2\uff0e\u00df",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1039-\ud82a\udfad\ud83d\udfa2.\u00df",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1039-\ud82a\udfad\ud83d\udfa2.SS",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1039-\ud82a\udfad\ud83d\udfa2.ss",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1039-\ud82a\udfad\ud83d\udfa2.Ss",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn----9tg11172akr8b.ss",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn----9tg11172akr8b.xn--zca",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1039-\ud82a\udfad\ud83d\udfa2\uff0eSS",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1039-\ud82a\udfad\ud83d\udfa2\uff0ess",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u1039-\ud82a\udfad\ud83d\udfa2\uff0eSs",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\u9523\u3002\u0a4d\udb41\ude3b\udb41\ude86",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--gc5a.xn--ybc83044ppga",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--8gb2338k.xn--lhb0154f",
++++    "output": "xn--8gb2338k.xn--lhb0154f"
++++  },
++++  {
++++    "input": "\u063d\ud804\ude3e.\u0649\ua92b",
++++    "output": "xn--8gb2338k.xn--lhb0154f"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10c1\u10b16\u0318\u3002\u00df\u1b03",
++++    "output": null
++++  },
++++  {
++++    "input": "\u2d21\u2d116\u0318\u3002\u00df\u1b03",
++++    "output": "xn--6-8cb7433a2ba.xn--zca894k"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10c1\u10b16\u0318\u3002SS\u1b03",
++++    "output": null
++++  },
++++  {
++++    "input": "\u2d21\u2d116\u0318\u3002ss\u1b03",
++++    "output": "xn--6-8cb7433a2ba.xn--ss-2vq"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10c1\u2d116\u0318\u3002Ss\u1b03",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--6-8cb306hms1a.xn--ss-2vq",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--6-8cb7433a2ba.xn--ss-2vq",
++++    "output": "xn--6-8cb7433a2ba.xn--ss-2vq"
++++  },
++++  {
++++    "input": "\u2d21\u2d116\u0318.ss\u1b03",
++++    "output": "xn--6-8cb7433a2ba.xn--ss-2vq"
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10c1\u10b16\u0318.SS\u1b03",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\u10c1\u2d116\u0318.Ss\u1b03",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--6-8cb555h2b.xn--ss-2vq",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--6-8cb7433a2ba.xn--zca894k",
++++    "output": "xn--6-8cb7433a2ba.xn--zca894k"
++++  },
++++  {
++++    "input": "\u2d21\u2d116\u0318.\u00df\u1b03",
++++    "output": "xn--6-8cb7433a2ba.xn--zca894k"
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--6-8cb555h2b.xn--zca894k",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\udb40\udd0f\ud81a\udf34\udb43\udcbd\uff61\uffa0",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\udb40\udd0f\ud81a\udf34\udb43\udcbd\u3002\u1160",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--619ep9154c.xn--psd",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--619ep9154c.xn--cl7c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb42\udf54.\ud800\udef1\u2082",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6",
++++    "input": "\udb42\udf54.\ud800\udef12",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--vi56e.xn--2-w91i",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u2dbf.\u00df\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u2dbf.SS\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u2dbf.ss\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u2dbf.Ss\u200d",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--7pj.ss",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--7pj.xn--ss-n1t",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--7pj.xn--zca870n",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "\u6889\u3002\u200c",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--7zv.",
++++    "output": "xn--7zv."
++++  },
++++  {
++++    "input": "\u6889.",
++++    "output": "xn--7zv."
++++  },
++++  {
++++    "comment": "C1",
++++    "input": "xn--7zv.xn--0ug",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--iwb.ss",
++++    "output": "xn--iwb.ss"
++++  },
++++  {
++++    "input": "\u0853.ss",
++++    "output": "xn--iwb.ss"
++++  },
++++  {
++++    "input": "\u0853.SS",
++++    "output": "xn--iwb.ss"
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\u40da\u87e5-\u3002-\ud9b5\udc98\u2488",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\u40da\u87e5-\u3002-\ud9b5\udc981.",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn----n50a258u.xn---1-up07j.",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6; V3 (ignored)",
++++    "input": "xn----n50a258u.xn----ecp33805f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "-\uff61\u2e90",
++++    "output": "-.xn--6vj"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "-\u3002\u2e90",
++++    "output": "-.xn--6vj"
++++  },
++++  {
++++    "comment": "V3 (ignored)",
++++    "input": "-.xn--6vj",
++++    "output": "-.xn--6vj"
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\udb43\udc29\ud807\udcac\uff0e\u065c",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V5; V6",
++++    "input": "\udb43\udc29\ud807\udcac.\u065c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--sn3d59267c.xn--4hb",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\ud800\udf7a.\ud928\uddc3\u200c",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--ie8c.xn--2g51a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V6",
++++    "input": "xn--ie8c.xn--0ug03366c",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u200d\u200d\u8954\u3002\u10bc5\ua86e\ud995\udf4f",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V6",
++++    "input": "\u200d\u200d\u8954\u3002\u2d1c5\ua86e\ud995\udf4f",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--2u2a.xn--5-uws5848bpf44e",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--1uga7691f.xn--5-uws5848bpf44e",
++++    "output": null
++++  },
++++  {
++++    "comment": "V6",
++++    "input": "xn--2u2a.xn--5-r1g7167ipfw8d",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; V6",
++++    "input": "xn--1uga7691f.xn--5-r1g7167ipfw8d",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--ix9c26l.xn--q0s",
++++    "output": "xn--ix9c26l.xn--q0s"
++++  },
++++  {
++++    "input": "\ud802\udedc\ud804\udf3c.\u5a40",
++++    "output": "xn--ix9c26l.xn--q0s"
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\ud835\udfd6\u00df\uff0e\udb40\udd10-?\u10af",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "8\u00df.\udb40\udd10-?\u10af",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "8\u00df.\udb40\udd10-?\u2d0f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "8SS.\udb40\udd10-?\u10af",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "8ss.\udb40\udd10-?\u2d0f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "8ss.\udb40\udd10-?\u10af",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "8ss.xn---?-gfk",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "8ss.xn---?-261a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "xn--8-qfa.xn---?-261a",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "xn--8-qfa.xn---?-gfk",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\ud835\udfd6\u00df\uff0e\udb40\udd10-?\u2d0f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\ud835\udfd6SS\uff0e\udb40\udd10-?\u10af",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\ud835\udfd6ss\uff0e\udb40\udd10-?\u2d0f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\ud835\udfd6ss\uff0e\udb40\udd10-?\u10af",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "8ss.-?\u10af",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "8ss.-?\u2d0f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "8SS.-?\u10af",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "xn--8-qfa.-?\u2d0f",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "XN--8-QFA.-?\u10af",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "Xn--8-Qfa.-?\u10af",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "xn--8-qfa.-?\u10af",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "\ud835\udfd6Ss\uff0e\udb40\udd10-?\u10af",
++++    "output": null
++++  },
++++  {
++++    "comment": "P1; V6; V3 (ignored)",
++++    "input": "8Ss.\udb40\udd10-?\u10af",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\ua9b9\u200d\ud077\ud8af\udda1\uff61\u2082",
++++    "output": null
++++  },
++++  {
++++    "comment": "C2; P1; V5; V6",
++++    "input": "\ua9b9\u200d\u110f\u1173\u11b2\ud8af\udda1\uff61\u2082",
++++    "output": null
++++  },
++++  {
++++    "input": "\ud802\udec0\uff0e\u0689\ud804\udf00",
++++    "output": "xn--pw9c.xn--fjb8658k"
++++  },
++++  {
++++    "input": "\ud802\udec0.\u0689\ud804\udf00",
++++    "output": "xn--pw9c.xn--fjb8658k"
++++  },
++++  {
++++    "input": "xn--pw9c.xn--fjb8658k",
++++    "output": "xn--pw9c.xn--fjb8658k"
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "\ud800\udef7\u3002\u200d",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--r97c.",
++++    "output": "xn--r97c."
++++  },
++++  {
++++    "input": "\ud800\udef7.",
++++    "output": "xn--r97c."
++++  },
++++  {
++++    "comment": "C2",
++++    "input": "xn--r97c.xn--1ug",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "\ud807\udc33\ud804\ude2f\u3002\u296a",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5",
++++    "input": "xn--2g1d14o.xn--jti",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\ud804\udd80\u4074\ud952\udde3\uff0e\u10b5\ud835\udfdc\u200c\u0348",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\ud804\udd80\u4074\ud952\udde3.\u10b54\u200c\u0348",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\ud804\udd80\u4074\ud952\udde3.\u2d154\u200c\u0348",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--1mnx647cg3x1b.xn--4-zfb5123a",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V6",
++++    "input": "xn--1mnx647cg3x1b.xn--4-zfb502tlsl",
++++    "output": null
++++  },
++++  {
++++    "comment": "V5; V6",
++++    "input": "xn--1mnx647cg3x1b.xn--4-zfb324h",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; V5; V6",
++++    "input": "xn--1mnx647cg3x1b.xn--4-zfb324h32o",
++++    "output": null
++++  },
++++  {
++++    "comment": "C1; P1; V5; V6",
++++    "input": "\ud804\udd80\u4074\ud952\udde3\uff0e\u2d15\ud835\udfdc\u200c\u0348",
++++    "output": null
++++  }
++++]
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..9ba7523af9b4b63e4d52d395185357acfc465b32
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,134 @@@@@
++++{
++++  "comment": [
++++    "#Additional tests designed by the ada team."
++++  ],
++++  "href": [
++++    {
++++      "comment": "Update with pathname, fragment and search state filled",
++++      "href": "https://yagiz.co",
++++      "new_value": "https://google.com/url?search=true#fragment",
++++      "expected": {
++++        "href": "https://google.com/url?search=true#fragment"
++++      }
++++    },
++++    {
++++      "comment": "Update with authority state filled",
++++      "href": "https://yagiz.co",
++++      "new_value": "https://username:password@localhost:5432/my-db",
++++      "expected": {
++++        "href": "https://username:password@localhost:5432/my-db"
++++      }
++++    },
++++    {
++++      "comment": "Removes leading and trailing control characters",
++++      "href": "https://yagiz.co",
++++      "new_value": "\u0000http://www.google.com\u0000",
++++      "expected": {
++++        "href": "http://www.google.com/"
++++      }
++++    }
++++  ],
++++  "port": [
++++    {
++++      "comment": "Should not update on leading control characters",
++++      "href": "https://yagiz.co:443",
++++      "new_value": "\u000080\u0000",
++++      "expected": {
++++        "port": ""
++++      }
++++    },
++++    {
++++      "comment": "Leading u0009 on special scheme",
++++      "href": "https://yagiz.co:443",
++++      "new_value": "\u00098080",
++++      "expected": {
++++        "port": "8080"
++++      }
++++    },
++++    {
++++      "comment": "Leading u0009 on non-special scheme",
++++      "href": "wpt++://yagiz.co:443",
++++      "new_value": "\u00098080",
++++      "expected": {
++++        "port": "8080"
++++      }
++++    },
++++    {
++++      "comment": "Trailing control characters",
++++      "href": "https://yagiz.co:443",
++++      "new_value": "8080\u0000",
++++      "expected": {
++++        "port": "8080"
++++      }
++++    },
++++    {
++++      "href": "https://yagiz.co",
++++      "new_value": "\u000044\u00093\u0000",
++++      "expected": {
++++        "port": ""
++++      }
++++    },
++++    {
++++      "href": "https://yagiz.co:443",
++++      "new_value": "\u0000\u0009\u0000",
++++      "expected": {
++++        "port": ""
++++      }
++++    },
++++    {
++++      "comment": "Should remove port on invalid input",
++++      "href": "https://www.google.com:443",
++++      "new_value": "99999",
++++      "expected": {
++++        "port": ""
++++      }
++++    },
++++    {
++++      "comment": "Should revert back to original on invalid input",
++++      "href": "https://www.google.com:4343",
++++      "new_value": "yagiz",
++++      "expected": {
++++        "port": "4343"
++++      }
++++    },
++++    {
++++      "comment": "Should use all ascii prefixed characters as port",
++++      "href": "https://www.google.com:4343",
++++      "new_value": "4yagiz",
++++      "expected": {
++++        "port": "4"
++++      }
++++    }
++++  ],
++++  "hash": [
++++    {
++++      "comment": "Should not trim leading and trailing control characters",
++++      "href": "https://domain.com",
++++      "new_value": "\u0000hello\u0000",
++++      "expected": {
++++        "hash": "#%00hello%00"
++++      }
++++    }
++++  ],
++++  "pathname": [
++++    {
++++      "comment": "Used by Node.js by node::url::FromFilePath",
++++      "href": "file://",
++++      "new_value": "/Users/yagiz/Developer/node/test/fixtures/loop.%25.js",
++++      "expected": {
++++        "pathname": "/Users/yagiz/Developer/node/test/fixtures/loop.%25.js"
++++      }
++++    }
++++  ],
++++  "search": [
++++    {
++++      "comment": "Remove non-existent param removes ? from URL",
++++      "href": "data:space    ?test",
++++      "new_value": "",
++++      "expected": {
++++        "search": "",
++++        "pathname": "space"
++++      }
++++    }
++++  ]
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..d6c162b3fefab8db079ba7f911cc642304de6a62
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,289 @@@@@
++++[
++++  "# Additional tests designed by the ada team.",
++++  {
++++    "input": "https://www.google.com",
++++    "base": "http://[0:0:0:0:0:0:0:0",
++++    "failure": true
++++  },
++++  {
++++    "input": "#x",
++++    "base": "about:blank",
++++    "href": "about:blank#x",
++++    "protocol":"about:",
++++    "username": "",
++++    "password": "",
++++    "pathname":"blank",
++++    "search": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "hash":"#x"
++++  },
++++  {
++++    "input": "https://lemire.me/école",
++++    "base": "about:blank",
++++    "href": "https://lemire.me/%C3%A9cole",
++++    "origin": "https://lemire.me",
++++    "protocol": "https:",
++++    "username": "",
++++    "password": "",
++++    "host": "lemire.me",
++++    "hostname": "lemire.me",
++++    "port": "",
++++    "pathname": "/%C3%A9cole",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://./",
++++    "base": "about:blank",
++++    "href": "http://./",
++++    "origin": "http://.",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": ".",
++++    "hostname": ".",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "example.com`x.example.com",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://Yağız.com",
++++    "base": "about:blank",
++++    "href": "http://xn--yaz-isa4g.com/",
++++    "origin": "http://xn--yaz-isa4g.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "xn--yaz-isa4g.com",
++++    "hostname": "xn--yaz-isa4g.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "fs:/hello.eth",
++++    "base": "about:blank",
++++    "href": "fs:/hello.eth",
++++    "origin": "null",
++++    "protocol": "fs:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/hello.eth",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://\/\/\/\\'",
++++    "base": "about:blank",
++++    "href": "http://'/",
++++    "origin": "http://'",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "'",
++++    "hostname": "'",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "./foo",
++++    "base": "http://www.example.org",
++++    "href": "http://www.example.org/foo",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example.org",
++++    "hostname": "www.example.org",
++++    "port": "",
++++    "pathname": "/foo",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# Ipv6 Edge Cases",
++++  {
++++    "input": "http://[0:0:0:0:0:0:0:0",
++++    "base": "about:blank",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://0:0:0:0:0:0:0:0]",
++++    "base": "about:blank",
++++    "failure": true
++++  },
++++  "# Opaque Paths",
++++  {
++++    "input": "mailto:a@b.com",
++++    "base": "about:blank",
++++    "href": "mailto:a@b.com",
++++    "origin": "null",
++++    "protocol": "mailto:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "a@b.com",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "scheme:example.com",
++++    "base": "about:blank",
++++    "href": "scheme:example.com",
++++    "origin": "null",
++++    "protocol": "scheme:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "example.com",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "scheme:example.com/path",
++++    "base": "about:blank",
++++    "href": "scheme:example.com/path",
++++    "origin": "null",
++++    "protocol": "scheme:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "example.com/path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# Port",
++++  {
++++    "input": "scheme://example.com:-1",
++++    "base": "about:blank",
++++    "failure": true
++++  },
++++  {
++++    "input": "scheme://example.com:+1",
++++    "base": "about:blank",
++++    "failure": true
++++  },
++++  {
++++    "input": "schéme://example.com",
++++    "base": "about:blank",
++++    "failure": true
++++  },
++++  "# Credentials",
++++  {
++++    "input": "scheme://username@@@@example.com",
++++    "base": "about:blank",
++++    "href": "scheme://username%40%40%40@example.com",
++++    "origin": "null",
++++    "protocol": "scheme:",
++++    "username": "username%40%40%40",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://localhost/path/to/file.txt",
++++    "base": "about:blank",
++++    "href": "file:///path/to/file.txt",
++++    "origin": "null",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/path/to/file.txt",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://localhost:8098/path/to/file.txt",
++++    "base": "about:blank",
++++    "failure": true
++++  },
++++  {
++++    "input": "data:space    ?test#test",
++++    "base": "about:blank",
++++    "href": "data:space    ?test#test",
++++    "origin": "null",
++++    "protocol": "data:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "space    ",
++++    "search": "?test",
++++    "hash": "#test"
++++  },
++++  {
++++    "input": "",
++++    "base": "about:blank",
++++    "failure": true
++++  },
++++  {
++++    "input": "https://example.com/\"quoted\"",
++++    "base": "about:blank",
++++    "href": "https://example.com/%22quoted%22",
++++    "origin": "https://example.com",
++++    "protocol": "https:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/%22quoted%22",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "a:b#",
++++    "base": null,
++++    "href": "a:b#",
++++    "origin": null,
++++    "protocol": "a:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "b",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "..#",
++++    "base": "a:b",
++++    "href": "a:b#",
++++    "origin": null,
++++    "protocol": "a:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "b",
++++    "search": "",
++++    "hash": ""
++++  }
++++]
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6f93dfaa780c4df077b9b35f8154e60f56910165
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,19 @@@@@
++++[
++++  "# Windows' codebase will not allow this case for now.",
++++  "# Host",
++++  {
++++    "input": "http://ğığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığığı.com",
++++    "base": "about:blank",
++++    "href": "http://xn--teaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa78hbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.com/",
++++    "origin": "http://xn--teaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa78hbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "xn--teaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa78hbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.com",
++++    "hostname": "xn--teaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa78hbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  }
++++]
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..eccd1db62fe60131fb12cbdf8c16e0354bcf7a98
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,48 @@@@@
++++[
++++  "Tests for percent-encoding.",
++++  {
++++    "input": "\u2020",
++++    "output": {
++++      "big5": "%26%238224%3B",
++++      "euc-kr": "%A2%D3",
++++      "utf-8": "%E2%80%A0",
++++      "windows-1252": "%86"
++++    }
++++  },
++++  "This uses a trailing A to prevent the URL parser from trimming the C0 control.",
++++  {
++++    "input": "\u000EA",
++++    "output": {
++++      "big5": "%0EA",
++++      "iso-2022-jp": "%26%2365533%3BA",
++++      "utf-8": "%0EA"
++++    }
++++  },
++++  {
++++    "input": "\u203E\u005C",
++++    "output": {
++++      "iso-2022-jp": "%1B(J~%1B(B\\",
++++      "utf-8": "%E2%80%BE\\"
++++    }
++++  },
++++  {
++++    "input": "\uE5E5",
++++    "output": {
++++      "gb18030": "%26%2358853%3B",
++++      "utf-8": "%EE%97%A5"
++++    }
++++  },
++++  {
++++    "input": "\u2212",
++++    "output": {
++++      "shift_jis": "%81|",
++++      "utf-8": "%E2%88%92"
++++    }
++++  },
++++  {
++++    "input": "á|",
++++    "output": {
++++      "utf-8": "%C3%A1|"
++++    }
++++  }
++++]
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3850606d660bbb54cfc52e4dd43e2d7577b3363e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,2424 @@@@@
++++{
++++    "comment": [
++++        "## Tests for setters of https://url.spec.whatwg.org/#urlutils-members",
++++        "",
++++        "This file contains a JSON object.",
++++        "Other than 'comment', each key is an attribute of the `URL` interface",
++++        "defined in WHATWG’s URL Standard.",
++++        "The values are arrays of test case objects for that attribute.",
++++        "",
++++        "To run a test case for the attribute `attr`:",
++++        "",
++++        "* Create a new `URL` object with the value for the 'href' key",
++++        "  the constructor single parameter. (Without a base URL.)",
++++        "  This must not throw.",
++++        "* Set the attribute `attr` to (invoke its setter with)",
++++        "  with the value of for 'new_value' key.",
++++        "* The value for the 'expected' key is another object.",
++++        "  For each `key` / `value` pair of that object,",
++++        "  get the attribute `key` (invoke its getter).",
++++        "  The returned string must be equal to `value`.",
++++        "",
++++        "Note: the 'href' setter is already covered by urltestdata.json."
++++    ],
++++    "protocol": [
++++        {
++++            "comment": "The empty string is not a valid scheme. Setter leaves the URL unchanged.",
++++            "href": "a://example.net",
++++            "new_value": "",
++++            "expected": {
++++                "href": "a://example.net",
++++                "protocol": "a:"
++++            }
++++        },
++++        {
++++            "href": "a://example.net",
++++            "new_value": "b",
++++            "expected": {
++++                "href": "b://example.net",
++++                "protocol": "b:"
++++            }
++++        },
++++        {
++++            "href": "javascript:alert(1)",
++++            "new_value": "defuse",
++++            "expected": {
++++                "href": "defuse:alert(1)",
++++                "protocol": "defuse:"
++++            }
++++        },
++++        {
++++            "comment": "Upper-case ASCII is lower-cased",
++++            "href": "a://example.net",
++++            "new_value": "B",
++++            "expected": {
++++                "href": "b://example.net",
++++                "protocol": "b:"
++++            }
++++        },
++++        {
++++            "comment": "Non-ASCII is rejected",
++++            "href": "a://example.net",
++++            "new_value": "é",
++++            "expected": {
++++                "href": "a://example.net",
++++                "protocol": "a:"
++++            }
++++        },
++++        {
++++            "comment": "No leading digit",
++++            "href": "a://example.net",
++++            "new_value": "0b",
++++            "expected": {
++++                "href": "a://example.net",
++++                "protocol": "a:"
++++            }
++++        },
++++        {
++++            "comment": "No leading punctuation",
++++            "href": "a://example.net",
++++            "new_value": "+b",
++++            "expected": {
++++                "href": "a://example.net",
++++                "protocol": "a:"
++++            }
++++        },
++++        {
++++            "href": "a://example.net",
++++            "new_value": "bC0+-.",
++++            "expected": {
++++                "href": "bc0+-.://example.net",
++++                "protocol": "bc0+-.:"
++++            }
++++        },
++++        {
++++            "comment": "Only some punctuation is acceptable",
++++            "href": "a://example.net",
++++            "new_value": "b,c",
++++            "expected": {
++++                "href": "a://example.net",
++++                "protocol": "a:"
++++            }
++++        },
++++        {
++++            "comment": "Non-ASCII is rejected",
++++            "href": "a://example.net",
++++            "new_value": "bé",
++++            "expected": {
++++                "href": "a://example.net",
++++                "protocol": "a:"
++++            }
++++        },
++++        {
++++            "comment": "Can’t switch from URL containing username/password/port to file",
++++            "href": "http://test@example.net",
++++            "new_value": "file",
++++            "expected": {
++++                "href": "http://test@example.net/",
++++                "protocol": "http:"
++++            }
++++        },
++++        {
++++            "href": "https://example.net:1234",
++++            "new_value": "file",
++++            "expected": {
++++                "href": "https://example.net:1234/",
++++                "protocol": "https:"
++++            }
++++        },
++++        {
++++            "href": "wss://x:x@example.net:1234",
++++            "new_value": "file",
++++            "expected": {
++++                "href": "wss://x:x@example.net:1234/",
++++                "protocol": "wss:"
++++            }
++++        },
++++        {
++++            "comment": "Can’t switch from file URL with no host",
++++            "href": "file://localhost/",
++++            "new_value": "http",
++++            "expected": {
++++                "href": "file:///",
++++                "protocol": "file:"
++++            }
++++        },
++++        {
++++            "href": "file:///test",
++++            "new_value": "https",
++++            "expected": {
++++                "href": "file:///test",
++++                "protocol": "file:"
++++            }
++++        },
++++        {
++++            "href": "file:",
++++            "new_value": "wss",
++++            "expected": {
++++                "href": "file:///",
++++                "protocol": "file:"
++++            }
++++        },
++++        {
++++            "comment": "Can’t switch from special scheme to non-special",
++++            "href": "http://example.net",
++++            "new_value": "b",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "protocol": "http:"
++++            }
++++        },
++++        {
++++            "href": "file://hi/path",
++++            "new_value": "s",
++++            "expected": {
++++                "href": "file://hi/path",
++++                "protocol": "file:"
++++            }
++++        },
++++        {
++++            "href": "https://example.net",
++++            "new_value": "s",
++++            "expected": {
++++                "href": "https://example.net/",
++++                "protocol": "https:"
++++            }
++++        },
++++        {
++++            "href": "ftp://example.net",
++++            "new_value": "test",
++++            "expected": {
++++                "href": "ftp://example.net/",
++++                "protocol": "ftp:"
++++            }
++++        },
++++        {
++++            "comment": "Cannot-be-a-base URL doesn’t have a host, but URL in a special scheme must.",
++++            "href": "mailto:me@example.net",
++++            "new_value": "http",
++++            "expected": {
++++                "href": "mailto:me@example.net",
++++                "protocol": "mailto:"
++++            }
++++        },
++++        {
++++            "comment": "Can’t switch from non-special scheme to special",
++++            "href": "ssh://me@example.net",
++++            "new_value": "http",
++++            "expected": {
++++                "href": "ssh://me@example.net",
++++                "protocol": "ssh:"
++++            }
++++        },
++++        {
++++            "href": "ssh://me@example.net",
++++            "new_value": "https",
++++            "expected": {
++++                "href": "ssh://me@example.net",
++++                "protocol": "ssh:"
++++            }
++++        },
++++        {
++++            "href": "ssh://me@example.net",
++++            "new_value": "file",
++++            "expected": {
++++                "href": "ssh://me@example.net",
++++                "protocol": "ssh:"
++++            }
++++        },
++++        {
++++            "href": "ssh://example.net",
++++            "new_value": "file",
++++            "expected": {
++++                "href": "ssh://example.net",
++++                "protocol": "ssh:"
++++            }
++++        },
++++        {
++++            "href": "nonsense:///test",
++++            "new_value": "https",
++++            "expected": {
++++                "href": "nonsense:///test",
++++                "protocol": "nonsense:"
++++            }
++++        },
++++        {
++++            "comment": "Stuff after the first ':' is ignored",
++++            "href": "http://example.net",
++++            "new_value": "https:foo : bar",
++++            "expected": {
++++                "href": "https://example.net/",
++++                "protocol": "https:"
++++            }
++++        },
++++        {
++++            "comment": "Stuff after the first ':' is ignored",
++++            "href": "data:text/html,<p>Test",
++++            "new_value": "view-source+data:foo : bar",
++++            "expected": {
++++                "href": "view-source+data:text/html,<p>Test",
++++                "protocol": "view-source+data:"
++++            }
++++        },
++++        {
++++            "comment": "Port is set to null if it is the default for new scheme.",
++++            "href": "http://foo.com:443/",
++++            "new_value": "https",
++++            "expected": {
++++                "href": "https://foo.com/",
++++                "protocol": "https:",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Tab and newline are stripped",
++++            "href": "http://test/",
++++            "new_value": "h\u000D\u000Att\u0009ps",
++++            "expected": {
++++              "href": "https://test/",
++++              "protocol": "https:",
++++              "port": ""
++++            }
++++        },
++++        {
++++            "href": "http://test/",
++++            "new_value": "https\u000D",
++++            "expected": {
++++              "href": "https://test/",
++++              "protocol": "https:"
++++            }
++++        },
++++        {
++++            "comment": "Non-tab/newline C0 controls result in no-op",
++++            "href": "http://test/",
++++            "new_value": "https\u0000",
++++            "expected": {
++++              "href": "http://test/",
++++              "protocol": "http:"
++++            }
++++        },
++++        {
++++            "href": "http://test/",
++++            "new_value": "https\u000C",
++++            "expected": {
++++              "href": "http://test/",
++++              "protocol": "http:"
++++            }
++++        },
++++        {
++++            "href": "http://test/",
++++            "new_value": "https\u000E",
++++            "expected": {
++++              "href": "http://test/",
++++              "protocol": "http:"
++++            }
++++        },
++++        {
++++            "href": "http://test/",
++++            "new_value": "https\u0020",
++++            "expected": {
++++              "href": "http://test/",
++++              "protocol": "http:"
++++            }
++++        }
++++    ],
++++    "username": [
++++        {
++++            "comment": "No host means no username",
++++            "href": "file:///home/you/index.html",
++++            "new_value": "me",
++++            "expected": {
++++                "href": "file:///home/you/index.html",
++++                "username": ""
++++            }
++++        },
++++        {
++++            "comment": "No host means no username",
++++            "href": "unix:/run/foo.socket",
++++            "new_value": "me",
++++            "expected": {
++++                "href": "unix:/run/foo.socket",
++++                "username": ""
++++            }
++++        },
++++        {
++++            "comment": "Cannot-be-a-base means no username",
++++            "href": "mailto:you@example.net",
++++            "new_value": "me",
++++            "expected": {
++++                "href": "mailto:you@example.net",
++++                "username": ""
++++            }
++++        },
++++        {
++++            "href": "javascript:alert(1)",
++++            "new_value": "wario",
++++            "expected": {
++++                "href": "javascript:alert(1)",
++++                "username": ""
++++            }
++++        },
++++        {
++++            "href": "http://example.net",
++++            "new_value": "me",
++++            "expected": {
++++                "href": "http://me@example.net/",
++++                "username": "me"
++++            }
++++        },
++++        {
++++            "href": "http://:secret@example.net",
++++            "new_value": "me",
++++            "expected": {
++++                "href": "http://me:secret@example.net/",
++++                "username": "me"
++++            }
++++        },
++++        {
++++            "href": "http://me@example.net",
++++            "new_value": "",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "username": ""
++++            }
++++        },
++++        {
++++            "href": "http://me:secret@example.net",
++++            "new_value": "",
++++            "expected": {
++++                "href": "http://:secret@example.net/",
++++                "username": ""
++++            }
++++        },
++++        {
++++            "comment": "UTF-8 percent encoding with the userinfo encode set.",
++++            "href": "http://example.net",
++++            "new_value": "\u0000\u0001\t\n\r\u001f !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~\u007f\u0080\u0081Éé",
++++            "expected": {
++++                "href": "http://%00%01%09%0A%0D%1F%20!%22%23$%&'()*+,-.%2F09%3A%3B%3C%3D%3E%3F%40AZ%5B%5C%5D%5E_%60az%7B%7C%7D~%7F%C2%80%C2%81%C3%89%C3%A9@example.net/",
++++                "username": "%00%01%09%0A%0D%1F%20!%22%23$%&'()*+,-.%2F09%3A%3B%3C%3D%3E%3F%40AZ%5B%5C%5D%5E_%60az%7B%7C%7D~%7F%C2%80%C2%81%C3%89%C3%A9"
++++            }
++++        },
++++        {
++++            "comment": "Bytes already percent-encoded are left as-is.",
++++            "href": "http://example.net",
++++            "new_value": "%c3%89té",
++++            "expected": {
++++                "href": "http://%c3%89t%C3%A9@example.net/",
++++                "username": "%c3%89t%C3%A9"
++++            }
++++        },
++++        {
++++            "href": "sc:///",
++++            "new_value": "x",
++++            "expected": {
++++                "href": "sc:///",
++++                "username": ""
++++            }
++++        },
++++        {
++++            "href": "javascript://x/",
++++            "new_value": "wario",
++++            "expected": {
++++                "href": "javascript://wario@x/",
++++                "username": "wario"
++++            }
++++        },
++++        {
++++            "href": "file://test/",
++++            "new_value": "test",
++++            "expected": {
++++                "href": "file://test/",
++++                "username": ""
++++            }
++++        }
++++    ],
++++    "password": [
++++        {
++++            "comment": "No host means no password",
++++            "href": "file:///home/me/index.html",
++++            "new_value": "secret",
++++            "expected": {
++++                "href": "file:///home/me/index.html",
++++                "password": ""
++++            }
++++        },
++++        {
++++            "comment": "No host means no password",
++++            "href": "unix:/run/foo.socket",
++++            "new_value": "secret",
++++            "expected": {
++++                "href": "unix:/run/foo.socket",
++++                "password": ""
++++            }
++++        },
++++        {
++++            "comment": "Cannot-be-a-base means no password",
++++            "href": "mailto:me@example.net",
++++            "new_value": "secret",
++++            "expected": {
++++                "href": "mailto:me@example.net",
++++                "password": ""
++++            }
++++        },
++++        {
++++            "href": "http://example.net",
++++            "new_value": "secret",
++++            "expected": {
++++                "href": "http://:secret@example.net/",
++++                "password": "secret"
++++            }
++++        },
++++        {
++++            "href": "http://me@example.net",
++++            "new_value": "secret",
++++            "expected": {
++++                "href": "http://me:secret@example.net/",
++++                "password": "secret"
++++            }
++++        },
++++        {
++++            "href": "http://:secret@example.net",
++++            "new_value": "",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "password": ""
++++            }
++++        },
++++        {
++++            "href": "http://me:secret@example.net",
++++            "new_value": "",
++++            "expected": {
++++                "href": "http://me@example.net/",
++++                "password": ""
++++            }
++++        },
++++        {
++++            "comment": "UTF-8 percent encoding with the userinfo encode set.",
++++            "href": "http://example.net",
++++            "new_value": "\u0000\u0001\t\n\r\u001f !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~\u007f\u0080\u0081Éé",
++++            "expected": {
++++                "href": "http://:%00%01%09%0A%0D%1F%20!%22%23$%&'()*+,-.%2F09%3A%3B%3C%3D%3E%3F%40AZ%5B%5C%5D%5E_%60az%7B%7C%7D~%7F%C2%80%C2%81%C3%89%C3%A9@example.net/",
++++                "password": "%00%01%09%0A%0D%1F%20!%22%23$%&'()*+,-.%2F09%3A%3B%3C%3D%3E%3F%40AZ%5B%5C%5D%5E_%60az%7B%7C%7D~%7F%C2%80%C2%81%C3%89%C3%A9"
++++            }
++++        },
++++        {
++++            "comment": "Bytes already percent-encoded are left as-is.",
++++            "href": "http://example.net",
++++            "new_value": "%c3%89té",
++++            "expected": {
++++                "href": "http://:%c3%89t%C3%A9@example.net/",
++++                "password": "%c3%89t%C3%A9"
++++            }
++++        },
++++        {
++++            "href": "sc:///",
++++            "new_value": "x",
++++            "expected": {
++++                "href": "sc:///",
++++                "password": ""
++++            }
++++        },
++++        {
++++            "href": "javascript://x/",
++++            "new_value": "bowser",
++++            "expected": {
++++                "href": "javascript://:bowser@x/",
++++                "password": "bowser"
++++            }
++++        },
++++        {
++++            "href": "file://test/",
++++            "new_value": "test",
++++            "expected": {
++++                "href": "file://test/",
++++                "password": ""
++++            }
++++        }
++++    ],
++++    "host": [
++++        {
++++            "comment": "Non-special scheme",
++++            "href": "sc://x/",
++++            "new_value": "\u0000",
++++            "expected": {
++++                "href": "sc://x/",
++++                "host": "x",
++++                "hostname": "x"
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": "\u0009",
++++            "expected": {
++++                "href": "sc:///",
++++                "host": "",
++++                "hostname": ""
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": "\u000A",
++++            "expected": {
++++                "href": "sc:///",
++++                "host": "",
++++                "hostname": ""
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": "\u000D",
++++            "expected": {
++++                "href": "sc:///",
++++                "host": "",
++++                "hostname": ""
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": " ",
++++            "expected": {
++++                "href": "sc://x/",
++++                "host": "x",
++++                "hostname": "x"
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": "#",
++++            "expected": {
++++                "href": "sc:///",
++++                "host": "",
++++                "hostname": ""
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": "/",
++++            "expected": {
++++                "href": "sc:///",
++++                "host": "",
++++                "hostname": ""
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": "?",
++++            "expected": {
++++                "href": "sc:///",
++++                "host": "",
++++                "hostname": ""
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": "@",
++++            "expected": {
++++                "href": "sc://x/",
++++                "host": "x",
++++                "hostname": "x"
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": "ß",
++++            "expected": {
++++                "href": "sc://%C3%9F/",
++++                "host": "%C3%9F",
++++                "hostname": "%C3%9F"
++++            }
++++        },
++++        {
++++            "comment": "IDNA Nontransitional_Processing",
++++            "href": "https://x/",
++++            "new_value": "ß",
++++            "expected": {
++++                "href": "https://xn--zca/",
++++                "host": "xn--zca",
++++                "hostname": "xn--zca"
++++            }
++++        },
++++        {
++++            "comment": "Cannot-be-a-base means no host",
++++            "href": "mailto:me@example.net",
++++            "new_value": "example.com",
++++            "expected": {
++++                "href": "mailto:me@example.net",
++++                "host": ""
++++            }
++++        },
++++        {
++++            "comment": "Cannot-be-a-base means no host",
++++            "href": "data:text/plain,Stuff",
++++            "new_value": "example.net",
++++            "expected": {
++++                "href": "data:text/plain,Stuff",
++++                "host": ""
++++            }
++++        },
++++        {
++++            "href": "http://example.net",
++++            "new_value": "example.com:8080",
++++            "expected": {
++++                "href": "http://example.com:8080/",
++++                "host": "example.com:8080",
++++                "hostname": "example.com",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Port number is unchanged if not specified in the new value",
++++            "href": "http://example.net:8080",
++++            "new_value": "example.com",
++++            "expected": {
++++                "href": "http://example.com:8080/",
++++                "host": "example.com:8080",
++++                "hostname": "example.com",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Port number is unchanged if not specified",
++++            "href": "http://example.net:8080",
++++            "new_value": "example.com:",
++++            "expected": {
++++                "href": "http://example.com:8080/",
++++                "host": "example.com:8080",
++++                "hostname": "example.com",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "The empty host is not valid for special schemes",
++++            "href": "http://example.net",
++++            "new_value": "",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "host": "example.net"
++++            }
++++        },
++++        {
++++            "comment": "The empty host is OK for non-special schemes",
++++            "href": "view-source+http://example.net/foo",
++++            "new_value": "",
++++            "expected": {
++++                "href": "view-source+http:///foo",
++++                "host": ""
++++            }
++++        },
++++        {
++++            "comment": "Path-only URLs can gain a host",
++++            "href": "a:/foo",
++++            "new_value": "example.net",
++++            "expected": {
++++                "href": "a://example.net/foo",
++++                "host": "example.net"
++++            }
++++        },
++++        {
++++            "comment": "IPv4 address syntax is normalized",
++++            "href": "http://example.net",
++++            "new_value": "0x7F000001:8080",
++++            "expected": {
++++                "href": "http://127.0.0.1:8080/",
++++                "host": "127.0.0.1:8080",
++++                "hostname": "127.0.0.1",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "IPv6 address syntax is normalized",
++++            "href": "http://example.net",
++++            "new_value": "[::0:01]:2",
++++            "expected": {
++++                "href": "http://[::1]:2/",
++++                "host": "[::1]:2",
++++                "hostname": "[::1]",
++++                "port": "2"
++++            }
++++        },
++++        {
++++            "comment": "IPv6 literal address with port, crbug.com/1012416",
++++            "href": "http://example.net",
++++            "new_value": "[2001:db8::2]:4002",
++++            "expected": {
++++                "href": "http://[2001:db8::2]:4002/",
++++                "host": "[2001:db8::2]:4002",
++++                "hostname": "[2001:db8::2]",
++++                "port": "4002"
++++             }
++++        },
++++        {
++++            "comment": "Default port number is removed",
++++            "href": "http://example.net",
++++            "new_value": "example.com:80",
++++            "expected": {
++++                "href": "http://example.com/",
++++                "host": "example.com",
++++                "hostname": "example.com",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Default port number is removed",
++++            "href": "https://example.net",
++++            "new_value": "example.com:443",
++++            "expected": {
++++                "href": "https://example.com/",
++++                "host": "example.com",
++++                "hostname": "example.com",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Default port number is only removed for the relevant scheme",
++++            "href": "https://example.net",
++++            "new_value": "example.com:80",
++++            "expected": {
++++                "href": "https://example.com:80/",
++++                "host": "example.com:80",
++++                "hostname": "example.com",
++++                "port": "80"
++++            }
++++        },
++++        {
++++            "comment": "Port number is removed if new port is scheme default and existing URL has a non-default port",
++++            "href": "http://example.net:8080",
++++            "new_value": "example.com:80",
++++            "expected": {
++++                "href": "http://example.com/",
++++                "host": "example.com",
++++                "hostname": "example.com",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a / delimiter is ignored",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com/stuff",
++++            "expected": {
++++                "href": "http://example.com/path",
++++                "host": "example.com",
++++                "hostname": "example.com",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a / delimiter is ignored",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com:8080/stuff",
++++            "expected": {
++++                "href": "http://example.com:8080/path",
++++                "host": "example.com:8080",
++++                "hostname": "example.com",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a ? delimiter is ignored",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com?stuff",
++++            "expected": {
++++                "href": "http://example.com/path",
++++                "host": "example.com",
++++                "hostname": "example.com",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a ? delimiter is ignored, trailing 'port'",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com?stuff:8080",
++++            "expected": {
++++                "href": "http://example.com/path",
++++                "host": "example.com",
++++                "hostname": "example.com",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a ? delimiter is ignored",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com:8080?stuff",
++++            "expected": {
++++                "href": "http://example.com:8080/path",
++++                "host": "example.com:8080",
++++                "hostname": "example.com",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a # delimiter is ignored",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com#stuff",
++++            "expected": {
++++                "href": "http://example.com/path",
++++                "host": "example.com",
++++                "hostname": "example.com",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a # delimiter is ignored",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com:8080#stuff",
++++            "expected": {
++++                "href": "http://example.com:8080/path",
++++                "host": "example.com:8080",
++++                "hostname": "example.com",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a \\ delimiter is ignored for special schemes",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com\\stuff",
++++            "expected": {
++++                "href": "http://example.com/path",
++++                "host": "example.com",
++++                "hostname": "example.com",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a \\ delimiter is ignored for special schemes",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com:8080\\stuff",
++++            "expected": {
++++                "href": "http://example.com:8080/path",
++++                "host": "example.com:8080",
++++                "hostname": "example.com",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "\\ is not a delimiter for non-special schemes, but still forbidden in hosts",
++++            "href": "view-source+http://example.net/path",
++++            "new_value": "example.com\\stuff",
++++            "expected": {
++++                "href": "view-source+http://example.net/path",
++++                "host": "example.net",
++++                "hostname": "example.net",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Anything other than ASCII digit stops the port parser in a setter but is not an error",
++++            "href": "view-source+http://example.net/path",
++++            "new_value": "example.com:8080stuff2",
++++            "expected": {
++++                "href": "view-source+http://example.com:8080/path",
++++                "host": "example.com:8080",
++++                "hostname": "example.com",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Anything other than ASCII digit stops the port parser in a setter but is not an error",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com:8080stuff2",
++++            "expected": {
++++                "href": "http://example.com:8080/path",
++++                "host": "example.com:8080",
++++                "hostname": "example.com",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Anything other than ASCII digit stops the port parser in a setter but is not an error",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com:8080+2",
++++            "expected": {
++++                "href": "http://example.com:8080/path",
++++                "host": "example.com:8080",
++++                "hostname": "example.com",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Anything other than ASCII digit stops the port parser in a setter but is not an error",
++++            "href": "http://example.net:8080",
++++            "new_value": "example.com:invalid",
++++            "expected": {
++++                "href": "http://example.com:8080/",
++++                "host": "example.com:8080",
++++                "hostname": "example.com",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Anything other than ASCII digit stops the port parser in a setter but is not an error",
++++            "href": "http://example.net:8080/test",
++++            "new_value": "[::1]:invalid",
++++            "expected": {
++++                "href": "http://[::1]:8080/test",
++++                "host": "[::1]:8080",
++++                "hostname": "[::1]",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "IPv6 without port",
++++            "href": "http://example.net:8080/test",
++++            "new_value": "[::1]",
++++            "expected": {
++++                "href": "http://[::1]:8080/test",
++++                "host": "[::1]:8080",
++++                "hostname": "[::1]",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Port numbers are 16 bit integers",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com:65535",
++++            "expected": {
++++                "href": "http://example.com:65535/path",
++++                "host": "example.com:65535",
++++                "hostname": "example.com",
++++                "port": "65535"
++++            }
++++        },
++++        {
++++            "comment": "Port numbers are 16 bit integers, overflowing is an error. Hostname is still set, though.",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com:65536",
++++            "expected": {
++++                "href": "http://example.com/path",
++++                "host": "example.com",
++++                "hostname": "example.com",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Broken IPv6",
++++            "href": "http://example.net/",
++++            "new_value": "[google.com]",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "host": "example.net",
++++                "hostname": "example.net"
++++            }
++++        },
++++        {
++++            "href": "http://example.net/",
++++            "new_value": "[::1.2.3.4x]",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "host": "example.net",
++++                "hostname": "example.net"
++++            }
++++        },
++++        {
++++            "href": "http://example.net/",
++++            "new_value": "[::1.2.3.]",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "host": "example.net",
++++                "hostname": "example.net"
++++            }
++++        },
++++        {
++++            "href": "http://example.net/",
++++            "new_value": "[::1.2.]",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "host": "example.net",
++++                "hostname": "example.net"
++++            }
++++        },
++++        {
++++            "href": "http://example.net/",
++++            "new_value": "[::1.]",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "host": "example.net",
++++                "hostname": "example.net"
++++            }
++++        },
++++        {
++++            "href": "file://y/",
++++            "new_value": "x:123",
++++            "expected": {
++++                "href": "file://y/",
++++                "host": "y",
++++                "hostname": "y",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "href": "file://y/",
++++            "new_value": "loc%41lhost",
++++            "expected": {
++++                "href": "file:///",
++++                "host": "",
++++                "hostname": "",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "href": "file://hi/x",
++++            "new_value": "",
++++            "expected": {
++++                "href": "file:///x",
++++                "host": "",
++++                "hostname": "",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "href": "sc://test@test/",
++++            "new_value": "",
++++            "expected": {
++++                "href": "sc://test@test/",
++++                "host": "test",
++++                "hostname": "test",
++++                "username": "test"
++++            }
++++        },
++++        {
++++            "href": "sc://test:12/",
++++            "new_value": "",
++++            "expected": {
++++                "href": "sc://test:12/",
++++                "host": "test:12",
++++                "hostname": "test",
++++                "port": "12"
++++            }
++++        },
++++        {
++++            "comment": "Leading / is not stripped",
++++            "href": "http://example.com/",
++++            "new_value": "///bad.com",
++++            "expected": {
++++                "href": "http://example.com/",
++++                "host": "example.com",
++++                "hostname": "example.com"
++++            }
++++        },
++++        {
++++            "comment": "Leading / is not stripped",
++++            "href": "sc://example.com/",
++++            "new_value": "///bad.com",
++++            "expected": {
++++                "href": "sc:///",
++++                "host": "",
++++                "hostname": ""
++++            }
++++        },
++++        {
++++            "href": "https://example.com/",
++++            "new_value": "a%C2%ADb",
++++            "expected": {
++++                "href": "https://ab/",
++++                "host": "ab",
++++                "hostname": "ab"
++++            }
++++        },
++++        {
++++            "href": "https://example.com/",
++++            "new_value": "\u00AD",
++++            "expected": {
++++                "href": "https://example.com/",
++++                "host": "example.com",
++++                "hostname": "example.com"
++++            }
++++        },
++++        {
++++            "href": "https://example.com/",
++++            "new_value": "%C2%AD",
++++            "expected": {
++++                "href": "https://example.com/",
++++                "host": "example.com",
++++                "hostname": "example.com"
++++            }
++++        },
++++        {
++++            "href": "https://example.com/",
++++            "new_value": "xn--",
++++            "expected": {
++++                "href": "https://example.com/",
++++                "host": "example.com",
++++                "hostname": "example.com"
++++            }
++++        }
++++    ],
++++    "hostname": [
++++        {
++++            "comment": "Non-special scheme",
++++            "href": "sc://x/",
++++            "new_value": "\u0000",
++++            "expected": {
++++                "href": "sc://x/",
++++                "host": "x",
++++                "hostname": "x"
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": "\u0009",
++++            "expected": {
++++                "href": "sc:///",
++++                "host": "",
++++                "hostname": ""
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": "\u000A",
++++            "expected": {
++++                "href": "sc:///",
++++                "host": "",
++++                "hostname": ""
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": "\u000D",
++++            "expected": {
++++                "href": "sc:///",
++++                "host": "",
++++                "hostname": ""
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": " ",
++++            "expected": {
++++                "href": "sc://x/",
++++                "host": "x",
++++                "hostname": "x"
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": "#",
++++            "expected": {
++++                "href": "sc:///",
++++                "host": "",
++++                "hostname": ""
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": "/",
++++            "expected": {
++++                "href": "sc:///",
++++                "host": "",
++++                "hostname": ""
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": "?",
++++            "expected": {
++++                "href": "sc:///",
++++                "host": "",
++++                "hostname": ""
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": "@",
++++            "expected": {
++++                "href": "sc://x/",
++++                "host": "x",
++++                "hostname": "x"
++++            }
++++        },
++++        {
++++            "comment": "Cannot-be-a-base means no host",
++++            "href": "mailto:me@example.net",
++++            "new_value": "example.com",
++++            "expected": {
++++                "href": "mailto:me@example.net",
++++                "host": ""
++++            }
++++        },
++++        {
++++            "comment": "Cannot-be-a-base means no host",
++++            "href": "data:text/plain,Stuff",
++++            "new_value": "example.net",
++++            "expected": {
++++                "href": "data:text/plain,Stuff",
++++                "host": ""
++++            }
++++        },
++++        {
++++            "href": "http://example.net:8080",
++++            "new_value": "example.com",
++++            "expected": {
++++                "href": "http://example.com:8080/",
++++                "host": "example.com:8080",
++++                "hostname": "example.com",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "The empty host is not valid for special schemes",
++++            "href": "http://example.net",
++++            "new_value": "",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "host": "example.net"
++++            }
++++        },
++++        {
++++            "comment": "The empty host is OK for non-special schemes",
++++            "href": "view-source+http://example.net/foo",
++++            "new_value": "",
++++            "expected": {
++++                "href": "view-source+http:///foo",
++++                "host": ""
++++            }
++++        },
++++        {
++++            "comment": "Path-only URLs can gain a host",
++++            "href": "a:/foo",
++++            "new_value": "example.net",
++++            "expected": {
++++                "href": "a://example.net/foo",
++++                "host": "example.net"
++++            }
++++        },
++++        {
++++            "comment": "IPv4 address syntax is normalized",
++++            "href": "http://example.net:8080",
++++            "new_value": "0x7F000001",
++++            "expected": {
++++                "href": "http://127.0.0.1:8080/",
++++                "host": "127.0.0.1:8080",
++++                "hostname": "127.0.0.1",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "IPv6 address syntax is normalized",
++++            "href": "http://example.net",
++++            "new_value": "[::0:01]",
++++            "expected": {
++++                "href": "http://[::1]/",
++++                "host": "[::1]",
++++                "hostname": "[::1]",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": ": delimiter invalidates entire value",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com:8080",
++++            "expected": {
++++                "href": "http://example.net/path",
++++                "host": "example.net",
++++                "hostname": "example.net",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": ": delimiter invalidates entire value",
++++            "href": "http://example.net:8080/path",
++++            "new_value": "example.com:",
++++            "expected": {
++++                "href": "http://example.net:8080/path",
++++                "host": "example.net:8080",
++++                "hostname": "example.net",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a / delimiter is ignored",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com/stuff",
++++            "expected": {
++++                "href": "http://example.com/path",
++++                "host": "example.com",
++++                "hostname": "example.com",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a ? delimiter is ignored",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com?stuff",
++++            "expected": {
++++                "href": "http://example.com/path",
++++                "host": "example.com",
++++                "hostname": "example.com",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a # delimiter is ignored",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com#stuff",
++++            "expected": {
++++                "href": "http://example.com/path",
++++                "host": "example.com",
++++                "hostname": "example.com",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a \\ delimiter is ignored for special schemes",
++++            "href": "http://example.net/path",
++++            "new_value": "example.com\\stuff",
++++            "expected": {
++++                "href": "http://example.com/path",
++++                "host": "example.com",
++++                "hostname": "example.com",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "\\ is not a delimiter for non-special schemes, but still forbidden in hosts",
++++            "href": "view-source+http://example.net/path",
++++            "new_value": "example.com\\stuff",
++++            "expected": {
++++                "href": "view-source+http://example.net/path",
++++                "host": "example.net",
++++                "hostname": "example.net",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Broken IPv6",
++++            "href": "http://example.net/",
++++            "new_value": "[google.com]",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "host": "example.net",
++++                "hostname": "example.net"
++++            }
++++        },
++++        {
++++            "href": "http://example.net/",
++++            "new_value": "[::1.2.3.4x]",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "host": "example.net",
++++                "hostname": "example.net"
++++            }
++++        },
++++        {
++++            "href": "http://example.net/",
++++            "new_value": "[::1.2.3.]",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "host": "example.net",
++++                "hostname": "example.net"
++++            }
++++        },
++++        {
++++            "href": "http://example.net/",
++++            "new_value": "[::1.2.]",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "host": "example.net",
++++                "hostname": "example.net"
++++            }
++++        },
++++        {
++++            "href": "http://example.net/",
++++            "new_value": "[::1.]",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "host": "example.net",
++++                "hostname": "example.net"
++++            }
++++        },
++++        {
++++            "href": "file://y/",
++++            "new_value": "x:123",
++++            "expected": {
++++                "href": "file://y/",
++++                "host": "y",
++++                "hostname": "y",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "href": "file://y/",
++++            "new_value": "loc%41lhost",
++++            "expected": {
++++                "href": "file:///",
++++                "host": "",
++++                "hostname": "",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "href": "file://hi/x",
++++            "new_value": "",
++++            "expected": {
++++                "href": "file:///x",
++++                "host": "",
++++                "hostname": "",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "href": "sc://test@test/",
++++            "new_value": "",
++++            "expected": {
++++                "href": "sc://test@test/",
++++                "host": "test",
++++                "hostname": "test",
++++                "username": "test"
++++            }
++++        },
++++        {
++++            "href": "sc://test:12/",
++++            "new_value": "",
++++            "expected": {
++++                "href": "sc://test:12/",
++++                "host": "test:12",
++++                "hostname": "test",
++++                "port": "12"
++++            }
++++        },
++++        {
++++            "comment": "Drop /. from path",
++++            "href": "non-spec:/.//p",
++++            "new_value": "h",
++++            "expected": {
++++                "href": "non-spec://h//p",
++++                "host": "h",
++++                "hostname": "h",
++++                "pathname": "//p"
++++            }
++++        },
++++        {
++++            "href": "non-spec:/.//p",
++++            "new_value": "",
++++            "expected": {
++++                "href": "non-spec:////p",
++++                "host": "",
++++                "hostname": "",
++++                "pathname": "//p"
++++            }
++++        },
++++        {
++++            "comment": "Leading / is not stripped",
++++            "href": "http://example.com/",
++++            "new_value": "///bad.com",
++++            "expected": {
++++                "href": "http://example.com/",
++++                "host": "example.com",
++++                "hostname": "example.com"
++++            }
++++        },
++++        {
++++            "comment": "Leading / is not stripped",
++++            "href": "sc://example.com/",
++++            "new_value": "///bad.com",
++++            "expected": {
++++                "href": "sc:///",
++++                "host": "",
++++                "hostname": ""
++++            }
++++        },
++++        {
++++            "href": "https://example.com/",
++++            "new_value": "a%C2%ADb",
++++            "expected": {
++++                "href": "https://ab/",
++++                "host": "ab",
++++                "hostname": "ab"
++++            }
++++        },
++++        {
++++            "href": "https://example.com/",
++++            "new_value": "\u00AD",
++++            "expected": {
++++                "href": "https://example.com/",
++++                "host": "example.com",
++++                "hostname": "example.com"
++++            }
++++        },
++++        {
++++            "href": "https://example.com/",
++++            "new_value": "%C2%AD",
++++            "expected": {
++++                "href": "https://example.com/",
++++                "host": "example.com",
++++                "hostname": "example.com"
++++            }
++++        },
++++        {
++++            "href": "https://example.com/",
++++            "new_value": "xn--",
++++            "expected": {
++++                "href": "https://example.com/",
++++                "host": "example.com",
++++                "hostname": "example.com"
++++            }
++++        }
++++    ],
++++    "port": [
++++        {
++++            "href": "http://example.net",
++++            "new_value": "8080",
++++            "expected": {
++++                "href": "http://example.net:8080/",
++++                "host": "example.net:8080",
++++                "hostname": "example.net",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Port number is removed if empty is the new value",
++++            "href": "http://example.net:8080",
++++            "new_value": "",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "host": "example.net",
++++                "hostname": "example.net",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Default port number is removed",
++++            "href": "http://example.net:8080",
++++            "new_value": "80",
++++            "expected": {
++++                "href": "http://example.net/",
++++                "host": "example.net",
++++                "hostname": "example.net",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Default port number is removed",
++++            "href": "https://example.net:4433",
++++            "new_value": "443",
++++            "expected": {
++++                "href": "https://example.net/",
++++                "host": "example.net",
++++                "hostname": "example.net",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "comment": "Default port number is only removed for the relevant scheme",
++++            "href": "https://example.net",
++++            "new_value": "80",
++++            "expected": {
++++                "href": "https://example.net:80/",
++++                "host": "example.net:80",
++++                "hostname": "example.net",
++++                "port": "80"
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a / delimiter is ignored",
++++            "href": "http://example.net/path",
++++            "new_value": "8080/stuff",
++++            "expected": {
++++                "href": "http://example.net:8080/path",
++++                "host": "example.net:8080",
++++                "hostname": "example.net",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a ? delimiter is ignored",
++++            "href": "http://example.net/path",
++++            "new_value": "8080?stuff",
++++            "expected": {
++++                "href": "http://example.net:8080/path",
++++                "host": "example.net:8080",
++++                "hostname": "example.net",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a # delimiter is ignored",
++++            "href": "http://example.net/path",
++++            "new_value": "8080#stuff",
++++            "expected": {
++++                "href": "http://example.net:8080/path",
++++                "host": "example.net:8080",
++++                "hostname": "example.net",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Stuff after a \\ delimiter is ignored for special schemes",
++++            "href": "http://example.net/path",
++++            "new_value": "8080\\stuff",
++++            "expected": {
++++                "href": "http://example.net:8080/path",
++++                "host": "example.net:8080",
++++                "hostname": "example.net",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Anything other than ASCII digit stops the port parser in a setter but is not an error",
++++            "href": "view-source+http://example.net/path",
++++            "new_value": "8080stuff2",
++++            "expected": {
++++                "href": "view-source+http://example.net:8080/path",
++++                "host": "example.net:8080",
++++                "hostname": "example.net",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Anything other than ASCII digit stops the port parser in a setter but is not an error",
++++            "href": "http://example.net/path",
++++            "new_value": "8080stuff2",
++++            "expected": {
++++                "href": "http://example.net:8080/path",
++++                "host": "example.net:8080",
++++                "hostname": "example.net",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Anything other than ASCII digit stops the port parser in a setter but is not an error",
++++            "href": "http://example.net/path",
++++            "new_value": "8080+2",
++++            "expected": {
++++                "href": "http://example.net:8080/path",
++++                "host": "example.net:8080",
++++                "hostname": "example.net",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Port numbers are 16 bit integers",
++++            "href": "http://example.net/path",
++++            "new_value": "65535",
++++            "expected": {
++++                "href": "http://example.net:65535/path",
++++                "host": "example.net:65535",
++++                "hostname": "example.net",
++++                "port": "65535"
++++            }
++++        },
++++        {
++++            "comment": "Port numbers are 16 bit integers, overflowing is an error",
++++            "href": "http://example.net:8080/path",
++++            "new_value": "65536",
++++            "expected": {
++++                "href": "http://example.net:8080/path",
++++                "host": "example.net:8080",
++++                "hostname": "example.net",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Setting port to a string that doesn't parse as a number",
++++            "href": "http://example.net:8080/path",
++++            "new_value": "randomstring",
++++            "expected": {
++++                "href": "http://example.net:8080/path",
++++                "host": "example.net:8080",
++++                "hostname": "example.net",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Port numbers are 16 bit integers, overflowing is an error",
++++            "href": "non-special://example.net:8080/path",
++++            "new_value": "65536",
++++            "expected": {
++++                "href": "non-special://example.net:8080/path",
++++                "host": "example.net:8080",
++++                "hostname": "example.net",
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "href": "file://test/",
++++            "new_value": "12",
++++            "expected": {
++++                "href": "file://test/",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "href": "file://localhost/",
++++            "new_value": "12",
++++            "expected": {
++++                "href": "file:///",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "href": "non-base:value",
++++            "new_value": "12",
++++            "expected": {
++++                "href": "non-base:value",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "href": "sc:///",
++++            "new_value": "12",
++++            "expected": {
++++                "href": "sc:///",
++++                "port": ""
++++            }
++++        },
++++        {
++++            "href": "sc://x/",
++++            "new_value": "12",
++++            "expected": {
++++                "href": "sc://x:12/",
++++                "port": "12"
++++            }
++++        },
++++        {
++++            "href": "javascript://x/",
++++            "new_value": "12",
++++            "expected": {
++++                "href": "javascript://x:12/",
++++                "port": "12"
++++            }
++++        },
++++        {
++++            "comment": "Leading u0009 on special scheme",
++++            "href": "https://domain.com:443",
++++            "new_value": "\u00098080",
++++            "expected": {
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Leading u0009 on non-special scheme",
++++            "href": "wpt++://domain.com:443",
++++            "new_value": "\u00098080",
++++            "expected": {
++++                "port": "8080"
++++            }
++++        },
++++        {
++++            "comment": "Should use all ascii prefixed characters as port",
++++            "href": "https://www.google.com:4343",
++++            "new_value": "4wpt",
++++            "expected": {
++++                "port": "4"
++++            }
++++        }
++++    ],
++++    "pathname": [
++++        {
++++            "comment": "Opaque paths cannot be set",
++++            "href": "mailto:me@example.net",
++++            "new_value": "/foo",
++++            "expected": {
++++                "href": "mailto:me@example.net",
++++                "pathname": "me@example.net"
++++            }
++++        },
++++        {
++++            "href": "data:original",
++++            "new_value": "new value",
++++            "expected": {
++++                "href": "data:original",
++++                "pathname": "original"
++++            }
++++        },
++++        {
++++            "href": "sc:original",
++++            "new_value": "new value",
++++            "expected": {
++++                "href": "sc:original",
++++                "pathname": "original"
++++            }
++++        },
++++        {
++++            "comment": "Special URLs cannot have their paths erased",
++++            "href": "file:///some/path",
++++            "new_value": "",
++++            "expected": {
++++                "href": "file:///",
++++                "pathname": "/"
++++            }
++++        },
++++        {
++++            "comment": "Non-special URLs can have their paths erased",
++++            "href": "foo://somehost/some/path",
++++            "new_value": "",
++++            "expected": {
++++                "href": "foo://somehost",
++++                "pathname": ""
++++            }
++++        },
++++        {
++++            "comment": "Non-special URLs with an empty host can have their paths erased",
++++            "href": "foo:///some/path",
++++            "new_value": "",
++++            "expected": {
++++                "href": "foo://",
++++                "pathname": ""
++++            }
++++        },
++++        {
++++            "comment": "Path-only URLs cannot have their paths erased",
++++            "href": "foo:/some/path",
++++            "new_value": "",
++++            "expected": {
++++                "href": "foo:/",
++++                "pathname": "/"
++++            }
++++        },
++++        {
++++            "comment": "Path-only URLs always have an initial slash",
++++            "href": "foo:/some/path",
++++            "new_value": "test",
++++            "expected": {
++++                "href": "foo:/test",
++++                "pathname": "/test"
++++            }
++++        },
++++        {
++++            "href": "unix:/run/foo.socket?timeout=10",
++++            "new_value": "/var/log/../run/bar.socket",
++++            "expected": {
++++                "href": "unix:/var/run/bar.socket?timeout=10",
++++                "pathname": "/var/run/bar.socket"
++++            }
++++        },
++++        {
++++            "href": "https://example.net#nav",
++++            "new_value": "home",
++++            "expected": {
++++                "href": "https://example.net/home#nav",
++++                "pathname": "/home"
++++            }
++++        },
++++        {
++++            "href": "https://example.net#nav",
++++            "new_value": "../home",
++++            "expected": {
++++                "href": "https://example.net/home#nav",
++++                "pathname": "/home"
++++            }
++++        },
++++        {
++++            "comment": "\\ is a segment delimiter for 'special' URLs",
++++            "href": "http://example.net/home?lang=fr#nav",
++++            "new_value": "\\a\\%2E\\b\\%2e.\\c",
++++            "expected": {
++++                "href": "http://example.net/a/c?lang=fr#nav",
++++                "pathname": "/a/c"
++++            }
++++        },
++++        {
++++            "comment": "\\ is *not* a segment delimiter for non-'special' URLs",
++++            "href": "view-source+http://example.net/home?lang=fr#nav",
++++            "new_value": "\\a\\%2E\\b\\%2e.\\c",
++++            "expected": {
++++                "href": "view-source+http://example.net/\\a\\%2E\\b\\%2e.\\c?lang=fr#nav",
++++                "pathname": "/\\a\\%2E\\b\\%2e.\\c"
++++            }
++++        },
++++        {
++++            "comment": "UTF-8 percent encoding with the default encode set. Tabs and newlines are removed.",
++++            "href": "a:/",
++++            "new_value": "\u0000\u0001\t\n\r\u001f !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~\u007f\u0080\u0081Éé",
++++            "expected": {
++++                "href": "a:/%00%01%1F%20!%22%23$%&'()*+,-./09:;%3C=%3E%3F@AZ[\\]^_%60az%7B|%7D~%7F%C2%80%C2%81%C3%89%C3%A9",
++++                "pathname": "/%00%01%1F%20!%22%23$%&'()*+,-./09:;%3C=%3E%3F@AZ[\\]^_%60az%7B|%7D~%7F%C2%80%C2%81%C3%89%C3%A9"
++++            }
++++        },
++++        {
++++            "comment": "Bytes already percent-encoded are left as-is, including %2E outside dotted segments.",
++++            "href": "http://example.net",
++++            "new_value": "%2e%2E%c3%89té",
++++            "expected": {
++++                "href": "http://example.net/%2e%2E%c3%89t%C3%A9",
++++                "pathname": "/%2e%2E%c3%89t%C3%A9"
++++            }
++++        },
++++        {
++++            "comment": "? needs to be encoded",
++++            "href": "http://example.net",
++++            "new_value": "?",
++++            "expected": {
++++                "href": "http://example.net/%3F",
++++                "pathname": "/%3F"
++++            }
++++        },
++++        {
++++            "comment": "# needs to be encoded",
++++            "href": "http://example.net",
++++            "new_value": "#",
++++            "expected": {
++++                "href": "http://example.net/%23",
++++                "pathname": "/%23"
++++            }
++++        },
++++        {
++++            "comment": "? needs to be encoded, non-special scheme",
++++            "href": "sc://example.net",
++++            "new_value": "?",
++++            "expected": {
++++                "href": "sc://example.net/%3F",
++++                "pathname": "/%3F"
++++            }
++++        },
++++        {
++++            "comment": "# needs to be encoded, non-special scheme",
++++            "href": "sc://example.net",
++++            "new_value": "#",
++++            "expected": {
++++                "href": "sc://example.net/%23",
++++                "pathname": "/%23"
++++            }
++++        },
++++        {
++++            "comment": "? doesn't mess up encoding",
++++            "href": "http://example.net",
++++            "new_value": "/?é",
++++            "expected": {
++++                "href": "http://example.net/%3F%C3%A9",
++++                "pathname": "/%3F%C3%A9"
++++            }
++++        },
++++        {
++++            "comment": "# doesn't mess up encoding",
++++            "href": "http://example.net",
++++            "new_value": "/#é",
++++            "expected": {
++++                "href": "http://example.net/%23%C3%A9",
++++                "pathname": "/%23%C3%A9"
++++            }
++++        },
++++        {
++++            "comment": "File URLs and (back)slashes",
++++            "href": "file://monkey/",
++++            "new_value": "\\\\",
++++            "expected": {
++++                "href": "file://monkey//",
++++                "pathname": "//"
++++            }
++++        },
++++        {
++++            "comment": "File URLs and (back)slashes",
++++            "href": "file:///unicorn",
++++            "new_value": "//\\/",
++++            "expected": {
++++                "href": "file://////",
++++                "pathname": "////"
++++            }
++++        },
++++        {
++++            "comment": "File URLs and (back)slashes",
++++            "href": "file:///unicorn",
++++            "new_value": "//monkey/..//",
++++            "expected": {
++++                "href": "file://///",
++++                "pathname": "///"
++++            }
++++        },
++++        {
++++            "comment": "Serialize /. in path",
++++            "href": "non-spec:/",
++++            "new_value": "/.//p",
++++            "expected": {
++++                "href": "non-spec:/.//p",
++++                "pathname": "//p"
++++            }
++++        },
++++        {
++++            "href": "non-spec:/",
++++            "new_value": "/..//p",
++++            "expected": {
++++                "href": "non-spec:/.//p",
++++                "pathname": "//p"
++++            }
++++        },
++++        {
++++            "href": "non-spec:/",
++++            "new_value": "//p",
++++            "expected": {
++++                "href": "non-spec:/.//p",
++++                "pathname": "//p"
++++            }
++++        },
++++        {
++++            "comment": "Drop /. from path",
++++            "href": "non-spec:/.//",
++++            "new_value": "p",
++++            "expected": {
++++                "href": "non-spec:/p",
++++                "pathname": "/p"
++++            }
++++        },
++++        {
++++            "comment": "Non-special URLs with non-opaque paths percent-encode U+0020",
++++            "href": "data:/nospace",
++++            "new_value": "space ",
++++            "expected": {
++++                "href": "data:/space%20",
++++                "pathname": "/space%20"
++++            }
++++        },
++++        {
++++            "href": "sc:/nospace",
++++            "new_value": "space ",
++++            "expected": {
++++                "href": "sc:/space%20",
++++                "pathname": "/space%20"
++++            }
++++        },
++++        {
++++            "comment": "Trailing space should be encoded",
++++            "href": "http://example.net",
++++            "new_value": " ",
++++            "expected": {
++++                "href": "http://example.net/%20",
++++                "pathname": "/%20"
++++            }
++++        },
++++        {
++++            "comment": "Trailing C0 control should be encoded",
++++            "href": "http://example.net",
++++            "new_value": "\u0000",
++++            "expected": {
++++                "href": "http://example.net/%00",
++++                "pathname": "/%00"
++++            }
++++        }
++++    ],
++++    "search": [
++++        {
++++            "href": "https://example.net#nav",
++++            "new_value": "lang=fr",
++++            "expected": {
++++                "href": "https://example.net/?lang=fr#nav",
++++                "search": "?lang=fr"
++++            }
++++        },
++++        {
++++            "href": "https://example.net?lang=en-US#nav",
++++            "new_value": "lang=fr",
++++            "expected": {
++++                "href": "https://example.net/?lang=fr#nav",
++++                "search": "?lang=fr"
++++            }
++++        },
++++        {
++++            "href": "https://example.net?lang=en-US#nav",
++++            "new_value": "?lang=fr",
++++            "expected": {
++++                "href": "https://example.net/?lang=fr#nav",
++++                "search": "?lang=fr"
++++            }
++++        },
++++        {
++++            "href": "https://example.net?lang=en-US#nav",
++++            "new_value": "??lang=fr",
++++            "expected": {
++++                "href": "https://example.net/??lang=fr#nav",
++++                "search": "??lang=fr"
++++            }
++++        },
++++        {
++++            "href": "https://example.net?lang=en-US#nav",
++++            "new_value": "?",
++++            "expected": {
++++                "href": "https://example.net/?#nav",
++++                "search": ""
++++            }
++++        },
++++        {
++++            "href": "https://example.net?lang=en-US#nav",
++++            "new_value": "",
++++            "expected": {
++++                "href": "https://example.net/#nav",
++++                "search": ""
++++            }
++++        },
++++        {
++++            "href": "https://example.net?lang=en-US",
++++            "new_value": "",
++++            "expected": {
++++                "href": "https://example.net/",
++++                "search": ""
++++            }
++++        },
++++        {
++++            "href": "https://example.net",
++++            "new_value": "",
++++            "expected": {
++++                "href": "https://example.net/",
++++                "search": ""
++++            }
++++        },
++++        {
++++            "comment": "UTF-8 percent encoding with the query encode set. Tabs and newlines are removed.",
++++            "href": "a:/",
++++            "new_value": "\u0000\u0001\t\n\r\u001f !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~\u007f\u0080\u0081Éé",
++++            "expected": {
++++                "href": "a:/?%00%01%1F%20!%22%23$%&'()*+,-./09:;%3C=%3E?@AZ[\\]^_`az{|}~%7F%C2%80%C2%81%C3%89%C3%A9",
++++                "search": "?%00%01%1F%20!%22%23$%&'()*+,-./09:;%3C=%3E?@AZ[\\]^_`az{|}~%7F%C2%80%C2%81%C3%89%C3%A9"
++++            }
++++        },
++++        {
++++            "comment": "Bytes already percent-encoded are left as-is",
++++            "href": "http://example.net",
++++            "new_value": "%c3%89té",
++++            "expected": {
++++                "href": "http://example.net/?%c3%89t%C3%A9",
++++                "search": "?%c3%89t%C3%A9"
++++            }
++++        },
++++        {
++++            "comment": "Drop trailing spaces from trailing opaque paths",
++++            "href": "data:space ?query",
++++            "new_value": "",
++++            "expected": {
++++                "href": "data:space",
++++                "pathname": "space",
++++                "search": ""
++++            }
++++        },
++++        {
++++            "href": "sc:space ?query",
++++            "new_value": "",
++++            "expected": {
++++                "href": "sc:space",
++++                "pathname": "space",
++++                "search": ""
++++            }
++++        },
++++        {
++++            "comment": "Do not drop trailing spaces from non-trailing opaque paths",
++++            "href": "data:space  ?query#fragment",
++++            "new_value": "",
++++            "expected": {
++++                "href": "data:space  #fragment",
++++                "search": ""
++++            }
++++        },
++++        {
++++            "href": "sc:space  ?query#fragment",
++++            "new_value": "",
++++            "expected": {
++++                "href": "sc:space  #fragment",
++++                "search": ""
++++            }
++++        },
++++        {
++++            "comment": "Trailing space should be encoded",
++++            "href": "http://example.net",
++++            "new_value": " ",
++++            "expected": {
++++                "href": "http://example.net/?%20",
++++                "search": "?%20"
++++            }
++++        },
++++        {
++++            "comment": "Trailing C0 control should be encoded",
++++            "href": "http://example.net",
++++            "new_value": "\u0000",
++++            "expected": {
++++                "href": "http://example.net/?%00",
++++                "search": "?%00"
++++            }
++++        }
++++    ],
++++    "hash": [
++++        {
++++            "href": "https://example.net",
++++            "new_value": "main",
++++            "expected": {
++++                "href": "https://example.net/#main",
++++                "hash": "#main"
++++            }
++++        },
++++        {
++++            "href": "https://example.net#nav",
++++            "new_value": "main",
++++            "expected": {
++++                "href": "https://example.net/#main",
++++                "hash": "#main"
++++            }
++++        },
++++        {
++++            "href": "https://example.net?lang=en-US",
++++            "new_value": "##nav",
++++            "expected": {
++++                "href": "https://example.net/?lang=en-US##nav",
++++                "hash": "##nav"
++++            }
++++        },
++++        {
++++            "href": "https://example.net?lang=en-US#nav",
++++            "new_value": "#main",
++++            "expected": {
++++                "href": "https://example.net/?lang=en-US#main",
++++                "hash": "#main"
++++            }
++++        },
++++        {
++++            "href": "https://example.net?lang=en-US#nav",
++++            "new_value": "#",
++++            "expected": {
++++                "href": "https://example.net/?lang=en-US#",
++++                "hash": ""
++++            }
++++        },
++++        {
++++            "href": "https://example.net?lang=en-US#nav",
++++            "new_value": "",
++++            "expected": {
++++                "href": "https://example.net/?lang=en-US",
++++                "hash": ""
++++            }
++++        },
++++        {
++++            "href": "http://example.net",
++++            "new_value": "#foo bar",
++++            "expected": {
++++                "href": "http://example.net/#foo%20bar",
++++                "hash": "#foo%20bar"
++++            }
++++        },
++++        {
++++            "href": "http://example.net",
++++            "new_value": "#foo\"bar",
++++            "expected": {
++++                "href": "http://example.net/#foo%22bar",
++++                "hash": "#foo%22bar"
++++            }
++++        },
++++        {
++++            "href": "http://example.net",
++++            "new_value": "#foo<bar",
++++            "expected": {
++++                "href": "http://example.net/#foo%3Cbar",
++++                "hash": "#foo%3Cbar"
++++            }
++++        },
++++        {
++++            "href": "http://example.net",
++++            "new_value": "#foo>bar",
++++            "expected": {
++++                "href": "http://example.net/#foo%3Ebar",
++++                "hash": "#foo%3Ebar"
++++            }
++++        },
++++        {
++++            "href": "http://example.net",
++++            "new_value": "#foo`bar",
++++            "expected": {
++++                "href": "http://example.net/#foo%60bar",
++++                "hash": "#foo%60bar"
++++            }
++++        },
++++        {
++++            "comment": "Simple percent-encoding; tabs and newlines are removed",
++++            "href": "a:/",
++++            "new_value": "\u0000\u0001\t\n\r\u001f !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~\u007f\u0080\u0081Éé",
++++            "expected": {
++++                "href": "a:/#%00%01%1F%20!%22#$%&'()*+,-./09:;%3C=%3E?@AZ[\\]^_%60az{|}~%7F%C2%80%C2%81%C3%89%C3%A9",
++++                "hash": "#%00%01%1F%20!%22#$%&'()*+,-./09:;%3C=%3E?@AZ[\\]^_%60az{|}~%7F%C2%80%C2%81%C3%89%C3%A9"
++++            }
++++        },
++++        {
++++            "comment": "Percent-encode NULLs in fragment",
++++            "href": "http://example.net",
++++            "new_value": "a\u0000b",
++++            "expected": {
++++                "href": "http://example.net/#a%00b",
++++                "hash": "#a%00b"
++++            }
++++        },
++++        {
++++            "comment": "Percent-encode NULLs in fragment",
++++            "href": "non-spec:/",
++++            "new_value": "a\u0000b",
++++            "expected": {
++++                "href": "non-spec:/#a%00b",
++++                "hash": "#a%00b"
++++            }
++++        },
++++        {
++++            "comment": "Bytes already percent-encoded are left as-is",
++++            "href": "http://example.net",
++++            "new_value": "%c3%89té",
++++            "expected": {
++++                "href": "http://example.net/#%c3%89t%C3%A9",
++++                "hash": "#%c3%89t%C3%A9"
++++            }
++++        },
++++        {
++++            "href": "javascript:alert(1)",
++++            "new_value": "castle",
++++            "expected": {
++++                "href": "javascript:alert(1)#castle",
++++                "hash": "#castle"
++++            }
++++        },
++++        {
++++            "comment": "Drop trailing spaces from trailing opaque paths",
++++            "href": "data:space                                                                                                                                  #fragment",
++++            "new_value": "",
++++            "expected": {
++++                "href": "data:space",
++++                "pathname": "space",
++++                "hash": ""
++++            }
++++        },
++++        {
++++            "href": "sc:space    #fragment",
++++            "new_value": "",
++++            "expected": {
++++                "href": "sc:space",
++++                "pathname": "space",
++++                "hash": ""
++++            }
++++        },
++++        {
++++            "comment": "Do not drop trailing spaces from non-trailing opaque paths",
++++            "href": "data:space  ?query#fragment",
++++            "new_value": "",
++++            "expected": {
++++                "href": "data:space  ?query",
++++                "hash": ""
++++            }
++++        },
++++        {
++++            "href": "sc:space  ?query#fragment",
++++            "new_value": "",
++++            "expected": {
++++                "href": "sc:space  ?query",
++++                "hash": ""
++++            }
++++        },
++++        {
++++            "comment": "Trailing space should be encoded",
++++            "href": "http://example.net",
++++            "new_value": " ",
++++            "expected": {
++++                "href": "http://example.net/#%20",
++++                "hash": "#%20"
++++            }
++++        },
++++        {
++++            "comment": "Trailing C0 control should be encoded",
++++            "href": "http://example.net",
++++            "new_value": "\u0000",
++++            "expected": {
++++                "href": "http://example.net/#%00",
++++                "hash": "#%00"
++++            }
++++        }
++++    ],
++++    "href": [
++++        {
++++            "href": "file:///var/log/system.log",
++++            "new_value": "http://0300.168.0xF0",
++++            "expected": {
++++                "href": "http://192.168.0.240/",
++++                "protocol": "http:"
++++            }
++++        }
++++    ]
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..d02c4c7e86654c5056abb6969d9c916a96eb1620
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,202 @@@@@
++++[
++++  "This resource is focused on highlighting issues with UTS #46 ToASCII",
++++  {
++++    "comment": "Label with hyphens in 3rd and 4th position",
++++    "input": "aa--",
++++    "output": "aa--"
++++  },
++++  {
++++    "input": "a†--",
++++    "output": "xn--a---kp0a"
++++  },
++++  {
++++    "input": "ab--c",
++++    "output": "ab--c"
++++  },
++++  {
++++    "comment": "Label with leading hyphen",
++++    "input": "-x",
++++    "output": "-x"
++++  },
++++  {
++++    "input": "-†",
++++    "output": "xn----xhn"
++++  },
++++  {
++++    "input": "-x.xn--zca",
++++    "output": "-x.xn--zca"
++++  },
++++  {
++++    "input": "-x.ß",
++++    "output": "-x.xn--zca"
++++  },
++++  {
++++    "comment": "Label with trailing hyphen",
++++    "input": "x-.xn--zca",
++++    "output": "x-.xn--zca"
++++  },
++++  {
++++    "input": "x-.ß",
++++    "output": "x-.xn--zca"
++++  },
++++  {
++++    "comment": "Empty labels",
++++    "input": "x..xn--zca",
++++    "output": "x..xn--zca"
++++  },
++++  {
++++    "input": "x..ß",
++++    "output": "x..xn--zca"
++++  },
++++  {
++++    "comment": "Invalid Punycode",
++++    "input": "xn--a",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--a.xn--zca",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--a.ß",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--ls8h=",
++++    "output": null
++++  },
++++  {
++++    "comment": "Invalid Punycode (contains non-ASCII character)",
++++    "input": "xn--tešla",
++++    "output": null
++++  },
++++  {
++++    "comment": "Valid Punycode",
++++    "input": "xn--zca.xn--zca",
++++    "output": "xn--zca.xn--zca"
++++  },
++++  {
++++    "comment": "Mixed",
++++    "input": "xn--zca.ß",
++++    "output": "xn--zca.xn--zca"
++++  },
++++  {
++++    "input": "ab--c.xn--zca",
++++    "output": "ab--c.xn--zca"
++++  },
++++  {
++++    "input": "ab--c.ß",
++++    "output": "ab--c.xn--zca"
++++  },
++++  {
++++    "comment": "CheckJoiners is true",
++++    "input": "\u200D.example",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--1ug.example",
++++    "output": null
++++  },
++++  {
++++    "comment": "CheckBidi is true",
++++    "input": "يa",
++++    "output": null
++++  },
++++  {
++++    "input": "xn--a-yoc",
++++    "output": null
++++  },
++++  {
++++    "comment": "processing_option is Nontransitional_Processing",
++++    "input": "ශ්‍රී",
++++    "output": "xn--10cl1a0b660p"
++++  },
++++  {
++++    "input": "نامه‌ای",
++++    "output": "xn--mgba3gch31f060k"
++++  },
++++  {
++++    "comment": "U+FFFD",
++++    "input": "\uFFFD.com",
++++    "output": null
++++  },
++++  {
++++    "comment": "U+FFFD character encoded in Punycode",
++++    "input": "xn--zn7c.com",
++++    "output": null
++++  },
++++  {
++++    "comment": "Label longer than 63 code points",
++++    "input": "x01234567890123456789012345678901234567890123456789012345678901x",
++++    "output": "x01234567890123456789012345678901234567890123456789012345678901x"
++++  },
++++  {
++++    "input": "x01234567890123456789012345678901234567890123456789012345678901†",
++++    "output": "xn--x01234567890123456789012345678901234567890123456789012345678901-6963b"
++++  },
++++  {
++++    "input": "x01234567890123456789012345678901234567890123456789012345678901x.xn--zca",
++++    "output": "x01234567890123456789012345678901234567890123456789012345678901x.xn--zca"
++++  },
++++  {
++++    "input": "x01234567890123456789012345678901234567890123456789012345678901x.ß",
++++    "output": "x01234567890123456789012345678901234567890123456789012345678901x.xn--zca"
++++  },
++++  {
++++    "comment": "Domain excluding TLD longer than 253 code points",
++++    "input": "01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.0123456789012345678901234567890123456789012345678.x",
++++    "output": "01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.0123456789012345678901234567890123456789012345678.x"
++++  },
++++  {
++++    "input": "01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.0123456789012345678901234567890123456789012345678.xn--zca",
++++    "output": "01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.0123456789012345678901234567890123456789012345678.xn--zca"
++++  },
++++  {
++++    "input": "01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.0123456789012345678901234567890123456789012345678.ß",
++++    "output": "01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.01234567890123456789012345678901234567890123456789.0123456789012345678901234567890123456789012345678.xn--zca"
++++  },
++++  {
++++    "comment": "IDNA ignored code points",
++++    "input": "a\u00ADb",
++++    "output": "ab"
++++  },
++++  {
++++    "comment": "Interesting UseSTD3ASCIIRules=false cases",
++++    "input": "≠",
++++    "output": "xn--1ch"
++++  },
++++  {
++++    "input": "≮",
++++    "output": "xn--gdh"
++++  },
++++  {
++++    "input": "≯",
++++    "output": "xn--hdh"
++++  },
++++  {
++++    "comment": "NFC normalization (forbidden < and > characters are normalized to valid ones)",
++++    "input": "=\u0338",
++++    "output": "xn--1ch"
++++  },
++++  {
++++    "input": "<\u0338",
++++    "output": "xn--gdh"
++++  },
++++  {
++++    "input": ">\u0338",
++++    "output": "xn--hdh"
++++  },
++++  {
++++    "comment": "Same with inserted IDNA ignored code point",
++++    "input": "=\u00AD\u0338",
++++    "output": "xn--1ch"
++++  },
++++  {
++++    "input": "<\u00AD\u0338",
++++    "output": "xn--gdh"
++++  },
++++  {
++++    "input": ">\u00AD\u0338",
++++    "output": "xn--hdh"
++++  }
++++]
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a3793c1f472f00b6be921d4d21f06529ff07e19a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,18 @@@@@
++++[
++++    "See ../README.md for a description of the format.",
++++    {
++++        "input": "http://example.com/\uD800\uD801\uDFFE\uDFFF\uFDD0\uFDCF\uFDEF\uFDF0\uFFFE\uFFFF?\uD800\uD801\uDFFE\uDFFF\uFDD0\uFDCF\uFDEF\uFDF0\uFFFE\uFFFF",
++++        "base": null,
++++        "href": "http://example.com/%EF%BF%BD%F0%90%9F%BE%EF%BF%BD%EF%B7%90%EF%B7%8F%EF%B7%AF%EF%B7%B0%EF%BF%BE%EF%BF%BF?%EF%BF%BD%F0%90%9F%BE%EF%BF%BD%EF%B7%90%EF%B7%8F%EF%B7%AF%EF%B7%B0%EF%BF%BE%EF%BF%BF",
++++        "origin": "http://example.com",
++++        "protocol": "http:",
++++        "username": "",
++++        "password": "",
++++        "host": "example.com",
++++        "hostname": "example.com",
++++        "port": "",
++++        "pathname": "/%EF%BF%BD%F0%90%9F%BE%EF%BF%BD%EF%B7%90%EF%B7%8F%EF%B7%AF%EF%B7%B0%EF%BF%BE%EF%BF%BF",
++++        "search": "?%EF%BF%BD%F0%90%9F%BE%EF%BF%BD%EF%B7%90%EF%B7%8F%EF%B7%AF%EF%B7%B0%EF%BF%BE%EF%BF%BF",
++++        "hash": ""
++++    }
++++]
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..9dbe5456a96950085aa4ee11fe757b90350b6bad
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,9996 @@@@@
++++[
++++  "See ../README.md for a description of the format.",
++++  {
++++    "input": "http://example\t.\norg",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://user:pass@foo:21/bar;par?b#c",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://user:pass@foo:21/bar;par?b#c",
++++    "origin": "http://foo:21",
++++    "protocol": "http:",
++++    "username": "user",
++++    "password": "pass",
++++    "host": "foo:21",
++++    "hostname": "foo",
++++    "port": "21",
++++    "pathname": "/bar;par",
++++    "search": "?b",
++++    "hash": "#c"
++++  },
++++  {
++++    "input": "https://test:@test",
++++    "base": null,
++++    "href": "https://test@test/",
++++    "origin": "https://test",
++++    "protocol": "https:",
++++    "username": "test",
++++    "password": "",
++++    "host": "test",
++++    "hostname": "test",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "https://:@test",
++++    "base": null,
++++    "href": "https://test/",
++++    "origin": "https://test",
++++    "protocol": "https:",
++++    "username": "",
++++    "password": "",
++++    "host": "test",
++++    "hostname": "test",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "non-special://test:@test/x",
++++    "base": null,
++++    "href": "non-special://test@test/x",
++++    "origin": "null",
++++    "protocol": "non-special:",
++++    "username": "test",
++++    "password": "",
++++    "host": "test",
++++    "hostname": "test",
++++    "port": "",
++++    "pathname": "/x",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "non-special://:@test/x",
++++    "base": null,
++++    "href": "non-special://test/x",
++++    "origin": "null",
++++    "protocol": "non-special:",
++++    "username": "",
++++    "password": "",
++++    "host": "test",
++++    "hostname": "test",
++++    "port": "",
++++    "pathname": "/x",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:foo.com",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/foo.com",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/foo.com",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "\t   :foo.com   \n",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/:foo.com",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/:foo.com",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": " foo.com  ",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/foo.com",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/foo.com",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "a:\t foo.com",
++++    "base": "http://example.org/foo/bar",
++++    "href": "a: foo.com",
++++    "origin": "null",
++++    "protocol": "a:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": " foo.com",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://f:21/ b ? d # e ",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://f:21/%20b%20?%20d%20#%20e",
++++    "origin": "http://f:21",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "f:21",
++++    "hostname": "f",
++++    "port": "21",
++++    "pathname": "/%20b%20",
++++    "search": "?%20d%20",
++++    "hash": "#%20e"
++++  },
++++  {
++++    "input": "lolscheme:x x#x x",
++++    "base": null,
++++    "href": "lolscheme:x x#x%20x",
++++    "protocol": "lolscheme:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "x x",
++++    "search": "",
++++    "hash": "#x%20x"
++++  },
++++  {
++++    "input": "http://f:/c",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://f/c",
++++    "origin": "http://f",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "f",
++++    "hostname": "f",
++++    "port": "",
++++    "pathname": "/c",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://f:0/c",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://f:0/c",
++++    "origin": "http://f:0",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "f:0",
++++    "hostname": "f",
++++    "port": "0",
++++    "pathname": "/c",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://f:00000000000000/c",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://f:0/c",
++++    "origin": "http://f:0",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "f:0",
++++    "hostname": "f",
++++    "port": "0",
++++    "pathname": "/c",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://f:00000000000000000000080/c",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://f/c",
++++    "origin": "http://f",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "f",
++++    "hostname": "f",
++++    "port": "",
++++    "pathname": "/c",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://f:b/c",
++++    "base": "http://example.org/foo/bar",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://f: /c",
++++    "base": "http://example.org/foo/bar",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://f:\n/c",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://f/c",
++++    "origin": "http://f",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "f",
++++    "hostname": "f",
++++    "port": "",
++++    "pathname": "/c",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://f:fifty-two/c",
++++    "base": "http://example.org/foo/bar",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://f:999999/c",
++++    "base": "http://example.org/foo/bar",
++++    "failure": true
++++  },
++++  {
++++    "input": "non-special://f:999999/c",
++++    "base": "http://example.org/foo/bar",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://f: 21 / b ? d # e ",
++++    "base": "http://example.org/foo/bar",
++++    "failure": true
++++  },
++++  {
++++    "input": "",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/bar",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "  \t",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/bar",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": ":foo.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/:foo.com/",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/:foo.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": ":foo.com\\",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/:foo.com/",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/:foo.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": ":",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/:",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/:",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": ":a",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/:a",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/:a",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": ":/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/:/",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": ":\\",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/:/",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": ":#",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/:#",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/:",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "#",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/bar#",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "#/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/bar#/",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/bar",
++++    "search": "",
++++    "hash": "#/"
++++  },
++++  {
++++    "input": "#\\",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/bar#\\",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/bar",
++++    "search": "",
++++    "hash": "#\\"
++++  },
++++  {
++++    "input": "#;?",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/bar#;?",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/bar",
++++    "search": "",
++++    "hash": "#;?"
++++  },
++++  {
++++    "input": "?",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/bar?",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": ":23",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/:23",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/:23",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/:23",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/:23",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/:23",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "\\x",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/x",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/x",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "\\\\x\\hello",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://x/hello",
++++    "origin": "http://x",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "x",
++++    "hostname": "x",
++++    "port": "",
++++    "pathname": "/hello",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "::",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/::",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/::",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "::23",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/::23",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/::23",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "foo://",
++++    "base": "http://example.org/foo/bar",
++++    "href": "foo://",
++++    "origin": "null",
++++    "protocol": "foo:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://a:b@c:29/d",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://a:b@c:29/d",
++++    "origin": "http://c:29",
++++    "protocol": "http:",
++++    "username": "a",
++++    "password": "b",
++++    "host": "c:29",
++++    "hostname": "c",
++++    "port": "29",
++++    "pathname": "/d",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http::@c:29",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/:@c:29",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/:@c:29",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://&a:foo(b]c@d:2/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://&a:foo(b%5Dc@d:2/",
++++    "origin": "http://d:2",
++++    "protocol": "http:",
++++    "username": "&a",
++++    "password": "foo(b%5Dc",
++++    "host": "d:2",
++++    "hostname": "d",
++++    "port": "2",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://::@c@d:2",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://:%3A%40c@d:2/",
++++    "origin": "http://d:2",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "%3A%40c",
++++    "host": "d:2",
++++    "hostname": "d",
++++    "port": "2",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://foo.com:b@d/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://foo.com:b@d/",
++++    "origin": "http://d",
++++    "protocol": "http:",
++++    "username": "foo.com",
++++    "password": "b",
++++    "host": "d",
++++    "hostname": "d",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://foo.com/\\@",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://foo.com//@",
++++    "origin": "http://foo.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo.com",
++++    "hostname": "foo.com",
++++    "port": "",
++++    "pathname": "//@",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:\\\\foo.com\\",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://foo.com/",
++++    "origin": "http://foo.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo.com",
++++    "hostname": "foo.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:\\\\a\\b:c\\d@foo.com\\",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://a/b:c/d@foo.com/",
++++    "origin": "http://a",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "a",
++++    "hostname": "a",
++++    "port": "",
++++    "pathname": "/b:c/d@foo.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://a:b@c\\",
++++    "base": null,
++++    "href": "http://a:b@c/",
++++    "origin": "http://c",
++++    "protocol": "http:",
++++    "username": "a",
++++    "password": "b",
++++    "host": "c",
++++    "hostname": "c",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ws://a@b\\c",
++++    "base": null,
++++    "href": "ws://a@b/c",
++++    "origin": "ws://b",
++++    "protocol": "ws:",
++++    "username": "a",
++++    "password": "",
++++    "host": "b",
++++    "hostname": "b",
++++    "port": "",
++++    "pathname": "/c",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "foo:/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "foo:/",
++++    "origin": "null",
++++    "protocol": "foo:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "foo:/bar.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "foo:/bar.com/",
++++    "origin": "null",
++++    "protocol": "foo:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/bar.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "foo://///////",
++++    "base": "http://example.org/foo/bar",
++++    "href": "foo://///////",
++++    "origin": "null",
++++    "protocol": "foo:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "///////",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "foo://///////bar.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "foo://///////bar.com/",
++++    "origin": "null",
++++    "protocol": "foo:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "///////bar.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "foo:////://///",
++++    "base": "http://example.org/foo/bar",
++++    "href": "foo:////://///",
++++    "origin": "null",
++++    "protocol": "foo:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//://///",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "c:/foo",
++++    "base": "http://example.org/foo/bar",
++++    "href": "c:/foo",
++++    "origin": "null",
++++    "protocol": "c:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/foo",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "//foo/bar",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://foo/bar",
++++    "origin": "http://foo",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo",
++++    "hostname": "foo",
++++    "port": "",
++++    "pathname": "/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://foo/path;a??e#f#g",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://foo/path;a??e#f#g",
++++    "origin": "http://foo",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo",
++++    "hostname": "foo",
++++    "port": "",
++++    "pathname": "/path;a",
++++    "search": "??e",
++++    "hash": "#f#g"
++++  },
++++  {
++++    "input": "http://foo/abcd?efgh?ijkl",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://foo/abcd?efgh?ijkl",
++++    "origin": "http://foo",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo",
++++    "hostname": "foo",
++++    "port": "",
++++    "pathname": "/abcd",
++++    "search": "?efgh?ijkl",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://foo/abcd#foo?bar",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://foo/abcd#foo?bar",
++++    "origin": "http://foo",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo",
++++    "hostname": "foo",
++++    "port": "",
++++    "pathname": "/abcd",
++++    "search": "",
++++    "hash": "#foo?bar"
++++  },
++++  {
++++    "input": "[61:24:74]:98",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/[61:24:74]:98",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/[61:24:74]:98",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:[61:27]/:foo",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/[61:27]/:foo",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/[61:27]/:foo",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://[1::2]:3:4",
++++    "base": "http://example.org/foo/bar",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://2001::1",
++++    "base": "http://example.org/foo/bar",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://2001::1]",
++++    "base": "http://example.org/foo/bar",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://2001::1]:80",
++++    "base": "http://example.org/foo/bar",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://[2001::1]",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://[2001::1]/",
++++    "origin": "http://[2001::1]",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "[2001::1]",
++++    "hostname": "[2001::1]",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://[::127.0.0.1]",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://[::7f00:1]/",
++++    "origin": "http://[::7f00:1]",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "[::7f00:1]",
++++    "hostname": "[::7f00:1]",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://[::127.0.0.1.]",
++++    "base": "http://example.org/foo/bar",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://[0:0:0:0:0:0:13.1.68.3]",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://[::d01:4403]/",
++++    "origin": "http://[::d01:4403]",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "[::d01:4403]",
++++    "hostname": "[::d01:4403]",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://[2001::1]:80",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://[2001::1]/",
++++    "origin": "http://[2001::1]",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "[2001::1]",
++++    "hostname": "[2001::1]",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:/example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/example.com/",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ftp:/example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "ftp://example.com/",
++++    "origin": "ftp://example.com",
++++    "protocol": "ftp:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "https:/example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "https://example.com/",
++++    "origin": "https://example.com",
++++    "protocol": "https:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "madeupscheme:/example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "madeupscheme:/example.com/",
++++    "origin": "null",
++++    "protocol": "madeupscheme:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:/example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "file:///example.com/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://example:1/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "file://example:test/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "file://example%/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "file://[example]/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "ftps:/example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "ftps:/example.com/",
++++    "origin": "null",
++++    "protocol": "ftps:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "gopher:/example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "gopher:/example.com/",
++++    "origin": "null",
++++    "protocol": "gopher:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ws:/example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "ws://example.com/",
++++    "origin": "ws://example.com",
++++    "protocol": "ws:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "wss:/example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "wss://example.com/",
++++    "origin": "wss://example.com",
++++    "protocol": "wss:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "data:/example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "data:/example.com/",
++++    "origin": "null",
++++    "protocol": "data:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "javascript:/example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "javascript:/example.com/",
++++    "origin": "null",
++++    "protocol": "javascript:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "mailto:/example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "mailto:/example.com/",
++++    "origin": "null",
++++    "protocol": "mailto:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/example.com/",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ftp:example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "ftp://example.com/",
++++    "origin": "ftp://example.com",
++++    "protocol": "ftp:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "https:example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "https://example.com/",
++++    "origin": "https://example.com",
++++    "protocol": "https:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "madeupscheme:example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "madeupscheme:example.com/",
++++    "origin": "null",
++++    "protocol": "madeupscheme:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ftps:example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "ftps:example.com/",
++++    "origin": "null",
++++    "protocol": "ftps:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "gopher:example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "gopher:example.com/",
++++    "origin": "null",
++++    "protocol": "gopher:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ws:example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "ws://example.com/",
++++    "origin": "ws://example.com",
++++    "protocol": "ws:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "wss:example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "wss://example.com/",
++++    "origin": "wss://example.com",
++++    "protocol": "wss:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "data:example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "data:example.com/",
++++    "origin": "null",
++++    "protocol": "data:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "javascript:example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "javascript:example.com/",
++++    "origin": "null",
++++    "protocol": "javascript:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "mailto:example.com/",
++++    "base": "http://example.org/foo/bar",
++++    "href": "mailto:example.com/",
++++    "origin": "null",
++++    "protocol": "mailto:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/a/b/c",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/a/b/c",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/a/b/c",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/a/ /c",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/a/%20/c",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/a/%20/c",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/a%2fc",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/a%2fc",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/a%2fc",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/a/%2f/c",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/a/%2f/c",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/a/%2f/c",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "#β",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/bar#%CE%B2",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/bar",
++++    "search": "",
++++    "hash": "#%CE%B2"
++++  },
++++  {
++++    "input": "data:text/html,test#test",
++++    "base": "http://example.org/foo/bar",
++++    "href": "data:text/html,test#test",
++++    "origin": "null",
++++    "protocol": "data:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "text/html,test",
++++    "search": "",
++++    "hash": "#test"
++++  },
++++  {
++++    "input": "tel:1234567890",
++++    "base": "http://example.org/foo/bar",
++++    "href": "tel:1234567890",
++++    "origin": "null",
++++    "protocol": "tel:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "1234567890",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# Based on https://felixfbecker.github.io/whatwg-url-custom-host-repro/",
++++  {
++++    "input": "ssh://example.com/foo/bar.git",
++++    "base": "http://example.org/",
++++    "href": "ssh://example.com/foo/bar.git",
++++    "origin": "null",
++++    "protocol": "ssh:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo/bar.git",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/file.html",
++++  {
++++    "input": "file:c:\\foo\\bar.html",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file:///c:/foo/bar.html",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/c:/foo/bar.html",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "  File:c|////foo\\bar.html",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file:///c:////foo/bar.html",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/c:////foo/bar.html",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "C|/foo/bar",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file:///C:/foo/bar",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/C:/foo/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/C|\\foo\\bar",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file:///C:/foo/bar",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/C:/foo/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "//C|/foo/bar",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file:///C:/foo/bar",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/C:/foo/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "//server/file",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file://server/file",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "server",
++++    "hostname": "server",
++++    "port": "",
++++    "pathname": "/file",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "\\\\server\\file",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file://server/file",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "server",
++++    "hostname": "server",
++++    "port": "",
++++    "pathname": "/file",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/\\server/file",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file://server/file",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "server",
++++    "hostname": "server",
++++    "port": "",
++++    "pathname": "/file",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:///foo/bar.txt",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file:///foo/bar.txt",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/foo/bar.txt",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:///home/me",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file:///home/me",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/home/me",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "//",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file:///",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "///",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file:///",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "///test",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file:///test",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://test",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file://test/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "test",
++++    "hostname": "test",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://localhost",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file:///",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://localhost/",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file:///",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://localhost/test",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file:///test",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "test",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file:///tmp/mock/test",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/tmp/mock/test",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:test",
++++    "base": "file:///tmp/mock/path",
++++    "href": "file:///tmp/mock/test",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/tmp/mock/test",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:///w|m",
++++    "base": null,
++++    "href": "file:///w|m",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/w|m",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:///w||m",
++++    "base": null,
++++    "href": "file:///w||m",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/w||m",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:///w|/m",
++++    "base": null,
++++    "href": "file:///w:/m",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/w:/m",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:C|/m/",
++++    "base": null,
++++    "href": "file:///C:/m/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/C:/m/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:C||/m/",
++++    "base": null,
++++    "href": "file:///C||/m/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/C||/m/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/script-tests/path.js",
++++  {
++++    "input": "http://example.com/././foo",
++++    "base": null,
++++    "href": "http://example.com/foo",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/./.foo",
++++    "base": null,
++++    "href": "http://example.com/.foo",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/.foo",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo/.",
++++    "base": null,
++++    "href": "http://example.com/foo/",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo/./",
++++    "base": null,
++++    "href": "http://example.com/foo/",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo/bar/..",
++++    "base": null,
++++    "href": "http://example.com/foo/",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo/bar/../",
++++    "base": null,
++++    "href": "http://example.com/foo/",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo/..bar",
++++    "base": null,
++++    "href": "http://example.com/foo/..bar",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo/..bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo/bar/../ton",
++++    "base": null,
++++    "href": "http://example.com/foo/ton",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo/ton",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo/bar/../ton/../../a",
++++    "base": null,
++++    "href": "http://example.com/a",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/a",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo/../../..",
++++    "base": null,
++++    "href": "http://example.com/",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo/../../../ton",
++++    "base": null,
++++    "href": "http://example.com/ton",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/ton",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo/%2e",
++++    "base": null,
++++    "href": "http://example.com/foo/",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo/%2e%2",
++++    "base": null,
++++    "href": "http://example.com/foo/%2e%2",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo/%2e%2",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar",
++++    "base": null,
++++    "href": "http://example.com/%2e.bar",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/%2e.bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com////../..",
++++    "base": null,
++++    "href": "http://example.com//",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "//",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo/bar//../..",
++++    "base": null,
++++    "href": "http://example.com/foo/",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo/bar//..",
++++    "base": null,
++++    "href": "http://example.com/foo/bar/",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo/bar/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo",
++++    "base": null,
++++    "href": "http://example.com/foo",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/%20foo",
++++    "base": null,
++++    "href": "http://example.com/%20foo",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/%20foo",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo%",
++++    "base": null,
++++    "href": "http://example.com/foo%",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo%",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo%2",
++++    "base": null,
++++    "href": "http://example.com/foo%2",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo%2",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo%2zbar",
++++    "base": null,
++++    "href": "http://example.com/foo%2zbar",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo%2zbar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo%2©zbar",
++++    "base": null,
++++    "href": "http://example.com/foo%2%C3%82%C2%A9zbar",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo%2%C3%82%C2%A9zbar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo%41%7a",
++++    "base": null,
++++    "href": "http://example.com/foo%41%7a",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo%41%7a",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo\t\u0091%91",
++++    "base": null,
++++    "href": "http://example.com/foo%C2%91%91",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo%C2%91%91",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo%00%51",
++++    "base": null,
++++    "href": "http://example.com/foo%00%51",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foo%00%51",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/(%28:%3A%29)",
++++    "base": null,
++++    "href": "http://example.com/(%28:%3A%29)",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/(%28:%3A%29)",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/%3A%3a%3C%3c",
++++    "base": null,
++++    "href": "http://example.com/%3A%3a%3C%3c",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/%3A%3a%3C%3c",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/foo\tbar",
++++    "base": null,
++++    "href": "http://example.com/foobar",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/foobar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com\\\\foo\\\\bar",
++++    "base": null,
++++    "href": "http://example.com//foo//bar",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "//foo//bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/%7Ffp3%3Eju%3Dduvgw%3Dd",
++++    "base": null,
++++    "href": "http://example.com/%7Ffp3%3Eju%3Dduvgw%3Dd",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/%7Ffp3%3Eju%3Dduvgw%3Dd",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/@asdf%40",
++++    "base": null,
++++    "href": "http://example.com/@asdf%40",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/@asdf%40",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/你好你好",
++++    "base": null,
++++    "href": "http://example.com/%E4%BD%A0%E5%A5%BD%E4%BD%A0%E5%A5%BD",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/%E4%BD%A0%E5%A5%BD%E4%BD%A0%E5%A5%BD",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/‥/foo",
++++    "base": null,
++++    "href": "http://example.com/%E2%80%A5/foo",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/%E2%80%A5/foo",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com//foo",
++++    "base": null,
++++    "href": "http://example.com/%EF%BB%BF/foo",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/%EF%BB%BF/foo",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.com/‮/foo/‭/bar",
++++    "base": null,
++++    "href": "http://example.com/%E2%80%AE/foo/%E2%80%AD/bar",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/%E2%80%AE/foo/%E2%80%AD/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/script-tests/relative.js",
++++  {
++++    "input": "http://www.google.com/foo?bar=baz#",
++++    "base": null,
++++    "href": "http://www.google.com/foo?bar=baz#",
++++    "origin": "http://www.google.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.google.com",
++++    "hostname": "www.google.com",
++++    "port": "",
++++    "pathname": "/foo",
++++    "search": "?bar=baz",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://www.google.com/foo?bar=baz# »",
++++    "base": null,
++++    "href": "http://www.google.com/foo?bar=baz#%20%C2%BB",
++++    "origin": "http://www.google.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.google.com",
++++    "hostname": "www.google.com",
++++    "port": "",
++++    "pathname": "/foo",
++++    "search": "?bar=baz",
++++    "hash": "#%20%C2%BB"
++++  },
++++  {
++++    "input": "data:test# »",
++++    "base": null,
++++    "href": "data:test#%20%C2%BB",
++++    "origin": "null",
++++    "protocol": "data:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "test",
++++    "search": "",
++++    "hash": "#%20%C2%BB"
++++  },
++++  {
++++    "input": "http://www.google.com",
++++    "base": null,
++++    "href": "http://www.google.com/",
++++    "origin": "http://www.google.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.google.com",
++++    "hostname": "www.google.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://192.0x00A80001",
++++    "base": null,
++++    "href": "http://192.168.0.1/",
++++    "origin": "http://192.168.0.1",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "192.168.0.1",
++++    "hostname": "192.168.0.1",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://www/foo%2Ehtml",
++++    "base": null,
++++    "href": "http://www/foo%2Ehtml",
++++    "origin": "http://www",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www",
++++    "hostname": "www",
++++    "port": "",
++++    "pathname": "/foo%2Ehtml",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://www/foo/%2E/html",
++++    "base": null,
++++    "href": "http://www/foo/html",
++++    "origin": "http://www",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www",
++++    "hostname": "www",
++++    "port": "",
++++    "pathname": "/foo/html",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://user:pass@/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://%25DOMAIN:foobar@foodomain.com/",
++++    "base": null,
++++    "href": "http://%25DOMAIN:foobar@foodomain.com/",
++++    "origin": "http://foodomain.com",
++++    "protocol": "http:",
++++    "username": "%25DOMAIN",
++++    "password": "foobar",
++++    "host": "foodomain.com",
++++    "hostname": "foodomain.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:\\\\www.google.com\\foo",
++++    "base": null,
++++    "href": "http://www.google.com/foo",
++++    "origin": "http://www.google.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.google.com",
++++    "hostname": "www.google.com",
++++    "port": "",
++++    "pathname": "/foo",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://foo:80/",
++++    "base": null,
++++    "href": "http://foo/",
++++    "origin": "http://foo",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo",
++++    "hostname": "foo",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://foo:81/",
++++    "base": null,
++++    "href": "http://foo:81/",
++++    "origin": "http://foo:81",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo:81",
++++    "hostname": "foo",
++++    "port": "81",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "httpa://foo:80/",
++++    "base": null,
++++    "href": "httpa://foo:80/",
++++    "origin": "null",
++++    "protocol": "httpa:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo:80",
++++    "hostname": "foo",
++++    "port": "80",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://foo:-80/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://foo:443/",
++++    "base": null,
++++    "href": "https://foo/",
++++    "origin": "https://foo",
++++    "protocol": "https:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo",
++++    "hostname": "foo",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "https://foo:80/",
++++    "base": null,
++++    "href": "https://foo:80/",
++++    "origin": "https://foo:80",
++++    "protocol": "https:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo:80",
++++    "hostname": "foo",
++++    "port": "80",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ftp://foo:21/",
++++    "base": null,
++++    "href": "ftp://foo/",
++++    "origin": "ftp://foo",
++++    "protocol": "ftp:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo",
++++    "hostname": "foo",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ftp://foo:80/",
++++    "base": null,
++++    "href": "ftp://foo:80/",
++++    "origin": "ftp://foo:80",
++++    "protocol": "ftp:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo:80",
++++    "hostname": "foo",
++++    "port": "80",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "gopher://foo:70/",
++++    "base": null,
++++    "href": "gopher://foo:70/",
++++    "origin": "null",
++++    "protocol": "gopher:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo:70",
++++    "hostname": "foo",
++++    "port": "70",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "gopher://foo:443/",
++++    "base": null,
++++    "href": "gopher://foo:443/",
++++    "origin": "null",
++++    "protocol": "gopher:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo:443",
++++    "hostname": "foo",
++++    "port": "443",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ws://foo:80/",
++++    "base": null,
++++    "href": "ws://foo/",
++++    "origin": "ws://foo",
++++    "protocol": "ws:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo",
++++    "hostname": "foo",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ws://foo:81/",
++++    "base": null,
++++    "href": "ws://foo:81/",
++++    "origin": "ws://foo:81",
++++    "protocol": "ws:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo:81",
++++    "hostname": "foo",
++++    "port": "81",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ws://foo:443/",
++++    "base": null,
++++    "href": "ws://foo:443/",
++++    "origin": "ws://foo:443",
++++    "protocol": "ws:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo:443",
++++    "hostname": "foo",
++++    "port": "443",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ws://foo:815/",
++++    "base": null,
++++    "href": "ws://foo:815/",
++++    "origin": "ws://foo:815",
++++    "protocol": "ws:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo:815",
++++    "hostname": "foo",
++++    "port": "815",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "wss://foo:80/",
++++    "base": null,
++++    "href": "wss://foo:80/",
++++    "origin": "wss://foo:80",
++++    "protocol": "wss:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo:80",
++++    "hostname": "foo",
++++    "port": "80",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "wss://foo:81/",
++++    "base": null,
++++    "href": "wss://foo:81/",
++++    "origin": "wss://foo:81",
++++    "protocol": "wss:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo:81",
++++    "hostname": "foo",
++++    "port": "81",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "wss://foo:443/",
++++    "base": null,
++++    "href": "wss://foo/",
++++    "origin": "wss://foo",
++++    "protocol": "wss:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo",
++++    "hostname": "foo",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "wss://foo:815/",
++++    "base": null,
++++    "href": "wss://foo:815/",
++++    "origin": "wss://foo:815",
++++    "protocol": "wss:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo:815",
++++    "hostname": "foo",
++++    "port": "815",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:/example.com/",
++++    "base": null,
++++    "href": "http://example.com/",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ftp:/example.com/",
++++    "base": null,
++++    "href": "ftp://example.com/",
++++    "origin": "ftp://example.com",
++++    "protocol": "ftp:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "https:/example.com/",
++++    "base": null,
++++    "href": "https://example.com/",
++++    "origin": "https://example.com",
++++    "protocol": "https:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "madeupscheme:/example.com/",
++++    "base": null,
++++    "href": "madeupscheme:/example.com/",
++++    "origin": "null",
++++    "protocol": "madeupscheme:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:/example.com/",
++++    "base": null,
++++    "href": "file:///example.com/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ftps:/example.com/",
++++    "base": null,
++++    "href": "ftps:/example.com/",
++++    "origin": "null",
++++    "protocol": "ftps:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "gopher:/example.com/",
++++    "base": null,
++++    "href": "gopher:/example.com/",
++++    "origin": "null",
++++    "protocol": "gopher:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ws:/example.com/",
++++    "base": null,
++++    "href": "ws://example.com/",
++++    "origin": "ws://example.com",
++++    "protocol": "ws:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "wss:/example.com/",
++++    "base": null,
++++    "href": "wss://example.com/",
++++    "origin": "wss://example.com",
++++    "protocol": "wss:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "data:/example.com/",
++++    "base": null,
++++    "href": "data:/example.com/",
++++    "origin": "null",
++++    "protocol": "data:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "javascript:/example.com/",
++++    "base": null,
++++    "href": "javascript:/example.com/",
++++    "origin": "null",
++++    "protocol": "javascript:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "mailto:/example.com/",
++++    "base": null,
++++    "href": "mailto:/example.com/",
++++    "origin": "null",
++++    "protocol": "mailto:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:example.com/",
++++    "base": null,
++++    "href": "http://example.com/",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ftp:example.com/",
++++    "base": null,
++++    "href": "ftp://example.com/",
++++    "origin": "ftp://example.com",
++++    "protocol": "ftp:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "https:example.com/",
++++    "base": null,
++++    "href": "https://example.com/",
++++    "origin": "https://example.com",
++++    "protocol": "https:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "madeupscheme:example.com/",
++++    "base": null,
++++    "href": "madeupscheme:example.com/",
++++    "origin": "null",
++++    "protocol": "madeupscheme:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ftps:example.com/",
++++    "base": null,
++++    "href": "ftps:example.com/",
++++    "origin": "null",
++++    "protocol": "ftps:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "gopher:example.com/",
++++    "base": null,
++++    "href": "gopher:example.com/",
++++    "origin": "null",
++++    "protocol": "gopher:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ws:example.com/",
++++    "base": null,
++++    "href": "ws://example.com/",
++++    "origin": "ws://example.com",
++++    "protocol": "ws:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "wss:example.com/",
++++    "base": null,
++++    "href": "wss://example.com/",
++++    "origin": "wss://example.com",
++++    "protocol": "wss:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "data:example.com/",
++++    "base": null,
++++    "href": "data:example.com/",
++++    "origin": "null",
++++    "protocol": "data:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "javascript:example.com/",
++++    "base": null,
++++    "href": "javascript:example.com/",
++++    "origin": "null",
++++    "protocol": "javascript:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "mailto:example.com/",
++++    "base": null,
++++    "href": "mailto:example.com/",
++++    "origin": "null",
++++    "protocol": "mailto:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "example.com/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/segments-userinfo-vs-host.html",
++++  {
++++    "input": "http:@www.example.com",
++++    "base": null,
++++    "href": "http://www.example.com/",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:/@www.example.com",
++++    "base": null,
++++    "href": "http://www.example.com/",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://@www.example.com",
++++    "base": null,
++++    "href": "http://www.example.com/",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:a:b@www.example.com",
++++    "base": null,
++++    "href": "http://a:b@www.example.com/",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "a",
++++    "password": "b",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:/a:b@www.example.com",
++++    "base": null,
++++    "href": "http://a:b@www.example.com/",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "a",
++++    "password": "b",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://a:b@www.example.com",
++++    "base": null,
++++    "href": "http://a:b@www.example.com/",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "a",
++++    "password": "b",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://@pple.com",
++++    "base": null,
++++    "href": "http://pple.com/",
++++    "origin": "http://pple.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "pple.com",
++++    "hostname": "pple.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http::b@www.example.com",
++++    "base": null,
++++    "href": "http://:b@www.example.com/",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "b",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:/:b@www.example.com",
++++    "base": null,
++++    "href": "http://:b@www.example.com/",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "b",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://:b@www.example.com",
++++    "base": null,
++++    "href": "http://:b@www.example.com/",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "b",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:/:@/www.example.com",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "non-opaque-path-base"
++++  },
++++  {
++++    "input": "http://user@/www.example.com",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http:@/www.example.com",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "non-opaque-path-base"
++++  },
++++  {
++++    "input": "http:/@/www.example.com",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "non-opaque-path-base"
++++  },
++++  {
++++    "input": "http://@/www.example.com",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https:@/www.example.com",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "non-opaque-path-base"
++++  },
++++  {
++++    "input": "http:a:b@/www.example.com",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "non-opaque-path-base"
++++  },
++++  {
++++    "input": "http:/a:b@/www.example.com",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "non-opaque-path-base"
++++  },
++++  {
++++    "input": "http://a:b@/www.example.com",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http::@/www.example.com",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "non-opaque-path-base"
++++  },
++++  {
++++    "input": "http:a:@www.example.com",
++++    "base": null,
++++    "href": "http://a@www.example.com/",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "a",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:/a:@www.example.com",
++++    "base": null,
++++    "href": "http://a@www.example.com/",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "a",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://a:@www.example.com",
++++    "base": null,
++++    "href": "http://a@www.example.com/",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "a",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://www.@pple.com",
++++    "base": null,
++++    "href": "http://www.@pple.com/",
++++    "origin": "http://pple.com",
++++    "protocol": "http:",
++++    "username": "www.",
++++    "password": "",
++++    "host": "pple.com",
++++    "hostname": "pple.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:@:www.example.com",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "non-opaque-path-base"
++++  },
++++  {
++++    "input": "http:/@:www.example.com",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "non-opaque-path-base"
++++  },
++++  {
++++    "input": "http://@:www.example.com",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://:@www.example.com",
++++    "base": null,
++++    "href": "http://www.example.com/",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# Others",
++++  {
++++    "input": "/",
++++    "base": "http://www.example.com/test",
++++    "href": "http://www.example.com/",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/test.txt",
++++    "base": "http://www.example.com/test",
++++    "href": "http://www.example.com/test.txt",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/test.txt",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": ".",
++++    "base": "http://www.example.com/test",
++++    "href": "http://www.example.com/",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "..",
++++    "base": "http://www.example.com/test",
++++    "href": "http://www.example.com/",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "test.txt",
++++    "base": "http://www.example.com/test",
++++    "href": "http://www.example.com/test.txt",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/test.txt",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "./test.txt",
++++    "base": "http://www.example.com/test",
++++    "href": "http://www.example.com/test.txt",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/test.txt",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "../test.txt",
++++    "base": "http://www.example.com/test",
++++    "href": "http://www.example.com/test.txt",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/test.txt",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "../aaa/test.txt",
++++    "base": "http://www.example.com/test",
++++    "href": "http://www.example.com/aaa/test.txt",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/aaa/test.txt",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "../../test.txt",
++++    "base": "http://www.example.com/test",
++++    "href": "http://www.example.com/test.txt",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/test.txt",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "中/test.txt",
++++    "base": "http://www.example.com/test",
++++    "href": "http://www.example.com/%E4%B8%AD/test.txt",
++++    "origin": "http://www.example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "port": "",
++++    "pathname": "/%E4%B8%AD/test.txt",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://www.example2.com",
++++    "base": "http://www.example.com/test",
++++    "href": "http://www.example2.com/",
++++    "origin": "http://www.example2.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example2.com",
++++    "hostname": "www.example2.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "//www.example2.com",
++++    "base": "http://www.example.com/test",
++++    "href": "http://www.example2.com/",
++++    "origin": "http://www.example2.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.example2.com",
++++    "hostname": "www.example2.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:...",
++++    "base": "http://www.example.com/test",
++++    "href": "file:///...",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/...",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:..",
++++    "base": "http://www.example.com/test",
++++    "href": "file:///",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:a",
++++    "base": "http://www.example.com/test",
++++    "href": "file:///a",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/a",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:.",
++++    "base": null,
++++    "href": "file:///",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:.",
++++    "base": "http://www.example.com/test",
++++    "href": "file:///",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# Based on http://trac.webkit.org/browser/trunk/LayoutTests/fast/url/host.html",
++++  "Basic canonicalization, uppercase should be converted to lowercase",
++++  {
++++    "input": "http://ExAmPlE.CoM",
++++    "base": "http://other.com/",
++++    "href": "http://example.com/",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example example.com",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://Goo%20 goo%7C|.com",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://[]",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://[:]",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  "U+3000 is mapped to U+0020 (space) which is disallowed",
++++  {
++++    "input": "http://GOO\u00a0\u3000goo.com",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  "Other types of space (no-break, zero-width, zero-width-no-break) are name-prepped away to nothing. U+200B, U+2060, and U+FEFF, are ignored",
++++  {
++++    "input": "http://GOO\u200b\u2060\ufeffgoo.com",
++++    "base": "http://other.com/",
++++    "href": "http://googoo.com/",
++++    "origin": "http://googoo.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "googoo.com",
++++    "hostname": "googoo.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Leading and trailing C0 control or space",
++++  {
++++    "input": "\u0000\u001b\u0004\u0012 http://example.com/\u001f \u000d ",
++++    "base": null,
++++    "href": "http://example.com/",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Ideographic full stop (full-width period for Chinese, etc.) should be treated as a dot. U+3002 is mapped to U+002E (dot)",
++++  {
++++    "input": "http://www.foo。bar.com",
++++    "base": "http://other.com/",
++++    "href": "http://www.foo.bar.com/",
++++    "origin": "http://www.foo.bar.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "www.foo.bar.com",
++++    "hostname": "www.foo.bar.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Invalid unicode characters should fail... U+FDD0 is disallowed; %ef%b7%90 is U+FDD0",
++++  {
++++    "input": "http://\ufdd0zyx.com",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  "This is the same as previous but escaped",
++++  {
++++    "input": "http://%ef%b7%90zyx.com",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  "U+FFFD",
++++  {
++++    "input": "https://\ufffd",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://%EF%BF%BD",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://x/\ufffd?\ufffd#\ufffd",
++++    "base": null,
++++    "href": "https://x/%EF%BF%BD?%EF%BF%BD#%EF%BF%BD",
++++    "origin": "https://x",
++++    "protocol": "https:",
++++    "username": "",
++++    "password": "",
++++    "host": "x",
++++    "hostname": "x",
++++    "port": "",
++++    "pathname": "/%EF%BF%BD",
++++    "search": "?%EF%BF%BD",
++++    "hash": "#%EF%BF%BD"
++++  },
++++  "Domain is ASCII, but a label is invalid IDNA",
++++  {
++++    "input": "http://a.b.c.xn--pokxncvks",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://10.0.0.xn--pokxncvks",
++++    "base": null,
++++    "failure": true
++++  },
++++  "IDNA labels should be matched case-insensitively",
++++  {
++++    "input": "http://a.b.c.XN--pokxncvks",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a.b.c.Xn--pokxncvks",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://10.0.0.XN--pokxncvks",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://10.0.0.xN--pokxncvks",
++++    "base": null,
++++    "failure": true
++++  },
++++  "Test name prepping, fullwidth input should be converted to ASCII and NOT IDN-ized. This is 'Go' in fullwidth UTF-8/UTF-16.",
++++  {
++++    "input": "http://Go.com",
++++    "base": "http://other.com/",
++++    "href": "http://go.com/",
++++    "origin": "http://go.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "go.com",
++++    "hostname": "go.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "URL spec forbids the following. https://www.w3.org/Bugs/Public/show_bug.cgi?id=24257",
++++  {
++++    "input": "http://%41.com",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://%ef%bc%85%ef%bc%94%ef%bc%91.com",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  "...%00 in fullwidth should fail (also as escaped UTF-8 input)",
++++  {
++++    "input": "http://%00.com",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://%ef%bc%85%ef%bc%90%ef%bc%90.com",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  "Basic IDN support, UTF-8 and UTF-16 input should be converted to IDN",
++++  {
++++    "input": "http://你好你好",
++++    "base": "http://other.com/",
++++    "href": "http://xn--6qqa088eba/",
++++    "origin": "http://xn--6qqa088eba",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "xn--6qqa088eba",
++++    "hostname": "xn--6qqa088eba",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "https://faß.ExAmPlE/",
++++    "base": null,
++++    "href": "https://xn--fa-hia.example/",
++++    "origin": "https://xn--fa-hia.example",
++++    "protocol": "https:",
++++    "username": "",
++++    "password": "",
++++    "host": "xn--fa-hia.example",
++++    "hostname": "xn--fa-hia.example",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "sc://faß.ExAmPlE/",
++++    "base": null,
++++    "href": "sc://fa%C3%9F.ExAmPlE/",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "fa%C3%9F.ExAmPlE",
++++    "hostname": "fa%C3%9F.ExAmPlE",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Invalid escaped characters should fail and the percents should be escaped. https://www.w3.org/Bugs/Public/show_bug.cgi?id=24191",
++++  {
++++    "input": "http://%zz%66%a.com",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  "If we get an invalid character that has been escaped.",
++++  {
++++    "input": "http://%25",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://hello%00",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  "Escaped numbers should be treated like IP addresses if they are.",
++++  {
++++    "input": "http://%30%78%63%30%2e%30%32%35%30.01",
++++    "base": "http://other.com/",
++++    "href": "http://192.168.0.1/",
++++    "origin": "http://192.168.0.1",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "192.168.0.1",
++++    "hostname": "192.168.0.1",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://%30%78%63%30%2e%30%32%35%30.01%2e",
++++    "base": "http://other.com/",
++++    "href": "http://192.168.0.1/",
++++    "origin": "http://192.168.0.1",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "192.168.0.1",
++++    "hostname": "192.168.0.1",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://192.168.0.257",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  "Invalid escaping in hosts causes failure",
++++  {
++++    "input": "http://%3g%78%63%30%2e%30%32%35%30%2E.01",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  "A space in a host causes failure",
++++  {
++++    "input": "http://192.168.0.1 hello",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "https://x x:12",
++++    "base": null,
++++    "failure": true
++++  },
++++  "Fullwidth and escaped UTF-8 fullwidth should still be treated as IP",
++++  {
++++    "input": "http://0Xc0.0250.01",
++++    "base": "http://other.com/",
++++    "href": "http://192.168.0.1/",
++++    "origin": "http://192.168.0.1",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "192.168.0.1",
++++    "hostname": "192.168.0.1",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Domains with empty labels",
++++  {
++++    "input": "http://./",
++++    "base": null,
++++    "href": "http://./",
++++    "origin": "http://.",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": ".",
++++    "hostname": ".",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://../",
++++    "base": null,
++++    "href": "http://../",
++++    "origin": "http://..",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "..",
++++    "hostname": "..",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Non-special domains with empty labels",
++++  {
++++    "input": "h://.",
++++    "base": null,
++++    "href": "h://.",
++++    "origin": "null",
++++    "protocol": "h:",
++++    "username": "",
++++    "password": "",
++++    "host": ".",
++++    "hostname": ".",
++++    "port": "",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Broken IPv6",
++++  {
++++    "input": "http://[www.google.com]/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://[google.com]",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://[::1.2.3.4x]",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://[::1.2.3.]",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://[::1.2.]",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://[::.1.2]",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://[::1.]",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://[::.1]",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://[::%31]",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://%5B::1]",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  "Misc Unicode",
++++  {
++++    "input": "http://foo:💩@example.com/bar",
++++    "base": "http://other.com/",
++++    "href": "http://foo:%F0%9F%92%A9@example.com/bar",
++++    "origin": "http://example.com",
++++    "protocol": "http:",
++++    "username": "foo",
++++    "password": "%F0%9F%92%A9",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "port": "",
++++    "pathname": "/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# resolving a fragment against any scheme succeeds",
++++  {
++++    "input": "#",
++++    "base": "test:test",
++++    "href": "test:test#",
++++    "origin": "null",
++++    "protocol": "test:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "test",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "#x",
++++    "base": "mailto:x@x.com",
++++    "href": "mailto:x@x.com#x",
++++    "origin": "null",
++++    "protocol": "mailto:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "x@x.com",
++++    "search": "",
++++    "hash": "#x"
++++  },
++++  {
++++    "input": "#x",
++++    "base": "data:,",
++++    "href": "data:,#x",
++++    "origin": "null",
++++    "protocol": "data:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": ",",
++++    "search": "",
++++    "hash": "#x"
++++  },
++++  {
++++    "input": "#x",
++++    "base": "about:blank",
++++    "href": "about:blank#x",
++++    "origin": "null",
++++    "protocol": "about:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "blank",
++++    "search": "",
++++    "hash": "#x"
++++  },
++++  {
++++    "input": "#x:y",
++++    "base": "about:blank",
++++    "href": "about:blank#x:y",
++++    "origin": "null",
++++    "protocol": "about:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "blank",
++++    "search": "",
++++    "hash": "#x:y"
++++  },
++++  {
++++    "input": "#",
++++    "base": "test:test?test",
++++    "href": "test:test?test#",
++++    "origin": "null",
++++    "protocol": "test:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "test",
++++    "search": "?test",
++++    "hash": ""
++++  },
++++  "# multiple @ in authority state",
++++  {
++++    "input": "https://@test@test@example:800/",
++++    "base": "http://doesnotmatter/",
++++    "href": "https://%40test%40test@example:800/",
++++    "origin": "https://example:800",
++++    "protocol": "https:",
++++    "username": "%40test%40test",
++++    "password": "",
++++    "host": "example:800",
++++    "hostname": "example",
++++    "port": "800",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "https://@@@example",
++++    "base": "http://doesnotmatter/",
++++    "href": "https://%40%40@example/",
++++    "origin": "https://example",
++++    "protocol": "https:",
++++    "username": "%40%40",
++++    "password": "",
++++    "host": "example",
++++    "hostname": "example",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "non-az-09 characters",
++++  {
++++    "input": "http://`{}:`{}@h/`{}?`{}",
++++    "base": "http://doesnotmatter/",
++++    "href": "http://%60%7B%7D:%60%7B%7D@h/%60%7B%7D?`{}",
++++    "origin": "http://h",
++++    "protocol": "http:",
++++    "username": "%60%7B%7D",
++++    "password": "%60%7B%7D",
++++    "host": "h",
++++    "hostname": "h",
++++    "port": "",
++++    "pathname": "/%60%7B%7D",
++++    "search": "?`{}",
++++    "hash": ""
++++  },
++++  "byte is ' and url is special",
++++  {
++++    "input": "http://host/?'",
++++    "base": null,
++++    "href": "http://host/?%27",
++++    "origin": "http://host",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "?%27",
++++    "hash": ""
++++  },
++++  {
++++    "input": "notspecial://host/?'",
++++    "base": null,
++++    "href": "notspecial://host/?'",
++++    "origin": "null",
++++    "protocol": "notspecial:",
++++    "username": "",
++++    "password": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "?'",
++++    "hash": ""
++++  },
++++  "# Credentials in base",
++++  {
++++    "input": "/some/path",
++++    "base": "http://user@example.org/smth",
++++    "href": "http://user@example.org/some/path",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "user",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/some/path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "",
++++    "base": "http://user:pass@example.org:21/smth",
++++    "href": "http://user:pass@example.org:21/smth",
++++    "origin": "http://example.org:21",
++++    "protocol": "http:",
++++    "username": "user",
++++    "password": "pass",
++++    "host": "example.org:21",
++++    "hostname": "example.org",
++++    "port": "21",
++++    "pathname": "/smth",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/some/path",
++++    "base": "http://user:pass@example.org:21/smth",
++++    "href": "http://user:pass@example.org:21/some/path",
++++    "origin": "http://example.org:21",
++++    "protocol": "http:",
++++    "username": "user",
++++    "password": "pass",
++++    "host": "example.org:21",
++++    "hostname": "example.org",
++++    "port": "21",
++++    "pathname": "/some/path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# a set of tests designed by zcorpan for relative URLs with unknown schemes",
++++  {
++++    "input": "i",
++++    "base": "sc:sd",
++++    "failure": true
++++  },
++++  {
++++    "input": "i",
++++    "base": "sc:sd/sd",
++++    "failure": true
++++  },
++++  {
++++    "input": "i",
++++    "base": "sc:/pa/pa",
++++    "href": "sc:/pa/i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/pa/i",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "i",
++++    "base": "sc://ho/pa",
++++    "href": "sc://ho/i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "ho",
++++    "hostname": "ho",
++++    "port": "",
++++    "pathname": "/i",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "i",
++++    "base": "sc:///pa/pa",
++++    "href": "sc:///pa/i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/pa/i",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "../i",
++++    "base": "sc:sd",
++++    "failure": true
++++  },
++++  {
++++    "input": "../i",
++++    "base": "sc:sd/sd",
++++    "failure": true
++++  },
++++  {
++++    "input": "../i",
++++    "base": "sc:/pa/pa",
++++    "href": "sc:/i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/i",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "../i",
++++    "base": "sc://ho/pa",
++++    "href": "sc://ho/i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "ho",
++++    "hostname": "ho",
++++    "port": "",
++++    "pathname": "/i",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "../i",
++++    "base": "sc:///pa/pa",
++++    "href": "sc:///i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/i",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/i",
++++    "base": "sc:sd",
++++    "failure": true
++++  },
++++  {
++++    "input": "/i",
++++    "base": "sc:sd/sd",
++++    "failure": true
++++  },
++++  {
++++    "input": "/i",
++++    "base": "sc:/pa/pa",
++++    "href": "sc:/i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/i",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/i",
++++    "base": "sc://ho/pa",
++++    "href": "sc://ho/i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "ho",
++++    "hostname": "ho",
++++    "port": "",
++++    "pathname": "/i",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/i",
++++    "base": "sc:///pa/pa",
++++    "href": "sc:///i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/i",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "?i",
++++    "base": "sc:sd",
++++    "failure": true
++++  },
++++  {
++++    "input": "?i",
++++    "base": "sc:sd/sd",
++++    "failure": true
++++  },
++++  {
++++    "input": "?i",
++++    "base": "sc:/pa/pa",
++++    "href": "sc:/pa/pa?i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/pa/pa",
++++    "search": "?i",
++++    "hash": ""
++++  },
++++  {
++++    "input": "?i",
++++    "base": "sc://ho/pa",
++++    "href": "sc://ho/pa?i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "ho",
++++    "hostname": "ho",
++++    "port": "",
++++    "pathname": "/pa",
++++    "search": "?i",
++++    "hash": ""
++++  },
++++  {
++++    "input": "?i",
++++    "base": "sc:///pa/pa",
++++    "href": "sc:///pa/pa?i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/pa/pa",
++++    "search": "?i",
++++    "hash": ""
++++  },
++++  {
++++    "input": "#i",
++++    "base": "sc:sd",
++++    "href": "sc:sd#i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "sd",
++++    "search": "",
++++    "hash": "#i"
++++  },
++++  {
++++    "input": "#i",
++++    "base": "sc:sd/sd",
++++    "href": "sc:sd/sd#i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "sd/sd",
++++    "search": "",
++++    "hash": "#i"
++++  },
++++  {
++++    "input": "#i",
++++    "base": "sc:/pa/pa",
++++    "href": "sc:/pa/pa#i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/pa/pa",
++++    "search": "",
++++    "hash": "#i"
++++  },
++++  {
++++    "input": "#i",
++++    "base": "sc://ho/pa",
++++    "href": "sc://ho/pa#i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "ho",
++++    "hostname": "ho",
++++    "port": "",
++++    "pathname": "/pa",
++++    "search": "",
++++    "hash": "#i"
++++  },
++++  {
++++    "input": "#i",
++++    "base": "sc:///pa/pa",
++++    "href": "sc:///pa/pa#i",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/pa/pa",
++++    "search": "",
++++    "hash": "#i"
++++  },
++++  "# make sure that relative URL logic works on known typically non-relative schemes too",
++++  {
++++    "input": "about:/../",
++++    "base": null,
++++    "href": "about:/",
++++    "origin": "null",
++++    "protocol": "about:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "data:/../",
++++    "base": null,
++++    "href": "data:/",
++++    "origin": "null",
++++    "protocol": "data:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "javascript:/../",
++++    "base": null,
++++    "href": "javascript:/",
++++    "origin": "null",
++++    "protocol": "javascript:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "mailto:/../",
++++    "base": null,
++++    "href": "mailto:/",
++++    "origin": "null",
++++    "protocol": "mailto:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# unknown schemes and their hosts",
++++  {
++++    "input": "sc://ñ.test/",
++++    "base": null,
++++    "href": "sc://%C3%B1.test/",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "%C3%B1.test",
++++    "hostname": "%C3%B1.test",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "sc://%/",
++++    "base": null,
++++    "href": "sc://%/",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "%",
++++    "hostname": "%",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "sc://@/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "sc://te@s:t@/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "sc://:/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "sc://:12/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "x",
++++    "base": "sc://ñ",
++++    "href": "sc://%C3%B1/x",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "%C3%B1",
++++    "hostname": "%C3%B1",
++++    "port": "",
++++    "pathname": "/x",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# unknown schemes and backslashes",
++++  {
++++    "input": "sc:\\../",
++++    "base": null,
++++    "href": "sc:\\../",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "\\../",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# unknown scheme with path looking like a password",
++++  {
++++    "input": "sc::a@example.net",
++++    "base": null,
++++    "href": "sc::a@example.net",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": ":a@example.net",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# unknown scheme with bogus percent-encoding",
++++  {
++++    "input": "wow:%NBD",
++++    "base": null,
++++    "href": "wow:%NBD",
++++    "origin": "null",
++++    "protocol": "wow:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "%NBD",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "wow:%1G",
++++    "base": null,
++++    "href": "wow:%1G",
++++    "origin": "null",
++++    "protocol": "wow:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "%1G",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# unknown scheme with non-URL characters",
++++  {
++++    "input": "wow:\uFFFF",
++++    "base": null,
++++    "href": "wow:%EF%BF%BF",
++++    "origin": "null",
++++    "protocol": "wow:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "%EF%BF%BF",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Forbidden host code points",
++++  {
++++    "input": "sc://a\u0000b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "sc://a b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "sc://a<b",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "sc://a>b",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "sc://a[b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "sc://a\\b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "sc://a]b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "sc://a^b",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "sc://a|b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  "Forbidden host codepoints: tabs and newlines are removed during preprocessing",
++++  {
++++    "input": "foo://ho\u0009st/",
++++    "base": null,
++++    "hash": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "href":"foo://host/",
++++    "password": "",
++++    "pathname": "/",
++++    "port":"",
++++    "protocol": "foo:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "foo://ho\u000Ast/",
++++    "base": null,
++++    "hash": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "href":"foo://host/",
++++    "password": "",
++++    "pathname": "/",
++++    "port":"",
++++    "protocol": "foo:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "foo://ho\u000Dst/",
++++    "base": null,
++++    "hash": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "href":"foo://host/",
++++    "password": "",
++++    "pathname": "/",
++++    "port":"",
++++    "protocol": "foo:",
++++    "search": "",
++++    "username": ""
++++  },
++++  "Forbidden domain code-points",
++++  {
++++    "input": "http://a\u0000b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0001b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0002b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0003b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0004b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0005b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0006b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0007b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0008b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u000Bb/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u000Cb/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u000Eb/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u000Fb/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0010b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0011b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0012b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0013b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0014b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0015b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0016b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0017b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0018b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u0019b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u001Ab/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u001Bb/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u001Cb/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u001Db/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u001Eb/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u001Fb/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a%b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a<b",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a>b",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a[b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a]b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a^b",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a|b/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://a\u007Fb/",
++++    "base": null,
++++    "failure": true
++++  },
++++  "Forbidden domain codepoints: tabs and newlines are removed during preprocessing",
++++  {
++++    "input": "http://ho\u0009st/",
++++    "base": null,
++++    "hash": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "href":"http://host/",
++++    "password": "",
++++    "pathname": "/",
++++    "port":"",
++++    "protocol": "http:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "http://ho\u000Ast/",
++++    "base": null,
++++    "hash": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "href":"http://host/",
++++    "password": "",
++++    "pathname": "/",
++++    "port":"",
++++    "protocol": "http:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "http://ho\u000Dst/",
++++    "base": null,
++++    "hash": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "href":"http://host/",
++++    "password": "",
++++    "pathname": "/",
++++    "port":"",
++++    "protocol": "http:",
++++    "search": "",
++++    "username": ""
++++  },
++++  "Encoded forbidden domain codepoints in special URLs",
++++  {
++++    "input": "http://ho%00st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%01st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%02st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%03st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%04st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%05st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%06st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%07st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%08st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%09st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%0Ast/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%0Bst/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%0Cst/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%0Dst/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%0Est/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%0Fst/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%10st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%11st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%12st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%13st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%14st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%15st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%16st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%17st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%18st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%19st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%1Ast/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%1Bst/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%1Cst/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%1Dst/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%1Est/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%1Fst/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%20st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%23st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%25st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%2Fst/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%3Ast/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%3Cst/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%3Est/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%3Fst/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%40st/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%5Bst/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%5Cst/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%5Dst/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%7Cst/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://ho%7Fst/",
++++    "base": null,
++++    "failure": true
++++  },
++++  "Allowed host/domain code points",
++++  {
++++    "input": "http://!\"$&'()*+,-.;=_`{}~/",
++++    "base": null,
++++    "href": "http://!\"$&'()*+,-.;=_`{}~/",
++++    "origin": "http://!\"$&'()*+,-.;=_`{}~",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "!\"$&'()*+,-.;=_`{}~",
++++    "hostname": "!\"$&'()*+,-.;=_`{}~",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "sc://\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u000B\u000C\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F\u007F!\"$%&'()*+,-.;=_`{}~/",
++++    "base": null,
++++    "href": "sc://%01%02%03%04%05%06%07%08%0B%0C%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%7F!\"$%&'()*+,-.;=_`{}~/",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "%01%02%03%04%05%06%07%08%0B%0C%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%7F!\"$%&'()*+,-.;=_`{}~",
++++    "hostname": "%01%02%03%04%05%06%07%08%0B%0C%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%7F!\"$%&'()*+,-.;=_`{}~",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# Hosts and percent-encoding",
++++  {
++++    "input": "ftp://example.com%80/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "ftp://example.com%A0/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://example.com%80/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://example.com%A0/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "ftp://%e2%98%83",
++++    "base": null,
++++    "href": "ftp://xn--n3h/",
++++    "origin": "ftp://xn--n3h",
++++    "protocol": "ftp:",
++++    "username": "",
++++    "password": "",
++++    "host": "xn--n3h",
++++    "hostname": "xn--n3h",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "https://%e2%98%83",
++++    "base": null,
++++    "href": "https://xn--n3h/",
++++    "origin": "https://xn--n3h",
++++    "protocol": "https:",
++++    "username": "",
++++    "password": "",
++++    "host": "xn--n3h",
++++    "hostname": "xn--n3h",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# tests from jsdom/whatwg-url designed for code coverage",
++++  {
++++    "input": "http://127.0.0.1:10100/relative_import.html",
++++    "base": null,
++++    "href": "http://127.0.0.1:10100/relative_import.html",
++++    "origin": "http://127.0.0.1:10100",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "127.0.0.1:10100",
++++    "hostname": "127.0.0.1",
++++    "port": "10100",
++++    "pathname": "/relative_import.html",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://facebook.com/?foo=%7B%22abc%22",
++++    "base": null,
++++    "href": "http://facebook.com/?foo=%7B%22abc%22",
++++    "origin": "http://facebook.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "facebook.com",
++++    "hostname": "facebook.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "?foo=%7B%22abc%22",
++++    "hash": ""
++++  },
++++  {
++++    "input": "https://localhost:3000/jqueryui@1.2.3",
++++    "base": null,
++++    "href": "https://localhost:3000/jqueryui@1.2.3",
++++    "origin": "https://localhost:3000",
++++    "protocol": "https:",
++++    "username": "",
++++    "password": "",
++++    "host": "localhost:3000",
++++    "hostname": "localhost",
++++    "port": "3000",
++++    "pathname": "/jqueryui@1.2.3",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# tab/LF/CR",
++++  {
++++    "input": "h\tt\nt\rp://h\to\ns\rt:9\t0\n0\r0/p\ta\nt\rh?q\tu\ne\rry#f\tr\na\rg",
++++    "base": null,
++++    "href": "http://host:9000/path?query#frag",
++++    "origin": "http://host:9000",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "host:9000",
++++    "hostname": "host",
++++    "port": "9000",
++++    "pathname": "/path",
++++    "search": "?query",
++++    "hash": "#frag"
++++  },
++++  "# Stringification of URL.searchParams",
++++  {
++++    "input": "?a=b&c=d",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/bar?a=b&c=d",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/bar",
++++    "search": "?a=b&c=d",
++++    "searchParams": "a=b&c=d",
++++    "hash": ""
++++  },
++++  {
++++    "input": "??a=b&c=d",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/bar??a=b&c=d",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/bar",
++++    "search": "??a=b&c=d",
++++    "searchParams": "%3Fa=b&c=d",
++++    "hash": ""
++++  },
++++  "# Scheme only",
++++  {
++++    "input": "http:",
++++    "base": "http://example.org/foo/bar",
++++    "href": "http://example.org/foo/bar",
++++    "origin": "http://example.org",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/foo/bar",
++++    "search": "",
++++    "searchParams": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http:",
++++    "base": "https://example.org/foo/bar",
++++    "failure": true
++++  },
++++  {
++++    "input": "sc:",
++++    "base": "https://example.org/foo/bar",
++++    "href": "sc:",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "",
++++    "search": "",
++++    "searchParams": "",
++++    "hash": ""
++++  },
++++  "# Percent encoding of fragments",
++++  {
++++    "input": "http://foo.bar/baz?qux#foo\bbar",
++++    "base": null,
++++    "href": "http://foo.bar/baz?qux#foo%08bar",
++++    "origin": "http://foo.bar",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo.bar",
++++    "hostname": "foo.bar",
++++    "port": "",
++++    "pathname": "/baz",
++++    "search": "?qux",
++++    "searchParams": "qux=",
++++    "hash": "#foo%08bar"
++++  },
++++  {
++++    "input": "http://foo.bar/baz?qux#foo\"bar",
++++    "base": null,
++++    "href": "http://foo.bar/baz?qux#foo%22bar",
++++    "origin": "http://foo.bar",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo.bar",
++++    "hostname": "foo.bar",
++++    "port": "",
++++    "pathname": "/baz",
++++    "search": "?qux",
++++    "searchParams": "qux=",
++++    "hash": "#foo%22bar"
++++  },
++++  {
++++    "input": "http://foo.bar/baz?qux#foo<bar",
++++    "base": null,
++++    "href": "http://foo.bar/baz?qux#foo%3Cbar",
++++    "origin": "http://foo.bar",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo.bar",
++++    "hostname": "foo.bar",
++++    "port": "",
++++    "pathname": "/baz",
++++    "search": "?qux",
++++    "searchParams": "qux=",
++++    "hash": "#foo%3Cbar"
++++  },
++++  {
++++    "input": "http://foo.bar/baz?qux#foo>bar",
++++    "base": null,
++++    "href": "http://foo.bar/baz?qux#foo%3Ebar",
++++    "origin": "http://foo.bar",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo.bar",
++++    "hostname": "foo.bar",
++++    "port": "",
++++    "pathname": "/baz",
++++    "search": "?qux",
++++    "searchParams": "qux=",
++++    "hash": "#foo%3Ebar"
++++  },
++++  {
++++    "input": "http://foo.bar/baz?qux#foo`bar",
++++    "base": null,
++++    "href": "http://foo.bar/baz?qux#foo%60bar",
++++    "origin": "http://foo.bar",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "foo.bar",
++++    "hostname": "foo.bar",
++++    "port": "",
++++    "pathname": "/baz",
++++    "search": "?qux",
++++    "searchParams": "qux=",
++++    "hash": "#foo%60bar"
++++  },
++++  "# IPv4 parsing (via https://github.com/nodejs/node/pull/10317)",
++++  {
++++    "input": "http://1.2.3.4/",
++++    "base": "http://other.com/",
++++    "href": "http://1.2.3.4/",
++++    "origin": "http://1.2.3.4",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "1.2.3.4",
++++    "hostname": "1.2.3.4",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://1.2.3.4./",
++++    "base": "http://other.com/",
++++    "href": "http://1.2.3.4/",
++++    "origin": "http://1.2.3.4",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "1.2.3.4",
++++    "hostname": "1.2.3.4",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://192.168.257",
++++    "base": "http://other.com/",
++++    "href": "http://192.168.1.1/",
++++    "origin": "http://192.168.1.1",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "192.168.1.1",
++++    "hostname": "192.168.1.1",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://192.168.257.",
++++    "base": "http://other.com/",
++++    "href": "http://192.168.1.1/",
++++    "origin": "http://192.168.1.1",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "192.168.1.1",
++++    "hostname": "192.168.1.1",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://192.168.257.com",
++++    "base": "http://other.com/",
++++    "href": "http://192.168.257.com/",
++++    "origin": "http://192.168.257.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "192.168.257.com",
++++    "hostname": "192.168.257.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://256",
++++    "base": "http://other.com/",
++++    "href": "http://0.0.1.0/",
++++    "origin": "http://0.0.1.0",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "0.0.1.0",
++++    "hostname": "0.0.1.0",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://256.com",
++++    "base": "http://other.com/",
++++    "href": "http://256.com/",
++++    "origin": "http://256.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "256.com",
++++    "hostname": "256.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://999999999",
++++    "base": "http://other.com/",
++++    "href": "http://59.154.201.255/",
++++    "origin": "http://59.154.201.255",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "59.154.201.255",
++++    "hostname": "59.154.201.255",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://999999999.",
++++    "base": "http://other.com/",
++++    "href": "http://59.154.201.255/",
++++    "origin": "http://59.154.201.255",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "59.154.201.255",
++++    "hostname": "59.154.201.255",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://999999999.com",
++++    "base": "http://other.com/",
++++    "href": "http://999999999.com/",
++++    "origin": "http://999999999.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "999999999.com",
++++    "hostname": "999999999.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://10000000000",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://10000000000.com",
++++    "base": "http://other.com/",
++++    "href": "http://10000000000.com/",
++++    "origin": "http://10000000000.com",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "10000000000.com",
++++    "hostname": "10000000000.com",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://4294967295",
++++    "base": "http://other.com/",
++++    "href": "http://255.255.255.255/",
++++    "origin": "http://255.255.255.255",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "255.255.255.255",
++++    "hostname": "255.255.255.255",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://4294967296",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://0xffffffff",
++++    "base": "http://other.com/",
++++    "href": "http://255.255.255.255/",
++++    "origin": "http://255.255.255.255",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "255.255.255.255",
++++    "hostname": "255.255.255.255",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://0xffffffff1",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://256.256.256.256",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "https://0x.0x.0",
++++    "base": null,
++++    "href": "https://0.0.0.0/",
++++    "origin": "https://0.0.0.0",
++++    "protocol": "https:",
++++    "username": "",
++++    "password": "",
++++    "host": "0.0.0.0",
++++    "hostname": "0.0.0.0",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "More IPv4 parsing (via https://github.com/jsdom/whatwg-url/issues/92)",
++++  {
++++    "input": "https://0x100000000/test",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://256.0.0.1/test",
++++    "base": null,
++++    "failure": true
++++  },
++++  "# file URLs containing percent-encoded Windows drive letters (shouldn't work)",
++++  {
++++    "input": "file:///C%3A/",
++++    "base": null,
++++    "href": "file:///C%3A/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/C%3A/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:///C%7C/",
++++    "base": null,
++++    "href": "file:///C%7C/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/C%7C/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://%43%3A",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "file://%43%7C",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "file://%43|",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "file://C%7C",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "file://%43%7C/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://%43%7C/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "asdf://%43|/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "asdf://%43%7C/",
++++    "base": null,
++++    "href": "asdf://%43%7C/",
++++    "origin": "null",
++++    "protocol": "asdf:",
++++    "username": "",
++++    "password": "",
++++    "host": "%43%7C",
++++    "hostname": "%43%7C",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# file URLs relative to other file URLs (via https://github.com/jsdom/whatwg-url/pull/60)",
++++  {
++++    "input": "pix/submit.gif",
++++    "base": "file:///C:/Users/Domenic/Dropbox/GitHub/tmpvar/jsdom/test/level2/html/files/anchor.html",
++++    "href": "file:///C:/Users/Domenic/Dropbox/GitHub/tmpvar/jsdom/test/level2/html/files/pix/submit.gif",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/C:/Users/Domenic/Dropbox/GitHub/tmpvar/jsdom/test/level2/html/files/pix/submit.gif",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "..",
++++    "base": "file:///C:/",
++++    "href": "file:///C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "..",
++++    "base": "file:///",
++++    "href": "file:///",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# More file URL tests by zcorpan and annevk",
++++  {
++++    "input": "/",
++++    "base": "file:///C:/a/b",
++++    "href": "file:///C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/",
++++    "base": "file://h/C:/a/b",
++++    "href": "file://h/C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "h",
++++    "hostname": "h",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/",
++++    "base": "file://h/a/b",
++++    "href": "file://h/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "h",
++++    "hostname": "h",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "//d:",
++++    "base": "file:///C:/a/b",
++++    "href": "file:///d:",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/d:",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "//d:/..",
++++    "base": "file:///C:/a/b",
++++    "href": "file:///d:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/d:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "..",
++++    "base": "file:///ab:/",
++++    "href": "file:///",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "..",
++++    "base": "file:///1:/",
++++    "href": "file:///",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "",
++++    "base": "file:///test?test#test",
++++    "href": "file:///test?test",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?test",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:",
++++    "base": "file:///test?test#test",
++++    "href": "file:///test?test",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?test",
++++    "hash": ""
++++  },
++++  {
++++    "input": "?x",
++++    "base": "file:///test?test#test",
++++    "href": "file:///test?x",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?x",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:?x",
++++    "base": "file:///test?test#test",
++++    "href": "file:///test?x",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?x",
++++    "hash": ""
++++  },
++++  {
++++    "input": "#x",
++++    "base": "file:///test?test#test",
++++    "href": "file:///test?test#x",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?test",
++++    "hash": "#x"
++++  },
++++  {
++++    "input": "file:#x",
++++    "base": "file:///test?test#test",
++++    "href": "file:///test?test#x",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?test",
++++    "hash": "#x"
++++  },
++++  "# File URLs and many (back)slashes",
++++  {
++++    "input": "file:\\\\//",
++++    "base": null,
++++    "href": "file:////",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:\\\\\\\\",
++++    "base": null,
++++    "href": "file:////",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:\\\\\\\\?fox",
++++    "base": null,
++++    "href": "file:////?fox",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//",
++++    "search": "?fox",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:\\\\\\\\#guppy",
++++    "base": null,
++++    "href": "file:////#guppy",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//",
++++    "search": "",
++++    "hash": "#guppy"
++++  },
++++  {
++++    "input": "file://spider///",
++++    "base": null,
++++    "href": "file://spider///",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "spider",
++++    "hostname": "spider",
++++    "port": "",
++++    "pathname": "///",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:\\\\localhost//",
++++    "base": null,
++++    "href": "file:////",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:///localhost//cat",
++++    "base": null,
++++    "href": "file:///localhost//cat",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/localhost//cat",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://\\/localhost//cat",
++++    "base": null,
++++    "href": "file:////localhost//cat",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//localhost//cat",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://localhost//a//../..//",
++++    "base": null,
++++    "href": "file://///",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "///",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/////mouse",
++++    "base": "file:///elephant",
++++    "href": "file://///mouse",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "///mouse",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "\\//pig",
++++    "base": "file://lion/",
++++    "href": "file:///pig",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/pig",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "\\/localhost//pig",
++++    "base": "file://lion/",
++++    "href": "file:////pig",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//pig",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "//localhost//pig",
++++    "base": "file://lion/",
++++    "href": "file:////pig",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//pig",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/..//localhost//pig",
++++    "base": "file://lion/",
++++    "href": "file://lion//localhost//pig",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "lion",
++++    "hostname": "lion",
++++    "port": "",
++++    "pathname": "//localhost//pig",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://",
++++    "base": "file://ape/",
++++    "href": "file:///",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# File URLs with non-empty hosts",
++++  {
++++    "input": "/rooibos",
++++    "base": "file://tea/",
++++    "href": "file://tea/rooibos",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "tea",
++++    "hostname": "tea",
++++    "port": "",
++++    "pathname": "/rooibos",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/?chai",
++++    "base": "file://tea/",
++++    "href": "file://tea/?chai",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "tea",
++++    "hostname": "tea",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "?chai",
++++    "hash": ""
++++  },
++++  "# Windows drive letter handling with the 'file:' base URL",
++++  {
++++    "input": "C|",
++++    "base": "file://host/dir/file",
++++    "href": "file://host/C:",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "port": "",
++++    "pathname": "/C:",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "C|",
++++    "base": "file://host/D:/dir1/dir2/file",
++++    "href": "file://host/C:",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "port": "",
++++    "pathname": "/C:",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "C|#",
++++    "base": "file://host/dir/file",
++++    "href": "file://host/C:#",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "port": "",
++++    "pathname": "/C:",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "C|?",
++++    "base": "file://host/dir/file",
++++    "href": "file://host/C:?",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "port": "",
++++    "pathname": "/C:",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "C|/",
++++    "base": "file://host/dir/file",
++++    "href": "file://host/C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "C|\n/",
++++    "base": "file://host/dir/file",
++++    "href": "file://host/C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "C|\\",
++++    "base": "file://host/dir/file",
++++    "href": "file://host/C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "C",
++++    "base": "file://host/dir/file",
++++    "href": "file://host/dir/C",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "port": "",
++++    "pathname": "/dir/C",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "C|a",
++++    "base": "file://host/dir/file",
++++    "href": "file://host/dir/C|a",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "port": "",
++++    "pathname": "/dir/C|a",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# Windows drive letter quirk in the file slash state",
++++  {
++++    "input": "/c:/foo/bar",
++++    "base": "file:///c:/baz/qux",
++++    "href": "file:///c:/foo/bar",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/c:/foo/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/c|/foo/bar",
++++    "base": "file:///c:/baz/qux",
++++    "href": "file:///c:/foo/bar",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/c:/foo/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:\\c:\\foo\\bar",
++++    "base": "file:///c:/baz/qux",
++++    "href": "file:///c:/foo/bar",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/c:/foo/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/c:/foo/bar",
++++    "base": "file://host/path",
++++    "href": "file://host/c:/foo/bar",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "port": "",
++++    "pathname": "/c:/foo/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# Do not drop the host in the presence of a drive letter",
++++  {
++++    "input": "file://example.net/C:/",
++++    "base": null,
++++    "href": "file://example.net/C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.net",
++++    "hostname": "example.net",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://1.2.3.4/C:/",
++++    "base": null,
++++    "href": "file://1.2.3.4/C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "1.2.3.4",
++++    "hostname": "1.2.3.4",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://[1::8]/C:/",
++++    "base": null,
++++    "href": "file://[1::8]/C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "[1::8]",
++++    "hostname": "[1::8]",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# Copy the host from the base URL in the following cases",
++++  {
++++    "input": "C|/",
++++    "base": "file://host/",
++++    "href": "file://host/C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/C:/",
++++    "base": "file://host/",
++++    "href": "file://host/C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:C:/",
++++    "base": "file://host/",
++++    "href": "file://host/C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:/C:/",
++++    "base": "file://host/",
++++    "href": "file://host/C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# Copy the empty host from the input in the following cases",
++++  {
++++    "input": "//C:/",
++++    "base": "file://host/",
++++    "href": "file:///C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://C:/",
++++    "base": "file://host/",
++++    "href": "file:///C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "///C:/",
++++    "base": "file://host/",
++++    "href": "file:///C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:///C:/",
++++    "base": "file://host/",
++++    "href": "file:///C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# Windows drive letter quirk (no host)",
++++  {
++++    "input": "file:/C|/",
++++    "base": null,
++++    "href": "file:///C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://C|/",
++++    "base": null,
++++    "href": "file:///C:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/C:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# file URLs without base URL by Rimas Misevičius",
++++  {
++++    "input": "file:",
++++    "base": null,
++++    "href": "file:///",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:?q=v",
++++    "base": null,
++++    "href": "file:///?q=v",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "?q=v",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:#frag",
++++    "base": null,
++++    "href": "file:///#frag",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": "#frag"
++++  },
++++  "# file: drive letter cases from https://crbug.com/1078698",
++++  {
++++    "input": "file:///Y:",
++++    "base": null,
++++    "href": "file:///Y:",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/Y:",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:///Y:/",
++++    "base": null,
++++    "href": "file:///Y:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/Y:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:///./Y",
++++    "base": null,
++++    "href": "file:///Y",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/Y",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:///./Y:",
++++    "base": null,
++++    "href": "file:///Y:",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/Y:",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "\\\\\\.\\Y:",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "non-opaque-path-base"
++++  },
++++  "# file: drive letter cases from https://crbug.com/1078698 but lowercased",
++++  {
++++    "input": "file:///y:",
++++    "base": null,
++++    "href": "file:///y:",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/y:",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:///y:/",
++++    "base": null,
++++    "href": "file:///y:/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/y:/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:///./y",
++++    "base": null,
++++    "href": "file:///y",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/y",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:///./y:",
++++    "base": null,
++++    "href": "file:///y:",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/y:",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "\\\\\\.\\y:",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "non-opaque-path-base"
++++  },
++++  "# Additional file URL tests for (https://github.com/whatwg/url/issues/405)",
++++  {
++++    "input": "file://localhost//a//../..//foo",
++++    "base": null,
++++    "href": "file://///foo",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "///foo",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://localhost////foo",
++++    "base": null,
++++    "href": "file://////foo",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "////foo",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:////foo",
++++    "base": null,
++++    "href": "file:////foo",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//foo",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:///one/two",
++++    "base": "file:///",
++++    "href": "file:///one/two",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/one/two",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:////one/two",
++++    "base": "file:///",
++++    "href": "file:////one/two",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//one/two",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "//one/two",
++++    "base": "file:///",
++++    "href": "file://one/two",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "one",
++++    "hostname": "one",
++++    "port": "",
++++    "pathname": "/two",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "///one/two",
++++    "base": "file:///",
++++    "href": "file:///one/two",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/one/two",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "////one/two",
++++    "base": "file:///",
++++    "href": "file:////one/two",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//one/two",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:///.//",
++++    "base": "file:////",
++++    "href": "file:////",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "File URL tests for https://github.com/whatwg/url/issues/549",
++++  {
++++    "input": "file:.//p",
++++    "base": null,
++++    "href": "file:////p",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//p",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file:/.//p",
++++    "base": null,
++++    "href": "file:////p",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//p",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# IPv6 tests",
++++  {
++++    "input": "http://[1:0::]",
++++    "base": "http://example.net/",
++++    "href": "http://[1::]/",
++++    "origin": "http://[1::]",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "[1::]",
++++    "hostname": "[1::]",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://[0:1:2:3:4:5:6:7:8]",
++++    "base": "http://example.net/",
++++    "failure": true
++++  },
++++  {
++++    "input": "https://[0::0::0]",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://[0:.0]",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://[0:0:]",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://[0:1:2:3:4:5:6:7.0.0.0.1]",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://[0:1.00.0.0.0]",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://[0:1.290.0.0.0]",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://[0:1.23.23]",
++++    "base": null,
++++    "failure": true
++++  },
++++  "# Empty host",
++++  {
++++    "input": "http://?",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://#",
++++    "base": null,
++++    "failure": true
++++  },
++++  "Port overflow (2^32 + 81)",
++++  {
++++    "input": "http://f:4294967377/c",
++++    "base": "http://example.org/",
++++    "failure": true
++++  },
++++  "Port overflow (2^64 + 81)",
++++  {
++++    "input": "http://f:18446744073709551697/c",
++++    "base": "http://example.org/",
++++    "failure": true
++++  },
++++  "Port overflow (2^128 + 81)",
++++  {
++++    "input": "http://f:340282366920938463463374607431768211537/c",
++++    "base": "http://example.org/",
++++    "failure": true
++++  },
++++  "# Non-special-URL path tests",
++++  {
++++    "input": "sc://ñ",
++++    "base": null,
++++    "href": "sc://%C3%B1",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "%C3%B1",
++++    "hostname": "%C3%B1",
++++    "port": "",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "sc://ñ?x",
++++    "base": null,
++++    "href": "sc://%C3%B1?x",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "%C3%B1",
++++    "hostname": "%C3%B1",
++++    "port": "",
++++    "pathname": "",
++++    "search": "?x",
++++    "hash": ""
++++  },
++++  {
++++    "input": "sc://ñ#x",
++++    "base": null,
++++    "href": "sc://%C3%B1#x",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "%C3%B1",
++++    "hostname": "%C3%B1",
++++    "port": "",
++++    "pathname": "",
++++    "search": "",
++++    "hash": "#x"
++++  },
++++  {
++++    "input": "#x",
++++    "base": "sc://ñ",
++++    "href": "sc://%C3%B1#x",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "%C3%B1",
++++    "hostname": "%C3%B1",
++++    "port": "",
++++    "pathname": "",
++++    "search": "",
++++    "hash": "#x"
++++  },
++++  {
++++    "input": "?x",
++++    "base": "sc://ñ",
++++    "href": "sc://%C3%B1?x",
++++    "origin": "null",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "%C3%B1",
++++    "hostname": "%C3%B1",
++++    "port": "",
++++    "pathname": "",
++++    "search": "?x",
++++    "hash": ""
++++  },
++++  {
++++    "input": "sc://?",
++++    "base": null,
++++    "href": "sc://?",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "sc://#",
++++    "base": null,
++++    "href": "sc://#",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "///",
++++    "base": "sc://x/",
++++    "href": "sc:///",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "////",
++++    "base": "sc://x/",
++++    "href": "sc:////",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "////x/",
++++    "base": "sc://x/",
++++    "href": "sc:////x/",
++++    "protocol": "sc:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//x/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "tftp://foobar.com/someconfig;mode=netascii",
++++    "base": null,
++++    "href": "tftp://foobar.com/someconfig;mode=netascii",
++++    "origin": "null",
++++    "protocol": "tftp:",
++++    "username": "",
++++    "password": "",
++++    "host": "foobar.com",
++++    "hostname": "foobar.com",
++++    "port": "",
++++    "pathname": "/someconfig;mode=netascii",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "telnet://user:pass@foobar.com:23/",
++++    "base": null,
++++    "href": "telnet://user:pass@foobar.com:23/",
++++    "origin": "null",
++++    "protocol": "telnet:",
++++    "username": "user",
++++    "password": "pass",
++++    "host": "foobar.com:23",
++++    "hostname": "foobar.com",
++++    "port": "23",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ut2004://10.10.10.10:7777/Index.ut2",
++++    "base": null,
++++    "href": "ut2004://10.10.10.10:7777/Index.ut2",
++++    "origin": "null",
++++    "protocol": "ut2004:",
++++    "username": "",
++++    "password": "",
++++    "host": "10.10.10.10:7777",
++++    "hostname": "10.10.10.10",
++++    "port": "7777",
++++    "pathname": "/Index.ut2",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "redis://foo:bar@somehost:6379/0?baz=bam&qux=baz",
++++    "base": null,
++++    "href": "redis://foo:bar@somehost:6379/0?baz=bam&qux=baz",
++++    "origin": "null",
++++    "protocol": "redis:",
++++    "username": "foo",
++++    "password": "bar",
++++    "host": "somehost:6379",
++++    "hostname": "somehost",
++++    "port": "6379",
++++    "pathname": "/0",
++++    "search": "?baz=bam&qux=baz",
++++    "hash": ""
++++  },
++++  {
++++    "input": "rsync://foo@host:911/sup",
++++    "base": null,
++++    "href": "rsync://foo@host:911/sup",
++++    "origin": "null",
++++    "protocol": "rsync:",
++++    "username": "foo",
++++    "password": "",
++++    "host": "host:911",
++++    "hostname": "host",
++++    "port": "911",
++++    "pathname": "/sup",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "git://github.com/foo/bar.git",
++++    "base": null,
++++    "href": "git://github.com/foo/bar.git",
++++    "origin": "null",
++++    "protocol": "git:",
++++    "username": "",
++++    "password": "",
++++    "host": "github.com",
++++    "hostname": "github.com",
++++    "port": "",
++++    "pathname": "/foo/bar.git",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "irc://myserver.com:6999/channel?passwd",
++++    "base": null,
++++    "href": "irc://myserver.com:6999/channel?passwd",
++++    "origin": "null",
++++    "protocol": "irc:",
++++    "username": "",
++++    "password": "",
++++    "host": "myserver.com:6999",
++++    "hostname": "myserver.com",
++++    "port": "6999",
++++    "pathname": "/channel",
++++    "search": "?passwd",
++++    "hash": ""
++++  },
++++  {
++++    "input": "dns://fw.example.org:9999/foo.bar.org?type=TXT",
++++    "base": null,
++++    "href": "dns://fw.example.org:9999/foo.bar.org?type=TXT",
++++    "origin": "null",
++++    "protocol": "dns:",
++++    "username": "",
++++    "password": "",
++++    "host": "fw.example.org:9999",
++++    "hostname": "fw.example.org",
++++    "port": "9999",
++++    "pathname": "/foo.bar.org",
++++    "search": "?type=TXT",
++++    "hash": ""
++++  },
++++  {
++++    "input": "ldap://localhost:389/ou=People,o=JNDITutorial",
++++    "base": null,
++++    "href": "ldap://localhost:389/ou=People,o=JNDITutorial",
++++    "origin": "null",
++++    "protocol": "ldap:",
++++    "username": "",
++++    "password": "",
++++    "host": "localhost:389",
++++    "hostname": "localhost",
++++    "port": "389",
++++    "pathname": "/ou=People,o=JNDITutorial",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "git+https://github.com/foo/bar",
++++    "base": null,
++++    "href": "git+https://github.com/foo/bar",
++++    "origin": "null",
++++    "protocol": "git+https:",
++++    "username": "",
++++    "password": "",
++++    "host": "github.com",
++++    "hostname": "github.com",
++++    "port": "",
++++    "pathname": "/foo/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "urn:ietf:rfc:2648",
++++    "base": null,
++++    "href": "urn:ietf:rfc:2648",
++++    "origin": "null",
++++    "protocol": "urn:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "ietf:rfc:2648",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "tag:joe@example.org,2001:foo/bar",
++++    "base": null,
++++    "href": "tag:joe@example.org,2001:foo/bar",
++++    "origin": "null",
++++    "protocol": "tag:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "joe@example.org,2001:foo/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Serialize /. in path",
++++  {
++++    "input": "non-spec:/.//",
++++    "base": null,
++++    "href": "non-spec:/.//",
++++    "protocol": "non-spec:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "non-spec:/..//",
++++    "base": null,
++++    "href": "non-spec:/.//",
++++    "protocol": "non-spec:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "non-spec:/a/..//",
++++    "base": null,
++++    "href": "non-spec:/.//",
++++    "protocol": "non-spec:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "non-spec:/.//path",
++++    "base": null,
++++    "href": "non-spec:/.//path",
++++    "protocol": "non-spec:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "non-spec:/..//path",
++++    "base": null,
++++    "href": "non-spec:/.//path",
++++    "protocol": "non-spec:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "non-spec:/a/..//path",
++++    "base": null,
++++    "href": "non-spec:/.//path",
++++    "protocol": "non-spec:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/.//path",
++++    "base": "non-spec:/p",
++++    "href": "non-spec:/.//path",
++++    "protocol": "non-spec:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/..//path",
++++    "base": "non-spec:/p",
++++    "href": "non-spec:/.//path",
++++    "protocol": "non-spec:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "..//path",
++++    "base": "non-spec:/p",
++++    "href": "non-spec:/.//path",
++++    "protocol": "non-spec:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "a/..//path",
++++    "base": "non-spec:/p",
++++    "href": "non-spec:/.//path",
++++    "protocol": "non-spec:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "",
++++    "base": "non-spec:/..//p",
++++    "href": "non-spec:/.//p",
++++    "protocol": "non-spec:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//p",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "path",
++++    "base": "non-spec:/..//p",
++++    "href": "non-spec:/.//path",
++++    "protocol": "non-spec:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "//path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Do not serialize /. in path",
++++  {
++++    "input": "../path",
++++    "base": "non-spec:/.//p",
++++    "href": "non-spec:/path",
++++    "protocol": "non-spec:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# percent encoded hosts in non-special-URLs",
++++  {
++++    "input": "non-special://%E2%80%A0/",
++++    "base": null,
++++    "href": "non-special://%E2%80%A0/",
++++    "protocol": "non-special:",
++++    "username": "",
++++    "password": "",
++++    "host": "%E2%80%A0",
++++    "hostname": "%E2%80%A0",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "non-special://H%4fSt/path",
++++    "base": null,
++++    "href": "non-special://H%4fSt/path",
++++    "protocol": "non-special:",
++++    "username": "",
++++    "password": "",
++++    "host": "H%4fSt",
++++    "hostname": "H%4fSt",
++++    "port": "",
++++    "pathname": "/path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "# IPv6 in non-special-URLs",
++++  {
++++    "input": "non-special://[1:2:0:0:5:0:0:0]/",
++++    "base": null,
++++    "href": "non-special://[1:2:0:0:5::]/",
++++    "protocol": "non-special:",
++++    "username": "",
++++    "password": "",
++++    "host": "[1:2:0:0:5::]",
++++    "hostname": "[1:2:0:0:5::]",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "non-special://[1:2:0:0:0:0:0:3]/",
++++    "base": null,
++++    "href": "non-special://[1:2::3]/",
++++    "protocol": "non-special:",
++++    "username": "",
++++    "password": "",
++++    "host": "[1:2::3]",
++++    "hostname": "[1:2::3]",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "non-special://[1:2::3]:80/",
++++    "base": null,
++++    "href": "non-special://[1:2::3]:80/",
++++    "protocol": "non-special:",
++++    "username": "",
++++    "password": "",
++++    "host": "[1:2::3]:80",
++++    "hostname": "[1:2::3]",
++++    "port": "80",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "non-special://[:80/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "blob:https://example.com:443/",
++++    "base": null,
++++    "href": "blob:https://example.com:443/",
++++    "origin": "https://example.com",
++++    "protocol": "blob:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "https://example.com:443/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "blob:http://example.org:88/",
++++    "base": null,
++++    "href": "blob:http://example.org:88/",
++++    "origin": "http://example.org:88",
++++    "protocol": "blob:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "http://example.org:88/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "blob:d3958f5c-0777-0845-9dcf-2cb28783acaf",
++++    "base": null,
++++    "href": "blob:d3958f5c-0777-0845-9dcf-2cb28783acaf",
++++    "origin": "null",
++++    "protocol": "blob:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "d3958f5c-0777-0845-9dcf-2cb28783acaf",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "blob:",
++++    "base": null,
++++    "href": "blob:",
++++    "origin": "null",
++++    "protocol": "blob:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "blob: in blob:",
++++  {
++++    "input": "blob:blob:",
++++    "base": null,
++++    "href": "blob:blob:",
++++    "origin": "null",
++++    "protocol": "blob:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "blob:",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "blob:blob:https://example.org/",
++++    "base": null,
++++    "href": "blob:blob:https://example.org/",
++++    "origin": "null",
++++    "protocol": "blob:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "blob:https://example.org/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Non-http(s): in blob:",
++++  {
++++    "input": "blob:about:blank",
++++    "base": null,
++++    "href": "blob:about:blank",
++++    "origin": "null",
++++    "protocol": "blob:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "about:blank",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "blob:file://host/path",
++++    "base": null,
++++    "href": "blob:file://host/path",
++++    "protocol": "blob:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "file://host/path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "blob:ftp://host/path",
++++    "base": null,
++++    "href": "blob:ftp://host/path",
++++    "origin": "null",
++++    "protocol": "blob:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "ftp://host/path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "blob:ws://example.org/",
++++    "base": null,
++++    "href": "blob:ws://example.org/",
++++    "origin": "null",
++++    "protocol": "blob:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "ws://example.org/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "blob:wss://example.org/",
++++    "base": null,
++++    "href": "blob:wss://example.org/",
++++    "origin": "null",
++++    "protocol": "blob:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "wss://example.org/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Percent-encoded http: in blob:",
++++  {
++++    "input": "blob:http%3a//example.org/",
++++    "base": null,
++++    "href": "blob:http%3a//example.org/",
++++    "origin": "null",
++++    "protocol": "blob:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "http%3a//example.org/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Invalid IPv4 radix digits",
++++  {
++++    "input": "http://0x7f.0.0.0x7g",
++++    "base": null,
++++    "href": "http://0x7f.0.0.0x7g/",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "0x7f.0.0.0x7g",
++++    "hostname": "0x7f.0.0.0x7g",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://0X7F.0.0.0X7G",
++++    "base": null,
++++    "href": "http://0x7f.0.0.0x7g/",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "0x7f.0.0.0x7g",
++++    "hostname": "0x7f.0.0.0x7g",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Invalid IPv4 portion of IPv6 address",
++++  {
++++    "input": "http://[::127.0.0.0.1]",
++++    "base": null,
++++    "failure": true
++++  },
++++  "Uncompressed IPv6 addresses with 0",
++++  {
++++    "input": "http://[0:1:0:1:0:1:0:1]",
++++    "base": null,
++++    "href": "http://[0:1:0:1:0:1:0:1]/",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "[0:1:0:1:0:1:0:1]",
++++    "hostname": "[0:1:0:1:0:1:0:1]",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://[1:0:1:0:1:0:1:0]",
++++    "base": null,
++++    "href": "http://[1:0:1:0:1:0:1:0]/",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "[1:0:1:0:1:0:1:0]",
++++    "hostname": "[1:0:1:0:1:0:1:0]",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Percent-encoded query and fragment",
++++  {
++++    "input": "http://example.org/test?\u0022",
++++    "base": null,
++++    "href": "http://example.org/test?%22",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?%22",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.org/test?\u0023",
++++    "base": null,
++++    "href": "http://example.org/test?#",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.org/test?\u003C",
++++    "base": null,
++++    "href": "http://example.org/test?%3C",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?%3C",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.org/test?\u003E",
++++    "base": null,
++++    "href": "http://example.org/test?%3E",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?%3E",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.org/test?\u2323",
++++    "base": null,
++++    "href": "http://example.org/test?%E2%8C%A3",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?%E2%8C%A3",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.org/test?%23%23",
++++    "base": null,
++++    "href": "http://example.org/test?%23%23",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?%23%23",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.org/test?%GH",
++++    "base": null,
++++    "href": "http://example.org/test?%GH",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?%GH",
++++    "hash": ""
++++  },
++++  {
++++    "input": "http://example.org/test?a#%EF",
++++    "base": null,
++++    "href": "http://example.org/test?a#%EF",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?a",
++++    "hash": "#%EF"
++++  },
++++  {
++++    "input": "http://example.org/test?a#%GH",
++++    "base": null,
++++    "href": "http://example.org/test?a#%GH",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?a",
++++    "hash": "#%GH"
++++  },
++++  "URLs that require a non-about:blank base. (Also serve as invalid base tests.)",
++++  {
++++    "input": "a",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "non-opaque-path-base"
++++  },
++++  {
++++    "input": "a/",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "non-opaque-path-base"
++++  },
++++  {
++++    "input": "a//",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "non-opaque-path-base"
++++  },
++++  "Bases that don't fail to parse but fail to be bases",
++++  {
++++    "input": "test-a-colon.html",
++++    "base": "a:",
++++    "failure": true
++++  },
++++  {
++++    "input": "test-a-colon-b.html",
++++    "base": "a:b",
++++    "failure": true
++++  },
++++  "Other base URL tests, that must succeed",
++++  {
++++    "input": "test-a-colon-slash.html",
++++    "base": "a:/",
++++    "href": "a:/test-a-colon-slash.html",
++++    "protocol": "a:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test-a-colon-slash.html",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "test-a-colon-slash-slash.html",
++++    "base": "a://",
++++    "href": "a:///test-a-colon-slash-slash.html",
++++    "protocol": "a:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test-a-colon-slash-slash.html",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "test-a-colon-slash-b.html",
++++    "base": "a:/b",
++++    "href": "a:/test-a-colon-slash-b.html",
++++    "protocol": "a:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test-a-colon-slash-b.html",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "test-a-colon-slash-slash-b.html",
++++    "base": "a://b",
++++    "href": "a://b/test-a-colon-slash-slash-b.html",
++++    "protocol": "a:",
++++    "username": "",
++++    "password": "",
++++    "host": "b",
++++    "hostname": "b",
++++    "port": "",
++++    "pathname": "/test-a-colon-slash-slash-b.html",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Null code point in fragment",
++++  {
++++    "input": "http://example.org/test?a#b\u0000c",
++++    "base": null,
++++    "href": "http://example.org/test?a#b%00c",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?a",
++++    "hash": "#b%00c"
++++  },
++++  {
++++    "input": "non-spec://example.org/test?a#b\u0000c",
++++    "base": null,
++++    "href": "non-spec://example.org/test?a#b%00c",
++++    "protocol": "non-spec:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?a",
++++    "hash": "#b%00c"
++++  },
++++  {
++++    "input": "non-spec:/test?a#b\u0000c",
++++    "base": null,
++++    "href": "non-spec:/test?a#b%00c",
++++    "protocol": "non-spec:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "?a",
++++    "hash": "#b%00c"
++++  },
++++  "First scheme char - not allowed: https://github.com/whatwg/url/issues/464",
++++  {
++++    "input": "10.0.0.7:8080/foo.html",
++++    "base": "file:///some/dir/bar.html",
++++    "href": "file:///some/dir/10.0.0.7:8080/foo.html",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/some/dir/10.0.0.7:8080/foo.html",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Subsequent scheme chars - not allowed",
++++  {
++++    "input": "a!@$*=/foo.html",
++++    "base": "file:///some/dir/bar.html",
++++    "href": "file:///some/dir/a!@$*=/foo.html",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/some/dir/a!@$*=/foo.html",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "First and subsequent scheme chars - allowed",
++++  {
++++    "input": "a1234567890-+.:foo/bar",
++++    "base": "http://example.com/dir/file",
++++    "href": "a1234567890-+.:foo/bar",
++++    "protocol": "a1234567890-+.:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "foo/bar",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "IDNA ignored code points in file URLs hosts",
++++  {
++++    "input": "file://a\u00ADb/p",
++++    "base": null,
++++    "href": "file://ab/p",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "ab",
++++    "hostname": "ab",
++++    "port": "",
++++    "pathname": "/p",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "file://a%C2%ADb/p",
++++    "base": null,
++++    "href": "file://ab/p",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "ab",
++++    "hostname": "ab",
++++    "port": "",
++++    "pathname": "/p",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "IDNA hostnames which get mapped to 'localhost'",
++++  {
++++    "input": "file://loC𝐀𝐋𝐇𝐨𝐬𝐭/usr/bin",
++++    "base": null,
++++    "href": "file:///usr/bin",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/usr/bin",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Empty host after the domain to ASCII",
++++  {
++++    "input": "file://\u00ad/p",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "file://%C2%AD/p",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "file://xn--/p",
++++    "base": null,
++++    "failure": true
++++  },
++++  "https://bugzilla.mozilla.org/show_bug.cgi?id=1647058",
++++  {
++++    "input": "#link",
++++    "base": "https://example.org/##link",
++++    "href": "https://example.org/#link",
++++    "protocol": "https:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": "#link"
++++  },
++++  "UTF-8 percent-encode of C0 control percent-encode set and supersets",
++++  {
++++    "input": "non-special:cannot-be-a-base-url-\u0000\u0001\u001F\u001E\u007E\u007F\u0080",
++++    "base": null,
++++    "hash": "",
++++    "host": "",
++++    "hostname": "",
++++    "href": "non-special:cannot-be-a-base-url-%00%01%1F%1E~%7F%C2%80",
++++    "origin": "null",
++++    "password": "",
++++    "pathname": "cannot-be-a-base-url-%00%01%1F%1E~%7F%C2%80",
++++    "port": "",
++++    "protocol": "non-special:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "https://www.example.com/path{\u007Fpath.html?query'\u007F=query#fragment<\u007Ffragment",
++++    "base": null,
++++    "hash": "#fragment%3C%7Ffragment",
++++    "host": "www.example.com",
++++    "hostname": "www.example.com",
++++    "href": "https://www.example.com/path%7B%7Fpath.html?query%27%7F=query#fragment%3C%7Ffragment",
++++    "origin": "https://www.example.com",
++++    "password": "",
++++    "pathname": "/path%7B%7Fpath.html",
++++    "port": "",
++++    "protocol": "https:",
++++    "search": "?query%27%7F=query",
++++    "username": ""
++++  },
++++  {
++++    "input": "https://user:pass[\u007F@foo/bar",
++++    "base": "http://example.org",
++++    "hash": "",
++++    "host": "foo",
++++    "hostname": "foo",
++++    "href": "https://user:pass%5B%7F@foo/bar",
++++    "origin": "https://foo",
++++    "password": "pass%5B%7F",
++++    "pathname": "/bar",
++++    "port": "",
++++    "protocol": "https:",
++++    "search": "",
++++    "username": "user"
++++  },
++++  "Tests for the distinct percent-encode sets",
++++  {
++++    "input": "foo:// !\"$%&'()*+,-.;<=>@[\\]^_`{|}~@host/",
++++    "base": null,
++++    "hash": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "href": "foo://%20!%22$%&'()*+,-.%3B%3C%3D%3E%40%5B%5C%5D%5E_%60%7B%7C%7D~@host/",
++++    "origin": "null",
++++    "password": "",
++++    "pathname": "/",
++++    "port":"",
++++    "protocol": "foo:",
++++    "search": "",
++++    "username": "%20!%22$%&'()*+,-.%3B%3C%3D%3E%40%5B%5C%5D%5E_%60%7B%7C%7D~"
++++  },
++++  {
++++    "input": "wss:// !\"$%&'()*+,-.;<=>@[]^_`{|}~@host/",
++++    "base": null,
++++    "hash": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "href": "wss://%20!%22$%&'()*+,-.%3B%3C%3D%3E%40%5B%5D%5E_%60%7B%7C%7D~@host/",
++++    "origin": "wss://host",
++++    "password": "",
++++    "pathname": "/",
++++    "port":"",
++++    "protocol": "wss:",
++++    "search": "",
++++    "username": "%20!%22$%&'()*+,-.%3B%3C%3D%3E%40%5B%5D%5E_%60%7B%7C%7D~"
++++  },
++++  {
++++    "input": "foo://joe: !\"$%&'()*+,-.:;<=>@[\\]^_`{|}~@host/",
++++    "base": null,
++++    "hash": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "href": "foo://joe:%20!%22$%&'()*+,-.%3A%3B%3C%3D%3E%40%5B%5C%5D%5E_%60%7B%7C%7D~@host/",
++++    "origin": "null",
++++    "password": "%20!%22$%&'()*+,-.%3A%3B%3C%3D%3E%40%5B%5C%5D%5E_%60%7B%7C%7D~",
++++    "pathname": "/",
++++    "port":"",
++++    "protocol": "foo:",
++++    "search": "",
++++    "username": "joe"
++++  },
++++  {
++++    "input": "wss://joe: !\"$%&'()*+,-.:;<=>@[]^_`{|}~@host/",
++++    "base": null,
++++    "hash": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "href": "wss://joe:%20!%22$%&'()*+,-.%3A%3B%3C%3D%3E%40%5B%5D%5E_%60%7B%7C%7D~@host/",
++++    "origin": "wss://host",
++++    "password": "%20!%22$%&'()*+,-.%3A%3B%3C%3D%3E%40%5B%5D%5E_%60%7B%7C%7D~",
++++    "pathname": "/",
++++    "port":"",
++++    "protocol": "wss:",
++++    "search": "",
++++    "username": "joe"
++++  },
++++  {
++++    "input": "foo://!\"$%&'()*+,-.;=_`{}~/",
++++    "base": null,
++++    "hash": "",
++++    "host": "!\"$%&'()*+,-.;=_`{}~",
++++    "hostname": "!\"$%&'()*+,-.;=_`{}~",
++++    "href":"foo://!\"$%&'()*+,-.;=_`{}~/",
++++    "origin": "null",
++++    "password": "",
++++    "pathname": "/",
++++    "port":"",
++++    "protocol": "foo:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "wss://!\"$&'()*+,-.;=_`{}~/",
++++    "base": null,
++++    "hash": "",
++++    "host": "!\"$&'()*+,-.;=_`{}~",
++++    "hostname": "!\"$&'()*+,-.;=_`{}~",
++++    "href":"wss://!\"$&'()*+,-.;=_`{}~/",
++++    "origin": "wss://!\"$&'()*+,-.;=_`{}~",
++++    "password": "",
++++    "pathname": "/",
++++    "port":"",
++++    "protocol": "wss:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "foo://host/ !\"$%&'()*+,-./:;<=>@[\\]^_`{|}~",
++++    "base": null,
++++    "hash": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "href": "foo://host/%20!%22$%&'()*+,-./:;%3C=%3E@[\\]^_%60%7B|%7D~",
++++    "origin": "null",
++++    "password": "",
++++    "pathname": "/%20!%22$%&'()*+,-./:;%3C=%3E@[\\]^_%60%7B|%7D~",
++++    "port":"",
++++    "protocol": "foo:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "wss://host/ !\"$%&'()*+,-./:;<=>@[\\]^_`{|}~",
++++    "base": null,
++++    "hash": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "href": "wss://host/%20!%22$%&'()*+,-./:;%3C=%3E@[/]^_%60%7B|%7D~",
++++    "origin": "wss://host",
++++    "password": "",
++++    "pathname": "/%20!%22$%&'()*+,-./:;%3C=%3E@[/]^_%60%7B|%7D~",
++++    "port":"",
++++    "protocol": "wss:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "foo://host/dir/? !\"$%&'()*+,-./:;<=>?@[\\]^_`{|}~",
++++    "base": null,
++++    "hash": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "href": "foo://host/dir/?%20!%22$%&'()*+,-./:;%3C=%3E?@[\\]^_`{|}~",
++++    "origin": "null",
++++    "password": "",
++++    "pathname": "/dir/",
++++    "port":"",
++++    "protocol": "foo:",
++++    "search": "?%20!%22$%&'()*+,-./:;%3C=%3E?@[\\]^_`{|}~",
++++    "username": ""
++++  },
++++  {
++++    "input": "wss://host/dir/? !\"$%&'()*+,-./:;<=>?@[\\]^_`{|}~",
++++    "base": null,
++++    "hash": "",
++++    "host": "host",
++++    "hostname": "host",
++++    "href": "wss://host/dir/?%20!%22$%&%27()*+,-./:;%3C=%3E?@[\\]^_`{|}~",
++++    "origin": "wss://host",
++++    "password": "",
++++    "pathname": "/dir/",
++++    "port":"",
++++    "protocol": "wss:",
++++    "search": "?%20!%22$%&%27()*+,-./:;%3C=%3E?@[\\]^_`{|}~",
++++    "username": ""
++++  },
++++  {
++++    "input": "foo://host/dir/# !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",
++++    "base": null,
++++    "hash": "#%20!%22#$%&'()*+,-./:;%3C=%3E?@[\\]^_%60{|}~",
++++    "host": "host",
++++    "hostname": "host",
++++    "href": "foo://host/dir/#%20!%22#$%&'()*+,-./:;%3C=%3E?@[\\]^_%60{|}~",
++++    "origin": "null",
++++    "password": "",
++++    "pathname": "/dir/",
++++    "port":"",
++++    "protocol": "foo:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "wss://host/dir/# !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",
++++    "base": null,
++++    "hash": "#%20!%22#$%&'()*+,-./:;%3C=%3E?@[\\]^_%60{|}~",
++++    "host": "host",
++++    "hostname": "host",
++++    "href": "wss://host/dir/#%20!%22#$%&'()*+,-./:;%3C=%3E?@[\\]^_%60{|}~",
++++    "origin": "wss://host",
++++    "password": "",
++++    "pathname": "/dir/",
++++    "port":"",
++++    "protocol": "wss:",
++++    "search": "",
++++    "username": ""
++++  },
++++  "Ensure that input schemes are not ignored when resolving non-special URLs",
++++  {
++++    "input": "abc:rootless",
++++    "base": "abc://host/path",
++++    "hash": "",
++++    "host": "",
++++    "hostname": "",
++++    "href":"abc:rootless",
++++    "password": "",
++++    "pathname": "rootless",
++++    "port":"",
++++    "protocol": "abc:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "abc:rootless",
++++    "base": "abc:/path",
++++    "hash": "",
++++    "host": "",
++++    "hostname": "",
++++    "href":"abc:rootless",
++++    "password": "",
++++    "pathname": "rootless",
++++    "port":"",
++++    "protocol": "abc:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "abc:rootless",
++++    "base": "abc:path",
++++    "hash": "",
++++    "host": "",
++++    "hostname": "",
++++    "href":"abc:rootless",
++++    "password": "",
++++    "pathname": "rootless",
++++    "port":"",
++++    "protocol": "abc:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "abc:/rooted",
++++    "base": "abc://host/path",
++++    "hash": "",
++++    "host": "",
++++    "hostname": "",
++++    "href":"abc:/rooted",
++++    "password": "",
++++    "pathname": "/rooted",
++++    "port":"",
++++    "protocol": "abc:",
++++    "search": "",
++++    "username": ""
++++  },
++++  "Empty query and fragment with blank should throw an error",
++++  {
++++    "input": "#",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "any-base"
++++  },
++++  {
++++    "input": "?",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "non-opaque-path-base"
++++  },
++++  "Last component looks like a number, but not valid IPv4",
++++  {
++++    "input": "http://1.2.3.4.5",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://1.2.3.4.5.",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://0..0x300/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://0..0x300./",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://256.256.256.256.256",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://256.256.256.256.256.",
++++    "base": "http://other.com/",
++++    "failure": true
++++  },
++++  {
++++    "input": "http://1.2.3.08",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://1.2.3.08.",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://1.2.3.09",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://09.2.3.4",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://09.2.3.4.",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://01.2.3.4.5",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://01.2.3.4.5.",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://0x100.2.3.4",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://0x100.2.3.4.",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://0x1.2.3.4.5",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://0x1.2.3.4.5.",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://foo.1.2.3.4",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://foo.1.2.3.4.",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://foo.2.3.4",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://foo.2.3.4.",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://foo.09",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://foo.09.",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://foo.0x4",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://foo.0x4.",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://foo.09..",
++++    "base": null,
++++    "hash": "",
++++    "host": "foo.09..",
++++    "hostname": "foo.09..",
++++    "href":"http://foo.09../",
++++    "password": "",
++++    "pathname": "/",
++++    "port":"",
++++    "protocol": "http:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "http://0999999999999999999/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://foo.0x",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://foo.0XFfFfFfFfFfFfFfFfFfAcE123",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "http://💩.123/",
++++    "base": null,
++++    "failure": true
++++  },
++++  "U+0000 and U+FFFF in various places",
++++  {
++++    "input": "https://\u0000y",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://x/\u0000y",
++++    "base": null,
++++    "hash": "",
++++    "host": "x",
++++    "hostname": "x",
++++    "href": "https://x/%00y",
++++    "password": "",
++++    "pathname": "/%00y",
++++    "port": "",
++++    "protocol": "https:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "https://x/?\u0000y",
++++    "base": null,
++++    "hash": "",
++++    "host": "x",
++++    "hostname": "x",
++++    "href": "https://x/?%00y",
++++    "password": "",
++++    "pathname": "/",
++++    "port": "",
++++    "protocol": "https:",
++++    "search": "?%00y",
++++    "username": ""
++++  },
++++  {
++++    "input": "https://x/?#\u0000y",
++++    "base": null,
++++    "hash": "#%00y",
++++    "host": "x",
++++    "hostname": "x",
++++    "href": "https://x/?#%00y",
++++    "password": "",
++++    "pathname": "/",
++++    "port": "",
++++    "protocol": "https:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "https://\uFFFFy",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://x/\uFFFFy",
++++    "base": null,
++++    "hash": "",
++++    "host": "x",
++++    "hostname": "x",
++++    "href": "https://x/%EF%BF%BFy",
++++    "password": "",
++++    "pathname": "/%EF%BF%BFy",
++++    "port": "",
++++    "protocol": "https:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "https://x/?\uFFFFy",
++++    "base": null,
++++    "hash": "",
++++    "host": "x",
++++    "hostname": "x",
++++    "href": "https://x/?%EF%BF%BFy",
++++    "password": "",
++++    "pathname": "/",
++++    "port": "",
++++    "protocol": "https:",
++++    "search": "?%EF%BF%BFy",
++++    "username": ""
++++  },
++++  {
++++    "input": "https://x/?#\uFFFFy",
++++    "base": null,
++++    "hash": "#%EF%BF%BFy",
++++    "host": "x",
++++    "hostname": "x",
++++    "href": "https://x/?#%EF%BF%BFy",
++++    "password": "",
++++    "pathname": "/",
++++    "port": "",
++++    "protocol": "https:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "non-special:\u0000y",
++++    "base": null,
++++    "hash": "",
++++    "host": "",
++++    "hostname": "",
++++    "href": "non-special:%00y",
++++    "password": "",
++++    "pathname": "%00y",
++++    "port": "",
++++    "protocol": "non-special:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "non-special:x/\u0000y",
++++    "base": null,
++++    "hash": "",
++++    "host": "",
++++    "hostname": "",
++++    "href": "non-special:x/%00y",
++++    "password": "",
++++    "pathname": "x/%00y",
++++    "port": "",
++++    "protocol": "non-special:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "non-special:x/?\u0000y",
++++    "base": null,
++++    "hash": "",
++++    "host": "",
++++    "hostname": "",
++++    "href": "non-special:x/?%00y",
++++    "password": "",
++++    "pathname": "x/",
++++    "port": "",
++++    "protocol": "non-special:",
++++    "search": "?%00y",
++++    "username": ""
++++  },
++++  {
++++    "input": "non-special:x/?#\u0000y",
++++    "base": null,
++++    "hash": "#%00y",
++++    "host": "",
++++    "hostname": "",
++++    "href": "non-special:x/?#%00y",
++++    "password": "",
++++    "pathname": "x/",
++++    "port": "",
++++    "protocol": "non-special:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "non-special:\uFFFFy",
++++    "base": null,
++++    "hash": "",
++++    "host": "",
++++    "hostname": "",
++++    "href": "non-special:%EF%BF%BFy",
++++    "password": "",
++++    "pathname": "%EF%BF%BFy",
++++    "port": "",
++++    "protocol": "non-special:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "non-special:x/\uFFFFy",
++++    "base": null,
++++    "hash": "",
++++    "host": "",
++++    "hostname": "",
++++    "href": "non-special:x/%EF%BF%BFy",
++++    "password": "",
++++    "pathname": "x/%EF%BF%BFy",
++++    "port": "",
++++    "protocol": "non-special:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "non-special:x/?\uFFFFy",
++++    "base": null,
++++    "hash": "",
++++    "host": "",
++++    "hostname": "",
++++    "href": "non-special:x/?%EF%BF%BFy",
++++    "password": "",
++++    "pathname": "x/",
++++    "port": "",
++++    "protocol": "non-special:",
++++    "search": "?%EF%BF%BFy",
++++    "username": ""
++++  },
++++  {
++++    "input": "non-special:x/?#\uFFFFy",
++++    "base": null,
++++    "hash": "#%EF%BF%BFy",
++++    "host": "",
++++    "hostname": "",
++++    "href": "non-special:x/?#%EF%BF%BFy",
++++    "password": "",
++++    "pathname": "x/",
++++    "port": "",
++++    "protocol": "non-special:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "",
++++    "base": null,
++++    "failure": true,
++++    "relativeTo": "non-opaque-path-base"
++++  },
++++  {
++++    "input": "https://example.com/\"quoted\"",
++++    "base": null,
++++    "hash": "",
++++    "host": "example.com",
++++    "hostname": "example.com",
++++    "href": "https://example.com/%22quoted%22",
++++    "origin": "https://example.com",
++++    "password": "",
++++    "pathname": "/%22quoted%22",
++++    "port": "",
++++    "protocol": "https:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "input": "https://a%C2%ADb/",
++++    "base": null,
++++    "hash": "",
++++    "host": "ab",
++++    "hostname": "ab",
++++    "href": "https://ab/",
++++    "origin": "https://ab",
++++    "password": "",
++++    "pathname": "/",
++++    "port": "",
++++    "protocol": "https:",
++++    "search": "",
++++    "username": ""
++++  },
++++  {
++++    "comment": "Empty host after domain to ASCII",
++++    "input": "https://\u00AD/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://%C2%AD/",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "https://xn--/",
++++    "base": null,
++++    "failure": true
++++  },
++++  "Non-special schemes that some implementations might incorrectly treat as special",
++++  {
++++    "input": "data://example.com:8080/pathname?search#hash",
++++    "base": null,
++++    "href": "data://example.com:8080/pathname?search#hash",
++++    "origin": "null",
++++    "protocol": "data:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com:8080",
++++    "hostname": "example.com",
++++    "port": "8080",
++++    "pathname": "/pathname",
++++    "search": "?search",
++++    "hash": "#hash"
++++  },
++++  {
++++    "input": "data:///test",
++++    "base": null,
++++    "href": "data:///test",
++++    "origin": "null",
++++    "protocol": "data:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "data://test/a/../b",
++++    "base": null,
++++    "href": "data://test/b",
++++    "origin": "null",
++++    "protocol": "data:",
++++    "username": "",
++++    "password": "",
++++    "host": "test",
++++    "hostname": "test",
++++    "port": "",
++++    "pathname": "/b",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "data://:443",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "data://test:test",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "data://[:1]",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "javascript://example.com:8080/pathname?search#hash",
++++    "base": null,
++++    "href": "javascript://example.com:8080/pathname?search#hash",
++++    "origin": "null",
++++    "protocol": "javascript:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com:8080",
++++    "hostname": "example.com",
++++    "port": "8080",
++++    "pathname": "/pathname",
++++    "search": "?search",
++++    "hash": "#hash"
++++  },
++++  {
++++    "input": "javascript:///test",
++++    "base": null,
++++    "href": "javascript:///test",
++++    "origin": "null",
++++    "protocol": "javascript:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "javascript://test/a/../b",
++++    "base": null,
++++    "href": "javascript://test/b",
++++    "origin": "null",
++++    "protocol": "javascript:",
++++    "username": "",
++++    "password": "",
++++    "host": "test",
++++    "hostname": "test",
++++    "port": "",
++++    "pathname": "/b",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "javascript://:443",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "javascript://test:test",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "javascript://[:1]",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "mailto://example.com:8080/pathname?search#hash",
++++    "base": null,
++++    "href": "mailto://example.com:8080/pathname?search#hash",
++++    "origin": "null",
++++    "protocol": "mailto:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com:8080",
++++    "hostname": "example.com",
++++    "port": "8080",
++++    "pathname": "/pathname",
++++    "search": "?search",
++++    "hash": "#hash"
++++  },
++++  {
++++    "input": "mailto:///test",
++++    "base": null,
++++    "href": "mailto:///test",
++++    "origin": "null",
++++    "protocol": "mailto:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "mailto://test/a/../b",
++++    "base": null,
++++    "href": "mailto://test/b",
++++    "origin": "null",
++++    "protocol": "mailto:",
++++    "username": "",
++++    "password": "",
++++    "host": "test",
++++    "hostname": "test",
++++    "port": "",
++++    "pathname": "/b",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "mailto://:443",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "mailto://test:test",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "mailto://[:1]",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "intent://example.com:8080/pathname?search#hash",
++++    "base": null,
++++    "href": "intent://example.com:8080/pathname?search#hash",
++++    "origin": "null",
++++    "protocol": "intent:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com:8080",
++++    "hostname": "example.com",
++++    "port": "8080",
++++    "pathname": "/pathname",
++++    "search": "?search",
++++    "hash": "#hash"
++++  },
++++  {
++++    "input": "intent:///test",
++++    "base": null,
++++    "href": "intent:///test",
++++    "origin": "null",
++++    "protocol": "intent:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "intent://test/a/../b",
++++    "base": null,
++++    "href": "intent://test/b",
++++    "origin": "null",
++++    "protocol": "intent:",
++++    "username": "",
++++    "password": "",
++++    "host": "test",
++++    "hostname": "test",
++++    "port": "",
++++    "pathname": "/b",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "intent://:443",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "intent://test:test",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "intent://[:1]",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "urn://example.com:8080/pathname?search#hash",
++++    "base": null,
++++    "href": "urn://example.com:8080/pathname?search#hash",
++++    "origin": "null",
++++    "protocol": "urn:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com:8080",
++++    "hostname": "example.com",
++++    "port": "8080",
++++    "pathname": "/pathname",
++++    "search": "?search",
++++    "hash": "#hash"
++++  },
++++  {
++++    "input": "urn:///test",
++++    "base": null,
++++    "href": "urn:///test",
++++    "origin": "null",
++++    "protocol": "urn:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "urn://test/a/../b",
++++    "base": null,
++++    "href": "urn://test/b",
++++    "origin": "null",
++++    "protocol": "urn:",
++++    "username": "",
++++    "password": "",
++++    "host": "test",
++++    "hostname": "test",
++++    "port": "",
++++    "pathname": "/b",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "urn://:443",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "urn://test:test",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "urn://[:1]",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "turn://example.com:8080/pathname?search#hash",
++++    "base": null,
++++    "href": "turn://example.com:8080/pathname?search#hash",
++++    "origin": "null",
++++    "protocol": "turn:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com:8080",
++++    "hostname": "example.com",
++++    "port": "8080",
++++    "pathname": "/pathname",
++++    "search": "?search",
++++    "hash": "#hash"
++++  },
++++  {
++++    "input": "turn:///test",
++++    "base": null,
++++    "href": "turn:///test",
++++    "origin": "null",
++++    "protocol": "turn:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "turn://test/a/../b",
++++    "base": null,
++++    "href": "turn://test/b",
++++    "origin": "null",
++++    "protocol": "turn:",
++++    "username": "",
++++    "password": "",
++++    "host": "test",
++++    "hostname": "test",
++++    "port": "",
++++    "pathname": "/b",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "turn://:443",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "turn://test:test",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "turn://[:1]",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "stun://example.com:8080/pathname?search#hash",
++++    "base": null,
++++    "href": "stun://example.com:8080/pathname?search#hash",
++++    "origin": "null",
++++    "protocol": "stun:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.com:8080",
++++    "hostname": "example.com",
++++    "port": "8080",
++++    "pathname": "/pathname",
++++    "search": "?search",
++++    "hash": "#hash"
++++  },
++++  {
++++    "input": "stun:///test",
++++    "base": null,
++++    "href": "stun:///test",
++++    "origin": "null",
++++    "protocol": "stun:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/test",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "stun://test/a/../b",
++++    "base": null,
++++    "href": "stun://test/b",
++++    "origin": "null",
++++    "protocol": "stun:",
++++    "username": "",
++++    "password": "",
++++    "host": "test",
++++    "hostname": "test",
++++    "port": "",
++++    "pathname": "/b",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "stun://:443",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "stun://test:test",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "stun://[:1]",
++++    "base": null,
++++    "failure": true
++++  },
++++  {
++++    "input": "w://x:0",
++++    "base": null,
++++    "href": "w://x:0",
++++    "origin": "null",
++++    "protocol": "w:",
++++    "username": "",
++++    "password": "",
++++    "host": "x:0",
++++    "hostname": "x",
++++    "port": "0",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "west://x:0",
++++    "base": null,
++++    "href": "west://x:0",
++++    "origin": "null",
++++    "protocol": "west:",
++++    "username": "",
++++    "password": "",
++++    "host": "x:0",
++++    "hostname": "x",
++++    "port": "0",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "android://x:0/a",
++++    "base": null,
++++    "href": "android://x:0/a",
++++    "origin": "null",
++++    "protocol": "android:",
++++    "username": "",
++++    "password": "",
++++    "host": "x:0",
++++    "hostname": "x",
++++    "port": "0",
++++    "pathname": "/a",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "drivefs://x:0/a",
++++    "base": null,
++++    "href": "drivefs://x:0/a",
++++    "origin": "null",
++++    "protocol": "drivefs:",
++++    "username": "",
++++    "password": "",
++++    "host": "x:0",
++++    "hostname": "x",
++++    "port": "0",
++++    "pathname": "/a",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "chromeos-steam://x:0/a",
++++    "base": null,
++++    "href": "chromeos-steam://x:0/a",
++++    "origin": "null",
++++    "protocol": "chromeos-steam:",
++++    "username": "",
++++    "password": "",
++++    "host": "x:0",
++++    "hostname": "x",
++++    "port": "0",
++++    "pathname": "/a",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "steam://x:0/a",
++++    "base": null,
++++    "href": "steam://x:0/a",
++++    "origin": "null",
++++    "protocol": "steam:",
++++    "username": "",
++++    "password": "",
++++    "host": "x:0",
++++    "hostname": "x",
++++    "port": "0",
++++    "pathname": "/a",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "materialized-view://x:0/a",
++++    "base": null,
++++    "href": "materialized-view://x:0/a",
++++    "origin": "null",
++++    "protocol": "materialized-view:",
++++    "username": "",
++++    "password": "",
++++    "host": "x:0",
++++    "hostname": "x",
++++    "port": "0",
++++    "pathname": "/a",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "android-app://x:0",
++++    "base": null,
++++    "href": "android-app://x:0",
++++    "origin": "null",
++++    "protocol": "android-app:",
++++    "username": "",
++++    "password": "",
++++    "host": "x:0",
++++    "hostname": "x",
++++    "port": "0",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "chrome-distiller://x:0",
++++    "base": null,
++++    "href": "chrome-distiller://x:0",
++++    "origin": "null",
++++    "protocol": "chrome-distiller:",
++++    "username": "",
++++    "password": "",
++++    "host": "x:0",
++++    "hostname": "x",
++++    "port": "0",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "chrome-extension://x:0",
++++    "base": null,
++++    "href": "chrome-extension://x:0",
++++    "origin": "null",
++++    "protocol": "chrome-extension:",
++++    "username": "",
++++    "password": "",
++++    "host": "x:0",
++++    "hostname": "x",
++++    "port": "0",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "chrome-native://x:0",
++++    "base": null,
++++    "href": "chrome-native://x:0",
++++    "origin": "null",
++++    "protocol": "chrome-native:",
++++    "username": "",
++++    "password": "",
++++    "host": "x:0",
++++    "hostname": "x",
++++    "port": "0",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "chrome-resource://x:0",
++++    "base": null,
++++    "href": "chrome-resource://x:0",
++++    "origin": "null",
++++    "protocol": "chrome-resource:",
++++    "username": "",
++++    "password": "",
++++    "host": "x:0",
++++    "hostname": "x",
++++    "port": "0",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "chrome-search://x:0",
++++    "base": null,
++++    "href": "chrome-search://x:0",
++++    "origin": "null",
++++    "protocol": "chrome-search:",
++++    "username": "",
++++    "password": "",
++++    "host": "x:0",
++++    "hostname": "x",
++++    "port": "0",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "fuchsia-dir://x:0",
++++    "base": null,
++++    "href": "fuchsia-dir://x:0",
++++    "origin": "null",
++++    "protocol": "fuchsia-dir:",
++++    "username": "",
++++    "password": "",
++++    "host": "x:0",
++++    "hostname": "x",
++++    "port": "0",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "isolated-app://x:0",
++++    "base": null,
++++    "href": "isolated-app://x:0",
++++    "origin": "null",
++++    "protocol": "isolated-app:",
++++    "username": "",
++++    "password": "",
++++    "host": "x:0",
++++    "hostname": "x",
++++    "port": "0",
++++    "pathname": "",
++++    "search": "",
++++    "hash": ""
++++  },
++++  "Scheme relative path starting with multiple slashes",
++++  {
++++    "input": "///test",
++++    "base": "http://example.org/",
++++    "href": "http://test/",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "test",
++++    "hostname": "test",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "///\\//\\//test",
++++    "base": "http://example.org/",
++++    "href": "http://test/",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "test",
++++    "hostname": "test",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "///example.org/path",
++++    "base": "http://example.org/",
++++    "href": "http://example.org/path",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "///example.org/../path",
++++    "base": "http://example.org/",
++++    "href": "http://example.org/path",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "///example.org/../../",
++++    "base": "http://example.org/",
++++    "href": "http://example.org/",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "///example.org/../path/../../",
++++    "base": "http://example.org/",
++++    "href": "http://example.org/",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "///example.org/../path/../../path",
++++    "base": "http://example.org/",
++++    "href": "http://example.org/path",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/\\/\\//example.org/../path",
++++    "base": "http://example.org/",
++++    "href": "http://example.org/path",
++++    "protocol": "http:",
++++    "username": "",
++++    "password": "",
++++    "host": "example.org",
++++    "hostname": "example.org",
++++    "port": "",
++++    "pathname": "/path",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "///abcdef/../",
++++    "base": "file:///",
++++    "href": "file:///",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "/\\//\\/a/../",
++++    "base": "file:///",
++++    "href": "file://////",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "",
++++    "hostname": "",
++++    "port": "",
++++    "pathname": "////",
++++    "search": "",
++++    "hash": ""
++++  },
++++  {
++++    "input": "//a/../",
++++    "base": "file:///",
++++    "href": "file://a/",
++++    "protocol": "file:",
++++    "username": "",
++++    "password": "",
++++    "host": "a",
++++    "hostname": "a",
++++    "port": "",
++++    "pathname": "/",
++++    "search": "",
++++    "hash": ""
++++  }
++++]
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a8c36dfd9750d71fcda975b2646267528f32764c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,88 @@@@@
++++[
++++  "Tests for the verify_dns_length function. See the section 2.3.4 of https://www.ietf.org/rfc/rfc1035.txt .",
++++  {
++++    "message": "A domain label must be a mininum of 1 character and a maximum of 63 characters. 1",
++++    "input": "http://lorenlorenlorenlorenlorenlorenlorenlorenlorenlorenlorenlorenlore.com",
++++    "failure": true
++++  },
++++  {
++++    "message": "A domain label must be a mininum of 1 character and a maximum of 63 characters. 2",
++++    "input": "http://br.lorenlorenlorenlorenlorenlorenlorenlorenlorenlorenlorenlorenlore.org/",
++++    "failure": true
++++  },
++++  {
++++    "message": "A domain label must be a mininum of 1 character and a maximum of 63 characters. 3",
++++    "input": "http://exampleexampleexampleexampleexampleexampleexampleexampleexampleexample.lorenlorenlorenlorenlorenlorenlorenlorenlorenlorenlorenlorenlore.org.br/",
++++    "failure": true
++++  },
++++  {
++++    "message": "A domain label must be a mininum of 1 character and a maximum of 63 characters. 4",
++++    "input": "http://br.exampleexampleexampleexampleexampleexampleexampleexampleexampleexample.lorenlorenlorenlorenlorenlorenlorenlorenlorenlorenlorenlorenlore",
++++    "failure": true
++++  },
++++  {
++++    "message": "A domain label must be a mininum of 1 character and a maximum of 63 characters. 4",
++++    "input": "http://example..com.br",
++++    "failure": true
++++  },
++++  {
++++    "message": "A domain label must be a mininum of 1 character and a maximum of 63 characters. 4",
++++    "input": "http://example.com.br..",
++++    "failure": true
++++  },
++++  {
++++    "message": "A domain label must be a mininum of 1 character and a maximum of 63 characters. 4",
++++    "input": "http://example.com.br....",
++++    "failure": true
++++  },
++++  {
++++    "message": "A domain label must be a mininum of 1 character and a maximum of 63 characters. 4",
++++    "input": "http://.example.com.br",
++++    "failure": true
++++  },
++++  {
++++    "message": "A domain label must be a mininum of 1 character and a maximum of 63 characters. 4",
++++    "input": "http://example.com..br",
++++    "failure": true
++++  },
++++  {
++++    "message": "A domain name must be a maximum of 253 characters (or 254 if there is a dot at the end). 1",
++++    "input": "http://example.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br",
++++    "failure": true
++++  },
++++  {
++++    "message": "A domain name must be a maximum of 253 characters (or 254 if there is a dot at the end). 4",
++++    "input": "http://example.com.",
++++    "failure": false
++++  },
++++  {
++++    "message": "A domain name must be a maximum of 253 characters (or 254 if there is a dot at the end). 2",
++++    "input": "http://example.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.comm.br.",
++++    "failure": false
++++  },
++++  {
++++    "message": "A domain name must be a maximum of 253 characters (or 254 if there is a dot at the end). 3",
++++    "input": "http://example.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.comm.br",
++++    "failure": false
++++  },
++++  {
++++    "message": "A domain name must be a maximum of 253 characters (or 254 if there is a dot at the end). 3",
++++    "input": "http://example.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.com.br.comm.br.",
++++    "failure": false
++++  },
++++  {
++++    "message": "A domain name must be a maximum of 253 characters (or 254 if there is a dot at the end). 6",
++++    "input": "http://aaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaa.com",
++++    "failure": false
++++  },
++++  {
++++    "message": "A domain name must be a maximum of 253 characters (or 254 if there is a dot at the end). 6",
++++    "input": "http://example.com.",
++++    "failure": false
++++  },
++++  {
++++    "message": "A domain name must be a maximum of 253 characters (or 254 if there is a dot at the end). 6",
++++    "input": "http://example.com./",
++++    "failure": false
++++  }
++++]
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..eadf0581873ae12bf6cd73ee7552038f41209c5c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,477 @@@@@
++++#include <cstring>
++++#include <filesystem>
++++#include <iostream>
++++#include <map>
++++#include <memory>
++++#include <set>
++++#include <sstream>
++++
++++#include "gtest/gtest.h"
++++#include "ada.h"
++++#include "ada/character_sets-inl.h"
++++#include "ada/parser.h"
++++#include "ada/url.h"
++++#include "ada/url_aggregator.h"
++++
++++// This function copies your input onto a memory buffer that
++++// has just the necessary size. This will entice tools to detect
++++// an out-of-bound access.
++++template <class result_type = ada::url_aggregator>
++++ada::result<result_type> ada_parse(std::string_view view,
++++                                   const result_type *base = nullptr) {
++++  std::cout << "about to parse '" << view << "' [" << view.size() << " bytes]"
++++            << std::endl;
++++  std::unique_ptr<char[]> buffer(new char[view.size()]);
++++  memcpy(buffer.get(), view.data(), view.size());
++++  return ada::parse<result_type>(std::string_view(buffer.get(), view.size()),
++++                                 base);
++++}
++++
++++template ada::result<ada::url> ada_parse(std::string_view view,
++++                                         const ada::url *base);
++++template ada::result<ada::url_aggregator> ada_parse(
++++    std::string_view view, const ada::url_aggregator *base);
++++
++++#include "simdjson.h"
++++
++++using namespace simdjson;
++++
++++#ifndef WPT_DATA_DIR
++++#define WPT_DATA_DIR "wpt/"
++++#endif
++++const char *PERCENT_ENCODING_JSON = WPT_DATA_DIR "percent-encoding.json";
++++const char *SETTERS_TESTS_JSON = WPT_DATA_DIR "setters_tests.json";
++++const char *ADA_SETTERS_TESTS_JSON =
++++    WPT_DATA_DIR "ada_extra_setters_tests.json";
++++const char *TOASCII_JSON = WPT_DATA_DIR "toascii.json";
++++const char *IDNA_TEST_V2 = WPT_DATA_DIR "IdnaTestV2.json";
++++const char *URLTESTDATA_JSON = WPT_DATA_DIR "urltestdata.json";
++++const char *ADA_URLTESTDATA_JSON = WPT_DATA_DIR "ada_extra_urltestdata.json";
++++const char *VERIFYDNSLENGTH_TESTS_JSON =
++++    WPT_DATA_DIR "verifydnslength_tests.json";
++++
++++using Types = testing::Types<ada::url, ada::url_aggregator>;
++++template <class T>
++++struct wpt_tests_typed : testing::Test {};
++++TYPED_TEST_SUITE(wpt_tests_typed, Types);
++++
++++std::stringstream error_buffer;
++++
++++bool file_exists(const char *filename) {
++++  namespace fs = std::filesystem;
++++  std::filesystem::path f{filename};
++++  if (std::filesystem::exists(filename)) {
++++    std::cout << "  file found: " << filename << std::endl;
++++    return true;
++++  } else {
++++    std::cerr << "  file missing: " << filename << std::endl;
++++    error_buffer << "  file missing: " << filename << std::endl;
++++    return false;
++++  }
++++}
++++
++++TEST(wpt_tests, idna_test_v2_to_ascii) {
++++  ondemand::parser parser;
++++  ASSERT_TRUE(file_exists(IDNA_TEST_V2));
++++  padded_string json = padded_string::load(IDNA_TEST_V2);
++++  ondemand::document doc = parser.iterate(json);
++++  try {
++++    for (auto element : doc.get_array()) {
++++      if (element.type() == ondemand::json_type::string) {
++++        continue;
++++      }
++++
++++      ondemand::object object = element.get_object();
++++      auto json_string =
++++          std::string(std::string_view(simdjson::to_json_string(object)));
++++      std::string_view input = object["input"].get_string();
++++
++++      std::optional<std::string> output;
++++      ada::unicode::to_ascii(output, input, input.find('%'));
++++      auto expected_output = object["output"];
++++      auto given_output = output.has_value() ? output.value() : "";
++++
++++      if (expected_output.is_null()) {
++++        ASSERT_EQ(given_output, "");
++++      } else if (expected_output.type() == ondemand::json_type::string) {
++++        std::string_view str_expected_output = expected_output.get_string();
++++        ASSERT_EQ(str_expected_output, given_output);
++++      }
++++    }
++++  } catch (simdjson::simdjson_error &error) {
++++    std::cerr << "JSON error: " << error.what() << " near "
++++              << doc.current_location() << " in " << TOASCII_JSON << std::endl;
++++    FAIL();
++++  }
++++  SUCCEED();
++++}
++++
++++TEST(wpt_tests, percent_encoding) {
++++  ondemand::parser parser;
++++  size_t counter{0};
++++
++++  ASSERT_TRUE(file_exists(PERCENT_ENCODING_JSON));
++++  padded_string json = padded_string::load(PERCENT_ENCODING_JSON);
++++  ondemand::document doc = parser.iterate(json);
++++  try {
++++    for (auto element : doc.get_array()) {
++++      if (element.type() == ondemand::json_type::string) {
++++        std::cout << "   comment: " << element.get_string() << std::endl;
++++      } else if (element.type() == ondemand::json_type::object) {
++++        ondemand::object object = element.get_object();
++++        std::string element_string(std::string_view(object.raw_json()));
++++        object.reset();
++++
++++        // We might want to decode the strings into UTF-8, but some of the
++++        // strings are not always valid UTF-8 (e.g., you have unmatched
++++        // surrogates which are forbidden by the UTF-8 spec).
++++        auto input_element = object["input"];
++++        std::string_view input;
++++        // Try UTF-8.
++++        bool allow_replacement_characters = true;
++++        EXPECT_FALSE(
++++            input_element.get_string(allow_replacement_characters).get(input));
++++        std::string my_input_encoded = ada::unicode::percent_encode(
++++            input, ada::character_sets::QUERY_PERCENT_ENCODE);
++++        ondemand::object outputs = object["output"].get_object();
++++        std::string_view expected_view;
++++        ASSERT_FALSE(outputs["utf-8"].get(expected_view));
++++        ASSERT_EQ(my_input_encoded, expected_view);
++++        counter++;
++++      }
++++    }
++++  } catch (simdjson::simdjson_error &error) {
++++    std::cerr << "JSON error: " << error.what() << " near "
++++              << doc.current_location() << " in " << TOASCII_JSON << std::endl;
++++    FAIL();
++++  }
++++  std::cout << "Tests executed = " << counter << std::endl;
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(wpt_tests_typed, setters_tests_encoding) {
++++  for (auto source : {SETTERS_TESTS_JSON, ADA_SETTERS_TESTS_JSON}) {
++++    ondemand::parser parser;
++++    ASSERT_TRUE(file_exists(source));
++++    padded_string json = padded_string::load(source);
++++    ondemand::document doc = parser.iterate(json);
++++    try {
++++      ondemand::object main_object = doc.get_object();
++++
++++      for (auto mainfield : main_object) {
++++        auto category = mainfield.key().value();
++++        ondemand::array cases = mainfield.value();
++++
++++        if (category == "comment") {
++++          continue;
++++        } else {
++++          std::cout << "  " << category << ":" << std::endl;
++++        }
++++
++++        for (auto element_value : cases) {
++++          ondemand::object element = element_value;
++++          std::string element_string =
++++              std::string(std::string_view(element.raw_json()));
++++          element.reset();
++++          std::string_view new_value = element["new_value"].get_string();
++++          std::string_view href = element["href"];
++++          std::string_view comment{};
++++          if (!element["comment"].get(comment)) {
++++            std::cout << "    comment: " << comment << std::endl;
++++          }
++++
++++          auto base = ada_parse<TypeParam>(href);
++++          ASSERT_TRUE(base.has_value());
++++          if constexpr (std::is_same<ada::url_aggregator, TypeParam>::value) {
++++            ASSERT_TRUE(base->validate());
++++            element_string += "\n" + base->to_diagram() + "\n";
++++          }
++++
++++          std::cout << "      " << href << std::endl;
++++
++++          if (category == "protocol") {
++++            std::string_view expected = element["expected"]["protocol"];
++++            base->set_protocol(new_value);
++++            ASSERT_EQ(base->get_protocol(), expected);
++++          } else if (category == "username") {
++++            std::string_view expected = element["expected"]["username"];
++++            base->set_username(new_value);
++++            ASSERT_EQ(base->get_username(), expected);
++++          } else if (category == "password") {
++++            std::string_view expected = element["expected"]["password"];
++++            base->set_password(new_value);
++++            ASSERT_EQ(base->get_password(), expected);
++++          } else if (category == "host") {
++++            std::string_view expected;
++++
++++            // We only support valid UTF-8 cases.
++++            if (!element["expected"]["host"].get(expected)) {
++++              base->set_host(new_value);
++++              ASSERT_EQ(base->get_host(), expected);
++++            }
++++          } else if (category == "hostname") {
++++            std::string_view expected;
++++
++++            // TODO: Handle invalid utf-8 tests too.
++++            if (!element["expected"]["hostname"].get(expected)) {
++++              base->set_hostname(new_value);
++++              ASSERT_EQ(base->get_hostname(), expected);
++++            }
++++          } else if (category == "port") {
++++            std::string_view expected = element["expected"]["port"];
++++            base->set_port(new_value);
++++            ASSERT_EQ(base->get_port(), expected);
++++          } else if (category == "pathname") {
++++            std::string_view expected = element["expected"]["pathname"];
++++            base->set_pathname(new_value);
++++            ASSERT_EQ(base->get_pathname(), expected);
++++          } else if (category == "search") {
++++            std::string_view expected = element["expected"]["search"];
++++            base->set_search(new_value);
++++            ASSERT_EQ(base->get_search(), expected);
++++
++++            std::string_view expected_pathname;
++++            if (!element["expected"]["pathname"].get(expected_pathname)) {
++++              ASSERT_EQ(base->get_pathname(), expected_pathname);
++++            }
++++          } else if (category == "hash") {
++++            std::string_view expected = element["expected"]["hash"];
++++            base->set_hash(new_value);
++++            ASSERT_EQ(base->get_hash(), expected);
++++          } else if (category == "href") {
++++            std::string_view expected = element["expected"]["href"];
++++            base->set_href(new_value);
++++            ASSERT_TRUE(base->set_href(new_value));
++++            ASSERT_EQ(base->get_href(), expected);
++++          }
++++        }
++++      }
++++    } catch (simdjson::simdjson_error &error) {
++++      std::cerr << "JSON error: " << error.what() << " near "
++++                << doc.current_location() << " in " << source << std::endl;
++++      FAIL();
++++    }
++++  }
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(wpt_tests_typed, toascii_encoding) {
++++  ondemand::parser parser;
++++  ASSERT_TRUE(file_exists(TOASCII_JSON));
++++  padded_string json = padded_string::load(TOASCII_JSON);
++++  ondemand::document doc = parser.iterate(json);
++++  try {
++++    for (auto element : doc.get_array()) {
++++      if (element.type() == ondemand::json_type::string) {
++++        std::cout << "   comment: " << element.get_string() << std::endl;
++++      } else if (element.type() == ondemand::json_type::object) {
++++        ondemand::object object = element.get_object();
++++        auto element_string =
++++            std::string(std::string_view(simdjson::to_json_string(object)));
++++
++++        std::string_view input = object["input"];
++++        std::optional<std::string> output;
++++        ada::unicode::to_ascii(output, input, input.find('%'));
++++        auto expected_output = object["output"];
++++
++++        // The following code replicates `toascii.window.js` from web-platform
++++        // tests.
++++        // @see
++++        // https://github.com/web-platform-tests/wpt/blob/master/url/toascii.window.js
++++        auto current =
++++            ada::parse<TypeParam>("https://" + std::string(input) + "/x");
++++
++++        if (expected_output.type() == ondemand::json_type::string) {
++++          std::string_view stringified_output = expected_output.get_string();
++++          ASSERT_EQ(current->get_host(), stringified_output);
++++          ASSERT_EQ(current->get_hostname(), stringified_output);
++++          ASSERT_EQ(current->get_pathname(), "/x");
++++          ASSERT_EQ(current->get_href(),
++++                    "https://" + std::string(stringified_output) + "/x");
++++        } else if (expected_output.is_null()) {
++++          ASSERT_FALSE(current.has_value());
++++        }
++++
++++        // Test setters for host and hostname values.
++++        auto setter = ada::parse<TypeParam>("https://x/x");
++++        ASSERT_EQ(setter->set_host(input), !expected_output.is_null());
++++        ASSERT_EQ(setter->set_hostname(input), !expected_output.is_null());
++++
++++        if (expected_output.type() == ondemand::json_type::string) {
++++          std::string_view stringified_output = expected_output.get_string();
++++          ASSERT_EQ(setter->get_host(), stringified_output);
++++          ASSERT_EQ(setter->get_hostname(), stringified_output);
++++        } else if (expected_output.is_null()) {
++++          // host and hostname should not be updated if the input is invalid.
++++          ASSERT_EQ(setter->get_host(), "x");
++++          ASSERT_EQ(setter->get_hostname(), "x");
++++        }
++++      }
++++    }
++++  } catch (simdjson::simdjson_error &error) {
++++    std::cerr << "JSON error: " << error.what() << " near "
++++              << doc.current_location() << " in " << TOASCII_JSON << std::endl;
++++    FAIL();
++++  }
++++  SUCCEED();
++++}
++++
++++TYPED_TEST(wpt_tests_typed, urltestdata_encoding) {
++++  for (auto source : {URLTESTDATA_JSON, ADA_URLTESTDATA_JSON}) {
++++    ondemand::parser parser;
++++    size_t counter{};
++++    ASSERT_TRUE(file_exists(source));
++++    padded_string json = padded_string::load(source);
++++    ondemand::document doc = parser.iterate(json);
++++    try {
++++      for (auto element : doc.get_array()) {
++++        if (element.type() == ondemand::json_type::string) {
++++          std::string_view comment = element.get_string().value();
++++          std::cout << comment << std::endl;
++++        } else if (element.type() == ondemand::json_type::object) {
++++          ondemand::object object = element.get_object();
++++          std::string element_string =
++++              std::string(std::string_view(object.raw_json()));
++++          object.reset();
++++
++++          std::string_view input{};
++++          bool allow_replacement_characters = true;
++++          ASSERT_FALSE(object["input"]
++++                           .get_string(allow_replacement_characters)
++++                           .get(input));
++++          std::cout << "input='" << input << "' [" << input.size() << " bytes]"
++++                    << std::endl;
++++          std::string_view base;
++++          ada::result<TypeParam> base_url;
++++          if (!object["base"].get(base)) {
++++            std::cout << "base=" << base << std::endl;
++++            base_url = ada_parse<TypeParam>(base);
++++            if (!base_url) {
++++              bool failure = false;
++++              if (!object["failure"].get(failure) && failure == true) {
++++                // We are good. Failure was expected.
++++                continue;  // We can't proceed any further.
++++              } else {
++++                ASSERT_TRUE(base_url.has_value());
++++              }
++++            }
++++          }
++++          bool failure = false;
++++          auto input_url = (!object["base"].get(base))
++++                               ? ada_parse<TypeParam>(input, &*base_url)
++++                               : ada_parse<TypeParam>(input);
++++          if (!object["failure"].get(failure) && failure == true) {
++++            ASSERT_EQ(input_url.has_value(), !failure);
++++          } else {
++++            ASSERT_TRUE(input_url.has_value());
++++            // Next we test the 'to_string' method.
++++            if constexpr (std::is_same<ada::url_aggregator, TypeParam>::value) {
++++              ASSERT_TRUE(input_url->validate());
++++            }
++++            std::string parsed_url_json = input_url->to_string();
++++            if constexpr (std::is_same<ada::url_aggregator, TypeParam>::value) {
++++              std::cout << "\n====\n" + input_url->to_diagram() + "\n====\n";
++++            }
++++            std::string_view protocol = object["protocol"].get_string();
++++            ASSERT_EQ(input_url->get_protocol(), protocol);
++++
++++            std::string_view username = object["username"].get_string();
++++            ASSERT_EQ(input_url->get_username(), username);
++++
++++            std::string_view password = object["password"].get_string();
++++            ASSERT_EQ(input_url->get_password(), password);
++++
++++            std::string_view host = object["host"].get_string();
++++            ASSERT_EQ(input_url->get_host(), host);
++++
++++            std::string_view hostname = object["hostname"].get_string();
++++            ASSERT_EQ(input_url->get_hostname(), hostname);
++++
++++            std::string_view port = object["port"].get_string();
++++            ASSERT_EQ(input_url->get_port(), port);
++++
++++            std::string_view pathname = object["pathname"].get_string();
++++            ASSERT_EQ(input_url->get_pathname(), pathname);
++++
++++            std::string_view search = object["search"].get_string();
++++            ASSERT_EQ(input_url->get_search(), search);
++++
++++            std::string_view hash = object["hash"].get_string();
++++            ASSERT_EQ(input_url->get_hash(), hash);
++++
++++            std::string_view href = object["href"].get_string();
++++            ASSERT_EQ(input_url->get_href(), href);
++++
++++            // The origin key may be missing. In that case, the API's origin
++++            // attribute is not tested.
++++            std::string_view origin;
++++            if (!object["origin"].get(origin)) {
++++              ASSERT_EQ(input_url->get_origin(), origin);
++++            }
++++
++++            // We need padding.
++++            simdjson::padded_string padded_url_json = parsed_url_json;
++++            // We need a second parser.
++++            ondemand::parser urlparser;
++++            ondemand::document parsed_doc = urlparser.iterate(padded_url_json);
++++            std::cout << "serialized JSON = " << padded_url_json << std::endl;
++++            ondemand::object parsed_object = parsed_doc.get_object();
++++            std::string_view json_recovered_path;
++++            if (parsed_object["path"].get_string().get(json_recovered_path)) {
++++              if constexpr (std::is_same<ada::url, TypeParam>::value) {
++++                std::cerr << "The serialized url instance does not provide a "
++++                             "'path' key or the JSON is invalid."
++++                          << std::endl;
++++                FAIL();
++++              }
++++            } else {
++++              ASSERT_EQ(json_recovered_path, pathname);
++++            }
++++            counter++;
++++          }
++++        }
++++      }
++++    } catch (simdjson::simdjson_error &error) {
++++      std::cerr << "JSON error: " << error.what() << " near "
++++                << doc.current_location() << " in " << source << std::endl;
++++      FAIL();
++++    }
++++    std::cout << "Tests executed = " << counter << std::endl;
++++  }
++++  SUCCEED();
++++}
++++
++++TEST(wpt_tests, verify_dns_length) {
++++  const char *source = VERIFYDNSLENGTH_TESTS_JSON;
++++  size_t counter{};
++++  ondemand::parser parser;
++++  ASSERT_TRUE(file_exists(source));
++++  padded_string json = padded_string::load(source);
++++  ondemand::document doc = parser.iterate(json);
++++  try {
++++    for (auto element : doc.get_array()) {
++++      if (element.type() == ondemand::json_type::string) {
++++        std::string_view comment = element.get_string();
++++        std::cout << comment << std::endl;
++++      } else if (element.type() == ondemand::json_type::object) {
++++        ondemand::object object = element.get_object();
++++        std::string element_string =
++++            std::string(std::string_view(object.raw_json()));
++++        object.reset();
++++        std::string_view input = object["input"].get_string();
++++        std::string message =
++++            std::string(object["message"].get_string().value());
++++        bool failure = object["failure"].get_bool().value();
++++        ada::result<ada::url> input_url = ada_parse<ada::url>(input);
++++        ASSERT_EQ(!input_url->has_valid_domain(), failure);
++++        counter++;
++++      }
++++    }
++++  } catch (simdjson::simdjson_error &error) {
++++    std::cerr << "JSON error: " << error.what() << " near "
++++              << doc.current_location() << " in " << source << std::endl;
++++    FAIL();
++++  }
++++  std::cout << "Tests executed = " << counter << std::endl;
++++  SUCCEED();
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..92c73ece9c3b5ac7762b4b5fa52f4b3c9e2b19f2
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1 @@@@@
++++add_subdirectory(cli)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..9f0da167ff59077987edee75f79f2a76cd2c5e3f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,29 @@@@@
++++add_executable(adaparse adaparse.cpp line_iterator.h)
++++target_link_libraries(adaparse PRIVATE ada)
++++target_include_directories(adaparse PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>")
++++if(MSVC AND BUILD_SHARED_LIBS)
++++  # Copy the ada dll into the directory
++++  add_custom_command(TARGET adaparse POST_BUILD        # Adds a post-build event
++++    COMMAND ${CMAKE_COMMAND} -E copy_if_different  # which executes "cmake -E copy_if_different..."
++++        "$<TARGET_FILE:ada>"      # <--this is in-file
++++        "$<TARGET_FILE_DIR:adaparse>")                 # <--this is out-file path
++++endif()
++++CPMAddPackage("gh:fmtlib/fmt#10.2.1")
++++CPMAddPackage(
++++  GITHUB_REPOSITORY jarro2783/cxxopts
++++  VERSION 3.2.0
++++  OPTIONS "CXXOPTS_BUILD_EXAMPLES NO" "CXXOPTS_BUILD_TESTS NO" "CXXOPTS_ENABLE_INSTALL YES"
++++)
++++target_link_libraries(adaparse PRIVATE cxxopts::cxxopts fmt::fmt)
++++
++++if(MSVC OR MINGW)
++++  target_compile_definitions(adaparse PRIVATE _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_DEPRECATE)
++++endif()
++++
++++install(
++++   TARGETS
++++    adaparse
++++   ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
++++   LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++++   RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
++++)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6496943a59eba4058a3ff5c0e3c0c3b47017073b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,292 @@@@@
++++#include <chrono>
++++#include <cxxopts.hpp>
++++#include <fstream>
++++#include <fmt/os.h>
++++
++++#include "ada.h"
++++#include "line_iterator.h"
++++#ifdef _MSC_VER
++++#include <io.h>
++++#else
++++#include <unistd.h>
++++#endif
++++
++++uint64_t nano() {
++++  return std::chrono::duration_cast<::std::chrono::nanoseconds>(
++++             std::chrono::steady_clock::now().time_since_epoch())
++++      .count();
++++}
++++
++++template <typename Callable>
++++bool print_part(Callable&& fmt_or_adaparse_print, std::string_view get_part,
++++                const ada::url_aggregator& url) {
++++  if (get_part.size() == 4) {
++++    if (get_part[0] == 'h') {
++++      if (get_part == "href") {
++++        fmt_or_adaparse_print("{}\n", url.get_href());
++++        return true;
++++      } else if (get_part == "host") {
++++        fmt_or_adaparse_print("{}\n", url.get_host());
++++        return true;
++++      } else if (get_part == "hash") {
++++        fmt_or_adaparse_print("{}\n", url.get_hash());
++++        return true;
++++      }
++++    } else if (get_part[0] == 'p') {
++++      if (get_part == "port") {
++++        fmt_or_adaparse_print("{}\n", url.get_port());
++++        return true;
++++      }
++++    }
++++  } else if (get_part.size() == 6) {
++++    if (get_part == "origin") {
++++      fmt_or_adaparse_print("{}\n", url.get_origin());
++++      return true;
++++    }
++++    if (get_part == "search") {
++++      fmt_or_adaparse_print("{}\n", url.get_search());
++++      return true;
++++    }
++++  } else if (get_part.size() == 8) {
++++    if (get_part[0] == 'p') {
++++      if (get_part == "protocol") {
++++        fmt_or_adaparse_print("{}\n", url.get_protocol());
++++        return true;
++++      } else if (get_part == "password") {
++++        fmt_or_adaparse_print("{}\n", url.get_password());
++++        return true;
++++      } else if (get_part == "pathname") {
++++        fmt_or_adaparse_print("{}\n", url.get_pathname());
++++        return true;
++++      }
++++    } else if (get_part == "hostname") {
++++      fmt_or_adaparse_print("{}\n", url.get_hostname());
++++      return true;
++++    }
++++  } else if (get_part == "username") {
++++    fmt_or_adaparse_print("{}\n", url.get_username());
++++    return true;
++++  }
++++
++++  fmt::print(stderr, "\"{}\" not found\n", get_part);
++++  return false;
++++}
++++
++++// This function parses a FILE * descriptor, line by line (URL by URL).It
++++// applies the given Callable (in this case the lambda adaparse_print in the
++++// main() function) to print the output either to a file on disk or to the
++++// console, depending on arguments given.
++++// It also optionally will output a benchmark to the console.
++++template <typename Callable>
++++int piped_file(Callable&& adaparse_print, const cxxopts::ParseResult result,
++++               FILE* input_file) {
++++  constexpr size_t cache_length = 32768;
++++  std::unique_ptr<char[]> cachebuffer(new char[cache_length]{});
++++
++++  uint64_t before = nano();
++++
++++  size_t total_bytes_read{0};
++++  size_t bytes_read_this_loop_iteration{0};
++++  size_t offset{0};
++++  size_t lines{0};
++++  size_t blocks{0};
++++  std::string get_part{};
++++  if (result.count("get")) {
++++    get_part = result["get"].as<std::string>();
++++  }
++++
++++  // Get the file descriptor from the FILE * input_file
++++#ifdef _MSC_VER
++++  int input_fd = _fileno(input_file);
++++#else
++++  int input_fd = fileno(input_file);
++++#endif
++++
++++#ifdef _MSC_VER
++++  while ((bytes_read_this_loop_iteration =
++++              _read(input_fd, cachebuffer.get() + offset,
++++                    (unsigned int)(cache_length - offset)))) {
++++#else
++++  while ((bytes_read_this_loop_iteration = read(
++++              input_fd, cachebuffer.get() + offset, cache_length - offset))) {
++++#endif
++++    total_bytes_read += bytes_read_this_loop_iteration;
++++    blocks++;
++++    size_t capacity = bytes_read_this_loop_iteration + offset;
++++    line_iterator li(cachebuffer.get(), capacity);
++++
++++    while (li.find_another_complete_line()) {
++++      std::string_view line = li.grab_line();
++++
++++      auto url = ada::parse<ada::url_aggregator>(line);
++++      if (!url) {
++++        adaparse_print("Invalid URL: {}\n", line);
++++      } else if (!get_part.empty()) {
++++        print_part(adaparse_print, get_part, url.value());
++++      }
++++
++++      lines++;
++++    }
++++    if ((offset = li.tail()) > 0) {
++++      memmove(cachebuffer.get(), cachebuffer.get() + capacity - offset, offset);
++++    }
++++  }
++++  if (offset > 0) {
++++    // have a line of length offset at cachebuffer.get()
++++    std::string_view line(cachebuffer.get(), offset);
++++
++++    auto url = ada::parse<ada::url_aggregator>(line);
++++    if (!url) {
++++      adaparse_print("Invalid URL:{}\n", line);
++++    } else if (!get_part.empty()) {
++++      print_part(adaparse_print, get_part, url.value());
++++    }
++++
++++    lines++;
++++  }
++++
++++  if (result.count("benchmark")) {
++++    uint64_t after = nano();
++++    double giga = total_bytes_read / 1000000000.;
++++
++++    fmt::print(
++++        "read {} bytes in {} ns using {} lines, used {} "
++++        "loads\n",
++++        total_bytes_read, (after - before), lines, blocks);
++++
++++    double seconds = (after - before) / 1000000000.;
++++    double speed = giga / seconds;
++++    fmt::print("{} GB/s\n", speed);
++++  }
++++
++++  return EXIT_SUCCESS;
++++}
++++
++++/**
++++ * @private
++++ *
++++ * Running this executable, you can quickly test ada:
++++ *
++++ * $ adaparse "http://www.google.com/bal?a==11#fddfds"
++++ * {
++++ *       "buffer":"http://www.google.com/bal?a==11#fddfds",
++++ *       "protocol":"http:",
++++ *       "host":"www.google.com",
++++ *       "path":"/bal",
++++ *       "opaque path":false,
++++ *       "query":"?a==11",
++++ *       "fragment":"#fddfds",
++++ *       "protocol_end":5,
++++ *       "username_end":7,
++++ *       "host_start":7,
++++ *       "host_end":21,
++++ *       "port":null,
++++ *       "pathname_start":21,
++++ *       "search_start":25,
++++ *       "hash_start":31
++++ * }
++++ *
++++ * $ ./buildbench/tools/adaparse -d http://www.google.com/bal\?a\=\=11\#fddfds
++++ * http://www.google.com/bal?a==11#fddfds [38 bytes]
++++ *      | |             |   |     |
++++ *      | |             |   |     `------ hash_start
++++ *      | |             |   `------------ search_start 25
++++ *      | |             `---------------- pathname_start 21
++++ *      | |             `---------------- host_end 21
++++ *      | `------------------------------ host_start 7
++++ *      | `------------------------------ username_end 7
++++ *      `-------------------------------- protocol_end 5
++++ **/
++++
++++int main(int argc, char** argv) {
++++  std::ios::sync_with_stdio(false);
++++
++++  cxxopts::Options options("adaparse",
++++                           "Command-line version of the Ada URL parser");
++++
++++  // clang-format off
++++  options.add_options()
++++    ("d,diagram", "Print a diagram of the result", cxxopts::value<bool>()->default_value("false"))
++++    ("u,url", "URL", cxxopts::value<std::string>())
++++    ("g,get", "Get a specific part of the URL (e.g., 'origin', 'host', etc.)",  cxxopts::value<std::string>())
++++    ("b,benchmark", "Display chronometer for piped_file function", cxxopts::value<bool>()->default_value("false"))
++++    ("p,path", "Takes in a path to a file and process all the URL within", cxxopts::value<std::string>())
++++    ("o,output", "Takes in a path and outputs to a text file.", cxxopts::value<std::string>()->default_value("/dev/null"))
++++    ("h,help", "Print usage");
++++  // clang-format on
++++
++++  options.parse_positional({"url"});
++++
++++  auto result = options.parse(argc, argv);
++++
++++  std::string output_filename = result["output"].as<std::string>();
++++  auto out = fmt::output_file(output_filename);
++++  bool has_result = result.count("output");
++++
++++  auto adaparse_print = [has_result, &out](const std::string& format_str,
++++                                           auto&&... args) {
++++    std::string formatted_str =
++++        fmt::format(format_str, std::forward<decltype(args)>(args)...);
++++    if (has_result) {
++++      out.print(formatted_str);
++++    } else {
++++      fmt::print("{}", formatted_str);
++++    }
++++  };
++++
++++#ifdef _MSC_VER
++++  if (!_isatty(_fileno(stdin))) {
++++#else
++++  if (!isatty(fileno(stdin))) {
++++#endif
++++    return piped_file(adaparse_print, result, stdin) ? EXIT_SUCCESS
++++                                                     : EXIT_FAILURE;
++++  }
++++
++++  if (result.count("path")) {
++++    auto file_path = result["path"].as<std::string>();
++++    auto file = fopen(file_path.c_str(), "r");
++++    if (file) {
++++      piped_file(adaparse_print, result, file);
++++      fclose(file);
++++      return EXIT_SUCCESS;
++++    } else {
++++      fmt::print(stderr, "Error opening file: {}\n", strerror(errno));
++++      return EXIT_FAILURE;
++++    }
++++  }
++++
++++  // the first argument without an option name will be parsed into file
++++  if (result.count("help") || !result.count("url")) {
++++    fmt::print(stderr, "{}\n", options.help());
++++    return EXIT_SUCCESS;
++++  }
++++
++++  auto input_url = result["url"].as<std::string>();
++++  bool to_diagram = result["diagram"].as<bool>();
++++
++++  auto url = ada::parse<ada::url_aggregator>(input_url);
++++  if (!url) {
++++    fmt::print(stderr, "Invalid URL: {}\n", input_url);
++++    return EXIT_FAILURE;
++++  }
++++
++++  if (result.count("get")) {
++++    std::string get_part = result["get"].as<std::string>();
++++
++++    auto print_lambda = [](const std::string& format_str, auto&&... args) {
++++      fmt::print(format_str, std::forward<decltype(args)>(args)...);
++++    };
++++
++++    return print_part(print_lambda, get_part, url.value()) ? EXIT_SUCCESS
++++                                                           : EXIT_FAILURE;
++++  };
++++
++++  if (to_diagram) {
++++    fmt::print("{}\n", url->to_diagram());
++++  } else {
++++    fmt::print("{}\n", url->to_string());
++++  }
++++
++++  return EXIT_SUCCESS;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..9a9f0c3a201fdb1b0c1ff088182a5189946352a8
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,58 @@@@@
++++#!/bin/bash
++++
++++echo "Benchmarking piping function"
++++
++++# Set the number of trials
++++num_trials=50
++++
++++if [ -f "linux_files.txt" ]; then
++++    echo "linux_files.txt exists."
++++else 
++++    echo "downloading linux_files.txt."
++++    curl https://raw.githubusercontent.com/ada-url/url-various-datasets/main/files/linux_files.txt -O
++++fi
++++
++++if [ -f "wikipedia_100k.txt" ]; then
++++    echo "wikipedia_100k.txt exists."
++++else 
++++    echo "downloading wikipedia_100k.txt."
++++    curl https://raw.githubusercontent.com/ada-url/url-various-datasets/main/wikipedia/wikipedia_100k.txt -O
++++fi
++++
++++if [ -f "top100.txt" ]; then
++++    echo "top100.txt exists."
++++else 
++++    echo "downloading top100.txt."
++++    curl https://raw.githubusercontent.com/ada-url/url-various-datasets/main/top100/top100.txt -O
++++fi
++++
++++# File list to benchmark against
++++files=("top100.txt" "linux_files.txt" "wikipedia_100k.txt" )
++++
++++# Run the programs for the specified number of trials
++++for file in "${files[@]}"; do
++++  echo "Benchmarking $file"
++++
++++  # Variables to store the sum of the Gb/s values for each program
++++  sum_fastpipespeed=0
++++
++++  for i in $(seq 1 $num_trials); do
++++      result_fastspeed=$(cat $file | ../../build/tools/adaparse --benchmark 2>&1 | tail -1 | grep -oP '\d+(\.\d+)?') 
++++      sum_fastpipespeed=$(echo "$sum_fastpipespeed + $result_fastspeed" | bc)
++++  done
++++
++++  # Compute the averages
++++  avg_fastpipespeed=$(echo "scale=7; $sum_fastpipespeed / $num_trials" | bc)
++++
++++  # Display the results
++++  echo "------------------------------"
++++  echo "Finished benchmarking $file"
++++  echo "Number of trials: $num_trials"
++++  echo "Average Gb/s for fastpipespeed: $avg_fastpipespeed"
++++
++++  echo "----------------------------"
++++
++++
++++
++++  echo ""
++++done
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4dacba4b26592ae1b45f5bc66fb4cf11387c0dcf
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,58 @@@@@
++++#!/bin/bash
++++
++++echo "Benchmarking writing to file from pipe."
++++
++++# Set the number of trials
++++num_trials=50
++++
++++if [ -f "linux_files.txt" ]; then
++++    echo "linux_files.txt exists."
++++else 
++++    echo "downloading linux_files.txt."
++++    curl https://raw.githubusercontent.com/ada-url/url-various-datasets/main/files/linux_files.txt -O
++++fi
++++
++++if [ -f "wikipedia_100k.txt" ]; then
++++    echo "wikipedia_100k.txt exists."
++++else 
++++    echo "downloading wikipedia_100k.txt."
++++    curl https://raw.githubusercontent.com/ada-url/url-various-datasets/main/wikipedia/wikipedia_100k.txt -O
++++fi
++++
++++if [ -f "top100.txt" ]; then
++++    echo "top100.txt exists."
++++else 
++++    echo "downloading top100.txt."
++++    curl https://raw.githubusercontent.com/ada-url/url-various-datasets/main/top100/top100.txt -O
++++fi
++++
++++# File list to benchmark against
++++files=("top100.txt" "linux_files.txt" "wikipedia_100k.txt" )
++++
++++# Run the programs for the specified number of trials
++++for file in "${files[@]}"; do
++++  echo "Benchmarking $file"
++++
++++  # Variables to store the sum of the Gb/s values for each program
++++  sum_fastpipespeed=0
++++
++++  for i in $(seq 1 $num_trials); do
++++      result_fastspeed=$(cat $file | ../../build/tools/adaparse --benchmark --output test_write_speeds.txt 2>&1 | tail -1 | grep -oP '\d+(\.\d+)?') 
++++      sum_fastpipespeed=$(echo "$sum_fastpipespeed + $result_fastspeed" | bc)
++++  done
++++
++++  # Compute the averages
++++  avg_fastpipespeed=$(echo "scale=7; $sum_fastpipespeed / $num_trials" | bc)
++++
++++  # Display the results
++++  echo "------------------------------"
++++  echo "Finished benchmarking $file"
++++  echo "Number of trials: $num_trials"
++++  echo "Average Gb/s for fastpipespeed: $avg_fastpipespeed"
++++
++++  echo "----------------------------"
++++
++++
++++
++++  echo ""
++++done
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a60439064b5778841f10de9df4a76c6fab30a7ee
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,30 @@@@@
++++#ifndef LINE_ITERATOR_H
++++#define LINE_ITERATOR_H
++++
++++#include <string_view>
++++
++++struct line_iterator {
++++  std::string_view all_text{};
++++  size_t next_end_of_line{0};
++++  line_iterator(const char *_buffer, size_t _len) : all_text(_buffer, _len) {}
++++
++++  inline bool find_another_complete_line() noexcept {
++++    next_end_of_line = all_text.find('\n');
++++    return next_end_of_line != std::string_view::npos;
++++  }
++++
++++  inline operator bool() const noexcept {
++++    return next_end_of_line != std::string_view::npos;
++++  }
++++
++++  inline std::string_view grab_line() noexcept {
++++    auto line = all_text.substr(0, next_end_of_line);  // advance to next EOL
++++    // remove anything prior to said EOL
++++    all_text.remove_prefix(next_end_of_line + 1);
++++    return line;
++++  }
++++
++++  inline size_t tail() const noexcept { return all_text.size(); }
++++};
++++
++++#endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b222e192783cd3f28c8d1169fd81fb07ecf8418a
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,22 @@@@@
++++#!/bin/sh
++++set -e
++++
++++PACKAGE_URL="https://github.com/jothepro/doxygen-awesome-css.git"
++++PACKAGE_VERSION="v2.2.0"
++++
++++BASE_DIR=$(pwd)
++++THEME_DIR="$BASE_DIR/docs/theme"
++++WORKSPACE=$(mktemp -d 2> /dev/null || mktemp -d -t 'tmp')
++++
++++cleanup () {
++++  EXIT_CODE=$?
++++  [ -d "$WORKSPACE" ] && rm -rf "$WORKSPACE"
++++  exit $EXIT_CODE
++++}
++++
++++trap cleanup INT TERM EXIT
++++
++++cd "$WORKSPACE"
++++git clone --depth=1 --branch "$PACKAGE_VERSION" "$PACKAGE_URL" theme
++++rm -rf "$THEME_DIR"
++++mv "$WORKSPACE/theme" "$THEME_DIR"
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..de162081f9f049b3625dfd54df280fe135e3f9ac
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,26 @@@@@
++++#!/usr/bin/env python3
++++
++++import os
++++from github import Github
++++import lib.release as release
++++
++++WORK_DIR = os.path.dirname(os.path.abspath(__file__)).replace('/tools/release', '')
++++
++++NEXT_TAG = os.environ['NEXT_RELEASE_TAG']
++++REPO_NAME = os.environ['GITHUB_REPOSITORY']
++++TOKEN = os.environ['GITHUB_TOKEN']
++++if not NEXT_TAG or not REPO_NAME or not TOKEN:
++++    raise Exception('Bad environment variables. Invalid GITHUB_REPOSITORY, GITHUB_TOKEN or NEXT_RELEASE_TAG')
++++
++++g = Github(TOKEN)
++++repo = g.get_repo(REPO_NAME)
++++
++++release_notes = release.contruct_release_notes(repo, NEXT_TAG)
++++
++++release.create_release(repo, NEXT_TAG, release_notes)
++++
++++release = repo.get_release(NEXT_TAG)
++++release.upload_asset('singleheader/ada.cpp')
++++release.upload_asset('singleheader/ada.h')
++++release.upload_asset('singleheader/ada_c.h')
++++release.upload_asset('singleheader/singleheader.zip')
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f535693e23f6751e185d43b079d9e6658c40c42c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,201 @@@@@
++++#!/usr/bin/env python3
++++
++++import re
++++from typing import Optional, List, Set, Union, Type
++++from github.PullRequest import PullRequest
++++from github.GitRelease import GitRelease
++++from github.Repository import Repository
++++
++++
++++def is_valid_tag(tag: str) -> bool:
++++    tag_regex = r'^v\d+\.\d+\.\d+$'
++++    return bool(re.match(tag_regex, tag))
++++
++++
++++def create_release(repository: Repository, tag: str, notes: str) -> Union[None, Type[Exception]]:
++++    if not is_valid_tag(tag):
++++        raise Exception(f'Invalid tag: {tag}')
++++
++++    try:
++++        repository.create_git_release(tag=tag, name=tag, message=notes, draft=False, prerelease=False)
++++
++++    except Exception as exp:
++++        raise Exception(f'create_release: Error creating release/tag {tag}: {exp!s}') from exp
++++
++++
++++def get_sorted_merged_pulls(pulls: List[PullRequest], last_release: Optional[GitRelease]) -> List[PullRequest]:
++++    # Get merged pulls after last release
++++    if not last_release:
++++        return sorted(
++++            (
++++                pull
++++                for pull in pulls
++++                if pull.merged
++++                and pull.base.ref == 'main'
++++                and not pull.title.startswith('chore: release')
++++                and not pull.user.login.startswith('github-actions')
++++            ),
++++            key=lambda pull: pull.merged_at,
++++        )
++++
++++    return sorted(
++++        (
++++            pull
++++            for pull in pulls
++++            if pull.merged
++++            and pull.base.ref == 'main'
++++            and (pull.merged_at > last_release.created_at)
++++            and not pull.title.startswith('chore: release')
++++            and not pull.user.login.startswith('github-actions')
++++        ),
++++        key=lambda pull: pull.merged_at,
++++    )
++++
++++
++++def get_pr_contributors(pull_request: PullRequest) -> List[str]:
++++    contributors = set()
++++    for commit in pull_request.get_commits():
++++        commit_message = commit.commit.message
++++        if commit_message.startswith('Co-authored-by:'):
++++            coauthor = commit_message.split('<')[0].split(':')[-1].strip()
++++            contributors.add(coauthor)
++++        else:
++++            author = commit.author
++++            if author:
++++                contributors.add(author.login)
++++    return sorted(list(contributors), key=str.lower)
++++
++++
++++def get_old_contributors(pulls: List[PullRequest], last_release: Optional[GitRelease]) -> Set[str]:
++++    contributors = set()
++++    if last_release:
++++        merged_pulls = [pull for pull in pulls if pull.merged and pull.merged_at <= last_release.created_at]
++++
++++        for pull in merged_pulls:
++++            pr_contributors = get_pr_contributors(pull)
++++            for contributor in pr_contributors:
++++                contributors.add(contributor)
++++
++++    return contributors
++++
++++
++++def get_new_contributors(old_contributors: List[str], merged_pulls: List[PullRequest]) -> List[str]:
++++    new_contributors = set()
++++    for pull in merged_pulls:
++++        pr_contributors = get_pr_contributors(pull)
++++        for contributor in pr_contributors:
++++            if contributor not in old_contributors:
++++                new_contributors.add(contributor)
++++
++++    return sorted(list(new_contributors), key=str.lower)
++++
++++
++++def get_last_release(releases: List[GitRelease]) -> Optional[GitRelease]:
++++    sorted_releases = sorted(releases, key=lambda r: r.created_at, reverse=True)
++++
++++    if sorted_releases:
++++        return sorted_releases[0]
++++
++++    return None
++++
++++
++++def multiple_contributors_mention_md(contributors: List[str]) -> str:
++++    contrib_by = ''
++++    if len(contributors) <= 1:
++++        for contrib in contributors:
++++            contrib_by += f'@{contrib}'
++++    else:
++++        for contrib in contributors:
++++            contrib_by += f'@{contrib}, '
++++
++++        contrib_by = contrib_by[:-2]
++++        last_comma = contrib_by.rfind(', ')
++++        contrib_by = contrib_by[:last_comma].strip() + ' and ' + contrib_by[last_comma + 1 :].strip()
++++    return contrib_by
++++
++++
++++def whats_changed_md(repo_full_name: str, merged_pulls: List[PullRequest]) -> List[str]:
++++    whats_changed = []
++++    for pull in merged_pulls:
++++        contributors = get_pr_contributors(pull)
++++        contrib_by = multiple_contributors_mention_md(contributors)
++++
++++        whats_changed.append(
++++            f'* {pull.title} by {contrib_by} in https://github.com/{repo_full_name}/pull/{pull.number}'
++++        )
++++
++++    return whats_changed
++++
++++
++++def get_first_contribution(merged_pulls: List[str], contributor: str) -> Optional[PullRequest]:
++++    for pull in merged_pulls:
++++        contrubutors = get_pr_contributors(pull)
++++        if contributor in contrubutors:
++++            return pull
++++
++++    # ? unreachable
++++    return None
++++
++++
++++def new_contributors_md(repo_full_name: str, merged_pulls: List[PullRequest], new_contributors: List[str]) -> List[str]:
++++    contributors_by_pr = {}
++++    contributors_md = []
++++    for contributor in new_contributors:
++++        first_contrib = get_first_contribution(merged_pulls, contributor)
++++
++++        if not first_contrib:
++++            continue
++++
++++        if first_contrib.number not in contributors_by_pr.keys():
++++            contributors_by_pr[first_contrib.number] = [contributor]
++++        else:
++++            contributors_by_pr[first_contrib.number] += [contributor]
++++
++++    contributors_by_pr = dict(sorted(contributors_by_pr.items()))
++++    for pr_number, contributors in contributors_by_pr.items():
++++        contributors.sort(key=str.lower)
++++        contrib_by = multiple_contributors_mention_md(contributors)
++++
++++        contributors_md.append(
++++            f'* {contrib_by} made their first contribution in https://github.com/{repo_full_name}/pull/{pr_number}'
++++        )
++++
++++    return contributors_md
++++
++++
++++def full_changelog_md(repository_name: str, last_tag_name: str, next_tag_name: str) -> Optional[str]:
++++    if not last_tag_name:
++++        return None
++++    return f'**Full Changelog**: https://github.com/{repository_name}/compare/{last_tag_name}...{next_tag_name}'
++++
++++
++++def contruct_release_notes(repository: Repository, next_tag_name: str) -> str:
++++    repo_name = repository.full_name
++++    last_release = get_last_release(repository.get_releases())
++++    all_pulls = repository.get_pulls(state='closed')
++++
++++    sorted_merged_pulls = get_sorted_merged_pulls(all_pulls, last_release)
++++    old_contributors = get_old_contributors(all_pulls, last_release)
++++    new_contributors = get_new_contributors(old_contributors, sorted_merged_pulls)
++++
++++    whats_changed = whats_changed_md(repo_name, sorted_merged_pulls)
++++
++++    new_contrib_md = new_contributors_md(repo_name, sorted_merged_pulls, new_contributors)
++++
++++    notes = "## What's changed\n"
++++    for changes in whats_changed:
++++        notes += changes + '\n'
++++
++++    notes += '\n'
++++
++++    if new_contributors:
++++        notes += '## New Contributors\n'
++++        for new_contributor in new_contrib_md:
++++            notes += new_contributor + '\n'
++++
++++        notes += '\n'
++++
++++    if last_release:
++++        notes += full_changelog_md(repository.full_name, last_release.title, next_tag_name)
++++
++++    return notes
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..aab6a166312835edd1ee487b8a75791c717fb579
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,20 @@@@@
++++/**
++++ * @file ada_version.h
++++ * @brief Definitions for Ada's version number.
++++ */
++++#ifndef ADA_ADA_VERSION_H
++++#define ADA_ADA_VERSION_H
++++
++++#define ADA_VERSION "1.0.0"
++++
++++namespace ada {
++++
++++enum {
++++  ADA_VERSION_MAJOR = 1,
++++  ADA_VERSION_MINOR = 0,
++++  ADA_VERSION_REVISION = 0,
++++};
++++
++++}  // namespace ada
++++
++++#endif  // ADA_ADA_VERSION_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..96e2f86975125a25b56d8f5cc0a072e97a418f37
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,20 @@@@@
++++/**
++++ * @file ada_version.h
++++ * @brief Definitions for Ada's version number.
++++ */
++++#ifndef ADA_ADA_VERSION_H
++++#define ADA_ADA_VERSION_H
++++
++++#define ADA_VERSION "2.0.0"
++++
++++namespace ada {
++++
++++enum {
++++  ADA_VERSION_MAJOR = 2,
++++  ADA_VERSION_MINOR = 0,
++++  ADA_VERSION_REVISION = 0,
++++};
++++
++++}  // namespace ada
++++
++++#endif  // ADA_ADA_VERSION_H
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..35a59553e7d72daa50000176e6ce4f058fb52b6c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,10 @@@@@
++++cmake_minimum_required(VERSION 3.16)
++++
++++project(ada
++++  DESCRIPTION "Fast spec-compliant URL parser"
++++  LANGUAGES C CXX
++++  VERSION 1.0.0
++++)
++++
++++set(ADA_LIB_VERSION "1.0.0" CACHE STRING "ada library version")
++++set(ADA_LIB_SOVERSION "1" CACHE STRING "ada library soversion")
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4a996d4c956f13461577488f076e599b5d2f2b8b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,10 @@@@@
++++cmake_minimum_required(VERSION 3.16)
++++
++++project(ada
++++  DESCRIPTION "Fast spec-compliant URL parser"
++++  LANGUAGES C CXX
++++  VERSION 2.0.0
++++)
++++
++++set(ADA_LIB_VERSION "2.0.0" CACHE STRING "ada library version")
++++set(ADA_LIB_SOVERSION "2" CACHE STRING "ada library soversion")
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..87bc18f301df604bb59689e3c36ec80830c9e5d8
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,82 @@@@@
++++# Doxyfile 1.9.6
++++
++++# This file describes the settings to be used by the documentation system
++++# doxygen (www.doxygen.org) for a project.
++++#
++++# All text after a double hash (##) is considered a comment and is placed in
++++# front of the TAG it is preceding.
++++#
++++# All text after a single hash (#) is considered a comment and will be ignored.
++++# The format is:
++++# TAG = value [value, ...]
++++# For lists, items can also be appended using:
++++# TAG += value [value, ...]
++++# Values that contain spaces should be placed between quotes (\" \").
++++#
++++# Note:
++++#
++++# Use doxygen to compare the used configuration file with the template
++++# configuration file:
++++# doxygen -x [configFile]
++++# Use doxygen to compare the used configuration file with the template
++++# configuration file without replacing the environment variables or CMake type
++++# replacement variables:
++++# doxygen -x_noenv [configFile]
++++
++++#---------------------------------------------------------------------------
++++# Project related configuration options
++++#---------------------------------------------------------------------------
++++
++++# This tag specifies the encoding used for all characters in the configuration
++++# file that follow. The default is UTF-8 which is also the encoding used for all
++++# text before the first occurrence of this tag. Doxygen uses libiconv (or the
++++# iconv built into libc) for the transcoding. See
++++# https://www.gnu.org/software/libiconv/ for the list of possible encodings.
++++# The default value is: UTF-8.
++++
++++DOXYFILE_ENCODING      = UTF-8
++++
++++# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
++++# double-quotes, unless you are using Doxywizard) that should identify the
++++# project for which the documentation is generated. This name is used in the
++++# title of most generated pages and in a few other places.
++++# The default value is: My Project.
++++
++++PROJECT_NAME           = "Ada"
++++
++++# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
++++# could be handy for archiving the generated documentation or if some version
++++# control system is used.
++++
++++PROJECT_NUMBER         = "2.0.0"
++++
++++# Using the PROJECT_BRIEF tag one can provide an optional one line description
++++# for a project that appears at the top of each page and should give viewer a
++++# quick idea about the purpose of the project. Keep the description short.
++++
++++PROJECT_BRIEF          = "Spec-compliant URL parser"
++++
++++# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
++++# in the documentation. The maximum height of the logo should not exceed 55
++++# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
++++# the logo to the output directory.
++++
++++PROJECT_LOGO           =
++++
++++# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
++++# into which the generated documentation will be written. If a relative path is
++++# entered, it will be relative to the location where doxygen was started. If
++++# left blank the current directory will be used.
++++
++++OUTPUT_DIRECTORY       = "docs"
++++
++++# If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096
++++# sub-directories (in 2 levels) under the output directory of each output format
++++# and will distribute the generated files over these directories. Enabling this
++++# option can be useful when feeding doxygen a huge amount of source files, where
++++# putting all generated files in the same directory would otherwise causes
++++# performance problems for the file system. Adapt CREATE_SUBDIRS_LEVEL to
++++# control the number of sub-directories.
++++# The default value is: NO.
++++
++++CREATE_SUBDIRS         = YES
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..87bc18f301df604bb59689e3c36ec80830c9e5d8
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,82 @@@@@
++++# Doxyfile 1.9.6
++++
++++# This file describes the settings to be used by the documentation system
++++# doxygen (www.doxygen.org) for a project.
++++#
++++# All text after a double hash (##) is considered a comment and is placed in
++++# front of the TAG it is preceding.
++++#
++++# All text after a single hash (#) is considered a comment and will be ignored.
++++# The format is:
++++# TAG = value [value, ...]
++++# For lists, items can also be appended using:
++++# TAG += value [value, ...]
++++# Values that contain spaces should be placed between quotes (\" \").
++++#
++++# Note:
++++#
++++# Use doxygen to compare the used configuration file with the template
++++# configuration file:
++++# doxygen -x [configFile]
++++# Use doxygen to compare the used configuration file with the template
++++# configuration file without replacing the environment variables or CMake type
++++# replacement variables:
++++# doxygen -x_noenv [configFile]
++++
++++#---------------------------------------------------------------------------
++++# Project related configuration options
++++#---------------------------------------------------------------------------
++++
++++# This tag specifies the encoding used for all characters in the configuration
++++# file that follow. The default is UTF-8 which is also the encoding used for all
++++# text before the first occurrence of this tag. Doxygen uses libiconv (or the
++++# iconv built into libc) for the transcoding. See
++++# https://www.gnu.org/software/libiconv/ for the list of possible encodings.
++++# The default value is: UTF-8.
++++
++++DOXYFILE_ENCODING      = UTF-8
++++
++++# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
++++# double-quotes, unless you are using Doxywizard) that should identify the
++++# project for which the documentation is generated. This name is used in the
++++# title of most generated pages and in a few other places.
++++# The default value is: My Project.
++++
++++PROJECT_NAME           = "Ada"
++++
++++# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
++++# could be handy for archiving the generated documentation or if some version
++++# control system is used.
++++
++++PROJECT_NUMBER         = "2.0.0"
++++
++++# Using the PROJECT_BRIEF tag one can provide an optional one line description
++++# for a project that appears at the top of each page and should give viewer a
++++# quick idea about the purpose of the project. Keep the description short.
++++
++++PROJECT_BRIEF          = "Spec-compliant URL parser"
++++
++++# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
++++# in the documentation. The maximum height of the logo should not exceed 55
++++# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
++++# the logo to the output directory.
++++
++++PROJECT_LOGO           =
++++
++++# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
++++# into which the generated documentation will be written. If a relative path is
++++# entered, it will be relative to the location where doxygen was started. If
++++# left blank the current directory will be used.
++++
++++OUTPUT_DIRECTORY       = "docs"
++++
++++# If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096
++++# sub-directories (in 2 levels) under the output directory of each output format
++++# and will distribute the generated files over these directories. Enabling this
++++# option can be useful when feeding doxygen a huge amount of source files, where
++++# putting all generated files in the same directory would otherwise causes
++++# performance problems for the file system. Adapt CREATE_SUBDIRS_LEVEL to
++++# control the number of sub-directories.
++++# The default value is: NO.
++++
++++CREATE_SUBDIRS         = YES
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..cb96bdf4e9a4edef6c90b568f3fe3e48b64698e4
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,524 @@@@@
++++from .. import release
++++from datetime import datetime
++++from typing import NamedTuple
++++
++++
++++class Release(NamedTuple):
++++    title: str
++++    created_at: datetime
++++
++++
++++class User(NamedTuple):
++++    login: str
++++
++++
++++class CommitMessage(NamedTuple):
++++    message: str
++++
++++
++++class Commit(NamedTuple):
++++    author: User
++++    commit: CommitMessage
++++
++++
++++class PullRequestBase(NamedTuple):
++++    ref: str
++++
++++
++++class PullRequest(NamedTuple):
++++    title: str
++++    number: int
++++    state: str
++++    base: PullRequestBase
++++    merged: bool
++++    merged_at: datetime
++++    user: User
++++    commits: list[Commit]
++++
++++    def get_commits(self) -> list[Commit]:
++++        return self.commits
++++
++++
++++class RepoStub:
++++    def __init__(self) -> None:
++++        self.created_at = datetime(2023, 1, 1)
++++        self.full_name = 'ada-url/ada'
++++
++++    @staticmethod
++++    def get_releases() -> list[Release]:
++++        return [
++++            Release('v1.0.1', datetime(2023, 2, 1)),
++++            Release('v1.0.3', datetime(2023, 4, 1)),
++++            Release('v1.0.2', datetime(2023, 3, 1)),
++++        ]
++++
++++    @staticmethod
++++    def get_pulls(state: str = 'closed') -> list[PullRequest]:
++++        return list(
++++            filter(
++++                lambda pull: pull.state == state,
++++                [
++++                    PullRequest(
++++                        title='Feature 1',
++++                        number=1,
++++                        state='open',
++++                        merged=False,
++++                        base=PullRequestBase('main'),
++++                        merged_at=datetime(2023, 2, 2),
++++                        user=User('contributor_1'),
++++                        commits=[
++++                            Commit(
++++                                User('contributor_1'),
++++                                CommitMessage('src: sample commit 1'),
++++                            ),
++++                            Commit(
++++                                User('contributor_1'),
++++                                CommitMessage('src: sample commit 2'),
++++                            ),
++++                            Commit(
++++                                User('contributor_1'),
++++                                CommitMessage('src: sample commit 3'),
++++                            ),
++++                            Commit(
++++                                User('contributor_1'),
++++                                CommitMessage('src: sample commit 4'),
++++                            ),
++++                        ],
++++                    ),
++++                    PullRequest(
++++                        title='Feature 2',
++++                        number=2,
++++                        state='closed',
++++                        merged=True,
++++                        merged_at=datetime(2023, 2, 1),
++++                        base=PullRequestBase('main'),
++++                        user=User('contributor_2'),
++++                        commits=[
++++                            Commit(
++++                                User('contributor_2'),
++++                                CommitMessage('src: sample commit 1'),
++++                            ),
++++                            Commit(
++++                                User('contributor_2'),
++++                                CommitMessage('src: sample commit 2'),
++++                            ),
++++                            Commit(
++++                                User('contributor_2'),
++++                                CommitMessage('src: sample commit 3'),
++++                            ),
++++                            Commit(
++++                                User('contributor_2'),
++++                                CommitMessage('Co-authored-by: old_contrib_coauthor2 <the@email>'),
++++                            ),
++++                            Commit(
++++                                User('contributor_2'),
++++                                CommitMessage('src: sample commit 4'),
++++                            ),
++++                            Commit(
++++                                User('contributor_2'),
++++                                CommitMessage('Co-authored-by: old_contrib_coauthor <the@email>'),
++++                            ),
++++                        ],
++++                    ),
++++                    PullRequest(
++++                        title='Feature 3',
++++                        number=3,
++++                        state='closed',
++++                        merged=True,
++++                        merged_at=datetime(2023, 2, 2),
++++                        base=PullRequestBase('main'),
++++                        user=User('contributor_3'),
++++                        commits=[
++++                            Commit(
++++                                User('contributor_3'),
++++                                CommitMessage('src: sample commit 1'),
++++                            ),
++++                            Commit(
++++                                User('contributor_3'),
++++                                CommitMessage('src: sample commit 2'),
++++                            ),
++++                            Commit(
++++                                User('contributor_3'),
++++                                CommitMessage('src: sample commit 3'),
++++                            ),
++++                            Commit(
++++                                User('contributor_3'),
++++                                CommitMessage('src: sample commit 4'),
++++                            ),
++++                        ],
++++                    ),
++++                    PullRequest(
++++                        title='Feature 4',
++++                        number=4,
++++                        state='closed',
++++                        merged=True,
++++                        merged_at=datetime(2023, 2, 3),
++++                        base=PullRequestBase('main'),
++++                        user=User('contributor_4'),
++++                        commits=[
++++                            Commit(
++++                                User('contributor_4'),
++++                                CommitMessage('src: sample commit 1'),
++++                            ),
++++                            Commit(
++++                                User('contributor_4'),
++++                                CommitMessage('src: sample commit 2'),
++++                            ),
++++                            Commit(
++++                                User('contributor_4'),
++++                                CommitMessage('src: sample commit 3'),
++++                            ),
++++                            Commit(
++++                                User('contributor_4'),
++++                                CommitMessage('src: sample commit 4'),
++++                            ),
++++                        ],
++++                    ),
++++                    PullRequest(
++++                        title='Feature 5',
++++                        number=5,
++++                        state='closed',
++++                        merged=False,
++++                        merged_at=datetime(2023, 2, 4),
++++                        base=PullRequestBase('main'),
++++                        user=User('contributor_3'),
++++                        commits=[
++++                            Commit(
++++                                User('contributor_3'),
++++                                CommitMessage('src: sample commit 1'),
++++                            ),
++++                            Commit(
++++                                User('contributor_3'),
++++                                CommitMessage('src: sample commit 2'),
++++                            ),
++++                            Commit(
++++                                User('contributor_3'),
++++                                CommitMessage('src: sample commit 3'),
++++                            ),
++++                            Commit(
++++                                User('contributor_3'),
++++                                CommitMessage('src: sample commit 4'),
++++                            ),
++++                        ],
++++                    ),
++++                    PullRequest(
++++                        title='Feature 6',
++++                        number=12,
++++                        state='closed',
++++                        merged=True,
++++                        merged_at=datetime(2023, 2, 5),
++++                        base=PullRequestBase('main'),
++++                        user=User('contributor_2'),
++++                        commits=[
++++                            Commit(
++++                                User('contributor_2'),
++++                                CommitMessage('src: sample commit 1'),
++++                            ),
++++                            Commit(
++++                                User('contributor_2'),
++++                                CommitMessage('src: sample commit 2'),
++++                            ),
++++                            Commit(
++++                                User('contributor_2'),
++++                                CommitMessage('src: sample commit 3'),
++++                            ),
++++                            Commit(
++++                                User('contributor_2'),
++++                                CommitMessage('src: sample commit 4'),
++++                            ),
++++                        ],
++++                    ),
++++                    PullRequest(
++++                        title='Feature 9',
++++                        number=13,
++++                        state='closed',
++++                        merged=True,
++++                        merged_at=datetime(2023, 5, 2),
++++                        base=PullRequestBase('main'),
++++                        user=User('new_contributor_2'),
++++                        commits=[
++++                            Commit(
++++                                User('new_contributor_2'),
++++                                CommitMessage('src: sample commit 1'),
++++                            ),
++++                            Commit(
++++                                User('new_contributor_2'),
++++                                CommitMessage('src: sample commit 2'),
++++                            ),
++++                            Commit(
++++                                User('new_contributor_2'),
++++                                CommitMessage('src: sample commit 3'),
++++                            ),
++++                            Commit(
++++                                User('new_contributor_2'),
++++                                CommitMessage('src: sample commit 4 '),
++++                            ),
++++                            Commit(
++++                                User('new_contributor_2'),
++++                                CommitMessage('Co-authored-by: new_contributor_coauthor1 <the@email>'),
++++                            ),
++++                        ],
++++                    ),
++++                    PullRequest(
++++                        title='Feature 7',
++++                        number=14,
++++                        state='closed',
++++                        merged=True,
++++                        merged_at=datetime(2023, 5, 5),
++++                        base=PullRequestBase('main'),
++++                        user=User('contributor_3'),
++++                        commits=[
++++                            Commit(
++++                                User('contributor_3'),
++++                                CommitMessage('src: sample commit 1'),
++++                            ),
++++                            Commit(
++++                                User('contributor_3'),
++++                                CommitMessage('src: sample commit 2'),
++++                            ),
++++                            Commit(
++++                                User('contributor_3'),
++++                                CommitMessage('src: sample commit 3'),
++++                            ),
++++                            Commit(
++++                                User('contributor_3'),
++++                                CommitMessage('src: sample commit 4 '),
++++                            ),
++++                            Commit(
++++                                User('contributor_3'),
++++                                CommitMessage('Co-authored-by: new_contributor_coauthor2 <the@email>'),
++++                            ),
++++                        ],
++++                    ),
++++                    PullRequest(
++++                        title='Feature 8',
++++                        number=15,
++++                        state='closed',
++++                        merged=True,
++++                        merged_at=datetime(2023, 5, 1),
++++                        base=PullRequestBase('main'),
++++                        user=User('new_contributor_1'),
++++                        commits=[
++++                            Commit(
++++                                User('new_contributor_1'),
++++                                CommitMessage('src: sample commit 1'),
++++                            ),
++++                            Commit(
++++                                User('new_contributor_1'),
++++                                CommitMessage('src: sample commit 2'),
++++                            ),
++++                            Commit(
++++                                User('new_contributor_1'),
++++                                CommitMessage('src: sample commit 3'),
++++                            ),
++++                            Commit(
++++                                User('new_contributor_1'),
++++                                CommitMessage('Co-authored-by: new_contributor_coauthor4 <the@email>'),
++++                            ),
++++                            Commit(
++++                                User('new_contributor_1'),
++++                                CommitMessage('src: sample commit 4 '),
++++                            ),
++++                            Commit(
++++                                User('new_contributor_1'),
++++                                CommitMessage('Co-authored-by: new_contributor_coauthor3 <the@email>'),
++++                            ),
++++                        ],
++++                    ),
++++                    PullRequest(
++++                        title='Feature 11',
++++                        number=16,
++++                        state='closed',
++++                        merged=True,
++++                        merged_at=datetime(2023, 5, 10),
++++                        base=PullRequestBase('another_branch'),
++++                        user=User('new_contributor_1'),
++++                        commits=[
++++                            Commit(
++++                                User('new_contributor_1'),
++++                                CommitMessage('src: sample commit 1'),
++++                            ),
++++                            Commit(
++++                                User('new_contributor_1'),
++++                                CommitMessage('src: sample commit 2'),
++++                            ),
++++                        ],
++++                    ),
++++                    PullRequest(
++++                        title='chore: release v10.0.0',
++++                        number=17,
++++                        state='closed',
++++                        merged=True,
++++                        merged_at=datetime(2023, 5, 9),
++++                        base=PullRequestBase('main'),
++++                        user=User('new_contributor_1'),
++++                        commits=[
++++                            Commit(
++++                                User('new_contributor_1'),
++++                                CommitMessage('src: sample commit 1'),
++++                            ),
++++                            Commit(
++++                                User('new_contributor_1'),
++++                                CommitMessage('src: sample commit 2'),
++++                            ),
++++                        ],
++++                    ),
++++                ],
++++            )
++++        )
++++
++++
++++def test_get_sorted_merged_pulls() -> None:
++++    pulls = RepoStub.get_pulls(state='closed')
++++    last_release = None
++++
++++    sorted_merged_pulls = release.get_sorted_merged_pulls(pulls, last_release)
++++
++++    # Should return all the merged pull requests since there is no previous release
++++    assert sorted_merged_pulls == sorted(
++++        [
++++            pull
++++            for pull in pulls
++++            if pull.merged
++++            and pull.base.ref == 'main'
++++            and not pull.title.startswith('chore: release')
++++            and not pull.user.login.startswith('github-actions')
++++        ],
++++        key=lambda pull: pull.merged_at,
++++    )
++++
++++
++++def test_get_last_release() -> None:
++++    releases = RepoStub.get_releases()
++++
++++    # Should return the latest release
++++    last_release = release.get_last_release(releases)
++++    assert last_release.created_at == datetime(2023, 4, 1)
++++
++++    # Should return None (in case there are no releases yet)
++++    last_release = release.get_last_release([])
++++    assert last_release is None
++++
++++
++++def test_get_old_contributors() -> None:
++++    last_release = release.get_last_release(RepoStub.get_releases())
++++
++++    old_contributors = release.get_old_contributors(RepoStub.get_pulls(), last_release)
++++
++++    # Should return contributors until last release, including co-authors
++++    assert old_contributors == {
++++        'contributor_2',
++++        'contributor_3',
++++        'contributor_4',
++++        'old_contrib_coauthor',
++++        'old_contrib_coauthor2',
++++    }
++++
++++
++++def test_get_new_contributors() -> None:
++++    last_release = release.get_last_release(RepoStub.get_releases())
++++    all_pulls = RepoStub.get_pulls()
++++
++++    # merged pulls after last release
++++    merged_pulls = release.get_sorted_merged_pulls(all_pulls, last_release)
++++    old_contributors = release.get_old_contributors(all_pulls, last_release)
++++
++++    # Should return a List sorted in alphabetic order with only the new contributors since
++++    # last release
++++    new_contributors = release.get_new_contributors(old_contributors, merged_pulls)
++++
++++    assert new_contributors == [
++++        'new_contributor_1',
++++        'new_contributor_2',
++++        'new_contributor_coauthor1',
++++        'new_contributor_coauthor2',
++++        'new_contributor_coauthor3',
++++        'new_contributor_coauthor4',
++++    ]
++++
++++
++++def test_whats_changed_md() -> None:
++++    repo_stub = RepoStub()
++++    last_release = release.get_last_release(RepoStub.get_releases())
++++    all_pulls = RepoStub.get_pulls()
++++    # merged pulls after last release
++++    merged_pulls = release.get_sorted_merged_pulls(all_pulls, last_release)
++++
++++    whats_changed = release.whats_changed_md(repo_stub.full_name, merged_pulls)
++++
++++    assert whats_changed == [
++++        '* Feature 8 by @new_contributor_1, @new_contributor_coauthor3 and @new_contributor_coauthor4 in https://github.com/ada-url/ada/pull/15',
++++        '* Feature 9 by @new_contributor_2 and @new_contributor_coauthor1 in https://github.com/ada-url/ada/pull/13',
++++        '* Feature 7 by @contributor_3 and @new_contributor_coauthor2 in https://github.com/ada-url/ada/pull/14',
++++    ]
++++
++++
++++def test_new_contributors_md() -> None:
++++    repo_stub = RepoStub()
++++    last_release = release.get_last_release(RepoStub.get_releases())
++++    all_pulls = RepoStub.get_pulls()
++++
++++    merged_pulls = release.get_sorted_merged_pulls(all_pulls, last_release)
++++    old_contributors = release.get_old_contributors(all_pulls, last_release)
++++    new_contributors = release.get_new_contributors(old_contributors, merged_pulls)
++++
++++    # Should return a markdown containing the new contributors and their first contribution
++++    new_contributors_md = release.new_contributors_md(repo_stub.full_name, merged_pulls, new_contributors)
++++
++++    assert new_contributors_md == [
++++        '* @new_contributor_2 and @new_contributor_coauthor1 made their first contribution in https://github.com/ada-url/ada/pull/13',
++++        '* @new_contributor_coauthor2 made their first contribution in https://github.com/ada-url/ada/pull/14',
++++        '* @new_contributor_1, @new_contributor_coauthor3 and @new_contributor_coauthor4 made their first contribution in https://github.com/ada-url/ada/pull/15', # noqa: E501
++++    ]
++++
++++
++++def test_full_changelog_md() -> None:
++++    repo_stub = RepoStub()
++++    last_tag = release.get_last_release(repo_stub.get_releases())
++++
++++    full_changelog = release.full_changelog_md(repo_stub.full_name, last_tag.title, 'v3.0.0')
++++    assert full_changelog == '**Full Changelog**: https://github.com/ada-url/ada/compare/v1.0.3...v3.0.0'
++++
++++    full_changelog = release.full_changelog_md(repo_stub.full_name, None, 'v3.0.0')
++++    assert full_changelog is None
++++
++++
++++def test_contruct_release_notes() -> None:
++++    repo_stub = RepoStub()
++++
++++    notes = release.contruct_release_notes(repo_stub, 'v3.0.0')
++++    assert (
++++        notes
++++        == "## What's changed\n"
++++        + '* Feature 8 by @new_contributor_1, @new_contributor_coauthor3 and @new_contributor_coauthor4 in https://github.com/ada-url/ada/pull/15\n'
++++        + '* Feature 9 by @new_contributor_2 and @new_contributor_coauthor1 in https://github.com/ada-url/ada/pull/13\n'
++++        + '* Feature 7 by @contributor_3 and @new_contributor_coauthor2 in https://github.com/ada-url/ada/pull/14\n'
++++        + '\n'
++++        + '## New Contributors\n'
++++        + '* @new_contributor_2 and @new_contributor_coauthor1 made their first contribution in https://github.com/ada-url/ada/pull/13\n'
++++        + '* @new_contributor_coauthor2 made their first contribution in https://github.com/ada-url/ada/pull/14\n'
++++        + '* @new_contributor_1, @new_contributor_coauthor3 and @new_contributor_coauthor4 made their first contribution in https://github.com/ada-url/ada/pull/15\n' # noqa: E501
++++        + '\n'
++++        + '**Full Changelog**: https://github.com/ada-url/ada/compare/v1.0.3...v3.0.0'
++++    )
++++
++++
++++def test_is_valid_tag() -> None:
++++    assert release.is_valid_tag('v1.0.0') is True
++++    assert release.is_valid_tag('v1.1.1') is True
++++
++++    assert release.is_valid_tag('v0') is False
++++    assert release.is_valid_tag('v1.0.0.0') is False
++++    assert release.is_valid_tag('1.0.0') is False
++++    assert release.is_valid_tag('1.0.1') is False
++++
++++
++++def test_multiple_contributors_mention_md() -> None:
++++    contributors = ['contrib1', 'contrib2', 'contrib3', 'contrib4']
++++
++++    md_contributors_mention = release.multiple_contributors_mention_md(contributors)
++++    assert md_contributors_mention == '@contrib1, @contrib2, @contrib3 and @contrib4'
++++
++++    contributors = ['contrib1']
++++    md_contributors_mention = release.multiple_contributors_mention_md(contributors)
++++    assert md_contributors_mention == '@contrib1'
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..8ae90db20317b5000882b5cd3786738d27227a37
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,53 @@@@@
++++from .. import versions
++++import os
++++
++++
++++def test_update_cmakelists_version() -> None:
++++    current_dir = os.path.dirname(os.path.abspath(__file__))
++++    sample_path = f'{current_dir}/samples/cmakelists.txt'
++++    sample_expected_path = f'{current_dir}/samples/cmakelists_expected.txt'
++++
++++    versions.update_cmakelists_version('2.0.0', sample_path)
++++
++++    with open(sample_path, 'r') as cmake:
++++        given = cmake.read()
++++
++++    with open(sample_expected_path, 'r') as cmake_expected:
++++        expected = cmake_expected.read()
++++
++++    assert given == expected
++++    versions.update_cmakelists_version('1.0.0', sample_path)  # cleanup
++++
++++
++++def test_update_ada_version_h() -> None:
++++    current_dir = os.path.dirname(os.path.abspath(__file__))
++++    sample_path = f'{current_dir}/samples/ada_version_h.txt'
++++    sample_expected_path = f'{current_dir}/samples/ada_version_h_expected.txt'
++++
++++    versions.update_ada_version_h('2.0.0', sample_path)
++++
++++    with open(sample_path, 'r') as ada_version_h:
++++        given = ada_version_h.read()
++++
++++    with open(sample_expected_path, 'r') as ada_version_h_expected:
++++        expected = ada_version_h_expected.read()
++++
++++    assert given == expected
++++    versions.update_ada_version_h('1.0.0', sample_path)  # cleanup
++++
++++
++++def test_update_doxygen_version() -> None:
++++    current_dir = os.path.dirname(os.path.abspath(__file__))
++++    sample_path = f'{current_dir}/samples/doxygen.txt'
++++    sample_expected_path = f'{current_dir}/samples/doxygen_expected.txt'
++++
++++    versions.update_doxygen_version('2.0.0', sample_path)
++++
++++    with open(sample_path, 'r') as doxygen:
++++        given = doxygen.read()
++++
++++    with open(sample_expected_path, 'r') as doxygen_expected:
++++        expected = doxygen_expected.read()
++++
++++    assert given == expected
++++    versions.update_ada_version_h('1.0.0', sample_path)  # cleanup
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..efd26b57a0ce514a2c9b1c7e30426b4d4c447237
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,52 @@@@@
++++#!/usr/bin/env python3
++++
++++import fileinput
++++import re
++++
++++
++++def update_cmakelists_version(new_version: str, file_path: str) -> None:
++++    inside_project = False
++++    with fileinput.FileInput(file_path, inplace=True) as cmakelists:
++++        for line in cmakelists:
++++            if 'set(ADA_LIB_VERSION' in line:
++++                line = re.sub(r'[0-9]+\.[0-9]+\.[0-9]+', new_version, line)
++++            elif 'set(ADA_LIB_SOVERSION' in line:
++++                line = re.sub(r'[0-9]+', new_version.split('.')[0], line)
++++
++++            elif 'project(' in line:
++++                inside_project = True
++++            elif inside_project:
++++                if 'VERSION' in line:
++++                    line = re.sub(r'[0-9]+\.[0-9]+\.[0-9]+', new_version, line)
++++                    inside_project = False
++++            print(line, end='')
++++
++++
++++def update_ada_version_h(new_version: str, file_path: str) -> None:
++++    new_version_list = new_version.split('.')
++++    with fileinput.FileInput(file_path, inplace=True) as ada_version_h:
++++        inside_enum = False
++++        for line in ada_version_h:
++++            if '#define ADA_VERSION' in line:
++++                line = f'#define ADA_VERSION "{new_version}"\n'
++++
++++            elif 'enum {' in line:
++++                inside_enum = True
++++            elif inside_enum:
++++                if line.strip().startswith('ADA_VERSION_MAJOR'):
++++                    line = re.sub(r'\d+', new_version_list[0], line)
++++                elif line.strip().startswith('ADA_VERSION_MINOR'):
++++                    line = re.sub(r'\d+', new_version_list[1], line)
++++                elif line.strip().startswith('ADA_VERSION_REVISION'):
++++                    line = re.sub(r'\d+', new_version_list[2], line)
++++
++++            print(line, end='')
++++
++++
++++def update_doxygen_version(new_version: str, file_path: str) -> None:
++++    with fileinput.FileInput(file_path, inplace=True) as doxygen:
++++        for line in doxygen:
++++            if line.strip().startswith('PROJECT_NUMBER         ='):
++++                line = f'PROJECT_NUMBER         = "{new_version}"\n'
++++
++++            print(line, end='')
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4feab79a35b5dd1d0dbc9d2fd177cc6a6ddc5b0f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,2 @@@@@
++++PyGithub==2.4.0
++++pytest==8.3.2
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7217d4bab410d2f7ec6785f0eb65fdfa953f85ac
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,21 @@@@@
++++#!/usr/bin/env python3
++++
++++import os
++++import lib.versions as update_versions
++++from lib.release import is_valid_tag
++++
++++WORK_DIR = os.path.dirname(os.path.abspath(__file__)).replace('/tools/release', '')
++++
++++ADA_VERSION_H = f'{WORK_DIR}/include/ada/ada_version.h'
++++DOXYGEN = f'{WORK_DIR}/doxygen'
++++CMAKE_LISTS = f'{WORK_DIR}/CMakeLists.txt'
++++
++++NEXT_TAG = os.environ['NEXT_RELEASE_TAG']
++++if not NEXT_TAG or not is_valid_tag(NEXT_TAG):
++++    raise Exception(f'Bad environment variables. Invalid NEXT_RELEASE_TAG {NEXT_TAG}.')
++++
++++NEXT_TAG = NEXT_TAG[1:]  # from v1.0.0 to 1.0.0
++++
++++update_versions.update_ada_version_h(NEXT_TAG, ADA_VERSION_H)
++++update_versions.update_doxygen_version(NEXT_TAG, DOXYGEN)
++++update_versions.update_cmakelists_version(NEXT_TAG, CMAKE_LISTS)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c6881acdec275df9b1507582d78110dd066b4593
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,22 @@@@@
++++#!/usr/bin/env bash
++++set -e
++++COMMAND=$*
++++SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
++++MAINSOURCE=$SCRIPTPATH/..
++++ALL_ADA_FILES=$(cd $MAINSOURCE && git ls-tree --full-tree --name-only -r HEAD | grep -e ".*\.\(c\|h\|cc\|cpp\|hh\)\$" | grep -vFf clang-format-ignore.txt)
++++
++++if clang-format-17 --version  2>/dev/null | grep -qF 'version 17.'; then
++++  cd $MAINSOURCE; clang-format-17 --style=file --verbose -i "$@" $ALL_ADA_FILES
++++  exit 0
++++elif clang-format --version  2>/dev/null | grep -qF 'version 17.'; then
++++  cd $MAINSOURCE; clang-format --style=file --verbose -i "$@" $ALL_ADA_FILES
++++  exit 0
++++fi
++++echo "Trying to use docker"
++++command -v docker >/dev/null 2>&1 || { echo >&2 "Please install docker. E.g., go to https://www.docker.com/products/docker-desktop Type 'docker' to diagnose the problem."; exit 1; }
++++docker info >/dev/null 2>&1 || { echo >&2 "Docker server is not running? type 'docker info'."; exit 1; }
++++
++++if [ -t 0 ]; then DOCKER_ARGS=-it; fi
++++docker pull kszonek/clang-format-17
++++
++++docker run --rm $DOCKER_ARGS -v "$MAINSOURCE":"$MAINSOURCE":Z  -w "$MAINSOURCE" -u "$(id -u $USER):$(id -g $USER)" kszonek/clang-format-17 --style=file --verbose -i "$@" $ALL_ADA_FILES
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6dd13c9e6bf203c4fb1e2972fca35745641d5646
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,27 @@@@@
++++#!/bin/sh
++++set -e
++++
++++BASE_DIR=$(pwd)
++++WPT_DIR="$BASE_DIR/tests/wpt"
++++
++++WORKSPACE=$(mktemp -d 2> /dev/null || mktemp -d -t 'tmp')
++++
++++cleanup () {
++++  EXIT_CODE=$?
++++  [ -d "$WORKSPACE" ] && rm -rf "$WORKSPACE"
++++  exit $EXIT_CODE
++++}
++++
++++trap cleanup INT TERM EXIT
++++
++++cd "$WORKSPACE"
++++git clone \
++++  --no-checkout \
++++  --depth=1 \
++++  --filter=blob:none \
++++  --sparse \
++++  https://github.com/web-platform-tests/wpt.git wpt
++++cd wpt
++++git sparse-checkout add "url/resources"
++++git checkout
++++cp url/resources/*.json "$WPT_DIR"
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6e2b44a8ffef7f6a2438e5cc0f4c38a3696021ad
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,31 @@@@@
++++Bootstrap a new arch: two-staged build
++++--------------------------------------
++++
++++ Nodejs build-depends on several other nodejs arch-independent modules for:
++++ - building documentation (not crucial)
++++ - tolerant javascript parser and AST walker for cli REPL (acorn)
++++ - fetch implementation using a webassembly http parser (undici)
++++
++++ Those modules may already be in the archive, or not;
++++ 1. They have been built from some other architecture.
++++    They naturally depend on nodejs, so one cannot install them to bootstrap nodejs.
++++    However one can install them alongside a first stage build of nodejs to get
++++    a fully working repl.
++++    Build nodejs once, install modules and nodejs, rebuild nodejs.
++++ 2. They are not available in the archive.
++++    They must be built using a first stage build of nodejs:
++++    Build nodejs once, build modules, install modules and nodejs, rebuild nodejs.
++++ 
++++ In both cases, one must build nodejs twice using:
++++
++++ - First using build profiles:
++++   $ apt --build-profiles=nodoc,nocheck,pkg.nodejs.nobuiltin,noautodbgsym build-dep nodejs
++++   $ dpkg-buildpackage --build=any --build-profiles=nodoc,nocheck,pkg.nodejs.nobuiltin,noautodbgsym
++++   Or, just
++++   $ sbuild --arch-any --no-arch-all --profiles=nodoc,nocheck,pkg.nodejs.nobuiltin,noautodbgsym
++++ - install produced nodejs debian package
++++ - optionally (case 2), build the missing modules, install them
++++ - Second without profiles, using the previously created debian packages
++++   (either install them or use sbuild --extra-packages)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 16 May 2022 11:47:13 +0200
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..fd4f8dab34831d2914ab73f38478801241cee91a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,3073 @@@@@
++++nodejs (20.18.0+dfsg-2) unstable; urgency=medium
++++
++++  * Fix remove of deps/* dirs that breaks Makefile.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 08 Nov 2024 20:05:21 +0100
++++
++++nodejs (20.18.0+dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 20.18.0+dfsg
++++  * Update types-node to 20.17.6
++++  * Exclude unused deps/* to simplify maintenance
++++  * Use shared ngtcp2, nghttp3, simdjson
++++  * Use debian/openssl.cnf for tests
++++  * tests: pass --skip-tests in d/rules instead of patches
++++  * Refresh tests fixes for openssl 3.2.2 compatibility
++++  * Use dh-sequence-bash-completion
++++  * Fix test to build completion. Closes: #1085098
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 08 Nov 2024 14:59:03 +0100
++++
++++nodejs (20.17.0+dfsg-2) unstable; urgency=medium
++++
++++  * Depend node-minimatch
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 29 Aug 2024 10:25:23 +0200
++++
++++nodejs (20.17.0+dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 20.17.0+dfsg
++++  * B-D node-minimatch, added to builtins.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 28 Aug 2024 20:25:41 +0200
++++
++++nodejs (20.16.0+dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 20.16.0+dfsg
++++  * patches:
++++    + improve openssl 3.2.2 tests fixes
++++    + upstream fix for failing permissions tests in /tmp
++++      Closes: #1076542.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 18 Aug 2024 14:48:08 +0200
++++
++++nodejs (20.15.1+dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 20.15.1+dfsg
++++  * Fix watch file to ensure ada 2.7.8
++++  * CVE-2024-36138: Bypass incomplete fix of CVE-2024-27980 (High)
++++  * CVE-2024-22020: Bypass network import restriction via data URL (Medium)
++++  * CVE-2024-22018: fs.lstat bypasses permission model (Low)
++++  * CVE-2024-36137: fs.fchown/fchmod bypasses permission model (Low)
++++  * CVE-2024-37372: Permission model improperly processes UNC paths (Low)
++++  * Add another failing test to loong64/mips64el
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 09 Jul 2024 10:02:04 +0200
++++
++++nodejs (20.15.0+dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 20.15.0+dfsg
++++  * Mark test-worker-prof as flaky on mips64el/loong64
++++  * VCS is on master-20.x branch now
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 25 Jun 2024 12:57:00 +0200
++++
++++nodejs (20.14.0+dfsg-3) unstable; urgency=medium
++++
++++  * test-cpu-prof-dir-absolute is flaky
++++  * Fix: skip failing test in the right suite
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 19 Jun 2024 12:03:27 +0200
++++
++++nodejs (20.14.0+dfsg-2) unstable; urgency=medium
++++
++++  * Patch: fix tests for openssl 3.2.2. Closes: #1073013
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 12 Jun 2024 11:41:24 +0200
++++
++++nodejs (20.14.0+dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 20.14.0+dfsg
++++
++++  [ Gianfranco Costamagna ]
++++  * Drop double newline in changelog
++++
++++  [ Zixing Liu ]
++++  * Use proper method to specify Node.js path when running tests
++++  * test_ci.patch: revert Makefile changes to use upstream selection logic
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 03 Jun 2024 13:36:41 +0200
++++
++++nodejs (20.13.1+dfsg-2) unstable; urgency=medium
++++
++++  * Flaky sequential/test-worker-heapsnapshot-options.
++++    Closes: #1071382
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 18 May 2024 14:26:22 +0200
++++
++++nodejs (20.13.1+dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 20.13.1+dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 15 May 2024 13:52:04 +0200
++++
++++nodejs (20.13.0+dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 20.13.0+dfsg
++++  * test-fs-utimes* fail because of libuv1 bug
++++  * mark some more tests as flaky
++++  * watch: ada 2.7.8
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 08 May 2024 19:48:54 +0200
++++
++++nodejs (20.12.2+dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 20.12.2+dfsg
++++  * copyright:
++++    + exclude tools/gyp
++++    + simplifications
++++    + fix license ~holders
++++  * patch: add link to upstream bug
++++  * Suggests node-corepack
++++  * Include permission headers
++++  * Override lintian warning about brotli test
++++  * Deps:
++++    + pkg-config becomes pkgconf
++++    + python3-packaging
++++    + gyp >= 0.16
++++  * Breaks/Replace libnode108, libnode109
++++  * Drop python3-distutils from deps/test deps. Closes: #1065909
++++  * Let some riscv64, mips64el tests fail.
++++  * openssl 3.2 compatibility patch
++++  * mark setuid tests as failing, because this nodejs version
++++    does not support setuid with shared libuv. See: CVE-2024-22017
++++  * multilib patch: process.config not in shadow realm
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 23 Apr 2024 11:53:20 +0200
++++
++++nodejs (20.10.0+dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 20.10.0+dfsg
++++  * Drop kfreebsd-*, mips(el) architectures
++++  * new architecture: loong64, thanks to Shi Pujin  
++++  * patch:
++++    + remove mips-related, refresh
++++    + let loong64 have some failing tests
++++    + more doc for localhost-no-addrconfig
++++    + disable zlib embedding in v8
++++  * fix boostrapping of nodejs package:
++++    + update README.source
++++    + nodoc: disable bash completion output
++++    + patch: disable shared builtins when flag
++++      node-builtin-modules-path is used
++++  * copyright:
++++    + deps/v8/third_party/glibc/ with some LGPL-2.1+ code
++++    + exclude tools/github_reporter/index.js
++++    + disappeared file patterns
++++    + deps/v8/third_party/ittapi/include/fortran/
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 16 Dec 2023 13:56:50 +0100
++++
++++nodejs (18.19.0+dfsg-6) unstable; urgency=medium
++++
++++  * patch: remove useless and badly done icu_74 patch
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 03 Dec 2023 22:41:14 +0100
++++
++++nodejs (18.19.0+dfsg-5) unstable; urgency=medium
++++
++++  * patch: disable openssl test that depends on error message format
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 03 Dec 2023 22:41:00 +0100
++++
++++nodejs (18.19.0+dfsg-4) unstable; urgency=medium
++++
++++  * patch:
++++    + remove a failed attempt for test dns-resolveany-bad-ancount
++++      skip it, it uselessly hangs.
++++    + disable some icu test to allow transition to 74
++++    + fix test-crypto-dh.js to pass with openssl 3.0.11, 3.1.4
++++    + riscv64: some tests have been fixed, but new ones fail
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 03 Dec 2023 15:00:35 +0100
++++
++++nodejs (18.19.0+dfsg-3) unstable; urgency=medium
++++
++++  * patch: drop fixed openssl test patch
++++  * patch: allow bad-ancount test to fail
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 02 Dec 2023 02:12:25 +0100
++++
++++nodejs (18.19.0+dfsg-2) unstable; urgency=medium
++++
++++  * patch: fix test_dns_resolveany_bad_ancount_timeout.patch
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 01 Dec 2023 19:07:23 +0100
++++
++++nodejs (18.19.0+dfsg-1) experimental; urgency=medium
++++
++++  [ Jérémy Lal ]
++++  * New upstream version 18.19.0+dfsg
++++    + tests pass with openssl 3.1, closes: #1055416
++++    + tests pass with libc-ares >= 1.23.0, closes: #1054690
++++  * Harmonize stack size patch for arm64. Closes: 1030284
++++  * Install dir usr/lib/<tripler>/nodejs. Fix #1035463
++++  * No longer force gcc 11 for sid
++++  * Fix Vcs fields to point to the right branch
++++  * builtins: set correct version in builtins headers
++++  * dfsg-exclude for non-preferred form for modification:
++++    + deps/ada
++++    + deps/minimatch
++++    + test/fixtures/postject-copy
++++  * component: ./ada
++++  * copyright:
++++    + add missing authors to histogram
++++    + drop unnecessary snapshot.blob exclusion
++++    + licenses for ada
++++    + deps/cares now using Expat
++++    + document some new files
++++  * patches:
++++    + test-process-versions must use system versions
++++    + drop the test using postject
++++    + build using ada component instead of deps/ada
++++    + minimatch is actually not needed for build
++++    + fix test-runner-output, forwarded
++++    + mark parallel/test-debugger-preserve-breaks as flaky,
++++      it is failing in sbuild for now
++++    + fix test-dns-resolveany-bad-ancount to work with c-ares,
++++      also to not hang the testsuite in sbuild
++++
++++  [ Yadd ]
++++  * Declare compliance with policy 4.6.2
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 01 Dec 2023 01:23:44 +0100
++++
++++nodejs (18.13.0+dfsg1-1) unstable; urgency=medium
++++
++++  [ Bo YU ]
++++  * Fix FTBFS on riscv64. Closes: 1028404
++++
++++  [ Jérémy Lal ]
++++  * doc-generator: update types
++++  * copyright: deps/v8/third_party/ittapi
++++  * copyright: Files-Excluded snapshot.blob, new orig tarball
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 17 Feb 2023 00:39:15 +0100
++++
++++nodejs (18.13.0+dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 18.13.0+dfsg
++++  * Drop applied patches
++++  * Add tracing, crypto headers to /usr/include/nodejs
++++  * riscv64: mark flaky tests. Closes: 1026065
++++  * copyright: remove uv/android* files
++++  * Drop n/a lintian overrides for zlib
++++  * lintian-overrides: update false source-is-missing
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 06 Jan 2023 21:15:20 +0100
++++
++++nodejs (18.12.1+dfsg-2) unstable; urgency=medium
++++
++++  * Patch: fix test suite for icu 72.1
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 09 Nov 2022 18:16:06 +0100
++++
++++nodejs (18.12.1+dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 18.12.1+dfsg
++++  * Fixes CVE-2022-43548: DNS rebinding in --inspect via invalid
++++    octal IP address (Medium).
++++    Closes: #1023518.
++++  * Build using gcc-11, g++-11, fixes mips64el and riscv64 builds,
++++    https://github.com/nodejs/node/issues/44126
++++  * Patch: fix link to home in html doc. Closes: #1018153
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 06 Nov 2022 00:14:11 +0100
++++
++++nodejs (18.12.0+dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 18.12.0+dfsg
++++  * Add flaky new debugger test
++++  * watch nodejs 18 LTS
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 27 Oct 2022 15:02:24 +0200
++++
++++nodejs (18.11.0+dfsg-4) experimental; urgency=medium
++++
++++  * Patch: fix mipsel build failure
++++  * Patch: drop mips/no_jitless, fixed upstream
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 26 Oct 2022 01:23:22 +0200
++++
++++nodejs (18.11.0+dfsg-3) experimental; urgency=medium
++++
++++  * Revert "Build using gcc-11, g++-11"
++++  * Skip buggy watch mode tests
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 17 Oct 2022 14:04:02 +0200
++++
++++nodejs (18.11.0+dfsg-2) experimental; urgency=medium
++++
++++  * Do not use --shared-ngctp2/http3 switch
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 14 Oct 2022 16:23:40 +0200
++++
++++nodejs (18.11.0+dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 18.11.0+dfsg
++++  * armhf: minimal target is vfpv3-d16 (Closes: #1021546).
++++  * copyright: update for a new file
++++  * Drop nghttp3, ngtcp2 deps: useless without openssl-quic
++++  * Refresh patches
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 14 Oct 2022 15:30:25 +0200
++++
++++nodejs (18.10.0+dfsg-6) unstable; urgency=medium
++++
++++  * Move builtins dependencies to libnode108 (Closes: #1021107).
++++  * Mark another flaky test for riscv64
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 10 Oct 2022 10:49:19 +0200
++++
++++nodejs (18.10.0+dfsg-5) unstable; urgency=medium
++++
++++  * Breaks: node-jest (<< 29~)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 09 Oct 2022 17:42:53 +0200
++++
++++nodejs (18.10.0+dfsg-4) unstable; urgency=medium
++++
++++  * Backport armel test failure fix
++++  * Allow undici-related test failures on riscv64 for now
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 01 Oct 2022 15:05:49 +0200
++++
++++nodejs (18.10.0+dfsg-3) unstable; urgency=medium
++++
++++  * Avoid depending on node to build node. Fix build.
++++  * Allow failure of another version of an already flaky test,
++++    seen to be failing on i386 - possibly on 32-bits architectures.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 30 Sep 2022 01:23:56 +0200
++++
++++nodejs (18.10.0+dfsg-2) unstable; urgency=medium
++++
++++  * Revert /etc/default/nodejs and wrapper - env is enough
++++    Also avoids future bugs with node's process.execPath
++++  * Depends on externalized builtins (Closes: #1020980)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 29 Sep 2022 23:55:15 +0200
++++
++++nodejs (18.10.0+dfsg-1) unstable; urgency=medium
++++
++++  [ Yadd ]
++++  * Drop /usr/lib/nodejs support
++++
++++  [ Jérémy Lal ]
++++  * New upstream version 18.10.0+dfsg
++++  * Configurable builtins paths:
++++    + upstream patch implementing it
++++    + augment upstream patch to support acorn, acorn-walk
++++    + configure flags for acorn, undici, cjs-module-lexer
++++    + use pkgjs-ln for system-installed modules
++++    + exclude acorn, undici, cjs-module-lexer,
++++      they are all distributed and built in their own package
++++  * Allow custom flags to be set in /etc/defaults/nodejs
++++  * Patch openssl.conf used for tests to allow smoil keys,
++++    and disable some failing tests while waiting for upstream
++++    to upgrade their test keys. (Closes: #1020592)
++++  * Use shared ngtcp2, nghttp3
++++  * doc-generator:
++++    + fix node_modules setup using pkgjs-ln
++++    + update type-parser.mjs
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 29 Sep 2022 11:50:59 +0200
++++
++++nodejs (18.8.0+dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 18.8.0+dfsg
++++  * Drop patches applied upstream
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 03 Sep 2022 16:53:05 +0200
++++
++++nodejs (18.7.0+dfsg-5) unstable; urgency=medium
++++
++++  * Tighten dependency with armv6k-support
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 01 Sep 2022 18:33:49 +0200
++++
++++nodejs (18.7.0+dfsg-4) unstable; urgency=medium
++++
++++  * lintian overrides:
++++    + fix embedded-library zlib
++++    + slightly more info about source-is-missing
++++  * copyright: fix license short name for base64
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 30 Aug 2022 15:52:53 +0200
++++
++++nodejs (18.7.0+dfsg-3) unstable; urgency=medium
++++
++++  * Rename and DEP-3 latest armel patch
++++  * Restore build using gcc 11,
++++    it was removed by mistake in the previous upload
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 29 Aug 2022 17:03:45 +0200
++++
++++nodejs (18.7.0+dfsg-2) unstable; urgency=medium
++++
++++  * Build on armel where armv6k, vfpv2 is supported:
++++    + control: add Architecture: armel
++++    + control: depends armv6-support:armel, vfpv2-support:armel
++++    + rules: set -march=armv6k
++++    + patch: add --with-arm-version configure.py flag
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 29 Aug 2022 00:09:15 +0200
++++
++++nodejs (18.7.0+dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 18.7.0+dfsg
++++  * Update flaky riscv64: sequential/test-cpu-prof-drained.
++++    Closes: #1016707.
++++  * copyright: deps/base64 BSD-2-clause
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 12 Aug 2022 17:21:50 +0200
++++
++++nodejs (18.6.0+dfsg-5) unstable; urgency=medium
++++
++++  * Build-Depends gcc-11, g++-11.
++++    Allow transition while waiting for #1016628 to be sorted out.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 04 Aug 2022 17:32:43 +0200
++++
++++nodejs (18.6.0+dfsg-4) unstable; urgency=medium
++++
++++  * Patches: Closes: #1016305
++++    + upstream fix getaddrinfo without network
++++    + fix test failing with libuv1 >= 1.44.2
++++  * Patch: upstream fix ppc64 crash with regexp. Closes: #1016381.
++++  * Drop RES_OPTIONS to avoid test failures with localhost
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 01 Aug 2022 22:37:57 +0200
++++
++++nodejs (18.6.0+dfsg-3) unstable; urgency=medium
++++
++++  * Patch: add sequential/test-worker-prof to failing riscv64 tests
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 18 Jul 2022 23:22:08 +0200
++++
++++nodejs (18.6.0+dfsg-2) experimental; urgency=medium
++++
++++  * Fix path where to look for @types/node
++++    when fixing permissions.
++++    Also use execute_after_dh_fixperms.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 16 Jul 2022 17:38:26 +0200
++++
++++nodejs (18.6.0+dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 18.6.0+dfsg
++++  * Patches:
++++    + work around IPv6 getaddrinfo EAI_AGAIN localhost failure
++++      with some tests on zandonai
++++    + reenable global fetch and its tests
++++  * Build-Depends node-undici
++++  * Bump Standards-Version, no change
++++  * Fix @types/node permissions
++++  * lintian overrides:
++++    + drop unneeded libnode108 lines
++++    + update to new format
++++    + ignore source-is-missing for regenerated doc
++++  * copyright:
++++    + tools/rpm/ no longer here
++++    + fix order of paragraphs
++++    + fix wildcard
++++    + remove useless Licenses
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 16 Jul 2022 15:35:17 +0200
++++
++++nodejs (18.4.0+dfsg-2) experimental; urgency=medium
++++
++++  * Breaks libnode72 << 13 because of bullseye/security
++++    (Closes: #1013968)
++++  * Fix bash-completion link (Closes: #977792)
++++  * Patch: disable fetch until undici is accepted (Closes: #1014214)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 04 Jul 2022 11:37:13 +0200
++++
++++nodejs (18.4.0+dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 18.4.0+dfsg
++++  * lintian-overrides:
++++    + drop node-acorn/*, no longer a component
++++    + improve embedded-library zlib and comment it
++++  * copyright:
++++    + remove useless files and paragraphs
++++    + fix order of paragraphs
++++  * patches:
++++    + remove very old unapplied files
++++    + fix non-utf8 encoding in one patch
++++    + fix mipsel compilation failure
++++  * unidici missing: do not crash, just have no exports
++++  * postpone usr/include/nodejs renaming, do it
++++    in libnode-dev.files.
++++  * Fix badly reverted usr/include/nodejs rename:
++++    /usr/include/node is for n-api, nodejs for old addons
++++  * hardening flags: -pie is no longer needed
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 21 Jun 2022 21:14:28 +0200
++++
++++nodejs (18.3.0+dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 18.3.0+dfsg
++++  * Follow upstream make install:
++++    + let node install its own headers
++++    + keep a symlink to /usr/include/nodejs,
++++      will be removed when node-gyp is updated
++++  * watch latest version
++++  * gbp on master
++++  * Add noautodbgsym to README.source profiles
++++  * Clean debian/nodejs.bash-completion
++++  * Drop openssl-cnf.patch, upstream use openssl 3
++++  * Skip another test using undici
++++  * Bump libnode abi
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 14 Jun 2022 10:40:33 +0200
++++
++++nodejs (16.15.1+dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 16.15.1+dfsg
++++  * Fix completion generation, support "nodejs" cli
++++    Closes: #977792
++++  * Patch to fix mipsel crypto init error strings (Closes: #1011101)
++++  * Patch: more flaky riscv64 cpu tests (Closes: #1012670)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 13 Jun 2022 09:11:34 +0200
++++
++++nodejs (16.15.0+dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 16.15.0+dfsg
++++  * Go back to +dfsg
++++  * dfsg-exclude undici (missing source for compiled wasm)
++++  * Will B-D undici <!pkg.nodejs.nobuiltin> when available
++++  * bash-completion from node --completion-bash (Closes: #977792)
++++  * Patches:
++++    + build/skip-crypto-engine-check no longer needed
++++    + test-diagnostic-dir-cpu-prof is flaky on riscv64
++++      (Closes: #1011100)
++++  * Update README.source
++++  * Fix undici source name
++++  * Update openssl.cnf to fix tests on mipsel (Closes: #1011339)
++++  * Improve doc-generator
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 27 May 2022 15:48:16 +0200
++++
++++nodejs (16.14.2+dfsg1-1) unstable; urgency=medium
++++
++++  * Repack dfsg1, reimport without node-acorn
++++  * OPENSSL_CONF: absolute path with openssl 3 (Closes: #1006246)
++++  * Mark test-cpu-prof-exit as flaky on riscv64
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 11 May 2022 11:02:01 +0200
++++
++++nodejs (16.14.2+dfsg-5) unstable; urgency=medium
++++
++++  * Patches:
++++    + skip failing arch-dependent assertions.
++++      Closes: #1010069
++++    + free test-crypto-engine from build artifacts.
++++      Closes: #1010497
++++    + test-cpu-prof-worker-argv flaky on riscv64.
++++      Closes: #1010509
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 03 May 2022 08:29:29 +0200
++++
++++nodejs (16.14.2+dfsg-4) unstable; urgency=medium
++++
++++  * Upload to unstable
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 02 May 2022 10:49:50 +0200
++++
++++nodejs (16.14.2+dfsg-3) experimental; urgency=medium
++++
++++  * rules: add missing symlink for doc generation
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 29 Mar 2022 15:39:42 +0200
++++
++++nodejs (16.14.2+dfsg-2) experimental; urgency=medium
++++
++++  * Update nobuiltin to pkg.nodejs.nobuiltin
++++  * nodejs breaks: (Closes: #1007248)
++++    + libnode72 < 12.22.10~dfsg
++++    + libnode83 < 16.13.2+really14.19.1~dfsg
++++  * README.source: improve explanations
++++  * rules: two-stage builds w.r.t. node-acorn
++++  * watch: remove node-acorn component
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 29 Mar 2022 14:33:32 +0200
++++
++++nodejs (16.14.2+dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 16.14.2+dfsg
++++  * Change ~dfsg to +dfsg
++++  * copyright:
++++    + dfsg-exclude corepack - missing source
++++    + remove tools/lint-md.mjs
++++  * rules: do not install corepack
++++  * B-D libuv >= 1.43
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 23 Mar 2022 15:34:41 +0100
++++
++++nodejs (16.13.2+really14.19.1~dfsg-5) unstable; urgency=medium
++++
++++  [ Yadd ]
++++  * Fix @types/node install (Closes: #1008110)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 22 Mar 2022 19:59:55 +0100
++++
++++nodejs (16.13.2+really14.19.1~dfsg-4) unstable; urgency=medium
++++
++++  * Allow test-debugger-preserve-breaks to fail
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 22 Mar 2022 10:15:06 +0100
++++
++++nodejs (16.13.2+really14.19.1~dfsg-3) unstable; urgency=medium
++++
++++  * Test timeouts: try to stay under the radar
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 22 Mar 2022 02:21:12 +0100
++++
++++nodejs (16.13.2+really14.19.1~dfsg-2) unstable; urgency=medium
++++
++++  * Upload to unstable
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 22 Mar 2022 00:22:05 +0100
++++
++++nodejs (16.13.2+really14.19.1~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 16.13.2+really14.19.1~dfsg
++++  * control: Break only libnode72 << 12.22.10~, since it can be
++++    co-installed with libnode83. Only Replace it.
++++    Likewise, if version Break: libnode64 << 10.24.1~.
++++  * README.source: no need to rebuild arch-independent packages
++++  * Drop dh_nodejs, totally useless now
++++  * salsa-ci:
++++    + use debian.yml script
++++    + disable i386 build
++++    + disable build checks - autopkgtest runs the same ones
++++    + disable dbgsym generation to reduce artifacts size
++++  * Let tests using unprivileged port fail. Closes: #994613.
++++  * watch: uversionmangle with really version
++++  * Skip parallel/test-child-process-stdio-overlapped
++++    It depends on a binary that is not part of the build targets
++++  * Namespace custom profile pkg.nodejs.nobuiltin
++++  * copyright:
++++    + add license for node-acorn component
++++    + update c-ares paths
++++    + removed paths in deps/v8/benchmarks/
++++  * Install @types/node only *.d.ts
++++  * Lintian overrides:
++++    + update expressions
++++    + v8 uses a heavily modified zlib, allow embedding.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 21 Mar 2022 13:43:29 +0100
++++
++++nodejs (16.13.2+really14.19.0~dfsg-2) experimental; urgency=medium
++++
++++  [ Yadd ]
++++  * Update standards version to 4.6.0, no changes needed.
++++  * Make node_modules links (Closes: #1005089)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 01 Mar 2022 09:50:07 +0100
++++
++++nodejs (16.13.2+really14.19.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 14.19.0~dfsg
++++    Workaround the version currently in experimental
++++  * Depends icu >= 67, c-ares >= 1.18.1, libuv1 >= 1.42.0
++++  * Patches:
++++    + stop using private cares header
++++    + drop ppc64 patch, hopefully fixed now
++++    + replace tools/doc patch by copy in debian/doc-generator
++++    + mark test-debugger-heap-profiler as flaky
++++    + regroup and rename patches files
++++    + test helper not skipping for 32-bit mipsel
++++    + upstream fix test-datetime-change-notify
++++    + drop fix_daylight_dublin, applied upstream
++++    + skip corepack tests
++++  * doc-generator:
++++    + rebase changes on latest upstream doc/tools
++++    + update, port to js-yaml 4 and marked 4
++++    + tighten dependency on js-yaml for esm support
++++  * source overrides: update expressions
++++  * Update README.source with info on two-stage build
++++  * Bootstrap nodejs: (wip)
++++    + add nobuiltin profile, installs files in
++++      /usr/share/nodejs/node when selected,
++++      otherwise just install empty files
++++    + node-acorn=8.5.0 component for stage 1 builds,
++++      update gbp.conf
++++    + control: more nocheck, nobuiltin flags
++++    + instructions in README.source
++++    + node-highlight.js is Build-Depends-Indep
++++    + doc-generator depends on external acorn
++++    + flag !nocheck and !nodoc build-deps
++++  * rules:
++++    + fix check target for auto_test
++++    + acorn is needed both for arch and indep targets
++++    + fix nodejs.install dest dirs
++++    + configure with verbose
++++    + do not install corepack
++++  * Drop nodepath, it assumes modules to be installed
++++  * copyright:
++++    + fix lint-md path
++++    + highlight.pack.js no longer in tarball
++++    + update deps/cares paths
++++    + dfsg-exclude corepack - missing source
++++    + various paths fixes
++++
++++  [ Bastien Roucariès ]
++++  * Bug fix: "nodejs FTCBFS: uses build architecture build tools such as
++++    gcc or pkg-config", thanks to Helmut Grohne (Closes: #996195).
++++  * Document gyp target/host in debian/rules
++++
++++  [ Helmut Grohne ]
++++  * Add native build dependencies for cross compiling. (Closes: #996416)
++++
++++ -- Jérémy Lal <kapouer@plummer.debian.org>  Sat, 05 Feb 2022 18:41:31 +0000
++++
++++nodejs (14.17.4~dfsg-1) experimental; urgency=medium
++++
++++  [ Helmut Grohne ]
++++  * Add native build dependencies for cross compiling. (Closes: #996416)
++++
++++  [ Jérémy Lal ]
++++  * New upstream version 14.17.4~dfsg
++++  * Enable powerpc arch. Closes: #991638
++++
++++  [ Bastien Roucariès ]
++++  * Team upload
++++  * MA: allowed. Thanks Helmut.
++++  * B-D sse2-support. Closes: #994720
++++  * BD: python3:native
++++  * Fix FTCBFS by using crosscompile option
++++  * Document gyp target/host in debian/rules
++++
++++ -- Bastien Roucariès <rouca@debian.org>  Thu, 23 Sep 2021 15:25:09 +0000
++++
++++nodejs (14.17.0~dfsg-2) experimental; urgency=medium
++++
++++  * Install missing headers. Closes: #990282
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 24 Jun 2021 16:10:27 +0200
++++
++++nodejs (14.17.0~dfsg-1) experimental; urgency=medium
++++
++++  * Switch to branches -14.x
++++  * New upstream version 14.17.0~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 17 May 2021 23:48:33 +0200
++++
++++nodejs (14.16.1~dfsg-1) experimental; urgency=medium
++++
++++  [ James Addison ]
++++  * THP ELF assembly: Add .note.GNU-stack section (Closes: #980272)
++++
++++  [ Jérémy Lal ]
++++  * New upstream version 14.16.1~dfsg
++++  * Add Breaks: node-babel-runtime (<< 7). Closes:#987301
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 06 May 2021 17:02:20 +0200
++++
++++nodejs (14.16.0~dfsg-1) experimental; urgency=medium
++++
++++  [ Jérémy Lal ]
++++  * New upstream version 14.16.0~dfsg
++++    Fixed vulnerabilities:
++++    + CVE-2021-22883: HTTP2 'unknownProtocol' cause DoS
++++      by resource exhaustion
++++    + CVE-2021-22884: localhost6 DNS rebinding in --inspect
++++  * Refresh make-doc patch
++++  * Patch to always use pure javascript cjs lexer
++++  * copyright: cjs-module-lexer is expat
++++  * copyright: exclude cjs-module-lexer unbuildable files
++++  * copyright: fix some copyright years
++++  * copyright: shjs is no longer used
++++  * lintian-overrides: false positive for a unicode regexp
++++
++++  [ Xavier Guimard ]
++++  * Embed @types/node 14
++++  * Provides node-types-node (Closes: #979698)
++++  * Use secure copyright file specification URI.
++++  * Set upstream metadata fields: Security-Contact.
++++  * Bump debhelper compatibility level to 13
++++  * Declare compliance with policy 4.5.1
++++  * Use secure URI in Homepage field.
++++  * Add "Rules-Requires-Root: no"
++++  * Modernize debian/watch
++++  * Add ctype=nodejs to component(s)
++++  * Update d/copyright urls
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 04 Mar 2021 00:29:51 +0100
++++
++++nodejs (14.13.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 14.13.0~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 06 Oct 2020 18:57:02 +0200
++++
++++nodejs (14.12.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 14.12.0~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 23 Sep 2020 18:54:27 +0200
++++
++++nodejs (14.11.0~dfsg-2) experimental; urgency=medium
++++
++++  * Rewrite changelog with the CVE
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 17 Sep 2020 18:11:35 +0200
++++
++++nodejs (14.11.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 14.11.0~dfsg
++++    Vulnerabilities fixed
++++    + CVE-2020-8251
++++      Denial of Service by resource exhaustion CWE-400 due to
++++      unfinished HTTP/1.1 requests (Critical)
++++    + CVE-2020-8252
++++      fs.realpath.native on may cause buffer overflow (Medium)
++++  * Refresh patches
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 17 Sep 2020 01:21:19 +0200
++++
++++nodejs (14.9.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 14.9.0~dfsg
++++  * Drop python3 patch, applied upstream
++++  * Update make-doc patch to ignore false type-match errors
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 29 Aug 2020 14:23:27 +0200
++++
++++nodejs (14.8.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 14.8.0~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 11 Aug 2020 22:46:00 +0200
++++
++++nodejs (14.7.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 14.7.0~dfsg (Closes: #968139).
++++  * Two tests won't pass on IPv6-only hosts
++++  * There was no such thing as libnode64-dev, remove it
++++  * libnode83 breaks libnode64, libnode72 Closes: #966008
++++  * nodejs-doc: depends node-highlight.js instead of libjs
++++  * python3 support (Closes: #967032):
++++    + tests/control: depends python3, python3-distutils
++++    + python3 patch: use env.PYTHON in two tests
++++    + export PYTHON = python3 for Makefile
++++  * tests/control: drop cdbs, now useless
++++  * Update make-doc.patch to deal with new syntax in esm.md
++++  * Refresh patches:
++++    + drop mips-fix
++++    + drop revert-extra-ca
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 10 Aug 2020 00:43:34 +0200
++++
++++nodejs (14.4.0~dfsg-2) experimental; urgency=medium
++++
++++  * Just completely disable ADDRCONFIG flag
++++  * Multiarch hinter: remove Multi-Arch: same on libnode-dev
++++  * Patch to fix ppc64 build
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 14 Jun 2020 16:59:47 +0200
++++
++++nodejs (14.4.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 14.4.0~dfsg
++++  * Bump libnode ABI to 83
++++  * Build-Depends python3-distutils
++++  * Fix make-doc.patch to allow no description
++++  * Fix make-doc.patch for stricter example heading match
++++  * copyright: add zlib copy
++++  * rules: JOBS=1 on 32-bit architectures only
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 11 Jun 2020 23:11:59 +0200
++++
++++nodejs (12.18.3~dfsg-4) unstable; urgency=medium
++++
++++  * python3 patch: use env.PYTHON in two tests
++++    Closes: #967032 for good.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 08 Aug 2020 14:09:43 +0200
++++
++++nodejs (12.18.3~dfsg-3) unstable; urgency=medium
++++
++++  * export PYTHON = python3 for Makefile
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 07 Aug 2020 03:33:58 +0200
++++
++++nodejs (12.18.3~dfsg-2) unstable; urgency=medium
++++
++++  * tests/control: depends python3, python3-distutils, drop cdbs
++++    Thanks Moritz Mühlenhoff for noticing that.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 05 Aug 2020 10:40:31 +0200
++++
++++nodejs (12.18.3~dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 12.18.3~dfsg
++++  * B-D python3, python3-distutils
++++    patch configure to use python3 (Closes: #967032)
++++  * nodejs-doc: depends libjs-highlight.js
++++  * copyright: dfsg-exclude highlight.pack.js,
++++    replace sh_javascript.min.js
++++  * source/lintian-overrides: drop sh_javascript.min.js override
++++  * Drop patch that restores unminified sh_javascript.min.js
++++  * Update make-doc.patch to deal with new syntax in esm.md
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 05 Aug 2020 00:11:08 +0200
++++
++++nodejs (12.18.2~dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 12.18.2~dfsg
++++  * Drop Breaks: libnode64-dev, package does not exist
++++  * Drop libnode-dev Depends: nodejs, useless
++++  * libnode72 breaks libnode64. Closes: #966008
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 22 Jul 2020 10:36:58 +0200
++++
++++nodejs (12.18.1~dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 12.18.1~dfsg
++++  * Update gbp.conf for *-12.x branches
++++  * Just completely disable ADDRCONFIG flag,
++++    but skip the two failing tests anyway
++++  * Multiarch hinter: remove Multi-Arch: same on libnode-dev
++++  * Patch to fix ppc64 build
++++  * rules: JOBS=1 on 32-bit only
++++  * libnode-dev depends nodejs: let addons test all right ?
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 30 Jun 2020 19:11:03 +0200
++++
++++nodejs (12.18.0~dfsg-3) unstable; urgency=medium
++++
++++  * mipsel does not support a feature leading to test failures
++++  * Two tests won't pass on IPv6-only hosts
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 11 Jun 2020 17:59:38 +0200
++++
++++nodejs (12.18.0~dfsg-2) unstable; urgency=medium
++++
++++  * Do not use dns.ADDRCONFIG for localhost
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 11 Jun 2020 10:03:21 +0200
++++
++++nodejs (12.18.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 12.18.0~dfsg. Closes: #962145.
++++  * Security fixes:
++++    + CVE-2020-11080
++++    + CVE-2020-8172
++++    + CVE-2020-8174
++++  * Build-Depends nghttp2 >= 1.41.0
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 05 Jun 2020 09:07:20 +0200
++++
++++nodejs (12.17.0~dfsg-4) experimental; urgency=medium
++++
++++  * Fix openssl.cnf path in libnode-dev.install
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 03 Jun 2020 09:59:43 +0200
++++
++++nodejs (12.17.0~dfsg-3) experimental; urgency=medium
++++
++++  * nodejs-doc: remove placeholder in long desc,
++++    libnode__ABI is libnode72
++++  * install missing files:
++++    + libnode: node.stp systemtap config
++++    + nodejs: gdbinit, lldb_commands.py
++++  * move files in better paths (backward-compatibly):
++++    + usr/include/openssl.cnf to usr/share/doc/nodejs
++++    + usr/include/v8 links to usr/include/node
++++  * mips patches:
++++    + reduce reserved memory for mksnapshot to avoid oom
++++    + test-cli-node-options skips --jitless
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 03 Jun 2020 02:59:20 +0200
++++
++++nodejs (12.17.0~dfsg-2) experimental; urgency=medium
++++
++++  * Build with -g1 on 32-bit, else -g
++++  * Use dh --max-parallel=1 on 32-bit
++++  * Backport v8 commit to fix mips snapshots
++++  * Install devel files in /usr/include/node,
++++    keep the old locations for backward compatibility.
++++  * Use new alioth-lists email for maintainer
++++  * nodejs-doc: add misc:Depends
++++  * Standards-Version 4.5.0, no change required
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 01 Jun 2020 15:17:35 +0200
++++
++++nodejs (12.17.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 12.17.0~dfsg
++++  * Ignore dh_dwz failures
++++  * Depends sse2-support on i386. Closes: #961621
++++  * copyright: deps/zlib/doc is no longer bundled
++++  * Drop icu 67 patch
++++  * On 32bit archs, save memory with -g1 and --max-parallel=1
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 29 May 2020 22:34:25 +0200
++++
++++nodejs (12.16.3~dfsg-2) experimental; urgency=medium
++++
++++  * Revert upstream commit, fix test-tls-root-certificates failure
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 30 Apr 2020 17:47:19 +0200
++++
++++nodejs (12.16.3~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 12.16.3~dfsg
++++  * dh_dwz: set a lower low-mem-die-limit
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 30 Apr 2020 00:19:39 +0200
++++
++++nodejs (12.16.2~dfsg-2) experimental; urgency=medium
++++
++++  * Fix arch all build: skip tests, make install
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 26 Apr 2020 23:28:38 +0200
++++
++++nodejs (12.16.2~dfsg-1) experimental; urgency=medium
++++
++++  [ Xavier Guimard ]
++++  * Add upstream/metadata
++++  * Disable test-release-npm test
++++  * Switch to dh, Bump debhelper compatibility level to 12
++++  * New upstream version 12.16.1~dfsg
++++  * Refresh patches
++++
++++  [ Olivier Tilloy ]
++++  * Fix building architecture-independent doc package
++++    (Closes: #952629)
++++
++++  [ Jérémy Lal ]
++++  * Revert "Override any source-is-missing - workaround pattern issues"
++++  * Simplify and tighten lintian overrides
++++  * make-doc: drop tools/doc/node_modules target
++++  * Exclude brotli from deps, use system-installed one
++++  * Remove brotli from copyright
++++  * watch xz
++++  * New upstream version 12.16.2~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 26 Apr 2020 21:38:16 +0200
++++
++++nodejs (12.13.1~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 12.13.1~dfsg
++++  * gsplit-dwarf for all mips variants
++++  * Standards-Version 4.4.1
++++  * Non-trivial refresh of make-doc patch
++++  * Remove uv 1.30 compatibility patch
++++  * Depends libuv1-dev >= 1.33
++++  * Override source-is-missing to work around pattern matching issues
++++  * Comment kfreebsd patch in series to keep lintian quiet
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 19 Nov 2019 15:34:06 +0100
++++
++++nodejs (12.13.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 12.13.0~dfsg
++++  * Link to atomic using a patch, LDFLAGS is not enough
++++  * Need libuv1-dev >= 1.32.0
++++  * Do not run parallel jobs at all (consumes too much memory,
++++    and may make some tests fail).
++++  * Use shared libhttp-parser (>= 2.9.2) again
++++  * copyright: update paths
++++  * Standards-Version 4.4.1
++++  * Ignore source-is-missing for long lines
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 01 Nov 2019 11:19:03 +0100
++++
++++nodejs (12.10.0~dfsg-2) experimental; urgency=medium
++++
++++  * test: test-npm-version fails because npm not bundled
++++  * ppc64 not supported: https://github.com/nodejs/node/issues/29534
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 16 Sep 2019 12:28:37 +0200
++++
++++nodejs (12.10.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 12.10.0~dfsg
++++  * Tighten b-d pkg-js-tools (Closes: #934240)
++++  * Use nodepath to setup links to acorn properly
++++  * README: match current modules search paths (Closes:#939001)
++++  * copyright:
++++    + add rimraf paragraph
++++    + couple new files in v8
++++  * Revert upstream commit to stay compatible with uv 1.30
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 12 Sep 2019 01:15:23 +0200
++++
++++nodejs (12.8.0~dfsg-2) experimental; urgency=medium
++++
++++  * Fix js-yaml install path using nodepath (Closes: #934228)
++++  * Update make-doc.patch to avoid fetching remote changelog
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 08 Aug 2019 14:53:09 +0200
++++
++++nodejs (12.8.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 12.8.0~dfsg (Closes: #934207)
++++  * Fix make-doc.patch (Closes: #933840)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 08 Aug 2019 12:13:21 +0200
++++
++++nodejs (12.7.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 12.7.0~dfsg (Closes: #932991)
++++  * Use shared libuv >= 1.30.1
++++  * libnode-dev depends libuv1-dev (Closes: #905415)
++++  * Build-Depends node-debbundle-acorn >= 6.1.0~
++++  * Build-Depends libnghttp2-dev >= 1.39.1
++++  * Tighten dependency on icu >= 64.0~
++++  * rules: set nghttp2 lib name - upstream assumes lib prefix
++++  * Upstream patch to fix linking against libnode
++++  * Build with snapshot https://github.com/nodejs/node/issues/28675
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 03 Aug 2019 19:48:03 +0200
++++
++++nodejs (12.2.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 12.2.0~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 07 May 2019 21:39:23 +0200
++++
++++nodejs (12.1.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 12.1.0~dfsg
++++  * Unapply all openssl 1.1.1 support patches
++++  * Unapply silencing of buffer deprecations warnings
++++  * Build using embedded uv until libuv1 1.28 is available
++++  * Build using node-acorn >= 6, node-acorn-walk
++++  * Update copyright file
++++  * dfsg-exclude tools/lint-md.js, dependencies to rebuild it
++++    are not available at the moment.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 02 May 2019 11:32:28 +0200
++++
++++nodejs (10.16.3~dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 10.16.3~dfsg (Closes: #934885)
++++  * Avoid two tests to cause a FTBFS (Closes: #919588)
++++  * Delete applied ssl 1.1.1 compatibility patches
++++  * Never run tests in parallel to avoid memory exhaustion
++++  * README: match current modules search paths (Closes: #939001)
++++  * Fix make-doc patch, simplify make using NODE_PATH
++++  * B-D pkg-js-tools
++++  * Tighten dep on libuv1 version
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 11 Sep 2019 10:39:30 +0200
++++
++++nodejs (10.15.3~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 10.15.3~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 11 Mar 2019 09:47:26 +0100
++++
++++nodejs (10.15.2~dfsg-2) unstable; urgency=medium
++++
++++  * Avoid two tests to cause a FTBFS (Closes #919588)
++++    + test-fs-error-messages fails with eatmydata
++++    + test-net-listen-after-destroying-stdin is flaky
++++  * gbp for debian/buster branch
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 08 Apr 2019 15:06:40 +0200
++++
++++nodejs (10.15.2~dfsg-1) unstable; urgency=high
++++
++++  * New upstream version 10.15.2~dfsg
++++    Slowloris HTTP Denial of Service with keep-alive
++++    (CVE-2019-5737)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 28 Feb 2019 15:52:30 +0100
++++
++++nodejs (10.15.1~dfsg-5) unstable; urgency=medium
++++
++++  * Install only headers
++++  * /usr/include/v8 should contain the headers directly
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 09 Feb 2019 11:55:56 +0100
++++
++++nodejs (10.15.1~dfsg-4) experimental; urgency=medium
++++
++++  * Add libv8-dev symlinks:
++++    + libv8_libbase.so
++++    + libv8_libplatform.so
++++    + libv8_libsampler.so
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 08 Feb 2019 16:13:57 +0100
++++
++++nodejs (10.15.1~dfsg-3) experimental; urgency=medium
++++
++++  * Provides libv8-dev (Closes: #920329)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 08 Feb 2019 14:25:03 +0100
++++
++++nodejs (10.15.1~dfsg-2) unstable; urgency=medium
++++
++++  * Fix Build-Deps and add libssl-dev to libnode-dev.
++++    Closes: #921074.
++++  * Refactor deps in debian/rules
++++  * Declare Breaks properly in rules/control.in.in
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 01 Feb 2019 22:18:18 +0100
++++
++++nodejs (10.15.1~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 10.15.1~dfsg
++++  * Backport upstream-approved Node 11 openssl 1.1.1a support
++++    (except a test that was weird to backport).
++++
++++  [ Mattia Rizzolo ]
++++  * Add Breaks:node-modern-syslog (<< 1.1.4-2) to libnode64.
++++    node-modern-syslog before 1.1.4-2 depended on the nodejs
++++    ABI, but didn't have an appropriate dependency.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 31 Jan 2019 09:54:11 +0100
++++
++++nodejs (10.15.0~dfsg-10) unstable; urgency=medium
++++
++++  * M-A: same on libnode-dev, nodejs-dev
++++  * Drop nodejs-dev package.
++++    Addons should instead:
++++    + Build-Depends libnode-dev, node-gyp
++++    + remove dh --with nodejs argument in debian/rules
++++    + use debhelper >= 10 because it strips and shlibs *.node files
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 25 Jan 2019 13:51:37 +0100
++++
++++nodejs (10.15.0~dfsg-9) unstable; urgency=medium
++++
++++  * M-A: foreign on nodejs-doc
++++  * libnode-dev depends libuv1-dev (Closes: #905415)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 21 Jan 2019 08:33:36 +0100
++++
++++nodejs (10.15.0~dfsg-8) unstable; urgency=medium
++++
++++  * Suggests npm - because nodejs must not be blocked by it.
++++    Closes: #918388.
++++  * Patch to silence buffer deprecations. Closes: #918456.
++++    This patch is meant to ease migration to testing, and to be
++++    removed as soon as possible.
++++    It avoids printing to stderr deprecation warning about
++++    calling Buffer as a constructor without the new operator.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 06 Jan 2019 11:18:34 +0100
++++
++++nodejs (10.15.0~dfsg-7) unstable; urgency=medium
++++
++++  * Add missing shlibs, Closes: #917961.
++++  * Nodejs 10 is here, Close #914965.
++++  * libnode-dev: install openssl.cnf in /usr/include/nodejs
++++  * Recommends npm, Closes: #918388.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 05 Jan 2019 19:48:20 +0100
++++
++++nodejs (10.15.0~dfsg-6) unstable; urgency=medium
++++
++++  * nodejs: strict dependency on libnode64
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 01 Jan 2019 19:03:27 +0100
++++
++++nodejs (10.15.0~dfsg-5) experimental; urgency=medium
++++
++++  * mips(el): -latomic
++++  * Remove split-dwarf for any arch, only for mips
++++  * Forgot to export LDFLAGS
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 29 Dec 2018 17:16:30 +0100
++++
++++nodejs (10.15.0~dfsg-4) experimental; urgency=medium
++++
++++  * CPPFLAGS, CFLAGS -gsplit-dwarf for any arch
++++    Why would this be reserved to mips anyway.
++++  * Standards-Version 4.3.0
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 28 Dec 2018 11:19:02 +0100
++++
++++nodejs (10.15.0~dfsg-3) experimental; urgency=medium
++++
++++  * Add CPPFLAGS += -gsplit-dwarf as well
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 28 Dec 2018 10:04:23 +0100
++++
++++nodejs (10.15.0~dfsg-2) experimental; urgency=medium
++++
++++  * Add -gsplit-dwarf on mips to work around #829139
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 28 Dec 2018 02:38:02 +0100
++++
++++nodejs (10.15.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 10.15.0~dfsg
++++  * copyright:
++++    + add license for src/large_pages/*
++++    + remove unused paragraph
++++  * Build using bundled http-parser (unreleased changes)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 27 Dec 2018 13:30:26 +0100
++++
++++nodejs (10.14.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 10.14.0~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 28 Nov 2018 18:59:19 +0100
++++
++++nodejs (10.13.0~dfsg-3) experimental; urgency=medium
++++
++++  * Update uv headers path
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 15 Nov 2018 10:50:30 +0100
++++
++++nodejs (10.13.0~dfsg-2) experimental; urgency=medium
++++
++++  * Upstream patches for openssl 1.1.1 support
++++  * Build using shared openssl and depend on it again
++++  * Test suite assumes embedded openssl.cnf
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 01 Nov 2018 21:48:45 +0100
++++
++++nodejs (10.13.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 10.13.0~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 30 Oct 2018 10:26:02 +0100
++++
++++nodejs (10.12.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 10.12.0~dfsg
++++  * openssl: use bundled copy because node is not compatible
++++    with openssl 1.1.1 right now (and there is no upstream fix).
++++    On the plus side:
++++    + this avoids ABI breakage for C++ addons (Closes: #904274)
++++    + upstream have security support for openssl vulns
++++    On the down side, it's a policy 4.13 violation.
++++  * copyright:
++++    + no longer exclude marked since it is removed
++++    + drop paragraph for pthread-barrier.h
++++  * Multiarch and DFHS:
++++    + patch adding --node-relative-path configuration variable
++++    + "/usr/lib/<$DEB_HOST_MULTIARCH>/nodejs" for c++ addons
++++    + "/usr/share/nodejs" for pure javascript modules
++++    + "/usr/lib/nodejs" for smooth migration of current modules
++++    + Expose those configuration variables in
++++      process.config.variables.node_relative_path
++++      process.config.variables.arch_triplet
++++    + In particular, if prefix is /usr/local all paths move there.
++++    + Fix test expecting lib/node, should be lib/nodejs.
++++    (Closes: #901474)
++++  * Build using shared libuv1 again (Closes: #905415)
++++  * Standards-Version 4.2.1
++++  * Add support for mips64r6el arch (Closes: #905886)
++++  * Drop libnodeXX-dev in favor of libnode-dev (Closes: #901297)
++++  * Patch tools/doc to restore old dependencies on marked,
++++    while waiting for remarked/rehyped modules to be available.
++++  * sequential/test-http2-session-timeout is a flaky test
++++  * Add lintian override for test/fixtures/assert-long-line.js,
++++    false source-is-missing positive.
++++  * Build using LANG=C
++++  * Stop excluding tools/gyp because upstream patches it
++++  * Tighten dependency on nghttp2 >= 1.34.0
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 17 Oct 2018 11:24:28 +0200
++++
++++nodejs (10.4.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 10.4.0~dfsg
++++  * libnodeXX-dev Breaks+Replaces nodejs-dev << 10 (Closes: #898024)
++++  * Standards-Version 4.1.4
++++  * Copyright:
++++            + comment the unexpected change in this BSD-3-clause
++++    + remove duplicate paragraph
++++    + remove files
++++    + add antlr4 with a BSD-3-clause license
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 11 Jun 2018 00:12:34 +0200
++++
++++nodejs (10.3.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 10.3.0~dfsg
++++  * Skip performance test
++++  * Symlink js-yaml to the expected dir for doc build
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 31 May 2018 00:38:30 +0200
++++
++++nodejs (10.1.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 10.1.0~dfsg
++++  * watch file: back to dfsg
++++  * Drop patches applied upstream
++++  * Depends libc-ares >= 1.14~ to match upstream requirement
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 10 May 2018 22:56:08 +0200
++++
++++nodejs (10.0.0~dfsg1-4) experimental; urgency=medium
++++
++++  * Multi-Arch: foreign on nodejs binary (Closes: #826890)
++++  * gbp: 10.x branches
++++  * copyright: drop eu-strip from excluded files, applied upstream
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 10 May 2018 20:49:20 +0200
++++
++++nodejs (10.0.0~dfsg1-3) experimental; urgency=medium
++++
++++  * Build and distribute libnode:
++++    + package libnode-dev, libnodeXX-dev
++++    + keep nodejs-dev for dh-nodejs and deprecate it
++++    + update packages descriptions
++++    + Multi-Arch: same on lib/dev packages (Closes: #826890)
++++  * Upstream patches fixing some tests
++++  * copyright:
++++    + dfsg-exclude non-free zlib rfc195*.txt files
++++    + minor paths updates/removals
++++  * lintian override: remove unused source-is-missing
++++    deps/v8/src/js/max-min*
++++  * Fix again installation of acorn files
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 28 Apr 2018 15:17:02 +0200
++++
++++nodejs (10.0.0~dfsg-2) experimental; urgency=medium
++++
++++  * Fix acorn files installation
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 26 Apr 2018 08:30:13 +0200
++++
++++nodejs (10.0.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 10.0.0~dfsg
++++  * copyright:
++++    + reformat to use Comment field
++++    + CNNICHashWhitelist is no longer in tarball
++++    + dfsg-exclude acorn, eu-strip
++++    + add several new sections
++++  * Build-Depends node-acorn
++++  * Bump dependency on libuv >= 1.20
++++  * Use temporarily embedded copy of libuv
++++  * Depends openssl >= 1.1.0
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 26 Apr 2018 02:18:51 +0200
++++
++++nodejs (8.11.1~dfsg-2) unstable; urgency=medium
++++
++++  * Upload to unstable
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 13 Apr 2018 09:25:37 +0200
++++
++++nodejs (8.11.1~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 8.11.1~dfsg
++++  * Revert 7e875d40, dependency on icu 60 is an upstream v8 bug
++++  * Upstream patch to avoid mandatory dependency on icu 60
++++  * Remove node-js-yaml from Build-Depends, already in Indep
++++  * Depends libhttp-parser >= 2.8
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 10 Apr 2018 21:43:32 +0200
++++
++++nodejs (8.10.0~dfsg-2) experimental; urgency=medium
++++
++++  * Drop binutils dependency (Closes: #893841)
++++  * Move repository to https://salsa.debian.org/js-team/nodejs.git
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 23 Mar 2018 09:30:55 +0100
++++
++++nodejs (8.10.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 8.10.0~dfsg
++++  * Vcs-Git for that branch
++++  * Remove openssl patches and others, applied upstream
++++  * Depends icu 60.2
++++  * Patch: build doc using node-js-yaml
++++  * Build-Depends node-js-yaml
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 16 Mar 2018 10:25:24 +0100
++++
++++nodejs (8.9.3~dfsg-12) unstable; urgency=medium
++++
++++  * Do not Build-Depend on licensecheck, ever.
++++    It's not right to hog build servers.
++++  * Drop my backport of openssl 1.1.0 compatibility,
++++    in favor of upstream backport.
++++  * Remove patch that dropped -march=z196 for it is now the
++++    minimum requirement for s390x. See also #888876.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 18 Feb 2018 21:51:10 +0100
++++
++++nodejs (8.9.3~dfsg-11) unstable; urgency=medium
++++
++++  * Patch build files to remove -march=z196 out of s390x builds
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 23 Jan 2018 18:33:36 +0100
++++
++++nodejs (8.9.3~dfsg-10) unstable; urgency=medium
++++
++++  * should be compiled with FPXX ABI on 32-bit mips
++++    (Closes: #888021).
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 22 Jan 2018 19:26:19 +0100
++++
++++nodejs (8.9.3~dfsg-9) unstable; urgency=medium
++++
++++  * On buildd always set JOBS to one during tests
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 19 Jan 2018 08:58:43 +0100
++++
++++nodejs (8.9.3~dfsg-8) unstable; urgency=medium
++++
++++  * Upstream patch: allow running test.py without configuring
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 18 Jan 2018 15:39:52 +0100
++++
++++nodejs (8.9.3~dfsg-7) unstable; urgency=medium
++++
++++  * Ensure passing JOBS with a default value of 1.
++++    Test suite inherits that value and can crash with memory errors.
++++    This attempts to fix mipsel build on mipsel-aql-02.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 08 Jan 2018 16:12:18 +0100
++++
++++nodejs (8.9.3~dfsg-6) unstable; urgency=medium
++++
++++  * test-fs-utimes might fail on some platforms
++++  * Patch to use less memory in test-zlib
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 05 Jan 2018 00:57:13 +0100
++++
++++nodejs (8.9.3~dfsg-5) unstable; urgency=medium
++++
++++  * Upload to unstable
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 04 Jan 2018 19:09:59 +0100
++++
++++nodejs (8.9.3~dfsg-4) experimental; urgency=medium
++++
++++  * Build using shared uv
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 27 Dec 2017 10:30:59 +0100
++++
++++nodejs (8.9.3~dfsg-3) experimental; urgency=medium
++++
++++  * Disable snapshot: runtime arch might be different than build
++++  * nodejs-dev is optional like source package
++++  * Fix a test result for openssl
++++  * Fix test that need alice.html
++++  * Skip test-dns-cancel-reverse-lookup, using network
++++  * Some copyright file paths updates
++++  * Standards-Version 4.1.2
++++  * Short license for zlib
++++  * Update overrides and comment
++++  * Patch test-http2-connect to not fail in some cases
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 25 Dec 2017 17:53:03 +0100
++++
++++nodejs (8.9.3~dfsg-2) experimental; urgency=medium
++++
++++  * Build with -fPIC
++++  * Build using bundled uv
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 24 Dec 2017 23:29:13 +0100
++++
++++nodejs (8.9.3~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 8.9.3~dfsg
++++  * Stop removing zlib, uv deps
++++  * Update debian/copyright for deps/uv, deps/zlib
++++  * Copyright for embedded nghttp2
++++  * test/gc/node_modules no longer in upstream tarball
++++  * Backport #16130: support both openssl 1.0.1 and 1.1.0
++++    Add openssl/fixups.patch to take care of additional fixes.
++++  * Build against latest ssl-dev version
++++  * Use node-js-yaml instead of yamlish
++++  * Drop cctest as it does not compile on debian.
++++    Help is welcome to fix this in a smarter way.
++++    Meanwhile fix_disable_cctest.patch gets rid of it.
++++  * Pass parallel option to JOBS
++++  * Update watch to use https
++++  * Add override for false positive source-is-missing
++++  * (Re?)enable -g flags
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 18 Dec 2017 17:29:20 +0100
++++
++++nodejs (6.12.0~dfsg-2) unstable; urgency=medium
++++
++++  * Whitelist allowed architectures. Closes: #881735.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 14 Nov 2017 18:25:41 +0100
++++
++++nodejs (6.12.0~dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 6.12.0~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 14 Nov 2017 00:42:34 +0100
++++
++++nodejs (6.11.4~dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 6.11.4~dfsg
++++  * Testsuite field is no longer needed
++++  * Standards-Version 4.1.1
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 04 Oct 2017 13:33:00 +0200
++++
++++nodejs (6.11.3~dfsg-1) unstable; urgency=medium
++++
++++  * New upstream version 6.11.3~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 06 Sep 2017 02:21:08 +0200
++++
++++nodejs (6.11.2~dfsg-5) unstable; urgency=medium
++++
++++  * Section javascript instead of web
++++  * Mark parallel/test-debug-args as flaky on mips64el
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 04 Sep 2017 17:26:56 +0200
++++
++++nodejs (6.11.2~dfsg-4) unstable; urgency=medium
++++
++++  * Revert "Switch to g++-6, work around FTBFS on mips64el",
++++    it got an Extra-Depends on a fixed gcc version.
++++  * Explain what about node / nodejs in README.Debian
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 02 Sep 2017 10:10:58 +0200
++++
++++nodejs (6.11.2~dfsg-3) unstable; urgency=medium
++++
++++  * README.Debian explains armel/powerpc are not supported.
++++    Closes: #872585.
++++  * Build nodejs-doc, Closes: #872488.
++++    Thanks to Felipe Sateler.
++++  * Build using g++-6 to work around FTBFS on mips64el.
++++    See: #871514.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 28 Aug 2017 17:16:03 +0200
++++
++++nodejs (6.11.2~dfsg-2) unstable; urgency=medium
++++
++++  * Upload to unstable
++++  * s_client_tls12.patch skips test relying on -tls1_1 openssl
++++    client option, and patch another test to remove -tls1 option.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 15 Aug 2017 22:37:50 +0200
++++
++++nodejs (6.11.2~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 6.11.2~dfsg
++++  * Standards-Version 4.0.0
++++  * Inherit Priority from source
++++  * Drop nodejs-dbg, b-d debhelper 9.20160114 to get dbgsym
++++  * Drop kfreebsd patch, it did not build anyway
++++  * Restore /usr/bin/node following CTTE #862051.
++++    Keep /usr/bin/nodejs symlink indefinitely.
++++    Replaces and Conflicts nodejs-legacy.
++++    Closes: #754462.
++++  * Skip test-zlib-failed-init.js for it relies on zlib 1.2.11
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 01 Aug 2017 18:40:46 +0200
++++
++++nodejs (6.11.1~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 6.11.1~dfsg
++++  * Priority: optional on source package (Closes: #864735)
++++
++++  [ Upstream ]
++++  * Security fix: Constant Hashtable Seeds (CVE pending)
++++    Closes: #868162.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 18 Jul 2017 00:40:24 +0200
++++
++++nodejs (6.11.0~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 6.11.0~dfsg (Closes: #864605)
++++  * Restore upstream code that finds /usr prefix
++++  * Unapply ssl root certs patch implemented upstream,
++++    now configured by --openssl-use-def-ca-store
++++  * Build-Depend libssl1.0-dev
++++  * Keep ca-certificates in build-dependencies for running tests
++++  * Add ca-certificates to autopkgtest depends. (Closes: #855018)
++++  * Recommends ca-certificates for nodejs package
++++  * Patch to pass test with openssl 1.1.0 cli
++++  * Patch test-module-loading-globalpaths as part of nodejs rename
++++  * Workaround lintian override not matching source-is-missing path
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 12 Jun 2017 10:07:10 +0200
++++
++++nodejs (6.10.2~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 6.10.2~dfsg
++++  * Fix memory leak if certificate is revoked (introduced in 6.10.1)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 04 Apr 2017 16:43:22 +0200
++++
++++nodejs (6.10.1~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 6.10.1~dfsg
++++  * Fix how control file is generated for build profile
++++  * Update 2014_donotinclude_root_certs.patch to hard-code
++++    NODE_EXTRA_CA_CERTS to /etc/ssl/certs/ca-certificates.crt
++++    This is safer to maintain and safer to use since it disables
++++    that undocumented env var setting.
++++    Also expect extra ca tests to fail.
++++  * Add dnt_helper.js Expat license
++++  * Recommends, Build-Depends ca-certificates
++++  * Use test-ci-js target now
++++  * autopkgtest suite depends on ca-certificates
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 03 Apr 2017 08:45:04 +0200
++++
++++nodejs (6.9.3~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 6.9.3~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 04 Jan 2017 10:14:15 +0100
++++
++++nodejs (6.9.2~dfsg-2) experimental; urgency=medium
++++
++++  * Fix recursive dependency on node-yamlish/marked (Closes: #850082)
++++    Thanks to Tom Parker <palfrey@tevp.net>.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 03 Jan 2017 23:53:50 +0100
++++
++++nodejs (6.9.2~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 6.9.2~dfsg
++++  * Build-Depend libssl1.0-dev (Closes: #828457)
++++  * nodejs Recommends ca-certificates (Closes: #841981)
++++  * Skip two tests failing only in autopkgtest
++++  * Override workaround for source-is-missing (See: #848825)
++++  * Drop package-needs-versioned-debhelper-build-depends override.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 20 Dec 2016 00:42:16 +0100
++++
++++nodejs (6.9.1~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 6.9.1~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 20 Oct 2016 01:57:17 +0200
++++
++++nodejs (6.9.0~dfsg-1) experimental; urgency=medium
++++
++++  * Update patch to skip test-regress-GH-746a,
++++    moved from sequential to parallel test suites.
++++  * New upstream version 6.9.0~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 18 Oct 2016 22:00:20 +0200
++++
++++nodejs (6.8.1~dfsg-2) experimental; urgency=medium
++++
++++  * Use mips r2 variant (mips32r2)
++++    This was already fixed in nodejs 4.x packages.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 17 Oct 2016 00:26:19 +0200
++++
++++nodejs (6.8.1~dfsg-1) experimental; urgency=medium
++++
++++  * New upstream version 6.8.1~dfsg
++++  * Unapply build with shared zlib patch
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 15 Oct 2016 16:09:10 +0200
++++
++++nodejs (6.8.0~dfsg-1) experimental; urgency=medium
++++
++++  * Imported Upstream version 6.8.0~dfsg
++++  * Switch back to ia32 arch instead of x87, see
++++    https://lists.debian.org/debian-devel-announce/2016/05/msg00001.html
++++  * Standards-Version 3.9.8
++++  * Ensure build fails on armel (Closes: #818552)
++++  * Ensure build fails on powerpc.
++++  * Build-Depends openssl 1.0.2 (Closes: #821403)
++++  * Exclude useless deps/icu-small
++++  * s390x patch no longer needed :)
++++  * Use test-ci-js instead of test-ci
++++  * Disable dns during tests
++++  * Do not fail when node symlink exists in check target
++++  * Disable pseudo-tty and doctool suites
++++  * Update test_ci_buildd patch so CI_*_SUITES can be overridden
++++  * Disable tests failing since DNS has been disabled
++++  * Add patch to use node-yamlish
++++  * Build-Depends marked instead of bundling it
++++  * Enable hardening flags: +all,-pie
++++  * powerpc architecture is no longer supported
++++  * fix build when using shared zlib (upstream patch)
++++  * Move lintian source overrides into one file
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 14 Oct 2016 01:47:42 +0200
++++
++++nodejs (6.0.0~dfsg-1) experimental; urgency=medium
++++
++++  * Imported Upstream version 6.0.0~dfsg
++++  * Files-Exclude: eslint* no longer needed
++++  * Remove shared-cares patch, released upstream
++++  * Import Upstream v8z s390-5.0 branch
++++  * Override source-is-missing for benchmark of sampled regexps
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 27 Apr 2016 01:28:21 +0200
++++
++++nodejs (5.11.0~dfsg-1) experimental; urgency=medium
++++
++++  * tools/msvs directory no longer in upstream tarball
++++  * Imported Upstream version 5.11.0~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 21 Apr 2016 23:41:12 +0200
++++
++++nodejs (5.10.1~dfsg-1) experimental; urgency=medium
++++
++++  * Imported Upstream version 5.10.1~dfsg
++++  * Re-enable shared c-ares >= 1.11.0, with patch from upstream
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 08 Apr 2016 10:12:36 +0200
++++
++++nodejs (5.9.1~dfsg-1) experimental; urgency=medium
++++
++++  * Imported Upstream version 5.9.1~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 23 Mar 2016 20:17:39 +0100
++++
++++nodejs (5.8.0~dfsg-1) experimental; urgency=medium
++++
++++  * Imported Upstream version 5.8.0~dfsg
++++  * Expect test-npm-install to fail
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 09 Mar 2016 22:24:03 +0100
++++
++++nodejs (5.7.1~dfsg-1) experimental; urgency=medium
++++
++++  * Imported Upstream version 5.7.1~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 03 Mar 2016 01:06:29 +0100
++++
++++nodejs (5.7.0~dfsg-1) experimental; urgency=medium
++++
++++  * Imported Upstream version 5.7.0~dfsg
++++  * Use secure uri in Vcs-* fields
++++  * Standards-Version 3.9.7
++++  * Patch configure script to allow and default to x87 on i386
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 02 Mar 2016 02:27:02 +0100
++++
++++nodejs (5.6.0~dfsg-1) experimental; urgency=medium
++++
++++  * Imported Upstream version 5.6.0~dfsg
++++  * Override lintian error for two binary (but trivial) fixtures.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 10 Feb 2016 01:31:29 +0100
++++
++++nodejs (5.5.0~dfsg-1) experimental; urgency=medium
++++
++++  * Imported Upstream version 5.5.0~dfsg
++++  * Fix install path of non-minified sh_javascript
++++  * Override lintian missing source sh_javascript.min.js, because
++++    it is already fixed by removal and patch.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 21 Jan 2016 10:23:05 +0100
++++
++++nodejs (5.4.1~dfsg-1) experimental; urgency=medium
++++
++++  * Imported Upstream version 5.4.1~dfsg
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 13 Jan 2016 22:54:32 +0100
++++
++++nodejs (5.4.0~dfsg-1) experimental; urgency=medium
++++
++++  * Imported Upstream version 5.4.0~dfsg
++++  * tests need gcc to get DEB_HOST_ARCH,
++++    add build-essential as dependency.
++++  * Consolidate tmp dir using NODE_TEST_DIR
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 07 Jan 2016 09:42:42 +0100
++++
++++nodejs (5.3.0~dfsg-2) experimental; urgency=medium
++++
++++  * Merge fixes from 4.2.3~dfsg-2:
++++    + create/remove a HOME for test
++++    + test-force-repl hangs in test bed
++++    + fix debian/watch
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 20 Dec 2015 13:45:35 +0100
++++
++++nodejs (5.3.0~dfsg-1) experimental; urgency=medium
++++
++++  * Imported Upstream version 5.3.0~dfsg
++++  * There is no gcc -mfpu vfpv2 flag - the right flag is vfp
++++  * Use repacksuffix in debian/watch
++++  * Run tests as autopkgtests as well:
++++    + add debian/rules check target to run tests using binary package
++++    + disable test-process-config because it needs configured tree
++++    + mark test-fs-watch as flaky
++++  * Set test timeout to 3 seconds
++++  * Flaky test-regress-GH-746 because it requires stdin
++++  * Unapply no_sslv3.patch, applied upstream
++++  * Refresh patches
++++  * Re-enable test-tick-processor, fixed upstream
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 18 Dec 2015 00:46:12 +0100
++++
++++nodejs (5.1.1~dfsg-1) experimental; urgency=medium
++++
++++  * Imported Upstream version 5.1.1~dfsg
++++  * CVE-2015-6764 V8 Out-of-bounds Access Vulnerability
++++    (Closes: #806385)
++++  * CVE-2015-8027 Denial of Service Vulnerability
++++    (Closes: #806385)
++++  * Patch: openssl -ssl3 fails immediately causing
++++    test-tls-no-sslv3 failure.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 04 Dec 2015 09:59:15 +0100
++++
++++nodejs (5.1.0~dfsg-1) experimental; urgency=medium
++++
++++  * Imported Upstream version 5.1.0~dfsg
++++  * Refresh patches
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 18 Nov 2015 14:12:08 +0100
++++
++++nodejs (5.0.0~dfsg-1) experimental; urgency=medium
++++
++++  * Imported Upstream version 5.0.0~dfsg
++++  * Refresh patches
++++  * Disable s390 patch for now
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 30 Oct 2015 00:23:57 +0100
++++
++++nodejs (4.2.5~dfsg-1) unstable; urgency=medium
++++
++++  * Imported Upstream version 4.2.5~dfsg
++++  * Remove no_sslv3 patch, fixed upstream
++++  * Override lintian missing source sh_javascript.min.js, because
++++    it is already fixed by removal and patch.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 21 Jan 2016 09:38:25 +0100
++++
++++nodejs (4.2.4~dfsg-2) unstable; urgency=medium
++++
++++  * tests need gcc to get DEB_HOST_ARCH,
++++    add build-essential as dependency. (Closes: #809845)
++++  * Fix install path of non-minified sh_javascript
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 14 Jan 2016 09:39:14 +0100
++++
++++nodejs (4.2.4~dfsg-1) unstable; urgency=medium
++++
++++  * Imported Upstream version 4.2.4~dfsg
++++  * Adapt v8 backport to s390 patch
++++  * Refresh patches
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 24 Dec 2015 00:59:49 +0100
++++
++++nodejs (4.2.3~dfsg-2) unstable; urgency=medium
++++
++++  * There is no gcc -mfpu vfpv2 flag - the right flag is vfp
++++  * Use repacksuffix in debian/watch
++++  * Run tests as autopkgtests as well:
++++    + add debian/rules check target to run tests using binary package
++++    + create/remove a HOME for test
++++    + disable test-process-config because it needs configured tree
++++    + test-fs-watch does not work in test bed
++++    + test-force-repl hangs in test bed
++++  * Set test timeout to 3 seconds
++++  * Flaky test-regress-GH-746 because it requires stdin
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 20 Dec 2015 03:03:50 +0100
++++
++++nodejs (4.2.3~dfsg-1) unstable; urgency=high
++++
++++  * Imported Upstream version 4.2.3~dfsg
++++  * CVE-2015-6764 V8 Out-of-bounds Access Vulnerability
++++    (Closes: #806385)
++++  * CVE-2015-8027 Denial of Service Vulnerability
++++    (Closes: #806385)
++++  * Patch: openssl -ssl3 fails immediately causing
++++    test-tls-no-sslv3 failure.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 04 Dec 2015 09:02:50 +0100
++++
++++nodejs (4.2.2~dfsg-1) unstable; urgency=medium
++++
++++  * Imported Upstream version 4.2.2~dfsg
++++  * Huge test timeout for all platforms
++++  * Update from v8z 4.5 branch
++++  * Node.js 4.2 is LTS, maintain it in master-4.2, upstream-4.2
++++    + update gbp.conf
++++    + lock watch file to 4.2.x
++++    + update Vcs-Git in debian/control
++++  * Remove test-domain-with-abort-on-uncaught-exception.diff,
++++    applied upstream
++++  * Add trivial autopkgtest (Closes: #802735)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 04 Nov 2015 09:37:24 +0100
++++
++++nodejs (4.2.1~dfsg-2) unstable; urgency=medium
++++
++++  * Test ci patch: mark test-cluster-disconnect as flaky on arm
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 16 Oct 2015 20:56:02 +0200
++++
++++nodejs (4.2.1~dfsg-1) unstable; urgency=medium
++++
++++  * Imported Upstream version 4.2.1~dfsg
++++  * kfreebsd patch: detect freebsd in tools/utils.py, so
++++    that tests have correct $system set.
++++  * test_ci_buildd patch: allow longer timeouts for mips64el
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 13 Oct 2015 20:54:13 +0200
++++
++++nodejs (4.2.0~dfsg-2) unstable; urgency=medium
++++
++++  * Add arch detection for ppc64 in debian/rules, useful for
++++    tests configuration.
++++  * Fix failing test-domain-with-abort-on-uncaught-exception
++++  * Run flaky tests but don't care
++++  * Run tests with huge timeout
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 13 Oct 2015 12:00:18 +0200
++++
++++nodejs (4.2.0~dfsg-1) unstable; urgency=medium
++++
++++  * Imported Upstream Long Term Support version 4.2.0~dfsg
++++  * Allow test-stdout-close-unref to fail on freebsd too
++++  * Unapply 1006_arm_fpu.patch, applied upstream
++++  * Remove gflags from copyright, removed upstream
++++  * Add copyright for s390 patch
++++  * Exclude non-dfsg "gutenberg small print" licensed file
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 13 Oct 2015 00:23:43 +0200
++++
++++nodejs (4.1.2~dfsg-5) unstable; urgency=medium
++++
++++  * test-tick-processor can fail on pp64 and s390x:
++++    + debian/rules: invoke test runner with --arch option
++++    + test_ci_buildd.patch: declare that test as flaky on those
++++      two arches, and fix test runner so $arch can be used.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 12 Oct 2015 18:43:22 +0200
++++
++++nodejs (4.1.2~dfsg-4) unstable; urgency=medium
++++
++++  * Update patches to pass tests on respective arches
++++  * Enable tests
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 12 Oct 2015 01:26:08 +0200
++++
++++nodejs (4.1.2~dfsg-3) experimental; urgency=medium
++++
++++  * Update test-ci patch to avoid testing addons
++++  * No longer Build-Dep node-gyp to avoid bootstrapping issue
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 08 Oct 2015 09:05:17 +0200
++++
++++nodejs (4.1.2~dfsg-2) experimental; urgency=medium
++++
++++  * Set HOME env var for tests
++++  * Patch: merge s390x branch from v8z 4.5
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 08 Oct 2015 01:59:04 +0200
++++
++++nodejs (4.1.2~dfsg-1) experimental; urgency=medium
++++
++++  [ Jérémy Lal ]
++++  * Imported Upstream version 4.1.2~dfsg
++++  * Unapply patch for CVE-2015-7384, applied upstream
++++  * Run tests but ignore failures for now
++++  * gyp >= 0.1~svn1773 now support no-parallel, remove patches
++++  * enable continuous integration tests but ignore failures for
++++    now, also patch to test-ci target to avoid logging to file.
++++  * Add a dh --with nodejs plugin.
++++
++++  [ Jonas Smedegaard ]
++++  * Offer binNMU'able linkage for arch-dependent plugins:
++++    + Have nodejs provide virtual abi package
++++    + Have nodejs-dev include helper tool dh_nodejs.
++++    Closes: Bug#785748.
++++  * Bump debhelper compatibility level to 9.
++++  * Add descriptive comments to lintian overrides.
++++  * Add lintian override regarding debhelper 9.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 07 Oct 2015 11:16:09 +0200
++++
++++nodejs (4.1.1~dfsg-3) unstable; urgency=high
++++
++++  * Security fix for CVE-2015-7384 (Closes: #800580)
++++  * Forward 2014_donotinclude_root_certs.patch
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 05 Oct 2015 22:31:38 +0200
++++
++++nodejs (4.1.1~dfsg-2) unstable; urgency=medium
++++
++++  * mips fixes, thanks to YunQiang Su (Closes: #800410):
++++    + patch v8 to fix mips, mipsel fpu mode setting
++++    + patch nodejs to support mips64el target_host setting
++++    + update configuration in debian/rules
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 29 Sep 2015 02:32:16 +0200
++++
++++nodejs (4.1.1~dfsg-1) unstable; urgency=medium
++++
++++  * Imported Upstream version 4.1.1~dfsg
++++  * Force mips arches to fp32 fpu mode
++++  * Unapply mipsel detection patch, applied upstream
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 28 Sep 2015 23:53:22 +0200
++++
++++nodejs (4.1.0~dfsg-3) unstable; urgency=medium
++++
++++  * mips: let configure detect float abi
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 21 Sep 2015 12:26:05 +0200
++++
++++nodejs (4.1.0~dfsg-2) unstable; urgency=medium
++++
++++  * Fix armhf build: with-arm-float-abi expects 'hard', not 'hardfp'
++++  * Fix mipsel build: patch configure so that it detects mipsel
++++  * Configure mips, mipsel, mips64el ports
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 20 Sep 2015 23:46:39 +0200
++++
++++nodejs (4.1.0~dfsg-1) unstable; urgency=medium
++++
++++  * Imported Upstream version 4.1.0~dfsg
++++  * Import bits of armel configuration from libv8
++++  * Patch to allow arm_fpu config
++++  * Update kfreebsd patch and flags
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 20 Sep 2015 11:17:02 +0200
++++
++++nodejs (4.0.0~dfsg-2) experimental; urgency=medium
++++
++++  * Configure dest-cpu and dest-os, hopefully fixing builds on
++++    several architectures.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 11 Sep 2015 13:03:06 +0200
++++
++++nodejs (4.0.0~dfsg-1) experimental; urgency=medium
++++
++++  * Imported Upstream version 4.0.0~dfsg
++++  * Refresh and disable most old patches
++++  * Build using embedded cares, embedded v8, because Node.js
++++    is using patched versions of them and no longer allow
++++    building with shared system libraries of those.
++++  * Add cares copyright
++++  * Add patch to build without zlib and uv gyp files
++++  * nodejs-dev links to libuv1-dev headers
++++  * Build documentation and fix privacy breaches more properly
++++  * Numerous copyright-1.0 format fixes.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 09 Sep 2015 00:43:21 +0200
++++
++++nodejs (0.10.38~dfsg-1) unstable; urgency=medium
++++
++++  * Upstream update.
++++  * Copyright:
++++    + add mk-ca-bundle curl license
++++    + fix some paths, add a new file, DFSG-exclude
++++      trademarked icons (node, joyent, npm).
++++  * Standards-Version 3.9.6
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 04 May 2015 22:45:39 +0200
++++
++++nodejs (0.10.29~dfsg-1) unstable; urgency=medium
++++
++++  * Upstream update.
++++  * 1007 patch: revert upstream commit that relies on a patch to
++++    libv8-3.14 that breaks v8 API/ABI.
++++    This means nodejs is stuck in NODE_INVALID_UTF8 mode, see
++++    upstream ChangeLog to understand what this means.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 13 Jun 2014 23:58:22 +0200
++++
++++nodejs (0.10.28~dfsg-2) unstable; urgency=medium
++++
++++  * Add 1006_relax_timeouts_in_tests.patch, fixing some tests to
++++    pass on slow architectures.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 01 Jun 2014 23:09:24 +0200
++++
++++nodejs (0.10.28~dfsg-1) unstable; urgency=medium
++++
++++  * Upstream update.
++++  * Copyright: add wildcards to folders in Files-Excluded field.
++++  * Override source-is-missing doc/sh_javascript.min.js, was already
++++    fixed in nodejs-0.10.25~dfsg2-1.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 23 May 2014 09:28:57 +0200
++++
++++nodejs (0.10.26~dfsg1-2) unstable; urgency=medium
++++
++++  * Update 2011 mipsel patch: add mips (big endian) support.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 26 Apr 2014 01:39:34 +0200
++++
++++nodejs (0.10.26~dfsg1-1) unstable; urgency=medium
++++
++++  * Upstream update.
++++  * Add 2014 patch: load /etc/ssl/certs/ca-certificates.crt at
++++    runtime, if present, instead of bundling node_root_certs.h.
++++  * copyright:
++++    + use Files-Excluded section, update list of files.
++++    + add section for node_root_certs.h (MPL-2.0)
++++  * rules: drop upstream-tarball.mk in favor of uscan.
++++  * Standards-Version 3.9.5
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 02 Mar 2014 01:57:14 +0100
++++
++++nodejs (0.10.25~dfsg2-2) unstable; urgency=medium
++++
++++  * Update 2005 patch, allow test-abort-fatal-error to time out.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 27 Jan 2014 14:35:21 +0100
++++
++++nodejs (0.10.25~dfsg2-1) unstable; urgency=medium
++++
++++  * Exclude doc/sh_javascript.min.js, closes: #736779.
++++  * Add 1005 patch to include a non-minified version of
++++    doc/sh_javascript.min.js, and update path in debian/copyright.
++++  * Update 2005 patch, allow test-abort-fatal-error to fail,
++++    closes: #736576.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 27 Jan 2014 09:58:56 +0100
++++
++++nodejs (0.10.25~dfsg1-1) unstable; urgency=medium
++++
++++  * Upstream update
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 24 Jan 2014 15:45:29 +0100
++++
++++nodejs (0.10.24~dfsg1-1) unstable; urgency=medium
++++
++++  * Upstream update
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 23 Dec 2013 00:45:40 +0100
++++
++++nodejs (0.10.23~dfsg1-3) unstable; urgency=medium
++++
++++  * Update 2005 patch, allow test-http-client-timeout-event to fail.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 14 Dec 2013 10:00:16 +0100
++++
++++nodejs (0.10.23~dfsg1-2) unstable; urgency=medium
++++
++++  * Add 2013 patch, remove --no-parallel option incompatible with
++++    gyp < r1773. Was breaking kfreebsd builds as side-effect.
++++  * Empty DEB_CONFIGURE_NORMAL_ARGS without quotes because
++++    configure assumes it is a path argument.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 14 Dec 2013 01:52:05 +0100
++++
++++nodejs (0.10.23~dfsg1-1) unstable; urgency=medium
++++
++++  * Upstream update.
++++  * Refresh patches, remove 1005 patch, applied upstream.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 12 Dec 2013 23:04:07 +0100
++++
++++nodejs (0.10.22~dfsg1-2) unstable; urgency=low
++++
++++  * Update 2005 patch, allow test-cluster-dgram-2 to time out.
++++  * Apply 1005 patch, upstream fix for BSD builds.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 30 Nov 2013 23:54:20 +0100
++++
++++nodejs (0.10.22~dfsg1-1) unstable; urgency=low
++++
++++  * Upstream update.
++++  * Refresh patches.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 13 Nov 2013 23:17:51 +0100
++++
++++nodejs (0.10.21~dfsg1-1) unstable; urgency=low
++++
++++  * Upstream update.
++++  * Update 2005 patch, allow test-http-pipeline-flood to fail.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 19 Oct 2013 01:26:18 +0200
++++
++++nodejs (0.10.20~dfsg1-1) unstable; urgency=low
++++
++++  * Upstream update.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 01 Oct 2013 13:08:52 +0200
++++
++++nodejs (0.10.19~dfsg1-1) unstable; urgency=low
++++
++++  * Upstream update.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 27 Sep 2013 11:21:18 +0200
++++
++++nodejs (0.10.18~dfsg1-1) unstable; urgency=low
++++
++++  * Upstream update.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 04 Sep 2013 20:54:54 +0200
++++
++++nodejs (0.10.17~dfsg1-2) unstable; urgency=low
++++
++++  * Update 2005 patch with new failing-on-slow-platforms tests.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 31 Aug 2013 09:45:06 +0200
++++
++++nodejs (0.10.17~dfsg1-1) unstable; urgency=low
++++
++++  * Upstream update.
++++  * Update 2005 patch with new failing-on-slow-platforms tests.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 29 Aug 2013 17:18:29 +0200
++++
++++nodejs (0.10.15~dfsg1-4) unstable; urgency=low
++++
++++  * Update 2005 patch, adding a handful of tests that can fail on
++++    slow platforms.
++++  * Add 1004 patch to fix test failures when writing NaN to buffer
++++    on mipsel.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 14 Aug 2013 00:16:46 +0200
++++
++++nodejs (0.10.15~dfsg1-3) unstable; urgency=low
++++
++++  * Update 2005 patch, test-stdout-close-unref and
++++    test-tls-zero-clear-in can fail on buildd.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 10 Aug 2013 09:47:34 +0200
++++
++++nodejs (0.10.15~dfsg1-2) unstable; urgency=low
++++
++++  * Update 2005 patch, allow several tests to fail because of inner
++++    timeouts or race conditions on slow buildd servers.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 10 Aug 2013 00:09:59 +0200
++++
++++nodejs (0.10.15~dfsg1-1) unstable; urgency=low
++++
++++  * Upstream update.
++++  * kfreebsd build: uv need -ldl.
++++  * Update 2005 patch, allow 12 udp4 tests to fail on buildd servers.
++++  * 2011 patch: test.py --arch=target_arch detected by ./configure.
++++    This fixes an error in mipsel build.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 29 Jul 2013 21:14:09 +0200
++++
++++nodejs (0.10.13~dfsg1-2) unstable; urgency=low
++++
++++  [ Jérémy Lal ]
++++  * Fix kfreebsd build:
++++    + Depend on libkvm-dev on kfreebsd systems.
++++    + Tighten to build-depend on gyp versions that builds using flock.
++++    + Add patch 2012 to add __FreeBSD_kernel__ defines.
++++    + Add patch 1001 readFile not throwing EISDIR on some archs.
++++    + Add patches 1002, 1003 to fix bugs in unit tests.
++++    + Set gyp flavor in rules file using --dest-os switch.
++++  * Restrict make check target in rules to avoid the call to jslint.
++++
++++  [ Jonas Smedegaard ]
++++  * Make ~dfsg version suffix only optionally numbered.
++++  * Stop breaking packages depending on old node binary: None of the
++++    affected packages exist in any Debian suite since about a year.
++++  * Declare all package relations except same-source ones in rules file.
++++  * Add notes in rules file about reasons for versioned dependencies.
++++  * Drop NEWS file: Contains only entries for versions older than
++++    existing in any Debian suite since about a year.
++++  * Rewrite short and long descriptions based on upstream texts.
++++  * Bump standards-version to 3.9.4.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 28 Jul 2013 18:50:13 +0200
++++
++++nodejs (0.10.13~dfsg1-1) experimental; urgency=low
++++
++++  * New upstream release.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 12 Jul 2013 12:23:38 +0200
++++
++++nodejs (0.10.11~dfsg1-1) experimental; urgency=low
++++
++++  * New upstream release.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 14 Jun 2013 01:32:49 +0200
++++
++++nodejs (0.10.10~dfsg1-1) experimental; urgency=low
++++
++++  * New upstream release.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 05 Jun 2013 00:21:10 +0200
++++
++++nodejs (0.10.9~dfsg1-1) experimental; urgency=low
++++
++++  * New upstream release.
++++  * Unapply 1001_revert_uv_osx_fix.patch, fixed upstream.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 30 May 2013 23:08:55 +0200
++++
++++nodejs (0.10.8~dfsg1-1) experimental; urgency=low
++++
++++  * New upstream release.
++++  * Set process.config.default_configuration to Release by removing
++++    --debug flag.
++++  * 1001_revert_uv_osx_fix.patch: revert a libuv commit bringing a
++++    test/simple/test-stdout-close-catch.js regression.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 29 May 2013 00:42:14 +0200
++++
++++nodejs (0.10.7~dfsg1-1) experimental; urgency=low
++++
++++  * New upstream release.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 18 May 2013 00:40:02 +0200
++++
++++nodejs (0.10.6~dfsg1-1) experimental; urgency=low
++++
++++  * New upstream release.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 15 May 2013 00:12:32 +0200
++++
++++nodejs (0.10.5~dfsg1-2) experimental; urgency=low
++++
++++  * nodejs-dev.links: fix symlinks to v8 headers.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 28 Apr 2013 21:15:31 +0200
++++
++++nodejs (0.10.5~dfsg1-1) experimental; urgency=low
++++
++++  * New upstream release.
++++  * nodejs-dev.install: common.gypi is needed by node-gyp.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 28 Apr 2013 20:47:03 +0200
++++
++++nodejs (0.10.1~dfsg1-2) experimental; urgency=low
++++
++++  * copyright: use Source field to document dfsg-repackaging.
++++  * nodejs-dev: install headers with the directory layout expected
++++    node-gyp.
++++  * 2005_expected_failing_tests.patch: some tests fail in chroot.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 25 Mar 2013 16:21:25 +0100
++++
++++nodejs (0.10.1~dfsg1-1) experimental; urgency=low
++++
++++  * New upstream release.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 22 Mar 2013 00:11:25 +0100
++++
++++nodejs (0.10.0~dfsg1-2) experimental; urgency=low
++++
++++  * Fix have nodejs-dev depend on libv8-3.14-dev (not bogus
++++    libv8-3--14dev).
++++
++++ -- Jonas Smedegaard <dr@jones.dk>  Tue, 19 Mar 2013 05:07:15 +0100
++++
++++nodejs (0.10.0~dfsg1-1) experimental; urgency=low
++++
++++  [ upstream ]
++++  * New release.
++++    + Node-waf dropped: Replaced by node-gyp (packaged independently).
++++
++++  [ Jérémy Lal ]
++++  * Build-depend unversioned on cdbs: Needed version satisfied in stable
++++    and oldstable no longer supported.
++++  * Upstream tarball repackaging:
++++    + Exclude test/gc/node_modules.
++++    + Exclude tools/blog.
++++    + Exclude tools/wrk, a benchmark tool.
++++    + Exclude tools/msvs/genfiles, it should be generated instead. It
++++      also contains binaries and a meaningless copyright statement.
++++    + Exclude deps/cares.
++++    + Update exclusions to match already removed files.
++++  * Documentation building:
++++    + Remove workaround from 0.6.19~dfsg1-3.
++++    + Delete already unapplied 1002_upstream_forgot_to_build_doc.patch.
++++    + Remove script tags calling external assets from html files.
++++  * Patches:
++++    + Remove all patches regarding WAF.
++++    + Remove patches involving eio or ev since those libs have been
++++      rewritten inside uv.
++++    + Remove 2008_fix_use_shared_cares.patch, no longer needed.
++++    + Adjust 2005_expected_failing_tests.patch: re-enable some tests.
++++    + Merge path, binary renames into 2001_FHS_paths_for_nodejs.patch.
++++    + Remove unneeded 2002_build_without_libv8_debug.patch.
++++    + Remove 2007_fix_use_shared_zlib.patch, replaced by --shared-zlib,
++++      but 2010 patch is needed to shut up Makefile.
++++    + Remove 1001_align_fast_buffers_8byte_boundary.patch, applied.
++++    + Remove 2014_v8_38_compat.patch, unneeded.
++++    + Disable 2011_enable_mipsel_build: libv8 fails to build on mipsel.
++++  * Drop WAF quirks.
++++  * Remove --no-ssl2 flag, it builds fine without it now, and
++++    test-tls-server-verify fails in both cases.
++++  * Use --without-snapshot since nodejs is using system libv8.
++++  * Remove unneeded --shared-ev.
++++  * Harden gyp: append CPPFLAGS to CXXFLAGS, export CXXFLAGS and
++++    LDFLAGS.
++++    Works around bug#689754.
++++  * Update DEB_COPYRIGHT_CHECK_IGNORE_REGEX to match all binary files.
++++  * Remove trailing slash in DEB_UPSTREAM_URL.
++++  * Ship all headers from src and uv/include in nodejs-dev: node-gyp
++++    expects them.
++++  * Update copyright file:
++++    + Drop obsolete paragraphs: eio, waf, buffer_ieee754.js,
++++      src/platform_darwin_proctitle.cc.
++++    + Add 'Nginx Inc' copyright to ngx-queue.h, as given by upstream
++++      LICENSE file, and list the second copy of ngx-queue.h.
++++    + Add license for deps/uv/include/uv-private/tree.h and the copy in
++++      src/tree.h.
++++    + Add ISC licenses for deps/uv/checksparse.sh, deps/uv/src/inet.c.
++++    + Add deps/uv/include/uv-private/stdint-msvc2008.h BSD-3-clause.
++++    + Add src/v8_typed_array* Expat license.
++++    + Update licenses for bundled deps/v8 copy, taken from libv8
++++      debian package. Note deps/v8/tools/testrunner/server/daemon.py is
++++      Public-Domain.
++++    + List all copies of sh.css.
++++  * Suppress lintian OpenSSL warning: false positive.
++++
++++  [ Jonas Smedegaard ]
++++  * Update copyright file:
++++    + Fix GPL licensing to separate verbatim custom reference, verbatim
++++      generic boilerplate, and packaging comments.
++++    + Explicitly mention Public Domain file as such in Copyright field.
++++  * Update package relations:
++++    + Build-depend on, and have nodejs-dev depend on, libv8-3.14-dev
++++      (not versioned on libv8-dev).
++++    + Have nodejs-dbg recommend (not suggest) libv8-3.14-dbg (not
++++      libv8-dbg).
++++  * Bump dephelper compatibility level to 8.
++++  * Drop obsolete "DM-Upload-Allowed" field.
++++  * Rewrite README.source:
++++    + Refer to common CDBS+git-buildpackage praxis.
++++    + Emphasize explicitly that NMUs can totally ignore control.in file.
++++
++++ -- Jonas Smedegaard <dr@jones.dk>  Tue, 19 Mar 2013 04:38:57 +0100
++++
++++nodejs (0.6.19~dfsg1-6) UNRELEASED; urgency=low
++++
++++  * Update package relations:
++++    + Generally tighten breaks to relate to (backport of) first known
++++      working version (not last known broken version): node → nodejs
++++      transition now done for all dependent packages.
++++    + Relax needlesly tight breaks for node-bones.
++++
++++ -- Jonas Smedegaard <dr@jones.dk>  Sat, 22 Sep 2012 16:09:56 +0200
++++
++++nodejs (0.6.19~dfsg1-5) unstable; urgency=low
++++
++++  * Team upload.
++++  * Fix node-waf so that it correctly looks for "nodejs" instead of
++++    "node" (patched node_addon.py)
++++
++++ -- David Paleino <dapal@debian.org>  Fri, 21 Sep 2012 23:23:16 +0200
++++
++++nodejs (0.6.19~dfsg1-4) unstable; urgency=medium
++++
++++  * Update package relations:
++++    + Break only packages actually calling /usr/bin/node (directly or
++++      via env).
++++    + Tighten breaks for packages with fixed release.
++++  * Set urgency=medium as this change affects only packaging hints so
++++    should not need reset of aging timer in unstable.
++++
++++ -- Jonas Smedegaard <dr@jones.dk>  Mon, 06 Aug 2012 14:51:31 +0200
++++
++++nodejs (0.6.19~dfsg1-3) unstable; urgency=low
++++
++++  [ Jérémy Lal ]
++++  * debian/patches:
++++    + 2012_fix_v8_3_10.patch, fix crash on exit when building
++++      against libv8-3.10.8.
++++    + 2013_waf_linkflags.patch, waf must support LINKFLAGS,
++++      Closes: #678563.
++++
++++  [ Jonas Smedegaard ]
++++  * Rename binary node → nodejs:
++++    + Adjust paths of binary and manpage.
++++    + Fix avoid bogus explicit installation of debug files.
++++    + Adjust install scripts and add cleanup for old alternative.
++++    + Patch manpage to adjust command name.
++++    + Have binary package nodejs break any packages in Debian that
++++      reference /usr/bin/node.
++++    + Add new binary package nodejs-legacy, and have that (not nodejs)
++++      conflict with node.
++++    + Add NEWS entry.
++++    Closes: bug#611698, #681360. See also bug#614907. Thanks to
++++    tech-ctte and everyone else helping to resolve this.
++++  * Work around upstream shipping docs in wrong subdir, and disable huge
++++    patch 1002 attempting same but causing FTBFS for me. Keep patch 1002
++++    in source, to ease proof-reading by release team.
++++  * Add patch 2004 to fix FTBFS: Relax a test to work with slightly
++++    different output when linked against recent v8.
++++
++++ -- Jonas Smedegaard <dr@jones.dk>  Sat, 28 Jul 2012 11:19:38 +0200
++++
++++nodejs (0.6.19~dfsg1-2) unstable; urgency=low
++++
++++  * debian/patches:
++++    + 2005_expected_failing_tests.patch, more tests can timeout.
++++    + 1002_upstream_forgot_to_build_doc.patch, include docs from
++++      late release of version 0.6.19.
++++  * debian/nodejs.docs:
++++    + update path
++++    + include markdown files.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 06 Jun 2012 23:35:37 +0200
++++
++++nodejs (0.6.19~dfsg1-1) unstable; urgency=low
++++
++++  * Upstream update.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 06 Jun 2012 19:11:21 +0200
++++
++++nodejs (0.6.18~dfsg1-1) unstable; urgency=low
++++
++++  * Upstream update.
++++  * debian/patches:
++++    + 1002_make_test_not_weak.patch removed, applied upstream.
++++    + unfuzz patches.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 16 May 2012 02:06:42 +0200
++++
++++nodejs (0.6.17~dfsg1-1) unstable; urgency=low
++++
++++  * Upstream update.
++++  * Update copyright file: add test/*/testcfg.py files.
++++  * debian/patches/1002_make_test_not_weak.patch fixes Makefile
++++    test target, otherwise it tries to install an unneeded npm module.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 04 May 2012 22:38:30 +0200
++++
++++nodejs (0.6.16~dfsg1-2) unstable; urgency=low
++++
++++  * Allow test-dgram-pingpong failure on buildd servers.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 30 Apr 2012 22:42:23 +0200
++++
++++nodejs (0.6.16~dfsg1-1) unstable; urgency=low
++++
++++  [ Jonas Smedegaard ]
++++  * Update copyright file:
++++    + Fix Files section for marked: Use asterisk for dir, and ignore
++++      symlink.
++++    + Tidy Files section for waf-light: Drop superfluous © mark and
++++      excess indentation, and sort by year and then name.
++++
++++  [ Jonathan Nieder ]
++++  * Add /usr/bin/nodejs as a symlink to node and nodejs.1.gz as a
++++    symlink to the node(1) manpage. Explanation in README.Debian.
++++    Closes: #650343.
++++  * Include README.Debian in nodejs package instead of nodejs-dev.
++++
++++  [ Jérémy Lal ]
++++  * Upstream update.
++++  * Fix dversionmangle in watch file.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 30 Apr 2012 20:58:46 +0200
++++
++++nodejs (0.6.14~dfsg1-1) unstable; urgency=low
++++
++++  * debian/patches/2005_expected_failing_tests.patch:
++++    + test-cluster-kill-workers can fail on any arch, not only armel,
++++      because it is racey.
++++    + test-buffer is not failing.
++++    + test-tls-server-verify can fail with openssl 1.0.1
++++  * debian/patches/1001_align_fast_buffers_8byte_boundary.patch fixes
++++    test-buffer.js failure on armel. Closes: bug#660800.
++++  * debian/patches/2011_enable_mipsel_build.patch: options.arch is
++++    useless and buggy. Closes: bug#664627.
++++  * Include tools/doc, now properly licensed.
++++  * Include tools/doc/node_modules/marked : there are several other
++++    markdown parsers in debian, but porting tools/doc/generate.js to one
++++    of them is not an easy task.
++++  * Update copyright file:
++++    + tools/doc is already covered by default
++++    + Add Files paragraph covering tools/doc/node_modules/marked.
++++  * Remove libv8-dev << 3.8.
++++    It is not necessary to conflict with next libv8 branch.
++++  * Remove source override: source-contains-waf-binary, fixed in lintian.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 03 Apr 2012 08:41:15 +0200
++++
++++nodejs (0.6.12~dfsg1-1) unstable; urgency=low
++++
++++  * Update Standards-Version to 3.9.3.
++++  * Patch wscript to enable build on mipsel arch, libv8 being available.
++++    Upstream does not support that arch, failure expected.
++++  * test-cluster-kill-workers is expected to fail on armhf,
++++    Bug#660802 will be closed when test pass.
++++  * test-buffer is expected to fail on armel,
++++    Bug#660800 will be closed when test pass.
++++  * Add epoch to dependency on libev >= 1:4.11. Closes: bug#658441.
++++  * Remove tools/doc because node-doc-generator has no license for now.
++++  * Add copyright for doc/sh* files (shjs).
++++  * source.lintian-overrides : source-contains-waf-binary tools/node-waf
++++    it is simply not the case here.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 13 Mar 2012 09:56:02 +0100
++++
++++nodejs (0.6.11~dfsg1-2) unstable; urgency=low
++++
++++  * test-stream-pipe-multi expected to timeout sometimes on busy builds.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 20 Feb 2012 08:43:24 +0100
++++
++++nodejs (0.6.11~dfsg1-1) unstable; urgency=low
++++
++++  * New upstream release.
++++  * Remove upstream patches.
++++  * test-dgram-pingpong expected to timeout, the test itself is buggy.
++++  * test-buffer expected to fail on armel, allow building package to make
++++    it easier to find the cause of the failure.
++++    Closes: bug#639636.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 19 Feb 2012 23:58:31 +0100
++++
++++nodejs (0.6.10~dfsg2-2) unstable; urgency=low
++++
++++  [ Jérémy Lal ]
++++  * Expect tests dgram-multicast and broadcast to fail.
++++    debian/patches/2005_expected_failing_tests.patch
++++
++++  [ Jonas Smedegaard ]
++++  * Drop dpkg-source local-options: Defaults since dpkg-source 1.16.1.
++++
++++ -- Jonas Smedegaard <dr@jones.dk>  Fri, 17 Feb 2012 04:18:27 +0100
++++
++++nodejs (0.6.10~dfsg2-1) unstable; urgency=low
++++
++++  * New upstream release.
++++  * Depend on libev-dev 4.11, see bug#657080.
++++  * Bump dependency on openssl to 1.0.0g.
++++  * Remove useless uv_loop_refcount from libuv,
++++    refreshed 2009_fix_shared_ev.patch.
++++  * Apply to upstream patches landed after 0.6.10 release,
++++    to fix debugger repl and http client.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 16 Feb 2012 23:52:16 +0100
++++
++++nodejs (0.6.8~dfsg1-1) experimental; urgency=low
++++
++++  * New upstream release. Closes:bug#650661
++++  * Repackage to remove non-dfsg font files ./deps/npm/html/*/*.ttf
++++  * Remove unneeded bundled dependencies: lighter tarball,
++++    debian/copyright is easier to maintain.
++++  * Drop unneeded build-dependency on scons.
++++  * Depend on zlib1g, libc-ares, libev.
++++    Patches done to support building with those shared libs.
++++  * Fix DEB_UPSTREAM_URL in debian/rules, and debian/watch.
++++  * nodejs.pc file for pkgconfig is no more available.
++++  * Build-depend on procps package, a test is using /bin/ps.
++++  * Refreshed debian/patches/2005_expected_failing_tests.patch,
++++    only for tests that need networking.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 24 Jan 2012 13:37:01 +0100
++++
++++nodejs (0.4.12-3) unstable; urgency=low
++++
++++  * Depend on libv8 3.6 (>= 3.6.6.14-2), because it fixes CVE-2011-5037.
++++    This breaks test/simple/test-sys.js, fixed by an upstream patch.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 08 Jan 2012 12:00:02 +0100
++++
++++nodejs (0.4.12-2) unstable; urgency=low
++++
++++  * Port to libv8 3.5 branch and depend on it.
++++  * Force nodejs-dev to depend on libv8-dev << 3.6, to avoid API
++++    incompatibilities between nodejs-dev and libv8-dev.
++++    This will help fixing bug#650552, thanks to Jonas Smedegaard.
++++  * Do not search modules in /usr/local/lib/nodejs, see README.Debian.
++++  * Remove useless debian/patches/1006_version.patch
++++  * Drop unneeded dependency on Scons.
++++  * Build-Depends on openssl, some tests spawn /usr/bin/openssl.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 05 Dec 2011 11:34:27 +0100
++++
++++nodejs (0.4.12-1) unstable; urgency=low
++++
++++  * New upstream release
++++  * Port to libv8 3.4 branch and depend on it. Closes:bug#642731.
++++  * debian/gbp.conf: fix syntax, filter 'doc/logos/*' or else
++++    pristine-tar will complain.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 27 Sep 2011 16:10:10 +0200
++++
++++nodejs (0.4.11-1) unstable; urgency=low
++++
++++  * New upstream release
++++  * debian/gbp.conf: Filter out doc/logos, unused, too big, and
++++    upstream removed it from 0.5 tarballs.
++++  * debian/patches/1006_version.patch : upstream forgot to update
++++    VERSION flag in wscript.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 18 Aug 2011 15:09:01 +0200
++++
++++nodejs (0.4.10-1) unstable; urgency=low
++++
++++  * New upstream release
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 20 Jul 2011 20:50:07 +0200
++++
++++nodejs (0.4.9-1) unstable; urgency=low
++++
++++  * New upstream release
++++  * Refresh debian/patches,
++++    remove 1001_no_ssl_v2.patch, applied upstream.
++++  * deps/http_parser.c based on expat-licensed work of Igor Sysoev.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 29 Jun 2011 16:46:47 +0200
++++
++++nodejs (0.4.8-1) unstable; urgency=low
++++
++++  * New upstream release,
++++    Closes: bug#628148.
++++  * Depends on libv8 3.1.8.22
++++  * Refresh debian/patches
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 26 Jun 2011 23:08:01 +0200
++++
++++nodejs (0.4.7-1) unstable; urgency=low
++++
++++  * New upstream release
++++  * Bump policy compliance to standards-version 3.9.2.
++++  * debian/watch : remove call to uupdate, it is annoying since
++++    updates are done with git-import-orig.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 23 Apr 2011 18:42:42 +0200
++++
++++nodejs (0.4.6-2) unstable; urgency=low
++++
++++  * Expect some tests to fail when run without network.
++++    Closes: bug#623374.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 19 Apr 2011 22:17:37 +0200
++++
++++nodejs (0.4.6-1) unstable; urgency=low
++++
++++  * New upstream release
++++
++++  [ Jérémy Lal ]
++++  * Unfuzz patches.
++++  * Update debian/copyright, now copyright Joyent.
++++  * Drop SSL2 methods, see #589706.
++++    Closes: bug#622065.
++++  * Disable multicast test: Too dependent on network config.
++++  * Allow Debian-Maintainer uploads.
++++
++++  [ Jonas Smedegaard ]
++++  * Update copyright file:
++++    + Fix relabel OpenBSD license as OpenBSD~Lucent: Disclaimer is
++++      derived.
++++    + Fix comma-delimit files, and (while at it) newline-delimit them
++++      for improved readability.
++++    + Compact and extend copyright years.
++++  * Enable copyright-check.
++++    Build-depend on devscripts.
++++  * Add copyright hints.
++++
++++ -- Jonas Smedegaard <dr@jones.dk>  Sun, 17 Apr 2011 05:05:30 +0200
++++
++++nodejs (0.4.2-1) experimental; urgency=low
++++
++++  * New upstream release
++++
++++  [ Jérémy Lal ]
++++  * Enable regression tests, without failing when targeted experimental.
++++  * Unfuzz patches.
++++  * Tighten build-dependency on libev-dev, to match new upstream source.
++++
++++ -- Jonas Smedegaard <dr@jones.dk>  Sat, 12 Mar 2011 10:45:08 +0100
++++
++++nodejs (0.2.6-5) unstable; urgency=low
++++
++++  [ Jonas Smedegaard ]
++++  * Update team-maintainance:
++++    + Set Debian Javascript Maintainers as maintainer.
++++    + Set Jérémy Lal, Dave Beckett and myself as uploaders.
++++  * Bump policy compliance to standards-version 3.9.2.
++++  * Recompile against newer libv8.
++++    Closes: bug#622623. Thanks to Adrian Knoth.
++++  * Unfuzz patches.
++++
++++  [ Jérémy Lal ]
++++  * Update git-buildpackage config : add commented lines explaining
++++    layout.
++++  * Allow Debian-Maintainer uploads.
++++  * Add patch 1001 to disable ssl2 methods.
++++
++++ -- Jonas Smedegaard <dr@jones.dk>  Fri, 15 Apr 2011 23:33:09 +0200
++++
++++nodejs (0.2.6-4) unstable; urgency=low
++++
++++  [ Jérémy Lal ]
++++  * Disable simple/test-buffer Buffer.unpack test that fails on ARM.
++++    The pack/unpack functions are deprecated, and not documented.
++++
++++  [ Jonas Smedegaard ]
++++  * Drop done items from TODO.
++++
++++ -- Jonas Smedegaard <dr@jones.dk>  Mon, 07 Feb 2011 23:39:40 +0100
++++
++++nodejs (0.2.6-3) experimental; urgency=low
++++
++++  [ Jérémy Lal ]
++++  * Disable simple/test-dgram-multicast test that fails on sbuild.
++++
++++ -- Jonas Smedegaard <dr@jones.dk>  Tue, 25 Jan 2011 23:53:05 +0100
++++
++++nodejs (0.2.6-2) experimental; urgency=low
++++
++++  [ Jérémy Lal ]
++++  * Build-depends on libv8-2.5.9.9-2.
++++    (Closes: #610527, #607319, #605447, #597784)
++++  * Refactor patches, DEP-3 format.
++++  * Explain modules search paths in README.Debian.
++++
++++  [ Jonas Smedegaard ]
++++  * Relax nodejs-dbg suggestion on libv8-dbg to be unversioned: already
++++    handled by library packages.
++++
++++ -- Jonas Smedegaard <dr@jones.dk>  Tue, 25 Jan 2011 22:11:05 +0100
++++
++++nodejs (0.2.6-1) experimental; urgency=low
++++
++++  [ Jérémy Lal ]
++++  * New upstream release.
++++  * nodejs is an alternative to js. (Closes: #597572)
++++  * Use upstream binary names for node and node-waf,
++++    conflicts with node package. (Closes: #597571)
++++  * Global modules search paths :
++++    /usr/local/lib/nodejs
++++    /usr/lib/nodejs
++++    Custom paths can be set through NODE_PATH.
++++    The reason is to support future npm package, giving higher
++++    priority to modules installed by npm as root.
++++  * Repackage using CDBS.  Enable regression testing.
++++  * Add a note about importing upstream tarball in README.source.
++++  * Update TODO
++++
++++  [ Jonas Smedegaard ]
++++  * Add myself as uploader.
++++  * Limit watch file to stable releases.
++++  * Enable CDBS build-dependency autoresolving.
++++  * Tighten build-dependency on cdbs to versions properly supporting
++++    debhelper compat level 7.
++++  * Tighten build-dependency on debhelper to versions fully supporting
++++    compat level 7.
++++  * Build-depend on dh-buildinfo to include buildinfo hints with binary
++++    packages for easier troubleshooting.
++++  * Build-depend on curl: Needed for regression tests (testing on
++++    loopback, so should be Policy compliant).
++++  * Newline-delimit package relations for improved readability.
++++  * Add patch 2001 to skip TTY-needing regression test.
++++
++++ -- Jonas Smedegaard <dr@jones.dk>  Fri, 21 Jan 2011 21:00:24 +0100
++++
++++nodejs (0.2.2-1) experimental; urgency=low
++++
++++  * New upstream release
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 17 Sep 2010 21:27:40 +0200
++++
++++nodejs (0.2.0-1) unstable; urgency=low
++++
++++  * New upstream release
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 20 Aug 2010 11:49:04 +0200
++++
++++nodejs (0.1.104-1) unstable; urgency=low
++++
++++  * New upstream release. (Closes: #593088)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 16 Aug 2010 07:07:09 +0200
++++
++++nodejs (0.1.102-1) unstable; urgency=low
++++
++++  * New upstream release
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 27 Jul 2010 08:29:40 +0200
++++
++++nodejs (0.1.101-2) unstable; urgency=low
++++
++++  * Build-Depends on bash-completion for dh_bash-completion
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 21 Jul 2010 08:58:52 +0200
++++
++++nodejs (0.1.101-1) unstable; urgency=low
++++
++++  * New upstream release
++++  * Standards-Version 3.9.0
++++  * Move BSD license in debian/copyright
++++  * nodejs-waf now accepts NODE_PATH environment variable, which defines
++++    where to install compiled modules. Defaults to ~/.node_libraries.
++++  * nodejs-waf bash-completion snippet
++++  * API Manual registered with doc-base.
++++  * Depends on libv8-2.2.24
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Wed, 14 Jul 2010 13:52:07 +0200
++++
++++nodejs (0.1.99-1) unstable; urgency=low
++++
++++  * New upstream release
++++  * DNS module : MX support since c-ares 1.7.3
++++  * nodejs-repl is replaced by invoking nodejs without file argument,
++++    rlwrap is no more needed.
++++  * Full upstream author name in debian/copyright.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 29 Jun 2010 08:25:13 +0200
++++
++++nodejs (0.1.97-1) unstable; urgency=low
++++
++++  * New upstream release
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 30 May 2010 23:14:24 +0200
++++
++++nodejs (0.1.95-1) unstable; urgency=low
++++
++++  * New upstream release
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Fri, 14 May 2010 02:05:25 +0200
++++
++++nodejs (0.1.94-2) unstable; urgency=low
++++
++++  * Drop dependencies on libgnutls-dev, libgpg-error-dev.
++++  * Modules path moved to /usr/lib/nodejs (without /modules), to
++++    follow more closely upstream practice.
++++  * node-repl is now in /usr/share/nodejs because it is
++++    simply a js script file ; nodejs-repl still in /usr/bin
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Tue, 11 May 2010 19:52:12 +0200
++++
++++nodejs (0.1.94-1) unstable; urgency=low
++++
++++  * New upstream release
++++  * API has changed and will be more stable with 0.2 release
++++  * Fix dependency on libv8. (Closes: #579044)
++++  * Switched from gnutls to libssl.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 06 May 2010 23:19:12 +0200
++++
++++nodejs (0.1.92-1) unstable; urgency=low
++++
++++  * New upstream release
++++  * Switch from udns to c-ares.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sat, 24 Apr 2010 09:12:06 +0200
++++
++++nodejs (0.1.33-3) unstable; urgency=low
++++
++++  * Fix wrong use of binary-indep target in debian/rules.
++++    (Closes: #575383)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 05 Apr 2010 15:26:40 +0200
++++
++++nodejs (0.1.33-2) unstable; urgency=low
++++
++++  * Previous package was broken in some way. (Closes: #575383)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Thu, 25 Mar 2010 12:24:06 +0100
++++
++++nodejs (0.1.33-1) unstable; urgency=low
++++
++++  * New upstream release. (Closes: #572023)
++++  * Debian package has the same license as upstream (MIT).
++++  * Include waf in source package and nodejs-dev package. (Closes: #571710)
++++  * Switch to dpkg-source 3.0 (quilt) format.
++++  * Place modules directory in usr/lib/nodejs/modules,
++++    and add it to nodejs module path. Documentation in README.Debian.
++++  * Architecture: any since the supported archs depends only on libv8.
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Mon, 22 Mar 2010 01:53:48 +0100
++++
++++nodejs (0.1.27+dfsg-1) unstable; urgency=low
++++
++++  * Initial release (Closes: #553514)
++++
++++ -- Jérémy Lal <kapouer@melix.org>  Sun, 07 Feb 2010 01:16:07 +0100
diff --cc debian/control
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..adfd668aed68c554545a348b340583fd63a97db5
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,175 @@@@@
++++Source: nodejs
++++Section: javascript
++++Priority: optional
++++Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@alioth-lists.debian.net>
++++Uploaders: Jérémy Lal <kapouer@melix.org>,
++++ Jonas Smedegaard <dr@jones.dk>
++++Build-Depends:
++++ sse2-support [i386] <!nocheck>,
++++ armv6k-support [armel] <!nocheck>, vfpv2-support [armel] <!nocheck>,
++++ debhelper-compat (= 13),
++++ dh-buildinfo,
++++ bash-completion,
++++ dh-sequence-bash-completion,
++++ ca-certificates,
++++ curl <!nocheck>,
++++ gyp (>= 0.16.0~),
++++ jq,
++++ libbrotli-dev,
++++ libbrotli-dev:native,
++++ libc-ares-dev (>= 1.18.1~),
++++ libc-ares-dev:native,
++++ libhttp-parser-dev (>= 2.9.2~),
++++ libicu-dev (>= 70.1~),
++++ libicu-dev:native,
++++ libnghttp2-dev (>= 1.41.0~),
++++ libnghttp2-dev:native,
++++ libnghttp3-dev (>= 1.4.0~),
++++ libnghttp3-dev:native,
++++ libngtcp2-dev (>= 1.6.0~),
++++ libngtcp2-dev:native,
++++ libsimdjson-dev (>= 3.10.1~),
++++ libsimdjson-dev:native,
++++ libssl-dev (>= 1.1.1~),
++++ libssl-dev:native,
++++ libuv1-dev (>= 1.43.0~),
++++ libuv1-dev:native,
++++ node-acorn (>= 6.2.1~) <!pkg.nodejs.nobuiltin>,
++++ node-cjs-module-lexer (>= 1.2.2~) <!pkg.nodejs.nobuiltin>,
++++ node-minimatch (>= 9.0.3-5) <!pkg.nodejs.nobuiltin>,
++++ node-undici (>= 5.0.0~) <!pkg.nodejs.nobuiltin>,
++++ openssl (>= 1.1.1~) <!nocheck>,
++++ pkgconf,
++++ pkg-js-tools (>= 0.8.2~) <!nocheck>,
++++ python3:native,
++++ python3-packaging,
++++ procps <!nocheck>,
++++ zlib1g-dev,
++++ zlib1g-dev:native,
++++Build-Depends-Indep:
++++ node-js-yaml (>= 4.1.0+dfsg+~4.0.5-6) <!nodoc>,
++++ node-marked (>= 4~) <!nodoc>,
++++ node-highlight.js <!nodoc>,
++++Standards-Version: 4.6.2
++++Homepage: https://nodejs.org/
++++Vcs-Browser: https://salsa.debian.org/js-team/nodejs/tree/master-20.x
++++Vcs-Git: https://salsa.debian.org/js-team/nodejs.git -b master-20.x
++++Rules-Requires-Root: no
++++
++++Package: libnode-dev
++++Section: libdevel
++++Architecture: amd64 arm64 armel armhf i386 mips64el mips64r6el loong64 powerpc ppc64 ppc64el riscv64 s390x
++++Depends: ${misc:Depends},
++++ libssl-dev (>= 1.1.1~),
++++ libuv1-dev (>= 1.33.0~),
++++ libnode115 (= ${binary:Version})
++++Breaks: nodejs-dev (<< 10.0.0~dfsg1-3)
++++Replaces: libv8-dev,
++++ nodejs-dev (<< 10.0.0~dfsg1-3)
++++Conflicts: libv8-dev (<= 3.14.5.8-11)
++++Provides: libv8-dev
++++Description: evented I/O for V8 javascript (development files)
++++ Node.js is a platform built on Chrome's JavaScript runtime for easily
++++ building fast, scalable network applications. Node.js uses an
++++ event-driven, non-blocking I/O model that makes it lightweight and
++++ efficient, perfect for data-intensive real-time applications that run
++++ across distributed devices.
++++ .
++++ This package provides development headers for libnode115
++++
++++Package: nodejs
++++Architecture: amd64 arm64 armel armhf i386 mips64el mips64r6el loong64 powerpc ppc64 ppc64el riscv64 s390x
++++Multi-Arch: allowed
++++Depends:
++++ ${shlibs:Depends},
++++ ${misc:Depends},
++++ sse2-support [i386],
++++ armv6k-support [armel], vfpv2-support [armel],
++++ libnode115 (= ${binary:Version})
++++Recommends: ca-certificates,
++++ nodejs-doc
++++Suggests: npm, node-corepack
++++Replaces: nodejs-legacy
++++ , libnode72 (<< 13)
++++ , libnode83 (<< 16.13.2+really14.19.1~dfsg~)
++++ , libnode105
++++ , libnode108
++++ , libnode109
++++Conflicts: nodejs-legacy
++++Breaks: node-typescript-types (<< 20210110~)
++++ , node-babel-runtime (<< 7)
++++ , node-jest (<< 29~)
++++ , libnode72 (<< 13)
++++ , libnode83 (<< 16.13.2+really14.19.1~dfsg~)
++++ , libnode108 (<< 19)
++++ , libnode109 (<< 19)
++++Provides: node-types-node (= ${types:Node})
++++Description: evented I/O for V8 javascript - runtime executable
++++ Node.js is a platform built on Chrome's JavaScript runtime for easily
++++ building fast, scalable network applications. Node.js uses an
++++ event-driven, non-blocking I/O model that makes it lightweight and
++++ efficient, perfect for data-intensive real-time applications that run
++++ across distributed devices.
++++ .
++++ Node.js is bundled with several useful libraries to handle server
++++ tasks:
++++ .
++++ System, Events, Standard I/O, Modules, Timers, Child Processes, POSIX,
++++ HTTP, Multipart Parsing, TCP, DNS, Assert, Path, URL, Query Strings.
++++
++++Package: libnode115
++++Section: libs
++++Architecture: amd64 arm64 armel armhf i386 mips64el mips64r6el loong64 powerpc ppc64 ppc64el riscv64 s390x
++++Multi-Arch: same
++++Depends: ${shlibs:Depends},
++++ ${misc:Depends},
++++ sse2-support [i386],
++++ armv6k-support [armel], vfpv2-support [armel],
++++ node-acorn (>= 6.2.1~) <!pkg.nodejs.nobuiltin>,
++++ node-cjs-module-lexer (>= 1.2.2~) <!pkg.nodejs.nobuiltin>,
++++ node-minimatch (>= 9.0.3-5) <!pkg.nodejs.nobuiltin>,
++++ node-undici (>= 5.0.0~) <!pkg.nodejs.nobuiltin>
++++Breaks: node-modern-syslog (<< 1.1.4-2),
++++ libnode64 (<< 10.24.1~),
++++ libnode72 (<< 13),
++++ libnode108 (<< 19),
++++ libnode109 (<<19)
++++Replaces: nodejs-legacy, libnode72, libnode83, libnode93, libnode108, libnode109
++++Conflicts: nodejs-legacy
++++Description: evented I/O for V8 javascript - runtime library
++++ Node.js is a platform built on Chrome's JavaScript runtime for easily
++++ building fast, scalable network applications. Node.js uses an
++++ event-driven, non-blocking I/O model that makes it lightweight and
++++ efficient, perfect for data-intensive real-time applications that run
++++ across distributed devices.
++++ .
++++ Node.js is bundled with several useful libraries to handle server
++++ tasks:
++++ .
++++ System, Events, Standard I/O, Modules, Timers, Child Processes, POSIX,
++++ HTTP, Multipart Parsing, TCP, DNS, Assert, Path, URL, Query Strings.
++++ .
++++ This package provides the dynamic library for Node.js.
++++
++++Package: nodejs-doc
++++Section: doc
++++Architecture: all
++++Multi-Arch: foreign
++++Recommends: nodejs
++++Depends: ${misc:Depends}
++++Replaces: nodejs (<< 6.11.2~dfsg-3)
++++Conflicts: nodejs (<< 6.11.2~dfsg-3)
++++Description: API documentation for Node.js, the javascript platform
++++ Node.js is a platform built on Chrome's JavaScript runtime for easily
++++ building fast, scalable network applications. Node.js uses an
++++ event-driven, non-blocking I/O model that makes it lightweight and
++++ efficient, perfect for data-intensive real-time applications that run
++++ across distributed devices.
++++ .
++++ Node.js is bundled with several useful libraries to handle server
++++ tasks:
++++ .
++++ System, Events, Standard I/O, Modules, Timers, Child Processes, POSIX,
++++ HTTP, Multipart Parsing, TCP, DNS, Assert, Path, URL, Query Strings.
++++ .
++++ This package contains API documentation for Node.js.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c06f583c85a057ccd8d87cafc5376e9660d736d8
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1340 @@@@@
++++Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
++++Upstream-Name: Node.js
++++Upstream-Contact: https://github.com/nodejs/node/issues
++++Source: https://nodejs.org/
++++ https://registry.npmjs.org/@types/node
++++ https://github.com/ada-url/ada
++++Comment: Repackaged to exclude non-DFSG files:
++++  + deps/ada/*.{h,cpp}
++++    are precompiled files
++++    instead ada upstream tarball is a component
++++  + deps/acorn/*
++++    because it contains only the compiled version,
++++    using node-acorn instead
++++  + deps/minimatch/*
++++    compiled version, using node-minimatch instead
++++  + deps/brotli/*
++++    because it does not change often and debian version is
++++    up-to-date.
++++  + deps/cjs-module-lexer/*
++++    missing source files in the source tarball.
++++  + deps/corepack/*
++++    missing all source files, not stable.
++++  + deps/undici/*
++++    contains precompiled wasm files
++++    using node-undici instead
++++  + benchmark/fixtures/alice.html
++++  + src/res/node.ico
++++  + deps/npm/html/favicon.ico
++++    and png/jpg files in doc that show a Nodejs (TM) logo.
++++  + test/fixtures/postject-copy/*
++++    compiled version, dropped for now (used by one test)
++++  + deps/v8/third_party/ittapi/include/fortran/*
++++    contains useless generated files
++++  + tools/github_reporter/index.js
++++    non preferred form, also, useless
++++ Other files being excluded to ease copyright maintenance.
++++Files-Excluded:
++++ deps/ada/*.h
++++ deps/ada/*.cpp
++++ deps/acorn/*
++++ deps/minimatch/*
++++ deps/brotli/*
++++ deps/cares/*
++++ deps/corepack/*
++++ deps/cjs-module-lexer/*
++++ deps/nghttp2/*
++++ deps/ngtcp2/*
++++ deps/openssl/*
++++ deps/simdjson/*
++++ deps/undici/*
++++ deps/uv/*
++++ deps/zlib/*
++++ benchmark/fixtures/alice.html
++++ doc/osx_installer_logo.png
++++ doc/full-white-stripe.jpg
++++ doc/thin-white-stripe.jpg
++++ src/res/node.ico
++++ deps/icu-small/*
++++ deps/npm/*
++++ tools/certdata.txt
++++ tools/github_reporter/index.js
++++ tools/gyp/*
++++ test/fixtures/postject-copy/*
++++ deps/v8/third_party/ittapi/include/fortran/*
++++
++++Files: *
++++Copyright: Node.js contributors,
++++ Joyent, Inc. and other Node contributors.
++++License: Expat
++++
++++Files: ada/*
++++Copyright: 2023, Yagiz Nizipli and Daniel Lemire
++++License: Expat or Apache-2.0
++++
++++Files: ada/include/ada/expected.h
++++Copyright: 2017, Sy Brand (tartanllama@gmail.com, @TartanLlama)
++++License: CC0
++++
++++Files: ada/cmake/codecoverage.cmake
++++Copyright: 2012-2017, Lars Bilke
++++License: BSD-3-clause~holders
++++
++++Files: ada/cmake/CPM.cmake
++++Copyright: 2019-2023, Lars Melchior and contributors
++++License: Expat
++++
++++Files: deps/base64/*
++++Copyright: 2005-2007, Nick Galbreath
++++ 2013-2019, Alfred Klomp
++++ 2015-2017, Wojciech Mula
++++ 2016-2017, Matthieu Darbois
++++License: BSD-2-clause~holders
++++
++++Files: deps/cares/*
++++Copyright: 1998, Massachusetts Institute of Technology.
++++ 2007-2023 Daniel Stenberg with many contributors
++++License: Expat
++++
++++Files: deps/cares/src/lib/bitncmp.c
++++ deps/cares/src/lib/inet_net_pton.c
++++ deps/cares/src/lib/inet_ntop.c
++++Copyright: 1996,1999 Internet Software Consortium
++++ 2004 Internet Systems Consortium, Inc. ("ISC")
++++License: ISC
++++
++++Files: deps/googletest/*
++++Copyright: 2003-2009, Google Inc
++++License: BSD-3-clause~Google
++++
++++Files: test/fixtures/wpt/*
++++Copyright: w3c
++++License: BSD-3-clause~contributors or W3C-Test-Suite
++++
++++Files: test/fixtures/wpt/resources/webidl2/*
++++Copyright: 2014 Robin Berjon
++++License: Expat
++++
++++Files: deps/nghttp2/*
++++Copyright: 2012-2016 Tatsuhiro Tsujikawa and nghttp2 contributors
++++License: Expat
++++
++++Files: deps/ngtcp2/ngtcp2/*
++++Copyright: 2016 ngtcp2 contributors
++++License: Expat
++++
++++Files: deps/ngtcp2/nghttp3/*
++++Copyright: 2019 nghttp3 contributors
++++License: Expat
++++
++++Files: deps/uv/*
++++Copyright: 2011-2015, Joyent, Inc. and other Node contributors.
++++License: Expat
++++
++++Files: deps/uv/src/inet.c
++++Copyright: 2004, Internet Systems Consortium, Inc. ("ISC")
++++           1996-1999, Internet Software Consortium.
++++License: ISC
++++
++++Files: deps/uv/include/uv/tree.h
++++Copyright: 2002, Niels Provos <provos@citi.umich.edu>
++++License: BSD-2-clause~author
++++
++++Files: deps/uv/autogen.sh
++++ deps/uv/src/heap-inl.h
++++ deps/uv/src/queue.h
++++ src/heap_utils.cc
++++Copyright: 2012-2015, Ben Noordhuis <info@bnoordhuis.nl>
++++License: ISC
++++
++++Files: deps/uv/m4/libuv-check-flags.m4
++++Copyright: 2006-2008, Diego Pettenò <flameeyes gmail com>
++++  2006-2008, xine project
++++License: GPL-3
++++
++++Files: deps/v8/*
++++ tools/test.py
++++ tools/js2c.py
++++ tools/v8-json-to-junit.py
++++ test/pseudo-tty/testcfg.py
++++Copyright: 2006-2017, the V8 Project Authors <v8-dev@googlegroups.com>
++++License: BSD-3-clause~Google
++++
++++Files: tools/v8_gypfiles/GN-scraper.py
++++Copyright: 2019 Refael Ackeramnn<refack@gmail.com>
++++License: Expat
++++
++++Files: deps/histogram/*
++++Copyright: 2012, 2013, 2014 Gil Tene
++++ Marco Ippolito
++++ Filipe Oliveira
++++ 2014 Michael Barker
++++ 2014 Matt Warren
++++License: CC0 or BSD-2-clause~holders
++++
++++Files: deps/llhttp/*
++++Copyright: 2018 Fedor Indutny
++++License: Expat
++++
++++Files: deps/uvwasi/*
++++Copyright: 2019 Colin Ihrig and Contributors
++++License: Expat
++++
++++Files: deps/openssl/*
++++Copyright: 1998-2019 The OpenSSL Project.  All rights reserved.
++++ 1995-1998 Eric Young (eay@cryptsoft.com)
++++License: OpenSSL and SSLeay
++++
++++Files: types-node/*
++++Copyright: Microsoft Corporation
++++License: Expat
++++
++++License: OpenSSL
++++ Redistribution and use in source and binary forms, with or without
++++ modification, are permitted provided that the following conditions
++++ are met:
++++ .
++++ 1. Redistributions of source code must retain the above copyright
++++    notice, this list of conditions and the following disclaimer.
++++ .
++++ 2. Redistributions in binary form must reproduce the above copyright
++++    notice, this list of conditions and the following disclaimer in
++++    the documentation and/or other materials provided with the
++++    distribution.
++++ .
++++ 3. All advertising materials mentioning features or use of this
++++    software must display the following acknowledgment:
++++    "This product includes software developed by the OpenSSL Project
++++    for use in the OpenSSL Toolkit. (https://www.openssl.org/)"
++++ .
++++ 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
++++    endorse or promote products derived from this software without
++++    prior written permission. For written permission, please contact
++++    openssl-core@openssl.org.
++++ .
++++ 5. Products derived from this software may not be called "OpenSSL"
++++    nor may "OpenSSL" appear in their names without prior written
++++    permission of the OpenSSL Project.
++++ .
++++ 6. Redistributions of any form whatsoever must retain the following
++++    acknowledgment:
++++    "This product includes software developed by the OpenSSL Project
++++    for use in the OpenSSL Toolkit (https://www.openssl.org/)"
++++ .
++++ THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
++++ EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
++++ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
++++ ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++++ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++++ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++++ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++++ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
++++ OF THE POSSIBILITY OF SUCH DAMAGE.
++++
++++License: SSLeay
++++ This package is an SSL implementation written
++++ by Eric Young (eay@cryptsoft.com).
++++ The implementation was written so as to conform with Netscapes SSL.
++++ .
++++ This library is free for commercial and non-commercial use as long as
++++ the following conditions are adhered to.  The following conditions
++++ apply to all code found in this distribution, be it the RC4, RSA,
++++ lhash, DES, etc., code; not just the SSL code.  The SSL documentation
++++ included with this distribution is covered by the same copyright terms
++++ except that the holder is Tim Hudson (tjh@cryptsoft.com).
++++ .
++++ Copyright remains Eric Young's, and as such any Copyright notices in
++++ the code are not to be removed.
++++ If this package is used in a product, Eric Young should be given attribution
++++ as the author of the parts of the library used.
++++ This can be in the form of a textual message at program startup or
++++ in documentation (online or textual) provided with the package.
++++ .
++++ Redistribution and use in source and binary forms, with or without
++++ modification, are permitted provided that the following conditions
++++ are met:
++++ 1. Redistributions of source code must retain the copyright
++++    notice, this list of conditions and the following disclaimer.
++++ 2. Redistributions in binary form must reproduce the above copyright
++++    notice, this list of conditions and the following disclaimer in the
++++    documentation and/or other materials provided with the distribution.
++++ 3. All advertising materials mentioning features or use of this software
++++    must display the following acknowledgement:
++++    "This product includes cryptographic software written by
++++     Eric Young (eay@cryptsoft.com)"
++++    The word 'cryptographic' can be left out if the routines from the library
++++    being used are not cryptographic related :-).
++++ 4. If you include any Windows specific code (or a derivative thereof) from
++++    the apps directory (application code) you must include an acknowledgement:
++++    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
++++ .
++++ THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
++++ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++++ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
++++ ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
++++ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
++++ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
++++ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
++++ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
++++ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
++++ SUCH DAMAGE.
++++ .
++++ The licence and distribution terms for any publically available version or
++++ derivative of this code cannot be changed.  i.e. this code cannot simply be
++++ copied and put under another distribution licence
++++ [including the GNU General Public Licence.]
++++
++++Files: tools/icu/*
++++Copyright: 1995-2015 International Business Machines Corporation and others
++++License: MIT/X11
++++ Permission is hereby granted, free of charge, to any person
++++ obtaining a copy of this software and associated documentation
++++ files (the "Software"), to deal in the Software without
++++ restriction, including without limitation the rights to use, copy,
++++ modify, merge, publish, distribute, and/or sell copies of the
++++ Software, and to permit persons to whom the Software is furnished
++++ to do so, provided that the above copyright notice(s) and this
++++ permission notice appear in all copies of the Software and that
++++ both the above copyright notice(s) and this permission notice
++++ appear in supporting documentation.
++++ .
++++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
++++ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++++ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
++++ NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE
++++ COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR
++++ ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR
++++ ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
++++ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
++++ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
++++ PERFORMANCE OF THIS SOFTWARE.
++++ .
++++ Except as contained in this notice, the name of a copyright holder
++++ shall not be used in advertising or otherwise to promote the sale,
++++ use or other dealings in this Software without prior written
++++ authorization of the copyright holder.
++++ .
++++ All trademarks and registered trademarks mentioned herein are the
++++ property of their respective owners.
++++
++++Files: src/large_pages/*
++++Copyright: 2018 Intel Corporation
++++License: Expat
++++
++++Files: lib/internal/crypto/webidl.js
++++Copyright: 2014, Domenic Denicola
++++ 2018-2023, Deno authors
++++License: BSD-2-clause~holders and Expat
++++
++++Files: lib/internal/freeze_intrinsics.js
++++Copyright: 2011 Google Inc, 2018 Agoric
++++License: Apache-2.0
++++Comment: Adapted from SES/Caja
++++
++++Files: lib/internal/fs/cp/*
++++Copyright: 2011-2017 JP Richardson
++++License: Expat
++++
++++Files: lib/internal/fs/rimraf.js
++++Copyright: Isaac Z. Schlueter and Contributors
++++License: ISC
++++
++++Files: deps/simdutf/*
++++Copyright: 2021, The simdutf authors
++++License: Expat
++++
++++Files: deps/zlib/*
++++Copyright: 1995-2023 Jean-loup Gailly <jloup@gzip.org> and
++++ Mark Adler <madler@alumni.caltech.edu>
++++License: zlib
++++ This software is provided 'as-is', without any express or implied
++++ warranty.  In no event will the authors be held liable for any damages
++++ arising from the use of this software.
++++ .
++++ Permission is granted to anyone to use this software for any purpose,
++++ including commercial applications, and to alter it and redistribute it
++++ freely, subject to the following restrictions:
++++ .
++++ 1. The origin of this software must not be misrepresented; you must not
++++    claim that you wrote the original software. If you use this software
++++    in a product, an acknowledgment in the product documentation would be
++++    appreciated but is not required.
++++ 2. Altered source versions must be plainly marked as such, and must not be
++++    misrepresented as being the original software.
++++ 3. This notice may not be removed or altered from any source distribution.
++++Comment:
++++ The deflate format used by zlib was defined by Phil Katz. The deflate
++++ and zlib specifications were written by Peter Deutsch. Thanks to all the
++++ people who reported problems and suggested various improvements in zlib;
++++ they are too numerous to cite here.
++++
++++Files: deps/v8/base/trace_event/common/trace_event_common.h
++++ deps/v8/BUILD.gn
++++ deps/v8/include/js_protocol.pdl
++++ deps/v8/src/base/free_deleter.h
++++ deps/v8/src/base/debug/stack_trace_win.cc
++++ deps/v8/src/base/debug/stack_trace_android.cc
++++ deps/v8/src/base/debug/stack_trace_posix.cc
++++ deps/v8/src/base/debug/stack_trace.h
++++ deps/v8/src/base/optional.h
++++ deps/v8/src/base/safe_conversions.h
++++ deps/v8/src/base/safe_conversions_impl.h
++++ deps/v8/third_party/inspector_protocol/*
++++ tools/inspector_protocol/*
++++ deps/v8/tools/mb/mb.py
++++ deps/v8/tools/mb/mb_test.py
++++ deps/v8/tools/mb/PRESUBMIT.py
++++ deps/v8/tools/mb/mb
++++ deps/zlib/zlib.gyp
++++ deps/v8/third_party/zlib/*
++++ src/tracing/trace_event_common.h
++++ tools/icu/icu-generic.gyp
++++Copyright: 2009-2019 The Chromium Authors
++++License: BSD-3-clause~Google
++++
++++Files: deps/v8/src/inspector/*
++++Copyright: Copyright: 2007-2009 Apple Inc.
++++ 2009-2013 Google Inc.
++++ 2014-2016 The Chromium Authors
++++License: BSD-3-clause~Google
++++
++++Files: deps/v8/third_party/colorama/*
++++Copyright: 2010 Jonathan Hartley All rights reserved.
++++License: BSD-3-clause~holders
++++
++++Files: deps/v8/third_party/glibc/*
++++Copyright: 2001-2022 Free Software Foundation, Inc.
++++License: LGPL-2.1+
++++
++++Files: deps/v8/third_party/ittapi/*
++++Copyright: 2005-2020 Intel Corporation. All rights reserved.
++++License: BSD-3-clause~holders or GPL-2
++++
++++Files: deps/v8/third_party/ittapi/src/ittnotify/ittptmark32.S
++++ deps/v8/third_party/ittapi/src/ittnotify/ittptmark64.S
++++ deps/v8/third_party/ittapi/src/ittnotify/ittptmark64.asm
++++ deps/v8/third_party/ittapi/src/ittnotify/ittptmark32.asm
++++Copyright: 2005-2020 Intel Corporation. All rights reserved.
++++License: BSD-3-clause~intel or GPL-2
++++
++++Files: deps/v8/third_party/jinja2/*
++++ tools/inspector_protocol/jinja2/*
++++Copyright: 2009-2013 Jinja Team, see AUTHORS
++++License: BSD-3-clause~contributors
++++
++++Files: deps/v8/third_party/markupsafe/*
++++ tools/inspector_protocol/markupsafe/*
++++Copyright: 2013 by Armin Ronacher and contributors
++++License: BSD-3-clause~contributors
++++
++++Files: deps/v8/src/third_party/siphash/*
++++Copyright: 2016 Jean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com>
++++License: CC0
++++
++++Files: deps/v8/src/third_party/utf8-decoder/*
++++Copyright: 2008-2009, Bjoern Hoehrmann <bjoern@hoehrmann.de>
++++License: Expat
++++
++++Files: deps/v8/third_party/v8/builtins/*
++++Copyright: 2001-2018 Python Software Foundation
++++License: Python
++++
++++Files: deps/v8/src/codegen/arm/assembler-arm*
++++ deps/v8/src/codegen/assembler.*
++++ deps/v8/src/codegen/arm64/assembler-arm64*
++++ deps/v8/src/codegen/ia32/assembler-ia32*
++++ deps/v8/src/codegen/mips64/assembler-mips64*
++++ deps/v8/src/codegen/ppc/assembler-ppc*
++++ deps/v8/src/codegen/s390/assembler-s390*
++++ deps/v8/src/codegen/x64/assembler-x64*
++++Copyright: 1994-2006,2011, Sun Microsystems Inc.
++++License: BSD-3-clause~Sun
++++
++++Files: deps/v8/src/third_party/valgrind/valgrind.h
++++Copyright: 2000-2010, Julian Seward
++++License: BSD-4-clause~author
++++
++++Files: deps/v8/src/third_party/vtune/*
++++Copyright: 2005-2012, Intel Corporation.
++++License: BSD-3-clause~Intel or GPL-2
++++
++++Files: deps/v8/src/base/ieee754.cc
++++Copyright: 1993-2004 by Sun Microsystems, Inc. All rights reserved.
++++License: ISC-no-disclaim
++++ Developed at SunSoft, a Sun Microsystems, Inc. business.
++++ Permission to use, copy, modify, and distribute this
++++ software is freely granted, provided that this notice
++++ is preserved.
++++
++++Files: lib/assert.js
++++Copyright: 2009 Thomas Robinson <280north.com>
++++License: Expat
++++
++++Files: lib/internal/tty.js
++++Copyright: Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
++++License: Expat
++++
++++Files: lib/punycode.js
++++Copyright: 2011-2014 Mathias Bynens <https://mathiasbynens.be/>
++++License: Expat
++++
++++Files: src/node_root_certs.h
++++Copyright: Mozilla Contributors
++++Comment:
++++ Original Copyright: 1994-2000 Netscape Communications Corporation
++++ (certdata.txt <= CVS Revision: 1.82)
++++ NSS no longer contains explicit copyright. Upstream indicates
++++ that "Mozilla Contributors" is an appropriate attibution for the
++++ required Copyright: field in Debian's machine-readable format.
++++ https://bugzilla.mozilla.org/show_bug.cgi?id=850003
++++License: MPL-2.0
++++
++++Files: lib/v8.js
++++Copyright: 2013, 2014 StrongLoop, Inc. <callback@strongloop.com>
++++License: ISC
++++
++++Files: tools/mk-ca-bundle.pl
++++Copyright: 1998-2014, Daniel Stenberg <daniel@haxx.se>, et al.
++++License: curl
++++ Permission to use, copy, modify, and distribute this software for any
++++ purpose with or without fee is hereby granted, provided that the above
++++ copyright notice and this permission notice appear in all copies.
++++ .
++++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
++++ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++++ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
++++ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
++++ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
++++ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
++++ USE OR OTHER DEALINGS IN THE SOFTWARE.
++++ .
++++ Except as contained in this notice, the name of a copyright holder shall
++++ not be used in advertising or otherwise to promote the sale, use or other
++++ dealings in this Software without prior written authorization of the
++++ copyright holder.
++++
++++Files: debian/*
++++Copyright: 2009-2015 Jérémy Lal <kapouer@melix.org>
++++License: Expat
++++
++++Files: debian/doc-generator/*
++++Copyright: Node.js contributors,
++++ Joyent, Inc. and other Node contributors.
++++License: Expat
++++Comment: Old toold/doc source using marked. Stored as a copy instead
++++ of a patch that was difficult to update.
++++
++++License: Expat
++++ Permission is hereby granted, free of charge, to any person obtaining a copy
++++ of this software and associated documentation files (the "Software"), to
++++ deal in the Software without restriction, including without limitation the
++++ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
++++ sell copies of the Software, and to permit persons to whom the Software is
++++ furnished to do so, subject to the following conditions:
++++ .
++++ The above copyright notice and this permission notice shall be included in
++++ all copies or substantial portions of the Software.
++++ .
++++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++++ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++++ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
++++ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
++++ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
++++ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
++++ IN THE SOFTWARE.
++++
++++License: BSD-2-clause~author
++++ Redistribution and use in source and binary forms, with or without
++++ modification, are permitted provided that the following conditions are
++++ met:
++++ .
++++ 1. Redistributions of source code must retain the above copyright
++++    notice, this list of conditions and the following disclaimer.
++++ .
++++ 2. Redistributions in binary form must reproduce the above copyright
++++    notice, this list of conditions and the following disclaimer in the
++++    documentation and/or other materials provided with the distribution.
++++ .
++++ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
++++ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
++++ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
++++ DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
++++ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
++++ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
++++ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++++ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
++++ IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
++++ POSSIBILITY OF SUCH DAMAGE.
++++
++++License: BSD-2-clause~holders
++++ Redistribution and use in source and binary forms, with or without
++++ modification, are permitted provided that the following conditions are
++++ met:
++++ .
++++ 1. Redistributions of source code must retain the above copyright
++++ notice, this list of conditions and the following disclaimer.
++++ .
++++ 2. Redistributions in binary form must reproduce the above copyright
++++ notice, this list of conditions and the following disclaimer in the
++++ documentation and/or other materials provided with the distribution.
++++ .
++++ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
++++ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
++++ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
++++ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
++++ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
++++ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
++++ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
++++ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
++++ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
++++ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++++
++++License: BSD-3-clause~Google
++++ Redistribution and use in source and binary forms, with or without
++++ modification, are permitted provided that the following conditions are
++++ met:
++++ .
++++  * Redistributions of source code must retain the above copyright
++++    notice, this list of conditions and the following disclaimer.
++++  * Redistributions in binary form must reproduce the above copyright
++++    notice, this list of conditions and the following disclaimer in the
++++    documentation and/or other materials provided with the distribution.
++++  * Neither the name of Google Inc. nor the names of its contributors
++++    may be used to endorse or promote products derived from this
++++    software without specific prior written permission.
++++ .
++++ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
++++ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
++++ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
++++ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
++++ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
++++ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
++++ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
++++ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
++++ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
++++ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++++
++++License: BSD-3-clause~Sun
++++ Redistribution and use in source and binary forms, with or without
++++ modification, are permitted provided that the following conditions are
++++ met:
++++ .
++++  - Redistributions of source code must retain the above copyright
++++    notice, this list of conditions and the following disclaimer.
++++  - Redistribution in binary form must reproduce the above copyright
++++    notice, this list of conditions and the following disclaimer in the
++++    documentation and/or other materials provided with the distribution.
++++  - Neither the name of Sun Microsystems or the names of contributors
++++    may be used to endorse or promote products derived from this
++++    software without specific prior written permission.
++++ .
++++ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
++++ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
++++ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
++++ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
++++ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
++++ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
++++ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
++++ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
++++ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
++++ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++++
++++License: BSD-3-clause~Intel
++++ Redistribution and use in source and binary forms, with or without
++++ modification, are permitted provided that the following conditions
++++ are met:
++++ .
++++  * Redistributions of source code must retain the above copyright
++++    notice, this list of conditions and the following disclaimer.
++++  * Redistributions in binary form must reproduce the above copyright
++++    notice, this list of conditions and the following disclaimer in
++++    the documentation and/or other materials provided with the
++++    distribution.
++++  * Neither the name of Intel Corporation nor the names of its
++++    contributors may be used to endorse or promote products derived
++++    from this software without specific prior written permission.
++++ .
++++ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
++++ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
++++ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
++++ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
++++ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
++++ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
++++ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
++++ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
++++ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
++++ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++++
++++License: BSD-3-clause~contributors
++++ Redistribution and use in source and binary forms, with or without
++++ modification, are permitted provided that the following conditions are
++++ met:
++++ .
++++    * Redistributions of source code must retain the above copyright
++++      notice, this list of conditions and the following disclaimer.
++++ .
++++    * Redistributions in binary form must reproduce the above
++++      copyright notice, this list of conditions and the following
++++      disclaimer in the documentation and/or other materials provided
++++      with the distribution.
++++ .
++++    * The names of the contributors may not be used to endorse or
++++      promote products derived from this software without specific
++++      prior written permission.
++++ .
++++ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
++++ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
++++ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
++++ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
++++ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
++++ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
++++ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
++++ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
++++ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
++++ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++++
++++License: BSD-3-clause~author
++++ Redistribution and use in source and binary forms, with or without
++++ modification, are permitted provided that the following conditions are met:
++++ .
++++   1. Redistributions of source code must retain the above copyright notice,
++++      this list of conditions and the following disclaimer.
++++ .
++++   2. Redistributions in binary form must reproduce the above copyright
++++      notice, this list of conditions and the following disclaimer in the
++++      documentation and/or other materials provided with the distribution.
++++ .
++++   3. The name of the author may be used to endorse or promote products
++++      derived from this software without specific prior written permission.
++++ .
++++ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
++++ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
++++ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
++++ EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
++++ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
++++ OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
++++ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
++++ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
++++ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++++
++++License: BSD-3-clause~holders
++++ Redistribution and use in source and binary forms, with or without
++++ modification, are permitted provided that the following conditions are met:
++++ .
++++ * Redistributions of source code must retain the above copyright notice, this
++++   list of conditions and the following disclaimer.
++++ .
++++ * Redistributions in binary form must reproduce the above copyright notice,
++++   this list of conditions and the following disclaimer in the documentation
++++   and/or other materials provided with the distribution.
++++ .
++++ * Neither the name of the copyright holders, nor those of its contributors
++++   may be used to endorse or promote products derived from this software without
++++   specific prior written permission.
++++ .
++++ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
++++ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
++++ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
++++ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
++++ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
++++ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
++++ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
++++ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
++++ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
++++ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++++
++++License: BSD-4-clause~author
++++ Redistribution and use in source and binary forms, with or without
++++ modification, are permitted provided that the following conditions are
++++ met:
++++ .
++++ 1. Redistributions of source code must retain the above copyright
++++    notice, this list of conditions and the following disclaimer.
++++ .
++++ 2. The origin of this software must not be misrepresented; you must not
++++    claim that you wrote the original software.  If you use this
++++    software in a product, an acknowledgment in the product
++++    documentation would be appreciated but is not required.
++++ .
++++ 3. Altered source versions must be plainly marked as such, and must not
++++    be misrepresented as being the original software.
++++ .
++++ 4. The name of the author may not be used to endorse or promote
++++    products derived from this software without specific prior written
++++    permission.
++++ .
++++ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
++++ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
++++ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
++++ DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
++++ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
++++ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
++++ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++++ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++++ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
++++ IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
++++ POSSIBILITY OF SUCH DAMAGE.
++++
++++License: GPL-2
++++ Comment:
++++ .
++++ On Debian GNU/Linux systems, the complete text of the GNU General
++++ Public License can be found in `/usr/share/common-licenses/GPL-2'
++++
++++License: GPL-3
++++ Comment:
++++ .
++++ On Debian GNU/Linux systems, the complete text of the GNU General
++++ Public License can be found in `/usr/share/common-licenses/GPL-3'
++++
++++License: ISC
++++ Permission to use, copy, modify, and/or distribute this software for any
++++ purpose with or without fee is hereby granted, provided that the above
++++ copyright notice and this permission notice appear in all copies.
++++ .
++++ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
++++ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
++++ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
++++ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
++++ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
++++ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
++++ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
++++
++++License: Apache-2.0
++++ Licensed under the Apache License, Version 2.0 (the "License");
++++ you may not use this file except in compliance with the License.
++++ You may obtain a copy of the License at
++++ .
++++     https://www.apache.org/licenses/LICENSE-2.0
++++ .
++++ Unless required by applicable law or agreed to in writing, software
++++ distributed under the License is distributed on an "AS IS" BASIS,
++++ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
++++ See the License for the specific language governing permissions and
++++ limitations under the License.
++++ .
++++ Comment:
++++ .
++++ On Debian GNU/Linux systems, the complete text of Apache License,
++++ Version 2.0 can be found in `/usr/share/common-licenses/Apache-2.0'
++++
++++License: MPL-2.0
++++ Mozilla Public License Version 2.0
++++ ==================================
++++ .
++++ 1. Definitions
++++ --------------
++++ .
++++ 1.1. "Contributor"
++++     means each individual or legal entity that creates, contributes to
++++     the creation of, or owns Covered Software.
++++ .
++++ 1.2. "Contributor Version"
++++     means the combination of the Contributions of others (if any) used
++++     by a Contributor and that particular Contributor's Contribution.
++++ .
++++ 1.3. "Contribution"
++++     means Covered Software of a particular Contributor.
++++ .
++++ 1.4. "Covered Software"
++++     means Source Code Form to which the initial Contributor has attached
++++     the notice in Exhibit A, the Executable Form of such Source Code
++++     Form, and Modifications of such Source Code Form, in each case
++++     including portions thereof.
++++ .
++++ 1.5. "Incompatible With Secondary Licenses"
++++     means
++++ .
++++     (a) that the initial Contributor has attached the notice described
++++         in Exhibit B to the Covered Software; or
++++ .
++++     (b) that the Covered Software was made available under the terms of
++++         version 1.1 or earlier of the License, but not also under the
++++         terms of a Secondary License.
++++ .
++++ 1.6. "Executable Form"
++++     means any form of the work other than Source Code Form.
++++ .
++++ 1.7. "Larger Work"
++++     means a work that combines Covered Software with other material, in
++++     a separate file or files, that is not Covered Software.
++++ .
++++ 1.8. "License"
++++     means this document.
++++ .
++++ 1.9. "Licensable"
++++     means having the right to grant, to the maximum extent possible,
++++     whether at the time of the initial grant or subsequently, any and
++++     all of the rights conveyed by this License.
++++ .
++++ 1.10. "Modifications"
++++     means any of the following:
++++ .
++++     (a) any file in Source Code Form that results from an addition to,
++++         deletion from, or modification of the contents of Covered
++++         Software; or
++++ .
++++     (b) any new file in Source Code Form that contains any Covered
++++         Software.
++++ .
++++ 1.11. "Patent Claims" of a Contributor
++++     means any patent claim(s), including without limitation, method,
++++     process, and apparatus claims, in any patent Licensable by such
++++     Contributor that would be infringed, but for the grant of the
++++     License, by the making, using, selling, offering for sale, having
++++     made, import, or transfer of either its Contributions or its
++++     Contributor Version.
++++ .
++++ 1.12. "Secondary License"
++++     means either the GNU General Public License, Version 2.0, the GNU
++++     Lesser General Public License, Version 2.1, the GNU Affero General
++++     Public License, Version 3.0, or any later versions of those
++++     licenses.
++++ .
++++ 1.13. "Source Code Form"
++++     means the form of the work preferred for making modifications.
++++ .
++++ 1.14. "You" (or "Your")
++++     means an individual or a legal entity exercising rights under this
++++     License. For legal entities, "You" includes any entity that
++++     controls, is controlled by, or is under common control with You. For
++++     purposes of this definition, "control" means (a) the power, direct
++++     or indirect, to cause the direction or management of such entity,
++++     whether by contract or otherwise, or (b) ownership of more than
++++     fifty percent (50%) of the outstanding shares or beneficial
++++     ownership of such entity.
++++ .
++++ 2. License Grants and Conditions
++++ --------------------------------
++++ .
++++ 2.1. Grants
++++ .
++++ Each Contributor hereby grants You a world-wide, royalty-free,
++++ non-exclusive license:
++++ .
++++ (a) under intellectual property rights (other than patent or trademark)
++++     Licensable by such Contributor to use, reproduce, make available,
++++     modify, display, perform, distribute, and otherwise exploit its
++++     Contributions, either on an unmodified basis, with Modifications, or
++++     as part of a Larger Work; and
++++ .
++++ (b) under Patent Claims of such Contributor to make, use, sell, offer
++++     for sale, have made, import, and otherwise transfer either its
++++     Contributions or its Contributor Version.
++++ .
++++ 2.2. Effective Date
++++ .
++++ The licenses granted in Section 2.1 with respect to any Contribution
++++ become effective for each Contribution on the date the Contributor first
++++ distributes such Contribution.
++++ .
++++ 2.3. Limitations on Grant Scope
++++ .
++++ The licenses granted in this Section 2 are the only rights granted under
++++ this License. No additional rights or licenses will be implied from the
++++ distribution or licensing of Covered Software under this License.
++++ Notwithstanding Section 2.1(b) above, no patent license is granted by a
++++ Contributor:
++++ .
++++ (a) for any code that a Contributor has removed from Covered Software;
++++     or
++++ .
++++ (b) for infringements caused by: (i) Your and any other third party's
++++     modifications of Covered Software, or (ii) the combination of its
++++     Contributions with other software (except as part of its Contributor
++++     Version); or
++++ .
++++ (c) under Patent Claims infringed by Covered Software in the absence of
++++     its Contributions.
++++ .
++++ This License does not grant any rights in the trademarks, service marks,
++++ or logos of any Contributor (except as may be necessary to comply with
++++ the notice requirements in Section 3.4).
++++ .
++++ 2.4. Subsequent Licenses
++++ .
++++ No Contributor makes additional grants as a result of Your choice to
++++ distribute the Covered Software under a subsequent version of this
++++ License (see Section 10.2) or under the terms of a Secondary License (if
++++ permitted under the terms of Section 3.3).
++++ .
++++ 2.5. Representation
++++ .
++++ Each Contributor represents that the Contributor believes its
++++ Contributions are its original creation(s) or it has sufficient rights
++++ to grant the rights to its Contributions conveyed by this License.
++++ .
++++ 2.6. Fair Use
++++ .
++++ This License is not intended to limit any rights You have under
++++ applicable copyright doctrines of fair use, fair dealing, or other
++++ equivalents.
++++ .
++++ 2.7. Conditions
++++ .
++++ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
++++ in Section 2.1.
++++ .
++++ 3. Responsibilities
++++ -------------------
++++ .
++++ 3.1. Distribution of Source Form
++++ .
++++ All distribution of Covered Software in Source Code Form, including any
++++ Modifications that You create or to which You contribute, must be under
++++ the terms of this License. You must inform recipients that the Source
++++ Code Form of the Covered Software is governed by the terms of this
++++ License, and how they can obtain a copy of this License. You may not
++++ attempt to alter or restrict the recipients' rights in the Source Code
++++ Form.
++++ .
++++ 3.2. Distribution of Executable Form
++++ .
++++ If You distribute Covered Software in Executable Form then:
++++ .
++++ (a) such Covered Software must also be made available in Source Code
++++     Form, as described in Section 3.1, and You must inform recipients of
++++     the Executable Form how they can obtain a copy of such Source Code
++++     Form by reasonable means in a timely manner, at a charge no more
++++     than the cost of distribution to the recipient; and
++++ .
++++ (b) You may distribute such Executable Form under the terms of this
++++     License, or sublicense it under different terms, provided that the
++++     license for the Executable Form does not attempt to limit or alter
++++     the recipients' rights in the Source Code Form under this License.
++++ .
++++ 3.3. Distribution of a Larger Work
++++ .
++++ You may create and distribute a Larger Work under terms of Your choice,
++++ provided that You also comply with the requirements of this License for
++++ the Covered Software. If the Larger Work is a combination of Covered
++++ Software with a work governed by one or more Secondary Licenses, and the
++++ Covered Software is not Incompatible With Secondary Licenses, this
++++ License permits You to additionally distribute such Covered Software
++++ under the terms of such Secondary License(s), so that the recipient of
++++ the Larger Work may, at their option, further distribute the Covered
++++ Software under the terms of either this License or such Secondary
++++ License(s).
++++ .
++++ 3.4. Notices
++++ .
++++ You may not remove or alter the substance of any license notices
++++ (including copyright notices, patent notices, disclaimers of warranty,
++++ or limitations of liability) contained within the Source Code Form of
++++ the Covered Software, except that You may alter any license notices to
++++ the extent required to remedy known factual inaccuracies.
++++ .
++++ 3.5. Application of Additional Terms
++++ .
++++ You may choose to offer, and to charge a fee for, warranty, support,
++++ indemnity or liability obligations to one or more recipients of Covered
++++ Software. However, You may do so only on Your own behalf, and not on
++++ behalf of any Contributor. You must make it absolutely clear that any
++++ such warranty, support, indemnity, or liability obligation is offered by
++++ You alone, and You hereby agree to indemnify every Contributor for any
++++ liability incurred by such Contributor as a result of warranty, support,
++++ indemnity or liability terms You offer. You may include additional
++++ disclaimers of warranty and limitations of liability specific to any
++++ jurisdiction.
++++ .
++++ 4. Inability to Comply Due to Statute or Regulation
++++ ---------------------------------------------------
++++ .
++++ If it is impossible for You to comply with any of the terms of this
++++ License with respect to some or all of the Covered Software due to
++++ statute, judicial order, or regulation then You must: (a) comply with
++++ the terms of this License to the maximum extent possible; and (b)
++++ describe the limitations and the code they affect. Such description must
++++ be placed in a text file included with all distributions of the Covered
++++ Software under this License. Except to the extent prohibited by statute
++++ or regulation, such description must be sufficiently detailed for a
++++ recipient of ordinary skill to be able to understand it.
++++ .
++++ 5. Termination
++++ --------------
++++ .
++++ 5.1. The rights granted under this License will terminate automatically
++++ if You fail to comply with any of its terms. However, if You become
++++ compliant, then the rights granted under this License from a particular
++++ Contributor are reinstated (a) provisionally, unless and until such
++++ Contributor explicitly and finally terminates Your grants, and (b) on an
++++ ongoing basis, if such Contributor fails to notify You of the
++++ non-compliance by some reasonable means prior to 60 days after You have
++++ come back into compliance. Moreover, Your grants from a particular
++++ Contributor are reinstated on an ongoing basis if such Contributor
++++ notifies You of the non-compliance by some reasonable means, this is the
++++ first time You have received notice of non-compliance with this License
++++ from such Contributor, and You become compliant prior to 30 days after
++++ Your receipt of the notice.
++++ .
++++ 5.2. If You initiate litigation against any entity by asserting a patent
++++ infringement claim (excluding declaratory judgment actions,
++++ counter-claims, and cross-claims) alleging that a Contributor Version
++++ directly or indirectly infringes any patent, then the rights granted to
++++ You by any and all Contributors for the Covered Software under Section
++++ 2.1 of this License shall terminate.
++++ .
++++ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
++++ end user license agreements (excluding distributors and resellers) which
++++ have been validly granted by You or Your distributors under this License
++++ prior to termination shall survive termination.
++++ .
++++ ************************************************************************
++++ *                                                                      *
++++ *  6. Disclaimer of Warranty                                           *
++++ *  -------------------------                                           *
++++ *                                                                      *
++++ *  Covered Software is provided under this License on an "as is"       *
++++ *  basis, without warranty of any kind, either expressed, implied, or  *
++++ *  statutory, including, without limitation, warranties that the       *
++++ *  Covered Software is free of defects, merchantable, fit for a        *
++++ *  particular purpose or non-infringing. The entire risk as to the     *
++++ *  quality and performance of the Covered Software is with You.        *
++++ *  Should any Covered Software prove defective in any respect, You     *
++++ *  (not any Contributor) assume the cost of any necessary servicing,   *
++++ *  repair, or correction. This disclaimer of warranty constitutes an   *
++++ *  essential part of this License. No use of any Covered Software is   *
++++ *  authorized under this License except under this disclaimer.         *
++++ *                                                                      *
++++ ************************************************************************
++++ .
++++ ************************************************************************
++++ *                                                                      *
++++ *  7. Limitation of Liability                                          *
++++ *  --------------------------                                          *
++++ *                                                                      *
++++ *  Under no circumstances and under no legal theory, whether tort      *
++++ *  (including negligence), contract, or otherwise, shall any           *
++++ *  Contributor, or anyone who distributes Covered Software as          *
++++ *  permitted above, be liable to You for any direct, indirect,         *
++++ *  special, incidental, or consequential damages of any character      *
++++ *  including, without limitation, damages for lost profits, loss of    *
++++ *  goodwill, work stoppage, computer failure or malfunction, or any    *
++++ *  and all other commercial damages or losses, even if such party      *
++++ *  shall have been informed of the possibility of such damages. This   *
++++ *  limitation of liability shall not apply to liability for death or   *
++++ *  personal injury resulting from such party's negligence to the       *
++++ *  extent applicable law prohibits such limitation. Some               *
++++ *  jurisdictions do not allow the exclusion or limitation of           *
++++ *  incidental or consequential damages, so this exclusion and          *
++++ *  limitation may not apply to You.                                    *
++++ *                                                                      *
++++ ************************************************************************
++++ .
++++ 8. Litigation
++++ -------------
++++ .
++++ Any litigation relating to this License may be brought only in the
++++ courts of a jurisdiction where the defendant maintains its principal
++++ place of business and such litigation shall be governed by laws of that
++++ jurisdiction, without reference to its conflict-of-law provisions.
++++ Nothing in this Section shall prevent a party's ability to bring
++++ cross-claims or counter-claims.
++++ .
++++ 9. Miscellaneous
++++ ----------------
++++ .
++++ This License represents the complete agreement concerning the subject
++++ matter hereof. If any provision of this License is held to be
++++ unenforceable, such provision shall be reformed only to the extent
++++ necessary to make it enforceable. Any law or regulation which provides
++++ that the language of a contract shall be construed against the drafter
++++ shall not be used to construe this License against a Contributor.
++++ .
++++ 10. Versions of the License
++++ ---------------------------
++++ .
++++ 10.1. New Versions
++++ .
++++ Mozilla Foundation is the license steward. Except as provided in Section
++++ 10.3, no one other than the license steward has the right to modify or
++++ publish new versions of this License. Each version will be given a
++++ distinguishing version number.
++++ .
++++ 10.2. Effect of New Versions
++++ .
++++ You may distribute the Covered Software under the terms of the version
++++ of the License under which You originally received the Covered Software,
++++ or under the terms of any subsequent version published by the license
++++ steward.
++++ .
++++ 10.3. Modified Versions
++++ .
++++ If you create software not governed by this License, and you want to
++++ create a new license for such software, you may create and use a
++++ modified version of this License if you rename the license and remove
++++ any references to the name of the license steward (except to note that
++++ such modified license differs from this License).
++++ .
++++ 10.4. Distributing Source Code Form that is Incompatible With Secondary
++++ Licenses
++++ .
++++ If You choose to distribute Source Code Form that is Incompatible With
++++ Secondary Licenses under the terms of this version of the License, the
++++ notice described in Exhibit B of this License must be attached.
++++ .
++++ Exhibit A - Source Code Form License Notice
++++ -------------------------------------------
++++ .
++++   This Source Code Form is subject to the terms of the Mozilla Public
++++   License, v. 2.0. If a copy of the MPL was not distributed with this
++++   file, You can obtain one at https://mozilla.org/MPL/2.0/.
++++ .
++++ If it is not possible or desirable to put the notice in a particular
++++ file, then You may include the notice in a location (such as a LICENSE
++++ file in a relevant directory) where a recipient would be likely to look
++++ for such a notice.
++++ .
++++ You may add additional accurate notices of copyright ownership.
++++ .
++++ Exhibit B - "Incompatible With Secondary Licenses" Notice
++++ ---------------------------------------------------------
++++ .
++++   This Source Code Form is "Incompatible With Secondary Licenses", as
++++   defined by the Mozilla Public License, v. 2.0.
++++
++++License: CC0
++++ To the extent possible under law, the author(s) have dedicated all
++++ copyright and related and neighboring rights to this software to the public
++++ domain worldwide. This software is distributed without any warranty.
++++ .
++++ You should have received a copy of the CC0 Public Domain Dedication along
++++ with this software. If not, see
++++ <https://creativecommons.org/publicdomain/zero/1.0/>.
++++ .
++++ Comment:
++++ .
++++ On Debian GNU/Linux systems, the complete text of the CC0 License
++++ can be found in `/usr/share/common-licenses/CC0-1.0'
++++
++++License: Python
++++ 1. This LICENSE AGREEMENT is between the Python Software Foundation
++++ ("PSF"), and the Individual or Organization ("Licensee") accessing and
++++ otherwise using this software ("Python") in source or binary form and
++++ its associated documentation.
++++ .
++++ 2. Subject to the terms and conditions of this License Agreement, PSF hereby
++++ grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
++++ analyze, test, perform and/or display publicly, prepare derivative works,
++++ distribute, and otherwise use Python alone or in any derivative version,
++++ provided, however, that PSF's License Agreement and PSF's notice of copyright,
++++ i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
++++ 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Python Software
++++ Foundation; All Rights Reserved" are retained in Python alone or in any
++++ derivative version prepared by Licensee.
++++ .
++++ 3. In the event Licensee prepares a derivative work that is based on
++++ or incorporates Python or any part thereof, and wants to make
++++ the derivative work available to others as provided herein, then
++++ Licensee hereby agrees to include in any such work a brief summary of
++++ the changes made to Python.
++++ .
++++ 4. PSF is making Python available to Licensee on an "AS IS"
++++ basis.  PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
++++ IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
++++ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
++++ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
++++ INFRINGE ANY THIRD PARTY RIGHTS.
++++ .
++++ 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
++++ FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
++++ A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
++++ OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
++++ .
++++ 6. This License Agreement will automatically terminate upon a material
++++ breach of its terms and conditions.
++++ .
++++ 7. Nothing in this License Agreement shall be deemed to create any
++++ relationship of agency, partnership, or joint venture between PSF and
++++ Licensee.  This License Agreement does not grant permission to use PSF
++++ trademarks or trade name in a trademark sense to endorse or promote
++++ products or services of Licensee, or any third party.
++++ .
++++ 8. By copying, installing or otherwise using Python, Licensee
++++ agrees to be bound by the terms and conditions of this License
++++ Agreement.
++++
++++License: W3C-Test-Suite
++++ This document, Test Suites and other documents that link to this statement
++++ are provided by the copyright holders under the following license: By using
++++ and/or copying this document, or the W3C document from which this statement
++++ is linked, you (the licensee) agree that you have read, understood, and will
++++ comply with the following terms and conditions:
++++ .
++++ Permission to copy, and distribute the contents of this document, or the W3C
++++ document from which this statement is linked, in any medium for any purpose
++++ and without fee or royalty is hereby granted, provided that you include the
++++ following on ALL copies of the document, or portions thereof, that you use:
++++ .
++++ * A link or URL to the original W3C document.
++++ * The pre-existing copyright notice of the original author, or if it
++++   doesn't exist, a notice (hypertext is preferred, but a textual representation
++++   is permitted) of the form: "Copyright © [$date-of-document] World Wide Web
++++   Consortium, (MIT, ERCIM, Keio, Beihang) and others. All Rights Reserved.
++++   https://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html"
++++ * If it exists, the STATUS of the W3C document.
++++ .
++++ When space permits, inclusion of the full text of this NOTICE should be
++++ provided. We request that authorship attribution be provided in any software,
++++ documents, or other items or products that you create pursuant to the
++++ implementation of the contents of this document, or any portion thereof.
++++ .
++++ No right to create modifications or derivatives of W3C documents is granted
++++ pursuant to this license. However, if additional requirements (documented
++++ in the Copyright FAQ) are satisfied, the right to create modifications or
++++ derivatives is sometimes granted by the W3C to individuals complying with
++++ those requirements.
++++ .
++++ If a Test Suite distinguishes the test harness (or, framework for navigation)
++++ and the actual tests, permission is given to remove or alter the harness or
++++ navigation if the Test Suite in question allows to do so. The tests themselves
++++ shall NOT be changed in any way.
++++ .
++++ The name and trademarks of W3C and other copyright holders may NOT be used in
++++ advertising or publicity pertaining to this document or other documents that
++++ link to this statement without specific, written prior permission. Title to
++++ copyright in this document will at all times remain with copyright holders.
++++ Permission is given to use the trademarked string "W3C" within claims of
++++ performance concerning W3C Specifications or features described therein, an
++++ there only, if the test suite so authorizes.
++++ .
++++ THIS WORK IS PROVIDED BY W3C, MIT, ERCIM, KEIO, BEIHANG, THE COPYRIGHT
++++ HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
++++ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
++++ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL W3C,
++++ MIT, ERCIM, KEIO, BEIHANG, THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
++++ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
++++ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
++++ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
++++ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
++++ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
++++ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++++
++++License: LGPL-2.1+
++++ This program is free software; you can redistribute it and/or modify
++++ it under the terms of the GNU Lesser General Public License as published by
++++ the Free Software Foundation; either version 2.1, or (at your option)
++++ any later version.
++++ .
++++ This program is distributed in the hope that it will be useful,
++++ but WITHOUT ANY WARRANTY; without even the implied warranty of
++++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++++ GNU Lesser General Public License for more details.
++++ .
++++ You should have received a copy of the GNU Lesser General Public License along
++++ with this program; if not, write to the Free Software Foundation,
++++ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
++++ .
++++ On Debian systems, the complete text of the GNU Lesser General Public
++++ License version 2.1 can be found in ‘/usr/share/common-licenses/LGPL-2.1’.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..14480c551a0b5c216b1fda7c7d8fe9e2c86f741f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,13259 @@@@@
++++Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
++++Upstream-Name: FIXME
++++Upstream-Contact: FIXME
++++Source: FIXME
++++Disclaimer: Autogenerated by CDBS
++++
++++Files: BSDmakefile
++++ BUILDING.md
++++ CHANGELOG.md
++++ CODE_OF_CONDUCT.md
++++ COLLABORATOR_GUIDE.md
++++ CPP_STYLE_GUIDE.md
++++ GOVERNANCE.md
++++ Makefile
++++ README.md
++++ SECURITY.md
++++ android-configure
++++ benchmark/README.md
++++ benchmark/_benchmark_progress.js
++++ benchmark/_cli.R
++++ benchmark/_cli.js
++++ benchmark/_http-benchmarkers.js
++++ benchmark/_test-double-benchmarker.js
++++ benchmark/assert/deepequal-buffer.js
++++ benchmark/assert/deepequal-map.js
++++ benchmark/assert/deepequal-object.js
++++ benchmark/assert/deepequal-prims-and-objs-big-array-set.js
++++ benchmark/assert/deepequal-prims-and-objs-big-loop.js
++++ benchmark/assert/deepequal-set.js
++++ benchmark/assert/deepequal-typedarrays.js
++++ benchmark/assert/ok.js
++++ benchmark/assert/throws.js
++++ benchmark/async_hooks/gc-tracking.js
++++ benchmark/async_hooks/http-server.js
++++ benchmark/buffers/buffer-base64-decode-wrapped.js
++++ benchmark/buffers/buffer-base64-decode.js
++++ benchmark/buffers/buffer-bytelength.js
++++ benchmark/buffers/buffer-compare-instance-method.js
++++ benchmark/buffers/buffer-compare-offset.js
++++ benchmark/buffers/buffer-concat.js
++++ benchmark/buffers/buffer-copy.js
++++ benchmark/buffers/buffer-creation.js
++++ benchmark/buffers/buffer-equals.js
++++ benchmark/buffers/buffer-fill.js
++++ benchmark/buffers/buffer-from.js
++++ benchmark/buffers/buffer-hex.js
++++ benchmark/buffers/buffer-indexof-number.js
++++ benchmark/buffers/buffer-indexof.js
++++ benchmark/buffers/buffer-iterate.js
++++ benchmark/buffers/buffer-normalize-encoding.js
++++ benchmark/buffers/buffer-read-float.js
++++ benchmark/buffers/buffer-read-with-byteLength.js
++++ benchmark/buffers/buffer-read.js
++++ benchmark/buffers/buffer-slice.js
++++ benchmark/buffers/buffer-swap.js
++++ benchmark/buffers/buffer-tojson.js
++++ benchmark/buffers/buffer-tostring.js
++++ benchmark/buffers/buffer-write-string.js
++++ benchmark/buffers/buffer-write.js
++++ benchmark/buffers/buffer-zero.js
++++ benchmark/buffers/dataview-set.js
++++ benchmark/child_process/child-process-exec-stdout.js
++++ benchmark/child_process/child-process-params.js
++++ benchmark/child_process/child-process-read-ipc.js
++++ benchmark/child_process/child-process-read.js
++++ benchmark/child_process/spawn-echo.js
++++ benchmark/cluster/echo.js
++++ benchmark/compare.R
++++ benchmark/compare.js
++++ benchmark/crypto/aes-gcm-throughput.js
++++ benchmark/crypto/cipher-stream.js
++++ benchmark/crypto/get-ciphers.js
++++ benchmark/crypto/hash-stream-creation.js
++++ benchmark/crypto/hash-stream-throughput.js
++++ benchmark/crypto/rsa-encrypt-decrypt-throughput.js
++++ benchmark/crypto/rsa-sign-verify-throughput.js
++++ benchmark/dgram/array-vs-concat.js
++++ benchmark/dgram/bind-params.js
++++ benchmark/dgram/multi-buffer.js
++++ benchmark/dgram/offset-length.js
++++ benchmark/dgram/single-buffer.js
++++ benchmark/dns/lookup-promises.js
++++ benchmark/dns/lookup.js
++++ benchmark/domain/domain-fn-args.js
++++ benchmark/es/defaultparams-bench.js
++++ benchmark/es/destructuring-bench.js
++++ benchmark/es/destructuring-object-bench.js
++++ benchmark/es/foreach-bench.js
++++ benchmark/es/map-bench.js
++++ benchmark/es/restparams-bench.js
++++ benchmark/es/spread-assign.js
++++ benchmark/es/spread-bench.js
++++ benchmark/es/string-concatenations.js
++++ benchmark/es/string-repeat.js
++++ benchmark/events/ee-add-remove.js
++++ benchmark/events/ee-emit.js
++++ benchmark/events/ee-listener-count-on-prototype.js
++++ benchmark/events/ee-listeners-many.js
++++ benchmark/events/ee-listeners.js
++++ benchmark/events/ee-once.js
++++ benchmark/fixtures/echo.worker.js
++++ benchmark/fixtures/require-cachable.js
++++ benchmark/fixtures/simple-http-server.js
++++ benchmark/fs/bench-mkdirp.js
++++ benchmark/fs/bench-opendir.js
++++ benchmark/fs/bench-readdir.js
++++ benchmark/fs/bench-readdirSync.js
++++ benchmark/fs/bench-realpath.js
++++ benchmark/fs/bench-realpathSync.js
++++ benchmark/fs/bench-stat-promise.js
++++ benchmark/fs/bench-stat.js
++++ benchmark/fs/bench-statSync.js
++++ benchmark/fs/read-stream-throughput.js
++++ benchmark/fs/readFileSync.js
++++ benchmark/fs/readfile-partitioned.js
++++ benchmark/fs/readfile.js
++++ benchmark/fs/write-stream-throughput.js
++++ benchmark/http/_chunky_http_client.js
++++ benchmark/http/bench-parser.js
++++ benchmark/http/check_invalid_header_char.js
++++ benchmark/http/check_is_http_token.js
++++ benchmark/http/chunked.js
++++ benchmark/http/client-request-body.js
++++ benchmark/http/cluster.js
++++ benchmark/http/create-clientrequest.js
++++ benchmark/http/end-vs-write-end.js
++++ benchmark/http/headers.js
++++ benchmark/http/http_server_for_chunky_client.js
++++ benchmark/http/incoming_headers.js
++++ benchmark/http/set-header.js
++++ benchmark/http/set_header.js
++++ benchmark/http/simple.js
++++ benchmark/http/upgrade.js
++++ benchmark/http2/compat.js
++++ benchmark/http2/headers.js
++++ benchmark/http2/respond-with-fd.js
++++ benchmark/http2/simple.js
++++ benchmark/http2/write.js
++++ benchmark/misc/arguments.js
++++ benchmark/misc/freelist.js
++++ benchmark/misc/object-property-bench.js
++++ benchmark/misc/print.js
++++ benchmark/misc/startup.js
++++ benchmark/misc/trace.js
++++ benchmark/misc/util-extend-vs-object-assign.js
++++ benchmark/module/module-loader-deep.js
++++ benchmark/module/module-loader.js
++++ benchmark/napi/function_args/.gitignore
++++ benchmark/napi/function_args/binding.cc
++++ benchmark/napi/function_args/binding.gyp
++++ benchmark/napi/function_args/index.js
++++ benchmark/napi/function_args/napi_binding.c
++++ benchmark/napi/function_call/.gitignore
++++ benchmark/napi/function_call/binding.cc
++++ benchmark/napi/function_call/binding.gyp
++++ benchmark/napi/function_call/index.js
++++ benchmark/napi/function_call/napi_binding.c
++++ benchmark/napi/ref/.gitignore
++++ benchmark/napi/ref/addon.c
++++ benchmark/napi/ref/binding.gyp
++++ benchmark/napi/ref/index.js
++++ benchmark/net/net-c2s-cork.js
++++ benchmark/net/net-c2s.js
++++ benchmark/net/net-pipe.js
++++ benchmark/net/net-s2c.js
++++ benchmark/net/net-wrap-js-stream-passthrough.js
++++ benchmark/net/tcp-raw-c2s.js
++++ benchmark/net/tcp-raw-pipe.js
++++ benchmark/net/tcp-raw-s2c.js
++++ benchmark/os/cpus.js
++++ benchmark/os/loadavg.js
++++ benchmark/os/networkInterfaces.js
++++ benchmark/path/basename-posix.js
++++ benchmark/path/basename-win32.js
++++ benchmark/path/dirname-posix.js
++++ benchmark/path/dirname-win32.js
++++ benchmark/path/extname-posix.js
++++ benchmark/path/extname-win32.js
++++ benchmark/path/format-posix.js
++++ benchmark/path/format-win32.js
++++ benchmark/path/isAbsolute-posix.js
++++ benchmark/path/isAbsolute-win32.js
++++ benchmark/path/join-posix.js
++++ benchmark/path/join-win32.js
++++ benchmark/path/makeLong-win32.js
++++ benchmark/path/normalize-posix.js
++++ benchmark/path/normalize-win32.js
++++ benchmark/path/parse-posix.js
++++ benchmark/path/parse-win32.js
++++ benchmark/path/relative-posix.js
++++ benchmark/path/relative-win32.js
++++ benchmark/path/resolve-posix.js
++++ benchmark/path/resolve-win32.js
++++ benchmark/process/bench-env.js
++++ benchmark/process/bench-hrtime.js
++++ benchmark/process/memoryUsage.js
++++ benchmark/process/next-tick-breadth-args.js
++++ benchmark/process/next-tick-breadth.js
++++ benchmark/process/next-tick-depth-args.js
++++ benchmark/process/next-tick-depth.js
++++ benchmark/process/next-tick-exec-args.js
++++ benchmark/process/next-tick-exec.js
++++ benchmark/process/queue-microtask-breadth.js
++++ benchmark/process/queue-microtask-depth.js
++++ benchmark/querystring/querystring-parse.js
++++ benchmark/querystring/querystring-stringify.js
++++ benchmark/querystring/querystring-unescapebuffer.js
++++ benchmark/run.js
++++ benchmark/scatter.R
++++ benchmark/scatter.js
++++ benchmark/streams/creation.js
++++ benchmark/streams/pipe-object-mode.js
++++ benchmark/streams/pipe.js
++++ benchmark/streams/readable-bigread.js
++++ benchmark/streams/readable-bigunevenread.js
++++ benchmark/streams/readable-boundaryread.js
++++ benchmark/streams/readable-readall.js
++++ benchmark/streams/readable-unevenread.js
++++ benchmark/streams/writable-manywrites.js
++++ benchmark/string_decoder/string-decoder-create.js
++++ benchmark/string_decoder/string-decoder.js
++++ benchmark/timers/immediate.js
++++ benchmark/timers/set-immediate-breadth-args.js
++++ benchmark/timers/set-immediate-breadth.js
++++ benchmark/timers/set-immediate-depth-args.js
++++ benchmark/timers/timers-breadth-args.js
++++ benchmark/timers/timers-breadth.js
++++ benchmark/timers/timers-cancel-pooled.js
++++ benchmark/timers/timers-cancel-unpooled.js
++++ benchmark/timers/timers-depth.js
++++ benchmark/timers/timers-insert-pooled.js
++++ benchmark/timers/timers-insert-unpooled.js
++++ benchmark/timers/timers-timeout-nexttick.js
++++ benchmark/timers/timers-timeout-pooled.js
++++ benchmark/timers/timers-timeout-unpooled.js
++++ benchmark/tls/convertprotocols.js
++++ benchmark/tls/secure-pair.js
++++ benchmark/tls/throughput.js
++++ benchmark/tls/tls-connect.js
++++ benchmark/url/legacy-vs-whatwg-url-get-prop.js
++++ benchmark/url/legacy-vs-whatwg-url-parse.js
++++ benchmark/url/legacy-vs-whatwg-url-searchparams-parse.js
++++ benchmark/url/legacy-vs-whatwg-url-searchparams-serialize.js
++++ benchmark/url/legacy-vs-whatwg-url-serialize.js
++++ benchmark/url/url-format.js
++++ benchmark/url/url-parse.js
++++ benchmark/url/url-resolve.js
++++ benchmark/url/url-searchparams-iteration.js
++++ benchmark/url/url-searchparams-read.js
++++ benchmark/url/url-searchparams-sort.js
++++ benchmark/url/usvstring.js
++++ benchmark/url/whatwg-url-idna.js
++++ benchmark/url/whatwg-url-properties.js
++++ benchmark/util/format.js
++++ benchmark/util/inspect-array.js
++++ benchmark/util/inspect-proxy.js
++++ benchmark/util/inspect.js
++++ benchmark/util/normalize-encoding.js
++++ benchmark/util/priority-queue.js
++++ benchmark/util/splice-one.js
++++ benchmark/util/type-check.js
++++ benchmark/v8/get-stats.js
++++ benchmark/vm/create-context.js
++++ benchmark/vm/run-in-context.js
++++ benchmark/vm/run-in-this-context.js
++++ benchmark/worker/echo.js
++++ benchmark/writing-and-running-benchmarks.md
++++ benchmark/zlib/creation.js
++++ benchmark/zlib/deflate.js
++++ benchmark/zlib/pipe.js
++++ common.gypi
++++ configure
++++ configure.py
++++ debian/README.Debian
++++ debian/README.source
++++ debian/dh_nodejs
++++ debian/gbp.conf
++++ debian/libnode-dev.dirs
++++ debian/libnode-dev.install
++++ debian/libnode-dev.links.in
++++ debian/libnode.install
++++ debian/nodejs-doc.doc-base
++++ debian/nodejs-doc.docs
++++ debian/nodejs.README.Debian
++++ debian/nodejs.dirs
++++ debian/nodejs.install
++++ debian/nodejs.links
++++ debian/nodejs.manpages
++++ debian/nodejs.pm
++++ debian/nodejs.postinst
++++ debian/nodejs.prerm
++++ debian/patches/2017_mips_configure_fpu.patch
++++ debian/patches/dfhs_module_path_arch_triplet.patch
++++ debian/patches/series
++++ debian/rules
++++ debian/source/format
++++ debian/source/lintian-overrides
++++ debian/tests/control
++++ debian/upstream
++++ debian/watch
++++ debian/watch.in
++++ deps/acorn-plugins/acorn-class-fields/CHANGELOG.md
++++ deps/acorn-plugins/acorn-class-fields/README.md
++++ deps/acorn-plugins/acorn-class-fields/index.js
++++ deps/acorn-plugins/acorn-class-fields/package.json
++++ deps/acorn-plugins/acorn-numeric-separator/CHANGELOG.md
++++ deps/acorn-plugins/acorn-numeric-separator/README.md
++++ deps/acorn-plugins/acorn-numeric-separator/index.js
++++ deps/acorn-plugins/acorn-numeric-separator/package.json
++++ deps/acorn-plugins/acorn-private-class-elements/CHANGELOG.md
++++ deps/acorn-plugins/acorn-private-class-elements/README.md
++++ deps/acorn-plugins/acorn-private-class-elements/index.js
++++ deps/acorn-plugins/acorn-private-class-elements/package.json
++++ deps/acorn-plugins/acorn-private-methods/CHANGELOG.md
++++ deps/acorn-plugins/acorn-private-methods/README.md
++++ deps/acorn-plugins/acorn-private-methods/index.js
++++ deps/acorn-plugins/acorn-private-methods/package.json
++++ deps/acorn-plugins/acorn-static-class-features/CHANGELOG.md
++++ deps/acorn-plugins/acorn-static-class-features/README.md
++++ deps/acorn-plugins/acorn-static-class-features/index.js
++++ deps/acorn-plugins/acorn-static-class-features/package.json
++++ deps/brotli/brotli.gyp
++++ deps/brotli/c/common/transform.h
++++ deps/cares/.gitignore
++++ deps/cares/cares.gyp
++++ deps/cares/config/aix/ares_config.h
++++ deps/cares/config/android/ares_config.h
++++ deps/cares/config/cygwin/ares_config.h
++++ deps/cares/config/darwin/ares_config.h
++++ deps/cares/config/freebsd/ares_config.h
++++ deps/cares/config/linux/ares_config.h
++++ deps/cares/config/netbsd/ares_config.h
++++ deps/cares/config/openbsd/ares_config.h
++++ deps/cares/config/sunos/ares_config.h
++++ deps/cares/include/ares_version.h
++++ deps/cares/include/nameser.h
++++ deps/cares/src/NEWS
++++ deps/cares/src/README.cares
++++ deps/cares/src/README.md
++++ deps/cares/src/README.msvc
++++ deps/cares/src/RELEASE-NOTES
++++ deps/cares/src/TODO
++++ deps/cares/src/ares_version.c
++++ deps/cares/src/windows_port.c
++++ deps/histogram/README.md
++++ deps/histogram/histogram.gyp
++++ deps/histogram/src/hdr_tests.h
++++ deps/http_parser/.gitignore
++++ deps/http_parser/.mailmap
++++ deps/http_parser/.travis.yml
++++ deps/http_parser/README.md
++++ deps/http_parser/contrib/url_parser.c
++++ deps/http_parser/http_parser.gyp
++++ deps/llhttp/common.gypi
++++ deps/llhttp/include/llhttp.h
++++ deps/llhttp/llhttp.gyp
++++ deps/llhttp/src/api.c
++++ deps/llhttp/src/http.c
++++ deps/llhttp/src/llhttp.c
++++ deps/nghttp2/lib/CMakeLists.txt
++++ deps/nghttp2/lib/Makefile.msvc
++++ deps/nghttp2/lib/includes/CMakeLists.txt
++++ deps/nghttp2/lib/includes/config.h
++++ deps/nghttp2/lib/version.rc.in
++++ deps/nghttp2/nghttp2.gyp
++++ deps/node-inspect/.editorconfig
++++ deps/node-inspect/.eslintrc
++++ deps/node-inspect/.gitignore
++++ deps/node-inspect/.npmrc
++++ deps/node-inspect/.travis.yml
++++ deps/node-inspect/CHANGELOG.md
++++ deps/node-inspect/GOVERNANCE.md
++++ deps/node-inspect/README.md
++++ deps/node-inspect/appveyor.yml
++++ deps/node-inspect/cli.js
++++ deps/node-inspect/examples/alive.js
++++ deps/node-inspect/examples/backtrace.js
++++ deps/node-inspect/examples/break.js
++++ deps/node-inspect/examples/cjs/index.js
++++ deps/node-inspect/examples/cjs/other.js
++++ deps/node-inspect/examples/exceptions.js
++++ deps/node-inspect/examples/three-lines.js
++++ deps/node-inspect/examples/use-strict.js
++++ deps/node-inspect/package.json
++++ deps/node-inspect/test/cli/backtrace.test.js
++++ deps/node-inspect/test/cli/break.test.js
++++ deps/node-inspect/test/cli/exceptions.test.js
++++ deps/node-inspect/test/cli/exec.test.js
++++ deps/node-inspect/test/cli/heap-profiler.test.js
++++ deps/node-inspect/test/cli/help.test.js
++++ deps/node-inspect/test/cli/invalid-args.test.js
++++ deps/node-inspect/test/cli/launch.test.js
++++ deps/node-inspect/test/cli/low-level.test.js
++++ deps/node-inspect/test/cli/pid.test.js
++++ deps/node-inspect/test/cli/preserve-breaks.test.js
++++ deps/node-inspect/test/cli/profile.test.js
++++ deps/node-inspect/test/cli/scripts.test.js
++++ deps/node-inspect/test/cli/start-cli.js
++++ deps/node-inspect/test/cli/use-strict.test.js
++++ deps/node-inspect/test/cli/watchers.test.js
++++ deps/node-inspect/tools/eslint-rules/align-function-arguments.js
++++ deps/node-inspect/tools/eslint-rules/align-multiline-assignment.js
++++ deps/node-inspect/tools/eslint-rules/assert-fail-single-argument.js
++++ deps/node-inspect/tools/eslint-rules/buffer-constructor.js
++++ deps/node-inspect/tools/eslint-rules/new-with-error.js
++++ deps/node-inspect/tools/eslint-rules/no-let-in-for-declaration.js
++++ deps/node-inspect/tools/eslint-rules/prefer-assert-methods.js
++++ deps/node-inspect/tools/eslint-rules/require-buffer.js
++++ deps/node-inspect/tools/eslint-rules/required-modules.js
++++ deps/openssl/README.md
++++ deps/openssl/config/Makefile
++++ deps/openssl/config/Makefile_VC-WIN32
++++ deps/openssl/config/Makefile_VC-WIN64-ARM
++++ deps/openssl/config/Makefile_VC-WIN64A
++++ deps/openssl/config/archs/BSD-x86/asm/configdata.pm
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/aes/aes-586.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/aes/aesni-x86.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/aes/vpaes-x86.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/bf/bf-586.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/bn/bn-586.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/bn/co-586.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/bn/x86-gf2m.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/bn/x86-mont.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/camellia/cmll-x86.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/chacha/chacha-x86.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/des/crypt586.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/des/des-586.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/ec/ecp_nistz256-x86.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/md5/md5-586.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/modes/ghash-x86.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/poly1305/poly1305-x86.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/rc4/rc4-586.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/ripemd/rmd-586.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/sha/sha1-586.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/sha/sha256-586.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/sha/sha512-586.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/whrlpool/wp-mmx.s
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/x86cpuid.s
++++ deps/openssl/config/archs/BSD-x86/asm/engines/e_padlock-x86.s
++++ deps/openssl/config/archs/BSD-x86/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/BSD-x86/asm/openssl.gypi
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/aes/aes-586.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/aes/aesni-x86.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/aes/vpaes-x86.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/bf/bf-586.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/bn/bn-586.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/bn/co-586.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/bn/x86-gf2m.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/bn/x86-mont.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/camellia/cmll-x86.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/chacha/chacha-x86.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/des/crypt586.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/des/des-586.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/ec/ecp_nistz256-x86.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/md5/md5-586.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/modes/ghash-x86.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/poly1305/poly1305-x86.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/rc4/rc4-586.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/ripemd/rmd-586.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/sha/sha1-586.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/sha/sha256-586.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/sha/sha512-586.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/whrlpool/wp-mmx.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/x86cpuid.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/engines/e_padlock-x86.s
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/BSD-x86/no-asm/configdata.pm
++++ deps/openssl/config/archs/BSD-x86/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/BSD-x86/no-asm/openssl.gypi
++++ deps/openssl/config/archs/BSD-x86_64/asm/configdata.pm
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/aes/aes-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/aes/aesni-mb-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/aes/aesni-sha1-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/aes/aesni-sha256-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/aes/aesni-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/aes/bsaes-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/aes/vpaes-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/bn/rsaz-avx2.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/bn/rsaz-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/bn/x86_64-gf2m.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/bn/x86_64-mont.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/bn/x86_64-mont5.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/camellia/cmll-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/chacha/chacha-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/ec/ecp_nistz256-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/ec/x25519-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/md5/md5-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/modes/aesni-gcm-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/modes/ghash-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/poly1305/poly1305-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/rc4/rc4-md5-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/rc4/rc4-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/sha/keccak1600-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/sha/sha1-mb-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/sha/sha1-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/sha/sha256-mb-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/sha/sha256-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/sha/sha512-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/whrlpool/wp-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/x86_64cpuid.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/engines/e_padlock-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/BSD-x86_64/asm/openssl.gypi
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/aes/aes-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/aes/aesni-mb-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/aes/aesni-sha1-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/aes/aesni-sha256-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/aes/aesni-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/aes/bsaes-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/aes/vpaes-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/bn/rsaz-avx2.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/bn/rsaz-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/bn/x86_64-gf2m.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/bn/x86_64-mont.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/bn/x86_64-mont5.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/camellia/cmll-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/chacha/chacha-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/ec/ecp_nistz256-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/ec/x25519-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/md5/md5-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/modes/aesni-gcm-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/modes/ghash-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/poly1305/poly1305-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/rc4/rc4-md5-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/rc4/rc4-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/sha/keccak1600-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/sha/sha1-mb-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/sha/sha1-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/sha/sha256-mb-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/sha/sha256-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/sha/sha512-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/whrlpool/wp-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/x86_64cpuid.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/engines/e_padlock-x86_64.s
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/BSD-x86_64/no-asm/configdata.pm
++++ deps/openssl/config/archs/BSD-x86_64/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/BSD-x86_64/no-asm/openssl.gypi
++++ deps/openssl/config/archs/VC-WIN32/asm/configdata.pm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/aes/aes-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/aes/aesni-x86.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/aes/vpaes-x86.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/bf/bf-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/bn/bn-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/bn/co-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/bn/x86-gf2m.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/bn/x86-mont.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/camellia/cmll-x86.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/chacha/chacha-x86.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/des/crypt586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/des/des-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/ec/ecp_nistz256-x86.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/md5/md5-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/modes/ghash-x86.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/poly1305/poly1305-x86.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/rc4/rc4-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/ripemd/rmd-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/sha/sha1-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/sha/sha256-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/sha/sha512-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/whrlpool/wp-mmx.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/x86cpuid.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/engines/e_padlock-x86.asm
++++ deps/openssl/config/archs/VC-WIN32/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/VC-WIN32/asm/openssl.gypi
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/aes/aes-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/aes/aesni-x86.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/aes/vpaes-x86.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/bf/bf-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/bn/bn-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/bn/co-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/bn/x86-gf2m.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/bn/x86-mont.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/camellia/cmll-x86.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/chacha/chacha-x86.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/des/crypt586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/des/des-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/ec/ecp_nistz256-x86.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/md5/md5-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/modes/ghash-x86.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/poly1305/poly1305-x86.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/rc4/rc4-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/ripemd/rmd-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/sha/sha1-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/sha/sha256-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/sha/sha512-586.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/whrlpool/wp-mmx.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/x86cpuid.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/engines/e_padlock-x86.asm
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/VC-WIN32/no-asm/configdata.pm
++++ deps/openssl/config/archs/VC-WIN32/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/VC-WIN32/no-asm/openssl.gypi
++++ deps/openssl/config/archs/VC-WIN64-ARM/no-asm/configdata.pm
++++ deps/openssl/config/archs/VC-WIN64-ARM/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/VC-WIN64-ARM/no-asm/openssl.gypi
++++ deps/openssl/config/archs/VC-WIN64A/asm/configdata.pm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/aes/aes-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/aes/aesni-mb-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/aes/aesni-sha1-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/aes/aesni-sha256-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/aes/aesni-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/aes/bsaes-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/aes/vpaes-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/bn/rsaz-avx2.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/bn/rsaz-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/bn/x86_64-gf2m.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/bn/x86_64-mont.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/bn/x86_64-mont5.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/camellia/cmll-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/chacha/chacha-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/ec/ecp_nistz256-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/ec/x25519-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/md5/md5-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/modes/aesni-gcm-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/modes/ghash-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/poly1305/poly1305-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/rc4/rc4-md5-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/rc4/rc4-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/sha/keccak1600-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/sha/sha1-mb-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/sha/sha1-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/sha/sha256-mb-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/sha/sha256-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/sha/sha512-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/whrlpool/wp-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/x86_64cpuid.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/engines/e_padlock-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/VC-WIN64A/asm/openssl.gypi
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/aes/aes-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/aes/aesni-mb-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/aes/aesni-sha1-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/aes/aesni-sha256-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/aes/aesni-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/aes/bsaes-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/aes/vpaes-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/bn/rsaz-avx2.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/bn/rsaz-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/bn/x86_64-gf2m.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/bn/x86_64-mont.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/bn/x86_64-mont5.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/camellia/cmll-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/chacha/chacha-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/ec/ecp_nistz256-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/ec/x25519-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/md5/md5-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/modes/aesni-gcm-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/modes/ghash-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/poly1305/poly1305-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/rc4/rc4-md5-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/rc4/rc4-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/sha/keccak1600-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/sha/sha1-mb-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/sha/sha1-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/sha/sha256-mb-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/sha/sha256-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/sha/sha512-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/whrlpool/wp-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/x86_64cpuid.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/engines/e_padlock-x86_64.asm
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/VC-WIN64A/no-asm/configdata.pm
++++ deps/openssl/config/archs/VC-WIN64A/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/VC-WIN64A/no-asm/openssl.gypi
++++ deps/openssl/config/archs/aix-gcc/asm/configdata.pm
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/aes/aes-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/aes/aesp8-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/aes/vpaes-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/bn/bn-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/bn/ppc-mont.s
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/bn/ppc64-mont.s
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/chacha/chacha-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/modes/ghashp8-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/poly1305/poly1305-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/poly1305/poly1305-ppcfp.s
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/ppccpuid.s
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/sha/sha1-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/sha/sha256-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/sha/sha256p8-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/sha/sha512-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/sha/sha512p8-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/aix-gcc/asm/openssl.gypi
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/aes/aes-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/aes/aesp8-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/aes/vpaes-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/bn/bn-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/bn/ppc-mont.s
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/chacha/chacha-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/modes/ghashp8-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/poly1305/poly1305-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/poly1305/poly1305-ppcfp.s
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/ppccpuid.s
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/sha/sha1-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/sha/sha256-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/sha/sha256p8-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/sha/sha512-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/sha/sha512p8-ppc.s
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/aix-gcc/no-asm/configdata.pm
++++ deps/openssl/config/archs/aix-gcc/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/aix-gcc/no-asm/openssl.gypi
++++ deps/openssl/config/archs/aix64-gcc/asm/configdata.pm
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/aes/aes-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/aes/aesp8-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/aes/vpaes-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/bn/bn-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/bn/ppc-mont.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/bn/ppc64-mont.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/chacha/chacha-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/ec/ecp_nistz256-ppc64.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/ec/x25519-ppc64.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/modes/ghashp8-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/poly1305/poly1305-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/poly1305/poly1305-ppcfp.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/ppccpuid.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/sha/keccak1600-ppc64.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/sha/sha1-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/sha/sha256-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/sha/sha256p8-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/sha/sha512-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/sha/sha512p8-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/aix64-gcc/asm/openssl.gypi
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/aes/aes-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/aes/aesp8-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/aes/vpaes-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/bn/bn-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/bn/ppc-mont.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/chacha/chacha-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/ec/ecp_nistz256-ppc64.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/ec/x25519-ppc64.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/modes/ghashp8-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/poly1305/poly1305-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/poly1305/poly1305-ppcfp.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/ppccpuid.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/sha/keccak1600-ppc64.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/sha/sha1-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/sha/sha256-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/sha/sha256p8-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/sha/sha512-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/sha/sha512p8-ppc.s
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/aix64-gcc/no-asm/configdata.pm
++++ deps/openssl/config/archs/aix64-gcc/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/aix64-gcc/no-asm/openssl.gypi
++++ deps/openssl/config/archs/darwin-i386-cc/asm/configdata.pm
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/aes/aes-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/aes/aesni-x86.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/aes/vpaes-x86.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/bf/bf-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/bn/bn-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/bn/co-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/bn/x86-gf2m.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/bn/x86-mont.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/camellia/cmll-x86.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/chacha/chacha-x86.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/des/crypt586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/des/des-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/ec/ecp_nistz256-x86.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/md5/md5-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/modes/ghash-x86.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/poly1305/poly1305-x86.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/rc4/rc4-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/ripemd/rmd-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/sha/sha1-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/sha/sha256-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/sha/sha512-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/whrlpool/wp-mmx.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/x86cpuid.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/engines/e_padlock-x86.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/darwin-i386-cc/asm/openssl.gypi
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/aes/aes-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/aes/aesni-x86.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/aes/vpaes-x86.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/bf/bf-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/bn/bn-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/bn/co-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/bn/x86-gf2m.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/bn/x86-mont.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/camellia/cmll-x86.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/chacha/chacha-x86.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/des/crypt586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/des/des-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/ec/ecp_nistz256-x86.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/md5/md5-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/modes/ghash-x86.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/poly1305/poly1305-x86.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/rc4/rc4-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/ripemd/rmd-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/sha/sha1-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/sha/sha256-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/sha/sha512-586.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/whrlpool/wp-mmx.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/x86cpuid.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/engines/e_padlock-x86.s
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/darwin-i386-cc/no-asm/configdata.pm
++++ deps/openssl/config/archs/darwin-i386-cc/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/darwin-i386-cc/no-asm/openssl.gypi
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/configdata.pm
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/aes/aes-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/aes/aesni-mb-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/aes/aesni-sha1-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/aes/aesni-sha256-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/aes/aesni-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/aes/bsaes-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/aes/vpaes-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/bn/rsaz-avx2.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/bn/rsaz-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/bn/x86_64-gf2m.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/bn/x86_64-mont.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/bn/x86_64-mont5.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/camellia/cmll-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/chacha/chacha-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/ec/ecp_nistz256-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/ec/x25519-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/md5/md5-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/modes/aesni-gcm-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/modes/ghash-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/poly1305/poly1305-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/rc4/rc4-md5-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/rc4/rc4-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/sha/keccak1600-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/sha/sha1-mb-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/sha/sha1-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/sha/sha256-mb-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/sha/sha256-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/sha/sha512-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/whrlpool/wp-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/x86_64cpuid.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/engines/e_padlock-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/openssl.gypi
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/aes/aes-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/aes/aesni-mb-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/aes/aesni-sha1-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/aes/aesni-sha256-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/aes/aesni-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/aes/bsaes-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/aes/vpaes-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/bn/rsaz-avx2.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/bn/rsaz-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/bn/x86_64-gf2m.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/bn/x86_64-mont.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/bn/x86_64-mont5.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/camellia/cmll-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/chacha/chacha-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/ec/ecp_nistz256-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/ec/x25519-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/md5/md5-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/modes/aesni-gcm-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/modes/ghash-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/poly1305/poly1305-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/rc4/rc4-md5-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/rc4/rc4-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/sha/keccak1600-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/sha/sha1-mb-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/sha/sha1-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/sha/sha256-mb-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/sha/sha256-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/sha/sha512-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/whrlpool/wp-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/x86_64cpuid.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/engines/e_padlock-x86_64.s
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/darwin64-x86_64-cc/no-asm/configdata.pm
++++ deps/openssl/config/archs/darwin64-x86_64-cc/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/darwin64-x86_64-cc/no-asm/openssl.gypi
++++ deps/openssl/config/archs/linux-aarch64/asm/configdata.pm
++++ deps/openssl/config/archs/linux-aarch64/asm/crypto/aes/aesv8-armx.S
++++ deps/openssl/config/archs/linux-aarch64/asm/crypto/aes/vpaes-armv8.S
++++ deps/openssl/config/archs/linux-aarch64/asm/crypto/arm64cpuid.S
++++ deps/openssl/config/archs/linux-aarch64/asm/crypto/bn/armv8-mont.S
++++ deps/openssl/config/archs/linux-aarch64/asm/crypto/chacha/chacha-armv8.S
++++ deps/openssl/config/archs/linux-aarch64/asm/crypto/ec/ecp_nistz256-armv8.S
++++ deps/openssl/config/archs/linux-aarch64/asm/crypto/modes/ghashv8-armx.S
++++ deps/openssl/config/archs/linux-aarch64/asm/crypto/poly1305/poly1305-armv8.S
++++ deps/openssl/config/archs/linux-aarch64/asm/crypto/sha/keccak1600-armv8.S
++++ deps/openssl/config/archs/linux-aarch64/asm/crypto/sha/sha1-armv8.S
++++ deps/openssl/config/archs/linux-aarch64/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-aarch64/asm/openssl.gypi
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/crypto/aes/aesv8-armx.S
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/crypto/aes/vpaes-armv8.S
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/crypto/arm64cpuid.S
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/crypto/bn/armv8-mont.S
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/crypto/chacha/chacha-armv8.S
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/crypto/ec/ecp_nistz256-armv8.S
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/crypto/modes/ghashv8-armx.S
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/crypto/poly1305/poly1305-armv8.S
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/crypto/sha/keccak1600-armv8.S
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/crypto/sha/sha1-armv8.S
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/linux-aarch64/no-asm/configdata.pm
++++ deps/openssl/config/archs/linux-aarch64/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-aarch64/no-asm/openssl.gypi
++++ deps/openssl/config/archs/linux-armv4/asm/configdata.pm
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/aes/aesv8-armx.S
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/armv4cpuid.S
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/bn/armv4-gf2m.S
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/bn/armv4-mont.S
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/chacha/chacha-armv4.S
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/ec/ecp_nistz256-armv4.S
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/modes/ghash-armv4.S
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/modes/ghashv8-armx.S
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/poly1305/poly1305-armv4.S
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/sha/keccak1600-armv4.S
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/sha/sha1-armv4-large.S
++++ deps/openssl/config/archs/linux-armv4/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-armv4/asm/openssl.gypi
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/aes/aesv8-armx.S
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/armv4cpuid.S
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/bn/armv4-gf2m.S
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/bn/armv4-mont.S
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/chacha/chacha-armv4.S
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/ec/ecp_nistz256-armv4.S
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/modes/ghash-armv4.S
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/modes/ghashv8-armx.S
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/poly1305/poly1305-armv4.S
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/sha/keccak1600-armv4.S
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/sha/sha1-armv4-large.S
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/linux-armv4/no-asm/configdata.pm
++++ deps/openssl/config/archs/linux-armv4/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-armv4/no-asm/openssl.gypi
++++ deps/openssl/config/archs/linux-elf/asm/configdata.pm
++++ deps/openssl/config/archs/linux-elf/asm/crypto/aes/aes-586.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/aes/aesni-x86.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/aes/vpaes-x86.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/bf/bf-586.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/bn/bn-586.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/bn/co-586.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/bn/x86-gf2m.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/bn/x86-mont.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/camellia/cmll-x86.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/chacha/chacha-x86.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/des/crypt586.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/des/des-586.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/ec/ecp_nistz256-x86.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/md5/md5-586.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/modes/ghash-x86.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/poly1305/poly1305-x86.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/rc4/rc4-586.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/ripemd/rmd-586.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/sha/sha1-586.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/sha/sha256-586.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/sha/sha512-586.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/whrlpool/wp-mmx.s
++++ deps/openssl/config/archs/linux-elf/asm/crypto/x86cpuid.s
++++ deps/openssl/config/archs/linux-elf/asm/engines/e_padlock-x86.s
++++ deps/openssl/config/archs/linux-elf/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-elf/asm/openssl.gypi
++++ deps/openssl/config/archs/linux-elf/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/aes/aes-586.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/aes/aesni-x86.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/aes/vpaes-x86.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/bf/bf-586.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/bn/bn-586.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/bn/co-586.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/bn/x86-gf2m.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/bn/x86-mont.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/camellia/cmll-x86.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/chacha/chacha-x86.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/des/crypt586.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/des/des-586.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/ec/ecp_nistz256-x86.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/md5/md5-586.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/modes/ghash-x86.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/poly1305/poly1305-x86.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/rc4/rc4-586.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/ripemd/rmd-586.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/sha/sha1-586.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/sha/sha256-586.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/sha/sha512-586.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/whrlpool/wp-mmx.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/x86cpuid.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/engines/e_padlock-x86.s
++++ deps/openssl/config/archs/linux-elf/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-elf/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/linux-elf/no-asm/configdata.pm
++++ deps/openssl/config/archs/linux-elf/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-elf/no-asm/openssl.gypi
++++ deps/openssl/config/archs/linux-ppc/asm/configdata.pm
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/aes/aes-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/aes/aesp8-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/aes/vpaes-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/bn/bn-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/bn/ppc-mont.s
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/bn/ppc64-mont.s
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/chacha/chacha-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/modes/ghashp8-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/poly1305/poly1305-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/poly1305/poly1305-ppcfp.s
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/ppccpuid.s
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/sha/sha1-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/sha/sha256-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/sha/sha256p8-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/sha/sha512-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/sha/sha512p8-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-ppc/asm/openssl.gypi
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/aes/aes-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/aes/aesp8-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/aes/vpaes-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/bn/bn-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/bn/ppc-mont.s
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/chacha/chacha-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/modes/ghashp8-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/poly1305/poly1305-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/poly1305/poly1305-ppcfp.s
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/ppccpuid.s
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/sha/sha1-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/sha/sha256-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/sha/sha256p8-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/sha/sha512-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/sha/sha512p8-ppc.s
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/linux-ppc/no-asm/configdata.pm
++++ deps/openssl/config/archs/linux-ppc/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-ppc/no-asm/openssl.gypi
++++ deps/openssl/config/archs/linux-ppc64/asm/configdata.pm
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/aes/aes-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/aes/aesp8-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/aes/vpaes-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/bn/bn-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/bn/ppc-mont.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/bn/ppc64-mont.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/chacha/chacha-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/ec/ecp_nistz256-ppc64.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/ec/x25519-ppc64.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/modes/ghashp8-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/poly1305/poly1305-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/poly1305/poly1305-ppcfp.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/ppccpuid.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/sha/keccak1600-ppc64.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/sha/sha1-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/sha/sha256-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/sha/sha256p8-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/sha/sha512-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/sha/sha512p8-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-ppc64/asm/openssl.gypi
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/aes/aes-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/aes/aesp8-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/aes/vpaes-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/bn/bn-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/bn/ppc-mont.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/chacha/chacha-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/ec/ecp_nistz256-ppc64.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/ec/x25519-ppc64.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/modes/ghashp8-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/poly1305/poly1305-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/poly1305/poly1305-ppcfp.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/ppccpuid.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/sha/keccak1600-ppc64.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/sha/sha1-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/sha/sha256-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/sha/sha256p8-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/sha/sha512-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/sha/sha512p8-ppc.s
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/linux-ppc64/no-asm/configdata.pm
++++ deps/openssl/config/archs/linux-ppc64/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-ppc64/no-asm/openssl.gypi
++++ deps/openssl/config/archs/linux-ppc64le/asm/configdata.pm
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/aes/aes-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/aes/aesp8-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/aes/vpaes-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/bn/bn-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/bn/ppc-mont.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/bn/ppc64-mont.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/chacha/chacha-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/ec/ecp_nistz256-ppc64.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/ec/x25519-ppc64.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/modes/ghashp8-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/poly1305/poly1305-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/poly1305/poly1305-ppcfp.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/ppccpuid.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/sha/keccak1600-ppc64.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/sha/sha1-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/sha/sha256-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/sha/sha256p8-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/sha/sha512-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/sha/sha512p8-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-ppc64le/asm/openssl.gypi
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/aes/aes-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/aes/aesp8-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/aes/vpaes-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/bn/bn-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/bn/ppc-mont.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/chacha/chacha-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/ec/ecp_nistz256-ppc64.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/ec/x25519-ppc64.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/modes/ghashp8-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/poly1305/poly1305-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/poly1305/poly1305-ppcfp.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/ppccpuid.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/sha/keccak1600-ppc64.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/sha/sha1-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/sha/sha256-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/sha/sha256p8-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/sha/sha512-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/sha/sha512p8-ppc.s
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/linux-ppc64le/no-asm/configdata.pm
++++ deps/openssl/config/archs/linux-ppc64le/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-ppc64le/no-asm/openssl.gypi
++++ deps/openssl/config/archs/linux-x32/asm/configdata.pm
++++ deps/openssl/config/archs/linux-x32/asm/crypto/aes/aes-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/aes/aesni-mb-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/aes/aesni-sha1-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/aes/aesni-sha256-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/aes/aesni-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/aes/bsaes-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/aes/vpaes-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/bn/rsaz-avx2.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/bn/rsaz-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/bn/x86_64-gf2m.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/bn/x86_64-mont.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/bn/x86_64-mont5.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/camellia/cmll-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/chacha/chacha-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/ec/ecp_nistz256-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/ec/x25519-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/md5/md5-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/modes/aesni-gcm-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/modes/ghash-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/poly1305/poly1305-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/rc4/rc4-md5-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/rc4/rc4-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/sha/keccak1600-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/sha/sha1-mb-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/sha/sha1-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/sha/sha256-mb-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/sha/sha256-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/sha/sha512-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/whrlpool/wp-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/crypto/x86_64cpuid.s
++++ deps/openssl/config/archs/linux-x32/asm/engines/e_padlock-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-x32/asm/openssl.gypi
++++ deps/openssl/config/archs/linux-x32/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/aes/aes-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/aes/aesni-mb-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/aes/aesni-sha1-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/aes/aesni-sha256-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/aes/aesni-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/aes/bsaes-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/aes/vpaes-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/bn/rsaz-avx2.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/bn/rsaz-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/bn/x86_64-gf2m.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/bn/x86_64-mont.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/bn/x86_64-mont5.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/camellia/cmll-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/chacha/chacha-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/ec/ecp_nistz256-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/ec/x25519-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/md5/md5-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/modes/aesni-gcm-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/modes/ghash-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/poly1305/poly1305-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/rc4/rc4-md5-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/rc4/rc4-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/sha/keccak1600-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/sha/sha1-mb-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/sha/sha1-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/sha/sha256-mb-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/sha/sha256-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/sha/sha512-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/whrlpool/wp-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/x86_64cpuid.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/engines/e_padlock-x86_64.s
++++ deps/openssl/config/archs/linux-x32/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-x32/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/linux-x32/no-asm/configdata.pm
++++ deps/openssl/config/archs/linux-x32/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-x32/no-asm/openssl.gypi
++++ deps/openssl/config/archs/linux-x86_64/asm/configdata.pm
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/aes/aes-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/aes/aesni-mb-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/aes/aesni-sha1-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/aes/aesni-sha256-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/aes/aesni-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/aes/bsaes-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/aes/vpaes-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/bn/rsaz-avx2.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/bn/rsaz-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/bn/x86_64-gf2m.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/bn/x86_64-mont.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/bn/x86_64-mont5.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/camellia/cmll-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/chacha/chacha-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/ec/ecp_nistz256-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/ec/x25519-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/md5/md5-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/modes/aesni-gcm-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/modes/ghash-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/poly1305/poly1305-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/rc4/rc4-md5-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/rc4/rc4-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/sha/keccak1600-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/sha/sha1-mb-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/sha/sha1-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/sha/sha256-mb-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/sha/sha256-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/sha/sha512-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/whrlpool/wp-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/x86_64cpuid.s
++++ deps/openssl/config/archs/linux-x86_64/asm/engines/e_padlock-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-x86_64/asm/openssl.gypi
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/aes/aes-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/aes/aesni-mb-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/aes/aesni-sha1-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/aes/aesni-sha256-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/aes/aesni-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/aes/bsaes-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/aes/vpaes-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/bn/rsaz-avx2.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/bn/rsaz-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/bn/x86_64-gf2m.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/bn/x86_64-mont.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/bn/x86_64-mont5.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/camellia/cmll-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/chacha/chacha-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/ec/ecp_nistz256-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/ec/x25519-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/md5/md5-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/modes/aesni-gcm-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/modes/ghash-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/poly1305/poly1305-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/rc4/rc4-md5-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/rc4/rc4-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/sha/keccak1600-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/sha/sha1-mb-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/sha/sha1-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/sha/sha256-mb-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/sha/sha256-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/sha/sha512-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/whrlpool/wp-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/x86_64cpuid.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/engines/e_padlock-x86_64.s
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/linux-x86_64/no-asm/configdata.pm
++++ deps/openssl/config/archs/linux-x86_64/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux-x86_64/no-asm/openssl.gypi
++++ deps/openssl/config/archs/linux32-s390x/asm/configdata.pm
++++ deps/openssl/config/archs/linux32-s390x/asm/crypto/aes/aes-s390x.S
++++ deps/openssl/config/archs/linux32-s390x/asm/crypto/bn/s390x-gf2m.s
++++ deps/openssl/config/archs/linux32-s390x/asm/crypto/bn/s390x-mont.S
++++ deps/openssl/config/archs/linux32-s390x/asm/crypto/chacha/chacha-s390x.S
++++ deps/openssl/config/archs/linux32-s390x/asm/crypto/modes/ghash-s390x.S
++++ deps/openssl/config/archs/linux32-s390x/asm/crypto/poly1305/poly1305-s390x.S
++++ deps/openssl/config/archs/linux32-s390x/asm/crypto/rc4/rc4-s390x.s
++++ deps/openssl/config/archs/linux32-s390x/asm/crypto/s390xcpuid.S
++++ deps/openssl/config/archs/linux32-s390x/asm/crypto/sha/keccak1600-s390x.S
++++ deps/openssl/config/archs/linux32-s390x/asm/crypto/sha/sha1-s390x.S
++++ deps/openssl/config/archs/linux32-s390x/asm/crypto/sha/sha256-s390x.S
++++ deps/openssl/config/archs/linux32-s390x/asm/crypto/sha/sha512-s390x.S
++++ deps/openssl/config/archs/linux32-s390x/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux32-s390x/asm/openssl.gypi
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/crypto/aes/aes-s390x.S
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/crypto/bn/s390x-gf2m.s
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/crypto/bn/s390x-mont.S
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/crypto/chacha/chacha-s390x.S
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/crypto/modes/ghash-s390x.S
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/crypto/poly1305/poly1305-s390x.S
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/crypto/rc4/rc4-s390x.s
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/crypto/s390xcpuid.S
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/crypto/sha/keccak1600-s390x.S
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/crypto/sha/sha1-s390x.S
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/crypto/sha/sha256-s390x.S
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/crypto/sha/sha512-s390x.S
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/linux32-s390x/no-asm/configdata.pm
++++ deps/openssl/config/archs/linux32-s390x/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux32-s390x/no-asm/openssl.gypi
++++ deps/openssl/config/archs/linux64-mips64/asm/configdata.pm
++++ deps/openssl/config/archs/linux64-mips64/asm/crypto/aes/aes-mips.S
++++ deps/openssl/config/archs/linux64-mips64/asm/crypto/bn/bn-mips.S
++++ deps/openssl/config/archs/linux64-mips64/asm/crypto/bn/mips-mont.S
++++ deps/openssl/config/archs/linux64-mips64/asm/crypto/poly1305/poly1305-mips.S
++++ deps/openssl/config/archs/linux64-mips64/asm/crypto/sha/sha1-mips.S
++++ deps/openssl/config/archs/linux64-mips64/asm/crypto/sha/sha256-mips.S
++++ deps/openssl/config/archs/linux64-mips64/asm/crypto/sha/sha512-mips.S
++++ deps/openssl/config/archs/linux64-mips64/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux64-mips64/asm/openssl.gypi
++++ deps/openssl/config/archs/linux64-mips64/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/linux64-mips64/asm_avx2/crypto/aes/aes-mips.S
++++ deps/openssl/config/archs/linux64-mips64/asm_avx2/crypto/bn/bn-mips.S
++++ deps/openssl/config/archs/linux64-mips64/asm_avx2/crypto/bn/mips-mont.S
++++ deps/openssl/config/archs/linux64-mips64/asm_avx2/crypto/poly1305/poly1305-mips.S
++++ deps/openssl/config/archs/linux64-mips64/asm_avx2/crypto/sha/sha1-mips.S
++++ deps/openssl/config/archs/linux64-mips64/asm_avx2/crypto/sha/sha256-mips.S
++++ deps/openssl/config/archs/linux64-mips64/asm_avx2/crypto/sha/sha512-mips.S
++++ deps/openssl/config/archs/linux64-mips64/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/linux64-mips64/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/linux64-mips64/no-asm/configdata.pm
++++ deps/openssl/config/archs/linux64-mips64/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux64-mips64/no-asm/openssl.gypi
++++ deps/openssl/config/archs/linux64-s390x/asm/configdata.pm
++++ deps/openssl/config/archs/linux64-s390x/asm/crypto/aes/aes-s390x.S
++++ deps/openssl/config/archs/linux64-s390x/asm/crypto/bn/s390x-gf2m.s
++++ deps/openssl/config/archs/linux64-s390x/asm/crypto/bn/s390x-mont.S
++++ deps/openssl/config/archs/linux64-s390x/asm/crypto/chacha/chacha-s390x.S
++++ deps/openssl/config/archs/linux64-s390x/asm/crypto/modes/ghash-s390x.S
++++ deps/openssl/config/archs/linux64-s390x/asm/crypto/poly1305/poly1305-s390x.S
++++ deps/openssl/config/archs/linux64-s390x/asm/crypto/rc4/rc4-s390x.s
++++ deps/openssl/config/archs/linux64-s390x/asm/crypto/s390xcpuid.S
++++ deps/openssl/config/archs/linux64-s390x/asm/crypto/sha/keccak1600-s390x.S
++++ deps/openssl/config/archs/linux64-s390x/asm/crypto/sha/sha1-s390x.S
++++ deps/openssl/config/archs/linux64-s390x/asm/crypto/sha/sha256-s390x.S
++++ deps/openssl/config/archs/linux64-s390x/asm/crypto/sha/sha512-s390x.S
++++ deps/openssl/config/archs/linux64-s390x/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux64-s390x/asm/openssl.gypi
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/crypto/aes/aes-s390x.S
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/crypto/bn/s390x-gf2m.s
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/crypto/bn/s390x-mont.S
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/crypto/chacha/chacha-s390x.S
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/crypto/modes/ghash-s390x.S
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/crypto/poly1305/poly1305-s390x.S
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/crypto/rc4/rc4-s390x.s
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/crypto/s390xcpuid.S
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/crypto/sha/keccak1600-s390x.S
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/crypto/sha/sha1-s390x.S
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/crypto/sha/sha256-s390x.S
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/crypto/sha/sha512-s390x.S
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/linux64-s390x/no-asm/configdata.pm
++++ deps/openssl/config/archs/linux64-s390x/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/linux64-s390x/no-asm/openssl.gypi
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/configdata.pm
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/aes/aes-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/aes/aesni-x86.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/aes/vpaes-x86.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/bf/bf-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/bn/bn-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/bn/co-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/bn/x86-gf2m.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/bn/x86-mont.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/camellia/cmll-x86.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/chacha/chacha-x86.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/des/crypt586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/des/des-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/ec/ecp_nistz256-x86.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/md5/md5-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/modes/ghash-x86.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/poly1305/poly1305-x86.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/rc4/rc4-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/ripemd/rmd-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/sha/sha1-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/sha/sha256-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/sha/sha512-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/whrlpool/wp-mmx.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/x86cpuid.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/engines/e_padlock-x86.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/openssl.gypi
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/aes/aes-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/aes/aesni-x86.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/aes/vpaes-x86.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/bf/bf-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/bn/bn-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/bn/co-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/bn/x86-gf2m.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/bn/x86-mont.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/camellia/cmll-x86.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/chacha/chacha-x86.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/des/crypt586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/des/des-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/ec/ecp_nistz256-x86.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/md5/md5-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/modes/ghash-x86.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/poly1305/poly1305-x86.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/rc4/rc4-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/ripemd/rmd-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/sha/sha1-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/sha/sha256-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/sha/sha512-586.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/whrlpool/wp-mmx.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/x86cpuid.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/engines/e_padlock-x86.s
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/solaris-x86-gcc/no-asm/configdata.pm
++++ deps/openssl/config/archs/solaris-x86-gcc/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/solaris-x86-gcc/no-asm/openssl.gypi
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/configdata.pm
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/aes/aes-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/aes/aesni-mb-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/aes/aesni-sha1-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/aes/aesni-sha256-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/aes/aesni-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/aes/bsaes-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/aes/vpaes-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/bn/rsaz-avx2.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/bn/rsaz-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/bn/x86_64-gf2m.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/bn/x86_64-mont.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/bn/x86_64-mont5.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/camellia/cmll-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/chacha/chacha-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/ec/ecp_nistz256-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/ec/x25519-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/md5/md5-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/modes/aesni-gcm-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/modes/ghash-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/poly1305/poly1305-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/rc4/rc4-md5-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/rc4/rc4-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/sha/keccak1600-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/sha/sha1-mb-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/sha/sha1-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/sha/sha256-mb-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/sha/sha256-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/sha/sha512-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/whrlpool/wp-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/x86_64cpuid.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/engines/e_padlock-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/openssl-cl.gypi
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/openssl.gypi
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/configdata.pm
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/aes/aes-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/aes/aesni-mb-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/aes/aesni-sha1-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/aes/aesni-sha256-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/aes/aesni-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/aes/bsaes-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/aes/vpaes-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/bn/rsaz-avx2.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/bn/rsaz-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/bn/x86_64-gf2m.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/bn/x86_64-mont.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/bn/x86_64-mont5.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/camellia/cmll-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/chacha/chacha-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/ec/ecp_nistz256-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/ec/x25519-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/md5/md5-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/modes/aesni-gcm-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/modes/ghash-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/poly1305/poly1305-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/rc4/rc4-md5-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/rc4/rc4-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/sha/keccak1600-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/sha/sha1-mb-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/sha/sha1-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/sha/sha256-mb-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/sha/sha256-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/sha/sha512-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/whrlpool/wp-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/x86_64cpuid.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/engines/e_padlock-x86_64.s
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/openssl-cl.gypi
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/openssl.gypi
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/no-asm/configdata.pm
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/no-asm/openssl-cl.gypi
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/no-asm/openssl.gypi
++++ deps/openssl/config/bn_conf.h
++++ deps/openssl/config/bn_conf.h.tmpl
++++ deps/openssl/config/bn_conf_asm.h
++++ deps/openssl/config/bn_conf_no-asm.h
++++ deps/openssl/config/dso_conf.h
++++ deps/openssl/config/dso_conf.h.tmpl
++++ deps/openssl/config/dso_conf_asm.h
++++ deps/openssl/config/dso_conf_no-asm.h
++++ deps/openssl/config/fake_gcc.pl
++++ deps/openssl/config/generate_gypi.pl
++++ deps/openssl/config/openssl-cl.gypi.tmpl
++++ deps/openssl/config/openssl.gypi.tmpl
++++ deps/openssl/config/opensslconf.h
++++ deps/openssl/config/opensslconf.h.tmpl
++++ deps/openssl/config/opensslconf_asm.h
++++ deps/openssl/config/opensslconf_no-asm.h
++++ deps/openssl/openssl-cl_asm.gypi
++++ deps/openssl/openssl-cl_asm_avx2.gypi
++++ deps/openssl/openssl-cl_no_asm.gypi
++++ deps/openssl/openssl-cli.gypi
++++ deps/openssl/openssl.gyp
++++ deps/openssl/openssl.gypi
++++ deps/openssl/openssl/ACKNOWLEDGEMENTS
++++ deps/openssl/openssl/Configurations/00-base-templates.conf
++++ deps/openssl/openssl/Configurations/10-main.conf
++++ deps/openssl/openssl/Configurations/15-android.conf
++++ deps/openssl/openssl/Configurations/15-ios.conf
++++ deps/openssl/openssl/Configurations/50-djgpp.conf
++++ deps/openssl/openssl/Configurations/50-haiku.conf
++++ deps/openssl/openssl/Configurations/50-masm.conf
++++ deps/openssl/openssl/Configurations/50-win-onecore.conf
++++ deps/openssl/openssl/Configurations/INTERNALS.Configure
++++ deps/openssl/openssl/Configurations/README
++++ deps/openssl/openssl/Configurations/README.design
++++ deps/openssl/openssl/Configurations/common.tmpl
++++ deps/openssl/openssl/Configurations/common0.tmpl
++++ deps/openssl/openssl/Configurations/descrip.mms.tmpl
++++ deps/openssl/openssl/Configurations/unix-Makefile.tmpl
++++ deps/openssl/openssl/Configurations/unix-checker.pm
++++ deps/openssl/openssl/Configurations/windows-checker.pm
++++ deps/openssl/openssl/Configurations/windows-makefile.tmpl
++++ deps/openssl/openssl/FAQ
++++ deps/openssl/openssl/INSTALL
++++ deps/openssl/openssl/NOTES.ANDROID
++++ deps/openssl/openssl/NOTES.DJGPP
++++ deps/openssl/openssl/NOTES.PERL
++++ deps/openssl/openssl/NOTES.UNIX
++++ deps/openssl/openssl/NOTES.VMS
++++ deps/openssl/openssl/NOTES.WIN
++++ deps/openssl/openssl/README.ENGINE
++++ deps/openssl/openssl/README.FIPS
++++ deps/openssl/openssl/VMS/engine.opt
++++ deps/openssl/openssl/VMS/openssl_ivp.com.in
++++ deps/openssl/openssl/VMS/openssl_shutdown.com.in
++++ deps/openssl/openssl/VMS/openssl_startup.com.in
++++ deps/openssl/openssl/VMS/openssl_utils.com.in
++++ deps/openssl/openssl/VMS/test-includes.com
++++ deps/openssl/openssl/apps/build.info
++++ deps/openssl/openssl/apps/ca-cert.srl
++++ deps/openssl/openssl/apps/ca-key.pem
++++ deps/openssl/openssl/apps/ca-req.pem
++++ deps/openssl/openssl/apps/cert.pem
++++ deps/openssl/openssl/apps/client.pem
++++ deps/openssl/openssl/apps/ct_log_list.cnf
++++ deps/openssl/openssl/apps/demoSRP/srp_verifier.txt
++++ deps/openssl/openssl/apps/demoSRP/srp_verifier.txt.attr
++++ deps/openssl/openssl/apps/dh1024.pem
++++ deps/openssl/openssl/apps/dh2048.pem
++++ deps/openssl/openssl/apps/dh4096.pem
++++ deps/openssl/openssl/apps/dsa-ca.pem
++++ deps/openssl/openssl/apps/dsa-pca.pem
++++ deps/openssl/openssl/apps/dsa1024.pem
++++ deps/openssl/openssl/apps/dsa512.pem
++++ deps/openssl/openssl/apps/dsap.pem
++++ deps/openssl/openssl/apps/openssl-vms.cnf
++++ deps/openssl/openssl/apps/openssl.cnf
++++ deps/openssl/openssl/apps/pca-cert.srl
++++ deps/openssl/openssl/apps/pca-key.pem
++++ deps/openssl/openssl/apps/pca-req.pem
++++ deps/openssl/openssl/apps/privkey.pem
++++ deps/openssl/openssl/apps/req.pem
++++ deps/openssl/openssl/apps/rsa8192.pem
++++ deps/openssl/openssl/apps/s1024key.pem
++++ deps/openssl/openssl/apps/s1024req.pem
++++ deps/openssl/openssl/apps/s512-key.pem
++++ deps/openssl/openssl/apps/s512-req.pem
++++ deps/openssl/openssl/apps/server.pem
++++ deps/openssl/openssl/apps/server.srl
++++ deps/openssl/openssl/apps/server2.pem
++++ deps/openssl/openssl/apps/testCA.pem
++++ deps/openssl/openssl/appveyor.yml
++++ deps/openssl/openssl/build.info
++++ deps/openssl/openssl/crypto/aes/build.info
++++ deps/openssl/openssl/crypto/aria/build.info
++++ deps/openssl/openssl/crypto/asn1/build.info
++++ deps/openssl/openssl/crypto/async/build.info
++++ deps/openssl/openssl/crypto/bf/build.info
++++ deps/openssl/openssl/crypto/bio/build.info
++++ deps/openssl/openssl/crypto/blake2/build.info
++++ deps/openssl/openssl/crypto/bn/build.info
++++ deps/openssl/openssl/crypto/buffer/build.info
++++ deps/openssl/openssl/crypto/build.info
++++ deps/openssl/openssl/crypto/camellia/build.info
++++ deps/openssl/openssl/crypto/cast/build.info
++++ deps/openssl/openssl/crypto/chacha/build.info
++++ deps/openssl/openssl/crypto/cmac/build.info
++++ deps/openssl/openssl/crypto/cms/build.info
++++ deps/openssl/openssl/crypto/comp/build.info
++++ deps/openssl/openssl/crypto/conf/build.info
++++ deps/openssl/openssl/crypto/ct/build.info
++++ deps/openssl/openssl/crypto/des/build.info
++++ deps/openssl/openssl/crypto/dh/build.info
++++ deps/openssl/openssl/crypto/dh/dh1024.pem
++++ deps/openssl/openssl/crypto/dh/dh192.pem
++++ deps/openssl/openssl/crypto/dh/dh2048.pem
++++ deps/openssl/openssl/crypto/dh/dh4096.pem
++++ deps/openssl/openssl/crypto/dh/dh512.pem
++++ deps/openssl/openssl/crypto/dsa/build.info
++++ deps/openssl/openssl/crypto/dso/build.info
++++ deps/openssl/openssl/crypto/ec/build.info
++++ deps/openssl/openssl/crypto/engine/README
++++ deps/openssl/openssl/crypto/engine/build.info
++++ deps/openssl/openssl/crypto/err/README
++++ deps/openssl/openssl/crypto/err/build.info
++++ deps/openssl/openssl/crypto/err/openssl.ec
++++ deps/openssl/openssl/crypto/evp/build.info
++++ deps/openssl/openssl/crypto/hmac/build.info
++++ deps/openssl/openssl/crypto/idea/build.info
++++ deps/openssl/openssl/crypto/include/internal/bn_conf.h
++++ deps/openssl/openssl/crypto/include/internal/dso_conf.h
++++ deps/openssl/openssl/crypto/kdf/build.info
++++ deps/openssl/openssl/crypto/lhash/build.info
++++ deps/openssl/openssl/crypto/md2/build.info
++++ deps/openssl/openssl/crypto/md4/build.info
++++ deps/openssl/openssl/crypto/md5/build.info
++++ deps/openssl/openssl/crypto/mdc2/build.info
++++ deps/openssl/openssl/crypto/modes/build.info
++++ deps/openssl/openssl/crypto/objects/README
++++ deps/openssl/openssl/crypto/objects/build.info
++++ deps/openssl/openssl/crypto/objects/obj_mac.num
++++ deps/openssl/openssl/crypto/objects/obj_xref.txt
++++ deps/openssl/openssl/crypto/objects/objects.txt
++++ deps/openssl/openssl/crypto/ocsp/build.info
++++ deps/openssl/openssl/crypto/pem/build.info
++++ deps/openssl/openssl/crypto/perlasm/README
++++ deps/openssl/openssl/crypto/pkcs12/build.info
++++ deps/openssl/openssl/crypto/pkcs7/build.info
++++ deps/openssl/openssl/crypto/poly1305/build.info
++++ deps/openssl/openssl/crypto/rand/build.info
++++ deps/openssl/openssl/crypto/rc2/build.info
++++ deps/openssl/openssl/crypto/rc4/build.info
++++ deps/openssl/openssl/crypto/rc5/build.info
++++ deps/openssl/openssl/crypto/ripemd/build.info
++++ deps/openssl/openssl/crypto/rsa/build.info
++++ deps/openssl/openssl/crypto/seed/build.info
++++ deps/openssl/openssl/crypto/sha/build.info
++++ deps/openssl/openssl/crypto/siphash/build.info
++++ deps/openssl/openssl/crypto/sm2/build.info
++++ deps/openssl/openssl/crypto/sm3/build.info
++++ deps/openssl/openssl/crypto/sm4/build.info
++++ deps/openssl/openssl/crypto/srp/build.info
++++ deps/openssl/openssl/crypto/stack/build.info
++++ deps/openssl/openssl/crypto/store/build.info
++++ deps/openssl/openssl/crypto/ts/build.info
++++ deps/openssl/openssl/crypto/txt_db/build.info
++++ deps/openssl/openssl/crypto/ui/build.info
++++ deps/openssl/openssl/crypto/whrlpool/build.info
++++ deps/openssl/openssl/crypto/x509/build.info
++++ deps/openssl/openssl/crypto/x509v3/build.info
++++ deps/openssl/openssl/engines/build.info
++++ deps/openssl/openssl/engines/e_afalg.ec
++++ deps/openssl/openssl/engines/e_capi.ec
++++ deps/openssl/openssl/engines/e_dasync.ec
++++ deps/openssl/openssl/engines/e_ossltest.ec
++++ deps/openssl/openssl/external/perl/Downloaded.txt
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/INSTALL
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/MANIFEST
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/META.json
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/META.yml
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/Makefile.PL
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/README
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/t/00-version.t
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/t/01-basic.t
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/t/02-hash.t
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/t/03-out.t
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/t/04-safe.t
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/t/05-safe2.t
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/t/06-ofh.t
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/t/07-safe3.t
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/t/08-exported.t
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/t/09-error.t
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/t/10-delimiters.t
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/t/11-prepend.t
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/t/12-preprocess.t
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/t/13-taint.t
++++ deps/openssl/openssl/external/perl/Text-Template-1.46/t/14-broken.t
++++ deps/openssl/openssl/fuzz/README.md
++++ deps/openssl/openssl/fuzz/build.info
++++ deps/openssl/openssl/fuzz/oids.txt
++++ deps/openssl/openssl/include/openssl/opensslconf.h
++++ deps/openssl/openssl/os-dep/haiku.h
++++ deps/openssl/openssl/ssl/build.info
++++ deps/openssl/openssl/ssl/record/README
++++ deps/openssl/openssl/ssl/statem/README
++++ deps/openssl/openssl/tools/build.info
++++ deps/openssl/openssl/util/build.info
++++ deps/openssl/openssl/util/echo.pl
++++ deps/openssl/openssl/util/indent.pro
++++ deps/openssl/openssl/util/libcrypto.num
++++ deps/openssl/openssl/util/libssl.num
++++ deps/openssl/openssl/util/local_shlib.com.in
++++ deps/openssl/openssl/util/opensslwrap.sh
++++ deps/openssl/openssl/util/perl/OpenSSL/Glob.pm
++++ deps/openssl/openssl/util/private.num
++++ deps/openssl/openssl/util/shlib_wrap.sh.in
++++ deps/openssl/openssl/util/unlocal_shlib.com.in
++++ deps/openssl/openssl_asm.gypi
++++ deps/openssl/openssl_asm_avx2.gypi
++++ deps/openssl/openssl_common.gypi
++++ deps/openssl/openssl_no_asm.gypi
++++ deps/uv/.gitattributes
++++ deps/uv/.gitignore
++++ deps/uv/CMakeLists.txt
++++ deps/uv/CONTRIBUTING.md
++++ deps/uv/MAINTAINERS.md
++++ deps/uv/SUPPORTED_PLATFORMS.md
++++ deps/uv/android-configure-arm
++++ deps/uv/android-configure-arm64
++++ deps/uv/android-configure-x86
++++ deps/uv/android-configure-x86_64
++++ deps/uv/appveyor.yml
++++ deps/uv/common.gypi
++++ deps/uv/gyp_uv.py
++++ deps/uv/img/logos.svg
++++ deps/uv/libuv.pc.in
++++ deps/uv/m4/.gitignore
++++ deps/uv/m4/as_case.m4
++++ deps/uv/src/strscpy.c
++++ deps/uv/src/strscpy.h
++++ deps/uv/src/uv-data-getter-setters.c
++++ deps/uv/src/win/detect-wakeup.c
++++ deps/uv/src/win/fs-fd-hash-inl.h
++++ deps/uv/tools/make_dist_html.py
++++ deps/uv/uv.gyp
++++ deps/uv/vcbuild.bat
++++ deps/uvwasi/include/clocks.h
++++ deps/uvwasi/include/fd_table.h
++++ deps/uvwasi/include/uv_mapping.h
++++ deps/uvwasi/include/uvwasi.h
++++ deps/uvwasi/include/wasi_types.h
++++ deps/uvwasi/src/clocks.c
++++ deps/uvwasi/src/fd_table.c
++++ deps/uvwasi/src/uv_mapping.c
++++ deps/uvwasi/src/uvwasi.c
++++ deps/uvwasi/src/uvwasi_alloc.h
++++ deps/uvwasi/uvwasi.gyp
++++ deps/v8/.clang-format
++++ deps/v8/.clang-tidy
++++ deps/v8/.editorconfig
++++ deps/v8/.flake8
++++ deps/v8/.git-blame-ignore-revs
++++ deps/v8/.gitattributes
++++ deps/v8/.gitignore
++++ deps/v8/.gn
++++ deps/v8/.vpython
++++ deps/v8/AUTHORS
++++ deps/v8/CODE_OF_CONDUCT.md
++++ deps/v8/COMMON_OWNERS
++++ deps/v8/ChangeLog
++++ deps/v8/DEPS
++++ deps/v8/ENG_REVIEW_OWNERS
++++ deps/v8/INFRA_OWNERS
++++ deps/v8/INTL_OWNERS
++++ deps/v8/MIPS_OWNERS
++++ deps/v8/OWNERS
++++ deps/v8/PPC_OWNERS
++++ deps/v8/README.md
++++ deps/v8/S390_OWNERS
++++ deps/v8/benchmarks/OWNERS
++++ deps/v8/benchmarks/README.txt
++++ deps/v8/benchmarks/revisions.html
++++ deps/v8/benchmarks/run.html
++++ deps/v8/benchmarks/spinning-balls/index.html
++++ deps/v8/benchmarks/style.css
++++ deps/v8/benchmarks/v8-logo.png
++++ deps/v8/benchmarks/v8.json
++++ deps/v8/build_overrides/OWNERS
++++ deps/v8/codereview.settings
++++ deps/v8/custom_deps/.gitignore
++++ deps/v8/custom_deps/OWNERS
++++ deps/v8/custom_deps/README.md
++++ deps/v8/docs/OWNERS
++++ deps/v8/docs/README.md
++++ deps/v8/gni/OWNERS
++++ deps/v8/include/APIDesign.md
++++ deps/v8/include/DEPS
++++ deps/v8/include/OWNERS
++++ deps/v8/include/js_protocol-1.2.json
++++ deps/v8/include/js_protocol-1.3.json
++++ deps/v8/include/libplatform/DEPS
++++ deps/v8/infra/OWNERS
++++ deps/v8/infra/README.md
++++ deps/v8/infra/testing/README.md
++++ deps/v8/src/DEPS
++++ deps/v8/src/OWNERS
++++ deps/v8/src/api/OWNERS
++++ deps/v8/src/asmjs/OWNERS
++++ deps/v8/src/ast/OWNERS
++++ deps/v8/src/base/DEPS
++++ deps/v8/src/base/OWNERS
++++ deps/v8/src/base/platform/OWNERS
++++ deps/v8/src/builtins/OWNERS
++++ deps/v8/src/codegen/OWNERS
++++ deps/v8/src/common/OWNERS
++++ deps/v8/src/compiler-dispatcher/OWNERS
++++ deps/v8/src/compiler/OWNERS
++++ deps/v8/src/compiler/backend/OWNERS
++++ deps/v8/src/compiler/backend/ppc/OWNERS
++++ deps/v8/src/d8/OWNERS
++++ deps/v8/src/date/OWNERS
++++ deps/v8/src/debug/OWNERS
++++ deps/v8/src/debug/ppc/OWNERS
++++ deps/v8/src/deoptimizer/OWNERS
++++ deps/v8/src/diagnostics/DEPS
++++ deps/v8/src/diagnostics/OWNERS
++++ deps/v8/src/execution/OWNERS
++++ deps/v8/src/extensions/OWNERS
++++ deps/v8/src/flags/OWNERS
++++ deps/v8/src/handles/OWNERS
++++ deps/v8/src/heap/OWNERS
++++ deps/v8/src/ic/OWNERS
++++ deps/v8/src/init/OWNERS
++++ deps/v8/src/inspector/DEPS
++++ deps/v8/src/inspector/OWNERS
++++ deps/v8/src/inspector/inspector_protocol_config.json
++++ deps/v8/src/interpreter/OWNERS
++++ deps/v8/src/json/OWNERS
++++ deps/v8/src/libplatform/DEPS
++++ deps/v8/src/libplatform/OWNERS
++++ deps/v8/src/libplatform/tracing/DEPS
++++ deps/v8/src/libplatform/tracing/OWNERS
++++ deps/v8/src/libsampler/DEPS
++++ deps/v8/src/libsampler/OWNERS
++++ deps/v8/src/logging/OWNERS
++++ deps/v8/src/numbers/OWNERS
++++ deps/v8/src/objects/OWNERS
++++ deps/v8/src/parsing/OWNERS
++++ deps/v8/src/parsing/keywords.txt
++++ deps/v8/src/profiler/OWNERS
++++ deps/v8/src/protobuf/DEPS
++++ deps/v8/src/protobuf/OWNERS
++++ deps/v8/src/regexp/OWNERS
++++ deps/v8/src/regexp/ppc/OWNERS
++++ deps/v8/src/roots/OWNERS
++++ deps/v8/src/runtime/OWNERS
++++ deps/v8/src/sanitizer/OWNERS
++++ deps/v8/src/snapshot/DEPS
++++ deps/v8/src/snapshot/OWNERS
++++ deps/v8/src/strings/OWNERS
++++ deps/v8/src/tasks/OWNERS
++++ deps/v8/src/third_party/siphash/OWNERS
++++ deps/v8/src/third_party/utf8-decoder/OWNERS
++++ deps/v8/src/third_party/utf8-decoder/README.v8
++++ deps/v8/src/third_party/utf8-decoder/utf8-decoder.h
++++ deps/v8/src/third_party/valgrind/OWNERS
++++ deps/v8/src/third_party/vtune/DEPS
++++ deps/v8/src/third_party/vtune/OWNERS
++++ deps/v8/src/torque/OWNERS
++++ deps/v8/src/tracing/OWNERS
++++ deps/v8/src/trap-handler/DEPS
++++ deps/v8/src/trap-handler/OWNERS
++++ deps/v8/src/utils/OWNERS
++++ deps/v8/src/wasm/DEPS
++++ deps/v8/src/wasm/OWNERS
++++ deps/v8/src/wasm/baseline/DEPS
++++ deps/v8/src/wasm/baseline/ppc/OWNERS
++++ deps/v8/src/zone/OWNERS
++++ deps/v8/test/torque/OWNERS
++++ deps/v8/testing/OWNERS
++++ deps/v8/testing/gmock/OWNERS
++++ deps/v8/testing/gmock/include/DEPS
++++ deps/v8/testing/gtest/OWNERS
++++ deps/v8/testing/gtest/include/DEPS
++++ deps/v8/third_party/binutils/.gitignore
++++ deps/v8/third_party/binutils/Linux_ia32/binutils.tar.bz2.sha1
++++ deps/v8/third_party/binutils/Linux_x64/binutils.tar.bz2.sha1
++++ deps/v8/third_party/binutils/OWNERS
++++ deps/v8/third_party/colorama/OWNERS
++++ deps/v8/third_party/googletest/OWNERS
++++ deps/v8/third_party/inspector_protocol/.clang-format
++++ deps/v8/third_party/inspector_protocol/OWNERS
++++ deps/v8/third_party/inspector_protocol/README.md
++++ deps/v8/third_party/inspector_protocol/codereview.settings
++++ deps/v8/third_party/jinja2/Jinja2-2.10.tar.gz.md5
++++ deps/v8/third_party/jinja2/Jinja2-2.10.tar.gz.sha512
++++ deps/v8/third_party/jinja2/OWNERS
++++ deps/v8/third_party/jinja2/asyncfilters.py
++++ deps/v8/third_party/jinja2/get_jinja2.sh
++++ deps/v8/third_party/jinja2/idtracking.py
++++ deps/v8/third_party/jinja2/jinja2.gni
++++ deps/v8/third_party/jinja2/nativetypes.py
++++ deps/v8/third_party/markupsafe/MarkupSafe-0.18.tar.gz.md5
++++ deps/v8/third_party/markupsafe/MarkupSafe-0.18.tar.gz.sha512
++++ deps/v8/third_party/markupsafe/OWNERS
++++ deps/v8/third_party/markupsafe/get_markupsafe.sh
++++ deps/v8/third_party/v8/builtins/OWNERS
++++ deps/v8/third_party/wasm-api/OWNERS
++++ deps/v8/third_party/wasm-api/README.v8
++++ deps/v8/third_party/wasm-api/example/callback.c
++++ deps/v8/third_party/wasm-api/example/callback.cc
++++ deps/v8/third_party/wasm-api/example/callback.wasm
++++ deps/v8/third_party/wasm-api/example/callback.wat
++++ deps/v8/third_party/wasm-api/example/finalize.c
++++ deps/v8/third_party/wasm-api/example/finalize.cc
++++ deps/v8/third_party/wasm-api/example/finalize.wasm
++++ deps/v8/third_party/wasm-api/example/finalize.wat
++++ deps/v8/third_party/wasm-api/example/global.c
++++ deps/v8/third_party/wasm-api/example/global.cc
++++ deps/v8/third_party/wasm-api/example/global.wasm
++++ deps/v8/third_party/wasm-api/example/global.wat
++++ deps/v8/third_party/wasm-api/example/hello.c
++++ deps/v8/third_party/wasm-api/example/hello.cc
++++ deps/v8/third_party/wasm-api/example/hello.wasm
++++ deps/v8/third_party/wasm-api/example/hello.wat
++++ deps/v8/third_party/wasm-api/example/hostref.c
++++ deps/v8/third_party/wasm-api/example/hostref.cc
++++ deps/v8/third_party/wasm-api/example/hostref.wasm
++++ deps/v8/third_party/wasm-api/example/hostref.wat
++++ deps/v8/third_party/wasm-api/example/memory.c
++++ deps/v8/third_party/wasm-api/example/memory.cc
++++ deps/v8/third_party/wasm-api/example/memory.wasm
++++ deps/v8/third_party/wasm-api/example/memory.wat
++++ deps/v8/third_party/wasm-api/example/multi.c
++++ deps/v8/third_party/wasm-api/example/multi.cc
++++ deps/v8/third_party/wasm-api/example/multi.wasm
++++ deps/v8/third_party/wasm-api/example/multi.wat
++++ deps/v8/third_party/wasm-api/example/reflect.c
++++ deps/v8/third_party/wasm-api/example/reflect.cc
++++ deps/v8/third_party/wasm-api/example/reflect.wasm
++++ deps/v8/third_party/wasm-api/example/reflect.wat
++++ deps/v8/third_party/wasm-api/example/serialize.c
++++ deps/v8/third_party/wasm-api/example/serialize.cc
++++ deps/v8/third_party/wasm-api/example/serialize.wasm
++++ deps/v8/third_party/wasm-api/example/serialize.wat
++++ deps/v8/third_party/wasm-api/example/start.c
++++ deps/v8/third_party/wasm-api/example/start.cc
++++ deps/v8/third_party/wasm-api/example/start.wasm
++++ deps/v8/third_party/wasm-api/example/start.wat
++++ deps/v8/third_party/wasm-api/example/table.c
++++ deps/v8/third_party/wasm-api/example/table.cc
++++ deps/v8/third_party/wasm-api/example/table.wasm
++++ deps/v8/third_party/wasm-api/example/table.wat
++++ deps/v8/third_party/wasm-api/example/threads.c
++++ deps/v8/third_party/wasm-api/example/threads.cc
++++ deps/v8/third_party/wasm-api/example/threads.wasm
++++ deps/v8/third_party/wasm-api/example/threads.wat
++++ deps/v8/third_party/wasm-api/example/trap.c
++++ deps/v8/third_party/wasm-api/example/trap.cc
++++ deps/v8/third_party/wasm-api/example/trap.wasm
++++ deps/v8/third_party/wasm-api/example/trap.wat
++++ deps/v8/third_party/wasm-api/wasm.h
++++ deps/v8/third_party/wasm-api/wasm.hh
++++ deps/v8/tools/DEPS
++++ deps/v8/tools/OWNERS
++++ deps/v8/tools/callstats.py.vpython
++++ deps/v8/tools/cfi/blacklist.txt
++++ deps/v8/tools/clusterfuzz/OWNERS
++++ deps/v8/tools/clusterfuzz/testdata/failure_output.txt
++++ deps/v8/tools/clusterfuzz/testdata/sanity_check_output.txt
++++ deps/v8/tools/clusterfuzz/testdata/v8_build_config.json
++++ deps/v8/tools/collect_deprecation_stats.sh
++++ deps/v8/tools/debug_helper/DEPS
++++ deps/v8/tools/debug_helper/README.md
++++ deps/v8/tools/freebsd-tick-processor
++++ deps/v8/tools/gcmole/GCMOLE.gn
++++ deps/v8/tools/gcmole/README
++++ deps/v8/tools/gcmole/gcmole-tools.tar.gz.sha1
++++ deps/v8/tools/gcmole/suspects.whitelist
++++ deps/v8/tools/gcmole/test-expectations.txt
++++ deps/v8/tools/heap-stats/README.md
++++ deps/v8/tools/ic-processor
++++ deps/v8/tools/jsfunfuzz/jsfunfuzz.tar.gz.sha1
++++ deps/v8/tools/link_clicker.extension/README.txt
++++ deps/v8/tools/link_clicker.extension/icon.png
++++ deps/v8/tools/link_clicker.extension/manifest.json
++++ deps/v8/tools/linux-tick-processor
++++ deps/v8/tools/mac-nm
++++ deps/v8/tools/mac-tick-processor
++++ deps/v8/tools/map-processor
++++ deps/v8/tools/mb/OWNERS
++++ deps/v8/tools/mb/README.md
++++ deps/v8/tools/mb/docs/README.md
++++ deps/v8/tools/mb/docs/design_spec.md
++++ deps/v8/tools/mb/docs/user_guide.md
++++ deps/v8/tools/mb/mb.bat
++++ deps/v8/tools/memory/asan/blacklist.txt
++++ deps/v8/tools/memory/asan/blacklist_win.txt
++++ deps/v8/tools/memory/tsan_v2/ignores.txt
++++ deps/v8/tools/mips_toolchain.tar.gz.sha1
++++ deps/v8/tools/msan/blacklist.txt
++++ deps/v8/tools/node/README.md
++++ deps/v8/tools/parse-processor
++++ deps/v8/tools/plot-timer-events
++++ deps/v8/tools/profview/profview.css
++++ deps/v8/tools/release/testdata/v8/third_party/googletest/src/googletest/include/gtest/gtest_prod.h
++++ deps/v8/tools/sanitizers/tsan_suppressions.txt
++++ deps/v8/tools/sodium/index.html
++++ deps/v8/tools/sodium/styles.css
++++ deps/v8/tools/testrunner/OWNERS
++++ deps/v8/tools/torque/vim-torque/README.md
++++ deps/v8/tools/torque/vim-torque/ftdetect/torque.vim
++++ deps/v8/tools/tracing/proto-converter/.gitignore
++++ deps/v8/tools/tracing/proto-converter/.nvmrc
++++ deps/v8/tools/tracing/proto-converter/package-lock.json
++++ deps/v8/tools/tracing/proto-converter/package.json
++++ deps/v8/tools/tracing/proto-converter/tsconfig.json
++++ deps/v8/tools/turbolizer/OWNERS
++++ deps/v8/tools/turbolizer/deploy.sh
++++ deps/v8/tools/turbolizer/img/hide-selected-icon.png
++++ deps/v8/tools/turbolizer/img/hide-unselected-icon.png
++++ deps/v8/tools/turbolizer/img/layout-icon.png
++++ deps/v8/tools/turbolizer/img/show-all-icon.png
++++ deps/v8/tools/turbolizer/img/show-control-icon.png
++++ deps/v8/tools/turbolizer/img/toggle-types-icon.png
++++ deps/v8/tools/turbolizer/img/zoom-selection-icon.png
++++ deps/v8/tools/turbolizer/info-view.html
++++ deps/v8/tools/turbolizer/left-arrow.png
++++ deps/v8/tools/turbolizer/package-lock.json
++++ deps/v8/tools/turbolizer/package.json
++++ deps/v8/tools/turbolizer/right-arrow.png
++++ deps/v8/tools/turbolizer/search2.png
++++ deps/v8/tools/turbolizer/src/graph.ts
++++ deps/v8/tools/turbolizer/src/info-view.ts
++++ deps/v8/tools/turbolizer/src/tabs.ts
++++ deps/v8/tools/turbolizer/tabs.css
++++ deps/v8/tools/turbolizer/test/source-resolver-test.ts
++++ deps/v8/tools/turbolizer/tsconfig.json
++++ deps/v8/tools/turbolizer/tsconfig.test.json
++++ deps/v8/tools/turbolizer/tsfmt.json
++++ deps/v8/tools/turbolizer/tslint.json
++++ deps/v8/tools/turbolizer/turbo-visualizer.css
++++ deps/v8/tools/turbolizer/turbolizer.png
++++ deps/v8/tools/turbolizer/upload-icon.png
++++ deps/v8/tools/ubsan/blacklist.txt
++++ deps/v8/tools/ubsan/vptr_blacklist.txt
++++ deps/v8/tools/unittests/testdata/expected_test_results1.json
++++ deps/v8/tools/unittests/testdata/expected_test_results2.json
++++ deps/v8/tools/unittests/testdata/test1.json
++++ deps/v8/tools/unittests/testdata/test2.json
++++ deps/v8/tools/unittests/testdata/test3.json
++++ deps/v8/tools/unittests/testdata/testroot1/v8_build_config.json
++++ deps/v8/tools/unittests/testdata/testroot2/v8_build_config.json
++++ deps/v8/tools/valgrind/asan/dummy
++++ deps/v8/tools/visual_studio/README.txt
++++ deps/v8/tools/wasm-compilation-hints/OWNERS
++++ deps/v8/tools/whitespace.txt
++++ deps/v8/tools/windows-tick-processor.bat
++++ deps/zlib/CMakeLists.txt
++++ deps/zlib/FAQ
++++ deps/zlib/INDEX
++++ deps/zlib/Makefile
++++ deps/zlib/configure
++++ deps/zlib/crc32.h
++++ deps/zlib/doc/algorithm.txt
++++ deps/zlib/doc/txtvsbin.txt
++++ deps/zlib/examples/README.examples
++++ deps/zlib/inffixed.h
++++ deps/zlib/make_vms.com
++++ deps/zlib/msdos/Makefile.bor
++++ deps/zlib/msdos/Makefile.msc
++++ deps/zlib/msdos/Makefile.tc
++++ deps/zlib/nintendods/Makefile
++++ deps/zlib/nintendods/README
++++ deps/zlib/old/Makefile.riscos
++++ deps/zlib/old/README
++++ deps/zlib/old/descrip.mms
++++ deps/zlib/old/os2/Makefile.os2
++++ deps/zlib/old/os2/zlib.def
++++ deps/zlib/old/visual-basic.txt
++++ deps/zlib/os400/README400
++++ deps/zlib/os400/bndsrc
++++ deps/zlib/os400/zlib.inc
++++ deps/zlib/qnx/package.qpg
++++ deps/zlib/treebuild.xml
++++ deps/zlib/trees.h
++++ deps/zlib/watcom/watcom_f.mak
++++ deps/zlib/watcom/watcom_l.mak
++++ deps/zlib/win32/DLL_FAQ.txt
++++ deps/zlib/win32/Makefile.bor
++++ deps/zlib/win32/VisualC.txt
++++ deps/zlib/win32/zlib.def
++++ deps/zlib/win32/zlib1.rc
++++ deps/zlib/zlib.map
++++ deps/zlib/zlib.pc.cmakein
++++ deps/zlib/zlib.pc.in
++++ deps/zlib/zlib2ansi
++++ doc/STYLE_GUIDE.md
++++ doc/abi_version_registry.json
++++ doc/api/addons.html
++++ doc/api/addons.json
++++ doc/api/addons.md
++++ doc/api/assert.html
++++ doc/api/assert.json
++++ doc/api/assert.md
++++ doc/api/assets/sh.css
++++ doc/api/assets/style.css
++++ doc/api/async_hooks.html
++++ doc/api/async_hooks.json
++++ doc/api/async_hooks.md
++++ doc/api/child_process.html
++++ doc/api/child_process.json
++++ doc/api/child_process.md
++++ doc/api/cli.html
++++ doc/api/cli.json
++++ doc/api/cli.md
++++ doc/api/cluster.html
++++ doc/api/cluster.json
++++ doc/api/cluster.md
++++ doc/api/console.html
++++ doc/api/console.json
++++ doc/api/console.md
++++ doc/api/crypto.html
++++ doc/api/crypto.json
++++ doc/api/crypto.md
++++ doc/api/debugger.html
++++ doc/api/debugger.json
++++ doc/api/debugger.md
++++ doc/api/deprecations.html
++++ doc/api/deprecations.json
++++ doc/api/deprecations.md
++++ doc/api/dgram.html
++++ doc/api/dgram.json
++++ doc/api/dgram.md
++++ doc/api/dns.html
++++ doc/api/dns.json
++++ doc/api/dns.md
++++ doc/api/documentation.html
++++ doc/api/documentation.json
++++ doc/api/documentation.md
++++ doc/api/domain.html
++++ doc/api/domain.json
++++ doc/api/domain.md
++++ doc/api/errors.html
++++ doc/api/errors.json
++++ doc/api/errors.md
++++ doc/api/esm.html
++++ doc/api/esm.json
++++ doc/api/esm.md
++++ doc/api/events.html
++++ doc/api/events.json
++++ doc/api/events.md
++++ doc/api/fs.html
++++ doc/api/fs.json
++++ doc/api/fs.md
++++ doc/api/globals.html
++++ doc/api/globals.json
++++ doc/api/globals.md
++++ doc/api/http.html
++++ doc/api/http.json
++++ doc/api/http.md
++++ doc/api/http2.html
++++ doc/api/http2.json
++++ doc/api/http2.md
++++ doc/api/https.html
++++ doc/api/https.json
++++ doc/api/https.md
++++ doc/api/index.html
++++ doc/api/index.json
++++ doc/api/index.md
++++ doc/api/inspector.html
++++ doc/api/inspector.json
++++ doc/api/inspector.md
++++ doc/api/intl.html
++++ doc/api/intl.json
++++ doc/api/intl.md
++++ doc/api/modules.html
++++ doc/api/modules.json
++++ doc/api/modules.md
++++ doc/api/n-api.html
++++ doc/api/n-api.json
++++ doc/api/n-api.md
++++ doc/api/net.html
++++ doc/api/net.json
++++ doc/api/net.md
++++ doc/api/os.html
++++ doc/api/os.json
++++ doc/api/os.md
++++ doc/api/path.html
++++ doc/api/path.json
++++ doc/api/path.md
++++ doc/api/perf_hooks.html
++++ doc/api/perf_hooks.json
++++ doc/api/perf_hooks.md
++++ doc/api/policy.html
++++ doc/api/policy.json
++++ doc/api/policy.md
++++ doc/api/process.html
++++ doc/api/process.json
++++ doc/api/process.md
++++ doc/api/punycode.html
++++ doc/api/punycode.json
++++ doc/api/punycode.md
++++ doc/api/querystring.html
++++ doc/api/querystring.json
++++ doc/api/querystring.md
++++ doc/api/readline.html
++++ doc/api/readline.json
++++ doc/api/readline.md
++++ doc/api/repl.html
++++ doc/api/repl.json
++++ doc/api/repl.md
++++ doc/api/report.html
++++ doc/api/report.json
++++ doc/api/report.md
++++ doc/api/stream.html
++++ doc/api/stream.json
++++ doc/api/stream.md
++++ doc/api/string_decoder.html
++++ doc/api/string_decoder.json
++++ doc/api/string_decoder.md
++++ doc/api/synopsis.html
++++ doc/api/synopsis.json
++++ doc/api/synopsis.md
++++ doc/api/timers.html
++++ doc/api/timers.json
++++ doc/api/timers.md
++++ doc/api/tls.html
++++ doc/api/tls.json
++++ doc/api/tls.md
++++ doc/api/tracing.html
++++ doc/api/tracing.json
++++ doc/api/tracing.md
++++ doc/api/tty.html
++++ doc/api/tty.json
++++ doc/api/tty.md
++++ doc/api/util.html
++++ doc/api/util.json
++++ doc/api/util.md
++++ doc/api/v8.html
++++ doc/api/v8.json
++++ doc/api/v8.md
++++ doc/api/vm.html
++++ doc/api/vm.json
++++ doc/api/vm.md
++++ doc/api/wasi.html
++++ doc/api/wasi.json
++++ doc/api/wasi.md
++++ doc/api/worker_threads.html
++++ doc/api/worker_threads.json
++++ doc/api/worker_threads.md
++++ doc/api/zlib.html
++++ doc/api/zlib.json
++++ doc/api/zlib.md
++++ doc/api_assets/sh.css
++++ doc/api_assets/style.css
++++ doc/changelogs/CHANGELOG_V010.md
++++ doc/changelogs/CHANGELOG_V9.md
++++ doc/first_timer_badge.png
++++ doc/guides/adding-new-napi-api.md
++++ doc/guides/backporting-to-release-lines.md
++++ doc/guides/building-node-with-ninja.md
++++ doc/guides/contributing/coc.md
++++ doc/guides/contributing/issues.md
++++ doc/guides/contributing/pull-requests.md
++++ doc/guides/cve_management_process.md
++++ doc/guides/diagnostic-tooling-support-tiers.md
++++ doc/guides/doc_img/scatter-plot.png
++++ doc/guides/internal/readme.md
++++ doc/guides/maintaining-V8.md
++++ doc/guides/maintaining-npm.md
++++ doc/guides/maintaining-the-build-files.md
++++ doc/guides/node-postmortem-support.md
++++ doc/guides/security_release_process.md
++++ doc/guides/updating-root-certs.md
++++ doc/guides/using-internal-errors.md
++++ doc/guides/using-symbols.md
++++ doc/guides/writing-tests.md
++++ doc/offboarding.md
++++ doc/onboarding-extras.md
++++ doc/onboarding.md
++++ doc/releases.md
++++ doc/template.html
++++ lib/_stream_wrap.js
++++ lib/async_hooks.js
++++ lib/http2.js
++++ lib/inspector.js
++++ lib/internal/assert.js
++++ lib/internal/assert/assertion_error.js
++++ lib/internal/async_hooks.js
++++ lib/internal/bootstrap/environment.js
++++ lib/internal/bootstrap/loaders.js
++++ lib/internal/bootstrap/node.js
++++ lib/internal/bootstrap/pre_execution.js
++++ lib/internal/bootstrap/switches/does_not_own_process_state.js
++++ lib/internal/bootstrap/switches/does_own_process_state.js
++++ lib/internal/bootstrap/switches/is_main_thread.js
++++ lib/internal/bootstrap/switches/is_not_main_thread.js
++++ lib/internal/buffer.js
++++ lib/internal/child_process.js
++++ lib/internal/child_process/serialization.js
++++ lib/internal/cli_table.js
++++ lib/internal/cluster/child.js
++++ lib/internal/cluster/master.js
++++ lib/internal/cluster/round_robin_handle.js
++++ lib/internal/cluster/shared_handle.js
++++ lib/internal/cluster/utils.js
++++ lib/internal/cluster/worker.js
++++ lib/internal/console/constructor.js
++++ lib/internal/console/global.js
++++ lib/internal/constants.js
++++ lib/internal/crypto/certificate.js
++++ lib/internal/crypto/cipher.js
++++ lib/internal/crypto/diffiehellman.js
++++ lib/internal/crypto/hash.js
++++ lib/internal/crypto/keygen.js
++++ lib/internal/crypto/keys.js
++++ lib/internal/crypto/pbkdf2.js
++++ lib/internal/crypto/random.js
++++ lib/internal/crypto/scrypt.js
++++ lib/internal/crypto/sig.js
++++ lib/internal/crypto/util.js
++++ lib/internal/dgram.js
++++ lib/internal/dns/promises.js
++++ lib/internal/dns/utils.js
++++ lib/internal/dtrace.js
++++ lib/internal/encoding.js
++++ lib/internal/error-serdes.js
++++ lib/internal/errors.js
++++ lib/internal/fixed_queue.js
++++ lib/internal/freelist.js
++++ lib/internal/fs/dir.js
++++ lib/internal/fs/promises.js
++++ lib/internal/fs/read_file_context.js
++++ lib/internal/fs/rimraf.js
++++ lib/internal/fs/streams.js
++++ lib/internal/fs/sync_write_stream.js
++++ lib/internal/fs/utils.js
++++ lib/internal/fs/watchers.js
++++ lib/internal/http.js
++++ lib/internal/http2/compat.js
++++ lib/internal/http2/core.js
++++ lib/internal/http2/util.js
++++ lib/internal/idna.js
++++ lib/internal/inspector_async_hook.js
++++ lib/internal/js_stream_socket.js
++++ lib/internal/linkedlist.js
++++ lib/internal/main/.eslintrc.yaml
++++ lib/internal/main/check_syntax.js
++++ lib/internal/main/eval_stdin.js
++++ lib/internal/main/eval_string.js
++++ lib/internal/main/inspect.js
++++ lib/internal/main/print_help.js
++++ lib/internal/main/prof_process.js
++++ lib/internal/main/repl.js
++++ lib/internal/main/run_main_module.js
++++ lib/internal/main/run_third_party_main.js
++++ lib/internal/main/worker_thread.js
++++ lib/internal/modules/cjs/helpers.js
++++ lib/internal/modules/esm/create_dynamic_module.js
++++ lib/internal/modules/esm/get_format.js
++++ lib/internal/modules/esm/get_source.js
++++ lib/internal/modules/esm/loader.js
++++ lib/internal/modules/esm/module_job.js
++++ lib/internal/modules/esm/module_map.js
++++ lib/internal/modules/esm/resolve.js
++++ lib/internal/modules/esm/transform_source.js
++++ lib/internal/modules/esm/translators.js
++++ lib/internal/modules/run_main.js
++++ lib/internal/net.js
++++ lib/internal/options.js
++++ lib/internal/per_context/domexception.js
++++ lib/internal/per_context/primordials.js
++++ lib/internal/policy/manifest.js
++++ lib/internal/policy/sri.js
++++ lib/internal/priority_queue.js
++++ lib/internal/process/esm_loader.js
++++ lib/internal/process/execution.js
++++ lib/internal/process/per_thread.js
++++ lib/internal/process/policy.js
++++ lib/internal/process/promises.js
++++ lib/internal/process/report.js
++++ lib/internal/process/signal.js
++++ lib/internal/process/task_queues.js
++++ lib/internal/process/warning.js
++++ lib/internal/process/worker_thread_only.js
++++ lib/internal/querystring.js
++++ lib/internal/readline/utils.js
++++ lib/internal/readme.md
++++ lib/internal/repl.js
++++ lib/internal/repl/await.js
++++ lib/internal/repl/history.js
++++ lib/internal/repl/utils.js
++++ lib/internal/socket_list.js
++++ lib/internal/source_map/prepare_stack_trace.js
++++ lib/internal/source_map/source_map_cache.js
++++ lib/internal/stream_base_commons.js
++++ lib/internal/streams/async_iterator.js
++++ lib/internal/streams/buffer_list.js
++++ lib/internal/streams/destroy.js
++++ lib/internal/streams/duplexpair.js
++++ lib/internal/streams/end-of-stream.js
++++ lib/internal/streams/from.js
++++ lib/internal/streams/lazy_transform.js
++++ lib/internal/streams/legacy.js
++++ lib/internal/streams/pipeline.js
++++ lib/internal/streams/state.js
++++ lib/internal/test/binding.js
++++ lib/internal/timers.js
++++ lib/internal/tls.js
++++ lib/internal/trace_events_async_hooks.js
++++ lib/internal/url.js
++++ lib/internal/util.js
++++ lib/internal/util/comparisons.js
++++ lib/internal/util/debuglog.js
++++ lib/internal/util/inspect.js
++++ lib/internal/util/inspector.js
++++ lib/internal/util/types.js
++++ lib/internal/v8_prof_processor.js
++++ lib/internal/validators.js
++++ lib/internal/vm/module.js
++++ lib/internal/worker.js
++++ lib/internal/worker/io.js
++++ lib/module.js
++++ lib/perf_hooks.js
++++ lib/process.js
++++ lib/punycode.js
++++ lib/trace_events.js
++++ lib/wasi.js
++++ lib/worker_threads.js
++++ node.gyp
++++ node.gypi
++++ src/README.md
++++ src/aliased_buffer.h
++++ src/api/async_resource.cc
++++ src/api/callback.cc
++++ src/api/encoding.cc
++++ src/api/environment.cc
++++ src/api/exceptions.cc
++++ src/api/hooks.cc
++++ src/api/utils.cc
++++ src/base64.h
++++ src/connect_wrap.cc
++++ src/connect_wrap.h
++++ src/connection_wrap.cc
++++ src/connection_wrap.h
++++ src/debug_utils.cc
++++ src/debug_utils.h
++++ src/diagnosticfilename-inl.h
++++ src/env.cc
++++ src/heap_utils.cc
++++ src/histogram-inl.h
++++ src/histogram.h
++++ src/http_parser_adaptor.h
++++ src/inspector/main_thread_interface.cc
++++ src/inspector/main_thread_interface.h
++++ src/inspector/node_inspector.gypi
++++ src/inspector/node_protocol.pdl
++++ src/inspector/node_protocol_config.json
++++ src/inspector/node_string.cc
++++ src/inspector/node_string.h
++++ src/inspector/runtime_agent.cc
++++ src/inspector/runtime_agent.h
++++ src/inspector/tracing_agent.cc
++++ src/inspector/tracing_agent.h
++++ src/inspector/worker_agent.cc
++++ src/inspector/worker_agent.h
++++ src/inspector/worker_inspector.cc
++++ src/inspector/worker_inspector.h
++++ src/inspector_agent.cc
++++ src/inspector_agent.h
++++ src/inspector_io.cc
++++ src/inspector_io.h
++++ src/inspector_js_api.cc
++++ src/inspector_profiler.cc
++++ src/inspector_profiler.h
++++ src/inspector_socket.cc
++++ src/inspector_socket.h
++++ src/inspector_socket_server.cc
++++ src/inspector_socket_server.h
++++ src/js_native_api.h
++++ src/js_native_api_types.h
++++ src/js_native_api_v8.cc
++++ src/js_native_api_v8.h
++++ src/js_native_api_v8_internals.h
++++ src/js_stream.cc
++++ src/js_stream.h
++++ src/large_pages/ld.implicit.script
++++ src/large_pages/ld.implicit.script.lld
++++ src/memory_tracker-inl.h
++++ src/memory_tracker.h
++++ src/module_wrap.cc
++++ src/module_wrap.h
++++ src/node_api.cc
++++ src/node_api.h
++++ src/node_api_types.h
++++ src/node_binding.cc
++++ src/node_binding.h
++++ src/node_code_cache_stub.cc
++++ src/node_config.cc
++++ src/node_context_data.h
++++ src/node_contextify.h
++++ src/node_credentials.cc
++++ src/node_dir.cc
++++ src/node_dir.h
++++ src/node_domain.cc
++++ src/node_env_var.cc
++++ src/node_errors.cc
++++ src/node_errors.h
++++ src/node_file-inl.h
++++ src/node_file.h
++++ src/node_http2.cc
++++ src/node_http2.h
++++ src/node_http2_state.h
++++ src/node_http_parser_llhttp.cc
++++ src/node_http_parser_traditional.cc
++++ src/node_main_instance.cc
++++ src/node_main_instance.h
++++ src/node_mem-inl.h
++++ src/node_mem.h
++++ src/node_messaging.cc
++++ src/node_messaging.h
++++ src/node_metadata.cc
++++ src/node_metadata.h
++++ src/node_mutex.h
++++ src/node_native_module.cc
++++ src/node_native_module.h
++++ src/node_native_module_env.cc
++++ src/node_native_module_env.h
++++ src/node_options-inl.h
++++ src/node_options.cc
++++ src/node_options.h
++++ src/node_perf.cc
++++ src/node_perf.h
++++ src/node_perf_common.h
++++ src/node_platform.cc
++++ src/node_platform.h
++++ src/node_postmortem_metadata.cc
++++ src/node_process.h
++++ src/node_process_events.cc
++++ src/node_process_methods.cc
++++ src/node_process_object.cc
++++ src/node_report.cc
++++ src/node_report.h
++++ src/node_report_module.cc
++++ src/node_report_utils.cc
++++ src/node_revert.h
++++ src/node_root_certs.h
++++ src/node_serdes.cc
++++ src/node_snapshot_stub.cc
++++ src/node_symbols.cc
++++ src/node_task_queue.cc
++++ src/node_trace_events.cc
++++ src/node_types.cc
++++ src/node_union_bytes.h
++++ src/node_url.cc
++++ src/node_url.h
++++ src/node_util.cc
++++ src/node_v8_platform-inl.h
++++ src/node_wasi.cc
++++ src/node_wasi.h
++++ src/node_worker.cc
++++ src/node_worker.h
++++ src/req_wrap-inl.h
++++ src/req_wrap.h
++++ src/res/node.exe.extra.manifest
++++ src/res/node_etw_provider.man
++++ src/sharedarraybuffer_metadata.cc
++++ src/sharedarraybuffer_metadata.h
++++ src/stream_base-inl.h
++++ src/stream_base.cc
++++ src/stream_base.h
++++ src/stream_pipe.cc
++++ src/stream_pipe.h
++++ src/string_decoder-inl.h
++++ src/string_decoder.cc
++++ src/string_decoder.h
++++ src/timers.cc
++++ src/tracing/agent.cc
++++ src/tracing/agent.h
++++ src/tracing/node_trace_buffer.cc
++++ src/tracing/node_trace_buffer.h
++++ src/tracing/node_trace_writer.cc
++++ src/tracing/node_trace_writer.h
++++ src/tracing/trace_event.cc
++++ src/v8ustack.d
++++ test/README.md
++++ test/abort/test-abort-backtrace.js
++++ test/abort/test-abort-uncaught-exception.js
++++ test/abort/test-addon-uv-handle-leak.js
++++ test/abort/test-http-parser-consume.js
++++ test/abort/test-process-abort-exitcode.js
++++ test/abort/test-worker-abort-uncaught-exception.js
++++ test/abort/test-zlib-invalid-internals-usage.js
++++ test/abort/testcfg.py
++++ test/addons/.gitignore
++++ test/addons/addon.status
++++ test/addons/async-hello-world/binding.cc
++++ test/addons/async-hello-world/binding.gyp
++++ test/addons/async-hello-world/test-makecallback-uncaught.js
++++ test/addons/async-hello-world/test-makecallback.js
++++ test/addons/async-hello-world/test.js
++++ test/addons/async-hooks-id/binding.cc
++++ test/addons/async-hooks-id/binding.gyp
++++ test/addons/async-hooks-id/test.js
++++ test/addons/async-hooks-promise/binding.cc
++++ test/addons/async-hooks-promise/binding.gyp
++++ test/addons/async-hooks-promise/test.js
++++ test/addons/async-resource/binding.cc
++++ test/addons/async-resource/binding.gyp
++++ test/addons/async-resource/test.js
++++ test/addons/buffer-free-callback/binding.cc
++++ test/addons/buffer-free-callback/binding.gyp
++++ test/addons/buffer-free-callback/test.js
++++ test/addons/callback-scope/binding.cc
++++ test/addons/callback-scope/binding.gyp
++++ test/addons/callback-scope/test-async-hooks.js
++++ test/addons/callback-scope/test-resolve-async.js
++++ test/addons/callback-scope/test.js
++++ test/addons/common.gypi
++++ test/addons/dlopen-ping-pong/binding.cc
++++ test/addons/dlopen-ping-pong/binding.gyp
++++ test/addons/dlopen-ping-pong/ping.c
++++ test/addons/dlopen-ping-pong/test-worker.js
++++ test/addons/dlopen-ping-pong/test.js
++++ test/addons/errno-exception/binding.cc
++++ test/addons/errno-exception/binding.gyp
++++ test/addons/errno-exception/test.js
++++ test/addons/force-context-aware/binding.cc
++++ test/addons/force-context-aware/binding.gyp
++++ test/addons/force-context-aware/test.js
++++ test/addons/heap-profiler/binding.cc
++++ test/addons/heap-profiler/binding.gyp
++++ test/addons/heap-profiler/test.js
++++ test/addons/hello-world-function-export/binding.cc
++++ test/addons/hello-world-function-export/binding.gyp
++++ test/addons/hello-world-function-export/test.js
++++ test/addons/hello-world/binding.cc
++++ test/addons/hello-world/binding.gyp
++++ test/addons/hello-world/test-worker.js
++++ test/addons/hello-world/test.js
++++ test/addons/load-long-path/binding.cc
++++ test/addons/load-long-path/binding.gyp
++++ test/addons/load-long-path/test.js
++++ test/addons/make-callback-domain-warning/binding.cc
++++ test/addons/make-callback-domain-warning/binding.gyp
++++ test/addons/make-callback-domain-warning/test.js
++++ test/addons/make-callback-recurse/binding.cc
++++ test/addons/make-callback-recurse/binding.gyp
++++ test/addons/make-callback-recurse/test.js
++++ test/addons/make-callback/binding.cc
++++ test/addons/make-callback/binding.gyp
++++ test/addons/make-callback/test.js
++++ test/addons/new-target/binding.cc
++++ test/addons/new-target/binding.gyp
++++ test/addons/new-target/test.js
++++ test/addons/node-module-version/binding.cc
++++ test/addons/node-module-version/binding.gyp
++++ test/addons/node-module-version/test.js
++++ test/addons/non-node-context/binding.cc
++++ test/addons/non-node-context/binding.gyp
++++ test/addons/non-node-context/test-make-buffer.js
++++ test/addons/non-node-context/test-perf-hooks-timerify.js
++++ test/addons/not-a-binding/binding.gyp
++++ test/addons/not-a-binding/not_a_binding.c
++++ test/addons/not-a-binding/test.js
++++ test/addons/null-buffer-neuter/binding.cc
++++ test/addons/null-buffer-neuter/binding.gyp
++++ test/addons/null-buffer-neuter/test.js
++++ test/addons/openssl-binding/binding.cc
++++ test/addons/openssl-binding/binding.gyp
++++ test/addons/openssl-binding/test.js
++++ test/addons/openssl-client-cert-engine/binding.gyp
++++ test/addons/openssl-client-cert-engine/test.js
++++ test/addons/openssl-client-cert-engine/testengine.cc
++++ test/addons/openssl-key-engine/binding.gyp
++++ test/addons/openssl-key-engine/test.js
++++ test/addons/openssl-key-engine/testkeyengine.cc
++++ test/addons/parse-encoding/binding.cc
++++ test/addons/parse-encoding/binding.gyp
++++ test/addons/parse-encoding/test.js
++++ test/addons/repl-domain-abort/binding.gyp
++++ test/addons/stringbytes-external-exceed-max/binding.cc
++++ test/addons/stringbytes-external-exceed-max/binding.gyp
++++ test/addons/stringbytes-external-exceed-max/test-stringbytes-external-at-max.js
++++ test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-ascii.js
++++ test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-base64.js
++++ test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-binary.js
++++ test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-hex.js
++++ test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-utf8.js
++++ test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-2.js
++++ test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max.js
++++ test/addons/symlinked-module/binding.cc
++++ test/addons/symlinked-module/binding.gyp
++++ test/addons/symlinked-module/submodule.js
++++ test/addons/symlinked-module/test.js
++++ test/addons/testcfg.py
++++ test/addons/uv-handle-leak/binding.cc
++++ test/addons/uv-handle-leak/binding.gyp
++++ test/addons/uv-handle-leak/test.js
++++ test/addons/worker-addon/binding.cc
++++ test/addons/worker-addon/binding.gyp
++++ test/addons/worker-addon/test.js
++++ test/addons/worker-buffer-callback/binding.cc
++++ test/addons/worker-buffer-callback/binding.gyp
++++ test/addons/worker-buffer-callback/test-free-called.js
++++ test/addons/worker-buffer-callback/test.js
++++ test/addons/zlib-binding/binding.cc
++++ test/addons/zlib-binding/binding.gyp
++++ test/addons/zlib-binding/test.js
++++ test/async-hooks/async-hooks.status
++++ test/async-hooks/coverage.md
++++ test/async-hooks/hook-checks.js
++++ test/async-hooks/init-hooks.js
++++ test/async-hooks/test-async-await.js
++++ test/async-hooks/test-callback-error.js
++++ test/async-hooks/test-crypto-pbkdf2.js
++++ test/async-hooks/test-crypto-randomBytes.js
++++ test/async-hooks/test-disable-in-init.js
++++ test/async-hooks/test-embedder.api.async-resource-no-type.js
++++ test/async-hooks/test-embedder.api.async-resource.js
++++ test/async-hooks/test-embedder.api.async-resource.runInAsyncScope.js
++++ test/async-hooks/test-emit-after-on-destroyed.js
++++ test/async-hooks/test-emit-before-after.js
++++ test/async-hooks/test-emit-before-on-destroyed.js
++++ test/async-hooks/test-emit-init.js
++++ test/async-hooks/test-enable-disable.js
++++ test/async-hooks/test-enable-in-init.js
++++ test/async-hooks/test-fseventwrap.js
++++ test/async-hooks/test-fsreqcallback-access.js
++++ test/async-hooks/test-fsreqcallback-readFile.js
++++ test/async-hooks/test-getaddrinforeqwrap.js
++++ test/async-hooks/test-getnameinforeqwrap.js
++++ test/async-hooks/test-graph.fsreq-readFile.js
++++ test/async-hooks/test-graph.http.js
++++ test/async-hooks/test-graph.intervals.js
++++ test/async-hooks/test-graph.pipe.js
++++ test/async-hooks/test-graph.pipeconnect.js
++++ test/async-hooks/test-graph.shutdown.js
++++ test/async-hooks/test-graph.signal.js
++++ test/async-hooks/test-graph.statwatcher.js
++++ test/async-hooks/test-graph.tcp.js
++++ test/async-hooks/test-graph.timeouts.js
++++ test/async-hooks/test-graph.tls-write-12.js
++++ test/async-hooks/test-graph.tls-write.js
++++ test/async-hooks/test-http-agent-handle-reuse.js
++++ test/async-hooks/test-httpparser-reuse.js
++++ test/async-hooks/test-httpparser.request.js
++++ test/async-hooks/test-httpparser.response.js
++++ test/async-hooks/test-immediate.js
++++ test/async-hooks/test-improper-order.js
++++ test/async-hooks/test-improper-unwind.js
++++ test/async-hooks/test-late-hook-enable.js
++++ test/async-hooks/test-net-get-connections.js
++++ test/async-hooks/test-nexttick-default-trigger.js
++++ test/async-hooks/test-no-assert-when-disabled.js
++++ test/async-hooks/test-pipeconnectwrap.js
++++ test/async-hooks/test-pipewrap.js
++++ test/async-hooks/test-promise.chain-promise-before-init-hooks.js
++++ test/async-hooks/test-promise.js
++++ test/async-hooks/test-promise.promise-before-init-hooks.js
++++ test/async-hooks/test-querywrap.js
++++ test/async-hooks/test-queue-microtask.js
++++ test/async-hooks/test-shutdownwrap.js
++++ test/async-hooks/test-signalwrap.js
++++ test/async-hooks/test-statwatcher.js
++++ test/async-hooks/test-tcpwrap.js
++++ test/async-hooks/test-timers.setInterval.js
++++ test/async-hooks/test-timers.setTimeout.js
++++ test/async-hooks/test-tlswrap.js
++++ test/async-hooks/test-ttywrap.readstream.js
++++ test/async-hooks/test-udpsendwrap.js
++++ test/async-hooks/test-udpwrap.js
++++ test/async-hooks/test-writewrap.js
++++ test/async-hooks/test-zlib.zlib-binding.deflate.js
++++ test/async-hooks/testcfg.py
++++ test/async-hooks/verify-graph.js
++++ test/benchmark/benchmark.status
++++ test/benchmark/test-benchmark-assert.js
++++ test/benchmark/test-benchmark-async-hooks.js
++++ test/benchmark/test-benchmark-buffer.js
++++ test/benchmark/test-benchmark-child-process.js
++++ test/benchmark/test-benchmark-cluster.js
++++ test/benchmark/test-benchmark-crypto.js
++++ test/benchmark/test-benchmark-dgram.js
++++ test/benchmark/test-benchmark-dns.js
++++ test/benchmark/test-benchmark-domain.js
++++ test/benchmark/test-benchmark-es.js
++++ test/benchmark/test-benchmark-events.js
++++ test/benchmark/test-benchmark-fs.js
++++ test/benchmark/test-benchmark-http.js
++++ test/benchmark/test-benchmark-http2.js
++++ test/benchmark/test-benchmark-misc.js
++++ test/benchmark/test-benchmark-module.js
++++ test/benchmark/test-benchmark-napi.js
++++ test/benchmark/test-benchmark-net.js
++++ test/benchmark/test-benchmark-os.js
++++ test/benchmark/test-benchmark-path.js
++++ test/benchmark/test-benchmark-process.js
++++ test/benchmark/test-benchmark-querystring.js
++++ test/benchmark/test-benchmark-streams.js
++++ test/benchmark/test-benchmark-string_decoder.js
++++ test/benchmark/test-benchmark-timers.js
++++ test/benchmark/test-benchmark-tls.js
++++ test/benchmark/test-benchmark-url.js
++++ test/benchmark/test-benchmark-util.js
++++ test/benchmark/test-benchmark-v8.js
++++ test/benchmark/test-benchmark-vm.js
++++ test/benchmark/test-benchmark-worker.js
++++ test/benchmark/test-benchmark-zlib.js
++++ test/benchmark/testcfg.py
++++ test/cctest/node_test_fixture.cc
++++ test/cctest/node_test_fixture.h
++++ test/cctest/test_aliased_buffer.cc
++++ test/cctest/test_base64.cc
++++ test/cctest/test_environment.cc
++++ test/cctest/test_inspector_socket.cc
++++ test/cctest/test_inspector_socket_server.cc
++++ test/cctest/test_linked_binding.cc
++++ test/cctest/test_node_postmortem_metadata.cc
++++ test/cctest/test_per_process.cc
++++ test/cctest/test_platform.cc
++++ test/cctest/test_report_util.cc
++++ test/cctest/test_traced_value.cc
++++ test/cctest/test_url.cc
++++ test/cctest/test_util.cc
++++ test/common/README.md
++++ test/common/arraystream.js
++++ test/common/benchmark.js
++++ test/common/countdown.js
++++ test/common/cpu-prof.js
++++ test/common/dns.js
++++ test/common/duplexpair.js
++++ test/common/fixtures.js
++++ test/common/fixtures.mjs
++++ test/common/heap.js
++++ test/common/hijackstdio.js
++++ test/common/http2.js
++++ test/common/index.mjs
++++ test/common/inspector-helper.js
++++ test/common/internet.js
++++ test/common/ongc.js
++++ test/common/report.js
++++ test/common/require-as.js
++++ test/common/shared-lib-util.js
++++ test/common/tick.js
++++ test/common/tls.js
++++ test/common/tmpdir.js
++++ test/common/wpt.js
++++ test/doctool/test-apilinks.js
++++ test/doctool/test-doctool-html.js
++++ test/doctool/test-doctool-json.js
++++ test/doctool/test-doctool-versions.js
++++ test/doctool/test-make-doc.js
++++ test/doctool/testcfg.py
++++ test/es-module/es-module.status
++++ test/es-module/test-cjs-esm-warn.js
++++ test/es-module/test-esm-basic-imports.mjs
++++ test/es-module/test-esm-cjs-load-error-note.mjs
++++ test/es-module/test-esm-cjs-main.js
++++ test/es-module/test-esm-cyclic-dynamic-import.mjs
++++ test/es-module/test-esm-data-urls.js
++++ test/es-module/test-esm-default-type.mjs
++++ test/es-module/test-esm-double-encoding.mjs
++++ test/es-module/test-esm-dynamic-import.js
++++ test/es-module/test-esm-encoded-path-native.js
++++ test/es-module/test-esm-encoded-path.mjs
++++ test/es-module/test-esm-error-cache.js
++++ test/es-module/test-esm-example-loader.js
++++ test/es-module/test-esm-exports.mjs
++++ test/es-module/test-esm-flagged-self.js
++++ test/es-module/test-esm-forbidden-globals.mjs
++++ test/es-module/test-esm-get-source-loader.mjs
++++ test/es-module/test-esm-import-meta.mjs
++++ test/es-module/test-esm-invalid-extension.js
++++ test/es-module/test-esm-json-cache.mjs
++++ test/es-module/test-esm-json.mjs
++++ test/es-module/test-esm-live-binding.mjs
++++ test/es-module/test-esm-loader-cache-clearing.js
++++ test/es-module/test-esm-loader-dependency.mjs
++++ test/es-module/test-esm-loader-get-format.mjs
++++ test/es-module/test-esm-loader-invalid-format.mjs
++++ test/es-module/test-esm-loader-invalid-url.mjs
++++ test/es-module/test-esm-loader-missing-dynamic-instantiate-hook.mjs
++++ test/es-module/test-esm-loader-modulemap.js
++++ test/es-module/test-esm-loader-search.js
++++ test/es-module/test-esm-main-lookup.mjs
++++ test/es-module/test-esm-named-exports.mjs
++++ test/es-module/test-esm-namespace.mjs
++++ test/es-module/test-esm-no-extension.js
++++ test/es-module/test-esm-non-js.js
++++ test/es-module/test-esm-pkgname.mjs
++++ test/es-module/test-esm-preserve-symlinks-main.js
++++ test/es-module/test-esm-preserve-symlinks-not-found-plain.mjs
++++ test/es-module/test-esm-preserve-symlinks-not-found.mjs
++++ test/es-module/test-esm-preserve-symlinks.js
++++ test/es-module/test-esm-process.mjs
++++ test/es-module/test-esm-repl.js
++++ test/es-module/test-esm-require-cache.mjs
++++ test/es-module/test-esm-resolve-hook.mjs
++++ test/es-module/test-esm-scope-node-modules.mjs
++++ test/es-module/test-esm-shared-loader-dep.mjs
++++ test/es-module/test-esm-shebang.mjs
++++ test/es-module/test-esm-snapshot.mjs
++++ test/es-module/test-esm-specifiers-both-flags.mjs
++++ test/es-module/test-esm-specifiers-legacy-flag.mjs
++++ test/es-module/test-esm-specifiers.mjs
++++ test/es-module/test-esm-symlink-main.js
++++ test/es-module/test-esm-symlink-type.js
++++ test/es-module/test-esm-symlink.js
++++ test/es-module/test-esm-throw-undefined.mjs
++++ test/es-module/test-esm-transform-source-loader.mjs
++++ test/es-module/test-esm-type-flag-errors.js
++++ test/es-module/test-esm-type-flag.mjs
++++ test/es-module/test-esm-unknown-main.js
++++ test/es-module/test-esm-wasm.mjs
++++ test/es-module/test-esm-windows.js
++++ test/es-module/testcfg.py
++++ test/fixtures/.node_repl_history
++++ test/fixtures/0-dns/0-dns-cert.pem
++++ test/fixtures/0-dns/0-dns-key.pem
++++ test/fixtures/0-dns/0-dns-rsapub.der
++++ test/fixtures/0-dns/README.md
++++ test/fixtures/0-dns/create-cert.js
++++ test/fixtures/0-dns/package.json
++++ test/fixtures/GH-7131/a.js
++++ test/fixtures/GH-7131/b.js
++++ test/fixtures/aead-vectors.js
++++ test/fixtures/altdocs.md
++++ test/fixtures/apilinks/buffer.js
++++ test/fixtures/apilinks/buffer.json
++++ test/fixtures/apilinks/class.js
++++ test/fixtures/apilinks/class.json
++++ test/fixtures/apilinks/exports.js
++++ test/fixtures/apilinks/exports.json
++++ test/fixtures/apilinks/mod.js
++++ test/fixtures/apilinks/mod.json
++++ test/fixtures/apilinks/prototype.js
++++ test/fixtures/apilinks/prototype.json
++++ test/fixtures/apilinks/reverse.js
++++ test/fixtures/apilinks/reverse.json
++++ test/fixtures/apilinks/root.js
++++ test/fixtures/apilinks/root.json
++++ test/fixtures/assert-first-line.js
++++ test/fixtures/assert-long-line.js
++++ test/fixtures/async-error.js
++++ test/fixtures/baz.js
++++ test/fixtures/bluebird/node_modules/bluebird/package.json
++++ test/fixtures/bluebird/package.json
++++ test/fixtures/bluebird/test.js
++++ test/fixtures/child-process-echo-options.js
++++ test/fixtures/child-process-message-and-exit.js
++++ test/fixtures/child-process-persistent.js
++++ test/fixtures/child-process-spawn-node.js
++++ test/fixtures/cjs-module-wrap.js
++++ test/fixtures/cjs-module-wrapper.js
++++ test/fixtures/cluster-preload-test.js
++++ test/fixtures/cluster-preload.js
++++ test/fixtures/clustered-server/app.js
++++ test/fixtures/debugger-repeat-last.js
++++ test/fixtures/debugger-util-regression-fixture.js
++++ test/fixtures/define-global.js
++++ test/fixtures/deprecated-userland-class.js
++++ test/fixtures/deprecated-userland-function.js
++++ test/fixtures/deprecated-userland-subclass.js
++++ test/fixtures/deprecated.js
++++ test/fixtures/destroy-stdin.js
++++ test/fixtures/doc_inc_1.md
++++ test/fixtures/doc_inc_2.md
++++ test/fixtures/doc_with_yaml.md
++++ test/fixtures/document_with_links.md
++++ test/fixtures/elipses.txt
++++ test/fixtures/empty-with-bom.txt
++++ test/fixtures/es-module-loaders/builtin-named-exports-loader.mjs
++++ test/fixtures/es-module-loaders/example-loader.mjs
++++ test/fixtures/es-module-loaders/get-source.mjs
++++ test/fixtures/es-module-loaders/js-as-esm.js
++++ test/fixtures/es-module-loaders/js-loader.mjs
++++ test/fixtures/es-module-loaders/loader-dep.js
++++ test/fixtures/es-module-loaders/loader-get-format.mjs
++++ test/fixtures/es-module-loaders/loader-invalid-format.mjs
++++ test/fixtures/es-module-loaders/loader-invalid-url.mjs
++++ test/fixtures/es-module-loaders/loader-shared-dep.mjs
++++ test/fixtures/es-module-loaders/loader-unknown-builtin-module.mjs
++++ test/fixtures/es-module-loaders/loader-with-dep.mjs
++++ test/fixtures/es-module-loaders/missing-dynamic-instantiate-hook.mjs
++++ test/fixtures/es-module-loaders/module-named-exports.mjs
++++ test/fixtures/es-module-loaders/not-found-assert-loader.mjs
++++ test/fixtures/es-module-loaders/syntax-error-import.mjs
++++ test/fixtures/es-module-loaders/syntax-error.mjs
++++ test/fixtures/es-module-loaders/throw-undefined.mjs
++++ test/fixtures/es-module-loaders/transform-source.mjs
++++ test/fixtures/es-module-require-cache/counter.js
++++ test/fixtures/es-module-require-cache/preload.js
++++ test/fixtures/es-module-specifiers/index.mjs
++++ test/fixtures/es-module-specifiers/node_modules/explicit-main/entry.mjs
++++ test/fixtures/es-module-specifiers/node_modules/explicit-main/package.json
++++ test/fixtures/es-module-specifiers/node_modules/implicit-main-type-commonjs/entry.mjs
++++ test/fixtures/es-module-specifiers/node_modules/implicit-main-type-commonjs/package.json
++++ test/fixtures/es-module-specifiers/node_modules/implicit-main-type-module/entry.js
++++ test/fixtures/es-module-specifiers/node_modules/implicit-main-type-module/entry.mjs
++++ test/fixtures/es-module-specifiers/node_modules/implicit-main-type-module/package.json
++++ test/fixtures/es-module-specifiers/node_modules/implicit-main/entry.js
++++ test/fixtures/es-module-specifiers/node_modules/implicit-main/entry.mjs
++++ test/fixtures/es-module-specifiers/node_modules/implicit-main/package.json
++++ test/fixtures/es-module-specifiers/package-type-commonjs/a.js
++++ test/fixtures/es-module-specifiers/package-type-commonjs/b.mjs
++++ test/fixtures/es-module-specifiers/package-type-commonjs/c.cjs
++++ test/fixtures/es-module-specifiers/package-type-commonjs/index.mjs
++++ test/fixtures/es-module-specifiers/package-type-commonjs/package.json
++++ test/fixtures/es-module-specifiers/package-type-module/a.js
++++ test/fixtures/es-module-specifiers/package-type-module/b.mjs
++++ test/fixtures/es-module-specifiers/package-type-module/c.cjs
++++ test/fixtures/es-module-specifiers/package-type-module/index.js
++++ test/fixtures/es-module-specifiers/package-type-module/package.json
++++ test/fixtures/es-module-specifiers/package.json
++++ test/fixtures/es-module-url/native.mjs
++++ test/fixtures/es-modules/cjs-esm.js
++++ test/fixtures/es-modules/cjs-file.cjs
++++ test/fixtures/es-modules/cjs.js
++++ test/fixtures/es-modules/conditional-exports.js
++++ test/fixtures/es-modules/es-note-promiserej-import-2.cjs
++++ test/fixtures/es-modules/es-note-unexpected-export-1.cjs
++++ test/fixtures/es-modules/es-note-unexpected-export-2.cjs
++++ test/fixtures/es-modules/es-note-unexpected-import-1.cjs
++++ test/fixtures/es-modules/es-note-unexpected-import-3.cjs
++++ test/fixtures/es-modules/es-note-unexpected-import-4.cjs
++++ test/fixtures/es-modules/es-note-unexpected-import-5.cjs
++++ test/fixtures/es-modules/esm-snapshot-mutator.js
++++ test/fixtures/es-modules/esm-snapshot.js
++++ test/fixtures/es-modules/import-invalid-ext.mjs
++++ test/fixtures/es-modules/import-process-exit.mjs
++++ test/fixtures/es-modules/json-cache/another.cjs
++++ test/fixtures/es-modules/json-cache/mod.cjs
++++ test/fixtures/es-modules/json-cache/test.json
++++ test/fixtures/es-modules/json-modules.mjs
++++ test/fixtures/es-modules/loop.mjs
++++ test/fixtures/es-modules/message.mjs
++++ test/fixtures/es-modules/mjs-file.mjs
++++ test/fixtures/es-modules/noext
++++ test/fixtures/es-modules/package-type-commonjs/index.js
++++ test/fixtures/es-modules/package-type-commonjs/package.json
++++ test/fixtures/es-modules/package-type-module/cjs.js
++++ test/fixtures/es-modules/package-type-module/extension.unknown
++++ test/fixtures/es-modules/package-type-module/imports-noext.mjs
++++ test/fixtures/es-modules/package-type-module/imports-unknownext.mjs
++++ test/fixtures/es-modules/package-type-module/index.js
++++ test/fixtures/es-modules/package-type-module/nested-default-type/module.js
++++ test/fixtures/es-modules/package-type-module/nested-default-type/package.json
++++ test/fixtures/es-modules/package-type-module/node_modules/dep/dep.js
++++ test/fixtures/es-modules/package-type-module/noext-esm
++++ test/fixtures/es-modules/package-type-module/package.json
++++ test/fixtures/es-modules/package-without-type/index.js
++++ test/fixtures/es-modules/package-without-type/package.json
++++ test/fixtures/es-modules/pjson-main/main.mjs
++++ test/fixtures/es-modules/pjson-main/package.json
++++ test/fixtures/es-modules/process-exit.mjs
++++ test/fixtures/es-modules/simple.wasm
++++ test/fixtures/es-modules/simple.wat
++++ test/fixtures/es-modules/symlink.mjs
++++ test/fixtures/es-modules/test-esm-double-encoding-native%20.mjs
++++ test/fixtures/es-modules/test-esm-ok.mjs
++++ test/fixtures/es-modules/wasm-dep.mjs
++++ test/fixtures/es-modules/wasm-modules.mjs
++++ test/fixtures/experimental.json
++++ test/fixtures/exports-function-with-param.js
++++ test/fixtures/external-repl-module.js
++++ test/fixtures/failcounter.js
++++ test/fixtures/failmustcall1.js
++++ test/fixtures/failmustcall2.js
++++ test/fixtures/file-to-read-with-bom.txt
++++ test/fixtures/file-to-read-without-bom.txt
++++ test/fixtures/fixture.ini
++++ test/fixtures/foo
++++ test/fixtures/guess-hash-seed.js
++++ test/fixtures/inspector-global-function.js
++++ test/fixtures/internal-modules/index.js
++++ test/fixtures/internal-modules/node_modules/internal/freelist.js
++++ test/fixtures/intrinsic-mutation.js
++++ test/fixtures/invalid.json
++++ test/fixtures/is-object.js
++++ test/fixtures/json-with-directory-name-module/module-stub.json
++++ test/fixtures/json-with-directory-name-module/module-stub/package.json
++++ test/fixtures/keys/.gitattributes
++++ test/fixtures/keys/I_AM_THE_WALRUS_sha256_signature_signedby_rsa_private_b.sha256
++++ test/fixtures/keys/Makefile
++++ test/fixtures/keys/agent1-cert.pem
++++ test/fixtures/keys/agent1-csr.pem
++++ test/fixtures/keys/agent1-key.pem
++++ test/fixtures/keys/agent1.cnf
++++ test/fixtures/keys/agent10-cert.pem
++++ test/fixtures/keys/agent10-csr.pem
++++ test/fixtures/keys/agent10-key.pem
++++ test/fixtures/keys/agent10.cnf
++++ test/fixtures/keys/agent2-cert.pem
++++ test/fixtures/keys/agent2-csr.pem
++++ test/fixtures/keys/agent2-key.pem
++++ test/fixtures/keys/agent2.cnf
++++ test/fixtures/keys/agent3-cert.pem
++++ test/fixtures/keys/agent3-csr.pem
++++ test/fixtures/keys/agent3-key.pem
++++ test/fixtures/keys/agent3.cnf
++++ test/fixtures/keys/agent4-cert.pem
++++ test/fixtures/keys/agent4-csr.pem
++++ test/fixtures/keys/agent4-key.pem
++++ test/fixtures/keys/agent4.cnf
++++ test/fixtures/keys/agent5-cert.pem
++++ test/fixtures/keys/agent5-csr.pem
++++ test/fixtures/keys/agent5-key.pem
++++ test/fixtures/keys/agent5.cnf
++++ test/fixtures/keys/agent6-cert.pem
++++ test/fixtures/keys/agent6-csr.pem
++++ test/fixtures/keys/agent6-key.pem
++++ test/fixtures/keys/agent6.cnf
++++ test/fixtures/keys/agent7-cert.pem
++++ test/fixtures/keys/agent7-csr.pem
++++ test/fixtures/keys/agent7-key.pem
++++ test/fixtures/keys/agent7.cnf
++++ test/fixtures/keys/agent8-cert.pem
++++ test/fixtures/keys/agent8-csr.pem
++++ test/fixtures/keys/agent8-key.pem
++++ test/fixtures/keys/agent8.cnf
++++ test/fixtures/keys/agent9-cert.pem
++++ test/fixtures/keys/agent9-csr.pem
++++ test/fixtures/keys/agent9-key.pem
++++ test/fixtures/keys/agent9.cnf
++++ test/fixtures/keys/ca1-cert.pem
++++ test/fixtures/keys/ca1-cert.srl
++++ test/fixtures/keys/ca1-key.pem
++++ test/fixtures/keys/ca1.cnf
++++ test/fixtures/keys/ca2-cert.pem
++++ test/fixtures/keys/ca2-cert.srl
++++ test/fixtures/keys/ca2-crl.pem
++++ test/fixtures/keys/ca2-database.txt
++++ test/fixtures/keys/ca2-database.txt.attr
++++ test/fixtures/keys/ca2-database.txt.attr.old
++++ test/fixtures/keys/ca2-key.pem
++++ test/fixtures/keys/ca2-serial
++++ test/fixtures/keys/ca2.cnf
++++ test/fixtures/keys/ca3-cert.pem
++++ test/fixtures/keys/ca3-cert.srl
++++ test/fixtures/keys/ca3-csr.pem
++++ test/fixtures/keys/ca3-key.pem
++++ test/fixtures/keys/ca3.cnf
++++ test/fixtures/keys/ca4-cert.pem
++++ test/fixtures/keys/ca4-cert.srl
++++ test/fixtures/keys/ca4-csr.pem
++++ test/fixtures/keys/ca4-key.pem
++++ test/fixtures/keys/ca4.cnf
++++ test/fixtures/keys/ca5-cert.pem
++++ test/fixtures/keys/ca5-cert.srl
++++ test/fixtures/keys/ca5-csr.pem
++++ test/fixtures/keys/ca5-key.pem
++++ test/fixtures/keys/ca5.cnf
++++ test/fixtures/keys/ca6-cert.pem
++++ test/fixtures/keys/ca6-cert.srl
++++ test/fixtures/keys/ca6-csr.pem
++++ test/fixtures/keys/ca6-key.pem
++++ test/fixtures/keys/ca6.cnf
++++ test/fixtures/keys/dh1024.pem
++++ test/fixtures/keys/dh2048.pem
++++ test/fixtures/keys/dh512.pem
++++ test/fixtures/keys/dherror.pem
++++ test/fixtures/keys/dns-cert1.cnf
++++ test/fixtures/keys/dsa1025.pem
++++ test/fixtures/keys/dsa_params.pem
++++ test/fixtures/keys/dsa_private.pem
++++ test/fixtures/keys/dsa_private_1025.pem
++++ test/fixtures/keys/dsa_private_encrypted.pem
++++ test/fixtures/keys/dsa_private_encrypted_1025.pem
++++ test/fixtures/keys/dsa_private_pkcs8.pem
++++ test/fixtures/keys/dsa_public.pem
++++ test/fixtures/keys/dsa_public_1025.pem
++++ test/fixtures/keys/ec-cert.pem
++++ test/fixtures/keys/ec-csr.pem
++++ test/fixtures/keys/ec-key.pem
++++ test/fixtures/keys/ec.cnf
++++ test/fixtures/keys/ec10-cert.pem
++++ test/fixtures/keys/ec10-csr.pem
++++ test/fixtures/keys/ec10-key.pem
++++ test/fixtures/keys/ed25519_private.pem
++++ test/fixtures/keys/ed25519_public.pem
++++ test/fixtures/keys/ed448_private.pem
++++ test/fixtures/keys/ed448_public.pem
++++ test/fixtures/keys/fake-cnnic-root-cert.pem
++++ test/fixtures/keys/fake-cnnic-root-cert.srl
++++ test/fixtures/keys/fake-cnnic-root-key.pem
++++ test/fixtures/keys/fake-cnnic-root.cnf
++++ test/fixtures/keys/fake-startcom-root-cert.pem
++++ test/fixtures/keys/fake-startcom-root-database.txt
++++ test/fixtures/keys/fake-startcom-root-database.txt.attr
++++ test/fixtures/keys/fake-startcom-root-database.txt.attr.old
++++ test/fixtures/keys/fake-startcom-root-database.txt.old
++++ test/fixtures/keys/fake-startcom-root-issued-certs/01.pem
++++ test/fixtures/keys/fake-startcom-root-issued-certs/02.pem
++++ test/fixtures/keys/fake-startcom-root-key.pem
++++ test/fixtures/keys/fake-startcom-root-serial
++++ test/fixtures/keys/fake-startcom-root-serial.old
++++ test/fixtures/keys/fake-startcom-root.cnf
++++ test/fixtures/keys/rsa_ca.crt
++++ test/fixtures/keys/rsa_cert.cnf
++++ test/fixtures/keys/rsa_cert.crt
++++ test/fixtures/keys/rsa_cert_foafssl_b.cnf
++++ test/fixtures/keys/rsa_cert_foafssl_b.crt
++++ test/fixtures/keys/rsa_cert_foafssl_b.exponent
++++ test/fixtures/keys/rsa_cert_foafssl_b.modulus
++++ test/fixtures/keys/rsa_private.pem
++++ test/fixtures/keys/rsa_private_1024.pem
++++ test/fixtures/keys/rsa_private_2048.pem
++++ test/fixtures/keys/rsa_private_4096.pem
++++ test/fixtures/keys/rsa_private_b.pem
++++ test/fixtures/keys/rsa_private_encrypted.pem
++++ test/fixtures/keys/rsa_private_pkcs8.pem
++++ test/fixtures/keys/rsa_private_pkcs8_bad.pem
++++ test/fixtures/keys/rsa_pss_private_2048.pem
++++ test/fixtures/keys/rsa_pss_private_2048_sha256_sha256_16.pem
++++ test/fixtures/keys/rsa_pss_private_2048_sha512_sha256_20.pem
++++ test/fixtures/keys/rsa_pss_public_2048.pem
++++ test/fixtures/keys/rsa_pss_public_2048_sha256_sha256_16.pem
++++ test/fixtures/keys/rsa_pss_public_2048_sha512_sha256_20.pem
++++ test/fixtures/keys/rsa_public.pem
++++ test/fixtures/keys/rsa_public_1024.pem
++++ test/fixtures/keys/rsa_public_2048.pem
++++ test/fixtures/keys/rsa_public_4096.pem
++++ test/fixtures/keys/rsa_public_b.pem
++++ test/fixtures/keys/rsa_public_sha1_signature_signedby_rsa_private.sha1
++++ test/fixtures/keys/rsa_public_sha1_signature_signedby_rsa_private_pkcs8.sha1
++++ test/fixtures/keys/rsa_spkac.spkac
++++ test/fixtures/keys/rsa_spkac_invalid.spkac
++++ test/fixtures/keys/x25519_private.pem
++++ test/fixtures/keys/x25519_public.pem
++++ test/fixtures/keys/x448_private.pem
++++ test/fixtures/keys/x448_public.pem
++++ test/fixtures/leakedGlobal.js
++++ test/fixtures/linux-perf.js
++++ test/fixtures/loop.js
++++ test/fixtures/module-extension-over-directory/inner.js
++++ test/fixtures/module-extension-over-directory/inner/package.json
++++ test/fixtures/module-load-order/file1
++++ test/fixtures/module-load-order/file1.node
++++ test/fixtures/module-load-order/file1.reg
++++ test/fixtures/module-load-order/file1.reg2
++++ test/fixtures/module-load-order/file2.node
++++ test/fixtures/module-load-order/file2.reg
++++ test/fixtures/module-load-order/file2.reg2
++++ test/fixtures/module-load-order/file2/index.node
++++ test/fixtures/module-load-order/file2/index.reg
++++ test/fixtures/module-load-order/file2/index.reg2
++++ test/fixtures/module-load-order/file3.node
++++ test/fixtures/module-load-order/file3.reg
++++ test/fixtures/module-load-order/file3.reg2
++++ test/fixtures/module-load-order/file3/index.node
++++ test/fixtures/module-load-order/file3/index.reg
++++ test/fixtures/module-load-order/file3/index.reg2
++++ test/fixtures/module-load-order/file4.reg
++++ test/fixtures/module-load-order/file4.reg2
++++ test/fixtures/module-load-order/file4/index.node
++++ test/fixtures/module-load-order/file4/index.reg
++++ test/fixtures/module-load-order/file4/index.reg2
++++ test/fixtures/module-load-order/file5.reg2
++++ test/fixtures/module-load-order/file5/index.node
++++ test/fixtures/module-load-order/file5/index.reg
++++ test/fixtures/module-load-order/file5/index.reg2
++++ test/fixtures/module-load-order/file6/index.node
++++ test/fixtures/module-load-order/file6/index.reg
++++ test/fixtures/module-load-order/file6/index.reg2
++++ test/fixtures/module-load-order/file7/index.node
++++ test/fixtures/module-load-order/file7/index.reg
++++ test/fixtures/module-load-order/file7/index.reg2
++++ test/fixtures/module-load-order/file8/index.reg
++++ test/fixtures/module-load-order/file8/index.reg2
++++ test/fixtures/module-load-order/file9/index.reg2
++++ test/fixtures/module-loading-error.node
++++ test/fixtures/module-require-symlink/foo.js
++++ test/fixtures/module-require-symlink/node_modules/bar/index.js
++++ test/fixtures/module-require-symlink/node_modules/dep1/index.js
++++ test/fixtures/module-require-symlink/node_modules/dep1/node_modules/bar/index.js
++++ test/fixtures/module-require-symlink/node_modules/dep2/index.js
++++ test/fixtures/module-require-symlink/symlinked.js
++++ test/fixtures/module-require/child/index.js
++++ test/fixtures/module-require/child/node_modules/target.js
++++ test/fixtures/module-require/not-found/node_modules/module1/package.json
++++ test/fixtures/module-require/not-found/trailingSlash.js
++++ test/fixtures/module-require/parent/index.js
++++ test/fixtures/module-require/parent/node_modules/target.js
++++ test/fixtures/module-require/relative/dot-slash.js
++++ test/fixtures/module-require/relative/dot.js
++++ test/fixtures/module-require/relative/index.js
++++ test/fixtures/monkey-patch-run-main.js
++++ test/fixtures/no-wrapper.js
++++ test/fixtures/node_modules/@nodejsscope/index.js
++++ test/fixtures/node_modules/pkgexports-main/main.cjs
++++ test/fixtures/node_modules/pkgexports-main/module.mjs
++++ test/fixtures/node_modules/pkgexports-main/package.json
++++ test/fixtures/node_modules/pkgexports-number/hidden.js
++++ test/fixtures/node_modules/pkgexports-number/package.json
++++ test/fixtures/node_modules/pkgexports-numeric/package.json
++++ test/fixtures/node_modules/pkgexports-sugar-fail/main.js
++++ test/fixtures/node_modules/pkgexports-sugar-fail/not-exported.js
++++ test/fixtures/node_modules/pkgexports-sugar-fail/package.json
++++ test/fixtures/node_modules/pkgexports-sugar/main.js
++++ test/fixtures/node_modules/pkgexports-sugar/not-exported.js
++++ test/fixtures/node_modules/pkgexports-sugar/package.json
++++ test/fixtures/node_modules/pkgexports-sugar2/main.js
++++ test/fixtures/node_modules/pkgexports-sugar2/not-exported.js
++++ test/fixtures/node_modules/pkgexports-sugar2/package.json
++++ test/fixtures/node_modules/pkgexports/asdf.js
++++ test/fixtures/node_modules/pkgexports/lib/hole.js
++++ test/fixtures/node_modules/pkgexports/node_modules/internalpkg/x.js
++++ test/fixtures/node_modules/pkgexports/not-exported.js
++++ test/fixtures/node_modules/pkgexports/package.json
++++ test/fixtures/node_modules/pkgexports/resolve-self.js
++++ test/fixtures/node_modules/pkgexports/resolve-self.mjs
++++ test/fixtures/node_modules/pkgexports/sp ce.js
++++ test/fixtures/old-repl-history-file-faulty.json
++++ test/fixtures/old-repl-history-file-obj.json
++++ test/fixtures/openssl_fips_disabled.cnf
++++ test/fixtures/openssl_fips_enabled.cnf
++++ test/fixtures/order_of_end_tags_5873.md
++++ test/fixtures/outside.txt
++++ test/fixtures/overwrite-config-preload-module.js
++++ test/fixtures/packages/index/index.js
++++ test/fixtures/packages/index/package.json
++++ test/fixtures/packages/main-index/package.json
++++ test/fixtures/packages/main/package.json
++++ test/fixtures/packages/missing-main-no-index/package.json
++++ test/fixtures/packages/missing-main-no-index/stray.js
++++ test/fixtures/packages/missing-main/package.json
++++ test/fixtures/packages/unparseable/package.json
++++ test/fixtures/parent-process-nonpersistent-fork.js
++++ test/fixtures/parent-process-nonpersistent.js
++++ test/fixtures/path-resolve.js
++++ test/fixtures/person-large.jpg
++++ test/fixtures/person.jpg
++++ test/fixtures/pkgexports.mjs
++++ test/fixtures/policy/dep-policy.json
++++ test/fixtures/policy/dep.js
++++ test/fixtures/policy/dependencies/dependencies-empty-policy.json
++++ test/fixtures/policy/dependencies/dependencies-missing-policy.json
++++ test/fixtures/policy/dependencies/dependencies-redirect-builtin-policy.json
++++ test/fixtures/policy/dependencies/dependencies-redirect-policy.json
++++ test/fixtures/policy/dependencies/dependencies-redirect-unknown-builtin-policy.json
++++ test/fixtures/policy/dependencies/dependencies-wildcard-policy.json
++++ test/fixtures/policy/parent.js
++++ test/fixtures/print A.js
++++ test/fixtures/print-intrinsic-mutation-name.js
++++ test/fixtures/printA.js
++++ test/fixtures/printB.js
++++ test/fixtures/printC.js
++++ test/fixtures/process-exit-code-cases.js
++++ test/fixtures/pseudo-multimember-gzip.gz
++++ test/fixtures/pseudo-multimember-gzip.z
++++ test/fixtures/pss-vectors.json
++++ test/fixtures/readfile_pipe_test.txt
++++ test/fixtures/registerExt.hello.world
++++ test/fixtures/registerExt.test
++++ test/fixtures/registerExt2.test
++++ test/fixtures/repl-load-multiline.js
++++ test/fixtures/repl-pretty-stack.js
++++ test/fixtures/repl-tab-completion-nested-repls.js
++++ test/fixtures/require-bin/bin/req.js
++++ test/fixtures/require-bin/lib/req.js
++++ test/fixtures/require-bin/package.json
++++ test/fixtures/require-resolve.js
++++ test/fixtures/resolve-paths/default/verify-paths.js
++++ test/fixtures/rsa-oaep-test-vectors.js
++++ test/fixtures/sample.png
++++ test/fixtures/sample_document.md
++++ test/fixtures/shared-memory.wasm
++++ test/fixtures/shared-memory.wat
++++ test/fixtures/simple.wasm
++++ test/fixtures/simple.wat
++++ test/fixtures/source-map/babel-esm-original.mjs
++++ test/fixtures/source-map/babel-esm.mjs
++++ test/fixtures/source-map/babel-throw-original.js
++++ test/fixtures/source-map/babel-throw.js
++++ test/fixtures/source-map/basic.js
++++ test/fixtures/source-map/disk-relative-path.js
++++ test/fixtures/source-map/disk.js
++++ test/fixtures/source-map/disk.map
++++ test/fixtures/source-map/emptyStackError.js
++++ test/fixtures/source-map/esm-basic.mjs
++++ test/fixtures/source-map/esm-dep.mjs
++++ test/fixtures/source-map/exit-1.js
++++ test/fixtures/source-map/inline-base64-json-error.js
++++ test/fixtures/source-map/inline-base64-type-error.js
++++ test/fixtures/source-map/inline-base64.js
++++ test/fixtures/source-map/istanbul-throw-original.js
++++ test/fixtures/source-map/istanbul-throw.js
++++ test/fixtures/source-map/sigint.js
++++ test/fixtures/source-map/typescript-throw.js
++++ test/fixtures/source-map/typescript-throw.js.map
++++ test/fixtures/source-map/typescript-throw.ts
++++ test/fixtures/source-map/uglify-throw-original.js
++++ test/fixtures/source-map/uglify-throw.js
++++ test/fixtures/spawn_closed_stdio.py
++++ test/fixtures/syntax/bad_syntax.js
++++ test/fixtures/syntax/bad_syntax.mjs
++++ test/fixtures/syntax/bad_syntax_shebang.js
++++ test/fixtures/syntax/good_syntax.js
++++ test/fixtures/syntax/good_syntax_shebang.js
++++ test/fixtures/syntax/illegal_if_not_wrapped.js
++++ test/fixtures/test-error-first-line-offset.js
++++ test/fixtures/test-fs-stat-sync-overflow.js
++++ test/fixtures/test-module-loading-globalpaths/home-pkg-in-both/.node_libraries/foo.js
++++ test/fixtures/test-module-loading-globalpaths/home-pkg-in-both/.node_modules/foo.js
++++ test/fixtures/test-module-loading-globalpaths/home-pkg-in-node_libraries/.node_libraries/foo.js
++++ test/fixtures/test-module-loading-globalpaths/home-pkg-in-node_modules/.node_modules/foo.js
++++ test/fixtures/test-module-loading-globalpaths/local-pkg/node_modules/foo.js
++++ test/fixtures/test-module-loading-globalpaths/local-pkg/test.js
++++ test/fixtures/test-module-loading-globalpaths/node_path/foo.js
++++ test/fixtures/test-repl-tab-completion/.hiddenfiles
++++ test/fixtures/test-repl-tab-completion/hellorandom.txt
++++ test/fixtures/test-repl-tab-completion/helloworld.js
++++ test/fixtures/test-resolution-inspect-brk-resolver.js
++++ test/fixtures/throws_error5.js
++++ test/fixtures/throws_error6.js
++++ test/fixtures/throws_error7.js
++++ test/fixtures/tls-connect.js
++++ test/fixtures/tls-session-ticket.txt
++++ test/fixtures/uncaught-exceptions/callbackify1.js
++++ test/fixtures/uncaught-exceptions/callbackify2.js
++++ test/fixtures/uncaught-exceptions/domain.js
++++ test/fixtures/uncaught-exceptions/global.js
++++ test/fixtures/uncaught-exceptions/parse-error-mod.js
++++ test/fixtures/uncaught-exceptions/parse-error.js
++++ test/fixtures/uncaught-exceptions/timeout.js
++++ test/fixtures/url-setter-tests-additional.js
++++ test/fixtures/url-tests-additional.js
++++ test/fixtures/utf8-bom-shebang-shebang.js
++++ test/fixtures/utf8-bom-shebang.js
++++ test/fixtures/utf8-bom.js
++++ test/fixtures/utf8-bom.json
++++ test/fixtures/utf8-shebang-bom.js
++++ test/fixtures/v8-coverage/async-hooks.js
++++ test/fixtures/v8-coverage/basic.js
++++ test/fixtures/v8-coverage/exit-1.js
++++ test/fixtures/v8-coverage/sigint.js
++++ test/fixtures/v8-coverage/spawn-subprocess-no-cov.js
++++ test/fixtures/v8-coverage/spawn-subprocess.js
++++ test/fixtures/v8-coverage/subprocess.js
++++ test/fixtures/v8-coverage/throw.js
++++ test/fixtures/v8-coverage/worker.js
++++ test/fixtures/warnings.js
++++ test/fixtures/wasi/input.txt
++++ test/fixtures/worker-data.mjs
++++ test/fixtures/worker-from-argv.js
++++ test/fixtures/worker-script.mjs
++++ test/fixtures/workload/allocation-exit.js
++++ test/fixtures/workload/allocation-sigint.js
++++ test/fixtures/workload/allocation-worker-argv.js
++++ test/fixtures/workload/allocation-worker.js
++++ test/fixtures/workload/allocation.js
++++ test/fixtures/workload/fibonacci-exit.js
++++ test/fixtures/workload/fibonacci-sigint.js
++++ test/fixtures/workload/fibonacci-worker-argv.js
++++ test/fixtures/workload/fibonacci-worker.js
++++ test/fixtures/workload/fibonacci.js
++++ test/fixtures/wpt/.gitignore
++++ test/fixtures/wpt/README.md
++++ test/fixtures/wpt/console/META.yml
++++ test/fixtures/wpt/console/console-count-logging-manual.html
++++ test/fixtures/wpt/console/console-countReset-logging-manual.html
++++ test/fixtures/wpt/console/console-is-a-namespace.any.js
++++ test/fixtures/wpt/console/console-label-conversion.any.js
++++ test/fixtures/wpt/console/console-number-format-specifiers-symbol-manual.html
++++ test/fixtures/wpt/console/console-string-format-specifier-symbol-manual.html
++++ test/fixtures/wpt/console/console-tests-historical.any.js
++++ test/fixtures/wpt/console/console-timing-logging-manual.html
++++ test/fixtures/wpt/console/idlharness.any.js
++++ test/fixtures/wpt/encoding/META.yml
++++ test/fixtures/wpt/encoding/api-basics.any.js
++++ test/fixtures/wpt/encoding/api-invalid-label.any.js
++++ test/fixtures/wpt/encoding/api-replacement-encodings.any.js
++++ test/fixtures/wpt/encoding/api-surrogates-utf8.any.js
++++ test/fixtures/wpt/encoding/big5-encoder.html
++++ test/fixtures/wpt/encoding/encodeInto.any.js
++++ test/fixtures/wpt/encoding/eof-shift_jis-ref.html
++++ test/fixtures/wpt/encoding/eof-shift_jis.html
++++ test/fixtures/wpt/encoding/eof-utf-8-one-ref.html
++++ test/fixtures/wpt/encoding/eof-utf-8-one.html
++++ test/fixtures/wpt/encoding/eof-utf-8-three-ref.html
++++ test/fixtures/wpt/encoding/eof-utf-8-three.html
++++ test/fixtures/wpt/encoding/eof-utf-8-two-ref.html
++++ test/fixtures/wpt/encoding/eof-utf-8-two.html
++++ test/fixtures/wpt/encoding/gb18030-encoder.html
++++ test/fixtures/wpt/encoding/gbk-encoder.html
++++ test/fixtures/wpt/encoding/idlharness.any.js
++++ test/fixtures/wpt/encoding/iso-2022-jp-decoder.any.js
++++ test/fixtures/wpt/encoding/iso-2022-jp-encoder.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-decode-cseucpkdfmtjapanese.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-decode-errors.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-decode-x-euc-jp.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-decode.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-decoder.js
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-form-cseucpkdfmtjapanese.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-form-cseucpkdfmtjapanese.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-form-errors-han.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-form-errors-han.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-form-errors-hangul.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-form-errors-hangul.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-form-errors-misc.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-form-errors-misc.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-form-x-euc-jp.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-form-x-euc-jp.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-form.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-form.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-href-errors-han.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-href-errors-han.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-href-errors-hangul.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-href-errors-hangul.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-href-errors-misc.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-href-errors-misc.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-href.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encode-href.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp-encoder.js
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp_chars-cseucpkdfmtjapanese.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp_chars-cseucpkdfmtjapanese.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp_chars-x-euc-jp.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp_chars-x-euc-jp.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp_chars.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp_chars.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp_errors.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/eucjp_errors.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/jis0208_index.js
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/euc-jp/jis0212_index.js
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-decode-csiso2022jp.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-decode-errors.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-decode.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-decoder.js
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-form-csiso2022jp.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-form-csiso2022jp.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-form-errors-han.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-form-errors-han.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-form-errors-hangul.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-form-errors-hangul.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-form-errors-misc.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-form-errors-misc.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-form-errors-stateful.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-form.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-form.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-href-errors-han.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-href-errors-han.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-href-errors-hangul.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-href-errors-hangul.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-href-errors-misc.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-href-errors-misc.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-href.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encode-href.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp-encoder.js
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp_chars-csiso2022jp.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp_chars-csiso2022jp.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp_chars.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp_chars.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp_errors.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/iso2022jp_errors.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/iso-2022-jp/jis0208_index.js
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/jis0208_index.js
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-decode-csshiftjis.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-decode-errors.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-decode-ms932.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-decode-ms_kanji.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-decode-shift-jis.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-decode-sjis.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-decode-windows-31j.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-decode-x-sjis.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-decode.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-decoder.js
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-csshiftjis.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-csshiftjis.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-errors-han.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-errors-han.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-errors-hangul.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-errors-hangul.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-errors-misc.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-errors-misc.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-ms932.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-ms932.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-ms_kanji.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-ms_kanji.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-shift-jis.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-shift-jis.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-sjis.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-sjis.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-windows-31j.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-windows-31j.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-x-sjis.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-x-sjis.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-form.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-han.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-hangul.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-hangul.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-misc.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href-errors-misc.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encode-href.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis-encoder.js
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_chars-csshiftjis.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_chars-csshiftjis.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_chars-ms932.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_chars-ms932.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_chars-ms_kanji.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_chars-ms_kanji.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_chars-shift-jis.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_chars-shift-jis.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_chars-sjis.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_chars-sjis.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_chars-windows-31j.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_chars-windows-31j.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_chars-x-sjis.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_chars-x-sjis.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_chars.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_chars.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_errors.html
++++ test/fixtures/wpt/encoding/legacy-mb-japanese/shift_jis/sjis_errors.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-decode-cseuckr.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-decode-csksc56011987.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-decode-errors.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-decode-iso-ir-149.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-decode-korean.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-decode-ks_c_5601-1987.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-decode-ks_c_5601-1989.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-decode-ksc5601.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-decode-ksc_5601.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-decode-windows-949.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-decode.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-decoder.js
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-cseuckr.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-cseuckr.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-csksc56011987.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-csksc56011987.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-errors-han.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-errors-han.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-errors-misc.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-errors-misc.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-iso-ir-149.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-iso-ir-149.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-korean.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-korean.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-ks_c_5601-1987.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-ks_c_5601-1987.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-ks_c_5601-1989.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-ks_c_5601-1989.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-ksc5601.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-ksc5601.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-ksc_5601.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-ksc_5601.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-windows-949.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form-windows-949.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-form.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-href-errors-han.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-href-errors-han.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-href-errors-misc.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-href-errors-misc.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-href.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encode-href.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr-encoder.js
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-cseuckr.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-cseuckr.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-csksc56011987.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-csksc56011987.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-iso-ir-149.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-iso-ir-149.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-korean.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-korean.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-ks_c_5601-1987.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-ks_c_5601-1987.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-ks_c_5601-1989.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-ks_c_5601-1989.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-ksc5601.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-ksc5601.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-ksc_5601.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-ksc_5601.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-windows-949.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars-windows-949.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_chars.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_errors.html
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_errors.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-korean/euc-kr/euckr_index.js
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-decode-big5-hkscs.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-decode-cn-big5.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-decode-csbig5.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-decode-errors.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-decode-extra.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-decode-x-x-big5.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-decode.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-decoder.js
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-enc-ascii.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-enc-ascii.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-big5-hkscs.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-big5-hkscs.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-cn-big5.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-cn-big5.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-csbig5.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-csbig5.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-errors-extBa.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-errors-extBa.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-errors-extBb.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-errors-extBb.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-errors-han.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-errors-han.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-errors-hangul.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-errors-hangul.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-errors-misc.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-errors-misc.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-errors-pua.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-x-x-big5.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form-x-x-big5.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-form.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-href-errors-han.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-href-errors-han.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-href-errors-hangul.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-href-errors-hangul.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-href-errors-misc.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-href-errors-misc.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-href.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encode-href.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5-encoder.js
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5_chars-big5-hkscs.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5_chars-big5-hkscs.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5_chars-cn-big5.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5_chars-cn-big5.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5_chars-csbig5.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5_chars-csbig5.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5_chars-x-x-big5.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5_chars-x-x-big5.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5_chars.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5_chars.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5_chars_extra.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5_chars_extra.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5_errors.html
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5_errors.html.headers
++++ test/fixtures/wpt/encoding/legacy-mb-tchinese/big5/big5_index.js
++++ test/fixtures/wpt/encoding/remove-only-one-bom.html
++++ test/fixtures/wpt/encoding/replacement-encodings.any.js
++++ test/fixtures/wpt/encoding/resources/decode-common.js
++++ test/fixtures/wpt/encoding/resources/decoding-helpers.js
++++ test/fixtures/wpt/encoding/resources/encode-form-common.js
++++ test/fixtures/wpt/encoding/resources/encode-href-common.js
++++ test/fixtures/wpt/encoding/resources/encodings.js
++++ test/fixtures/wpt/encoding/resources/ranges.js
++++ test/fixtures/wpt/encoding/resources/two-boms-utf-16be.html
++++ test/fixtures/wpt/encoding/resources/two-boms-utf-16le.html
++++ test/fixtures/wpt/encoding/resources/two-boms-utf-8.html
++++ test/fixtures/wpt/encoding/resources/utf-32-big-endian-bom.html
++++ test/fixtures/wpt/encoding/resources/utf-32-big-endian-bom.xml
++++ test/fixtures/wpt/encoding/resources/utf-32-big-endian-nobom.html
++++ test/fixtures/wpt/encoding/resources/utf-32-big-endian-nobom.xml
++++ test/fixtures/wpt/encoding/resources/utf-32-little-endian-bom.html
++++ test/fixtures/wpt/encoding/resources/utf-32-little-endian-bom.xml
++++ test/fixtures/wpt/encoding/resources/utf-32-little-endian-nobom.html
++++ test/fixtures/wpt/encoding/resources/utf-32-little-endian-nobom.xml
++++ test/fixtures/wpt/encoding/single-byte-decoder.html
++++ test/fixtures/wpt/encoding/sniffing.html
++++ test/fixtures/wpt/encoding/streams/backpressure.any.js
++++ test/fixtures/wpt/encoding/streams/decode-attributes.any.js
++++ test/fixtures/wpt/encoding/streams/decode-bad-chunks.any.js
++++ test/fixtures/wpt/encoding/streams/decode-ignore-bom.any.js
++++ test/fixtures/wpt/encoding/streams/decode-incomplete-input.any.js
++++ test/fixtures/wpt/encoding/streams/decode-non-utf8.any.js
++++ test/fixtures/wpt/encoding/streams/decode-split-character.any.js
++++ test/fixtures/wpt/encoding/streams/decode-utf8.any.js
++++ test/fixtures/wpt/encoding/streams/encode-bad-chunks.any.js
++++ test/fixtures/wpt/encoding/streams/encode-utf8.any.js
++++ test/fixtures/wpt/encoding/streams/readable-writable-properties.any.js
++++ test/fixtures/wpt/encoding/streams/realms.window.js
++++ test/fixtures/wpt/encoding/streams/resources/readable-stream-from-array.js
++++ test/fixtures/wpt/encoding/streams/resources/readable-stream-to-array.js
++++ test/fixtures/wpt/encoding/textdecoder-byte-order-marks.any.js
++++ test/fixtures/wpt/encoding/textdecoder-copy.any.js
++++ test/fixtures/wpt/encoding/textdecoder-fatal-single-byte.any.js
++++ test/fixtures/wpt/encoding/textdecoder-fatal-streaming.any.js
++++ test/fixtures/wpt/encoding/textdecoder-fatal.any.js
++++ test/fixtures/wpt/encoding/textdecoder-ignorebom.any.js
++++ test/fixtures/wpt/encoding/textdecoder-labels.any.js
++++ test/fixtures/wpt/encoding/textdecoder-streaming.any.js
++++ test/fixtures/wpt/encoding/textdecoder-utf16-surrogates.any.js
++++ test/fixtures/wpt/encoding/textencoder-constructor-non-utf.any.js
++++ test/fixtures/wpt/encoding/textencoder-utf16-surrogates.any.js
++++ test/fixtures/wpt/encoding/unsupported-encodings.any.js
++++ test/fixtures/wpt/encoding/utf-32-from-win1252.html
++++ test/fixtures/wpt/encoding/utf-32.html
++++ test/fixtures/wpt/html/webappapis/microtask-queuing/queue-microtask-exceptions.any.js
++++ test/fixtures/wpt/html/webappapis/microtask-queuing/queue-microtask.any.js
++++ test/fixtures/wpt/html/webappapis/microtask-queuing/queue-microtask.window.js
++++ test/fixtures/wpt/html/webappapis/timers/evil-spec-example.html
++++ test/fixtures/wpt/html/webappapis/timers/missing-timeout-setinterval.any.js
++++ test/fixtures/wpt/html/webappapis/timers/negative-setinterval.html
++++ test/fixtures/wpt/html/webappapis/timers/negative-settimeout.html
++++ test/fixtures/wpt/html/webappapis/timers/type-long-setinterval.html
++++ test/fixtures/wpt/html/webappapis/timers/type-long-settimeout.html
++++ test/fixtures/wpt/interfaces/console.idl
++++ test/fixtures/wpt/interfaces/encoding.idl
++++ test/fixtures/wpt/interfaces/url.idl
++++ test/fixtures/wpt/resources/.gitignore
++++ test/fixtures/wpt/resources/.htaccess
++++ test/fixtures/wpt/resources/META.yml
++++ test/fixtures/wpt/resources/check-layout-th.js
++++ test/fixtures/wpt/resources/idlharness.js
++++ test/fixtures/wpt/resources/idlharness.js.headers
++++ test/fixtures/wpt/resources/readme.md
++++ test/fixtures/wpt/resources/sriharness.js
++++ test/fixtures/wpt/resources/testdriver-actions.js
++++ test/fixtures/wpt/resources/testdriver-vendor.js.headers
++++ test/fixtures/wpt/resources/testdriver.js
++++ test/fixtures/wpt/resources/testdriver.js.headers
++++ test/fixtures/wpt/resources/testharness.css.headers
++++ test/fixtures/wpt/resources/testharness.js
++++ test/fixtures/wpt/resources/testharness.js.headers
++++ test/fixtures/wpt/resources/testharnessreport.js
++++ test/fixtures/wpt/resources/testharnessreport.js.headers
++++ test/fixtures/wpt/resources/webidl2/.gitignore
++++ test/fixtures/wpt/resources/webidl2/.travis.yml
++++ test/fixtures/wpt/resources/webidl2/CHANGELOG.md
++++ test/fixtures/wpt/resources/webidl2/README.md
++++ test/fixtures/wpt/resources/webidl2/checker/index.html
++++ test/fixtures/wpt/resources/webidl2/coverage.html
++++ test/fixtures/wpt/resources/webidl2/index.js
++++ test/fixtures/wpt/resources/webidl2/lib/webidl2.js
++++ test/fixtures/wpt/resources/webidl2/lib/webidl2.js.headers
++++ test/fixtures/wpt/resources/webidl2/lib/writer.js
++++ test/fixtures/wpt/resources/webidl2/package-lock.json
++++ test/fixtures/wpt/resources/webidl2/package.json
++++ test/fixtures/wpt/url/META.yml
++++ test/fixtures/wpt/url/README.md
++++ test/fixtures/wpt/url/a-element-origin-xhtml.xhtml
++++ test/fixtures/wpt/url/a-element-origin.html
++++ test/fixtures/wpt/url/a-element-xhtml.xhtml
++++ test/fixtures/wpt/url/a-element.html
++++ test/fixtures/wpt/url/data-uri-fragment.html
++++ test/fixtures/wpt/url/failure.html
++++ test/fixtures/wpt/url/historical.any.js
++++ test/fixtures/wpt/url/idlharness.any.js
++++ test/fixtures/wpt/url/resources/a-element-origin.js
++++ test/fixtures/wpt/url/resources/a-element.js
++++ test/fixtures/wpt/url/resources/setters_tests.json
++++ test/fixtures/wpt/url/resources/toascii.json
++++ test/fixtures/wpt/url/toascii.window.js
++++ test/fixtures/wpt/url/url-constructor.html
++++ test/fixtures/wpt/url/url-origin.html
++++ test/fixtures/wpt/url/url-searchparams.any.js
++++ test/fixtures/wpt/url/url-setters.html
++++ test/fixtures/wpt/url/url-tojson.any.js
++++ test/fixtures/wpt/url/urlencoded-parser.any.js
++++ test/fixtures/wpt/url/urlsearchparams-append.any.js
++++ test/fixtures/wpt/url/urlsearchparams-constructor.any.js
++++ test/fixtures/wpt/url/urlsearchparams-delete.any.js
++++ test/fixtures/wpt/url/urlsearchparams-foreach.any.js
++++ test/fixtures/wpt/url/urlsearchparams-get.any.js
++++ test/fixtures/wpt/url/urlsearchparams-getall.any.js
++++ test/fixtures/wpt/url/urlsearchparams-has.any.js
++++ test/fixtures/wpt/url/urlsearchparams-set.any.js
++++ test/fixtures/wpt/url/urlsearchparams-sort.any.js
++++ test/fixtures/wpt/url/urlsearchparams-stringifier.any.js
++++ test/fixtures/wpt/versions.json
++++ test/fixtures/x.txt
++++ test/fixtures/x1024.txt
++++ test/internet/test-dgram-connect.js
++++ test/internet/test-dgram-membership.js
++++ test/internet/test-dgram-multicast-set-interface-lo.js
++++ test/internet/test-dgram-multicast-ssm-multi-process.js
++++ test/internet/test-dgram-multicast-ssmv6-multi-process.js
++++ test/internet/test-dns-any.js
++++ test/internet/test-dns-cares-domains.js
++++ test/internet/test-dns-idna2008.js
++++ test/internet/test-dns-ipv4.js
++++ test/internet/test-dns-ipv6.js
++++ test/internet/test-dns-lookup.js
++++ test/internet/test-dns-promises-resolve.js
++++ test/internet/test-dns-setserver-in-callback-of-resolve4.js
++++ test/internet/test-dns-txt-sigsegv.js
++++ test/internet/test-inspector-help-page.js
++++ test/internet/test-tls-add-ca-cert.js
++++ test/internet/test-tls-connnect-melissadata.js
++++ test/internet/test-trace-events-dns.js
++++ test/internet/test-uv-threadpool-schedule.js
++++ test/internet/testcfg.py
++++ test/js-native-api/.gitignore
++++ test/js-native-api/2_function_arguments/binding.c
++++ test/js-native-api/2_function_arguments/binding.gyp
++++ test/js-native-api/2_function_arguments/test.js
++++ test/js-native-api/3_callbacks/binding.c
++++ test/js-native-api/3_callbacks/binding.gyp
++++ test/js-native-api/3_callbacks/test.js
++++ test/js-native-api/4_object_factory/binding.c
++++ test/js-native-api/4_object_factory/binding.gyp
++++ test/js-native-api/4_object_factory/test.js
++++ test/js-native-api/5_function_factory/binding.c
++++ test/js-native-api/5_function_factory/binding.gyp
++++ test/js-native-api/5_function_factory/test.js
++++ test/js-native-api/6_object_wrap/binding.gyp
++++ test/js-native-api/6_object_wrap/myobject.cc
++++ test/js-native-api/6_object_wrap/myobject.h
++++ test/js-native-api/6_object_wrap/test.js
++++ test/js-native-api/7_factory_wrap/binding.cc
++++ test/js-native-api/7_factory_wrap/binding.gyp
++++ test/js-native-api/7_factory_wrap/myobject.cc
++++ test/js-native-api/7_factory_wrap/myobject.h
++++ test/js-native-api/7_factory_wrap/test.js
++++ test/js-native-api/8_passing_wrapped/binding.cc
++++ test/js-native-api/8_passing_wrapped/binding.gyp
++++ test/js-native-api/8_passing_wrapped/myobject.cc
++++ test/js-native-api/8_passing_wrapped/myobject.h
++++ test/js-native-api/8_passing_wrapped/test.js
++++ test/js-native-api/common.c
++++ test/js-native-api/common.h
++++ test/js-native-api/entry_point.c
++++ test/js-native-api/test_array/binding.gyp
++++ test/js-native-api/test_array/test.js
++++ test/js-native-api/test_array/test_array.c
++++ test/js-native-api/test_bigint/binding.gyp
++++ test/js-native-api/test_bigint/test.js
++++ test/js-native-api/test_bigint/test_bigint.c
++++ test/js-native-api/test_constructor/binding.gyp
++++ test/js-native-api/test_constructor/test.js
++++ test/js-native-api/test_constructor/test2.js
++++ test/js-native-api/test_constructor/test_constructor.c
++++ test/js-native-api/test_conversions/binding.gyp
++++ test/js-native-api/test_conversions/test.js
++++ test/js-native-api/test_conversions/test_conversions.c
++++ test/js-native-api/test_dataview/binding.gyp
++++ test/js-native-api/test_dataview/test.js
++++ test/js-native-api/test_dataview/test_dataview.c
++++ test/js-native-api/test_date/binding.gyp
++++ test/js-native-api/test_date/test.js
++++ test/js-native-api/test_date/test_date.c
++++ test/js-native-api/test_error/binding.gyp
++++ test/js-native-api/test_error/test.js
++++ test/js-native-api/test_error/test_error.c
++++ test/js-native-api/test_exception/binding.gyp
++++ test/js-native-api/test_exception/test.js
++++ test/js-native-api/test_exception/test_exception.c
++++ test/js-native-api/test_function/binding.gyp
++++ test/js-native-api/test_function/test.js
++++ test/js-native-api/test_function/test_function.c
++++ test/js-native-api/test_general/binding.gyp
++++ test/js-native-api/test_general/test.js
++++ test/js-native-api/test_general/testEnvCleanup.js
++++ test/js-native-api/test_general/testFinalizer.js
++++ test/js-native-api/test_general/testGlobals.js
++++ test/js-native-api/test_general/testInstanceOf.js
++++ test/js-native-api/test_general/testNapiRun.js
++++ test/js-native-api/test_general/testNapiStatus.js
++++ test/js-native-api/test_general/test_general.c
++++ test/js-native-api/test_handle_scope/binding.gyp
++++ test/js-native-api/test_handle_scope/test.js
++++ test/js-native-api/test_handle_scope/test_handle_scope.c
++++ test/js-native-api/test_instance_data/binding.gyp
++++ test/js-native-api/test_instance_data/test.js
++++ test/js-native-api/test_instance_data/test_instance_data.c
++++ test/js-native-api/test_new_target/binding.c
++++ test/js-native-api/test_new_target/binding.gyp
++++ test/js-native-api/test_new_target/test.js
++++ test/js-native-api/test_number/binding.gyp
++++ test/js-native-api/test_number/test.js
++++ test/js-native-api/test_number/test_number.c
++++ test/js-native-api/test_object/binding.gyp
++++ test/js-native-api/test_object/test.js
++++ test/js-native-api/test_object/test_object.c
++++ test/js-native-api/test_promise/binding.gyp
++++ test/js-native-api/test_promise/test.js
++++ test/js-native-api/test_promise/test_promise.c
++++ test/js-native-api/test_properties/binding.gyp
++++ test/js-native-api/test_properties/test.js
++++ test/js-native-api/test_properties/test_properties.c
++++ test/js-native-api/test_reference/binding.gyp
++++ test/js-native-api/test_reference/test.js
++++ test/js-native-api/test_reference/test_reference.c
++++ test/js-native-api/test_string/binding.gyp
++++ test/js-native-api/test_string/test_string.c
++++ test/js-native-api/test_symbol/binding.gyp
++++ test/js-native-api/test_symbol/test1.js
++++ test/js-native-api/test_symbol/test2.js
++++ test/js-native-api/test_symbol/test3.js
++++ test/js-native-api/test_symbol/test_symbol.c
++++ test/js-native-api/test_typedarray/binding.gyp
++++ test/js-native-api/test_typedarray/test.js
++++ test/js-native-api/test_typedarray/test_typedarray.c
++++ test/js-native-api/testcfg.py
++++ test/known_issues/known_issues.status
++++ test/known_issues/test-cwd-enoent-file.js
++++ test/known_issues/test-dgram-bind-shared-ports-after-port-0.js
++++ test/known_issues/test-fs-writeFileSync-invalid-windows.js
++++ test/known_issues/test-inspector-cluster-port-clash.js
++++ test/known_issues/test-repl-require-context.js
++++ test/known_issues/test-stdin-is-always-net.socket.js
++++ test/known_issues/test-url-parse-conformance.js
++++ test/known_issues/test-vm-ownkeys.js
++++ test/known_issues/test-vm-ownpropertynames.js
++++ test/known_issues/test-vm-ownpropertysymbols.js
++++ test/known_issues/test-vm-timeout-escape-nexttick.js
++++ test/known_issues/test-vm-timeout-escape-promise.js
++++ test/known_issues/test-vm-timeout-escape-queuemicrotask.js
++++ test/known_issues/testcfg.py
++++ test/message/2100bytes.out
++++ test/message/assert_throws_stack.js
++++ test/message/assert_throws_stack.out
++++ test/message/async_error_eval_cjs.js
++++ test/message/async_error_eval_cjs.out
++++ test/message/async_error_eval_esm.js
++++ test/message/async_error_eval_esm.out
++++ test/message/async_error_microtask_main.js
++++ test/message/async_error_microtask_main.out
++++ test/message/async_error_nexttick_main.js
++++ test/message/async_error_nexttick_main.out
++++ test/message/async_error_sync_esm.mjs
++++ test/message/async_error_sync_esm.out
++++ test/message/async_error_sync_main.js
++++ test/message/async_error_sync_main.out
++++ test/message/console.js
++++ test/message/console.out
++++ test/message/console_low_stack_space.js
++++ test/message/console_low_stack_space.out
++++ test/message/core_line_numbers.js
++++ test/message/core_line_numbers.out
++++ test/message/error_exit.out
++++ test/message/esm_display_syntax_error.mjs
++++ test/message/esm_display_syntax_error.out
++++ test/message/esm_display_syntax_error_import.mjs
++++ test/message/esm_display_syntax_error_import.out
++++ test/message/esm_display_syntax_error_import_module.mjs
++++ test/message/esm_display_syntax_error_import_module.out
++++ test/message/esm_display_syntax_error_module.mjs
++++ test/message/esm_display_syntax_error_module.out
++++ test/message/esm_loader_not_found.mjs
++++ test/message/esm_loader_not_found.out
++++ test/message/esm_loader_syntax_error.mjs
++++ test/message/esm_loader_syntax_error.out
++++ test/message/eval_messages.out
++++ test/message/events_unhandled_error_common_trace.js
++++ test/message/events_unhandled_error_common_trace.out
++++ test/message/events_unhandled_error_nexttick.js
++++ test/message/events_unhandled_error_nexttick.out
++++ test/message/events_unhandled_error_sameline.js
++++ test/message/events_unhandled_error_sameline.out
++++ test/message/events_unhandled_error_subclass.js
++++ test/message/events_unhandled_error_subclass.out
++++ test/message/hello_world.out
++++ test/message/if-error-has-good-stack.js
++++ test/message/if-error-has-good-stack.out
++++ test/message/internal_assert.js
++++ test/message/internal_assert.out
++++ test/message/internal_assert_fail.js
++++ test/message/internal_assert_fail.out
++++ test/message/max_tick_depth.out
++++ test/message/message.status
++++ test/message/nexttick_throw.out
++++ test/message/promise_always_throw_unhandled.js
++++ test/message/promise_always_throw_unhandled.out
++++ test/message/source_map_throw_catch.js
++++ test/message/source_map_throw_catch.out
++++ test/message/source_map_throw_first_tick.js
++++ test/message/source_map_throw_first_tick.out
++++ test/message/source_map_throw_set_immediate.js
++++ test/message/source_map_throw_set_immediate.out
++++ test/message/stack_overflow.out
++++ test/message/stdin_messages.out
++++ test/message/throw_custom_error.out
++++ test/message/throw_error_with_getter_throw.js
++++ test/message/throw_error_with_getter_throw.out
++++ test/message/throw_error_with_getter_throw_traced.js
++++ test/message/throw_error_with_getter_throw_traced.out
++++ test/message/throw_in_line_with_tabs.out
++++ test/message/throw_non_error.out
++++ test/message/throw_null.out
++++ test/message/throw_null_traced.js
++++ test/message/throw_null_traced.out
++++ test/message/throw_undefined.out
++++ test/message/throw_undefined_traced.js
++++ test/message/throw_undefined_traced.out
++++ test/message/timeout_throw.out
++++ test/message/undefined_reference_in_new_context.out
++++ test/message/unhandled_promise_trace_warnings.js
++++ test/message/unhandled_promise_trace_warnings.out
++++ test/message/util_inspect_error.js
++++ test/message/util_inspect_error.out
++++ test/message/v8_warning.js
++++ test/message/v8_warning.out
++++ test/message/vm_caught_custom_runtime_error.js
++++ test/message/vm_caught_custom_runtime_error.out
++++ test/message/vm_display_runtime_error.out
++++ test/message/vm_display_syntax_error.out
++++ test/message/vm_dont_display_runtime_error.out
++++ test/message/vm_dont_display_syntax_error.out
++++ test/node-api/.gitignore
++++ test/node-api/1_hello_world/binding.c
++++ test/node-api/1_hello_world/binding.gyp
++++ test/node-api/1_hello_world/test.js
++++ test/node-api/node-api.status
++++ test/node-api/test_async/binding.gyp
++++ test/node-api/test_async/test-async-hooks.js
++++ test/node-api/test_async/test-loop.js
++++ test/node-api/test_async/test-uncaught.js
++++ test/node-api/test_async/test.js
++++ test/node-api/test_async/test_async.cc
++++ test/node-api/test_buffer/binding.gyp
++++ test/node-api/test_buffer/test-external-buffer.js
++++ test/node-api/test_buffer/test.js
++++ test/node-api/test_buffer/test_buffer.c
++++ test/node-api/test_callback_scope/binding.cc
++++ test/node-api/test_callback_scope/binding.gyp
++++ test/node-api/test_callback_scope/test-async-hooks.js
++++ test/node-api/test_callback_scope/test-resolve-async.js
++++ test/node-api/test_callback_scope/test.js
++++ test/node-api/test_cleanup_hook/binding.cc
++++ test/node-api/test_cleanup_hook/binding.gyp
++++ test/node-api/test_cleanup_hook/test.js
++++ test/node-api/test_exception/binding.gyp
++++ test/node-api/test_exception/test.js
++++ test/node-api/test_exception/test_exception.c
++++ test/node-api/test_fatal/binding.gyp
++++ test/node-api/test_fatal/test.js
++++ test/node-api/test_fatal/test2.js
++++ test/node-api/test_fatal/test_fatal.c
++++ test/node-api/test_fatal_exception/binding.gyp
++++ test/node-api/test_fatal_exception/test.js
++++ test/node-api/test_fatal_exception/test_fatal_exception.c
++++ test/node-api/test_general/binding.gyp
++++ test/node-api/test_general/test.js
++++ test/node-api/test_general/test_general.c
++++ test/node-api/test_instance_data/binding.gyp
++++ test/node-api/test_instance_data/test.js
++++ test/node-api/test_instance_data/test_instance_data.c
++++ test/node-api/test_make_callback/binding.c
++++ test/node-api/test_make_callback/binding.gyp
++++ test/node-api/test_make_callback/test-async-hooks-gcable.js
++++ test/node-api/test_make_callback/test-async-hooks.js
++++ test/node-api/test_make_callback/test.js
++++ test/node-api/test_make_callback_recurse/binding.cc
++++ test/node-api/test_make_callback_recurse/binding.gyp
++++ test/node-api/test_make_callback_recurse/test.js
++++ test/node-api/test_null_init/binding.gyp
++++ test/node-api/test_null_init/test.js
++++ test/node-api/test_null_init/test_null_init.c
++++ test/node-api/test_policy/binding.c
++++ test/node-api/test_policy/binding.gyp
++++ test/node-api/test_policy/test_policy.js
++++ test/node-api/test_threadsafe_function/binding.c
++++ test/node-api/test_threadsafe_function/binding.gyp
++++ test/node-api/test_threadsafe_function/test.js
++++ test/node-api/test_uv_loop/binding.gyp
++++ test/node-api/test_uv_loop/test.js
++++ test/node-api/test_uv_loop/test_uv_loop.cc
++++ test/node-api/test_worker_buffer_callback/binding.gyp
++++ test/node-api/test_worker_buffer_callback/test-free-called.js
++++ test/node-api/test_worker_buffer_callback/test.js
++++ test/node-api/test_worker_buffer_callback/test_worker_buffer_callback.c
++++ test/node-api/test_worker_terminate/binding.gyp
++++ test/node-api/test_worker_terminate/test.js
++++ test/node-api/test_worker_terminate/test_worker_terminate.c
++++ test/node-api/testcfg.py
++++ test/parallel/parallel.status
++++ test/parallel/test-accessor-properties.js
++++ test/parallel/test-arm-math-illegal-instruction.js
++++ test/parallel/test-assert-async.js
++++ test/parallel/test-assert-builtins-not-read-from-filesystem.js
++++ test/parallel/test-assert-checktag.js
++++ test/parallel/test-assert-deep.js
++++ test/parallel/test-assert-fail-deprecation.js
++++ test/parallel/test-assert-fail.js
++++ test/parallel/test-assert-first-line.js
++++ test/parallel/test-assert-if-error.js
++++ test/parallel/test-assert-typedarray-deepequal.js
++++ test/parallel/test-async-hooks-async-await.js
++++ test/parallel/test-async-hooks-asyncresource-constructor.js
++++ test/parallel/test-async-hooks-close-during-destroy.js
++++ test/parallel/test-async-hooks-constructor.js
++++ test/parallel/test-async-hooks-destroy-on-gc.js
++++ test/parallel/test-async-hooks-disable-during-promise.js
++++ test/parallel/test-async-hooks-disable-gc-tracking.js
++++ test/parallel/test-async-hooks-enable-disable-enable.js
++++ test/parallel/test-async-hooks-enable-disable.js
++++ test/parallel/test-async-hooks-enable-during-promise.js
++++ test/parallel/test-async-hooks-enable-recursive.js
++++ test/parallel/test-async-hooks-http-agent-destroy.js
++++ test/parallel/test-async-hooks-http-agent.js
++++ test/parallel/test-async-hooks-http-parser-destroy.js
++++ test/parallel/test-async-hooks-prevent-double-destroy.js
++++ test/parallel/test-async-hooks-promise-enable-disable.js
++++ test/parallel/test-async-hooks-promise-triggerid.js
++++ test/parallel/test-async-hooks-promise.js
++++ test/parallel/test-async-hooks-recursive-stack-runInAsyncScope.js
++++ test/parallel/test-async-hooks-recursive-stack.js
++++ test/parallel/test-async-hooks-run-in-async-scope-caught-exception.js
++++ test/parallel/test-async-hooks-top-level-clearimmediate.js
++++ test/parallel/test-async-wrap-constructor.js
++++ test/parallel/test-async-wrap-destroyid.js
++++ test/parallel/test-async-wrap-missing-method.js
++++ test/parallel/test-async-wrap-pop-id-during-load.js
++++ test/parallel/test-async-wrap-promise-after-enabled.js
++++ test/parallel/test-async-wrap-tlssocket-asyncreset.js
++++ test/parallel/test-async-wrap-trigger-id.js
++++ test/parallel/test-async-wrap-uncaughtexception.js
++++ test/parallel/test-atomics-wake.js
++++ test/parallel/test-bash-completion.js
++++ test/parallel/test-benchmark-cli.js
++++ test/parallel/test-binding-constants.js
++++ test/parallel/test-bootstrap-modules.js
++++ test/parallel/test-buffer-alloc.js
++++ test/parallel/test-buffer-arraybuffer.js
++++ test/parallel/test-buffer-backing-arraybuffer.js
++++ test/parallel/test-buffer-badhex.js
++++ test/parallel/test-buffer-bigint64.js
++++ test/parallel/test-buffer-compare-offset.js
++++ test/parallel/test-buffer-compare.js
++++ test/parallel/test-buffer-constants.js
++++ test/parallel/test-buffer-constructor-deprecation-error.js
++++ test/parallel/test-buffer-constructor-node-modules-paths.js
++++ test/parallel/test-buffer-constructor-outside-node-modules.js
++++ test/parallel/test-buffer-copy.js
++++ test/parallel/test-buffer-equals.js
++++ test/parallel/test-buffer-failed-alloc-typed-arrays.js
++++ test/parallel/test-buffer-fakes.js
++++ test/parallel/test-buffer-fill.js
++++ test/parallel/test-buffer-from.js
++++ test/parallel/test-buffer-includes.js
++++ test/parallel/test-buffer-indexof.js
++++ test/parallel/test-buffer-inheritance.js
++++ test/parallel/test-buffer-isencoding.js
++++ test/parallel/test-buffer-iterator.js
++++ test/parallel/test-buffer-new.js
++++ test/parallel/test-buffer-no-negative-allocation.js
++++ test/parallel/test-buffer-nopendingdep-map.js
++++ test/parallel/test-buffer-of-no-deprecation.js
++++ test/parallel/test-buffer-over-max-length.js
++++ test/parallel/test-buffer-parent-property.js
++++ test/parallel/test-buffer-pending-deprecation.js
++++ test/parallel/test-buffer-prototype-inspect.js
++++ test/parallel/test-buffer-read.js
++++ test/parallel/test-buffer-readdouble.js
++++ test/parallel/test-buffer-readfloat.js
++++ test/parallel/test-buffer-readint.js
++++ test/parallel/test-buffer-readuint.js
++++ test/parallel/test-buffer-safe-unsafe.js
++++ test/parallel/test-buffer-sharedarraybuffer.js
++++ test/parallel/test-buffer-slow.js
++++ test/parallel/test-buffer-swap.js
++++ test/parallel/test-buffer-tojson.js
++++ test/parallel/test-buffer-tostring-range.js
++++ test/parallel/test-buffer-tostring-rangeerror.js
++++ test/parallel/test-buffer-tostring.js
++++ test/parallel/test-buffer-write.js
++++ test/parallel/test-buffer-writedouble.js
++++ test/parallel/test-buffer-writefloat.js
++++ test/parallel/test-buffer-writeint.js
++++ test/parallel/test-buffer-writeuint.js
++++ test/parallel/test-buffer-zero-fill-cli.js
++++ test/parallel/test-buffer-zero-fill-reset.js
++++ test/parallel/test-buffer-zero-fill.js
++++ test/parallel/test-child-process-advanced-serialization.js
++++ test/parallel/test-child-process-bad-stdio.js
++++ test/parallel/test-child-process-can-write-to-stdout.js
++++ test/parallel/test-child-process-constructor.js
++++ test/parallel/test-child-process-exec-any-shells-windows.js
++++ test/parallel/test-child-process-exec-encoding.js
++++ test/parallel/test-child-process-exec-kill-throws.js
++++ test/parallel/test-child-process-exec-maxbuf.js
++++ test/parallel/test-child-process-exec-std-encoding.js
++++ test/parallel/test-child-process-exec-stdout-stderr-data-string.js
++++ test/parallel/test-child-process-exec-timeout.js
++++ test/parallel/test-child-process-execfile-maxbuf.js
++++ test/parallel/test-child-process-execfile.js
++++ test/parallel/test-child-process-execfilesync-maxbuf.js
++++ test/parallel/test-child-process-execsync-maxbuf.js
++++ test/parallel/test-child-process-flush-stdio.js
++++ test/parallel/test-child-process-fork-args.js
++++ test/parallel/test-child-process-fork-closed-channel-segfault.js
++++ test/parallel/test-child-process-fork-detached.js
++++ test/parallel/test-child-process-fork-no-shell.js
++++ test/parallel/test-child-process-fork-stdio-string-variant.js
++++ test/parallel/test-child-process-fork-stdio.js
++++ test/parallel/test-child-process-http-socket-leak.js
++++ test/parallel/test-child-process-ipc-next-tick.js
++++ test/parallel/test-child-process-no-deprecation.js
++++ test/parallel/test-child-process-pipe-dataflow.js
++++ test/parallel/test-child-process-promisified.js
++++ test/parallel/test-child-process-send-after-close.js
++++ test/parallel/test-child-process-send-cb.js
++++ test/parallel/test-child-process-send-keep-open.js
++++ test/parallel/test-child-process-send-returns-boolean.js
++++ test/parallel/test-child-process-send-type-error.js
++++ test/parallel/test-child-process-server-close.js
++++ test/parallel/test-child-process-spawn-args.js
++++ test/parallel/test-child-process-spawn-argv0.js
++++ test/parallel/test-child-process-spawn-shell.js
++++ test/parallel/test-child-process-spawnsync-args.js
++++ test/parallel/test-child-process-spawnsync-kill-signal.js
++++ test/parallel/test-child-process-spawnsync-maxbuf.js
++++ test/parallel/test-child-process-spawnsync-shell.js
++++ test/parallel/test-child-process-spawnsync-validation-errors.js
++++ test/parallel/test-child-process-stdio-merge-stdouts-into-cat.js
++++ test/parallel/test-child-process-stdio-reuse-readable-stdio.js
++++ test/parallel/test-child-process-stdout-ipc.js
++++ test/parallel/test-child-process-uid-gid.js
++++ test/parallel/test-child-process-validate-stdio.js
++++ test/parallel/test-child-process-windows-hide.js
++++ test/parallel/test-cli-bad-options.js
++++ test/parallel/test-cli-eval-event.js
++++ test/parallel/test-cli-node-options-disallowed.js
++++ test/parallel/test-cli-node-options.js
++++ test/parallel/test-cli-node-print-help.js
++++ test/parallel/test-cli-syntax-eval.js
++++ test/parallel/test-cli-syntax-piped-bad.js
++++ test/parallel/test-cli-syntax-piped-good.js
++++ test/parallel/test-cluster-advanced-serialization.js
++++ test/parallel/test-cluster-call-and-destroy.js
++++ test/parallel/test-cluster-cwd.js
++++ test/parallel/test-cluster-dgram-bind-fd.js
++++ test/parallel/test-cluster-dgram-ipv6only.js
++++ test/parallel/test-cluster-dgram-reuse.js
++++ test/parallel/test-cluster-disconnect-exitedAfterDisconnect-race.js
++++ test/parallel/test-cluster-disconnect-leak.js
++++ test/parallel/test-cluster-disconnect-race.js
++++ test/parallel/test-cluster-fork-stdio.js
++++ test/parallel/test-cluster-fork-windowsHide.js
++++ test/parallel/test-cluster-invalid-message.js
++++ test/parallel/test-cluster-ipc-throw.js
++++ test/parallel/test-cluster-kill-disconnect.js
++++ test/parallel/test-cluster-kill-infinite-loop.js
++++ test/parallel/test-cluster-listening-port.js
++++ test/parallel/test-cluster-net-listen-ipv6only-false.js
++++ test/parallel/test-cluster-net-listen-relative-path.js
++++ test/parallel/test-cluster-process-disconnect.js
++++ test/parallel/test-cluster-rr-ref.js
++++ test/parallel/test-cluster-send-socket-to-worker-http-server.js
++++ test/parallel/test-cluster-server-restart-none.js
++++ test/parallel/test-cluster-server-restart-rr.js
++++ test/parallel/test-cluster-shared-leak.js
++++ test/parallel/test-cluster-worker-disconnect-on-error.js
++++ test/parallel/test-cluster-worker-isconnected.js
++++ test/parallel/test-cluster-worker-isdead.js
++++ test/parallel/test-cluster-worker-wait-server-close.js
++++ test/parallel/test-code-cache.js
++++ test/parallel/test-common-countdown.js
++++ test/parallel/test-common-gc.js
++++ test/parallel/test-common-must-not-call.js
++++ test/parallel/test-console-assign-undefined.js
++++ test/parallel/test-console-async-write-error.js
++++ test/parallel/test-console-clear.js
++++ test/parallel/test-console-count.js
++++ test/parallel/test-console-group.js
++++ test/parallel/test-console-log-stdio-broken-dest.js
++++ test/parallel/test-console-log-throw-primitive.js
++++ test/parallel/test-console-methods.js
++++ test/parallel/test-console-no-swallow-stack-overflow.js
++++ test/parallel/test-console-self-assign.js
++++ test/parallel/test-console-stdio-setters.js
++++ test/parallel/test-console-sync-write-error.js
++++ test/parallel/test-console-table.js
++++ test/parallel/test-console-tty-colors.js
++++ test/parallel/test-constants.js
++++ test/parallel/test-coverage-with-inspector-disabled.js
++++ test/parallel/test-crypto-aes-wrap.js
++++ test/parallel/test-crypto-cipher-decipher.js
++++ test/parallel/test-crypto-cipheriv-decipheriv.js
++++ test/parallel/test-crypto-classes.js
++++ test/parallel/test-crypto-des3-wrap.js
++++ test/parallel/test-crypto-dh-leak.js
++++ test/parallel/test-crypto-dh.js
++++ test/parallel/test-crypto-ecdh-convert-key.js
++++ test/parallel/test-crypto-engine.js
++++ test/parallel/test-crypto-fips.js
++++ test/parallel/test-crypto-hash.js
++++ test/parallel/test-crypto-hmac.js
++++ test/parallel/test-crypto-key-objects.js
++++ test/parallel/test-crypto-keygen.js
++++ test/parallel/test-crypto-lazy-transform-writable.js
++++ test/parallel/test-crypto-pbkdf2.js
++++ test/parallel/test-crypto-rsa-dsa.js
++++ test/parallel/test-crypto-scrypt.js
++++ test/parallel/test-crypto-sign-verify.js
++++ test/parallel/test-cwd-enoent-preload.js
++++ test/parallel/test-cwd-enoent-repl.js
++++ test/parallel/test-cwd-enoent.js
++++ test/parallel/test-debug-args.js
++++ test/parallel/test-debug-usage.js
++++ test/parallel/test-debugger-pid.js
++++ test/parallel/test-dgram-bind-error-repeat.js
++++ test/parallel/test-dgram-bind-fd-error.js
++++ test/parallel/test-dgram-bind-fd.js
++++ test/parallel/test-dgram-close-during-bind.js
++++ test/parallel/test-dgram-close-in-listening.js
++++ test/parallel/test-dgram-close-is-not-callback.js
++++ test/parallel/test-dgram-cluster-bind-error.js
++++ test/parallel/test-dgram-cluster-close-during-bind.js
++++ test/parallel/test-dgram-connect-send-callback-buffer-length.js
++++ test/parallel/test-dgram-connect-send-callback-buffer.js
++++ test/parallel/test-dgram-connect-send-callback-multi-buffer.js
++++ test/parallel/test-dgram-connect-send-default-host.js
++++ test/parallel/test-dgram-connect-send-empty-array.js
++++ test/parallel/test-dgram-connect-send-empty-buffer.js
++++ test/parallel/test-dgram-connect-send-empty-packet.js
++++ test/parallel/test-dgram-connect-send-multi-buffer-copy.js
++++ test/parallel/test-dgram-connect-send-multi-string-array.js
++++ test/parallel/test-dgram-connect.js
++++ test/parallel/test-dgram-create-socket-handle-fd.js
++++ test/parallel/test-dgram-create-socket-handle.js
++++ test/parallel/test-dgram-createSocket-type.js
++++ test/parallel/test-dgram-custom-lookup.js
++++ test/parallel/test-dgram-deprecation-error.js
++++ test/parallel/test-dgram-ipv6only.js
++++ test/parallel/test-dgram-membership.js
++++ test/parallel/test-dgram-multicast-loopback.js
++++ test/parallel/test-dgram-multicast-set-interface.js
++++ test/parallel/test-dgram-recv-error.js
++++ test/parallel/test-dgram-send-address-types.js
++++ test/parallel/test-dgram-send-callback-buffer-empty-address.js
++++ test/parallel/test-dgram-send-callback-buffer-length-empty-address.js
++++ test/parallel/test-dgram-send-callback-buffer.js
++++ test/parallel/test-dgram-send-callback-multi-buffer-empty-address.js
++++ test/parallel/test-dgram-send-callback-multi-buffer.js
++++ test/parallel/test-dgram-send-callback-recursive.js
++++ test/parallel/test-dgram-send-cb-quelches-error.js
++++ test/parallel/test-dgram-send-default-host.js
++++ test/parallel/test-dgram-send-empty-array.js
++++ test/parallel/test-dgram-send-empty-packet.js
++++ test/parallel/test-dgram-send-error.js
++++ test/parallel/test-dgram-send-multi-buffer-copy.js
++++ test/parallel/test-dgram-send-multi-string-array.js
++++ test/parallel/test-dgram-sendto.js
++++ test/parallel/test-dgram-setBroadcast.js
++++ test/parallel/test-dgram-setTTL.js
++++ test/parallel/test-dgram-socket-buffer-size.js
++++ test/parallel/test-dgram-udp6-send-default-host.js
++++ test/parallel/test-dns-cancel-reverse-lookup.js
++++ test/parallel/test-dns-channel-cancel.js
++++ test/parallel/test-dns-lookup-promises.js
++++ test/parallel/test-dns-lookup.js
++++ test/parallel/test-dns-lookupService.js
++++ test/parallel/test-dns-memory-error.js
++++ test/parallel/test-dns-multi-channel.js
++++ test/parallel/test-dns-resolveany-bad-ancount.js
++++ test/parallel/test-dns-resolveany.js
++++ test/parallel/test-dns-setserver-when-querying.js
++++ test/parallel/test-dns-setservers-type-check.js
++++ test/parallel/test-domain-abort-on-uncaught.js
++++ test/parallel/test-domain-add-remove.js
++++ test/parallel/test-domain-async-id-map-leak.js
++++ test/parallel/test-domain-bind-timeout.js
++++ test/parallel/test-domain-ee-error-listener.js
++++ test/parallel/test-domain-ee-implicit.js
++++ test/parallel/test-domain-ee.js
++++ test/parallel/test-domain-error-types.js
++++ test/parallel/test-domain-fs-enoent-stream.js
++++ test/parallel/test-domain-implicit-binding.js
++++ test/parallel/test-domain-intercept.js
++++ test/parallel/test-domain-load-after-set-uncaught-exception-capture.js
++++ test/parallel/test-domain-multiple-errors.js
++++ test/parallel/test-domain-nexttick.js
++++ test/parallel/test-domain-no-error-handler-abort-on-uncaught-0.js
++++ test/parallel/test-domain-no-error-handler-abort-on-uncaught-1.js
++++ test/parallel/test-domain-no-error-handler-abort-on-uncaught-2.js
++++ test/parallel/test-domain-no-error-handler-abort-on-uncaught-3.js
++++ test/parallel/test-domain-no-error-handler-abort-on-uncaught-4.js
++++ test/parallel/test-domain-no-error-handler-abort-on-uncaught-5.js
++++ test/parallel/test-domain-no-error-handler-abort-on-uncaught-6.js
++++ test/parallel/test-domain-no-error-handler-abort-on-uncaught-7.js
++++ test/parallel/test-domain-no-error-handler-abort-on-uncaught-8.js
++++ test/parallel/test-domain-no-error-handler-abort-on-uncaught-9.js
++++ test/parallel/test-domain-promise.js
++++ test/parallel/test-domain-run.js
++++ test/parallel/test-domain-set-uncaught-exception-capture-after-load.js
++++ test/parallel/test-domain-stack-empty-in-process-uncaughtexception.js
++++ test/parallel/test-domain-throw-error-then-throw-from-uncaught-exception-handler.js
++++ test/parallel/test-domain-timer.js
++++ test/parallel/test-domain-timers-uncaught-exception.js
++++ test/parallel/test-domain-top-level-error-handler-clears-stack.js
++++ test/parallel/test-domain-top-level-error-handler-throw.js
++++ test/parallel/test-domain-uncaught-exception.js
++++ test/parallel/test-domain-with-abort-on-uncaught-exception.js
++++ test/parallel/test-dsa-fips-invalid-key.js
++++ test/parallel/test-dummy-stdio.js
++++ test/parallel/test-emit-after-uncaught-exception.js
++++ test/parallel/test-env-newprotomethod-remove-unnecessary-prototypes.js
++++ test/parallel/test-env-var-no-warnings.js
++++ test/parallel/test-err-name-deprecation.js
++++ test/parallel/test-error-prepare-stack-trace.js
++++ test/parallel/test-error-serdes.js
++++ test/parallel/test-errors-systemerror.js
++++ test/parallel/test-eslint-alphabetize-errors.js
++++ test/parallel/test-eslint-crypto-check.js
++++ test/parallel/test-eslint-documented-errors.js
++++ test/parallel/test-eslint-duplicate-requires.js
++++ test/parallel/test-eslint-eslint-check.js
++++ test/parallel/test-eslint-inspector-check.js
++++ test/parallel/test-eslint-lowercase-name-for-primitive.js
++++ test/parallel/test-eslint-no-unescaped-regexp-dot.js
++++ test/parallel/test-eslint-number-isnan.js
++++ test/parallel/test-eslint-prefer-assert-iferror.js
++++ test/parallel/test-eslint-prefer-assert-methods.js
++++ test/parallel/test-eslint-prefer-common-expectserror.js
++++ test/parallel/test-eslint-prefer-common-mustnotcall.js
++++ test/parallel/test-eslint-prefer-util-format-errors.js
++++ test/parallel/test-eslint-require-common-first.js
++++ test/parallel/test-eslint-required-modules.js
++++ test/parallel/test-eval-strict-referenceerror.js
++++ test/parallel/test-event-capture-rejections.js
++++ test/parallel/test-event-emitter-errors.js
++++ test/parallel/test-event-emitter-get-max-listeners.js
++++ test/parallel/test-event-emitter-listener-count.js
++++ test/parallel/test-event-emitter-max-listeners-warning-for-null.js
++++ test/parallel/test-event-emitter-max-listeners-warning-for-symbol.js
++++ test/parallel/test-event-emitter-max-listeners-warning.js
++++ test/parallel/test-event-emitter-prepend.js
++++ test/parallel/test-event-emitter-special-event-names.js
++++ test/parallel/test-event-emitter-symbols.js
++++ test/parallel/test-event-on-async-iterator.js
++++ test/parallel/test-events-list.js
++++ test/parallel/test-events-once.js
++++ test/parallel/test-events-uncaught-exception-stack.js
++++ test/parallel/test-finalization-group-error.js
++++ test/parallel/test-finalization-group-regular-gc.js
++++ test/parallel/test-finalization-group.js
++++ test/parallel/test-fixed-queue.js
++++ test/parallel/test-force-repl-with-eval.js
++++ test/parallel/test-force-repl.js
++++ test/parallel/test-freelist.js
++++ test/parallel/test-freeze-intrinsics.js
++++ test/parallel/test-fs-access.js
++++ test/parallel/test-fs-assert-encoding-error.js
++++ test/parallel/test-fs-buffer.js
++++ test/parallel/test-fs-buffertype-writesync.js
++++ test/parallel/test-fs-chmod-mask.js
++++ test/parallel/test-fs-chown-type-check.js
++++ test/parallel/test-fs-close-errors.js
++++ test/parallel/test-fs-close.js
++++ test/parallel/test-fs-copyfile-respect-permissions.js
++++ test/parallel/test-fs-copyfile.js
++++ test/parallel/test-fs-existssync-false.js
++++ test/parallel/test-fs-fchmod.js
++++ test/parallel/test-fs-fchown.js
++++ test/parallel/test-fs-filehandle.js
++++ test/parallel/test-fs-fmap.js
++++ test/parallel/test-fs-lchmod.js
++++ test/parallel/test-fs-lchown.js
++++ test/parallel/test-fs-link.js
++++ test/parallel/test-fs-make-callback.js
++++ test/parallel/test-fs-makeStatsCallback.js
++++ test/parallel/test-fs-mkdir-mode-mask.js
++++ test/parallel/test-fs-mkdir-rmdir.js
++++ test/parallel/test-fs-mkdtemp-prefix-check.js
++++ test/parallel/test-fs-mkdtemp.js
++++ test/parallel/test-fs-non-number-arguments-throw.js
++++ test/parallel/test-fs-open-mode-mask.js
++++ test/parallel/test-fs-open-numeric-flags.js
++++ test/parallel/test-fs-opendir.js
++++ test/parallel/test-fs-options-immutable.js
++++ test/parallel/test-fs-promises-file-handle-append-file.js
++++ test/parallel/test-fs-promises-file-handle-chmod.js
++++ test/parallel/test-fs-promises-file-handle-read.js
++++ test/parallel/test-fs-promises-file-handle-readFile.js
++++ test/parallel/test-fs-promises-file-handle-stat.js
++++ test/parallel/test-fs-promises-file-handle-sync.js
++++ test/parallel/test-fs-promises-file-handle-truncate.js
++++ test/parallel/test-fs-promises-file-handle-write.js
++++ test/parallel/test-fs-promises-file-handle-writeFile.js
++++ test/parallel/test-fs-promises-readfile-empty.js
++++ test/parallel/test-fs-promises-readfile-with-fd.js
++++ test/parallel/test-fs-promises-readfile.js
++++ test/parallel/test-fs-promises-writefile-with-fd.js
++++ test/parallel/test-fs-promises-writefile.js
++++ test/parallel/test-fs-promises.js
++++ test/parallel/test-fs-promisified.js
++++ test/parallel/test-fs-read-empty-buffer.js
++++ test/parallel/test-fs-read-file-assert-encoding.js
++++ test/parallel/test-fs-read-stream-concurrent-reads.js
++++ test/parallel/test-fs-read-stream-double-close.js
++++ test/parallel/test-fs-read-stream-encoding.js
++++ test/parallel/test-fs-read-stream-fd-leak.js
++++ test/parallel/test-fs-read-stream-inherit.js
++++ test/parallel/test-fs-read-stream-throw-type-error.js
++++ test/parallel/test-fs-read-type.js
++++ test/parallel/test-fs-read-zero-length.js
++++ test/parallel/test-fs-readdir-stack-overflow.js
++++ test/parallel/test-fs-readdir-types.js
++++ test/parallel/test-fs-readdir-ucs2.js
++++ test/parallel/test-fs-readdir.js
++++ test/parallel/test-fs-readfile-fd.js
++++ test/parallel/test-fs-readfile-pipe-large.js
++++ test/parallel/test-fs-readfile.js
++++ test/parallel/test-fs-readfilesync-enoent.js
++++ test/parallel/test-fs-readfilesync-pipe-large.js
++++ test/parallel/test-fs-readlink-type-check.js
++++ test/parallel/test-fs-ready-event-stream.js
++++ test/parallel/test-fs-realpath-buffer-encoding.js
++++ test/parallel/test-fs-realpath-native.js
++++ test/parallel/test-fs-realpath-on-substed-drive.js
++++ test/parallel/test-fs-realpath-pipe.js
++++ test/parallel/test-fs-rename-type-check.js
++++ test/parallel/test-fs-rmdir-recursive.js
++++ test/parallel/test-fs-rmdir-type-check.js
++++ test/parallel/test-fs-stat-bigint.js
++++ test/parallel/test-fs-stream-destroy-emit-error.js
++++ test/parallel/test-fs-symlink-dir.js
++++ test/parallel/test-fs-syncwritestream.js
++++ test/parallel/test-fs-timestamp-parsing-error.js
++++ test/parallel/test-fs-truncate-fd.js
++++ test/parallel/test-fs-truncate-sync.js
++++ test/parallel/test-fs-unlink-type-check.js
++++ test/parallel/test-fs-util-validateoffsetlengthwrite.js
++++ test/parallel/test-fs-watch-close-when-destroyed.js
++++ test/parallel/test-fs-watch-encoding.js
++++ test/parallel/test-fs-watch-enoent.js
++++ test/parallel/test-fs-watch-recursive.js
++++ test/parallel/test-fs-watch-stop-async.js
++++ test/parallel/test-fs-watch-stop-sync.js
++++ test/parallel/test-fs-watch.js
++++ test/parallel/test-fs-watchfile-bigint.js
++++ test/parallel/test-fs-watchfile.js
++++ test/parallel/test-fs-whatwg-url.js
++++ test/parallel/test-fs-write-file-invalid-path.js
++++ test/parallel/test-fs-write-no-fd.js
++++ test/parallel/test-fs-write-sigxfsz.js
++++ test/parallel/test-fs-write-stream-autoclose-option.js
++++ test/parallel/test-fs-write-stream-close-without-callback.js
++++ test/parallel/test-fs-write-stream-double-close.js
++++ test/parallel/test-fs-write-stream-encoding.js
++++ test/parallel/test-fs-write-stream-throw-type-error.js
++++ test/parallel/test-fs-write-string-coerce.js
++++ test/parallel/test-fs-writefile-with-fd.js
++++ test/parallel/test-fs-writev-promises.js
++++ test/parallel/test-fs-writev-sync.js
++++ test/parallel/test-fs-writev.js
++++ test/parallel/test-gc-http-client-connaborted.js
++++ test/parallel/test-gc-http-client-onerror.js
++++ test/parallel/test-gc-http-client-timeout.js
++++ test/parallel/test-gc-net-timeout.js
++++ test/parallel/test-gc-tls-external-memory.js
++++ test/parallel/test-global-console-exists.js
++++ test/parallel/test-global-encoder.js
++++ test/parallel/test-global-setters.js
++++ test/parallel/test-handle-wrap-isrefed.js
++++ test/parallel/test-heapdump-async-hooks-init-promise.js
++++ test/parallel/test-http-aborted.js
++++ test/parallel/test-http-addrequest-localaddress.js
++++ test/parallel/test-http-agent-domain-reused-gc.js
++++ test/parallel/test-http-agent-error-on-idle.js
++++ test/parallel/test-http-agent-getname.js
++++ test/parallel/test-http-agent-maxsockets-respected.js
++++ test/parallel/test-http-agent-maxsockets.js
++++ test/parallel/test-http-agent-remove.js
++++ test/parallel/test-http-agent-timeout-option.js
++++ test/parallel/test-http-agent-uninitialized-with-handle.js
++++ test/parallel/test-http-agent-uninitialized.js
++++ test/parallel/test-http-automatic-headers.js
++++ test/parallel/test-http-catch-uncaughtexception.js
++++ test/parallel/test-http-chunk-problem.js
++++ test/parallel/test-http-client-abort-event.js
++++ test/parallel/test-http-client-abort-keep-alive-queued-tcp-socket.js
++++ test/parallel/test-http-client-abort-keep-alive-queued-unix-socket.js
++++ test/parallel/test-http-client-abort-no-agent.js
++++ test/parallel/test-http-client-abort-response-event.js
++++ test/parallel/test-http-client-abort-unix-socket.js
++++ test/parallel/test-http-client-aborted-event.js
++++ test/parallel/test-http-client-check-http-token.js
++++ test/parallel/test-http-client-close-event.js
++++ test/parallel/test-http-client-defaults.js
++++ test/parallel/test-http-client-error-rawbytes.js
++++ test/parallel/test-http-client-finished.js
++++ test/parallel/test-http-client-headers-array.js
++++ test/parallel/test-http-client-immediate-error.js
++++ test/parallel/test-http-client-invalid-path.js
++++ test/parallel/test-http-client-keep-alive-release-before-finish.js
++++ test/parallel/test-http-client-override-global-agent.js
++++ test/parallel/test-http-client-read-in-error.js
++++ test/parallel/test-http-client-reject-chunked-with-content-length.js
++++ test/parallel/test-http-client-reject-cr-no-lf.js
++++ test/parallel/test-http-client-reject-unexpected-agent.js
++++ test/parallel/test-http-client-req-error-dont-double-fire.js
++++ test/parallel/test-http-client-set-timeout-after-end.js
++++ test/parallel/test-http-client-set-timeout.js
++++ test/parallel/test-http-client-spurious-aborted.js
++++ test/parallel/test-http-client-timeout-connect-listener.js
++++ test/parallel/test-http-client-timeout-on-connect.js
++++ test/parallel/test-http-client-timeout-option-listeners.js
++++ test/parallel/test-http-client-timeout-option-with-agent.js
++++ test/parallel/test-http-client-timeout-option.js
++++ test/parallel/test-http-common.js
++++ test/parallel/test-http-connect-req-res.js
++++ test/parallel/test-http-content-length.js
++++ test/parallel/test-http-correct-hostname.js
++++ test/parallel/test-http-debug.js
++++ test/parallel/test-http-deprecated-urls.js
++++ test/parallel/test-http-double-content-length.js
++++ test/parallel/test-http-dump-req-when-res-ends.js
++++ test/parallel/test-http-expect-handling.js
++++ test/parallel/test-http-flush-headers.js
++++ test/parallel/test-http-flush-response-headers.js
++++ test/parallel/test-http-generic-streams.js
++++ test/parallel/test-http-header-obstext.js
++++ test/parallel/test-http-header-overflow.js
++++ test/parallel/test-http-header-owstext.js
++++ test/parallel/test-http-highwatermark.js
++++ test/parallel/test-http-host-header-ipv6-fail.js
++++ test/parallel/test-http-hostname-typechecking.js
++++ test/parallel/test-http-incoming-matchKnownFields.js
++++ test/parallel/test-http-incoming-message-options.js
++++ test/parallel/test-http-information-headers.js
++++ test/parallel/test-http-information-processing.js
++++ test/parallel/test-http-insecure-parser-legacy.js
++++ test/parallel/test-http-insecure-parser-per-stream.js
++++ test/parallel/test-http-insecure-parser.js
++++ test/parallel/test-http-invalid-path-chars.js
++++ test/parallel/test-http-invalid-te-legacy.js
++++ test/parallel/test-http-invalid-te.js
++++ test/parallel/test-http-invalid-urls.js
++++ test/parallel/test-http-invalidheaderfield.js
++++ test/parallel/test-http-invalidheaderfield2.js
++++ test/parallel/test-http-keepalive-override.js
++++ test/parallel/test-http-listening.js
++++ test/parallel/test-http-max-header-size.js
++++ test/parallel/test-http-no-read-no-dump.js
++++ test/parallel/test-http-outgoing-buffer.js
++++ test/parallel/test-http-outgoing-finish-writable.js
++++ test/parallel/test-http-outgoing-first-chunk-singlebyte-encoding.js
++++ test/parallel/test-http-outgoing-internal-headernames-getter.js
++++ test/parallel/test-http-outgoing-internal-headernames-setter.js
++++ test/parallel/test-http-outgoing-internal-headers.js
++++ test/parallel/test-http-outgoing-message-capture-rejection.js
++++ test/parallel/test-http-outgoing-message-inheritance.js
++++ test/parallel/test-http-outgoing-message-write-callback.js
++++ test/parallel/test-http-outgoing-properties.js
++++ test/parallel/test-http-outgoing-proto.js
++++ test/parallel/test-http-outgoing-renderHeaders.js
++++ test/parallel/test-http-outgoing-settimeout.js
++++ test/parallel/test-http-outgoing-writableFinished.js
++++ test/parallel/test-http-parser-bad-ref.js
++++ test/parallel/test-http-parser-finish-error.js
++++ test/parallel/test-http-parser-freed-before-upgrade.js
++++ test/parallel/test-http-parser-lazy-loaded.js
++++ test/parallel/test-http-pause-no-dump.js
++++ test/parallel/test-http-perf_hooks.js
++++ test/parallel/test-http-pipeline-assertionerror-finish.js
++++ test/parallel/test-http-pipeline-flood.js
++++ test/parallel/test-http-pipeline-requests-connection-leak.js
++++ test/parallel/test-http-pipeline-socket-parser-typeerror.js
++++ test/parallel/test-http-readable-data-event.js
++++ test/parallel/test-http-req-res-close.js
++++ test/parallel/test-http-request-agent.js
++++ test/parallel/test-http-request-arguments.js
++++ test/parallel/test-http-request-dont-override-options.js
++++ test/parallel/test-http-request-invalid-method-error.js
++++ test/parallel/test-http-request-large-payload.js
++++ test/parallel/test-http-response-add-header-after-sent.js
++++ test/parallel/test-http-response-cork.js
++++ test/parallel/test-http-response-multi-content-length.js
++++ test/parallel/test-http-response-multiheaders.js
++++ test/parallel/test-http-response-remove-header-after-sent.js
++++ test/parallel/test-http-response-splitting.js
++++ test/parallel/test-http-response-statuscode.js
++++ test/parallel/test-http-response-writehead-returns-this.js
++++ test/parallel/test-http-same-map.js
++++ test/parallel/test-http-server-capture-rejections.js
++++ test/parallel/test-http-server-client-error.js
++++ test/parallel/test-http-server-consumed-timeout.js
++++ test/parallel/test-http-server-de-chunked-trailer.js
++++ test/parallel/test-http-server-delete-parser.js
++++ test/parallel/test-http-server-destroy-socket-on-client-error.js
++++ test/parallel/test-http-server-keep-alive-timeout.js
++++ test/parallel/test-http-server-keepalive-end.js
++++ test/parallel/test-http-server-keepalive-req-gc.js
++++ test/parallel/test-http-server-options-incoming-message.js
++++ test/parallel/test-http-server-options-server-response.js
++++ test/parallel/test-http-server-reject-chunked-with-content-length.js
++++ test/parallel/test-http-server-reject-cr-no-lf.js
++++ test/parallel/test-http-server-response-standalone.js
++++ test/parallel/test-http-server-unconsume-consume.js
++++ test/parallel/test-http-server-unconsume.js
++++ test/parallel/test-http-server-write-after-end.js
++++ test/parallel/test-http-slow-headers-keepalive.js
++++ test/parallel/test-http-slow-headers.js
++++ test/parallel/test-http-status-reason-invalid-chars.js
++++ test/parallel/test-http-timeout-client-warning.js
++++ test/parallel/test-http-timeout-flag.js
++++ test/parallel/test-http-uncaught-from-request-callback.js
++++ test/parallel/test-http-unix-socket-keep-alive.js
++++ test/parallel/test-http-upgrade-advertise.js
++++ test/parallel/test-http-upgrade-binary.js
++++ test/parallel/test-http-upgrade-reconsume-stream.js
++++ test/parallel/test-http-writable-true-after-close.js
++++ test/parallel/test-http-zerolengthbuffer.js
++++ test/parallel/test-http2-altsvc.js
++++ test/parallel/test-http2-backpressure.js
++++ test/parallel/test-http2-binding.js
++++ test/parallel/test-http2-buffersize.js
++++ test/parallel/test-http2-capture-rejection.js
++++ test/parallel/test-http2-client-data-end.js
++++ test/parallel/test-http2-client-destroy.js
++++ test/parallel/test-http2-client-http1-server.js
++++ test/parallel/test-http2-client-onconnect-errors.js
++++ test/parallel/test-http2-client-port-80.js
++++ test/parallel/test-http2-client-priority-before-connect.js
++++ test/parallel/test-http2-client-promisify-connect.js
++++ test/parallel/test-http2-client-request-listeners-warning.js
++++ test/parallel/test-http2-client-request-options-errors.js
++++ test/parallel/test-http2-client-rststream-before-connect.js
++++ test/parallel/test-http2-client-set-priority.js
++++ test/parallel/test-http2-client-setNextStreamID-errors.js
++++ test/parallel/test-http2-client-settings-before-connect.js
++++ test/parallel/test-http2-client-shutdown-before-connect.js
++++ test/parallel/test-http2-client-socket-destroy.js
++++ test/parallel/test-http2-client-stream-destroy-before-connect.js
++++ test/parallel/test-http2-client-unescaped-path.js
++++ test/parallel/test-http2-client-upload-reject.js
++++ test/parallel/test-http2-client-upload.js
++++ test/parallel/test-http2-client-write-before-connect.js
++++ test/parallel/test-http2-client-write-empty-string.js
++++ test/parallel/test-http2-compat-aborted.js
++++ test/parallel/test-http2-compat-client-upload-reject.js
++++ test/parallel/test-http2-compat-errors.js
++++ test/parallel/test-http2-compat-expect-continue-check.js
++++ test/parallel/test-http2-compat-expect-continue.js
++++ test/parallel/test-http2-compat-expect-handling.js
++++ test/parallel/test-http2-compat-method-connect.js
++++ test/parallel/test-http2-compat-serverrequest-end.js
++++ test/parallel/test-http2-compat-serverrequest-headers.js
++++ test/parallel/test-http2-compat-serverrequest-pause.js
++++ test/parallel/test-http2-compat-serverrequest-pipe.js
++++ test/parallel/test-http2-compat-serverrequest-settimeout.js
++++ test/parallel/test-http2-compat-serverrequest-trailers.js
++++ test/parallel/test-http2-compat-serverrequest.js
++++ test/parallel/test-http2-compat-serverresponse-close.js
++++ test/parallel/test-http2-compat-serverresponse-createpushresponse.js
++++ test/parallel/test-http2-compat-serverresponse-destroy.js
++++ test/parallel/test-http2-compat-serverresponse-drain.js
++++ test/parallel/test-http2-compat-serverresponse-end-after-statuses-without-body.js
++++ test/parallel/test-http2-compat-serverresponse-end.js
++++ test/parallel/test-http2-compat-serverresponse-finished.js
++++ test/parallel/test-http2-compat-serverresponse-flushheaders.js
++++ test/parallel/test-http2-compat-serverresponse-headers-after-destroy.js
++++ test/parallel/test-http2-compat-serverresponse-headers.js
++++ test/parallel/test-http2-compat-serverresponse-settimeout.js
++++ test/parallel/test-http2-compat-serverresponse-statuscode.js
++++ test/parallel/test-http2-compat-serverresponse-statusmessage-property-set.js
++++ test/parallel/test-http2-compat-serverresponse-statusmessage-property.js
++++ test/parallel/test-http2-compat-serverresponse-statusmessage.js
++++ test/parallel/test-http2-compat-serverresponse-trailers.js
++++ test/parallel/test-http2-compat-serverresponse-write.js
++++ test/parallel/test-http2-compat-serverresponse-writehead-array.js
++++ test/parallel/test-http2-compat-serverresponse-writehead.js
++++ test/parallel/test-http2-compat-short-stream-client-server.js
++++ test/parallel/test-http2-compat-socket-destroy-delayed.js
++++ test/parallel/test-http2-compat-socket-set.js
++++ test/parallel/test-http2-compat-socket.js
++++ test/parallel/test-http2-compat-write-head-destroyed.js
++++ test/parallel/test-http2-connect-method-extended-cant-turn-off.js
++++ test/parallel/test-http2-connect-method-extended.js
++++ test/parallel/test-http2-connect-method.js
++++ test/parallel/test-http2-connect-options.js
++++ test/parallel/test-http2-connect.js
++++ test/parallel/test-http2-cookies.js
++++ test/parallel/test-http2-create-client-connect.js
++++ test/parallel/test-http2-create-client-secure-session.js
++++ test/parallel/test-http2-create-client-session.js
++++ test/parallel/test-http2-createsecureserver-options.js
++++ test/parallel/test-http2-createserver-options.js
++++ test/parallel/test-http2-createwritereq.js
++++ test/parallel/test-http2-date-header.js
++++ test/parallel/test-http2-debug.js
++++ test/parallel/test-http2-dont-lose-data.js
++++ test/parallel/test-http2-dont-override.js
++++ test/parallel/test-http2-endafterheaders.js
++++ test/parallel/test-http2-error-order.js
++++ test/parallel/test-http2-forget-closed-streams.js
++++ test/parallel/test-http2-generic-streams-sendfile.js
++++ test/parallel/test-http2-generic-streams.js
++++ test/parallel/test-http2-getpackedsettings.js
++++ test/parallel/test-http2-goaway-opaquedata.js
++++ test/parallel/test-http2-head-request.js
++++ test/parallel/test-http2-https-fallback-http-server-options.js
++++ test/parallel/test-http2-https-fallback.js
++++ test/parallel/test-http2-info-headers-errors.js
++++ test/parallel/test-http2-info-headers.js
++++ test/parallel/test-http2-invalidargtypes-errors.js
++++ test/parallel/test-http2-large-write-close.js
++++ test/parallel/test-http2-large-write-destroy.js
++++ test/parallel/test-http2-large-write-multiple-requests.js
++++ test/parallel/test-http2-large-writes-session-memory-leak.js
++++ test/parallel/test-http2-malformed-altsvc.js
++++ test/parallel/test-http2-many-writes-and-destroy.js
++++ test/parallel/test-http2-max-concurrent-streams.js
++++ test/parallel/test-http2-max-invalid-frames.js
++++ test/parallel/test-http2-max-session-memory-leak.js
++++ test/parallel/test-http2-methods.js
++++ test/parallel/test-http2-misbehaving-flow-control-paused.js
++++ test/parallel/test-http2-misbehaving-flow-control.js
++++ test/parallel/test-http2-misbehaving-multiplex.js
++++ test/parallel/test-http2-misc-util.js
++++ test/parallel/test-http2-misused-pseudoheaders.js
++++ test/parallel/test-http2-multi-content-length.js
++++ test/parallel/test-http2-multiheaders-raw.js
++++ test/parallel/test-http2-multiheaders.js
++++ test/parallel/test-http2-multiplex.js
++++ test/parallel/test-http2-multistream-destroy-on-read-tls.js
++++ test/parallel/test-http2-no-more-streams.js
++++ test/parallel/test-http2-no-wanttrailers-listener.js
++++ test/parallel/test-http2-onping.js
++++ test/parallel/test-http2-options-max-headers-block-length.js
++++ test/parallel/test-http2-options-max-reserved-streams.js
++++ test/parallel/test-http2-options-server-request.js
++++ test/parallel/test-http2-options-server-response.js
++++ test/parallel/test-http2-origin.js
++++ test/parallel/test-http2-padding-aligned.js
++++ test/parallel/test-http2-padding-callback.js
++++ test/parallel/test-http2-perf_hooks.js
++++ test/parallel/test-http2-ping-settings-heapdump.js
++++ test/parallel/test-http2-ping-unsolicited-ack.js
++++ test/parallel/test-http2-ping.js
++++ test/parallel/test-http2-pipe-named-pipe.js
++++ test/parallel/test-http2-pipe.js
++++ test/parallel/test-http2-priority-cycle-.js
++++ test/parallel/test-http2-priority-event.js
++++ test/parallel/test-http2-propagate-session-destroy-code.js
++++ test/parallel/test-http2-request-remove-connect-listener.js
++++ test/parallel/test-http2-request-response-proto.js
++++ test/parallel/test-http2-reset-flood.js
++++ test/parallel/test-http2-respond-errors.js
++++ test/parallel/test-http2-respond-file-204.js
++++ test/parallel/test-http2-respond-file-304.js
++++ test/parallel/test-http2-respond-file-404.js
++++ test/parallel/test-http2-respond-file-compat.js
++++ test/parallel/test-http2-respond-file-error-dir.js
++++ test/parallel/test-http2-respond-file-error-pipe-offset.js
++++ test/parallel/test-http2-respond-file-errors.js
++++ test/parallel/test-http2-respond-file-fd-errors.js
++++ test/parallel/test-http2-respond-file-fd-invalid.js
++++ test/parallel/test-http2-respond-file-fd-range.js
++++ test/parallel/test-http2-respond-file-fd.js
++++ test/parallel/test-http2-respond-file-filehandle.js
++++ test/parallel/test-http2-respond-file-push.js
++++ test/parallel/test-http2-respond-file-range.js
++++ test/parallel/test-http2-respond-file-with-pipe.js
++++ test/parallel/test-http2-respond-file.js
++++ test/parallel/test-http2-respond-nghttperrors.js
++++ test/parallel/test-http2-respond-no-data.js
++++ test/parallel/test-http2-respond-with-fd-errors.js
++++ test/parallel/test-http2-respond-with-file-connection-abort.js
++++ test/parallel/test-http2-response-splitting.js
++++ test/parallel/test-http2-sent-headers.js
++++ test/parallel/test-http2-serve-file.js
++++ test/parallel/test-http2-server-close-callback.js
++++ test/parallel/test-http2-server-errors.js
++++ test/parallel/test-http2-server-http1-client.js
++++ test/parallel/test-http2-server-push-disabled.js
++++ test/parallel/test-http2-server-push-stream-errors-args.js
++++ test/parallel/test-http2-server-push-stream-errors.js
++++ test/parallel/test-http2-server-push-stream-head.js
++++ test/parallel/test-http2-server-push-stream.js
++++ test/parallel/test-http2-server-rst-before-respond.js
++++ test/parallel/test-http2-server-rst-stream.js
++++ test/parallel/test-http2-server-session-destroy.js
++++ test/parallel/test-http2-server-sessionerror.js
++++ test/parallel/test-http2-server-set-header.js
++++ test/parallel/test-http2-server-settimeout-no-callback.js
++++ test/parallel/test-http2-server-shutdown-before-respond.js
++++ test/parallel/test-http2-server-shutdown-options-errors.js
++++ test/parallel/test-http2-server-shutdown-redundant.js
++++ test/parallel/test-http2-server-socket-destroy.js
++++ test/parallel/test-http2-server-startup.js
++++ test/parallel/test-http2-server-stream-session-destroy.js
++++ test/parallel/test-http2-server-timeout.js
++++ test/parallel/test-http2-session-gc-while-write-scheduled.js
++++ test/parallel/test-http2-session-settings.js
++++ test/parallel/test-http2-session-stream-state.js
++++ test/parallel/test-http2-session-timeout.js
++++ test/parallel/test-http2-session-unref.js
++++ test/parallel/test-http2-settings-unsolicited-ack.js
++++ test/parallel/test-http2-short-stream-client-server.js
++++ test/parallel/test-http2-single-headers.js
++++ test/parallel/test-http2-socket-proxy.js
++++ test/parallel/test-http2-status-code-invalid.js
++++ test/parallel/test-http2-status-code.js
++++ test/parallel/test-http2-stream-client.js
++++ test/parallel/test-http2-stream-destroy-event-order.js
++++ test/parallel/test-http2-stream-removelisteners-after-close.js
++++ test/parallel/test-http2-timeouts.js
++++ test/parallel/test-http2-tls-disconnect.js
++++ test/parallel/test-http2-too-large-headers.js
++++ test/parallel/test-http2-too-many-headers.js
++++ test/parallel/test-http2-too-many-settings.js
++++ test/parallel/test-http2-too-many-streams.js
++++ test/parallel/test-http2-trailers.js
++++ test/parallel/test-http2-unbound-socket-proxy.js
++++ test/parallel/test-http2-util-assert-valid-pseudoheader.js
++++ test/parallel/test-http2-util-asserts.js
++++ test/parallel/test-http2-util-headers-list.js
++++ test/parallel/test-http2-util-nghttp2error.js
++++ test/parallel/test-http2-util-update-options-buffer.js
++++ test/parallel/test-http2-window-size.js
++++ test/parallel/test-http2-write-callbacks.js
++++ test/parallel/test-http2-write-empty-string.js
++++ test/parallel/test-http2-write-finishes-after-stream-destroy.js
++++ test/parallel/test-http2-zero-length-header.js
++++ test/parallel/test-http2-zero-length-write.js
++++ test/parallel/test-https-agent-additional-options.js
++++ test/parallel/test-https-agent-constructor.js
++++ test/parallel/test-https-agent-create-connection.js
++++ test/parallel/test-https-agent-disable-session-reuse.js
++++ test/parallel/test-https-agent-getname.js
++++ test/parallel/test-https-agent-keylog.js
++++ test/parallel/test-https-agent-servername.js
++++ test/parallel/test-https-agent-session-eviction.js
++++ test/parallel/test-https-agent-session-reuse.js
++++ test/parallel/test-https-agent-sni.js
++++ test/parallel/test-https-agent-sockets-leak.js
++++ test/parallel/test-https-argument-of-creating.js
++++ test/parallel/test-https-client-override-global-agent.js
++++ test/parallel/test-https-close.js
++++ test/parallel/test-https-connect-address-family.js
++++ test/parallel/test-https-host-headers.js
++++ test/parallel/test-https-max-headers-count.js
++++ test/parallel/test-https-options-boolean-check.js
++++ test/parallel/test-https-request-arguments.js
++++ test/parallel/test-https-resume-after-renew.js
++++ test/parallel/test-https-server-options-incoming-message.js
++++ test/parallel/test-https-server-options-server-response.js
++++ test/parallel/test-https-slow-headers.js
++++ test/parallel/test-https-unix-socket-self-signed.js
++++ test/parallel/test-icu-data-dir.js
++++ test/parallel/test-icu-minimum-version.js
++++ test/parallel/test-icu-punycode.js
++++ test/parallel/test-icu-transcode.js
++++ test/parallel/test-inspect-async-hook-setup-at-inspect.js
++++ test/parallel/test-inspect-publish-uid.js
++++ test/parallel/test-inspect-support-for-node_options.js
++++ test/parallel/test-inspector-async-hook-after-done.js
++++ test/parallel/test-inspector-bindings.js
++++ test/parallel/test-inspector-connect-main-thread.js
++++ test/parallel/test-inspector-console-top-frame.js
++++ test/parallel/test-inspector-esm.js
++++ test/parallel/test-inspector-heap-allocation-tracker.js
++++ test/parallel/test-inspector-heapdump.js
++++ test/parallel/test-inspector-multisession-js.js
++++ test/parallel/test-inspector-multisession-ws.js
++++ test/parallel/test-inspector-port-zero-cluster.js
++++ test/parallel/test-inspector-reported-host.js
++++ test/parallel/test-inspector-tracing-domain.js
++++ test/parallel/test-inspector-vm-global-accessors-getter-sideeffect.js
++++ test/parallel/test-inspector-vm-global-accessors-sideeffects.js
++++ test/parallel/test-inspector-wait-for-connection.js
++++ test/parallel/test-inspector-waiting-for-disconnect.js
++++ test/parallel/test-inspector-workers-flat-list.js
++++ test/parallel/test-instanceof.js
++++ test/parallel/test-internal-assert.js
++++ test/parallel/test-internal-dtrace.js
++++ test/parallel/test-internal-error-original-names.js
++++ test/parallel/test-internal-errors.js
++++ test/parallel/test-internal-fs-syncwritestream.js
++++ test/parallel/test-internal-fs.js
++++ test/parallel/test-internal-module-map-asserts.js
++++ test/parallel/test-internal-module-require.js
++++ test/parallel/test-internal-module-wrap.js
++++ test/parallel/test-internal-modules.js
++++ test/parallel/test-internal-process-binding.js
++++ test/parallel/test-internal-socket-list-receive.js
++++ test/parallel/test-internal-socket-list-send.js
++++ test/parallel/test-internal-util-assertCrypto.js
++++ test/parallel/test-internal-util-classwrapper.js
++++ test/parallel/test-internal-util-decorate-error-stack.js
++++ test/parallel/test-internal-util-helpers.js
++++ test/parallel/test-internal-util-normalizeencoding.js
++++ test/parallel/test-internal-util-weakreference.js
++++ test/parallel/test-intl-v8BreakIterator.js
++++ test/parallel/test-js-stream-call-properties.js
++++ test/parallel/test-kill-segfault-freebsd.js
++++ test/parallel/test-loaders-hidden-from-users.js
++++ test/parallel/test-loaders-unknown-builtin-module.mjs
++++ test/parallel/test-math-random.js
++++ test/parallel/test-memory-usage-emfile.js
++++ test/parallel/test-module-binding.js
++++ test/parallel/test-module-builtin.js
++++ test/parallel/test-module-children.js
++++ test/parallel/test-module-circular-symlinks.js
++++ test/parallel/test-module-cjs-helpers.js
++++ test/parallel/test-module-create-require-from-directory.js
++++ test/parallel/test-module-create-require.js
++++ test/parallel/test-module-loading-deprecated.js
++++ test/parallel/test-module-loading-globalpaths.js
++++ test/parallel/test-module-main-extension-lookup.js
++++ test/parallel/test-module-main-fail.js
++++ test/parallel/test-module-main-preserve-symlinks-fail.js
++++ test/parallel/test-module-multi-extensions.js
++++ test/parallel/test-module-readonly.js
++++ test/parallel/test-module-relative-lookup.js
++++ test/parallel/test-module-run-main-monkey-patch.js
++++ test/parallel/test-module-symlinked-peer-modules.js
++++ test/parallel/test-module-version.js
++++ test/parallel/test-module-wrap.js
++++ test/parallel/test-module-wrapper.js
++++ test/parallel/test-net-access-byteswritten.js
++++ test/parallel/test-net-better-error-messages-listen-path.js
++++ test/parallel/test-net-better-error-messages-listen.js
++++ test/parallel/test-net-better-error-messages-path.js
++++ test/parallel/test-net-better-error-messages-port-hostname.js
++++ test/parallel/test-net-bytes-read.js
++++ test/parallel/test-net-bytes-written-large.js
++++ test/parallel/test-net-client-bind-twice.js
++++ test/parallel/test-net-connect-after-destroy.js
++++ test/parallel/test-net-connect-call-socket-connect.js
++++ test/parallel/test-net-connect-destroy.js
++++ test/parallel/test-net-connect-immediate-destroy.js
++++ test/parallel/test-net-connect-options-fd.js
++++ test/parallel/test-net-connect-options-path.js
++++ test/parallel/test-net-deprecated-setsimultaneousaccepts.js
++++ test/parallel/test-net-dns-custom-lookup.js
++++ test/parallel/test-net-dns-lookup-skip.js
++++ test/parallel/test-net-end-close.js
++++ test/parallel/test-net-internal.js
++++ test/parallel/test-net-isipv4.js
++++ test/parallel/test-net-isipv6.js
++++ test/parallel/test-net-listen-after-destroying-stdin.js
++++ test/parallel/test-net-listen-close-server-callback-is-not-function.js
++++ test/parallel/test-net-listen-exclusive-random-ports.js
++++ test/parallel/test-net-listen-invalid-port.js
++++ test/parallel/test-net-listen-ipv6only.js
++++ test/parallel/test-net-listening.js
++++ test/parallel/test-net-normalize-args.js
++++ test/parallel/test-net-onread-static-buffer.js
++++ test/parallel/test-net-options-lookup.js
++++ test/parallel/test-net-persistent-keepalive.js
++++ test/parallel/test-net-persistent-nodelay.js
++++ test/parallel/test-net-persistent-ref-unref.js
++++ test/parallel/test-net-server-call-listen-multiple-times.js
++++ test/parallel/test-net-server-capture-rejection.js
++++ test/parallel/test-net-server-connections-child-null.js
++++ test/parallel/test-net-server-listen-handle.js
++++ test/parallel/test-net-server-listen-options.js
++++ test/parallel/test-net-server-listen-path.js
++++ test/parallel/test-net-server-max-connections-close-makes-more-available.js
++++ test/parallel/test-net-server-options.js
++++ test/parallel/test-net-server-simultaneous-accepts-produce-warning-once.js
++++ test/parallel/test-net-server-unref-persistent.js
++++ test/parallel/test-net-socket-byteswritten.js
++++ test/parallel/test-net-socket-close-after-end.js
++++ test/parallel/test-net-socket-connect-without-cb.js
++++ test/parallel/test-net-socket-connecting.js
++++ test/parallel/test-net-socket-constructor.js
++++ test/parallel/test-net-socket-destroy-send.js
++++ test/parallel/test-net-socket-end-before-connect.js
++++ test/parallel/test-net-socket-end-callback.js
++++ test/parallel/test-net-socket-local-address.js
++++ test/parallel/test-net-socket-no-halfopen-enforcer.js
++++ test/parallel/test-net-socket-ready-without-cb.js
++++ test/parallel/test-net-socket-setnodelay.js
++++ test/parallel/test-net-socket-write-after-close.js
++++ test/parallel/test-net-socket-write-error.js
++++ test/parallel/test-net-sync-cork.js
++++ test/parallel/test-net-timeout-no-handle.js
++++ test/parallel/test-net-write-after-end-nt.js
++++ test/parallel/test-net-write-fully-async-buffer.js
++++ test/parallel/test-net-write-fully-async-hex-string.js
++++ test/parallel/test-next-tick-fixed-queue-regression.js
++++ test/parallel/test-next-tick-when-exiting.js
++++ test/parallel/test-no-node-snapshot.js
++++ test/parallel/test-npm-install.js
++++ test/parallel/test-npm-version.js
++++ test/parallel/test-openssl-ca-options.js
++++ test/parallel/test-os-checked-function.js
++++ test/parallel/test-os-eol.js
++++ test/parallel/test-os-homedir-no-envvar.js
++++ test/parallel/test-os-process-priority.js
++++ test/parallel/test-os-userinfo-handles-getter-errors.js
++++ test/parallel/test-outgoing-message-pipe.js
++++ test/parallel/test-path-basename.js
++++ test/parallel/test-path-dirname.js
++++ test/parallel/test-path-extname.js
++++ test/parallel/test-path-isabsolute.js
++++ test/parallel/test-path-join.js
++++ test/parallel/test-path-normalize.js
++++ test/parallel/test-path-relative.js
++++ test/parallel/test-path-resolve.js
++++ test/parallel/test-path-zero-length-strings.js
++++ test/parallel/test-pending-deprecation.js
++++ test/parallel/test-performance-function.js
++++ test/parallel/test-performance-gc.js
++++ test/parallel/test-performanceobserver.js
++++ test/parallel/test-pipe-address.js
++++ test/parallel/test-pipe-head.js
++++ test/parallel/test-pipe-outgoing-message-data-emitted-after-ended.js
++++ test/parallel/test-pipe-stream.js
++++ test/parallel/test-pipe-unref.js
++++ test/parallel/test-pipe-writev.js
++++ test/parallel/test-policy-dependencies.js
++++ test/parallel/test-policy-integrity-flag.js
++++ test/parallel/test-policy-integrity.js
++++ test/parallel/test-policy-parse-integrity.js
++++ test/parallel/test-preload-print-process-argv.js
++++ test/parallel/test-preload.js
++++ test/parallel/test-priority-queue.js
++++ test/parallel/test-process-abort.js
++++ test/parallel/test-process-assert.js
++++ test/parallel/test-process-binding-internalbinding-whitelist.js
++++ test/parallel/test-process-binding.js
++++ test/parallel/test-process-chdir-errormessage.js
++++ test/parallel/test-process-chdir.js
++++ test/parallel/test-process-constants-noatime.js
++++ test/parallel/test-process-cpuUsage.js
++++ test/parallel/test-process-dlopen-undefined-exports.js
++++ test/parallel/test-process-emit-warning-from-native.js
++++ test/parallel/test-process-emit.js
++++ test/parallel/test-process-emitwarning.js
++++ test/parallel/test-process-env-allowed-flags-are-documented.js
++++ test/parallel/test-process-env-allowed-flags.js
++++ test/parallel/test-process-env-deprecation.js
++++ test/parallel/test-process-env-sideeffects.js
++++ test/parallel/test-process-env-symbols.js
++++ test/parallel/test-process-env-windows-error-reset.js
++++ test/parallel/test-process-euid-egid.js
++++ test/parallel/test-process-exception-capture-errors.js
++++ test/parallel/test-process-exception-capture-should-abort-on-uncaught-setflagsfromstring.js
++++ test/parallel/test-process-exception-capture-should-abort-on-uncaught.js
++++ test/parallel/test-process-exception-capture.js
++++ test/parallel/test-process-execpath.js
++++ test/parallel/test-process-exit-handler.js
++++ test/parallel/test-process-external-stdio-close-spawn.js
++++ test/parallel/test-process-external-stdio-close.js
++++ test/parallel/test-process-features.js
++++ test/parallel/test-process-getactivehandles.js
++++ test/parallel/test-process-getactiverequests.js
++++ test/parallel/test-process-hrtime-bigint.js
++++ test/parallel/test-process-initgroups.js
++++ test/parallel/test-process-no-deprecation.js
++++ test/parallel/test-process-ppid.js
++++ test/parallel/test-process-prototype.js
++++ test/parallel/test-process-really-exit.js
++++ test/parallel/test-process-redirect-warnings-env.js
++++ test/parallel/test-process-redirect-warnings.js
++++ test/parallel/test-process-release.js
++++ test/parallel/test-process-remove-all-signal-listeners.js
++++ test/parallel/test-process-setgroups.js
++++ test/parallel/test-process-title-cli.js
++++ test/parallel/test-process-umask-mask.js
++++ test/parallel/test-process-versions.js
++++ test/parallel/test-process-warning.js
++++ test/parallel/test-promise-handled-rejection-no-warning.js
++++ test/parallel/test-promise-reject-callback-exception.js
++++ test/parallel/test-promise-swallowed-event.js
++++ test/parallel/test-promise-unhandled-error.js
++++ test/parallel/test-promise-unhandled-flag.js
++++ test/parallel/test-promise-unhandled-silent-no-hook.js
++++ test/parallel/test-promise-unhandled-silent.js
++++ test/parallel/test-promise-unhandled-warn-no-hook.js
++++ test/parallel/test-promise-unhandled-warn.js
++++ test/parallel/test-promises-unhandled-proxy-rejections.js
++++ test/parallel/test-promises-unhandled-rejections.js
++++ test/parallel/test-promises-unhandled-symbol-rejections.js
++++ test/parallel/test-promises-warning-on-unhandled-rejection.js
++++ test/parallel/test-querystring-escape.js
++++ test/parallel/test-querystring-maxKeys-non-finite.js
++++ test/parallel/test-querystring-multichar-separator.js
++++ test/parallel/test-queue-microtask-uncaught-asynchooks.js
++++ test/parallel/test-queue-microtask.js
++++ test/parallel/test-readable-from.js
++++ test/parallel/test-readable-large-hwm.js
++++ test/parallel/test-readable-single-end.js
++++ test/parallel/test-readline-async-iterators-backpressure.js
++++ test/parallel/test-readline-async-iterators-destroy.js
++++ test/parallel/test-readline-async-iterators.js
++++ test/parallel/test-readline-csi.js
++++ test/parallel/test-readline-emit-keypress-events.js
++++ test/parallel/test-readline-interface-escapecodetimeout.js
++++ test/parallel/test-readline-keys.js
++++ test/parallel/test-readline-position.js
++++ test/parallel/test-readline-reopen.js
++++ test/parallel/test-readline-undefined-columns.js
++++ test/parallel/test-readline.js
++++ test/parallel/test-ref-unref-return.js
++++ test/parallel/test-release-npm.js
++++ test/parallel/test-repl-cli-eval.js
++++ test/parallel/test-repl-colors.js
++++ test/parallel/test-repl-context.js
++++ test/parallel/test-repl-definecommand.js
++++ test/parallel/test-repl-deprecations.js
++++ test/parallel/test-repl-editor.js
++++ test/parallel/test-repl-empty.js
++++ test/parallel/test-repl-envvars.js
++++ test/parallel/test-repl-eval-scope.js
++++ test/parallel/test-repl-eval.js
++++ test/parallel/test-repl-function-definition-edge-case.js
++++ test/parallel/test-repl-history-navigation.js
++++ test/parallel/test-repl-history-perm.js
++++ test/parallel/test-repl-import-referrer.js
++++ test/parallel/test-repl-inspect-defaults.js
++++ test/parallel/test-repl-inspector.js
++++ test/parallel/test-repl-let-process.js
++++ test/parallel/test-repl-load-multiline.js
++++ test/parallel/test-repl-memory-deprecation.js
++++ test/parallel/test-repl-mode.js
++++ test/parallel/test-repl-multiline.js
++++ test/parallel/test-repl-null-thrown.js
++++ test/parallel/test-repl-null.js
++++ test/parallel/test-repl-persistent-history.js
++++ test/parallel/test-repl-preprocess-top-level-await.js
++++ test/parallel/test-repl-pretty-custom-stack.js
++++ test/parallel/test-repl-pretty-stack.js
++++ test/parallel/test-repl-programmatic-history.js
++++ test/parallel/test-repl-recoverable.js
++++ test/parallel/test-repl-require-after-write.js
++++ test/parallel/test-repl-require-context.js
++++ test/parallel/test-repl-require.js
++++ test/parallel/test-repl-sigint-nested-eval.js
++++ test/parallel/test-repl-sigint.js
++++ test/parallel/test-repl-syntax-error-stack.js
++++ test/parallel/test-repl-tab-complete-crash.js
++++ test/parallel/test-repl-tab-complete-nested-repls.js
++++ test/parallel/test-repl-tab-complete-no-warn.js
++++ test/parallel/test-repl-tab.js
++++ test/parallel/test-repl-throw-null-or-undefined.js
++++ test/parallel/test-repl-top-level-await.js
++++ test/parallel/test-repl-turn-off-editor-mode.js
++++ test/parallel/test-repl-uncaught-exception-async.js
++++ test/parallel/test-repl-uncaught-exception-standalone.js
++++ test/parallel/test-repl-uncaught-exception.js
++++ test/parallel/test-repl-underscore.js
++++ test/parallel/test-repl-unexpected-token-recoverable.js
++++ test/parallel/test-repl-use-global.js
++++ test/parallel/test-require-dot.js
++++ test/parallel/test-require-extension-over-directory.js
++++ test/parallel/test-require-extensions-main.js
++++ test/parallel/test-require-invalid-main-no-exports.js
++++ test/parallel/test-require-invalid-package.js
++++ test/parallel/test-require-long-path.js
++++ test/parallel/test-require-mjs.js
++++ test/parallel/test-require-nul.js
++++ test/parallel/test-require-process.js
++++ test/parallel/test-require-symlink.js
++++ test/parallel/test-require-unicode.js
++++ test/parallel/test-resource-usage.js
++++ test/parallel/test-safe-get-env.js
++++ test/parallel/test-security-revert-unknown.js
++++ test/parallel/test-setproctitle.js
++++ test/parallel/test-sigint-infinite-loop.js
++++ test/parallel/test-signal-args.js
++++ test/parallel/test-signal-handler-remove-on-exit.js
++++ test/parallel/test-signal-safety.js
++++ test/parallel/test-signal-unregister.js
++++ test/parallel/test-socket-address.js
++++ test/parallel/test-socket-write-after-fin-error.js
++++ test/parallel/test-socket-write-after-fin.js
++++ test/parallel/test-source-map.js
++++ test/parallel/test-spawn-cmd-named-pipe.js
++++ test/parallel/test-stdin-child-proc.js
++++ test/parallel/test-stdin-pipe-large.js
++++ test/parallel/test-stdin-pipe-resume.js
++++ test/parallel/test-stdin-script-child-option.js
++++ test/parallel/test-stdin-script-child.js
++++ test/parallel/test-stdio-closed.js
++++ test/parallel/test-stdio-pipe-access.js
++++ test/parallel/test-stdio-pipe-redirect.js
++++ test/parallel/test-stdio-pipe-stderr.js
++++ test/parallel/test-stdout-cannot-be-closed-child-process-pipe.js
++++ test/parallel/test-stdout-close-catch.js
++++ test/parallel/test-stdout-pipeline-destroy.js
++++ test/parallel/test-stdout-stderr-reading.js
++++ test/parallel/test-stdout-to-file.js
++++ test/parallel/test-stream-auto-destroy.js
++++ test/parallel/test-stream-backpressure.js
++++ test/parallel/test-stream-base-prototype-accessors-enumerability.js
++++ test/parallel/test-stream-base-typechecking.js
++++ test/parallel/test-stream-buffer-list.js
++++ test/parallel/test-stream-catch-rejections.js
++++ test/parallel/test-stream-decoder-objectmode.js
++++ test/parallel/test-stream-destroy-event-order.js
++++ test/parallel/test-stream-duplex-destroy.js
++++ test/parallel/test-stream-duplex-end.js
++++ test/parallel/test-stream-duplex-writable-finished.js
++++ test/parallel/test-stream-events-prepend.js
++++ test/parallel/test-stream-finished.js
++++ test/parallel/test-stream-inheritance.js
++++ test/parallel/test-stream-objectmode-undefined.js
++++ test/parallel/test-stream-once-readable-pipe.js
++++ test/parallel/test-stream-pipe-await-drain-manual-resume.js
++++ test/parallel/test-stream-pipe-await-drain-push-while-write.js
++++ test/parallel/test-stream-pipe-await-drain.js
++++ test/parallel/test-stream-pipe-cleanup-pause.js
++++ test/parallel/test-stream-pipe-flow-after-unpipe.js
++++ test/parallel/test-stream-pipe-flow.js
++++ test/parallel/test-stream-pipe-manual-resume.js
++++ test/parallel/test-stream-pipe-multiple-pipes.js
++++ test/parallel/test-stream-pipe-same-destination-twice.js
++++ test/parallel/test-stream-pipe-unpipe-streams.js
++++ test/parallel/test-stream-pipe-without-listenerCount.js
++++ test/parallel/test-stream-pipeline-http2.js
++++ test/parallel/test-stream-pipeline-queued-end-in-destroy.js
++++ test/parallel/test-stream-pipeline.js
++++ test/parallel/test-stream-preprocess.js
++++ test/parallel/test-stream-readable-async-iterators.js
++++ test/parallel/test-stream-readable-constructor-set-methods.js
++++ test/parallel/test-stream-readable-data.js
++++ test/parallel/test-stream-readable-destroy.js
++++ test/parallel/test-stream-readable-emit-readable-short-stream.js
++++ test/parallel/test-stream-readable-emittedReadable.js
++++ test/parallel/test-stream-readable-ended.js
++++ test/parallel/test-stream-readable-hwm-0-async.js
++++ test/parallel/test-stream-readable-hwm-0-no-flow-data.js
++++ test/parallel/test-stream-readable-hwm-0.js
++++ test/parallel/test-stream-readable-infinite-read.js
++++ test/parallel/test-stream-readable-invalid-chunk.js
++++ test/parallel/test-stream-readable-needReadable.js
++++ test/parallel/test-stream-readable-no-unneeded-readable.js
++++ test/parallel/test-stream-readable-object-multi-push-async.js
++++ test/parallel/test-stream-readable-pause-and-resume.js
++++ test/parallel/test-stream-readable-readable-then-resume.js
++++ test/parallel/test-stream-readable-reading-readingMore.js
++++ test/parallel/test-stream-readable-resume-hwm.js
++++ test/parallel/test-stream-readable-resumeScheduled.js
++++ test/parallel/test-stream-readable-setEncoding-existing-buffers.js
++++ test/parallel/test-stream-readable-setEncoding-null.js
++++ test/parallel/test-stream-readable-unshift.js
++++ test/parallel/test-stream-readable-with-unimplemented-_read.js
++++ test/parallel/test-stream-readableListening-state.js
++++ test/parallel/test-stream-transform-callback-twice.js
++++ test/parallel/test-stream-transform-constructor-set-methods.js
++++ test/parallel/test-stream-transform-destroy.js
++++ test/parallel/test-stream-transform-final-sync.js
++++ test/parallel/test-stream-transform-final.js
++++ test/parallel/test-stream-transform-flush-data.js
++++ test/parallel/test-stream-transform-split-highwatermark.js
++++ test/parallel/test-stream-uint8array.js
++++ test/parallel/test-stream-unpipe-event.js
++++ test/parallel/test-stream-wrap-drain.js
++++ test/parallel/test-stream-wrap-encoding.js
++++ test/parallel/test-stream-wrap.js
++++ test/parallel/test-stream-writable-clear-buffer.js
++++ test/parallel/test-stream-writable-constructor-set-methods.js
++++ test/parallel/test-stream-writable-destroy.js
++++ test/parallel/test-stream-writable-ended-state.js
++++ test/parallel/test-stream-writable-finished-state.js
++++ test/parallel/test-stream-writable-finished.js
++++ test/parallel/test-stream-writable-invalid-chunk.js
++++ test/parallel/test-stream-writable-needdrain-state.js
++++ test/parallel/test-stream-writable-null.js
++++ test/parallel/test-stream-writable-properties.js
++++ test/parallel/test-stream-writable-samecb-singletick.js
++++ test/parallel/test-stream-writable-write-cb-twice.js
++++ test/parallel/test-stream-writable-write-writev-finish.js
++++ test/parallel/test-stream-writableState-ending.js
++++ test/parallel/test-stream-writableState-uncorked-bufferedRequestCount.js
++++ test/parallel/test-stream-write-destroy.js
++++ test/parallel/test-stream-write-drain.js
++++ test/parallel/test-stream-write-final.js
++++ test/parallel/test-stream2-decode-partial.js
++++ test/parallel/test-stream2-httpclient-response-end.js
++++ test/parallel/test-stream3-cork-end.js
++++ test/parallel/test-stream3-cork-uncork.js
++++ test/parallel/test-streams-highwatermark.js
++++ test/parallel/test-string-decoder-fuzz.js
++++ test/parallel/test-sync-fileread.js
++++ test/parallel/test-sync-io-option.js
++++ test/parallel/test-tcp-wrap-connect.js
++++ test/parallel/test-tcp-wrap-listen.js
++++ test/parallel/test-tick-processor-arguments.js
++++ test/parallel/test-tick-processor-version-check.js
++++ test/parallel/test-timer-immediate.js
++++ test/parallel/test-timers-active.js
++++ test/parallel/test-timers-api-refs.js
++++ test/parallel/test-timers-args.js
++++ test/parallel/test-timers-clear-null-does-not-throw-error.js
++++ test/parallel/test-timers-clear-timeout-interval-equivalent.js
++++ test/parallel/test-timers-clearImmediate.js
++++ test/parallel/test-timers-destroyed.js
++++ test/parallel/test-timers-enroll-invalid-msecs.js
++++ test/parallel/test-timers-enroll-second-time.js
++++ test/parallel/test-timers-immediate-queue-throw.js
++++ test/parallel/test-timers-immediate-unref-nested-once.js
++++ test/parallel/test-timers-immediate-unref-simple.js
++++ test/parallel/test-timers-immediate-unref.js
++++ test/parallel/test-timers-interval-throw.js
++++ test/parallel/test-timers-max-duration-warning.js
++++ test/parallel/test-timers-nested.js
++++ test/parallel/test-timers-next-tick.js
++++ test/parallel/test-timers-now.js
++++ test/parallel/test-timers-promisified.js
++++ test/parallel/test-timers-refresh-in-callback.js
++++ test/parallel/test-timers-refresh.js
++++ test/parallel/test-timers-reset-process-domain-on-throw.js
++++ test/parallel/test-timers-same-timeout-wrong-list-deleted.js
++++ test/parallel/test-timers-setimmediate-infinite-loop.js
++++ test/parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js
++++ test/parallel/test-timers-throw-when-cb-not-function.js
++++ test/parallel/test-timers-timeout-to-interval.js
++++ test/parallel/test-timers-timeout-with-non-integer.js
++++ test/parallel/test-timers-unenroll-unref-interval.js
++++ test/parallel/test-timers-unref-active.js
++++ test/parallel/test-timers-unref-remove-other-unref-timers-only-one-fires.js
++++ test/parallel/test-timers-unref-remove-other-unref-timers.js
++++ test/parallel/test-timers-unref-throw-then-ref.js
++++ test/parallel/test-timers-unrefd-interval-still-fires.js
++++ test/parallel/test-timers-unrefed-in-beforeexit.js
++++ test/parallel/test-timers-unrefed-in-callback.js
++++ test/parallel/test-timers-user-call.js
++++ test/parallel/test-tls-addca.js
++++ test/parallel/test-tls-alert-handling.js
++++ test/parallel/test-tls-alpn-server-client.js
++++ test/parallel/test-tls-async-cb-after-socket-end.js
++++ test/parallel/test-tls-basic-validations.js
++++ test/parallel/test-tls-buffersize.js
++++ test/parallel/test-tls-ca-concat.js
++++ test/parallel/test-tls-canonical-ip.js
++++ test/parallel/test-tls-cert-chains-concat.js
++++ test/parallel/test-tls-cert-chains-in-ca.js
++++ test/parallel/test-tls-cert-ext-encoding.js
++++ test/parallel/test-tls-cipher-list.js
++++ test/parallel/test-tls-cli-max-version-1.2.js
++++ test/parallel/test-tls-cli-max-version-1.3.js
++++ test/parallel/test-tls-cli-min-max-conflict.js
++++ test/parallel/test-tls-cli-min-version-1.0.js
++++ test/parallel/test-tls-cli-min-version-1.1.js
++++ test/parallel/test-tls-cli-min-version-1.2.js
++++ test/parallel/test-tls-cli-min-version-1.3.js
++++ test/parallel/test-tls-client-auth.js
++++ test/parallel/test-tls-client-getephemeralkeyinfo.js
++++ test/parallel/test-tls-client-mindhsize.js
++++ test/parallel/test-tls-client-reject-12.js
++++ test/parallel/test-tls-client-renegotiation-13.js
++++ test/parallel/test-tls-client-resume-12.js
++++ test/parallel/test-tls-clientcertengine-invalid-arg-type.js
++++ test/parallel/test-tls-clientcertengine-unsupported.js
++++ test/parallel/test-tls-close-error.js
++++ test/parallel/test-tls-close-event-after-write.js
++++ test/parallel/test-tls-cnnic-whitelist.js
++++ test/parallel/test-tls-connect-address-family.js
++++ test/parallel/test-tls-connect-allow-half-open-option.js
++++ test/parallel/test-tls-connect-hints-option.js
++++ test/parallel/test-tls-connect-no-host.js
++++ test/parallel/test-tls-connect-secure-context.js
++++ test/parallel/test-tls-connect-stream-writes.js
++++ test/parallel/test-tls-connect-timeout-option.js
++++ test/parallel/test-tls-delayed-attach-error.js
++++ test/parallel/test-tls-destroy-stream-12.js
++++ test/parallel/test-tls-destroy-stream.js
++++ test/parallel/test-tls-destroy-whilst-write.js
++++ test/parallel/test-tls-disable-renegotiation.js
++++ test/parallel/test-tls-ecdh-auto.js
++++ test/parallel/test-tls-ecdh-multiple.js
++++ test/parallel/test-tls-empty-sni-context.js
++++ test/parallel/test-tls-enable-keylog-cli.js
++++ test/parallel/test-tls-enable-trace-cli.js
++++ test/parallel/test-tls-enable-trace.js
++++ test/parallel/test-tls-env-bad-extra-ca.js
++++ test/parallel/test-tls-env-extra-ca-file-load.js
++++ test/parallel/test-tls-env-extra-ca-no-crypto.js
++++ test/parallel/test-tls-env-extra-ca.js
++++ test/parallel/test-tls-error-servername.js
++++ test/parallel/test-tls-external-accessor.js
++++ test/parallel/test-tls-finished.js
++++ test/parallel/test-tls-generic-stream.js
++++ test/parallel/test-tls-getprotocol.js
++++ test/parallel/test-tls-handshake-error.js
++++ test/parallel/test-tls-handshake-exception.js
++++ test/parallel/test-tls-honorcipherorder.js
++++ test/parallel/test-tls-ip-servername-deprecation.js
++++ test/parallel/test-tls-js-stream.js
++++ test/parallel/test-tls-junk-server.js
++++ test/parallel/test-tls-keyengine-invalid-arg-type.js
++++ test/parallel/test-tls-keyengine-unsupported.js
++++ test/parallel/test-tls-keylog-tlsv13.js
++++ test/parallel/test-tls-legacy-deprecated.js
++++ test/parallel/test-tls-min-max-version.js
++++ test/parallel/test-tls-multi-pfx.js
++++ test/parallel/test-tls-multiple-cas-as-string.js
++++ test/parallel/test-tls-net-connect-prefer-path.js
++++ test/parallel/test-tls-net-socket-keepalive-12.js
++++ test/parallel/test-tls-net-socket-keepalive.js
++++ test/parallel/test-tls-no-sslv23.js
++++ test/parallel/test-tls-no-sslv3.js
++++ test/parallel/test-tls-on-empty-socket.js
++++ test/parallel/test-tls-options-boolean-check.js
++++ test/parallel/test-tls-parse-cert-string.js
++++ test/parallel/test-tls-pfx-authorizationerror.js
++++ test/parallel/test-tls-psk-circuit.js
++++ test/parallel/test-tls-psk-errors.js
++++ test/parallel/test-tls-psk-server.js
++++ test/parallel/test-tls-retain-handle-no-abort.js
++++ test/parallel/test-tls-root-certificates.js
++++ test/parallel/test-tls-securepair-fiftharg.js
++++ test/parallel/test-tls-securepair-leak.js
++++ test/parallel/test-tls-server-capture-rejection.js
++++ test/parallel/test-tls-server-connection-server.js
++++ test/parallel/test-tls-server-failed-handshake-emits-clienterror.js
++++ test/parallel/test-tls-server-parent-constructor-options.js
++++ test/parallel/test-tls-server-setoptions-clientcertengine.js
++++ test/parallel/test-tls-set-ciphers-error.js
++++ test/parallel/test-tls-set-ciphers.js
++++ test/parallel/test-tls-set-secure-context.js
++++ test/parallel/test-tls-set-sigalgs.js
++++ test/parallel/test-tls-sni-servername.js
++++ test/parallel/test-tls-snicallback-error.js
++++ test/parallel/test-tls-socket-allow-half-open-option.js
++++ test/parallel/test-tls-socket-close.js
++++ test/parallel/test-tls-socket-constructor-alpn-options-parsing.js
++++ test/parallel/test-tls-socket-default-options.js
++++ test/parallel/test-tls-socket-destroy.js
++++ test/parallel/test-tls-socket-failed-handshake-emits-error.js
++++ test/parallel/test-tls-socket-snicallback-without-server.js
++++ test/parallel/test-tls-startcom-wosign-whitelist.js
++++ test/parallel/test-tls-starttls-server.js
++++ test/parallel/test-tls-streamwrap-buffersize.js
++++ test/parallel/test-tls-ticket-12.js
++++ test/parallel/test-tls-tlswrap-segfault.js
++++ test/parallel/test-tls-translate-peer-certificate.js
++++ test/parallel/test-tls-transport-destroy-after-own-gc.js
++++ test/parallel/test-tls-wrap-econnreset-localaddress.js
++++ test/parallel/test-tls-wrap-econnreset-pipe.js
++++ test/parallel/test-tls-wrap-econnreset-socket.js
++++ test/parallel/test-tls-wrap-econnreset.js
++++ test/parallel/test-tls-wrap-event-emmiter.js
++++ test/parallel/test-tls-wrap-no-abort.js
++++ test/parallel/test-tls-wrap-timeout.js
++++ test/parallel/test-tls-write-error.js
++++ test/parallel/test-tls-writewrap-leak.js
++++ test/parallel/test-trace-events-all.js
++++ test/parallel/test-trace-events-api-worker-disabled.js
++++ test/parallel/test-trace-events-api.js
++++ test/parallel/test-trace-events-async-hooks-dynamic.js
++++ test/parallel/test-trace-events-async-hooks-worker.js
++++ test/parallel/test-trace-events-async-hooks.js
++++ test/parallel/test-trace-events-binding.js
++++ test/parallel/test-trace-events-bootstrap.js
++++ test/parallel/test-trace-events-category-used.js
++++ test/parallel/test-trace-events-console.js
++++ test/parallel/test-trace-events-dynamic-enable-workers-disabled.js
++++ test/parallel/test-trace-events-dynamic-enable.js
++++ test/parallel/test-trace-events-environment.js
++++ test/parallel/test-trace-events-file-pattern.js
++++ test/parallel/test-trace-events-fs-sync.js
++++ test/parallel/test-trace-events-metadata.js
++++ test/parallel/test-trace-events-none.js
++++ test/parallel/test-trace-events-perf.js
++++ test/parallel/test-trace-events-process-exit.js
++++ test/parallel/test-trace-events-promises.js
++++ test/parallel/test-trace-events-v8.js
++++ test/parallel/test-trace-events-vm.js
++++ test/parallel/test-trace-events-worker-metadata.js
++++ test/parallel/test-trace-exit.js
++++ test/parallel/test-tracing-no-crash.js
++++ test/parallel/test-tty-backwards-api.js
++++ test/parallel/test-tty-stdin-end.js
++++ test/parallel/test-ttywrap-invalid-fd.js
++++ test/parallel/test-ttywrap-stack.js
++++ test/parallel/test-unhandled-exception-rethrow-error.js
++++ test/parallel/test-url-domain-ascii-unicode.js
++++ test/parallel/test-url-fileurltopath.js
++++ test/parallel/test-url-format-invalid-input.js
++++ test/parallel/test-url-format-whatwg.js
++++ test/parallel/test-url-format.js
++++ test/parallel/test-url-parse-format.js
++++ test/parallel/test-url-parse-invalid-input.js
++++ test/parallel/test-url-parse-query.js
++++ test/parallel/test-url-pathtofileurl.js
++++ test/parallel/test-util-callbackify.js
++++ test/parallel/test-util-deprecate-invalid-code.js
++++ test/parallel/test-util-deprecate.js
++++ test/parallel/test-util-emit-experimental-warning.js
++++ test/parallel/test-util-inherits.js
++++ test/parallel/test-util-inspect-long-running.js
++++ test/parallel/test-util-inspect-namespace.js
++++ test/parallel/test-util-inspect-proxy.js
++++ test/parallel/test-util-internal.js
++++ test/parallel/test-util-isDeepStrictEqual.js
++++ test/parallel/test-util-primordial-monkeypatching.js
++++ test/parallel/test-util-promisify.js
++++ test/parallel/test-util-sigint-watchdog.js
++++ test/parallel/test-util-sleep.js
++++ test/parallel/test-util-types.js
++++ test/parallel/test-uv-binding-constant.js
++++ test/parallel/test-uv-errno.js
++++ test/parallel/test-uv-unmapped-exception.js
++++ test/parallel/test-v8-coverage.js
++++ test/parallel/test-v8-deserialize-buffer.js
++++ test/parallel/test-v8-flag-type-check.js
++++ test/parallel/test-v8-flags.js
++++ test/parallel/test-v8-serdes.js
++++ test/parallel/test-v8-stats.js
++++ test/parallel/test-v8-untrusted-code-mitigations.js
++++ test/parallel/test-v8-version-tag.js
++++ test/parallel/test-vm-api-handles-getter-errors.js
++++ test/parallel/test-vm-attributes-property-not-on-sandbox.js
++++ test/parallel/test-vm-cached-data.js
++++ test/parallel/test-vm-codegen.js
++++ test/parallel/test-vm-createcacheddata.js
++++ test/parallel/test-vm-data-property-writable.js
++++ test/parallel/test-vm-deleting-property.js
++++ test/parallel/test-vm-function-redefinition.js
++++ test/parallel/test-vm-getters.js
++++ test/parallel/test-vm-global-assignment.js
++++ test/parallel/test-vm-global-non-writable-properties.js
++++ test/parallel/test-vm-global-property-interceptors.js
++++ test/parallel/test-vm-indexed-properties.js
++++ test/parallel/test-vm-inherited_properties.js
++++ test/parallel/test-vm-low-stack-space.js
++++ test/parallel/test-vm-module-basic.js
++++ test/parallel/test-vm-module-dynamic-import.js
++++ test/parallel/test-vm-module-dynamic-namespace.js
++++ test/parallel/test-vm-module-errors.js
++++ test/parallel/test-vm-module-import-meta.js
++++ test/parallel/test-vm-module-link.js
++++ test/parallel/test-vm-module-reevaluate.js
++++ test/parallel/test-vm-module-synthetic.js
++++ test/parallel/test-vm-options-validation.js
++++ test/parallel/test-vm-parse-abort-on-uncaught-exception.js
++++ test/parallel/test-vm-preserves-property.js
++++ test/parallel/test-vm-property-not-on-sandbox.js
++++ test/parallel/test-vm-proxies.js
++++ test/parallel/test-vm-proxy-failure-CP.js
++++ test/parallel/test-vm-script-throw-in-tostring.js
++++ test/parallel/test-vm-sigint-existing-handler.js
++++ test/parallel/test-vm-sigint.js
++++ test/parallel/test-vm-strict-assign.js
++++ test/parallel/test-vm-strict-mode.js
++++ test/parallel/test-vm-symbols.js
++++ test/parallel/test-vm-syntax-error-message.js
++++ test/parallel/test-vm-syntax-error-stderr.js
++++ test/parallel/test-warn-sigprof.js
++++ test/parallel/test-warn-stream-wrap.js
++++ test/parallel/test-wasm-simple.js
++++ test/parallel/test-weakref.js
++++ test/parallel/test-whatwg-encoding-custom-api-basics.js
++++ test/parallel/test-whatwg-encoding-custom-fatal-streaming.js
++++ test/parallel/test-whatwg-encoding-custom-internals.js
++++ test/parallel/test-whatwg-encoding-custom-interop.js
++++ test/parallel/test-whatwg-encoding-custom-textdecoder-api-invalid-label.js
++++ test/parallel/test-whatwg-encoding-custom-textdecoder-fatal.js
++++ test/parallel/test-whatwg-encoding-custom-textdecoder-ignorebom.js
++++ test/parallel/test-whatwg-encoding-custom-textdecoder-invalid-arg.js
++++ test/parallel/test-whatwg-encoding-custom-textdecoder-streaming.js
++++ test/parallel/test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js
++++ test/parallel/test-whatwg-encoding-custom-textdecoder.js
++++ test/parallel/test-whatwg-url-constructor.js
++++ test/parallel/test-whatwg-url-custom-deepequal.js
++++ test/parallel/test-whatwg-url-custom-domainto.js
++++ test/parallel/test-whatwg-url-custom-global.js
++++ test/parallel/test-whatwg-url-custom-href-side-effect.js
++++ test/parallel/test-whatwg-url-custom-inspect.js
++++ test/parallel/test-whatwg-url-custom-parsing.js
++++ test/parallel/test-whatwg-url-custom-properties.js
++++ test/parallel/test-whatwg-url-custom-searchparams-append.js
++++ test/parallel/test-whatwg-url-custom-searchparams-constructor.js
++++ test/parallel/test-whatwg-url-custom-searchparams-delete.js
++++ test/parallel/test-whatwg-url-custom-searchparams-entries.js
++++ test/parallel/test-whatwg-url-custom-searchparams-foreach.js
++++ test/parallel/test-whatwg-url-custom-searchparams-get.js
++++ test/parallel/test-whatwg-url-custom-searchparams-getall.js
++++ test/parallel/test-whatwg-url-custom-searchparams-has.js
++++ test/parallel/test-whatwg-url-custom-searchparams-inspect.js
++++ test/parallel/test-whatwg-url-custom-searchparams-keys.js
++++ test/parallel/test-whatwg-url-custom-searchparams-set.js
++++ test/parallel/test-whatwg-url-custom-searchparams-sort.js
++++ test/parallel/test-whatwg-url-custom-searchparams-stringifier.js
++++ test/parallel/test-whatwg-url-custom-searchparams-values.js
++++ test/parallel/test-whatwg-url-custom-searchparams.js
++++ test/parallel/test-whatwg-url-custom-setters.js
++++ test/parallel/test-whatwg-url-custom-tostringtag.js
++++ test/parallel/test-whatwg-url-origin.js
++++ test/parallel/test-whatwg-url-setters.js
++++ test/parallel/test-whatwg-url-toascii.js
++++ test/parallel/test-windows-abort-exitcode.js
++++ test/parallel/test-windows-failed-heap-allocation.js
++++ test/parallel/test-worker-abort-on-uncaught-exception-terminate.js
++++ test/parallel/test-worker-arraybuffer-zerofill.js
++++ test/parallel/test-worker-cleanexit-with-js.js
++++ test/parallel/test-worker-cleanexit-with-moduleload.js
++++ test/parallel/test-worker-cleanup-handles.js
++++ test/parallel/test-worker-console-listeners.js
++++ test/parallel/test-worker-debug.js
++++ test/parallel/test-worker-dns-terminate-during-query.js
++++ test/parallel/test-worker-dns-terminate.js
++++ test/parallel/test-worker-error-stack-getter-throws.js
++++ test/parallel/test-worker-esm-exit.js
++++ test/parallel/test-worker-esm-missing-main.js
++++ test/parallel/test-worker-esmodule.js
++++ test/parallel/test-worker-execargv-invalid.js
++++ test/parallel/test-worker-execargv.js
++++ test/parallel/test-worker-exit-code.js
++++ test/parallel/test-worker-exit-from-uncaught-exception.js
++++ test/parallel/test-worker-fs-stat-watcher.js
++++ test/parallel/test-worker-http2-generic-streams-terminate.js
++++ test/parallel/test-worker-invalid-workerdata.js
++++ test/parallel/test-worker-memory.js
++++ test/parallel/test-worker-message-channel-sharedarraybuffer.js
++++ test/parallel/test-worker-message-channel.js
++++ test/parallel/test-worker-message-not-serializable.js
++++ test/parallel/test-worker-message-port-arraybuffer.js
++++ test/parallel/test-worker-message-port-close-while-receiving.js
++++ test/parallel/test-worker-message-port-close.js
++++ test/parallel/test-worker-message-port-constructor.js
++++ test/parallel/test-worker-message-port-drain.js
++++ test/parallel/test-worker-message-port-infinite-message-loop.js
++++ test/parallel/test-worker-message-port-message-before-close.js
++++ test/parallel/test-worker-message-port-message-port-transferring.js
++++ test/parallel/test-worker-message-port-move.js
++++ test/parallel/test-worker-message-port-multiple-sharedarraybuffers.js
++++ test/parallel/test-worker-message-port-receive-message.js
++++ test/parallel/test-worker-message-port-terminate-transfer-list.js
++++ test/parallel/test-worker-message-port-transfer-closed.js
++++ test/parallel/test-worker-message-port-transfer-duplicate.js
++++ test/parallel/test-worker-message-port-transfer-native.js
++++ test/parallel/test-worker-message-port-transfer-self.js
++++ test/parallel/test-worker-message-port-transfer-target.js
++++ test/parallel/test-worker-message-port-transfer-terminate.js
++++ test/parallel/test-worker-message-port-wasm-module.js
++++ test/parallel/test-worker-message-port-wasm-threads.js
++++ test/parallel/test-worker-message-port.js
++++ test/parallel/test-worker-message-type-unknown.js
++++ test/parallel/test-worker-mjs-workerdata.js
++++ test/parallel/test-worker-nexttick-terminate.js
++++ test/parallel/test-worker-no-stdin-stdout-interaction.js
++++ test/parallel/test-worker-non-fatal-uncaught-exception.js
++++ test/parallel/test-worker-onmessage-not-a-function.js
++++ test/parallel/test-worker-onmessage.js
++++ test/parallel/test-worker-parent-port-ref.js
++++ test/parallel/test-worker-process-argv.js
++++ test/parallel/test-worker-process-cwd.js
++++ test/parallel/test-worker-process-env-shared.js
++++ test/parallel/test-worker-process-env.js
++++ test/parallel/test-worker-ref-onexit.js
++++ test/parallel/test-worker-ref.js
++++ test/parallel/test-worker-relative-path-double-dot.js
++++ test/parallel/test-worker-relative-path.js
++++ test/parallel/test-worker-resource-limits.js
++++ test/parallel/test-worker-safe-getters.js
++++ test/parallel/test-worker-sharedarraybuffer-from-worker-thread.js
++++ test/parallel/test-worker-stack-overflow.js
++++ test/parallel/test-worker-stdio.js
++++ test/parallel/test-worker-syntax-error-file.js
++++ test/parallel/test-worker-syntax-error.js
++++ test/parallel/test-worker-terminate-http2-respond-with-file.js
++++ test/parallel/test-worker-terminate-microtask-loop.js
++++ test/parallel/test-worker-terminate-null-handler.js
++++ test/parallel/test-worker-terminate-source-map.js
++++ test/parallel/test-worker-terminate-timers.js
++++ test/parallel/test-worker-terminate-unrefed.js
++++ test/parallel/test-worker-type-check.js
++++ test/parallel/test-worker-uncaught-exception-async.js
++++ test/parallel/test-worker-uncaught-exception.js
++++ test/parallel/test-worker-unsupported-path.js
++++ test/parallel/test-worker-unsupported-things.js
++++ test/parallel/test-worker-vm-context-terminate.js
++++ test/parallel/test-worker-workerdata-sharedarraybuffer.js
++++ test/parallel/test-worker.js
++++ test/parallel/test-wrap-js-stream-destroy.js
++++ test/parallel/test-wrap-js-stream-duplex.js
++++ test/parallel/test-wrap-js-stream-exceptions.js
++++ test/parallel/test-wrap-js-stream-read-stop.js
++++ test/parallel/test-zlib-brotli-flush.js
++++ test/parallel/test-zlib-brotli-from-brotli.js
++++ test/parallel/test-zlib-brotli-kmaxlength-rangeerror.js
++++ test/parallel/test-zlib-brotli.js
++++ test/parallel/test-zlib-bytes-read.js
++++ test/parallel/test-zlib-close-after-error.js
++++ test/parallel/test-zlib-close-in-ondata.js
++++ test/parallel/test-zlib-const.js
++++ test/parallel/test-zlib-create-raw.js
++++ test/parallel/test-zlib-deflate-constructors.js
++++ test/parallel/test-zlib-deflate-raw-inherits.js
++++ test/parallel/test-zlib-destroy-pipe.js
++++ test/parallel/test-zlib-destroy.js
++++ test/parallel/test-zlib-empty-buffer.js
++++ test/parallel/test-zlib-failed-init.js
++++ test/parallel/test-zlib-flush-drain-longblock.js
++++ test/parallel/test-zlib-flush-drain.js
++++ test/parallel/test-zlib-flush-flags.js
++++ test/parallel/test-zlib-flush-write-sync-interleaved.js
++++ test/parallel/test-zlib-flush.js
++++ test/parallel/test-zlib-from-concatenated-gzip.js
++++ test/parallel/test-zlib-from-gzip-with-trailing-garbage.js
++++ test/parallel/test-zlib-invalid-input-memory.js
++++ test/parallel/test-zlib-kmaxlength-rangeerror.js
++++ test/parallel/test-zlib-not-string-or-buffer.js
++++ test/parallel/test-zlib-object-write.js
++++ test/parallel/test-zlib-params.js
++++ test/parallel/test-zlib-premature-end.js
++++ test/parallel/test-zlib-sync-no-event.js
++++ test/parallel/test-zlib-unused-weak.js
++++ test/parallel/test-zlib-unzip-one-byte-chunks.js
++++ test/parallel/test-zlib-write-after-end.js
++++ test/parallel/test-zlib-zero-windowBits.js
++++ test/parallel/testcfg.py
++++ test/pseudo-tty/console-dumb-tty.js
++++ test/pseudo-tty/console-dumb-tty.out
++++ test/pseudo-tty/console_colors.js
++++ test/pseudo-tty/console_colors.out
++++ test/pseudo-tty/no_dropped_stdio.js
++++ test/pseudo-tty/no_dropped_stdio.out
++++ test/pseudo-tty/no_interleaved_stdio.js
++++ test/pseudo-tty/no_interleaved_stdio.out
++++ test/pseudo-tty/pseudo-tty.status
++++ test/pseudo-tty/pty_helper.py
++++ test/pseudo-tty/readline-dumb-tty.js
++++ test/pseudo-tty/readline-dumb-tty.out
++++ test/pseudo-tty/ref_keeps_node_running.js
++++ test/pseudo-tty/repl-dumb-tty.js
++++ test/pseudo-tty/repl-dumb-tty.out
++++ test/pseudo-tty/stdin-setrawmode.js
++++ test/pseudo-tty/test-assert-colors.js
++++ test/pseudo-tty/test-assert-no-color.js
++++ test/pseudo-tty/test-assert-position-indicator.js
++++ test/pseudo-tty/test-async-wrap-getasyncid-tty.js
++++ test/pseudo-tty/test-fatal-error.js
++++ test/pseudo-tty/test-fatal-error.out
++++ test/pseudo-tty/test-handle-wrap-isrefed-tty.js
++++ test/pseudo-tty/test-readable-tty-keepalive.js
++++ test/pseudo-tty/test-repl-external-module.js
++++ test/pseudo-tty/test-repl-external-module.out
++++ test/pseudo-tty/test-set-raw-mode-reset-process-exit.js
++++ test/pseudo-tty/test-set-raw-mode-reset-signal.js
++++ test/pseudo-tty/test-set-raw-mode-reset.js
++++ test/pseudo-tty/test-stderr-stdout-handle-sigwinch.js
++++ test/pseudo-tty/test-stderr-stdout-handle-sigwinch.out
++++ test/pseudo-tty/test-stdin-write.js
++++ test/pseudo-tty/test-stdin-write.out
++++ test/pseudo-tty/test-stdout-read.in
++++ test/pseudo-tty/test-stdout-read.js
++++ test/pseudo-tty/test-stdout-read.out
++++ test/pseudo-tty/test-tty-color-support.js
++++ test/pseudo-tty/test-tty-color-support.out
++++ test/pseudo-tty/test-tty-isatty.js
++++ test/pseudo-tty/test-tty-stdin-call-end.js
++++ test/pseudo-tty/test-tty-stdin-end.js
++++ test/pseudo-tty/test-tty-stdout-end.js
++++ test/pseudo-tty/test-tty-stdout-end.out
++++ test/pseudo-tty/test-tty-stdout-resize.js
++++ test/pseudo-tty/test-tty-stream-constructors.js
++++ test/pseudo-tty/test-tty-window-size.js
++++ test/pseudo-tty/test-tty-wrap.js
++++ test/pseudo-tty/test-tty-wrap.out
++++ test/pummel/test-crypto-timing-safe-equal-benchmarks.js
++++ test/pummel/test-fs-readfile-tostring-fail.js
++++ test/pummel/test-fs-watch-system-limit.js
++++ test/pummel/test-hash-seed.js
++++ test/pummel/test-heapdump-dns.js
++++ test/pummel/test-heapdump-env.js
++++ test/pummel/test-heapdump-fs-promise.js
++++ test/pummel/test-heapdump-http2.js
++++ test/pummel/test-heapdump-inspector.js
++++ test/pummel/test-heapdump-tls.js
++++ test/pummel/test-heapdump-worker.js
++++ test/pummel/test-heapdump-zlib.js
++++ test/pummel/test-process-cpuUsage.js
++++ test/pummel/test-vm-race.js
++++ test/pummel/testcfg.py
++++ test/report/test-report-config.js
++++ test/report/test-report-fatal-error.js
++++ test/report/test-report-getreport.js
++++ test/report/test-report-signal.js
++++ test/report/test-report-uncaught-exception.js
++++ test/report/test-report-uv-handles.js
++++ test/report/test-report-writereport.js
++++ test/report/testcfg.py
++++ test/root.status
++++ test/sequential/sequential.status
++++ test/sequential/test-async-wrap-getasyncid.js
++++ test/sequential/test-buffer-creation-regression.js
++++ test/sequential/test-child-process-pass-fd.js
++++ test/sequential/test-cli-syntax-bad.js
++++ test/sequential/test-cli-syntax-file-not-found.js
++++ test/sequential/test-cli-syntax-good.js
++++ test/sequential/test-cli-syntax-require.js
++++ test/sequential/test-cluster-inspect-brk.js
++++ test/sequential/test-cluster-net-listen-ipv6only-none.js
++++ test/sequential/test-cluster-net-listen-ipv6only-rr.js
++++ test/sequential/test-cluster-send-handle-large-payload.js
++++ test/sequential/test-cpu-prof-default.js
++++ test/sequential/test-cpu-prof-dir-absolute.js
++++ test/sequential/test-cpu-prof-dir-and-name.js
++++ test/sequential/test-cpu-prof-dir-relative.js
++++ test/sequential/test-cpu-prof-dir-worker.js
++++ test/sequential/test-cpu-prof-drained.js
++++ test/sequential/test-cpu-prof-exit.js
++++ test/sequential/test-cpu-prof-invalid-options.js
++++ test/sequential/test-cpu-prof-kill.js
++++ test/sequential/test-cpu-prof-name.js
++++ test/sequential/test-cpu-prof-worker-argv.js
++++ test/sequential/test-crypto-timing-safe-equal.js
++++ test/sequential/test-debug-prompt.js
++++ test/sequential/test-debugger-debug-brk.js
++++ test/sequential/test-debugger-repeat-last.js
++++ test/sequential/test-dgram-implicit-bind-failure.js
++++ test/sequential/test-dgram-pingpong.js
++++ test/sequential/test-gc-http-client.js
++++ test/sequential/test-heap-prof.js
++++ test/sequential/test-heapdump-flag.js
++++ test/sequential/test-heapdump.js
++++ test/sequential/test-http-keep-alive-large-write.js
++++ test/sequential/test-http-max-http-headers.js
++++ test/sequential/test-http-regr-gh-2928.js
++++ test/sequential/test-http-server-keep-alive-timeout-slow-client-headers.js
++++ test/sequential/test-http-server-keep-alive-timeout-slow-server.js
++++ test/sequential/test-http2-large-file.js
++++ test/sequential/test-http2-max-session-memory.js
++++ test/sequential/test-http2-ping-flood.js
++++ test/sequential/test-http2-settings-flood.js
++++ test/sequential/test-http2-timeout-large-write-file.js
++++ test/sequential/test-http2-timeout-large-write.js
++++ test/sequential/test-https-connect-localport.js
++++ test/sequential/test-https-keep-alive-large-write.js
++++ test/sequential/test-https-server-keep-alive-timeout.js
++++ test/sequential/test-inspector-async-call-stack-abort.js
++++ test/sequential/test-inspector-async-call-stack.js
++++ test/sequential/test-inspector-async-hook-setup-at-inspect-brk.js
++++ test/sequential/test-inspector-async-hook-setup-at-signal.js
++++ test/sequential/test-inspector-async-stack-traces-promise-then.js
++++ test/sequential/test-inspector-async-stack-traces-set-interval.js
++++ test/sequential/test-inspector-break-e.js
++++ test/sequential/test-inspector-break-when-eval.js
++++ test/sequential/test-inspector-console.js
++++ test/sequential/test-inspector-contexts.js
++++ test/sequential/test-inspector-debug-brk-flag.js
++++ test/sequential/test-inspector-debug-end.js
++++ test/sequential/test-inspector-enabled.js
++++ test/sequential/test-inspector-exception.js
++++ test/sequential/test-inspector-has-inspector-false.js
++++ test/sequential/test-inspector-invalid-args.js
++++ test/sequential/test-inspector-ip-detection.js
++++ test/sequential/test-inspector-module.js
++++ test/sequential/test-inspector-not-blocked-on-idle.js
++++ test/sequential/test-inspector-open.js
++++ test/sequential/test-inspector-overwrite-config.js
++++ test/sequential/test-inspector-port-cluster.js
++++ test/sequential/test-inspector-port-zero.js
++++ test/sequential/test-inspector-resource-name-to-url.js
++++ test/sequential/test-inspector-runtime-evaluate-with-timeout.js
++++ test/sequential/test-inspector-scriptparsed-context.js
++++ test/sequential/test-inspector-stop-profile-after-done.js
++++ test/sequential/test-inspector-stops-no-file.js
++++ test/sequential/test-inspector-stress-http.js
++++ test/sequential/test-inspector.js
++++ test/sequential/test-net-better-error-messages-port.js
++++ test/sequential/test-net-bytes-per-incoming-chunk-overhead.js
++++ test/sequential/test-net-connect-local-error.js
++++ test/sequential/test-net-localport.js
++++ test/sequential/test-net-server-bind.js
++++ test/sequential/test-perf-hooks.js
++++ test/sequential/test-performance-eventloopdelay.js
++++ test/sequential/test-process-warnings.js
++++ test/sequential/test-repl-timeout-throw.js
++++ test/sequential/test-resolution-inspect-brk.js
++++ test/sequential/test-set-http-max-http-headers.js
++++ test/sequential/test-timers-block-eventloop.js
++++ test/sequential/test-timers-blocking-callback.js
++++ test/sequential/test-timers-set-interval-excludes-callback-duration.js
++++ test/sequential/test-tls-lookup.js
++++ test/sequential/test-tls-psk-client.js
++++ test/sequential/test-worker-prof.js
++++ test/sequential/testcfg.py
++++ test/tick-processor/test-tick-processor-builtin.js
++++ test/tick-processor/test-tick-processor-cpp-core.js
++++ test/tick-processor/test-tick-processor-polyfill-brokenfile.js
++++ test/tick-processor/test-tick-processor-preprocess-flag.js
++++ test/tick-processor/test-tick-processor-unknown.js
++++ test/tick-processor/testcfg.py
++++ test/tick-processor/tick-processor-base.js
++++ test/tick-processor/util.js
++++ test/tools/test_js2c.py
++++ test/v8-updates/test-linux-perf.js
++++ test/v8-updates/test-postmortem-metadata.js
++++ test/v8-updates/testcfg.py
++++ test/v8-updates/v8-updates.status
++++ test/wasi/Makefile
++++ test/wasi/README.md
++++ test/wasi/c/cant_dotdot.c
++++ test/wasi/c/clock_getres.c
++++ test/wasi/c/exitcode.c
++++ test/wasi/c/fd_prestat_get_refresh.c
++++ test/wasi/c/follow_symlink.c
++++ test/wasi/c/getentropy.c
++++ test/wasi/c/getrusage.c
++++ test/wasi/c/gettimeofday.c
++++ test/wasi/c/notdir.c
++++ test/wasi/c/poll.c
++++ test/wasi/c/preopen_populates.c
++++ test/wasi/c/read_file.c
++++ test/wasi/c/read_file_twice.c
++++ test/wasi/c/stat.c
++++ test/wasi/c/stdin.c
++++ test/wasi/c/symlink_escape.c
++++ test/wasi/c/symlink_loop.c
++++ test/wasi/c/write_file.c
++++ test/wasi/test-wasi-options-validation.js
++++ test/wasi/test-wasi-require-flag.js
++++ test/wasi/test-wasi-start-validation.js
++++ test/wasi/test-wasi-symlinks.js
++++ test/wasi/test-wasi.js
++++ test/wasi/testcfg.py
++++ test/wasi/wasi.status
++++ test/wasi/wasm/exitcode.wasm
++++ test/wasi/wasm/fd_prestat_get_refresh.wasm
++++ test/wasi/wasm/notdir.wasm
++++ test/wasi/wasm/preopen_populates.wasm
++++ test/wasi/wasm/write_file.wasm
++++ test/wpt/README.md
++++ test/wpt/status/console.json
++++ test/wpt/status/encoding.json
++++ test/wpt/status/html/webappapis/microtask-queuing.json
++++ test/wpt/status/html/webappapis/timers.json
++++ test/wpt/status/url.json
++++ test/wpt/test-console.js
++++ test/wpt/test-encoding.js
++++ test/wpt/test-microtask-queuing.js
++++ test/wpt/test-timers.js
++++ test/wpt/test-url.js
++++ test/wpt/testcfg.py
++++ test/wpt/wpt.status
++++ tools/bootstrap/README.md
++++ tools/bootstrap/windows_boxstarter
++++ tools/build-addons.js
++++ tools/check-imports.py
++++ tools/clang-format/package-lock.json
++++ tools/clang-format/package.json
++++ tools/code_cache/README.md
++++ tools/code_cache/cache_builder.cc
++++ tools/code_cache/cache_builder.h
++++ tools/code_cache/mkcodecache.cc
++++ tools/compress_json.py
++++ tools/configure.d/nodedownload.py
++++ tools/create_android_makefiles
++++ tools/create_expfile.sh
++++ tools/doc/README.md
++++ tools/doc/addon-verify.js
++++ tools/doc/allhtml.js
++++ tools/doc/alljson.js
++++ tools/doc/apilinks.js
++++ tools/doc/common.js
++++ tools/doc/links-mapper.json
++++ tools/doc/markdown.js
++++ tools/doc/package-lock.json
++++ tools/doc/package.json
++++ tools/doc/type-parser.js
++++ tools/doc/versions.js
++++ tools/genv8constants.py
++++ tools/getarch.py
++++ tools/getendian.py
++++ tools/getmachine.py
++++ tools/getmoduleversion.py
++++ tools/getnapibuildversion.py
++++ tools/getnodeversion.py
++++ tools/gyp/.gitignore
++++ tools/gyp/AUTHORS
++++ tools/gyp/DEPS
++++ tools/gyp/OWNERS
++++ tools/gyp/README.md
++++ tools/gyp/buildbot/commit_queue/OWNERS
++++ tools/gyp/buildbot/commit_queue/README
++++ tools/gyp/buildbot/commit_queue/cq_config.json
++++ tools/gyp/codereview.settings
++++ tools/gyp/pylib/gyp/ninja_syntax.py
++++ tools/gyp/tools/README
++++ tools/gyp/tools/Xcode/README
++++ tools/gyp/tools/Xcode/Specifications/gyp.pbfilespec
++++ tools/gyp/tools/emacs/README
++++ tools/gyp_node.py
++++ tools/icu/README.md
++++ tools/icu/current_ver.dep
++++ tools/icu/icu_versions.json
++++ tools/icu/shrink-icu-src.py
++++ tools/inspector_protocol/.clang-format
++++ tools/inspector_protocol/OWNERS
++++ tools/inspector_protocol/README.md
++++ tools/inspector_protocol/codereview.settings
++++ tools/inspector_protocol/jinja2/Jinja2-2.10.tar.gz.md5
++++ tools/inspector_protocol/jinja2/Jinja2-2.10.tar.gz.sha512
++++ tools/inspector_protocol/jinja2/OWNERS
++++ tools/inspector_protocol/jinja2/asyncfilters.py
++++ tools/inspector_protocol/jinja2/get_jinja2.sh
++++ tools/inspector_protocol/jinja2/idtracking.py
++++ tools/inspector_protocol/jinja2/jinja2.gni
++++ tools/inspector_protocol/jinja2/nativetypes.py
++++ tools/inspector_protocol/markupsafe/MarkupSafe-0.18.tar.gz.md5
++++ tools/inspector_protocol/markupsafe/MarkupSafe-0.18.tar.gz.sha512
++++ tools/inspector_protocol/markupsafe/OWNERS
++++ tools/inspector_protocol/markupsafe/get_markupsafe.sh
++++ tools/install.py
++++ tools/license2rtf.js
++++ tools/lint-js.js
++++ tools/lint-pr-commit-message.sh
++++ tools/lsan_suppressions.txt
++++ tools/macos-firewall.sh
++++ tools/macos-installer/pkgbuild/npm/scripts/postinstall
++++ tools/macos-installer/pkgbuild/npm/scripts/preinstall
++++ tools/macos-installer/productbuild/Resources/en.lproj/conclusion.html.tmpl
++++ tools/macos-installer/productbuild/Resources/en.lproj/welcome.html.tmpl
++++ tools/macos-installer/productbuild/distribution.xml.tmpl
++++ tools/make-v8.sh
++++ tools/mkssldef.py
++++ tools/msvs/find_nasm.cmd
++++ tools/msvs/find_python.cmd
++++ tools/msvs/install_tools/install_tools.bat
++++ tools/msvs/msi/custom_actions.cc
++++ tools/msvs/msi/custom_actions.def
++++ tools/msvs/msi/custom_actions.vcxproj
++++ tools/msvs/msi/i18n/de-de.wxl
++++ tools/msvs/msi/i18n/en-us.wxl
++++ tools/msvs/msi/i18n/it-it.wxl
++++ tools/msvs/msi/nodemsi.sln
++++ tools/msvs/msi/nodemsi.wixproj
++++ tools/msvs/msi/product.wxs
++++ tools/msvs/nodevars.bat
++++ tools/msvs/npm/npmrc
++++ tools/msvs/pch/node_pch.cc
++++ tools/msvs/pch/node_pch.h
++++ tools/msvs/pch/v8_pch.cc
++++ tools/msvs/pch/v8_pch.h
++++ tools/node-lint-md-cli-rollup/.gitignore
++++ tools/node-lint-md-cli-rollup/package-lock.json
++++ tools/node-lint-md-cli-rollup/package.json
++++ tools/node-lint-md-cli-rollup/src/cli-entry.js
++++ tools/pip/.gitignore
++++ tools/pip/sitecustomize.py
++++ tools/release.sh
++++ tools/run-worker.js
++++ tools/sign.bat
++++ tools/snapshot/README.md
++++ tools/snapshot/node_mksnapshot.cc
++++ tools/snapshot/snapshot_builder.cc
++++ tools/snapshot/snapshot_builder.h
++++ tools/specialize_node_d.py
++++ tools/test-npm-package.js
++++ tools/test-v8.bat
++++ tools/update-authors.js
++++ tools/update-babel-eslint.sh
++++ tools/update-eslint.sh
++++ tools/valgrind.supp
++++ vcbuild.bat
++++Copyright: NONE
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/.ycm_extra_conf.py
++++ deps/v8/gni/proto_library.gni
++++ deps/v8/gni/v8.gni
++++ deps/v8/include/libplatform/libplatform-export.h
++++ deps/v8/include/libplatform/libplatform.h
++++ deps/v8/include/libplatform/v8-tracing.h
++++ deps/v8/include/v8-inspector-protocol.h
++++ deps/v8/include/v8-inspector.h
++++ deps/v8/include/v8-internal.h
++++ deps/v8/include/v8-platform.h
++++ deps/v8/include/v8-profiler.h
++++ deps/v8/include/v8-testing.h
++++ deps/v8/include/v8-util.h
++++ deps/v8/include/v8-value-serializer-version.h
++++ deps/v8/include/v8-version-string.h
++++ deps/v8/include/v8-version.h
++++ deps/v8/include/v8-wasm-trap-handler-posix.h
++++ deps/v8/include/v8-wasm-trap-handler-win.h
++++ deps/v8/include/v8.h
++++ deps/v8/include/v8config.h
++++ deps/v8/infra/mb/gn_isolate_map.pyl
++++ deps/v8/infra/testing/PRESUBMIT.py
++++ deps/v8/src/api/api-arguments-inl.h
++++ deps/v8/src/api/api-arguments.cc
++++ deps/v8/src/api/api-arguments.h
++++ deps/v8/src/api/api-inl.h
++++ deps/v8/src/api/api-natives.cc
++++ deps/v8/src/api/api-natives.h
++++ deps/v8/src/api/api.cc
++++ deps/v8/src/api/api.h
++++ deps/v8/src/asmjs/asm-js.cc
++++ deps/v8/src/asmjs/asm-js.h
++++ deps/v8/src/asmjs/asm-names.h
++++ deps/v8/src/asmjs/asm-parser.cc
++++ deps/v8/src/asmjs/asm-parser.h
++++ deps/v8/src/asmjs/asm-scanner.cc
++++ deps/v8/src/asmjs/asm-scanner.h
++++ deps/v8/src/asmjs/asm-types.cc
++++ deps/v8/src/asmjs/asm-types.h
++++ deps/v8/src/ast/ast-function-literal-id-reindexer.cc
++++ deps/v8/src/ast/ast-function-literal-id-reindexer.h
++++ deps/v8/src/ast/ast-source-ranges.h
++++ deps/v8/src/ast/ast-traversal-visitor.h
++++ deps/v8/src/ast/ast.cc
++++ deps/v8/src/ast/ast.h
++++ deps/v8/src/ast/modules.cc
++++ deps/v8/src/ast/modules.h
++++ deps/v8/src/ast/prettyprinter.cc
++++ deps/v8/src/ast/prettyprinter.h
++++ deps/v8/src/ast/scopes.cc
++++ deps/v8/src/ast/scopes.h
++++ deps/v8/src/ast/source-range-ast-visitor.cc
++++ deps/v8/src/ast/source-range-ast-visitor.h
++++ deps/v8/src/ast/variables.cc
++++ deps/v8/src/ast/variables.h
++++ deps/v8/src/base/address-region.h
++++ deps/v8/src/base/atomic-utils.h
++++ deps/v8/src/base/atomicops.h
++++ deps/v8/src/base/atomicops_internals_atomicword_compat.h
++++ deps/v8/src/base/atomicops_internals_portable.h
++++ deps/v8/src/base/atomicops_internals_std.h
++++ deps/v8/src/base/base-export.h
++++ deps/v8/src/base/bits.cc
++++ deps/v8/src/base/bits.h
++++ deps/v8/src/base/bounded-page-allocator.cc
++++ deps/v8/src/base/bounded-page-allocator.h
++++ deps/v8/src/base/build_config.h
++++ deps/v8/src/base/compiler-specific.h
++++ deps/v8/src/base/cpu.cc
++++ deps/v8/src/base/cpu.h
++++ deps/v8/src/base/debug/stack_trace.cc
++++ deps/v8/src/base/debug/stack_trace_fuchsia.cc
++++ deps/v8/src/base/division-by-constant.cc
++++ deps/v8/src/base/division-by-constant.h
++++ deps/v8/src/base/enum-set.h
++++ deps/v8/src/base/export-template.h
++++ deps/v8/src/base/file-utils.cc
++++ deps/v8/src/base/file-utils.h
++++ deps/v8/src/base/flags.h
++++ deps/v8/src/base/functional.h
++++ deps/v8/src/base/hashmap-entry.h
++++ deps/v8/src/base/hashmap.h
++++ deps/v8/src/base/ieee754.h
++++ deps/v8/src/base/iterator.h
++++ deps/v8/src/base/lazy-instance.h
++++ deps/v8/src/base/list.h
++++ deps/v8/src/base/logging.cc
++++ deps/v8/src/base/logging.h
++++ deps/v8/src/base/lsan.h
++++ deps/v8/src/base/macros.h
++++ deps/v8/src/base/memory.h
++++ deps/v8/src/base/once.cc
++++ deps/v8/src/base/once.h
++++ deps/v8/src/base/overflowing-math.h
++++ deps/v8/src/base/page-allocator.cc
++++ deps/v8/src/base/page-allocator.h
++++ deps/v8/src/base/platform/condition-variable.cc
++++ deps/v8/src/base/platform/condition-variable.h
++++ deps/v8/src/base/platform/elapsed-timer.h
++++ deps/v8/src/base/platform/mutex.cc
++++ deps/v8/src/base/platform/mutex.h
++++ deps/v8/src/base/platform/platform-aix.cc
++++ deps/v8/src/base/platform/platform-cygwin.cc
++++ deps/v8/src/base/platform/platform-freebsd.cc
++++ deps/v8/src/base/platform/platform-fuchsia.cc
++++ deps/v8/src/base/platform/platform-linux.cc
++++ deps/v8/src/base/platform/platform-macos.cc
++++ deps/v8/src/base/platform/platform-openbsd.cc
++++ deps/v8/src/base/platform/platform-posix-time.cc
++++ deps/v8/src/base/platform/platform-posix-time.h
++++ deps/v8/src/base/platform/platform-posix.cc
++++ deps/v8/src/base/platform/platform-posix.h
++++ deps/v8/src/base/platform/platform-qnx.cc
++++ deps/v8/src/base/platform/platform-solaris.cc
++++ deps/v8/src/base/platform/platform-win32.cc
++++ deps/v8/src/base/platform/platform.h
++++ deps/v8/src/base/platform/semaphore.cc
++++ deps/v8/src/base/platform/semaphore.h
++++ deps/v8/src/base/platform/time.cc
++++ deps/v8/src/base/platform/time.h
++++ deps/v8/src/base/qnx-math.h
++++ deps/v8/src/base/region-allocator.cc
++++ deps/v8/src/base/region-allocator.h
++++ deps/v8/src/base/ring-buffer.h
++++ deps/v8/src/base/small-vector.h
++++ deps/v8/src/base/sys-info.cc
++++ deps/v8/src/base/sys-info.h
++++ deps/v8/src/base/template-utils.h
++++ deps/v8/src/base/threaded-list.h
++++ deps/v8/src/base/timezone-cache.h
++++ deps/v8/src/base/type-traits.h
++++ deps/v8/src/base/utils/random-number-generator.cc
++++ deps/v8/src/base/utils/random-number-generator.h
++++ deps/v8/src/base/v8-fallthrough.h
++++ deps/v8/src/base/vlq-base64.cc
++++ deps/v8/src/base/vlq-base64.h
++++ deps/v8/src/base/win32-headers.h
++++ deps/v8/src/builtins/accessors.cc
++++ deps/v8/src/builtins/accessors.h
++++ deps/v8/src/builtins/arguments.tq
++++ deps/v8/src/builtins/arm/builtins-arm.cc
++++ deps/v8/src/builtins/arm64/builtins-arm64.cc
++++ deps/v8/src/builtins/array-copywithin.tq
++++ deps/v8/src/builtins/array-every.tq
++++ deps/v8/src/builtins/array-filter.tq
++++ deps/v8/src/builtins/array-find.tq
++++ deps/v8/src/builtins/array-findindex.tq
++++ deps/v8/src/builtins/array-foreach.tq
++++ deps/v8/src/builtins/array-join.tq
++++ deps/v8/src/builtins/array-lastindexof.tq
++++ deps/v8/src/builtins/array-map.tq
++++ deps/v8/src/builtins/array-of.tq
++++ deps/v8/src/builtins/array-reduce-right.tq
++++ deps/v8/src/builtins/array-reduce.tq
++++ deps/v8/src/builtins/array-reverse.tq
++++ deps/v8/src/builtins/array-shift.tq
++++ deps/v8/src/builtins/array-slice.tq
++++ deps/v8/src/builtins/array-some.tq
++++ deps/v8/src/builtins/array-splice.tq
++++ deps/v8/src/builtins/array-unshift.tq
++++ deps/v8/src/builtins/array.tq
++++ deps/v8/src/builtins/base.tq
++++ deps/v8/src/builtins/bigint.tq
++++ deps/v8/src/builtins/boolean.tq
++++ deps/v8/src/builtins/builtins-api.cc
++++ deps/v8/src/builtins/builtins-arguments-gen.cc
++++ deps/v8/src/builtins/builtins-arguments-gen.h
++++ deps/v8/src/builtins/builtins-array-gen.cc
++++ deps/v8/src/builtins/builtins-array-gen.h
++++ deps/v8/src/builtins/builtins-array.cc
++++ deps/v8/src/builtins/builtins-arraybuffer.cc
++++ deps/v8/src/builtins/builtins-async-function-gen.cc
++++ deps/v8/src/builtins/builtins-async-gen.cc
++++ deps/v8/src/builtins/builtins-async-gen.h
++++ deps/v8/src/builtins/builtins-async-generator-gen.cc
++++ deps/v8/src/builtins/builtins-async-iterator-gen.cc
++++ deps/v8/src/builtins/builtins-bigint-gen.cc
++++ deps/v8/src/builtins/builtins-bigint-gen.h
++++ deps/v8/src/builtins/builtins-bigint.cc
++++ deps/v8/src/builtins/builtins-boolean-gen.cc
++++ deps/v8/src/builtins/builtins-call-gen.cc
++++ deps/v8/src/builtins/builtins-call-gen.h
++++ deps/v8/src/builtins/builtins-call.cc
++++ deps/v8/src/builtins/builtins-callsite.cc
++++ deps/v8/src/builtins/builtins-collections-gen.cc
++++ deps/v8/src/builtins/builtins-collections-gen.h
++++ deps/v8/src/builtins/builtins-collections.cc
++++ deps/v8/src/builtins/builtins-console-gen.cc
++++ deps/v8/src/builtins/builtins-console.cc
++++ deps/v8/src/builtins/builtins-constructor-gen.cc
++++ deps/v8/src/builtins/builtins-constructor-gen.h
++++ deps/v8/src/builtins/builtins-constructor.h
++++ deps/v8/src/builtins/builtins-conversion-gen.cc
++++ deps/v8/src/builtins/builtins-data-view-gen.h
++++ deps/v8/src/builtins/builtins-dataview.cc
++++ deps/v8/src/builtins/builtins-date-gen.cc
++++ deps/v8/src/builtins/builtins-date.cc
++++ deps/v8/src/builtins/builtins-debug-gen.cc
++++ deps/v8/src/builtins/builtins-definitions.h
++++ deps/v8/src/builtins/builtins-descriptors.h
++++ deps/v8/src/builtins/builtins-error.cc
++++ deps/v8/src/builtins/builtins-extras-utils.cc
++++ deps/v8/src/builtins/builtins-function-gen.cc
++++ deps/v8/src/builtins/builtins-function.cc
++++ deps/v8/src/builtins/builtins-generator-gen.cc
++++ deps/v8/src/builtins/builtins-global-gen.cc
++++ deps/v8/src/builtins/builtins-global.cc
++++ deps/v8/src/builtins/builtins-handler-gen.cc
++++ deps/v8/src/builtins/builtins-ic-gen.cc
++++ deps/v8/src/builtins/builtins-internal-gen.cc
++++ deps/v8/src/builtins/builtins-internal.cc
++++ deps/v8/src/builtins/builtins-interpreter-gen.cc
++++ deps/v8/src/builtins/builtins-intl-gen.cc
++++ deps/v8/src/builtins/builtins-intl.cc
++++ deps/v8/src/builtins/builtins-iterator-gen.cc
++++ deps/v8/src/builtins/builtins-iterator-gen.h
++++ deps/v8/src/builtins/builtins-json.cc
++++ deps/v8/src/builtins/builtins-lazy-gen.cc
++++ deps/v8/src/builtins/builtins-lazy-gen.h
++++ deps/v8/src/builtins/builtins-math-gen.cc
++++ deps/v8/src/builtins/builtins-math-gen.h
++++ deps/v8/src/builtins/builtins-microtask-queue-gen.cc
++++ deps/v8/src/builtins/builtins-number-gen.cc
++++ deps/v8/src/builtins/builtins-number.cc
++++ deps/v8/src/builtins/builtins-object-gen.cc
++++ deps/v8/src/builtins/builtins-object-gen.h
++++ deps/v8/src/builtins/builtins-object.cc
++++ deps/v8/src/builtins/builtins-promise-gen.h
++++ deps/v8/src/builtins/builtins-promise.cc
++++ deps/v8/src/builtins/builtins-promise.h
++++ deps/v8/src/builtins/builtins-proxy-gen.cc
++++ deps/v8/src/builtins/builtins-proxy-gen.h
++++ deps/v8/src/builtins/builtins-reflect-gen.cc
++++ deps/v8/src/builtins/builtins-reflect.cc
++++ deps/v8/src/builtins/builtins-regexp-gen.cc
++++ deps/v8/src/builtins/builtins-regexp-gen.h
++++ deps/v8/src/builtins/builtins-regexp.cc
++++ deps/v8/src/builtins/builtins-sharedarraybuffer-gen.cc
++++ deps/v8/src/builtins/builtins-sharedarraybuffer.cc
++++ deps/v8/src/builtins/builtins-string-gen.cc
++++ deps/v8/src/builtins/builtins-string-gen.h
++++ deps/v8/src/builtins/builtins-string.cc
++++ deps/v8/src/builtins/builtins-symbol-gen.cc
++++ deps/v8/src/builtins/builtins-symbol.cc
++++ deps/v8/src/builtins/builtins-trace.cc
++++ deps/v8/src/builtins/builtins-typed-array-gen.cc
++++ deps/v8/src/builtins/builtins-typed-array-gen.h
++++ deps/v8/src/builtins/builtins-typed-array.cc
++++ deps/v8/src/builtins/builtins-utils-gen.h
++++ deps/v8/src/builtins/builtins-utils-inl.h
++++ deps/v8/src/builtins/builtins-utils.h
++++ deps/v8/src/builtins/builtins-wasm-gen.cc
++++ deps/v8/src/builtins/builtins-weak-refs.cc
++++ deps/v8/src/builtins/builtins.cc
++++ deps/v8/src/builtins/builtins.h
++++ deps/v8/src/builtins/collections.tq
++++ deps/v8/src/builtins/constants-table-builder.cc
++++ deps/v8/src/builtins/constants-table-builder.h
++++ deps/v8/src/builtins/data-view.tq
++++ deps/v8/src/builtins/extras-utils.tq
++++ deps/v8/src/builtins/frames.tq
++++ deps/v8/src/builtins/generate-bytecodes-builtins-list.cc
++++ deps/v8/src/builtins/growable-fixed-array-gen.cc
++++ deps/v8/src/builtins/growable-fixed-array-gen.h
++++ deps/v8/src/builtins/growable-fixed-array.tq
++++ deps/v8/src/builtins/ia32/builtins-ia32.cc
++++ deps/v8/src/builtins/internal-coverage.tq
++++ deps/v8/src/builtins/iterator.tq
++++ deps/v8/src/builtins/math.tq
++++ deps/v8/src/builtins/mips/builtins-mips.cc
++++ deps/v8/src/builtins/mips64/builtins-mips64.cc
++++ deps/v8/src/builtins/object-fromentries.tq
++++ deps/v8/src/builtins/object.tq
++++ deps/v8/src/builtins/ppc/builtins-ppc.cc
++++ deps/v8/src/builtins/proxy-constructor.tq
++++ deps/v8/src/builtins/proxy-delete-property.tq
++++ deps/v8/src/builtins/proxy-get-property.tq
++++ deps/v8/src/builtins/proxy-get-prototype-of.tq
++++ deps/v8/src/builtins/proxy-has-property.tq
++++ deps/v8/src/builtins/proxy-is-extensible.tq
++++ deps/v8/src/builtins/proxy-prevent-extensions.tq
++++ deps/v8/src/builtins/proxy-revocable.tq
++++ deps/v8/src/builtins/proxy-revoke.tq
++++ deps/v8/src/builtins/proxy-set-property.tq
++++ deps/v8/src/builtins/proxy-set-prototype-of.tq
++++ deps/v8/src/builtins/proxy.tq
++++ deps/v8/src/builtins/reflect.tq
++++ deps/v8/src/builtins/regexp-match.tq
++++ deps/v8/src/builtins/regexp-replace.tq
++++ deps/v8/src/builtins/regexp-source.tq
++++ deps/v8/src/builtins/regexp-test.tq
++++ deps/v8/src/builtins/regexp.tq
++++ deps/v8/src/builtins/s390/builtins-s390.cc
++++ deps/v8/src/builtins/setup-builtins-internal.cc
++++ deps/v8/src/builtins/string-endswith.tq
++++ deps/v8/src/builtins/string-html.tq
++++ deps/v8/src/builtins/string-iterator.tq
++++ deps/v8/src/builtins/string-pad.tq
++++ deps/v8/src/builtins/string-repeat.tq
++++ deps/v8/src/builtins/string-slice.tq
++++ deps/v8/src/builtins/string-startswith.tq
++++ deps/v8/src/builtins/string-substring.tq
++++ deps/v8/src/builtins/string.tq
++++ deps/v8/src/builtins/torque-internal.tq
++++ deps/v8/src/builtins/typed-array-createtypedarray.tq
++++ deps/v8/src/builtins/typed-array-every.tq
++++ deps/v8/src/builtins/typed-array-filter.tq
++++ deps/v8/src/builtins/typed-array-find.tq
++++ deps/v8/src/builtins/typed-array-findindex.tq
++++ deps/v8/src/builtins/typed-array-foreach.tq
++++ deps/v8/src/builtins/typed-array-reduce.tq
++++ deps/v8/src/builtins/typed-array-reduceright.tq
++++ deps/v8/src/builtins/typed-array-slice.tq
++++ deps/v8/src/builtins/typed-array-some.tq
++++ deps/v8/src/builtins/typed-array-subarray.tq
++++ deps/v8/src/builtins/typed-array.tq
++++ deps/v8/src/builtins/x64/builtins-x64.cc
++++ deps/v8/src/codegen/DEPS
++++ deps/v8/src/codegen/arm/constants-arm.cc
++++ deps/v8/src/codegen/arm/constants-arm.h
++++ deps/v8/src/codegen/arm/cpu-arm.cc
++++ deps/v8/src/codegen/arm/interface-descriptors-arm.cc
++++ deps/v8/src/codegen/arm/macro-assembler-arm.cc
++++ deps/v8/src/codegen/arm/macro-assembler-arm.h
++++ deps/v8/src/codegen/arm/register-arm.h
++++ deps/v8/src/codegen/arm64/assembler-arm64-inl.h
++++ deps/v8/src/codegen/arm64/assembler-arm64.h
++++ deps/v8/src/codegen/arm64/constants-arm64.h
++++ deps/v8/src/codegen/arm64/cpu-arm64.cc
++++ deps/v8/src/codegen/arm64/decoder-arm64-inl.h
++++ deps/v8/src/codegen/arm64/decoder-arm64.cc
++++ deps/v8/src/codegen/arm64/decoder-arm64.h
++++ deps/v8/src/codegen/arm64/instructions-arm64-constants.cc
++++ deps/v8/src/codegen/arm64/instructions-arm64.cc
++++ deps/v8/src/codegen/arm64/instructions-arm64.h
++++ deps/v8/src/codegen/arm64/instrument-arm64.cc
++++ deps/v8/src/codegen/arm64/instrument-arm64.h
++++ deps/v8/src/codegen/arm64/interface-descriptors-arm64.cc
++++ deps/v8/src/codegen/arm64/macro-assembler-arm64-inl.h
++++ deps/v8/src/codegen/arm64/macro-assembler-arm64.cc
++++ deps/v8/src/codegen/arm64/macro-assembler-arm64.h
++++ deps/v8/src/codegen/arm64/register-arm64.cc
++++ deps/v8/src/codegen/arm64/register-arm64.h
++++ deps/v8/src/codegen/arm64/utils-arm64.cc
++++ deps/v8/src/codegen/arm64/utils-arm64.h
++++ deps/v8/src/codegen/assembler-arch.h
++++ deps/v8/src/codegen/assembler-inl.h
++++ deps/v8/src/codegen/bailout-reason.cc
++++ deps/v8/src/codegen/bailout-reason.h
++++ deps/v8/src/codegen/callable.h
++++ deps/v8/src/codegen/code-comments.cc
++++ deps/v8/src/codegen/code-comments.h
++++ deps/v8/src/codegen/code-desc.cc
++++ deps/v8/src/codegen/code-desc.h
++++ deps/v8/src/codegen/code-factory.cc
++++ deps/v8/src/codegen/code-factory.h
++++ deps/v8/src/codegen/code-reference.cc
++++ deps/v8/src/codegen/code-reference.h
++++ deps/v8/src/codegen/code-stub-assembler.cc
++++ deps/v8/src/codegen/code-stub-assembler.h
++++ deps/v8/src/codegen/compilation-cache.cc
++++ deps/v8/src/codegen/compilation-cache.h
++++ deps/v8/src/codegen/compiler.cc
++++ deps/v8/src/codegen/compiler.h
++++ deps/v8/src/codegen/constant-pool.h
++++ deps/v8/src/codegen/constants-arch.h
++++ deps/v8/src/codegen/cpu-features.h
++++ deps/v8/src/codegen/external-reference-table.cc
++++ deps/v8/src/codegen/external-reference-table.h
++++ deps/v8/src/codegen/external-reference.cc
++++ deps/v8/src/codegen/external-reference.h
++++ deps/v8/src/codegen/flush-instruction-cache.cc
++++ deps/v8/src/codegen/flush-instruction-cache.h
++++ deps/v8/src/codegen/handler-table.cc
++++ deps/v8/src/codegen/handler-table.h
++++ deps/v8/src/codegen/ia32/constants-ia32.h
++++ deps/v8/src/codegen/ia32/cpu-ia32.cc
++++ deps/v8/src/codegen/ia32/interface-descriptors-ia32.cc
++++ deps/v8/src/codegen/ia32/macro-assembler-ia32.cc
++++ deps/v8/src/codegen/ia32/macro-assembler-ia32.h
++++ deps/v8/src/codegen/ia32/register-ia32.h
++++ deps/v8/src/codegen/ia32/sse-instr.h
++++ deps/v8/src/codegen/interface-descriptors.cc
++++ deps/v8/src/codegen/interface-descriptors.h
++++ deps/v8/src/codegen/label.h
++++ deps/v8/src/codegen/machine-type.cc
++++ deps/v8/src/codegen/machine-type.h
++++ deps/v8/src/codegen/macro-assembler-inl.h
++++ deps/v8/src/codegen/macro-assembler.h
++++ deps/v8/src/codegen/mips/constants-mips.cc
++++ deps/v8/src/codegen/mips/constants-mips.h
++++ deps/v8/src/codegen/mips/cpu-mips.cc
++++ deps/v8/src/codegen/mips/interface-descriptors-mips.cc
++++ deps/v8/src/codegen/mips/macro-assembler-mips.cc
++++ deps/v8/src/codegen/mips/macro-assembler-mips.h
++++ deps/v8/src/codegen/mips/register-mips.h
++++ deps/v8/src/codegen/mips64/constants-mips64.cc
++++ deps/v8/src/codegen/mips64/constants-mips64.h
++++ deps/v8/src/codegen/mips64/cpu-mips64.cc
++++ deps/v8/src/codegen/mips64/interface-descriptors-mips64.cc
++++ deps/v8/src/codegen/mips64/macro-assembler-mips64.cc
++++ deps/v8/src/codegen/mips64/macro-assembler-mips64.h
++++ deps/v8/src/codegen/mips64/register-mips64.h
++++ deps/v8/src/codegen/optimized-compilation-info.cc
++++ deps/v8/src/codegen/optimized-compilation-info.h
++++ deps/v8/src/codegen/pending-optimization-table.cc
++++ deps/v8/src/codegen/pending-optimization-table.h
++++ deps/v8/src/codegen/ppc/constants-ppc.cc
++++ deps/v8/src/codegen/ppc/constants-ppc.h
++++ deps/v8/src/codegen/ppc/cpu-ppc.cc
++++ deps/v8/src/codegen/ppc/interface-descriptors-ppc.cc
++++ deps/v8/src/codegen/ppc/macro-assembler-ppc.cc
++++ deps/v8/src/codegen/ppc/macro-assembler-ppc.h
++++ deps/v8/src/codegen/ppc/register-ppc.h
++++ deps/v8/src/codegen/register-arch.h
++++ deps/v8/src/codegen/register-configuration.cc
++++ deps/v8/src/codegen/register-configuration.h
++++ deps/v8/src/codegen/register.cc
++++ deps/v8/src/codegen/register.h
++++ deps/v8/src/codegen/reglist.h
++++ deps/v8/src/codegen/reloc-info.cc
++++ deps/v8/src/codegen/reloc-info.h
++++ deps/v8/src/codegen/s390/constants-s390.cc
++++ deps/v8/src/codegen/s390/constants-s390.h
++++ deps/v8/src/codegen/s390/cpu-s390.cc
++++ deps/v8/src/codegen/s390/interface-descriptors-s390.cc
++++ deps/v8/src/codegen/s390/macro-assembler-s390.cc
++++ deps/v8/src/codegen/s390/macro-assembler-s390.h
++++ deps/v8/src/codegen/s390/register-s390.h
++++ deps/v8/src/codegen/safepoint-table.cc
++++ deps/v8/src/codegen/safepoint-table.h
++++ deps/v8/src/codegen/signature.h
++++ deps/v8/src/codegen/source-position-table.cc
++++ deps/v8/src/codegen/source-position-table.h
++++ deps/v8/src/codegen/source-position.cc
++++ deps/v8/src/codegen/source-position.h
++++ deps/v8/src/codegen/string-constants.cc
++++ deps/v8/src/codegen/string-constants.h
++++ deps/v8/src/codegen/tick-counter.cc
++++ deps/v8/src/codegen/tick-counter.h
++++ deps/v8/src/codegen/turbo-assembler.cc
++++ deps/v8/src/codegen/turbo-assembler.h
++++ deps/v8/src/codegen/unoptimized-compilation-info.cc
++++ deps/v8/src/codegen/unoptimized-compilation-info.h
++++ deps/v8/src/codegen/x64/assembler-x64-inl.h
++++ deps/v8/src/codegen/x64/assembler-x64.cc
++++ deps/v8/src/codegen/x64/constants-x64.h
++++ deps/v8/src/codegen/x64/cpu-x64.cc
++++ deps/v8/src/codegen/x64/interface-descriptors-x64.cc
++++ deps/v8/src/codegen/x64/macro-assembler-x64.cc
++++ deps/v8/src/codegen/x64/macro-assembler-x64.h
++++ deps/v8/src/codegen/x64/register-x64.h
++++ deps/v8/src/codegen/x64/sse-instr.h
++++ deps/v8/src/common/assert-scope.cc
++++ deps/v8/src/common/assert-scope.h
++++ deps/v8/src/common/checks.h
++++ deps/v8/src/common/globals.h
++++ deps/v8/src/common/message-template.h
++++ deps/v8/src/common/ptr-compr-inl.h
++++ deps/v8/src/common/ptr-compr.h
++++ deps/v8/src/compiler-dispatcher/compiler-dispatcher.cc
++++ deps/v8/src/compiler-dispatcher/compiler-dispatcher.h
++++ deps/v8/src/compiler-dispatcher/optimizing-compile-dispatcher.cc
++++ deps/v8/src/compiler-dispatcher/optimizing-compile-dispatcher.h
++++ deps/v8/src/compiler/DEPS
++++ deps/v8/src/compiler/access-builder.cc
++++ deps/v8/src/compiler/access-builder.h
++++ deps/v8/src/compiler/access-info.cc
++++ deps/v8/src/compiler/access-info.h
++++ deps/v8/src/compiler/add-type-assertions-reducer.cc
++++ deps/v8/src/compiler/add-type-assertions-reducer.h
++++ deps/v8/src/compiler/all-nodes.cc
++++ deps/v8/src/compiler/all-nodes.h
++++ deps/v8/src/compiler/allocation-builder-inl.h
++++ deps/v8/src/compiler/allocation-builder.h
++++ deps/v8/src/compiler/backend/arm/code-generator-arm.cc
++++ deps/v8/src/compiler/backend/arm/instruction-codes-arm.h
++++ deps/v8/src/compiler/backend/arm/instruction-scheduler-arm.cc
++++ deps/v8/src/compiler/backend/arm/instruction-selector-arm.cc
++++ deps/v8/src/compiler/backend/arm/unwinding-info-writer-arm.cc
++++ deps/v8/src/compiler/backend/arm/unwinding-info-writer-arm.h
++++ deps/v8/src/compiler/backend/arm64/code-generator-arm64.cc
++++ deps/v8/src/compiler/backend/arm64/instruction-codes-arm64.h
++++ deps/v8/src/compiler/backend/arm64/instruction-scheduler-arm64.cc
++++ deps/v8/src/compiler/backend/arm64/instruction-selector-arm64.cc
++++ deps/v8/src/compiler/backend/arm64/unwinding-info-writer-arm64.cc
++++ deps/v8/src/compiler/backend/arm64/unwinding-info-writer-arm64.h
++++ deps/v8/src/compiler/backend/code-generator-impl.h
++++ deps/v8/src/compiler/backend/code-generator.cc
++++ deps/v8/src/compiler/backend/code-generator.h
++++ deps/v8/src/compiler/backend/frame-elider.cc
++++ deps/v8/src/compiler/backend/frame-elider.h
++++ deps/v8/src/compiler/backend/gap-resolver.cc
++++ deps/v8/src/compiler/backend/gap-resolver.h
++++ deps/v8/src/compiler/backend/ia32/code-generator-ia32.cc
++++ deps/v8/src/compiler/backend/ia32/instruction-codes-ia32.h
++++ deps/v8/src/compiler/backend/ia32/instruction-scheduler-ia32.cc
++++ deps/v8/src/compiler/backend/ia32/instruction-selector-ia32.cc
++++ deps/v8/src/compiler/backend/instruction-codes.h
++++ deps/v8/src/compiler/backend/instruction-scheduler.cc
++++ deps/v8/src/compiler/backend/instruction-scheduler.h
++++ deps/v8/src/compiler/backend/instruction-selector-impl.h
++++ deps/v8/src/compiler/backend/instruction-selector.cc
++++ deps/v8/src/compiler/backend/instruction-selector.h
++++ deps/v8/src/compiler/backend/instruction.cc
++++ deps/v8/src/compiler/backend/instruction.h
++++ deps/v8/src/compiler/backend/jump-threading.cc
++++ deps/v8/src/compiler/backend/jump-threading.h
++++ deps/v8/src/compiler/backend/live-range-separator.cc
++++ deps/v8/src/compiler/backend/live-range-separator.h
++++ deps/v8/src/compiler/backend/mips/code-generator-mips.cc
++++ deps/v8/src/compiler/backend/mips/instruction-codes-mips.h
++++ deps/v8/src/compiler/backend/mips/instruction-scheduler-mips.cc
++++ deps/v8/src/compiler/backend/mips/instruction-selector-mips.cc
++++ deps/v8/src/compiler/backend/mips64/code-generator-mips64.cc
++++ deps/v8/src/compiler/backend/mips64/instruction-codes-mips64.h
++++ deps/v8/src/compiler/backend/mips64/instruction-scheduler-mips64.cc
++++ deps/v8/src/compiler/backend/mips64/instruction-selector-mips64.cc
++++ deps/v8/src/compiler/backend/move-optimizer.cc
++++ deps/v8/src/compiler/backend/move-optimizer.h
++++ deps/v8/src/compiler/backend/ppc/code-generator-ppc.cc
++++ deps/v8/src/compiler/backend/ppc/instruction-codes-ppc.h
++++ deps/v8/src/compiler/backend/ppc/instruction-scheduler-ppc.cc
++++ deps/v8/src/compiler/backend/ppc/instruction-selector-ppc.cc
++++ deps/v8/src/compiler/backend/register-allocator-verifier.cc
++++ deps/v8/src/compiler/backend/register-allocator-verifier.h
++++ deps/v8/src/compiler/backend/register-allocator.cc
++++ deps/v8/src/compiler/backend/register-allocator.h
++++ deps/v8/src/compiler/backend/s390/code-generator-s390.cc
++++ deps/v8/src/compiler/backend/s390/instruction-codes-s390.h
++++ deps/v8/src/compiler/backend/s390/instruction-scheduler-s390.cc
++++ deps/v8/src/compiler/backend/s390/instruction-selector-s390.cc
++++ deps/v8/src/compiler/backend/unwinding-info-writer.h
++++ deps/v8/src/compiler/backend/x64/code-generator-x64.cc
++++ deps/v8/src/compiler/backend/x64/instruction-codes-x64.h
++++ deps/v8/src/compiler/backend/x64/instruction-scheduler-x64.cc
++++ deps/v8/src/compiler/backend/x64/instruction-selector-x64.cc
++++ deps/v8/src/compiler/backend/x64/unwinding-info-writer-x64.cc
++++ deps/v8/src/compiler/backend/x64/unwinding-info-writer-x64.h
++++ deps/v8/src/compiler/basic-block-instrumentor.cc
++++ deps/v8/src/compiler/basic-block-instrumentor.h
++++ deps/v8/src/compiler/branch-elimination.cc
++++ deps/v8/src/compiler/branch-elimination.h
++++ deps/v8/src/compiler/bytecode-analysis.cc
++++ deps/v8/src/compiler/bytecode-analysis.h
++++ deps/v8/src/compiler/bytecode-graph-builder.cc
++++ deps/v8/src/compiler/bytecode-graph-builder.h
++++ deps/v8/src/compiler/bytecode-liveness-map.cc
++++ deps/v8/src/compiler/bytecode-liveness-map.h
++++ deps/v8/src/compiler/c-linkage.cc
++++ deps/v8/src/compiler/checkpoint-elimination.cc
++++ deps/v8/src/compiler/checkpoint-elimination.h
++++ deps/v8/src/compiler/code-assembler.cc
++++ deps/v8/src/compiler/code-assembler.h
++++ deps/v8/src/compiler/common-node-cache.cc
++++ deps/v8/src/compiler/common-node-cache.h
++++ deps/v8/src/compiler/common-operator-reducer.cc
++++ deps/v8/src/compiler/common-operator-reducer.h
++++ deps/v8/src/compiler/common-operator.cc
++++ deps/v8/src/compiler/common-operator.h
++++ deps/v8/src/compiler/compilation-dependencies.cc
++++ deps/v8/src/compiler/compilation-dependencies.h
++++ deps/v8/src/compiler/compilation-dependency.h
++++ deps/v8/src/compiler/compiler-source-position-table.cc
++++ deps/v8/src/compiler/compiler-source-position-table.h
++++ deps/v8/src/compiler/constant-folding-reducer.cc
++++ deps/v8/src/compiler/constant-folding-reducer.h
++++ deps/v8/src/compiler/control-equivalence.cc
++++ deps/v8/src/compiler/control-equivalence.h
++++ deps/v8/src/compiler/control-flow-optimizer.cc
++++ deps/v8/src/compiler/control-flow-optimizer.h
++++ deps/v8/src/compiler/csa-load-elimination.cc
++++ deps/v8/src/compiler/csa-load-elimination.h
++++ deps/v8/src/compiler/dead-code-elimination.cc
++++ deps/v8/src/compiler/dead-code-elimination.h
++++ deps/v8/src/compiler/decompression-elimination.cc
++++ deps/v8/src/compiler/decompression-elimination.h
++++ deps/v8/src/compiler/diamond.h
++++ deps/v8/src/compiler/effect-control-linearizer.cc
++++ deps/v8/src/compiler/effect-control-linearizer.h
++++ deps/v8/src/compiler/escape-analysis-reducer.cc
++++ deps/v8/src/compiler/escape-analysis-reducer.h
++++ deps/v8/src/compiler/escape-analysis.cc
++++ deps/v8/src/compiler/escape-analysis.h
++++ deps/v8/src/compiler/feedback-source.cc
++++ deps/v8/src/compiler/feedback-source.h
++++ deps/v8/src/compiler/frame-states.cc
++++ deps/v8/src/compiler/frame-states.h
++++ deps/v8/src/compiler/frame.cc
++++ deps/v8/src/compiler/frame.h
++++ deps/v8/src/compiler/functional-list.h
++++ deps/v8/src/compiler/graph-assembler.cc
++++ deps/v8/src/compiler/graph-assembler.h
++++ deps/v8/src/compiler/graph-reducer.cc
++++ deps/v8/src/compiler/graph-reducer.h
++++ deps/v8/src/compiler/graph-trimmer.cc
++++ deps/v8/src/compiler/graph-trimmer.h
++++ deps/v8/src/compiler/graph-visualizer.cc
++++ deps/v8/src/compiler/graph-visualizer.h
++++ deps/v8/src/compiler/graph.cc
++++ deps/v8/src/compiler/graph.h
++++ deps/v8/src/compiler/heap-refs.h
++++ deps/v8/src/compiler/int64-lowering.cc
++++ deps/v8/src/compiler/int64-lowering.h
++++ deps/v8/src/compiler/js-call-reducer.cc
++++ deps/v8/src/compiler/js-call-reducer.h
++++ deps/v8/src/compiler/js-context-specialization.cc
++++ deps/v8/src/compiler/js-context-specialization.h
++++ deps/v8/src/compiler/js-create-lowering.cc
++++ deps/v8/src/compiler/js-create-lowering.h
++++ deps/v8/src/compiler/js-generic-lowering.cc
++++ deps/v8/src/compiler/js-generic-lowering.h
++++ deps/v8/src/compiler/js-graph.cc
++++ deps/v8/src/compiler/js-graph.h
++++ deps/v8/src/compiler/js-heap-broker.cc
++++ deps/v8/src/compiler/js-heap-broker.h
++++ deps/v8/src/compiler/js-heap-copy-reducer.cc
++++ deps/v8/src/compiler/js-heap-copy-reducer.h
++++ deps/v8/src/compiler/js-inlining-heuristic.cc
++++ deps/v8/src/compiler/js-inlining-heuristic.h
++++ deps/v8/src/compiler/js-inlining.cc
++++ deps/v8/src/compiler/js-inlining.h
++++ deps/v8/src/compiler/js-intrinsic-lowering.cc
++++ deps/v8/src/compiler/js-intrinsic-lowering.h
++++ deps/v8/src/compiler/js-native-context-specialization.cc
++++ deps/v8/src/compiler/js-native-context-specialization.h
++++ deps/v8/src/compiler/js-operator.cc
++++ deps/v8/src/compiler/js-operator.h
++++ deps/v8/src/compiler/js-type-hint-lowering.cc
++++ deps/v8/src/compiler/js-type-hint-lowering.h
++++ deps/v8/src/compiler/js-typed-lowering.cc
++++ deps/v8/src/compiler/js-typed-lowering.h
++++ deps/v8/src/compiler/linkage.cc
++++ deps/v8/src/compiler/linkage.h
++++ deps/v8/src/compiler/load-elimination.cc
++++ deps/v8/src/compiler/load-elimination.h
++++ deps/v8/src/compiler/loop-analysis.cc
++++ deps/v8/src/compiler/loop-analysis.h
++++ deps/v8/src/compiler/loop-peeling.cc
++++ deps/v8/src/compiler/loop-peeling.h
++++ deps/v8/src/compiler/loop-variable-optimizer.cc
++++ deps/v8/src/compiler/loop-variable-optimizer.h
++++ deps/v8/src/compiler/machine-graph-verifier.cc
++++ deps/v8/src/compiler/machine-graph-verifier.h
++++ deps/v8/src/compiler/machine-graph.cc
++++ deps/v8/src/compiler/machine-graph.h
++++ deps/v8/src/compiler/machine-operator-reducer.cc
++++ deps/v8/src/compiler/machine-operator-reducer.h
++++ deps/v8/src/compiler/machine-operator.cc
++++ deps/v8/src/compiler/machine-operator.h
++++ deps/v8/src/compiler/map-inference.cc
++++ deps/v8/src/compiler/map-inference.h
++++ deps/v8/src/compiler/memory-optimizer.cc
++++ deps/v8/src/compiler/memory-optimizer.h
++++ deps/v8/src/compiler/node-aux-data.h
++++ deps/v8/src/compiler/node-cache.cc
++++ deps/v8/src/compiler/node-cache.h
++++ deps/v8/src/compiler/node-marker.cc
++++ deps/v8/src/compiler/node-marker.h
++++ deps/v8/src/compiler/node-matchers.cc
++++ deps/v8/src/compiler/node-matchers.h
++++ deps/v8/src/compiler/node-origin-table.cc
++++ deps/v8/src/compiler/node-origin-table.h
++++ deps/v8/src/compiler/node-properties.cc
++++ deps/v8/src/compiler/node-properties.h
++++ deps/v8/src/compiler/node.cc
++++ deps/v8/src/compiler/node.h
++++ deps/v8/src/compiler/opcodes.cc
++++ deps/v8/src/compiler/opcodes.h
++++ deps/v8/src/compiler/operation-typer.cc
++++ deps/v8/src/compiler/operation-typer.h
++++ deps/v8/src/compiler/operator-properties.cc
++++ deps/v8/src/compiler/operator-properties.h
++++ deps/v8/src/compiler/operator.cc
++++ deps/v8/src/compiler/operator.h
++++ deps/v8/src/compiler/osr.cc
++++ deps/v8/src/compiler/osr.h
++++ deps/v8/src/compiler/per-isolate-compiler-cache.h
++++ deps/v8/src/compiler/persistent-map.h
++++ deps/v8/src/compiler/pipeline-statistics.cc
++++ deps/v8/src/compiler/pipeline-statistics.h
++++ deps/v8/src/compiler/pipeline.cc
++++ deps/v8/src/compiler/pipeline.h
++++ deps/v8/src/compiler/processed-feedback.h
++++ deps/v8/src/compiler/property-access-builder.cc
++++ deps/v8/src/compiler/property-access-builder.h
++++ deps/v8/src/compiler/raw-machine-assembler.cc
++++ deps/v8/src/compiler/raw-machine-assembler.h
++++ deps/v8/src/compiler/redundancy-elimination.cc
++++ deps/v8/src/compiler/redundancy-elimination.h
++++ deps/v8/src/compiler/refs-map.cc
++++ deps/v8/src/compiler/refs-map.h
++++ deps/v8/src/compiler/representation-change.cc
++++ deps/v8/src/compiler/representation-change.h
++++ deps/v8/src/compiler/schedule.cc
++++ deps/v8/src/compiler/schedule.h
++++ deps/v8/src/compiler/scheduler.cc
++++ deps/v8/src/compiler/scheduler.h
++++ deps/v8/src/compiler/select-lowering.cc
++++ deps/v8/src/compiler/select-lowering.h
++++ deps/v8/src/compiler/serializer-for-background-compilation.cc
++++ deps/v8/src/compiler/serializer-for-background-compilation.h
++++ deps/v8/src/compiler/simd-scalar-lowering.cc
++++ deps/v8/src/compiler/simd-scalar-lowering.h
++++ deps/v8/src/compiler/simplified-lowering.cc
++++ deps/v8/src/compiler/simplified-lowering.h
++++ deps/v8/src/compiler/simplified-operator-reducer.cc
++++ deps/v8/src/compiler/simplified-operator-reducer.h
++++ deps/v8/src/compiler/simplified-operator.cc
++++ deps/v8/src/compiler/simplified-operator.h
++++ deps/v8/src/compiler/state-values-utils.cc
++++ deps/v8/src/compiler/state-values-utils.h
++++ deps/v8/src/compiler/store-store-elimination.cc
++++ deps/v8/src/compiler/store-store-elimination.h
++++ deps/v8/src/compiler/type-cache.cc
++++ deps/v8/src/compiler/type-cache.h
++++ deps/v8/src/compiler/type-narrowing-reducer.cc
++++ deps/v8/src/compiler/type-narrowing-reducer.h
++++ deps/v8/src/compiler/typed-optimization.cc
++++ deps/v8/src/compiler/typed-optimization.h
++++ deps/v8/src/compiler/typer.cc
++++ deps/v8/src/compiler/typer.h
++++ deps/v8/src/compiler/types.cc
++++ deps/v8/src/compiler/types.h
++++ deps/v8/src/compiler/value-numbering-reducer.cc
++++ deps/v8/src/compiler/value-numbering-reducer.h
++++ deps/v8/src/compiler/verifier.cc
++++ deps/v8/src/compiler/verifier.h
++++ deps/v8/src/compiler/wasm-compiler.cc
++++ deps/v8/src/compiler/wasm-compiler.h
++++ deps/v8/src/compiler/write-barrier-kind.h
++++ deps/v8/src/compiler/zone-stats.cc
++++ deps/v8/src/compiler/zone-stats.h
++++ deps/v8/src/d8/async-hooks-wrapper.cc
++++ deps/v8/src/d8/async-hooks-wrapper.h
++++ deps/v8/src/d8/d8-console.cc
++++ deps/v8/src/d8/d8-console.h
++++ deps/v8/src/d8/d8-js.cc
++++ deps/v8/src/d8/d8-platforms.cc
++++ deps/v8/src/d8/d8-platforms.h
++++ deps/v8/src/d8/d8-posix.cc
++++ deps/v8/src/d8/d8-windows.cc
++++ deps/v8/src/d8/d8.cc
++++ deps/v8/src/d8/d8.h
++++ deps/v8/src/date/date.cc
++++ deps/v8/src/date/date.h
++++ deps/v8/src/date/dateparser-inl.h
++++ deps/v8/src/date/dateparser.cc
++++ deps/v8/src/date/dateparser.h
++++ deps/v8/src/debug/arm/debug-arm.cc
++++ deps/v8/src/debug/arm64/debug-arm64.cc
++++ deps/v8/src/debug/debug-coverage.cc
++++ deps/v8/src/debug/debug-coverage.h
++++ deps/v8/src/debug/debug-evaluate.cc
++++ deps/v8/src/debug/debug-evaluate.h
++++ deps/v8/src/debug/debug-frames.cc
++++ deps/v8/src/debug/debug-frames.h
++++ deps/v8/src/debug/debug-interface.h
++++ deps/v8/src/debug/debug-property-iterator.cc
++++ deps/v8/src/debug/debug-property-iterator.h
++++ deps/v8/src/debug/debug-scope-iterator.cc
++++ deps/v8/src/debug/debug-scope-iterator.h
++++ deps/v8/src/debug/debug-scopes.cc
++++ deps/v8/src/debug/debug-scopes.h
++++ deps/v8/src/debug/debug-stack-trace-iterator.cc
++++ deps/v8/src/debug/debug-stack-trace-iterator.h
++++ deps/v8/src/debug/debug-type-profile.cc
++++ deps/v8/src/debug/debug-type-profile.h
++++ deps/v8/src/debug/debug.cc
++++ deps/v8/src/debug/debug.h
++++ deps/v8/src/debug/ia32/debug-ia32.cc
++++ deps/v8/src/debug/interface-types.h
++++ deps/v8/src/debug/liveedit.cc
++++ deps/v8/src/debug/liveedit.h
++++ deps/v8/src/debug/mips/debug-mips.cc
++++ deps/v8/src/debug/mips64/debug-mips64.cc
++++ deps/v8/src/debug/ppc/debug-ppc.cc
++++ deps/v8/src/debug/s390/debug-s390.cc
++++ deps/v8/src/debug/x64/debug-x64.cc
++++ deps/v8/src/deoptimizer/arm/deoptimizer-arm.cc
++++ deps/v8/src/deoptimizer/arm64/deoptimizer-arm64.cc
++++ deps/v8/src/deoptimizer/deoptimize-reason.cc
++++ deps/v8/src/deoptimizer/deoptimize-reason.h
++++ deps/v8/src/deoptimizer/deoptimizer.cc
++++ deps/v8/src/deoptimizer/deoptimizer.h
++++ deps/v8/src/deoptimizer/ia32/deoptimizer-ia32.cc
++++ deps/v8/src/deoptimizer/mips/deoptimizer-mips.cc
++++ deps/v8/src/deoptimizer/mips64/deoptimizer-mips64.cc
++++ deps/v8/src/deoptimizer/ppc/deoptimizer-ppc.cc
++++ deps/v8/src/deoptimizer/s390/deoptimizer-s390.cc
++++ deps/v8/src/deoptimizer/x64/deoptimizer-x64.cc
++++ deps/v8/src/diagnostics/arm/disasm-arm.cc
++++ deps/v8/src/diagnostics/arm/eh-frame-arm.cc
++++ deps/v8/src/diagnostics/arm64/disasm-arm64.cc
++++ deps/v8/src/diagnostics/arm64/disasm-arm64.h
++++ deps/v8/src/diagnostics/arm64/eh-frame-arm64.cc
++++ deps/v8/src/diagnostics/basic-block-profiler.cc
++++ deps/v8/src/diagnostics/basic-block-profiler.h
++++ deps/v8/src/diagnostics/code-tracer.h
++++ deps/v8/src/diagnostics/compilation-statistics.cc
++++ deps/v8/src/diagnostics/compilation-statistics.h
++++ deps/v8/src/diagnostics/disasm.h
++++ deps/v8/src/diagnostics/disassembler.cc
++++ deps/v8/src/diagnostics/disassembler.h
++++ deps/v8/src/diagnostics/eh-frame.h
++++ deps/v8/src/diagnostics/gdb-jit.cc
++++ deps/v8/src/diagnostics/gdb-jit.h
++++ deps/v8/src/diagnostics/ia32/disasm-ia32.cc
++++ deps/v8/src/diagnostics/mips/disasm-mips.cc
++++ deps/v8/src/diagnostics/mips64/disasm-mips64.cc
++++ deps/v8/src/diagnostics/objects-debug.cc
++++ deps/v8/src/diagnostics/objects-printer.cc
++++ deps/v8/src/diagnostics/ppc/disasm-ppc.cc
++++ deps/v8/src/diagnostics/s390/disasm-s390.cc
++++ deps/v8/src/diagnostics/unwinder.cc
++++ deps/v8/src/diagnostics/unwinding-info-win64.cc
++++ deps/v8/src/diagnostics/unwinding-info-win64.h
++++ deps/v8/src/diagnostics/x64/disasm-x64.cc
++++ deps/v8/src/diagnostics/x64/eh-frame-x64.cc
++++ deps/v8/src/execution/arguments-inl.h
++++ deps/v8/src/execution/arguments.cc
++++ deps/v8/src/execution/arguments.h
++++ deps/v8/src/execution/arm/frame-constants-arm.cc
++++ deps/v8/src/execution/arm/frame-constants-arm.h
++++ deps/v8/src/execution/arm/simulator-arm.cc
++++ deps/v8/src/execution/arm/simulator-arm.h
++++ deps/v8/src/execution/arm64/frame-constants-arm64.cc
++++ deps/v8/src/execution/arm64/frame-constants-arm64.h
++++ deps/v8/src/execution/arm64/pointer-auth-arm64.cc
++++ deps/v8/src/execution/arm64/simulator-arm64.cc
++++ deps/v8/src/execution/arm64/simulator-arm64.h
++++ deps/v8/src/execution/arm64/simulator-logic-arm64.cc
++++ deps/v8/src/execution/execution.cc
++++ deps/v8/src/execution/execution.h
++++ deps/v8/src/execution/frame-constants.h
++++ deps/v8/src/execution/frames-inl.h
++++ deps/v8/src/execution/frames.cc
++++ deps/v8/src/execution/frames.h
++++ deps/v8/src/execution/futex-emulation.cc
++++ deps/v8/src/execution/futex-emulation.h
++++ deps/v8/src/execution/ia32/frame-constants-ia32.cc
++++ deps/v8/src/execution/ia32/frame-constants-ia32.h
++++ deps/v8/src/execution/interrupts-scope.cc
++++ deps/v8/src/execution/interrupts-scope.h
++++ deps/v8/src/execution/isolate-data.h
++++ deps/v8/src/execution/isolate-inl.h
++++ deps/v8/src/execution/isolate-utils-inl.h
++++ deps/v8/src/execution/isolate-utils.h
++++ deps/v8/src/execution/isolate.cc
++++ deps/v8/src/execution/isolate.h
++++ deps/v8/src/execution/messages.cc
++++ deps/v8/src/execution/messages.h
++++ deps/v8/src/execution/microtask-queue.cc
++++ deps/v8/src/execution/microtask-queue.h
++++ deps/v8/src/execution/mips/frame-constants-mips.cc
++++ deps/v8/src/execution/mips/frame-constants-mips.h
++++ deps/v8/src/execution/mips/simulator-mips.cc
++++ deps/v8/src/execution/mips/simulator-mips.h
++++ deps/v8/src/execution/mips64/frame-constants-mips64.cc
++++ deps/v8/src/execution/mips64/frame-constants-mips64.h
++++ deps/v8/src/execution/mips64/simulator-mips64.cc
++++ deps/v8/src/execution/mips64/simulator-mips64.h
++++ deps/v8/src/execution/ppc/frame-constants-ppc.cc
++++ deps/v8/src/execution/ppc/frame-constants-ppc.h
++++ deps/v8/src/execution/ppc/simulator-ppc.cc
++++ deps/v8/src/execution/ppc/simulator-ppc.h
++++ deps/v8/src/execution/protectors-inl.h
++++ deps/v8/src/execution/protectors.cc
++++ deps/v8/src/execution/protectors.h
++++ deps/v8/src/execution/runtime-profiler.cc
++++ deps/v8/src/execution/runtime-profiler.h
++++ deps/v8/src/execution/s390/frame-constants-s390.cc
++++ deps/v8/src/execution/s390/frame-constants-s390.h
++++ deps/v8/src/execution/s390/simulator-s390.cc
++++ deps/v8/src/execution/s390/simulator-s390.h
++++ deps/v8/src/execution/simulator-base.cc
++++ deps/v8/src/execution/simulator-base.h
++++ deps/v8/src/execution/simulator.h
++++ deps/v8/src/execution/stack-guard.cc
++++ deps/v8/src/execution/stack-guard.h
++++ deps/v8/src/execution/thread-id.cc
++++ deps/v8/src/execution/thread-id.h
++++ deps/v8/src/execution/thread-local-top.cc
++++ deps/v8/src/execution/thread-local-top.h
++++ deps/v8/src/execution/v8threads.cc
++++ deps/v8/src/execution/v8threads.h
++++ deps/v8/src/execution/vm-state-inl.h
++++ deps/v8/src/execution/vm-state.h
++++ deps/v8/src/execution/x64/frame-constants-x64.cc
++++ deps/v8/src/execution/x64/frame-constants-x64.h
++++ deps/v8/src/extensions/cputracemark-extension.cc
++++ deps/v8/src/extensions/cputracemark-extension.h
++++ deps/v8/src/extensions/externalize-string-extension.cc
++++ deps/v8/src/extensions/externalize-string-extension.h
++++ deps/v8/src/extensions/free-buffer-extension.cc
++++ deps/v8/src/extensions/free-buffer-extension.h
++++ deps/v8/src/extensions/gc-extension.cc
++++ deps/v8/src/extensions/gc-extension.h
++++ deps/v8/src/extensions/ignition-statistics-extension.cc
++++ deps/v8/src/extensions/ignition-statistics-extension.h
++++ deps/v8/src/extensions/statistics-extension.cc
++++ deps/v8/src/extensions/statistics-extension.h
++++ deps/v8/src/extensions/trigger-failure-extension.cc
++++ deps/v8/src/extensions/trigger-failure-extension.h
++++ deps/v8/src/flags/flag-definitions.h
++++ deps/v8/src/flags/flags.cc
++++ deps/v8/src/flags/flags.h
++++ deps/v8/src/handles/global-handles.cc
++++ deps/v8/src/handles/global-handles.h
++++ deps/v8/src/handles/handles-inl.h
++++ deps/v8/src/handles/handles.cc
++++ deps/v8/src/handles/handles.h
++++ deps/v8/src/handles/maybe-handles-inl.h
++++ deps/v8/src/handles/maybe-handles.h
++++ deps/v8/src/heap/array-buffer-collector.cc
++++ deps/v8/src/heap/array-buffer-collector.h
++++ deps/v8/src/heap/array-buffer-tracker-inl.h
++++ deps/v8/src/heap/array-buffer-tracker.cc
++++ deps/v8/src/heap/array-buffer-tracker.h
++++ deps/v8/src/heap/barrier.h
++++ deps/v8/src/heap/basic-memory-chunk.cc
++++ deps/v8/src/heap/basic-memory-chunk.h
++++ deps/v8/src/heap/code-stats.cc
++++ deps/v8/src/heap/code-stats.h
++++ deps/v8/src/heap/combined-heap.cc
++++ deps/v8/src/heap/combined-heap.h
++++ deps/v8/src/heap/concurrent-marking.cc
++++ deps/v8/src/heap/concurrent-marking.h
++++ deps/v8/src/heap/embedder-tracing.cc
++++ deps/v8/src/heap/embedder-tracing.h
++++ deps/v8/src/heap/factory-inl.h
++++ deps/v8/src/heap/factory.cc
++++ deps/v8/src/heap/factory.h
++++ deps/v8/src/heap/gc-idle-time-handler.cc
++++ deps/v8/src/heap/gc-idle-time-handler.h
++++ deps/v8/src/heap/gc-tracer.cc
++++ deps/v8/src/heap/gc-tracer.h
++++ deps/v8/src/heap/heap-controller.cc
++++ deps/v8/src/heap/heap-controller.h
++++ deps/v8/src/heap/heap-inl.h
++++ deps/v8/src/heap/heap-write-barrier-inl.h
++++ deps/v8/src/heap/heap-write-barrier.h
++++ deps/v8/src/heap/heap.cc
++++ deps/v8/src/heap/heap.h
++++ deps/v8/src/heap/incremental-marking-inl.h
++++ deps/v8/src/heap/incremental-marking-job.cc
++++ deps/v8/src/heap/incremental-marking-job.h
++++ deps/v8/src/heap/incremental-marking.cc
++++ deps/v8/src/heap/incremental-marking.h
++++ deps/v8/src/heap/invalidated-slots-inl.h
++++ deps/v8/src/heap/invalidated-slots.cc
++++ deps/v8/src/heap/invalidated-slots.h
++++ deps/v8/src/heap/item-parallel-job.cc
++++ deps/v8/src/heap/item-parallel-job.h
++++ deps/v8/src/heap/local-allocator-inl.h
++++ deps/v8/src/heap/local-allocator.h
++++ deps/v8/src/heap/mark-compact-inl.h
++++ deps/v8/src/heap/mark-compact.cc
++++ deps/v8/src/heap/mark-compact.h
++++ deps/v8/src/heap/marking.cc
++++ deps/v8/src/heap/marking.h
++++ deps/v8/src/heap/memory-reducer.cc
++++ deps/v8/src/heap/memory-reducer.h
++++ deps/v8/src/heap/object-stats.cc
++++ deps/v8/src/heap/object-stats.h
++++ deps/v8/src/heap/objects-visiting-inl.h
++++ deps/v8/src/heap/objects-visiting.cc
++++ deps/v8/src/heap/objects-visiting.h
++++ deps/v8/src/heap/read-only-heap-inl.h
++++ deps/v8/src/heap/read-only-heap.cc
++++ deps/v8/src/heap/read-only-heap.h
++++ deps/v8/src/heap/remembered-set.h
++++ deps/v8/src/heap/scavenge-job.cc
++++ deps/v8/src/heap/scavenge-job.h
++++ deps/v8/src/heap/scavenger-inl.h
++++ deps/v8/src/heap/scavenger.cc
++++ deps/v8/src/heap/scavenger.h
++++ deps/v8/src/heap/setup-heap-internal.cc
++++ deps/v8/src/heap/slot-set.cc
++++ deps/v8/src/heap/slot-set.h
++++ deps/v8/src/heap/spaces-inl.h
++++ deps/v8/src/heap/spaces.h
++++ deps/v8/src/heap/store-buffer-inl.h
++++ deps/v8/src/heap/store-buffer.cc
++++ deps/v8/src/heap/store-buffer.h
++++ deps/v8/src/heap/stress-marking-observer.cc
++++ deps/v8/src/heap/stress-marking-observer.h
++++ deps/v8/src/heap/stress-scavenge-observer.cc
++++ deps/v8/src/heap/stress-scavenge-observer.h
++++ deps/v8/src/heap/sweeper.cc
++++ deps/v8/src/heap/sweeper.h
++++ deps/v8/src/heap/worklist.h
++++ deps/v8/src/ic/accessor-assembler.cc
++++ deps/v8/src/ic/accessor-assembler.h
++++ deps/v8/src/ic/binary-op-assembler.cc
++++ deps/v8/src/ic/binary-op-assembler.h
++++ deps/v8/src/ic/call-optimization.cc
++++ deps/v8/src/ic/call-optimization.h
++++ deps/v8/src/ic/handler-configuration-inl.h
++++ deps/v8/src/ic/handler-configuration.cc
++++ deps/v8/src/ic/handler-configuration.h
++++ deps/v8/src/ic/ic-inl.h
++++ deps/v8/src/ic/ic-stats.cc
++++ deps/v8/src/ic/ic-stats.h
++++ deps/v8/src/ic/ic.cc
++++ deps/v8/src/ic/ic.h
++++ deps/v8/src/ic/keyed-store-generic.cc
++++ deps/v8/src/ic/keyed-store-generic.h
++++ deps/v8/src/ic/stub-cache.cc
++++ deps/v8/src/ic/stub-cache.h
++++ deps/v8/src/init/bootstrapper.cc
++++ deps/v8/src/init/bootstrapper.h
++++ deps/v8/src/init/heap-symbols.h
++++ deps/v8/src/init/icu_util.cc
++++ deps/v8/src/init/icu_util.h
++++ deps/v8/src/init/isolate-allocator.cc
++++ deps/v8/src/init/isolate-allocator.h
++++ deps/v8/src/init/setup-isolate-deserialize.cc
++++ deps/v8/src/init/setup-isolate-full.cc
++++ deps/v8/src/init/setup-isolate.h
++++ deps/v8/src/init/startup-data-util.cc
++++ deps/v8/src/init/startup-data-util.h
++++ deps/v8/src/init/v8.cc
++++ deps/v8/src/init/v8.h
++++ deps/v8/src/inspector/BUILD.gn
++++ deps/v8/src/inspector/custom-preview.cc
++++ deps/v8/src/inspector/custom-preview.h
++++ deps/v8/src/inspector/inspected-context.cc
++++ deps/v8/src/inspector/inspected-context.h
++++ deps/v8/src/inspector/remote-object-id.cc
++++ deps/v8/src/inspector/remote-object-id.h
++++ deps/v8/src/inspector/search-util.cc
++++ deps/v8/src/inspector/search-util.h
++++ deps/v8/src/inspector/string-16.cc
++++ deps/v8/src/inspector/string-16.h
++++ deps/v8/src/inspector/string-util.cc
++++ deps/v8/src/inspector/string-util.h
++++ deps/v8/src/inspector/test-interface.cc
++++ deps/v8/src/inspector/test-interface.h
++++ deps/v8/src/inspector/v8-console-agent-impl.cc
++++ deps/v8/src/inspector/v8-console-agent-impl.h
++++ deps/v8/src/inspector/v8-console-message.cc
++++ deps/v8/src/inspector/v8-console-message.h
++++ deps/v8/src/inspector/v8-console.cc
++++ deps/v8/src/inspector/v8-console.h
++++ deps/v8/src/inspector/v8-debugger-agent-impl.cc
++++ deps/v8/src/inspector/v8-debugger-agent-impl.h
++++ deps/v8/src/inspector/v8-debugger-script.cc
++++ deps/v8/src/inspector/v8-debugger.cc
++++ deps/v8/src/inspector/v8-debugger.h
++++ deps/v8/src/inspector/v8-heap-profiler-agent-impl.cc
++++ deps/v8/src/inspector/v8-heap-profiler-agent-impl.h
++++ deps/v8/src/inspector/v8-inspector-protocol-encoding.cc
++++ deps/v8/src/inspector/v8-inspector-protocol-encoding.h
++++ deps/v8/src/inspector/v8-inspector-session-impl.cc
++++ deps/v8/src/inspector/v8-inspector-session-impl.h
++++ deps/v8/src/inspector/v8-profiler-agent-impl.cc
++++ deps/v8/src/inspector/v8-profiler-agent-impl.h
++++ deps/v8/src/inspector/v8-regex.cc
++++ deps/v8/src/inspector/v8-regex.h
++++ deps/v8/src/inspector/v8-schema-agent-impl.cc
++++ deps/v8/src/inspector/v8-schema-agent-impl.h
++++ deps/v8/src/inspector/v8-stack-trace-impl.cc
++++ deps/v8/src/inspector/v8-stack-trace-impl.h
++++ deps/v8/src/inspector/v8-string-conversions.cc
++++ deps/v8/src/inspector/v8-string-conversions.h
++++ deps/v8/src/inspector/v8-value-utils.cc
++++ deps/v8/src/inspector/v8-value-utils.h
++++ deps/v8/src/inspector/value-mirror.cc
++++ deps/v8/src/inspector/value-mirror.h
++++ deps/v8/src/inspector/wasm-translation.cc
++++ deps/v8/src/inspector/wasm-translation.h
++++ deps/v8/src/interpreter/block-coverage-builder.h
++++ deps/v8/src/interpreter/bytecode-array-accessor.cc
++++ deps/v8/src/interpreter/bytecode-array-accessor.h
++++ deps/v8/src/interpreter/bytecode-array-builder.cc
++++ deps/v8/src/interpreter/bytecode-array-builder.h
++++ deps/v8/src/interpreter/bytecode-array-iterator.cc
++++ deps/v8/src/interpreter/bytecode-array-iterator.h
++++ deps/v8/src/interpreter/bytecode-array-random-iterator.cc
++++ deps/v8/src/interpreter/bytecode-array-random-iterator.h
++++ deps/v8/src/interpreter/bytecode-array-writer.cc
++++ deps/v8/src/interpreter/bytecode-array-writer.h
++++ deps/v8/src/interpreter/bytecode-decoder.cc
++++ deps/v8/src/interpreter/bytecode-decoder.h
++++ deps/v8/src/interpreter/bytecode-flags.cc
++++ deps/v8/src/interpreter/bytecode-flags.h
++++ deps/v8/src/interpreter/bytecode-generator.cc
++++ deps/v8/src/interpreter/bytecode-generator.h
++++ deps/v8/src/interpreter/bytecode-jump-table.h
++++ deps/v8/src/interpreter/bytecode-label.cc
++++ deps/v8/src/interpreter/bytecode-label.h
++++ deps/v8/src/interpreter/bytecode-node.cc
++++ deps/v8/src/interpreter/bytecode-node.h
++++ deps/v8/src/interpreter/bytecode-operands.cc
++++ deps/v8/src/interpreter/bytecode-operands.h
++++ deps/v8/src/interpreter/bytecode-register-allocator.h
++++ deps/v8/src/interpreter/bytecode-register-optimizer.cc
++++ deps/v8/src/interpreter/bytecode-register-optimizer.h
++++ deps/v8/src/interpreter/bytecode-register.cc
++++ deps/v8/src/interpreter/bytecode-register.h
++++ deps/v8/src/interpreter/bytecode-source-info.cc
++++ deps/v8/src/interpreter/bytecode-source-info.h
++++ deps/v8/src/interpreter/bytecode-traits.h
++++ deps/v8/src/interpreter/bytecodes.cc
++++ deps/v8/src/interpreter/bytecodes.h
++++ deps/v8/src/interpreter/constant-array-builder.cc
++++ deps/v8/src/interpreter/constant-array-builder.h
++++ deps/v8/src/interpreter/control-flow-builders.cc
++++ deps/v8/src/interpreter/control-flow-builders.h
++++ deps/v8/src/interpreter/handler-table-builder.cc
++++ deps/v8/src/interpreter/handler-table-builder.h
++++ deps/v8/src/interpreter/interpreter-assembler.cc
++++ deps/v8/src/interpreter/interpreter-assembler.h
++++ deps/v8/src/interpreter/interpreter-generator.cc
++++ deps/v8/src/interpreter/interpreter-generator.h
++++ deps/v8/src/interpreter/interpreter-intrinsics-generator.cc
++++ deps/v8/src/interpreter/interpreter-intrinsics-generator.h
++++ deps/v8/src/interpreter/interpreter-intrinsics.cc
++++ deps/v8/src/interpreter/interpreter-intrinsics.h
++++ deps/v8/src/interpreter/interpreter.cc
++++ deps/v8/src/interpreter/interpreter.h
++++ deps/v8/src/json/json-parser.cc
++++ deps/v8/src/json/json-parser.h
++++ deps/v8/src/json/json-stringifier.cc
++++ deps/v8/src/json/json-stringifier.h
++++ deps/v8/src/libplatform/default-foreground-task-runner.cc
++++ deps/v8/src/libplatform/default-foreground-task-runner.h
++++ deps/v8/src/libplatform/default-platform.cc
++++ deps/v8/src/libplatform/default-platform.h
++++ deps/v8/src/libplatform/default-worker-threads-task-runner.cc
++++ deps/v8/src/libplatform/default-worker-threads-task-runner.h
++++ deps/v8/src/libplatform/delayed-task-queue.cc
++++ deps/v8/src/libplatform/delayed-task-queue.h
++++ deps/v8/src/libplatform/task-queue.cc
++++ deps/v8/src/libplatform/task-queue.h
++++ deps/v8/src/libplatform/tracing/json-trace-event-listener.cc
++++ deps/v8/src/libplatform/tracing/json-trace-event-listener.h
++++ deps/v8/src/libplatform/tracing/trace-buffer.cc
++++ deps/v8/src/libplatform/tracing/trace-buffer.h
++++ deps/v8/src/libplatform/tracing/trace-config.cc
++++ deps/v8/src/libplatform/tracing/trace-event-listener.cc
++++ deps/v8/src/libplatform/tracing/trace-event-listener.h
++++ deps/v8/src/libplatform/tracing/trace-object.cc
++++ deps/v8/src/libplatform/tracing/trace-writer.cc
++++ deps/v8/src/libplatform/tracing/trace-writer.h
++++ deps/v8/src/libplatform/tracing/tracing-controller.cc
++++ deps/v8/src/libplatform/worker-thread.cc
++++ deps/v8/src/libplatform/worker-thread.h
++++ deps/v8/src/libsampler/sampler.cc
++++ deps/v8/src/libsampler/sampler.h
++++ deps/v8/src/logging/code-events.h
++++ deps/v8/src/logging/counters-definitions.h
++++ deps/v8/src/logging/counters-inl.h
++++ deps/v8/src/logging/counters.cc
++++ deps/v8/src/logging/counters.h
++++ deps/v8/src/logging/log-inl.h
++++ deps/v8/src/logging/log-utils.cc
++++ deps/v8/src/logging/log-utils.h
++++ deps/v8/src/logging/log.cc
++++ deps/v8/src/logging/log.h
++++ deps/v8/src/numbers/bignum-dtoa.cc
++++ deps/v8/src/numbers/bignum-dtoa.h
++++ deps/v8/src/numbers/bignum.cc
++++ deps/v8/src/numbers/bignum.h
++++ deps/v8/src/numbers/cached-powers.cc
++++ deps/v8/src/numbers/cached-powers.h
++++ deps/v8/src/numbers/conversions-inl.h
++++ deps/v8/src/numbers/conversions.cc
++++ deps/v8/src/numbers/conversions.h
++++ deps/v8/src/numbers/diy-fp.cc
++++ deps/v8/src/numbers/diy-fp.h
++++ deps/v8/src/numbers/double.h
++++ deps/v8/src/numbers/dtoa.cc
++++ deps/v8/src/numbers/dtoa.h
++++ deps/v8/src/numbers/fast-dtoa.cc
++++ deps/v8/src/numbers/fast-dtoa.h
++++ deps/v8/src/numbers/fixed-dtoa.cc
++++ deps/v8/src/numbers/fixed-dtoa.h
++++ deps/v8/src/numbers/hash-seed-inl.h
++++ deps/v8/src/numbers/math-random.cc
++++ deps/v8/src/numbers/math-random.h
++++ deps/v8/src/numbers/strtod.cc
++++ deps/v8/src/numbers/strtod.h
++++ deps/v8/src/objects/allocation-site-inl.h
++++ deps/v8/src/objects/allocation-site-scopes-inl.h
++++ deps/v8/src/objects/allocation-site-scopes.h
++++ deps/v8/src/objects/allocation-site.h
++++ deps/v8/src/objects/api-callbacks-inl.h
++++ deps/v8/src/objects/api-callbacks.h
++++ deps/v8/src/objects/arguments-inl.h
++++ deps/v8/src/objects/arguments.h
++++ deps/v8/src/objects/bigint.h
++++ deps/v8/src/objects/cell-inl.h
++++ deps/v8/src/objects/cell.h
++++ deps/v8/src/objects/code-inl.h
++++ deps/v8/src/objects/code.cc
++++ deps/v8/src/objects/code.h
++++ deps/v8/src/objects/compilation-cache-inl.h
++++ deps/v8/src/objects/compilation-cache.h
++++ deps/v8/src/objects/compressed-slots-inl.h
++++ deps/v8/src/objects/compressed-slots.h
++++ deps/v8/src/objects/contexts-inl.h
++++ deps/v8/src/objects/contexts.cc
++++ deps/v8/src/objects/contexts.h
++++ deps/v8/src/objects/data-handler-inl.h
++++ deps/v8/src/objects/data-handler.h
++++ deps/v8/src/objects/debug-objects-inl.h
++++ deps/v8/src/objects/debug-objects.cc
++++ deps/v8/src/objects/debug-objects.h
++++ deps/v8/src/objects/descriptor-array-inl.h
++++ deps/v8/src/objects/descriptor-array.h
++++ deps/v8/src/objects/dictionary-inl.h
++++ deps/v8/src/objects/dictionary.h
++++ deps/v8/src/objects/elements-inl.h
++++ deps/v8/src/objects/elements-kind.cc
++++ deps/v8/src/objects/elements-kind.h
++++ deps/v8/src/objects/elements.cc
++++ deps/v8/src/objects/elements.h
++++ deps/v8/src/objects/embedder-data-array-inl.h
++++ deps/v8/src/objects/embedder-data-array.cc
++++ deps/v8/src/objects/embedder-data-array.h
++++ deps/v8/src/objects/embedder-data-slot-inl.h
++++ deps/v8/src/objects/embedder-data-slot.h
++++ deps/v8/src/objects/feedback-cell-inl.h
++++ deps/v8/src/objects/feedback-cell.h
++++ deps/v8/src/objects/feedback-vector-inl.h
++++ deps/v8/src/objects/feedback-vector.cc
++++ deps/v8/src/objects/feedback-vector.h
++++ deps/v8/src/objects/field-index-inl.h
++++ deps/v8/src/objects/field-index.h
++++ deps/v8/src/objects/field-type.cc
++++ deps/v8/src/objects/field-type.h
++++ deps/v8/src/objects/fixed-array-inl.h
++++ deps/v8/src/objects/fixed-array.h
++++ deps/v8/src/objects/foreign-inl.h
++++ deps/v8/src/objects/foreign.h
++++ deps/v8/src/objects/frame-array-inl.h
++++ deps/v8/src/objects/frame-array.h
++++ deps/v8/src/objects/free-space-inl.h
++++ deps/v8/src/objects/free-space.h
++++ deps/v8/src/objects/function-kind.h
++++ deps/v8/src/objects/function-syntax-kind.h
++++ deps/v8/src/objects/hash-table-inl.h
++++ deps/v8/src/objects/hash-table.h
++++ deps/v8/src/objects/heap-number-inl.h
++++ deps/v8/src/objects/heap-number.h
++++ deps/v8/src/objects/heap-object-inl.h
++++ deps/v8/src/objects/heap-object.h
++++ deps/v8/src/objects/instance-type-inl.h
++++ deps/v8/src/objects/instance-type.h
++++ deps/v8/src/objects/intl-objects.cc
++++ deps/v8/src/objects/intl-objects.h
++++ deps/v8/src/objects/intl-objects.tq
++++ deps/v8/src/objects/js-array-buffer-inl.h
++++ deps/v8/src/objects/js-array-buffer.cc
++++ deps/v8/src/objects/js-array-buffer.h
++++ deps/v8/src/objects/js-array-inl.h
++++ deps/v8/src/objects/js-array.h
++++ deps/v8/src/objects/js-break-iterator-inl.h
++++ deps/v8/src/objects/js-break-iterator.cc
++++ deps/v8/src/objects/js-break-iterator.h
++++ deps/v8/src/objects/js-collator-inl.h
++++ deps/v8/src/objects/js-collator.cc
++++ deps/v8/src/objects/js-collator.h
++++ deps/v8/src/objects/js-collection-inl.h
++++ deps/v8/src/objects/js-collection-iterator.h
++++ deps/v8/src/objects/js-collection.h
++++ deps/v8/src/objects/js-date-time-format-inl.h
++++ deps/v8/src/objects/js-date-time-format.cc
++++ deps/v8/src/objects/js-date-time-format.h
++++ deps/v8/src/objects/js-generator-inl.h
++++ deps/v8/src/objects/js-generator.h
++++ deps/v8/src/objects/js-list-format-inl.h
++++ deps/v8/src/objects/js-list-format.cc
++++ deps/v8/src/objects/js-list-format.h
++++ deps/v8/src/objects/js-locale-inl.h
++++ deps/v8/src/objects/js-locale.cc
++++ deps/v8/src/objects/js-locale.h
++++ deps/v8/src/objects/js-number-format-inl.h
++++ deps/v8/src/objects/js-number-format.cc
++++ deps/v8/src/objects/js-number-format.h
++++ deps/v8/src/objects/js-objects-inl.h
++++ deps/v8/src/objects/js-objects.cc
++++ deps/v8/src/objects/js-objects.h
++++ deps/v8/src/objects/js-plural-rules-inl.h
++++ deps/v8/src/objects/js-plural-rules.cc
++++ deps/v8/src/objects/js-plural-rules.h
++++ deps/v8/src/objects/js-promise-inl.h
++++ deps/v8/src/objects/js-promise.h
++++ deps/v8/src/objects/js-proxy-inl.h
++++ deps/v8/src/objects/js-proxy.h
++++ deps/v8/src/objects/js-regexp-inl.h
++++ deps/v8/src/objects/js-regexp-string-iterator-inl.h
++++ deps/v8/src/objects/js-regexp-string-iterator.h
++++ deps/v8/src/objects/js-regexp.h
++++ deps/v8/src/objects/js-relative-time-format-inl.h
++++ deps/v8/src/objects/js-relative-time-format.cc
++++ deps/v8/src/objects/js-relative-time-format.h
++++ deps/v8/src/objects/js-segment-iterator-inl.h
++++ deps/v8/src/objects/js-segment-iterator.cc
++++ deps/v8/src/objects/js-segment-iterator.h
++++ deps/v8/src/objects/js-segmenter-inl.h
++++ deps/v8/src/objects/js-segmenter.cc
++++ deps/v8/src/objects/js-segmenter.h
++++ deps/v8/src/objects/js-weak-refs-inl.h
++++ deps/v8/src/objects/js-weak-refs.h
++++ deps/v8/src/objects/keys.cc
++++ deps/v8/src/objects/keys.h
++++ deps/v8/src/objects/layout-descriptor-inl.h
++++ deps/v8/src/objects/layout-descriptor.cc
++++ deps/v8/src/objects/layout-descriptor.h
++++ deps/v8/src/objects/literal-objects-inl.h
++++ deps/v8/src/objects/literal-objects.cc
++++ deps/v8/src/objects/literal-objects.h
++++ deps/v8/src/objects/lookup-cache-inl.h
++++ deps/v8/src/objects/lookup-cache.cc
++++ deps/v8/src/objects/lookup-cache.h
++++ deps/v8/src/objects/lookup-inl.h
++++ deps/v8/src/objects/lookup.cc
++++ deps/v8/src/objects/lookup.h
++++ deps/v8/src/objects/managed.cc
++++ deps/v8/src/objects/managed.h
++++ deps/v8/src/objects/map-inl.h
++++ deps/v8/src/objects/map-updater.cc
++++ deps/v8/src/objects/map-updater.h
++++ deps/v8/src/objects/map.cc
++++ deps/v8/src/objects/map.h
++++ deps/v8/src/objects/maybe-object-inl.h
++++ deps/v8/src/objects/maybe-object.h
++++ deps/v8/src/objects/microtask-inl.h
++++ deps/v8/src/objects/microtask.h
++++ deps/v8/src/objects/module-inl.h
++++ deps/v8/src/objects/module.cc
++++ deps/v8/src/objects/module.h
++++ deps/v8/src/objects/name-inl.h
++++ deps/v8/src/objects/name.h
++++ deps/v8/src/objects/object-list-macros.h
++++ deps/v8/src/objects/object-macros-undef.h
++++ deps/v8/src/objects/object-macros.h
++++ deps/v8/src/objects/objects-body-descriptors-inl.h
++++ deps/v8/src/objects/objects-body-descriptors.h
++++ deps/v8/src/objects/objects-definitions.h
++++ deps/v8/src/objects/objects-inl.h
++++ deps/v8/src/objects/objects.cc
++++ deps/v8/src/objects/objects.h
++++ deps/v8/src/objects/oddball-inl.h
++++ deps/v8/src/objects/oddball.h
++++ deps/v8/src/objects/ordered-hash-table-inl.h
++++ deps/v8/src/objects/ordered-hash-table.cc
++++ deps/v8/src/objects/ordered-hash-table.h
++++ deps/v8/src/objects/promise-inl.h
++++ deps/v8/src/objects/promise.h
++++ deps/v8/src/objects/property-array-inl.h
++++ deps/v8/src/objects/property-array.h
++++ deps/v8/src/objects/property-cell-inl.h
++++ deps/v8/src/objects/property-cell.h
++++ deps/v8/src/objects/property-descriptor-object-inl.h
++++ deps/v8/src/objects/property-descriptor-object.h
++++ deps/v8/src/objects/property-descriptor.cc
++++ deps/v8/src/objects/property-descriptor.h
++++ deps/v8/src/objects/property-details.h
++++ deps/v8/src/objects/property.cc
++++ deps/v8/src/objects/property.h
++++ deps/v8/src/objects/prototype-info-inl.h
++++ deps/v8/src/objects/prototype-info.h
++++ deps/v8/src/objects/prototype-inl.h
++++ deps/v8/src/objects/prototype.h
++++ deps/v8/src/objects/regexp-match-info.h
++++ deps/v8/src/objects/scope-info.cc
++++ deps/v8/src/objects/scope-info.h
++++ deps/v8/src/objects/script-inl.h
++++ deps/v8/src/objects/script.h
++++ deps/v8/src/objects/shared-function-info-inl.h
++++ deps/v8/src/objects/shared-function-info.h
++++ deps/v8/src/objects/slots-atomic-inl.h
++++ deps/v8/src/objects/slots-inl.h
++++ deps/v8/src/objects/slots.h
++++ deps/v8/src/objects/smi-inl.h
++++ deps/v8/src/objects/smi.h
++++ deps/v8/src/objects/source-text-module.cc
++++ deps/v8/src/objects/source-text-module.h
++++ deps/v8/src/objects/stack-frame-info-inl.h
++++ deps/v8/src/objects/stack-frame-info.cc
++++ deps/v8/src/objects/stack-frame-info.h
++++ deps/v8/src/objects/string-comparator.cc
++++ deps/v8/src/objects/string-comparator.h
++++ deps/v8/src/objects/string-inl.h
++++ deps/v8/src/objects/string-table-inl.h
++++ deps/v8/src/objects/string-table.h
++++ deps/v8/src/objects/string.cc
++++ deps/v8/src/objects/string.h
++++ deps/v8/src/objects/struct-inl.h
++++ deps/v8/src/objects/struct.h
++++ deps/v8/src/objects/synthetic-module.cc
++++ deps/v8/src/objects/synthetic-module.h
++++ deps/v8/src/objects/tagged-field-inl.h
++++ deps/v8/src/objects/tagged-field.h
++++ deps/v8/src/objects/tagged-impl-inl.h
++++ deps/v8/src/objects/tagged-impl.cc
++++ deps/v8/src/objects/tagged-impl.h
++++ deps/v8/src/objects/tagged-value-inl.h
++++ deps/v8/src/objects/tagged-value.h
++++ deps/v8/src/objects/template-objects-inl.h
++++ deps/v8/src/objects/template-objects.cc
++++ deps/v8/src/objects/template-objects.h
++++ deps/v8/src/objects/templates-inl.h
++++ deps/v8/src/objects/templates.h
++++ deps/v8/src/objects/transitions-inl.h
++++ deps/v8/src/objects/transitions.cc
++++ deps/v8/src/objects/transitions.h
++++ deps/v8/src/objects/type-hints.cc
++++ deps/v8/src/objects/type-hints.h
++++ deps/v8/src/objects/value-serializer.cc
++++ deps/v8/src/objects/value-serializer.h
++++ deps/v8/src/objects/visitors.cc
++++ deps/v8/src/objects/visitors.h
++++ deps/v8/src/parsing/expression-scope-reparenter.cc
++++ deps/v8/src/parsing/expression-scope-reparenter.h
++++ deps/v8/src/parsing/expression-scope.h
++++ deps/v8/src/parsing/func-name-inferrer.cc
++++ deps/v8/src/parsing/func-name-inferrer.h
++++ deps/v8/src/parsing/keywords-gen.h
++++ deps/v8/src/parsing/literal-buffer.cc
++++ deps/v8/src/parsing/literal-buffer.h
++++ deps/v8/src/parsing/parse-info.cc
++++ deps/v8/src/parsing/parse-info.h
++++ deps/v8/src/parsing/parser-base.h
++++ deps/v8/src/parsing/parser.cc
++++ deps/v8/src/parsing/parser.h
++++ deps/v8/src/parsing/parsing.cc
++++ deps/v8/src/parsing/parsing.h
++++ deps/v8/src/parsing/pending-compilation-error-handler.cc
++++ deps/v8/src/parsing/pending-compilation-error-handler.h
++++ deps/v8/src/parsing/preparse-data-impl.h
++++ deps/v8/src/parsing/preparse-data.cc
++++ deps/v8/src/parsing/preparse-data.h
++++ deps/v8/src/parsing/preparser-logger.h
++++ deps/v8/src/parsing/preparser.cc
++++ deps/v8/src/parsing/preparser.h
++++ deps/v8/src/parsing/rewriter.cc
++++ deps/v8/src/parsing/rewriter.h
++++ deps/v8/src/parsing/scanner-character-streams.cc
++++ deps/v8/src/parsing/scanner-character-streams.h
++++ deps/v8/src/parsing/scanner-inl.h
++++ deps/v8/src/parsing/scanner.cc
++++ deps/v8/src/parsing/scanner.h
++++ deps/v8/src/parsing/token.cc
++++ deps/v8/src/parsing/token.h
++++ deps/v8/src/profiler/allocation-tracker.cc
++++ deps/v8/src/profiler/allocation-tracker.h
++++ deps/v8/src/profiler/circular-queue-inl.h
++++ deps/v8/src/profiler/circular-queue.h
++++ deps/v8/src/profiler/cpu-profiler-inl.h
++++ deps/v8/src/profiler/cpu-profiler.cc
++++ deps/v8/src/profiler/cpu-profiler.h
++++ deps/v8/src/profiler/heap-profiler.cc
++++ deps/v8/src/profiler/heap-profiler.h
++++ deps/v8/src/profiler/heap-snapshot-generator-inl.h
++++ deps/v8/src/profiler/heap-snapshot-generator.cc
++++ deps/v8/src/profiler/heap-snapshot-generator.h
++++ deps/v8/src/profiler/profile-generator-inl.h
++++ deps/v8/src/profiler/profile-generator.cc
++++ deps/v8/src/profiler/profile-generator.h
++++ deps/v8/src/profiler/profiler-listener.cc
++++ deps/v8/src/profiler/profiler-listener.h
++++ deps/v8/src/profiler/sampling-heap-profiler.cc
++++ deps/v8/src/profiler/sampling-heap-profiler.h
++++ deps/v8/src/profiler/strings-storage.cc
++++ deps/v8/src/profiler/strings-storage.h
++++ deps/v8/src/profiler/tick-sample.cc
++++ deps/v8/src/profiler/tick-sample.h
++++ deps/v8/src/profiler/tracing-cpu-profiler.cc
++++ deps/v8/src/profiler/tracing-cpu-profiler.h
++++ deps/v8/src/protobuf/protobuf-compiler-main.cc
++++ deps/v8/src/regexp/arm/regexp-macro-assembler-arm.cc
++++ deps/v8/src/regexp/arm/regexp-macro-assembler-arm.h
++++ deps/v8/src/regexp/arm64/regexp-macro-assembler-arm64.cc
++++ deps/v8/src/regexp/arm64/regexp-macro-assembler-arm64.h
++++ deps/v8/src/regexp/gen-regexp-special-case.cc
++++ deps/v8/src/regexp/ia32/regexp-macro-assembler-ia32.cc
++++ deps/v8/src/regexp/ia32/regexp-macro-assembler-ia32.h
++++ deps/v8/src/regexp/mips/regexp-macro-assembler-mips.cc
++++ deps/v8/src/regexp/mips/regexp-macro-assembler-mips.h
++++ deps/v8/src/regexp/mips64/regexp-macro-assembler-mips64.cc
++++ deps/v8/src/regexp/mips64/regexp-macro-assembler-mips64.h
++++ deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.cc
++++ deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.h
++++ deps/v8/src/regexp/property-sequences.cc
++++ deps/v8/src/regexp/property-sequences.h
++++ deps/v8/src/regexp/regexp-ast.cc
++++ deps/v8/src/regexp/regexp-ast.h
++++ deps/v8/src/regexp/regexp-bytecode-generator-inl.h
++++ deps/v8/src/regexp/regexp-bytecode-generator.cc
++++ deps/v8/src/regexp/regexp-bytecode-generator.h
++++ deps/v8/src/regexp/regexp-bytecodes.h
++++ deps/v8/src/regexp/regexp-compiler-tonode.cc
++++ deps/v8/src/regexp/regexp-compiler.cc
++++ deps/v8/src/regexp/regexp-compiler.h
++++ deps/v8/src/regexp/regexp-dotprinter.cc
++++ deps/v8/src/regexp/regexp-dotprinter.h
++++ deps/v8/src/regexp/regexp-interpreter.cc
++++ deps/v8/src/regexp/regexp-interpreter.h
++++ deps/v8/src/regexp/regexp-macro-assembler-arch.h
++++ deps/v8/src/regexp/regexp-macro-assembler-tracer.cc
++++ deps/v8/src/regexp/regexp-macro-assembler-tracer.h
++++ deps/v8/src/regexp/regexp-macro-assembler.cc
++++ deps/v8/src/regexp/regexp-macro-assembler.h
++++ deps/v8/src/regexp/regexp-nodes.h
++++ deps/v8/src/regexp/regexp-parser.cc
++++ deps/v8/src/regexp/regexp-parser.h
++++ deps/v8/src/regexp/regexp-stack.cc
++++ deps/v8/src/regexp/regexp-stack.h
++++ deps/v8/src/regexp/regexp-utils.cc
++++ deps/v8/src/regexp/regexp-utils.h
++++ deps/v8/src/regexp/regexp.cc
++++ deps/v8/src/regexp/regexp.h
++++ deps/v8/src/regexp/s390/regexp-macro-assembler-s390.cc
++++ deps/v8/src/regexp/s390/regexp-macro-assembler-s390.h
++++ deps/v8/src/regexp/special-case.h
++++ deps/v8/src/regexp/x64/regexp-macro-assembler-x64.cc
++++ deps/v8/src/regexp/x64/regexp-macro-assembler-x64.h
++++ deps/v8/src/roots/roots-inl.h
++++ deps/v8/src/roots/roots.cc
++++ deps/v8/src/roots/roots.h
++++ deps/v8/src/runtime/runtime-array.cc
++++ deps/v8/src/runtime/runtime-atomics.cc
++++ deps/v8/src/runtime/runtime-bigint.cc
++++ deps/v8/src/runtime/runtime-classes.cc
++++ deps/v8/src/runtime/runtime-collections.cc
++++ deps/v8/src/runtime/runtime-compiler.cc
++++ deps/v8/src/runtime/runtime-date.cc
++++ deps/v8/src/runtime/runtime-debug.cc
++++ deps/v8/src/runtime/runtime-forin.cc
++++ deps/v8/src/runtime/runtime-function.cc
++++ deps/v8/src/runtime/runtime-futex.cc
++++ deps/v8/src/runtime/runtime-generator.cc
++++ deps/v8/src/runtime/runtime-internal.cc
++++ deps/v8/src/runtime/runtime-interpreter.cc
++++ deps/v8/src/runtime/runtime-intl.cc
++++ deps/v8/src/runtime/runtime-literals.cc
++++ deps/v8/src/runtime/runtime-module.cc
++++ deps/v8/src/runtime/runtime-numbers.cc
++++ deps/v8/src/runtime/runtime-object.cc
++++ deps/v8/src/runtime/runtime-operators.cc
++++ deps/v8/src/runtime/runtime-promise.cc
++++ deps/v8/src/runtime/runtime-proxy.cc
++++ deps/v8/src/runtime/runtime-regexp.cc
++++ deps/v8/src/runtime/runtime-scopes.cc
++++ deps/v8/src/runtime/runtime-strings.cc
++++ deps/v8/src/runtime/runtime-symbol.cc
++++ deps/v8/src/runtime/runtime-test.cc
++++ deps/v8/src/runtime/runtime-typedarray.cc
++++ deps/v8/src/runtime/runtime-utils.h
++++ deps/v8/src/runtime/runtime-wasm.cc
++++ deps/v8/src/runtime/runtime.cc
++++ deps/v8/src/runtime/runtime.h
++++ deps/v8/src/sanitizer/asan.h
++++ deps/v8/src/sanitizer/lsan-page-allocator.cc
++++ deps/v8/src/sanitizer/lsan-page-allocator.h
++++ deps/v8/src/sanitizer/msan.h
++++ deps/v8/src/sanitizer/tsan.h
++++ deps/v8/src/snapshot/code-serializer.cc
++++ deps/v8/src/snapshot/code-serializer.h
++++ deps/v8/src/snapshot/deserializer-allocator.cc
++++ deps/v8/src/snapshot/deserializer-allocator.h
++++ deps/v8/src/snapshot/deserializer.cc
++++ deps/v8/src/snapshot/deserializer.h
++++ deps/v8/src/snapshot/embedded/embedded-data.cc
++++ deps/v8/src/snapshot/embedded/embedded-data.h
++++ deps/v8/src/snapshot/embedded/embedded-empty.cc
++++ deps/v8/src/snapshot/embedded/embedded-file-writer.cc
++++ deps/v8/src/snapshot/embedded/embedded-file-writer.h
++++ deps/v8/src/snapshot/embedded/platform-embedded-file-writer-aix.cc
++++ deps/v8/src/snapshot/embedded/platform-embedded-file-writer-aix.h
++++ deps/v8/src/snapshot/embedded/platform-embedded-file-writer-base.cc
++++ deps/v8/src/snapshot/embedded/platform-embedded-file-writer-base.h
++++ deps/v8/src/snapshot/embedded/platform-embedded-file-writer-generic.cc
++++ deps/v8/src/snapshot/embedded/platform-embedded-file-writer-generic.h
++++ deps/v8/src/snapshot/embedded/platform-embedded-file-writer-mac.cc
++++ deps/v8/src/snapshot/embedded/platform-embedded-file-writer-mac.h
++++ deps/v8/src/snapshot/embedded/platform-embedded-file-writer-win.cc
++++ deps/v8/src/snapshot/embedded/platform-embedded-file-writer-win.h
++++ deps/v8/src/snapshot/mksnapshot.cc
++++ deps/v8/src/snapshot/natives-common.cc
++++ deps/v8/src/snapshot/natives-external.cc
++++ deps/v8/src/snapshot/natives.h
++++ deps/v8/src/snapshot/object-deserializer.cc
++++ deps/v8/src/snapshot/object-deserializer.h
++++ deps/v8/src/snapshot/partial-deserializer.cc
++++ deps/v8/src/snapshot/partial-deserializer.h
++++ deps/v8/src/snapshot/partial-serializer.cc
++++ deps/v8/src/snapshot/partial-serializer.h
++++ deps/v8/src/snapshot/read-only-deserializer.cc
++++ deps/v8/src/snapshot/read-only-deserializer.h
++++ deps/v8/src/snapshot/read-only-serializer.cc
++++ deps/v8/src/snapshot/read-only-serializer.h
++++ deps/v8/src/snapshot/references.h
++++ deps/v8/src/snapshot/roots-serializer.cc
++++ deps/v8/src/snapshot/roots-serializer.h
++++ deps/v8/src/snapshot/serializer-allocator.cc
++++ deps/v8/src/snapshot/serializer-allocator.h
++++ deps/v8/src/snapshot/serializer-common.cc
++++ deps/v8/src/snapshot/serializer-common.h
++++ deps/v8/src/snapshot/serializer.cc
++++ deps/v8/src/snapshot/serializer.h
++++ deps/v8/src/snapshot/snapshot-common.cc
++++ deps/v8/src/snapshot/snapshot-empty.cc
++++ deps/v8/src/snapshot/snapshot-external.cc
++++ deps/v8/src/snapshot/snapshot-source-sink.cc
++++ deps/v8/src/snapshot/snapshot-source-sink.h
++++ deps/v8/src/snapshot/snapshot.h
++++ deps/v8/src/snapshot/startup-deserializer.cc
++++ deps/v8/src/snapshot/startup-deserializer.h
++++ deps/v8/src/snapshot/startup-serializer.cc
++++ deps/v8/src/snapshot/startup-serializer.h
++++ deps/v8/src/strings/char-predicates-inl.h
++++ deps/v8/src/strings/char-predicates.cc
++++ deps/v8/src/strings/char-predicates.h
++++ deps/v8/src/strings/string-builder-inl.h
++++ deps/v8/src/strings/string-builder.cc
++++ deps/v8/src/strings/string-case.cc
++++ deps/v8/src/strings/string-case.h
++++ deps/v8/src/strings/string-hasher-inl.h
++++ deps/v8/src/strings/string-hasher.h
++++ deps/v8/src/strings/string-search.h
++++ deps/v8/src/strings/string-stream.cc
++++ deps/v8/src/strings/string-stream.h
++++ deps/v8/src/strings/unicode-decoder.cc
++++ deps/v8/src/strings/unicode-decoder.h
++++ deps/v8/src/strings/unicode-inl.h
++++ deps/v8/src/strings/unicode.cc
++++ deps/v8/src/strings/unicode.h
++++ deps/v8/src/strings/uri.cc
++++ deps/v8/src/strings/uri.h
++++ deps/v8/src/tasks/cancelable-task.cc
++++ deps/v8/src/tasks/cancelable-task.h
++++ deps/v8/src/tasks/task-utils.cc
++++ deps/v8/src/tasks/task-utils.h
++++ deps/v8/src/third_party/vtune/BUILD.gn
++++ deps/v8/src/torque/ast.h
++++ deps/v8/src/torque/cfg.cc
++++ deps/v8/src/torque/cfg.h
++++ deps/v8/src/torque/class-debug-reader-generator.cc
++++ deps/v8/src/torque/constants.h
++++ deps/v8/src/torque/contextual.h
++++ deps/v8/src/torque/csa-generator.cc
++++ deps/v8/src/torque/csa-generator.h
++++ deps/v8/src/torque/declarable.cc
++++ deps/v8/src/torque/declarable.h
++++ deps/v8/src/torque/declaration-visitor.cc
++++ deps/v8/src/torque/declaration-visitor.h
++++ deps/v8/src/torque/declarations.cc
++++ deps/v8/src/torque/declarations.h
++++ deps/v8/src/torque/earley-parser.cc
++++ deps/v8/src/torque/earley-parser.h
++++ deps/v8/src/torque/global-context.cc
++++ deps/v8/src/torque/global-context.h
++++ deps/v8/src/torque/implementation-visitor.cc
++++ deps/v8/src/torque/implementation-visitor.h
++++ deps/v8/src/torque/instructions.cc
++++ deps/v8/src/torque/instructions.h
++++ deps/v8/src/torque/ls/globals.h
++++ deps/v8/src/torque/ls/json-parser.cc
++++ deps/v8/src/torque/ls/json-parser.h
++++ deps/v8/src/torque/ls/json.cc
++++ deps/v8/src/torque/ls/json.h
++++ deps/v8/src/torque/ls/message-handler.cc
++++ deps/v8/src/torque/ls/message-handler.h
++++ deps/v8/src/torque/ls/message-macros.h
++++ deps/v8/src/torque/ls/message-pipe.h
++++ deps/v8/src/torque/ls/message.h
++++ deps/v8/src/torque/ls/torque-language-server.cc
++++ deps/v8/src/torque/parameter-difference.h
++++ deps/v8/src/torque/server-data.cc
++++ deps/v8/src/torque/server-data.h
++++ deps/v8/src/torque/source-positions.cc
++++ deps/v8/src/torque/source-positions.h
++++ deps/v8/src/torque/torque-compiler.cc
++++ deps/v8/src/torque/torque-compiler.h
++++ deps/v8/src/torque/torque-parser.cc
++++ deps/v8/src/torque/torque-parser.h
++++ deps/v8/src/torque/torque.cc
++++ deps/v8/src/torque/type-inference.cc
++++ deps/v8/src/torque/type-inference.h
++++ deps/v8/src/torque/type-oracle.cc
++++ deps/v8/src/torque/type-oracle.h
++++ deps/v8/src/torque/type-visitor.cc
++++ deps/v8/src/torque/type-visitor.h
++++ deps/v8/src/torque/types.cc
++++ deps/v8/src/torque/types.h
++++ deps/v8/src/torque/utils.cc
++++ deps/v8/src/torque/utils.h
++++ deps/v8/src/tracing/trace-event.cc
++++ deps/v8/src/tracing/trace-event.h
++++ deps/v8/src/tracing/traced-value.cc
++++ deps/v8/src/tracing/traced-value.h
++++ deps/v8/src/tracing/tracing-category-observer.cc
++++ deps/v8/src/tracing/tracing-category-observer.h
++++ deps/v8/src/trap-handler/handler-inside-posix.cc
++++ deps/v8/src/trap-handler/handler-inside-posix.h
++++ deps/v8/src/trap-handler/handler-inside-win.cc
++++ deps/v8/src/trap-handler/handler-inside-win.h
++++ deps/v8/src/trap-handler/handler-inside.cc
++++ deps/v8/src/trap-handler/handler-outside-posix.cc
++++ deps/v8/src/trap-handler/handler-outside-win.cc
++++ deps/v8/src/trap-handler/handler-outside.cc
++++ deps/v8/src/trap-handler/handler-shared.cc
++++ deps/v8/src/trap-handler/trap-handler-internal.h
++++ deps/v8/src/trap-handler/trap-handler.h
++++ deps/v8/src/utils/address-map.cc
++++ deps/v8/src/utils/address-map.h
++++ deps/v8/src/utils/allocation.cc
++++ deps/v8/src/utils/allocation.h
++++ deps/v8/src/utils/bit-vector.cc
++++ deps/v8/src/utils/bit-vector.h
++++ deps/v8/src/utils/boxed-float.h
++++ deps/v8/src/utils/detachable-vector.cc
++++ deps/v8/src/utils/detachable-vector.h
++++ deps/v8/src/utils/identity-map.cc
++++ deps/v8/src/utils/identity-map.h
++++ deps/v8/src/utils/locked-queue-inl.h
++++ deps/v8/src/utils/locked-queue.h
++++ deps/v8/src/utils/memcopy.cc
++++ deps/v8/src/utils/memcopy.h
++++ deps/v8/src/utils/ostreams.cc
++++ deps/v8/src/utils/ostreams.h
++++ deps/v8/src/utils/pointer-with-payload.h
++++ deps/v8/src/utils/utils-inl.h
++++ deps/v8/src/utils/utils.cc
++++ deps/v8/src/utils/utils.h
++++ deps/v8/src/utils/v8dll-main.cc
++++ deps/v8/src/utils/vector.h
++++ deps/v8/src/utils/version.cc
++++ deps/v8/src/utils/version.h
++++ deps/v8/src/wasm/baseline/arm/liftoff-assembler-arm.h
++++ deps/v8/src/wasm/baseline/arm64/liftoff-assembler-arm64.h
++++ deps/v8/src/wasm/baseline/ia32/liftoff-assembler-ia32.h
++++ deps/v8/src/wasm/baseline/liftoff-assembler-defs.h
++++ deps/v8/src/wasm/baseline/liftoff-assembler.cc
++++ deps/v8/src/wasm/baseline/liftoff-assembler.h
++++ deps/v8/src/wasm/baseline/liftoff-compiler.cc
++++ deps/v8/src/wasm/baseline/liftoff-compiler.h
++++ deps/v8/src/wasm/baseline/liftoff-register.h
++++ deps/v8/src/wasm/baseline/mips/liftoff-assembler-mips.h
++++ deps/v8/src/wasm/baseline/mips64/liftoff-assembler-mips64.h
++++ deps/v8/src/wasm/baseline/ppc/liftoff-assembler-ppc.h
++++ deps/v8/src/wasm/baseline/s390/liftoff-assembler-s390.h
++++ deps/v8/src/wasm/baseline/x64/liftoff-assembler-x64.h
++++ deps/v8/src/wasm/c-api.h
++++ deps/v8/src/wasm/compilation-environment.h
++++ deps/v8/src/wasm/decoder.h
++++ deps/v8/src/wasm/function-body-decoder-impl.h
++++ deps/v8/src/wasm/function-body-decoder.cc
++++ deps/v8/src/wasm/function-body-decoder.h
++++ deps/v8/src/wasm/function-compiler.cc
++++ deps/v8/src/wasm/function-compiler.h
++++ deps/v8/src/wasm/graph-builder-interface.cc
++++ deps/v8/src/wasm/graph-builder-interface.h
++++ deps/v8/src/wasm/jump-table-assembler.cc
++++ deps/v8/src/wasm/jump-table-assembler.h
++++ deps/v8/src/wasm/leb-helper.h
++++ deps/v8/src/wasm/local-decl-encoder.cc
++++ deps/v8/src/wasm/local-decl-encoder.h
++++ deps/v8/src/wasm/memory-tracing.cc
++++ deps/v8/src/wasm/memory-tracing.h
++++ deps/v8/src/wasm/module-compiler.cc
++++ deps/v8/src/wasm/module-compiler.h
++++ deps/v8/src/wasm/module-decoder.cc
++++ deps/v8/src/wasm/module-decoder.h
++++ deps/v8/src/wasm/module-instantiate.cc
++++ deps/v8/src/wasm/module-instantiate.h
++++ deps/v8/src/wasm/object-access.h
++++ deps/v8/src/wasm/signature-map.cc
++++ deps/v8/src/wasm/signature-map.h
++++ deps/v8/src/wasm/streaming-decoder.cc
++++ deps/v8/src/wasm/streaming-decoder.h
++++ deps/v8/src/wasm/value-type.h
++++ deps/v8/src/wasm/wasm-arguments.h
++++ deps/v8/src/wasm/wasm-code-manager.cc
++++ deps/v8/src/wasm/wasm-code-manager.h
++++ deps/v8/src/wasm/wasm-constants.h
++++ deps/v8/src/wasm/wasm-debug.cc
++++ deps/v8/src/wasm/wasm-engine.cc
++++ deps/v8/src/wasm/wasm-engine.h
++++ deps/v8/src/wasm/wasm-external-refs.cc
++++ deps/v8/src/wasm/wasm-external-refs.h
++++ deps/v8/src/wasm/wasm-feature-flags.h
++++ deps/v8/src/wasm/wasm-features.cc
++++ deps/v8/src/wasm/wasm-features.h
++++ deps/v8/src/wasm/wasm-import-wrapper-cache.cc
++++ deps/v8/src/wasm/wasm-import-wrapper-cache.h
++++ deps/v8/src/wasm/wasm-interpreter.cc
++++ deps/v8/src/wasm/wasm-interpreter.h
++++ deps/v8/src/wasm/wasm-js.cc
++++ deps/v8/src/wasm/wasm-js.h
++++ deps/v8/src/wasm/wasm-limits.h
++++ deps/v8/src/wasm/wasm-linkage.h
++++ deps/v8/src/wasm/wasm-memory.cc
++++ deps/v8/src/wasm/wasm-memory.h
++++ deps/v8/src/wasm/wasm-module-builder.cc
++++ deps/v8/src/wasm/wasm-module-builder.h
++++ deps/v8/src/wasm/wasm-module-sourcemap.cc
++++ deps/v8/src/wasm/wasm-module-sourcemap.h
++++ deps/v8/src/wasm/wasm-module.cc
++++ deps/v8/src/wasm/wasm-module.h
++++ deps/v8/src/wasm/wasm-objects-inl.h
++++ deps/v8/src/wasm/wasm-objects.cc
++++ deps/v8/src/wasm/wasm-objects.h
++++ deps/v8/src/wasm/wasm-opcodes.cc
++++ deps/v8/src/wasm/wasm-opcodes.h
++++ deps/v8/src/wasm/wasm-result.cc
++++ deps/v8/src/wasm/wasm-result.h
++++ deps/v8/src/wasm/wasm-serialization.cc
++++ deps/v8/src/wasm/wasm-serialization.h
++++ deps/v8/src/wasm/wasm-text.cc
++++ deps/v8/src/wasm/wasm-text.h
++++ deps/v8/src/wasm/wasm-tier.h
++++ deps/v8/src/wasm/wasm-value.h
++++ deps/v8/src/zone/accounting-allocator.cc
++++ deps/v8/src/zone/accounting-allocator.h
++++ deps/v8/src/zone/zone-allocator.h
++++ deps/v8/src/zone/zone-chunk-list.h
++++ deps/v8/src/zone/zone-containers.h
++++ deps/v8/src/zone/zone-handle-set.h
++++ deps/v8/src/zone/zone-list-inl.h
++++ deps/v8/src/zone/zone-segment.cc
++++ deps/v8/src/zone/zone-segment.h
++++ deps/v8/src/zone/zone.cc
++++ deps/v8/src/zone/zone.h
++++ deps/v8/test/torque/test-torque.tq
++++ deps/v8/testing/gmock-support.h
++++ deps/v8/testing/gtest-support.h
++++ deps/v8/third_party/inspector_protocol/BUILD.gn
++++ deps/v8/tools/BUILD.gn
++++ deps/v8/tools/Makefile.tags
++++ deps/v8/tools/PRESUBMIT.py
++++ deps/v8/tools/__init__.py
++++ deps/v8/tools/adb-d8.py
++++ deps/v8/tools/arguments.js
++++ deps/v8/tools/avg.py
++++ deps/v8/tools/bigint-tester.py
++++ deps/v8/tools/callstats.html
++++ deps/v8/tools/callstats.py
++++ deps/v8/tools/check-inline-includes.sh
++++ deps/v8/tools/check-unused-bailouts.sh
++++ deps/v8/tools/check-unused-symbols.sh
++++ deps/v8/tools/clusterfuzz/BUILD.gn
++++ deps/v8/tools/clusterfuzz/PRESUBMIT.py
++++ deps/v8/tools/clusterfuzz/testdata/fuzz-123.js
++++ deps/v8/tools/clusterfuzz/testdata/test_d8_1.py
++++ deps/v8/tools/clusterfuzz/testdata/test_d8_2.py
++++ deps/v8/tools/clusterfuzz/testdata/test_d8_3.py
++++ deps/v8/tools/clusterfuzz/v8_commands.py
++++ deps/v8/tools/clusterfuzz/v8_foozzie.py
++++ deps/v8/tools/clusterfuzz/v8_foozzie_harness_adjust.js
++++ deps/v8/tools/clusterfuzz/v8_foozzie_test.py
++++ deps/v8/tools/clusterfuzz/v8_fuzz_config.py
++++ deps/v8/tools/clusterfuzz/v8_mock.js
++++ deps/v8/tools/clusterfuzz/v8_mock_archs.js
++++ deps/v8/tools/clusterfuzz/v8_sanity_checks.js
++++ deps/v8/tools/clusterfuzz/v8_suppressions.js
++++ deps/v8/tools/clusterfuzz/v8_suppressions.py
++++ deps/v8/tools/compare-table-gen.js
++++ deps/v8/tools/cpu.sh
++++ deps/v8/tools/debug_helper/BUILD.gn
++++ deps/v8/tools/debug_helper/debug-helper-internal.cc
++++ deps/v8/tools/debug_helper/debug-helper-internal.h
++++ deps/v8/tools/debug_helper/debug-helper.h
++++ deps/v8/tools/debug_helper/gen-heap-constants.py
++++ deps/v8/tools/debug_helper/get-object-properties.cc
++++ deps/v8/tools/debug_helper/heap-constants.cc
++++ deps/v8/tools/debug_helper/heap-constants.h
++++ deps/v8/tools/deprecation_stats.py
++++ deps/v8/tools/detect-builtins.js
++++ deps/v8/tools/dev/gen-tags.py
++++ deps/v8/tools/dev/gm.py
++++ deps/v8/tools/dev/v8gen.py
++++ deps/v8/tools/dump-cpp.py
++++ deps/v8/tools/dumpcpp-driver.js
++++ deps/v8/tools/dumpcpp.js
++++ deps/v8/tools/eval_gc_nvp.py
++++ deps/v8/tools/eval_gc_time.sh
++++ deps/v8/tools/find-commit-for-patch.py
++++ deps/v8/tools/find_depot_tools.py
++++ deps/v8/tools/gc-nvp-to-csv.py
++++ deps/v8/tools/gc_nvp_common.py
++++ deps/v8/tools/gcmole/BUILD.gn
++++ deps/v8/tools/gcmole/gcmole-test.cc
++++ deps/v8/tools/gcmole/package.sh
++++ deps/v8/tools/gcmole/parallel.py
++++ deps/v8/tools/gcmole/run-gcmole.py
++++ deps/v8/tools/gdbinit
++++ deps/v8/tools/gen-inlining-tests.py
++++ deps/v8/tools/gen-keywords-gen-h.py
++++ deps/v8/tools/generate-builtins-tests.py
++++ deps/v8/tools/get_landmines.py
++++ deps/v8/tools/heap-stats/categories.js
++++ deps/v8/tools/heap-stats/details-selection.html
++++ deps/v8/tools/heap-stats/details-selection.js
++++ deps/v8/tools/heap-stats/global-timeline.html
++++ deps/v8/tools/heap-stats/global-timeline.js
++++ deps/v8/tools/heap-stats/helper.js
++++ deps/v8/tools/heap-stats/histogram-viewer.html
++++ deps/v8/tools/heap-stats/histogram-viewer.js
++++ deps/v8/tools/heap-stats/index.html
++++ deps/v8/tools/heap-stats/model.js
++++ deps/v8/tools/heap-stats/trace-file-reader.html
++++ deps/v8/tools/heap-stats/trace-file-reader.js
++++ deps/v8/tools/ic-explorer.html
++++ deps/v8/tools/ic-processor-driver.js
++++ deps/v8/tools/ic-processor.js
++++ deps/v8/tools/ignition/bytecode_dispatches_report.py
++++ deps/v8/tools/ignition/bytecode_dispatches_report_test.py
++++ deps/v8/tools/ignition/linux_perf_bytecode_annotate.py
++++ deps/v8/tools/ignition/linux_perf_bytecode_annotate_test.py
++++ deps/v8/tools/ignition/linux_perf_report.py
++++ deps/v8/tools/ignition/linux_perf_report_test.py
++++ deps/v8/tools/jsfunfuzz/BUILD.gn
++++ deps/v8/tools/jsfunfuzz/fuzz-harness.sh
++++ deps/v8/tools/link_clicker.extension/background.js
++++ deps/v8/tools/link_clicker.extension/content.js
++++ deps/v8/tools/link_clicker.extension/popup.html
++++ deps/v8/tools/link_clicker.extension/popup.js
++++ deps/v8/tools/lldb_commands.py
++++ deps/v8/tools/locs.py
++++ deps/v8/tools/map-processor-driver.js
++++ deps/v8/tools/map-processor.html
++++ deps/v8/tools/map-processor.js
++++ deps/v8/tools/ninja/ninja_output.py
++++ deps/v8/tools/node/fetch_deps.py
++++ deps/v8/tools/node/node_common.py
++++ deps/v8/tools/parse-processor-driver.js
++++ deps/v8/tools/parse-processor.html
++++ deps/v8/tools/parse-processor.js
++++ deps/v8/tools/perf-compare.py
++++ deps/v8/tools/perf/statistics-for-json.R
++++ deps/v8/tools/predictable_wrapper.py
++++ deps/v8/tools/profview/profile-utils.js
++++ deps/v8/tools/profview/profview.js
++++ deps/v8/tools/release/PRESUBMIT.py
++++ deps/v8/tools/release/auto_roll.py
++++ deps/v8/tools/release/auto_tag.py
++++ deps/v8/tools/release/check_clusterfuzz.py
++++ deps/v8/tools/release/create_release.py
++++ deps/v8/tools/release/filter_build_files.py
++++ deps/v8/tools/release/mergeinfo.py
++++ deps/v8/tools/release/search_related_commits.py
++++ deps/v8/tools/release/test_mergeinfo.py
++++ deps/v8/tools/release/test_search_related_commits.py
++++ deps/v8/tools/run-clang-tidy.py
++++ deps/v8/tools/run-num-fuzzer.py
++++ deps/v8/tools/run-perf.sh
++++ deps/v8/tools/run-wasm-api-tests.py
++++ deps/v8/tools/run.py
++++ deps/v8/tools/run_perf.py
++++ deps/v8/tools/sanitizers/sancov_formatter.py
++++ deps/v8/tools/sanitizers/sancov_formatter_test.py
++++ deps/v8/tools/sanitizers/sancov_merger.py
++++ deps/v8/tools/sanitizers/sancov_merger_test.py
++++ deps/v8/tools/sanitizers/sanitize_pcs.py
++++ deps/v8/tools/snapshot/asm_to_inline_asm.py
++++ deps/v8/tools/test262-results-parser.js
++++ deps/v8/tools/testrunner/PRESUBMIT.py
++++ deps/v8/tools/testrunner/base_runner.py
++++ deps/v8/tools/testrunner/local/android.py
++++ deps/v8/tools/testrunner/local/command.py
++++ deps/v8/tools/testrunner/local/fake_testsuite/fake_testsuite.status
++++ deps/v8/tools/testrunner/local/fake_testsuite/testcfg.py
++++ deps/v8/tools/testrunner/local/pool.py
++++ deps/v8/tools/testrunner/local/pool_unittest.py
++++ deps/v8/tools/testrunner/local/statusfile_unittest.py
++++ deps/v8/tools/testrunner/local/testsuite_unittest.py
++++ deps/v8/tools/testrunner/local/variants.py
++++ deps/v8/tools/testrunner/num_fuzzer.py
++++ deps/v8/tools/testrunner/objects/predictable.py
++++ deps/v8/tools/testrunner/outproc/__init__.py
++++ deps/v8/tools/testrunner/outproc/base.py
++++ deps/v8/tools/testrunner/outproc/message.py
++++ deps/v8/tools/testrunner/outproc/mkgrokdump.py
++++ deps/v8/tools/testrunner/outproc/mozilla.py
++++ deps/v8/tools/testrunner/outproc/test262.py
++++ deps/v8/tools/testrunner/outproc/webkit.py
++++ deps/v8/tools/testrunner/standard_runner.py
++++ deps/v8/tools/testrunner/test_config.py
++++ deps/v8/tools/testrunner/testproc/__init__.py
++++ deps/v8/tools/testrunner/testproc/base.py
++++ deps/v8/tools/testrunner/testproc/combiner.py
++++ deps/v8/tools/testrunner/testproc/execution.py
++++ deps/v8/tools/testrunner/testproc/expectation.py
++++ deps/v8/tools/testrunner/testproc/filter.py
++++ deps/v8/tools/testrunner/testproc/fuzzer.py
++++ deps/v8/tools/testrunner/testproc/loader.py
++++ deps/v8/tools/testrunner/testproc/progress.py
++++ deps/v8/tools/testrunner/testproc/rerun.py
++++ deps/v8/tools/testrunner/testproc/result.py
++++ deps/v8/tools/testrunner/testproc/seed.py
++++ deps/v8/tools/testrunner/testproc/shard.py
++++ deps/v8/tools/testrunner/testproc/shard_unittest.py
++++ deps/v8/tools/testrunner/testproc/sigproc.py
++++ deps/v8/tools/testrunner/testproc/timeout.py
++++ deps/v8/tools/testrunner/testproc/variant.py
++++ deps/v8/tools/testrunner/testproc/variant_unittest.py
++++ deps/v8/tools/testrunner/trycatch_loader.js
++++ deps/v8/tools/testrunner/utils/__init__.py
++++ deps/v8/tools/testrunner/utils/dump_build_config.py
++++ deps/v8/tools/testrunner/utils/dump_build_config_gyp.py
++++ deps/v8/tools/testrunner/utils/random_utils.py
++++ deps/v8/tools/toolchain/BUILD.gn
++++ deps/v8/tools/torque/format-torque.py
++++ deps/v8/tools/torque/vim-torque/syntax/torque.vim
++++ deps/v8/tools/trace-maps-processor.py
++++ deps/v8/tools/tracing/proto-converter/proto-to-json.ts
++++ deps/v8/tools/try_perf.py
++++ deps/v8/tools/turbolizer-perf.py
++++ deps/v8/tools/turbolizer/index.html
++++ deps/v8/tools/turbolizer/rollup.config.js
++++ deps/v8/tools/turbolizer/src/code-view.ts
++++ deps/v8/tools/turbolizer/src/constants.ts
++++ deps/v8/tools/turbolizer/src/disassembly-view.ts
++++ deps/v8/tools/turbolizer/src/edge.ts
++++ deps/v8/tools/turbolizer/src/graph-layout.ts
++++ deps/v8/tools/turbolizer/src/graph-view.ts
++++ deps/v8/tools/turbolizer/src/graphmultiview.ts
++++ deps/v8/tools/turbolizer/src/node-label.ts
++++ deps/v8/tools/turbolizer/src/node.ts
++++ deps/v8/tools/turbolizer/src/resizer.ts
++++ deps/v8/tools/turbolizer/src/schedule-view.ts
++++ deps/v8/tools/turbolizer/src/selection-broker.ts
++++ deps/v8/tools/turbolizer/src/selection-handler.ts
++++ deps/v8/tools/turbolizer/src/selection.ts
++++ deps/v8/tools/turbolizer/src/sequence-view.ts
++++ deps/v8/tools/turbolizer/src/source-resolver.ts
++++ deps/v8/tools/turbolizer/src/text-view.ts
++++ deps/v8/tools/turbolizer/src/turbo-visualizer.ts
++++ deps/v8/tools/turbolizer/src/util.ts
++++ deps/v8/tools/turbolizer/src/view.ts
++++ deps/v8/tools/unittests/__init__.py
++++ deps/v8/tools/unittests/predictable_wrapper_test.py
++++ deps/v8/tools/unittests/run_perf_test.py
++++ deps/v8/tools/unittests/run_tests_test.py
++++ deps/v8/tools/unittests/testdata/d8_mocked1.py
++++ deps/v8/tools/unittests/testdata/d8_mocked2.py
++++ deps/v8/tools/unittests/testdata/predictable_mocked.py
++++ deps/v8/tools/unittests/testdata/results_processor.py
++++ deps/v8/tools/unittests/testdata/testroot1/d8_mocked.py
++++ deps/v8/tools/unittests/testdata/testroot1/test/sweet/sweet.status
++++ deps/v8/tools/unittests/testdata/testroot1/test/sweet/testcfg.py
++++ deps/v8/tools/unittests/testdata/testroot2/d8_mocked.py
++++ deps/v8/tools/unittests/testdata/testroot2/test/sweet/sweet.status
++++ deps/v8/tools/unittests/testdata/testroot2/test/sweet/testcfg.py
++++ deps/v8/tools/unittests/v8_presubmit_test.py
++++ deps/v8/tools/update-object-macros-undef.py
++++ deps/v8/tools/v8heapconst.py
++++ deps/v8/tools/vim/ninja-build.vim
++++ deps/v8/tools/wasm-compilation-hints/inject-compilation-hints.py
++++ deps/v8/tools/wasm-compilation-hints/wasm-objdump-compilation-hints.py
++++ deps/v8/tools/wasm-compilation-hints/wasm.py
++++ deps/v8/tools/wasm/update-wasm-fuzzers.sh
++++ deps/v8/tools/wasm/update-wasm-spec-tests.sh
++++ deps/v8/tools/wasm/wasm-import-profiler-end.js
++++ deps/v8/tools/wasm/wasm-import-profiler.js
++++ deps/v8/tools/windbg.js
++++ src/string_search.h
++++ src/tracing/trace_event.h
++++ src/tracing/traced_value.cc
++++ src/tracing/traced_value.h
++++ tools/inspector_protocol/BUILD.gn
++++ tools/v8_gypfiles/d8.gyp
++++ tools/v8_gypfiles/inspector.gypi
++++ tools/v8_gypfiles/v8.gyp
++++Copyright: 2006-2008, the V8 project authors.
++++  2006-2009, the V8 project authors.
++++  2006-2013, the V8 project authors.
++++  2007-2008, the V8 project authors.
++++  2007-2010, the V8 project authors.
++++  2008, the V8 project authors.
++++  2008-2009, the V8 project authors.
++++  2009, the V8 project authors.
++++  2009-2010, the V8 project authors.
++++  2010, the V8 project authors.
++++  2011, the V8 project authors.
++++  2012, the V8 project authors.
++++  2013, the V8 project authors.
++++  2014, the V8 project authors.
++++  2015, the V8 project authors.
++++  2016, the V8 project authors.
++++  2017, the V8 project authors.
++++  2018, the V8 project authors.
++++  2019, the V8 project authors.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/openssl/config/archs/BSD-x86/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/BSD-x86/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/BSD-x86/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/BSD-x86/asm/include/progs.h
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/BSD-x86/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/BSD-x86/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/BSD-x86/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/BSD-x86/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/BSD-x86/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/BSD-x86/no-asm/include/progs.h
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/BSD-x86_64/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/BSD-x86_64/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/BSD-x86_64/asm/include/progs.h
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/BSD-x86_64/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/BSD-x86_64/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/BSD-x86_64/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/BSD-x86_64/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/BSD-x86_64/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/BSD-x86_64/no-asm/include/progs.h
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/VC-WIN32/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/VC-WIN32/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/VC-WIN32/asm/include/progs.h
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/VC-WIN32/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/VC-WIN32/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/VC-WIN32/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/VC-WIN32/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/VC-WIN32/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/VC-WIN32/no-asm/include/progs.h
++++ deps/openssl/config/archs/VC-WIN64-ARM/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/VC-WIN64-ARM/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/VC-WIN64-ARM/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/VC-WIN64-ARM/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/VC-WIN64-ARM/no-asm/include/progs.h
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/VC-WIN64A/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/VC-WIN64A/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/VC-WIN64A/asm/include/progs.h
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/VC-WIN64A/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/VC-WIN64A/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/VC-WIN64A/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/VC-WIN64A/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/VC-WIN64A/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/VC-WIN64A/no-asm/include/progs.h
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/aix-gcc/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/aix-gcc/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/aix-gcc/asm/include/progs.h
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/aix-gcc/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/aix-gcc/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/aix-gcc/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/aix-gcc/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/aix-gcc/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/aix-gcc/no-asm/include/progs.h
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/aix64-gcc/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/aix64-gcc/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/aix64-gcc/asm/include/progs.h
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/aix64-gcc/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/aix64-gcc/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/aix64-gcc/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/aix64-gcc/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/aix64-gcc/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/aix64-gcc/no-asm/include/progs.h
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/darwin-i386-cc/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/darwin-i386-cc/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/darwin-i386-cc/asm/include/progs.h
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/darwin-i386-cc/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/darwin-i386-cc/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/darwin-i386-cc/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/darwin-i386-cc/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/darwin-i386-cc/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/darwin-i386-cc/no-asm/include/progs.h
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm/include/progs.h
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/darwin64-x86_64-cc/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/darwin64-x86_64-cc/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/darwin64-x86_64-cc/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/darwin64-x86_64-cc/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/darwin64-x86_64-cc/no-asm/include/progs.h
++++ deps/openssl/config/archs/linux-aarch64/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-aarch64/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-aarch64/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-aarch64/asm/crypto/sha/sha256-armv8.S
++++ deps/openssl/config/archs/linux-aarch64/asm/crypto/sha/sha512-armv8.S
++++ deps/openssl/config/archs/linux-aarch64/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-aarch64/asm/include/progs.h
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/crypto/sha/sha256-armv8.S
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/crypto/sha/sha512-armv8.S
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-aarch64/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/linux-aarch64/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-aarch64/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-aarch64/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-aarch64/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-aarch64/no-asm/include/progs.h
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/aes/aes-armv4.S
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/aes/bsaes-armv7.S
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/sha/sha256-armv4.S
++++ deps/openssl/config/archs/linux-armv4/asm/crypto/sha/sha512-armv4.S
++++ deps/openssl/config/archs/linux-armv4/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-armv4/asm/include/progs.h
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/aes/aes-armv4.S
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/aes/bsaes-armv7.S
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/sha/sha256-armv4.S
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/crypto/sha/sha512-armv4.S
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-armv4/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/linux-armv4/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-armv4/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-armv4/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-armv4/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-armv4/no-asm/include/progs.h
++++ deps/openssl/config/archs/linux-elf/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-elf/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-elf/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-elf/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-elf/asm/include/progs.h
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-elf/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-elf/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-elf/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/linux-elf/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-elf/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-elf/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-elf/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-elf/no-asm/include/progs.h
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-ppc/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-ppc/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-ppc/asm/include/progs.h
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-ppc/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/linux-ppc/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-ppc/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-ppc/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-ppc/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-ppc/no-asm/include/progs.h
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-ppc64/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-ppc64/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-ppc64/asm/include/progs.h
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-ppc64/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/linux-ppc64/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-ppc64/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-ppc64/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-ppc64/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-ppc64/no-asm/include/progs.h
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-ppc64le/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-ppc64le/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-ppc64le/asm/include/progs.h
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-ppc64le/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/linux-ppc64le/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-ppc64le/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-ppc64le/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-ppc64le/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-ppc64le/no-asm/include/progs.h
++++ deps/openssl/config/archs/linux-x32/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-x32/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-x32/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-x32/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-x32/asm/include/progs.h
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-x32/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-x32/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-x32/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/linux-x32/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-x32/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-x32/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-x32/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-x32/no-asm/include/progs.h
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-x86_64/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-x86_64/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-x86_64/asm/include/progs.h
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-x86_64/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/linux-x86_64/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux-x86_64/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux-x86_64/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux-x86_64/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux-x86_64/no-asm/include/progs.h
++++ deps/openssl/config/archs/linux32-s390x/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux32-s390x/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux32-s390x/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux32-s390x/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux32-s390x/asm/include/progs.h
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux32-s390x/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/linux32-s390x/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux32-s390x/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux32-s390x/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux32-s390x/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux32-s390x/no-asm/include/progs.h
++++ deps/openssl/config/archs/linux64-mips64/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux64-mips64/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux64-mips64/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux64-mips64/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux64-mips64/asm/include/progs.h
++++ deps/openssl/config/archs/linux64-mips64/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/linux64-mips64/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux64-mips64/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux64-mips64/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux64-mips64/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/linux64-mips64/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux64-mips64/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux64-mips64/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux64-mips64/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux64-mips64/no-asm/include/progs.h
++++ deps/openssl/config/archs/linux64-s390x/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux64-s390x/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux64-s390x/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux64-s390x/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux64-s390x/asm/include/progs.h
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux64-s390x/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/linux64-s390x/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/linux64-s390x/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/linux64-s390x/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/linux64-s390x/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/linux64-s390x/no-asm/include/progs.h
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/solaris-x86-gcc/asm/include/progs.h
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/solaris-x86-gcc/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/solaris-x86-gcc/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/solaris-x86-gcc/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/solaris-x86-gcc/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/solaris-x86-gcc/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/solaris-x86-gcc/no-asm/include/progs.h
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/buildinf.h
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm/include/progs.h
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/buildinf.h
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/asm_avx2/include/progs.h
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/no-asm/crypto/buildinf.h
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/no-asm/crypto/include/internal/bn_conf.h
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/no-asm/crypto/include/internal/dso_conf.h
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/no-asm/include/openssl/opensslconf.h
++++ deps/openssl/config/archs/solaris64-x86_64-gcc/no-asm/include/progs.h
++++ deps/openssl/openssl/Configurations/shared-info.pl
++++ deps/openssl/openssl/Configure
++++ deps/openssl/openssl/VMS/VMSify-conf.pl
++++ deps/openssl/openssl/VMS/translatesyms.pl
++++ deps/openssl/openssl/apps/CA.pl.in
++++ deps/openssl/openssl/apps/app_rand.c
++++ deps/openssl/openssl/apps/apps.h
++++ deps/openssl/openssl/apps/asn1pars.c
++++ deps/openssl/openssl/apps/bf_prefix.c
++++ deps/openssl/openssl/apps/ca.c
++++ deps/openssl/openssl/apps/ciphers.c
++++ deps/openssl/openssl/apps/cms.c
++++ deps/openssl/openssl/apps/crl.c
++++ deps/openssl/openssl/apps/crl2p7.c
++++ deps/openssl/openssl/apps/dgst.c
++++ deps/openssl/openssl/apps/dhparam.c
++++ deps/openssl/openssl/apps/dsa.c
++++ deps/openssl/openssl/apps/dsaparam.c
++++ deps/openssl/openssl/apps/ec.c
++++ deps/openssl/openssl/apps/enc.c
++++ deps/openssl/openssl/apps/engine.c
++++ deps/openssl/openssl/apps/errstr.c
++++ deps/openssl/openssl/apps/gendsa.c
++++ deps/openssl/openssl/apps/genpkey.c
++++ deps/openssl/openssl/apps/genrsa.c
++++ deps/openssl/openssl/apps/nseq.c
++++ deps/openssl/openssl/apps/ocsp.c
++++ deps/openssl/openssl/apps/openssl.c
++++ deps/openssl/openssl/apps/opt.c
++++ deps/openssl/openssl/apps/passwd.c
++++ deps/openssl/openssl/apps/pkcs12.c
++++ deps/openssl/openssl/apps/pkcs7.c
++++ deps/openssl/openssl/apps/pkcs8.c
++++ deps/openssl/openssl/apps/pkey.c
++++ deps/openssl/openssl/apps/pkeyparam.c
++++ deps/openssl/openssl/apps/pkeyutl.c
++++ deps/openssl/openssl/apps/prime.c
++++ deps/openssl/openssl/apps/rand.c
++++ deps/openssl/openssl/apps/req.c
++++ deps/openssl/openssl/apps/rsa.c
++++ deps/openssl/openssl/apps/rsautl.c
++++ deps/openssl/openssl/apps/s_apps.h
++++ deps/openssl/openssl/apps/s_cb.c
++++ deps/openssl/openssl/apps/s_socket.c
++++ deps/openssl/openssl/apps/s_time.c
++++ deps/openssl/openssl/apps/sess_id.c
++++ deps/openssl/openssl/apps/smime.c
++++ deps/openssl/openssl/apps/spkac.c
++++ deps/openssl/openssl/apps/storeutl.c
++++ deps/openssl/openssl/apps/testdsa.h
++++ deps/openssl/openssl/apps/testrsa.h
++++ deps/openssl/openssl/apps/timeouts.h
++++ deps/openssl/openssl/apps/ts.c
++++ deps/openssl/openssl/apps/verify.c
++++ deps/openssl/openssl/apps/version.c
++++ deps/openssl/openssl/apps/vms_decc_init.c
++++ deps/openssl/openssl/apps/win32_init.c
++++ deps/openssl/openssl/apps/x509.c
++++ deps/openssl/openssl/config
++++ deps/openssl/openssl/config.com
++++ deps/openssl/openssl/crypto/aes/aes_cbc.c
++++ deps/openssl/openssl/crypto/aes/aes_cfb.c
++++ deps/openssl/openssl/crypto/aes/aes_ecb.c
++++ deps/openssl/openssl/crypto/aes/aes_ige.c
++++ deps/openssl/openssl/crypto/aes/aes_locl.h
++++ deps/openssl/openssl/crypto/aes/aes_misc.c
++++ deps/openssl/openssl/crypto/aes/aes_ofb.c
++++ deps/openssl/openssl/crypto/aes/aes_wrap.c
++++ deps/openssl/openssl/crypto/aes/asm/aes-armv4.pl
++++ deps/openssl/openssl/crypto/aes/asm/aes-c64xplus.pl
++++ deps/openssl/openssl/crypto/aes/asm/aes-ia64.S
++++ deps/openssl/openssl/crypto/aes/asm/aes-mips.pl
++++ deps/openssl/openssl/crypto/aes/asm/aes-parisc.pl
++++ deps/openssl/openssl/crypto/aes/asm/aes-ppc.pl
++++ deps/openssl/openssl/crypto/aes/asm/aes-s390x.pl
++++ deps/openssl/openssl/crypto/aes/asm/aes-sparcv9.pl
++++ deps/openssl/openssl/crypto/aes/asm/aesfx-sparcv9.pl
++++ deps/openssl/openssl/crypto/aes/asm/aesni-mb-x86_64.pl
++++ deps/openssl/openssl/crypto/aes/asm/aesni-sha1-x86_64.pl
++++ deps/openssl/openssl/crypto/aes/asm/aesni-sha256-x86_64.pl
++++ deps/openssl/openssl/crypto/aes/asm/aesni-x86.pl
++++ deps/openssl/openssl/crypto/aes/asm/aesni-x86_64.pl
++++ deps/openssl/openssl/crypto/aes/asm/aesp8-ppc.pl
++++ deps/openssl/openssl/crypto/aes/asm/aest4-sparcv9.pl
++++ deps/openssl/openssl/crypto/aes/asm/aesv8-armx.pl
++++ deps/openssl/openssl/crypto/aes/asm/bsaes-armv7.pl
++++ deps/openssl/openssl/crypto/aes/asm/vpaes-armv8.pl
++++ deps/openssl/openssl/crypto/aes/asm/vpaes-ppc.pl
++++ deps/openssl/openssl/crypto/aes/asm/vpaes-x86.pl
++++ deps/openssl/openssl/crypto/aes/asm/vpaes-x86_64.pl
++++ deps/openssl/openssl/crypto/alphacpuid.pl
++++ deps/openssl/openssl/crypto/arm64cpuid.pl
++++ deps/openssl/openssl/crypto/arm_arch.h
++++ deps/openssl/openssl/crypto/armcap.c
++++ deps/openssl/openssl/crypto/armv4cpuid.pl
++++ deps/openssl/openssl/crypto/asn1/a_bitstr.c
++++ deps/openssl/openssl/crypto/asn1/a_d2i_fp.c
++++ deps/openssl/openssl/crypto/asn1/a_digest.c
++++ deps/openssl/openssl/crypto/asn1/a_dup.c
++++ deps/openssl/openssl/crypto/asn1/a_gentm.c
++++ deps/openssl/openssl/crypto/asn1/a_i2d_fp.c
++++ deps/openssl/openssl/crypto/asn1/a_int.c
++++ deps/openssl/openssl/crypto/asn1/a_mbstr.c
++++ deps/openssl/openssl/crypto/asn1/a_object.c
++++ deps/openssl/openssl/crypto/asn1/a_octet.c
++++ deps/openssl/openssl/crypto/asn1/a_print.c
++++ deps/openssl/openssl/crypto/asn1/a_sign.c
++++ deps/openssl/openssl/crypto/asn1/a_strex.c
++++ deps/openssl/openssl/crypto/asn1/a_strnid.c
++++ deps/openssl/openssl/crypto/asn1/a_time.c
++++ deps/openssl/openssl/crypto/asn1/a_type.c
++++ deps/openssl/openssl/crypto/asn1/a_utctm.c
++++ deps/openssl/openssl/crypto/asn1/a_utf8.c
++++ deps/openssl/openssl/crypto/asn1/a_verify.c
++++ deps/openssl/openssl/crypto/asn1/ameth_lib.c
++++ deps/openssl/openssl/crypto/asn1/asn1_err.c
++++ deps/openssl/openssl/crypto/asn1/asn1_gen.c
++++ deps/openssl/openssl/crypto/asn1/asn1_item_list.c
++++ deps/openssl/openssl/crypto/asn1/asn1_item_list.h
++++ deps/openssl/openssl/crypto/asn1/asn1_lib.c
++++ deps/openssl/openssl/crypto/asn1/asn1_locl.h
++++ deps/openssl/openssl/crypto/asn1/asn1_par.c
++++ deps/openssl/openssl/crypto/asn1/asn_mime.c
++++ deps/openssl/openssl/crypto/asn1/asn_moid.c
++++ deps/openssl/openssl/crypto/asn1/asn_mstbl.c
++++ deps/openssl/openssl/crypto/asn1/asn_pack.c
++++ deps/openssl/openssl/crypto/asn1/bio_asn1.c
++++ deps/openssl/openssl/crypto/asn1/bio_ndef.c
++++ deps/openssl/openssl/crypto/asn1/charmap.h
++++ deps/openssl/openssl/crypto/asn1/d2i_pr.c
++++ deps/openssl/openssl/crypto/asn1/d2i_pu.c
++++ deps/openssl/openssl/crypto/asn1/evp_asn1.c
++++ deps/openssl/openssl/crypto/asn1/f_int.c
++++ deps/openssl/openssl/crypto/asn1/f_string.c
++++ deps/openssl/openssl/crypto/asn1/i2d_pr.c
++++ deps/openssl/openssl/crypto/asn1/i2d_pu.c
++++ deps/openssl/openssl/crypto/asn1/n_pkey.c
++++ deps/openssl/openssl/crypto/asn1/nsseq.c
++++ deps/openssl/openssl/crypto/asn1/p5_pbe.c
++++ deps/openssl/openssl/crypto/asn1/p5_pbev2.c
++++ deps/openssl/openssl/crypto/asn1/p5_scrypt.c
++++ deps/openssl/openssl/crypto/asn1/p8_pkey.c
++++ deps/openssl/openssl/crypto/asn1/standard_methods.h
++++ deps/openssl/openssl/crypto/asn1/t_bitst.c
++++ deps/openssl/openssl/crypto/asn1/t_pkey.c
++++ deps/openssl/openssl/crypto/asn1/t_spki.c
++++ deps/openssl/openssl/crypto/asn1/tasn_enc.c
++++ deps/openssl/openssl/crypto/asn1/tasn_fre.c
++++ deps/openssl/openssl/crypto/asn1/tasn_new.c
++++ deps/openssl/openssl/crypto/asn1/tasn_prn.c
++++ deps/openssl/openssl/crypto/asn1/tasn_scn.c
++++ deps/openssl/openssl/crypto/asn1/tasn_typ.c
++++ deps/openssl/openssl/crypto/asn1/tasn_utl.c
++++ deps/openssl/openssl/crypto/asn1/tbl_standard.h
++++ deps/openssl/openssl/crypto/asn1/x_algor.c
++++ deps/openssl/openssl/crypto/asn1/x_bignum.c
++++ deps/openssl/openssl/crypto/asn1/x_info.c
++++ deps/openssl/openssl/crypto/asn1/x_int64.c
++++ deps/openssl/openssl/crypto/asn1/x_long.c
++++ deps/openssl/openssl/crypto/asn1/x_pkey.c
++++ deps/openssl/openssl/crypto/asn1/x_sig.c
++++ deps/openssl/openssl/crypto/asn1/x_spki.c
++++ deps/openssl/openssl/crypto/asn1/x_val.c
++++ deps/openssl/openssl/crypto/async/arch/async_null.c
++++ deps/openssl/openssl/crypto/async/arch/async_null.h
++++ deps/openssl/openssl/crypto/async/arch/async_posix.c
++++ deps/openssl/openssl/crypto/async/arch/async_posix.h
++++ deps/openssl/openssl/crypto/async/arch/async_win.c
++++ deps/openssl/openssl/crypto/async/arch/async_win.h
++++ deps/openssl/openssl/crypto/async/async.c
++++ deps/openssl/openssl/crypto/async/async_err.c
++++ deps/openssl/openssl/crypto/async/async_locl.h
++++ deps/openssl/openssl/crypto/async/async_wait.c
++++ deps/openssl/openssl/crypto/bf/asm/bf-586.pl
++++ deps/openssl/openssl/crypto/bf/bf_cfb64.c
++++ deps/openssl/openssl/crypto/bf/bf_ecb.c
++++ deps/openssl/openssl/crypto/bf/bf_enc.c
++++ deps/openssl/openssl/crypto/bf/bf_locl.h
++++ deps/openssl/openssl/crypto/bf/bf_ofb64.c
++++ deps/openssl/openssl/crypto/bf/bf_pi.h
++++ deps/openssl/openssl/crypto/bf/bf_skey.c
++++ deps/openssl/openssl/crypto/bio/b_addr.c
++++ deps/openssl/openssl/crypto/bio/b_dump.c
++++ deps/openssl/openssl/crypto/bio/b_sock.c
++++ deps/openssl/openssl/crypto/bio/b_sock2.c
++++ deps/openssl/openssl/crypto/bio/bf_buff.c
++++ deps/openssl/openssl/crypto/bio/bf_lbuf.c
++++ deps/openssl/openssl/crypto/bio/bf_nbio.c
++++ deps/openssl/openssl/crypto/bio/bf_null.c
++++ deps/openssl/openssl/crypto/bio/bio_cb.c
++++ deps/openssl/openssl/crypto/bio/bio_err.c
++++ deps/openssl/openssl/crypto/bio/bio_lcl.h
++++ deps/openssl/openssl/crypto/bio/bio_lib.c
++++ deps/openssl/openssl/crypto/bio/bio_meth.c
++++ deps/openssl/openssl/crypto/bio/bss_acpt.c
++++ deps/openssl/openssl/crypto/bio/bss_bio.c
++++ deps/openssl/openssl/crypto/bio/bss_conn.c
++++ deps/openssl/openssl/crypto/bio/bss_dgram.c
++++ deps/openssl/openssl/crypto/bio/bss_fd.c
++++ deps/openssl/openssl/crypto/bio/bss_file.c
++++ deps/openssl/openssl/crypto/bio/bss_log.c
++++ deps/openssl/openssl/crypto/bio/bss_mem.c
++++ deps/openssl/openssl/crypto/bio/bss_null.c
++++ deps/openssl/openssl/crypto/bio/bss_sock.c
++++ deps/openssl/openssl/crypto/bn/asm/alpha-mont.pl
++++ deps/openssl/openssl/crypto/bn/asm/armv4-gf2m.pl
++++ deps/openssl/openssl/crypto/bn/asm/armv4-mont.pl
++++ deps/openssl/openssl/crypto/bn/asm/armv8-mont.pl
++++ deps/openssl/openssl/crypto/bn/asm/bn-586.pl
++++ deps/openssl/openssl/crypto/bn/asm/bn-c64xplus.asm
++++ deps/openssl/openssl/crypto/bn/asm/c64xplus-gf2m.pl
++++ deps/openssl/openssl/crypto/bn/asm/co-586.pl
++++ deps/openssl/openssl/crypto/bn/asm/ia64.S
++++ deps/openssl/openssl/crypto/bn/asm/mips-mont.pl
++++ deps/openssl/openssl/crypto/bn/asm/mips.pl
++++ deps/openssl/openssl/crypto/bn/asm/parisc-mont.pl
++++ deps/openssl/openssl/crypto/bn/asm/ppc-mont.pl
++++ deps/openssl/openssl/crypto/bn/asm/ppc.pl
++++ deps/openssl/openssl/crypto/bn/asm/ppc64-mont.pl
++++ deps/openssl/openssl/crypto/bn/asm/s390x-gf2m.pl
++++ deps/openssl/openssl/crypto/bn/asm/s390x-mont.pl
++++ deps/openssl/openssl/crypto/bn/asm/s390x.S
++++ deps/openssl/openssl/crypto/bn/asm/sparct4-mont.pl
++++ deps/openssl/openssl/crypto/bn/asm/sparcv8.S
++++ deps/openssl/openssl/crypto/bn/asm/sparcv8plus.S
++++ deps/openssl/openssl/crypto/bn/asm/sparcv9-gf2m.pl
++++ deps/openssl/openssl/crypto/bn/asm/sparcv9-mont.pl
++++ deps/openssl/openssl/crypto/bn/asm/sparcv9a-mont.pl
++++ deps/openssl/openssl/crypto/bn/asm/via-mont.pl
++++ deps/openssl/openssl/crypto/bn/asm/vis3-mont.pl
++++ deps/openssl/openssl/crypto/bn/asm/x86-gf2m.pl
++++ deps/openssl/openssl/crypto/bn/asm/x86-mont.pl
++++ deps/openssl/openssl/crypto/bn/asm/x86_64-gcc.c
++++ deps/openssl/openssl/crypto/bn/asm/x86_64-gf2m.pl
++++ deps/openssl/openssl/crypto/bn/asm/x86_64-mont.pl
++++ deps/openssl/openssl/crypto/bn/asm/x86_64-mont5.pl
++++ deps/openssl/openssl/crypto/bn/bn_add.c
++++ deps/openssl/openssl/crypto/bn/bn_asm.c
++++ deps/openssl/openssl/crypto/bn/bn_blind.c
++++ deps/openssl/openssl/crypto/bn/bn_const.c
++++ deps/openssl/openssl/crypto/bn/bn_ctx.c
++++ deps/openssl/openssl/crypto/bn/bn_depr.c
++++ deps/openssl/openssl/crypto/bn/bn_dh.c
++++ deps/openssl/openssl/crypto/bn/bn_div.c
++++ deps/openssl/openssl/crypto/bn/bn_err.c
++++ deps/openssl/openssl/crypto/bn/bn_exp.c
++++ deps/openssl/openssl/crypto/bn/bn_exp2.c
++++ deps/openssl/openssl/crypto/bn/bn_gcd.c
++++ deps/openssl/openssl/crypto/bn/bn_intern.c
++++ deps/openssl/openssl/crypto/bn/bn_kron.c
++++ deps/openssl/openssl/crypto/bn/bn_lcl.h
++++ deps/openssl/openssl/crypto/bn/bn_lib.c
++++ deps/openssl/openssl/crypto/bn/bn_mod.c
++++ deps/openssl/openssl/crypto/bn/bn_mont.c
++++ deps/openssl/openssl/crypto/bn/bn_mpi.c
++++ deps/openssl/openssl/crypto/bn/bn_mul.c
++++ deps/openssl/openssl/crypto/bn/bn_nist.c
++++ deps/openssl/openssl/crypto/bn/bn_prime.c
++++ deps/openssl/openssl/crypto/bn/bn_prime.h
++++ deps/openssl/openssl/crypto/bn/bn_print.c
++++ deps/openssl/openssl/crypto/bn/bn_rand.c
++++ deps/openssl/openssl/crypto/bn/bn_recp.c
++++ deps/openssl/openssl/crypto/bn/bn_shift.c
++++ deps/openssl/openssl/crypto/bn/bn_sqr.c
++++ deps/openssl/openssl/crypto/bn/bn_sqrt.c
++++ deps/openssl/openssl/crypto/bn/bn_srp.c
++++ deps/openssl/openssl/crypto/bn/bn_word.c
++++ deps/openssl/openssl/crypto/bn/bn_x931p.c
++++ deps/openssl/openssl/crypto/buffer/buf_err.c
++++ deps/openssl/openssl/crypto/buffer/buffer.c
++++ deps/openssl/openssl/crypto/c64xpluscpuid.pl
++++ deps/openssl/openssl/crypto/camellia/asm/cmllt4-sparcv9.pl
++++ deps/openssl/openssl/crypto/camellia/cmll_cbc.c
++++ deps/openssl/openssl/crypto/camellia/cmll_cfb.c
++++ deps/openssl/openssl/crypto/camellia/cmll_ctr.c
++++ deps/openssl/openssl/crypto/camellia/cmll_ecb.c
++++ deps/openssl/openssl/crypto/camellia/cmll_misc.c
++++ deps/openssl/openssl/crypto/camellia/cmll_ofb.c
++++ deps/openssl/openssl/crypto/cast/asm/cast-586.pl
++++ deps/openssl/openssl/crypto/cast/c_cfb64.c
++++ deps/openssl/openssl/crypto/cast/c_ecb.c
++++ deps/openssl/openssl/crypto/cast/c_enc.c
++++ deps/openssl/openssl/crypto/cast/c_ofb64.c
++++ deps/openssl/openssl/crypto/cast/c_skey.c
++++ deps/openssl/openssl/crypto/cast/cast_lcl.h
++++ deps/openssl/openssl/crypto/cast/cast_s.h
++++ deps/openssl/openssl/crypto/chacha/asm/chacha-armv4.pl
++++ deps/openssl/openssl/crypto/chacha/asm/chacha-armv8.pl
++++ deps/openssl/openssl/crypto/chacha/asm/chacha-c64xplus.pl
++++ deps/openssl/openssl/crypto/chacha/asm/chacha-ppc.pl
++++ deps/openssl/openssl/crypto/chacha/asm/chacha-s390x.pl
++++ deps/openssl/openssl/crypto/chacha/asm/chacha-x86.pl
++++ deps/openssl/openssl/crypto/chacha/asm/chacha-x86_64.pl
++++ deps/openssl/openssl/crypto/chacha/chacha_enc.c
++++ deps/openssl/openssl/crypto/cmac/cm_ameth.c
++++ deps/openssl/openssl/crypto/cmac/cm_pmeth.c
++++ deps/openssl/openssl/crypto/cmac/cmac.c
++++ deps/openssl/openssl/crypto/cms/cms_asn1.c
++++ deps/openssl/openssl/crypto/cms/cms_att.c
++++ deps/openssl/openssl/crypto/cms/cms_cd.c
++++ deps/openssl/openssl/crypto/cms/cms_dd.c
++++ deps/openssl/openssl/crypto/cms/cms_enc.c
++++ deps/openssl/openssl/crypto/cms/cms_env.c
++++ deps/openssl/openssl/crypto/cms/cms_err.c
++++ deps/openssl/openssl/crypto/cms/cms_ess.c
++++ deps/openssl/openssl/crypto/cms/cms_io.c
++++ deps/openssl/openssl/crypto/cms/cms_kari.c
++++ deps/openssl/openssl/crypto/cms/cms_lcl.h
++++ deps/openssl/openssl/crypto/cms/cms_lib.c
++++ deps/openssl/openssl/crypto/cms/cms_pwri.c
++++ deps/openssl/openssl/crypto/cms/cms_sd.c
++++ deps/openssl/openssl/crypto/cms/cms_smime.c
++++ deps/openssl/openssl/crypto/comp/c_zlib.c
++++ deps/openssl/openssl/crypto/comp/comp_err.c
++++ deps/openssl/openssl/crypto/comp/comp_lcl.h
++++ deps/openssl/openssl/crypto/comp/comp_lib.c
++++ deps/openssl/openssl/crypto/conf/conf_api.c
++++ deps/openssl/openssl/crypto/conf/conf_def.c
++++ deps/openssl/openssl/crypto/conf/conf_def.h
++++ deps/openssl/openssl/crypto/conf/conf_err.c
++++ deps/openssl/openssl/crypto/conf/conf_lcl.h
++++ deps/openssl/openssl/crypto/conf/conf_lib.c
++++ deps/openssl/openssl/crypto/conf/conf_mall.c
++++ deps/openssl/openssl/crypto/conf/conf_mod.c
++++ deps/openssl/openssl/crypto/conf/conf_sap.c
++++ deps/openssl/openssl/crypto/conf/conf_ssl.c
++++ deps/openssl/openssl/crypto/cpt_err.c
++++ deps/openssl/openssl/crypto/ct/ct_b64.c
++++ deps/openssl/openssl/crypto/ct/ct_err.c
++++ deps/openssl/openssl/crypto/ct/ct_locl.h
++++ deps/openssl/openssl/crypto/ct/ct_log.c
++++ deps/openssl/openssl/crypto/ct/ct_oct.c
++++ deps/openssl/openssl/crypto/ct/ct_policy.c
++++ deps/openssl/openssl/crypto/ct/ct_prn.c
++++ deps/openssl/openssl/crypto/ct/ct_sct.c
++++ deps/openssl/openssl/crypto/ct/ct_sct_ctx.c
++++ deps/openssl/openssl/crypto/ct/ct_vfy.c
++++ deps/openssl/openssl/crypto/ct/ct_x509v3.c
++++ deps/openssl/openssl/crypto/ctype.c
++++ deps/openssl/openssl/crypto/cversion.c
++++ deps/openssl/openssl/crypto/des/asm/crypt586.pl
++++ deps/openssl/openssl/crypto/des/asm/des-586.pl
++++ deps/openssl/openssl/crypto/des/asm/des_enc.m4
++++ deps/openssl/openssl/crypto/des/asm/desboth.pl
++++ deps/openssl/openssl/crypto/des/asm/dest4-sparcv9.pl
++++ deps/openssl/openssl/crypto/des/cbc_cksm.c
++++ deps/openssl/openssl/crypto/des/cbc_enc.c
++++ deps/openssl/openssl/crypto/des/cfb64ede.c
++++ deps/openssl/openssl/crypto/des/cfb64enc.c
++++ deps/openssl/openssl/crypto/des/cfb_enc.c
++++ deps/openssl/openssl/crypto/des/des_enc.c
++++ deps/openssl/openssl/crypto/des/des_locl.h
++++ deps/openssl/openssl/crypto/des/ecb3_enc.c
++++ deps/openssl/openssl/crypto/des/ecb_enc.c
++++ deps/openssl/openssl/crypto/des/fcrypt.c
++++ deps/openssl/openssl/crypto/des/fcrypt_b.c
++++ deps/openssl/openssl/crypto/des/ncbc_enc.c
++++ deps/openssl/openssl/crypto/des/ofb64ede.c
++++ deps/openssl/openssl/crypto/des/ofb64enc.c
++++ deps/openssl/openssl/crypto/des/ofb_enc.c
++++ deps/openssl/openssl/crypto/des/pcbc_enc.c
++++ deps/openssl/openssl/crypto/des/qud_cksm.c
++++ deps/openssl/openssl/crypto/des/rand_key.c
++++ deps/openssl/openssl/crypto/des/set_key.c
++++ deps/openssl/openssl/crypto/des/spr.h
++++ deps/openssl/openssl/crypto/des/str2key.c
++++ deps/openssl/openssl/crypto/des/xcbc_enc.c
++++ deps/openssl/openssl/crypto/dh/dh_ameth.c
++++ deps/openssl/openssl/crypto/dh/dh_asn1.c
++++ deps/openssl/openssl/crypto/dh/dh_check.c
++++ deps/openssl/openssl/crypto/dh/dh_depr.c
++++ deps/openssl/openssl/crypto/dh/dh_err.c
++++ deps/openssl/openssl/crypto/dh/dh_gen.c
++++ deps/openssl/openssl/crypto/dh/dh_kdf.c
++++ deps/openssl/openssl/crypto/dh/dh_key.c
++++ deps/openssl/openssl/crypto/dh/dh_lib.c
++++ deps/openssl/openssl/crypto/dh/dh_locl.h
++++ deps/openssl/openssl/crypto/dh/dh_meth.c
++++ deps/openssl/openssl/crypto/dh/dh_pmeth.c
++++ deps/openssl/openssl/crypto/dh/dh_prn.c
++++ deps/openssl/openssl/crypto/dh/dh_rfc5114.c
++++ deps/openssl/openssl/crypto/dh/dh_rfc7919.c
++++ deps/openssl/openssl/crypto/dllmain.c
++++ deps/openssl/openssl/crypto/dsa/dsa_ameth.c
++++ deps/openssl/openssl/crypto/dsa/dsa_asn1.c
++++ deps/openssl/openssl/crypto/dsa/dsa_depr.c
++++ deps/openssl/openssl/crypto/dsa/dsa_err.c
++++ deps/openssl/openssl/crypto/dsa/dsa_gen.c
++++ deps/openssl/openssl/crypto/dsa/dsa_key.c
++++ deps/openssl/openssl/crypto/dsa/dsa_lib.c
++++ deps/openssl/openssl/crypto/dsa/dsa_locl.h
++++ deps/openssl/openssl/crypto/dsa/dsa_meth.c
++++ deps/openssl/openssl/crypto/dsa/dsa_ossl.c
++++ deps/openssl/openssl/crypto/dsa/dsa_pmeth.c
++++ deps/openssl/openssl/crypto/dsa/dsa_prn.c
++++ deps/openssl/openssl/crypto/dsa/dsa_sign.c
++++ deps/openssl/openssl/crypto/dsa/dsa_vrf.c
++++ deps/openssl/openssl/crypto/dso/dso_dl.c
++++ deps/openssl/openssl/crypto/dso/dso_dlfcn.c
++++ deps/openssl/openssl/crypto/dso/dso_err.c
++++ deps/openssl/openssl/crypto/dso/dso_lib.c
++++ deps/openssl/openssl/crypto/dso/dso_locl.h
++++ deps/openssl/openssl/crypto/dso/dso_openssl.c
++++ deps/openssl/openssl/crypto/dso/dso_vms.c
++++ deps/openssl/openssl/crypto/dso/dso_win32.c
++++ deps/openssl/openssl/crypto/ebcdic.c
++++ deps/openssl/openssl/crypto/ec/asm/ecp_nistz256-armv4.pl
++++ deps/openssl/openssl/crypto/ec/asm/ecp_nistz256-armv8.pl
++++ deps/openssl/openssl/crypto/ec/asm/ecp_nistz256-ppc64.pl
++++ deps/openssl/openssl/crypto/ec/asm/ecp_nistz256-sparcv9.pl
++++ deps/openssl/openssl/crypto/ec/asm/ecp_nistz256-x86.pl
++++ deps/openssl/openssl/crypto/ec/asm/x25519-ppc64.pl
++++ deps/openssl/openssl/crypto/ec/asm/x25519-x86_64.pl
++++ deps/openssl/openssl/crypto/ec/curve25519.c
++++ deps/openssl/openssl/crypto/ec/curve448/curve448_lcl.h
++++ deps/openssl/openssl/crypto/ec/ec_ameth.c
++++ deps/openssl/openssl/crypto/ec/ec_asn1.c
++++ deps/openssl/openssl/crypto/ec/ec_check.c
++++ deps/openssl/openssl/crypto/ec/ec_err.c
++++ deps/openssl/openssl/crypto/ec/ec_kmeth.c
++++ deps/openssl/openssl/crypto/ec/ec_pmeth.c
++++ deps/openssl/openssl/crypto/ec/ec_print.c
++++ deps/openssl/openssl/crypto/ec/ecdh_kdf.c
++++ deps/openssl/openssl/crypto/ec/ecdsa_ossl.c
++++ deps/openssl/openssl/crypto/ec/ecdsa_sign.c
++++ deps/openssl/openssl/crypto/ec/ecdsa_vrf.c
++++ deps/openssl/openssl/crypto/ec/ecp_nistz256_table.c
++++ deps/openssl/openssl/crypto/ec/ecx_meth.c
++++ deps/openssl/openssl/crypto/engine/eng_all.c
++++ deps/openssl/openssl/crypto/engine/eng_cnf.c
++++ deps/openssl/openssl/crypto/engine/eng_ctrl.c
++++ deps/openssl/openssl/crypto/engine/eng_devcrypto.c
++++ deps/openssl/openssl/crypto/engine/eng_err.c
++++ deps/openssl/openssl/crypto/engine/eng_init.c
++++ deps/openssl/openssl/crypto/engine/eng_lib.c
++++ deps/openssl/openssl/crypto/engine/eng_pkey.c
++++ deps/openssl/openssl/crypto/engine/eng_rdrand.c
++++ deps/openssl/openssl/crypto/engine/eng_table.c
++++ deps/openssl/openssl/crypto/engine/tb_asnmth.c
++++ deps/openssl/openssl/crypto/engine/tb_cipher.c
++++ deps/openssl/openssl/crypto/engine/tb_dh.c
++++ deps/openssl/openssl/crypto/engine/tb_digest.c
++++ deps/openssl/openssl/crypto/engine/tb_dsa.c
++++ deps/openssl/openssl/crypto/engine/tb_eckey.c
++++ deps/openssl/openssl/crypto/engine/tb_pkmeth.c
++++ deps/openssl/openssl/crypto/engine/tb_rand.c
++++ deps/openssl/openssl/crypto/engine/tb_rsa.c
++++ deps/openssl/openssl/crypto/err/err.c
++++ deps/openssl/openssl/crypto/err/err_all.c
++++ deps/openssl/openssl/crypto/err/err_prn.c
++++ deps/openssl/openssl/crypto/err/openssl.txt
++++ deps/openssl/openssl/crypto/evp/bio_b64.c
++++ deps/openssl/openssl/crypto/evp/bio_enc.c
++++ deps/openssl/openssl/crypto/evp/bio_md.c
++++ deps/openssl/openssl/crypto/evp/bio_ok.c
++++ deps/openssl/openssl/crypto/evp/c_allc.c
++++ deps/openssl/openssl/crypto/evp/c_alld.c
++++ deps/openssl/openssl/crypto/evp/cmeth_lib.c
++++ deps/openssl/openssl/crypto/evp/digest.c
++++ deps/openssl/openssl/crypto/evp/e_aes_cbc_hmac_sha1.c
++++ deps/openssl/openssl/crypto/evp/e_aes_cbc_hmac_sha256.c
++++ deps/openssl/openssl/crypto/evp/e_bf.c
++++ deps/openssl/openssl/crypto/evp/e_camellia.c
++++ deps/openssl/openssl/crypto/evp/e_cast.c
++++ deps/openssl/openssl/crypto/evp/e_chacha20_poly1305.c
++++ deps/openssl/openssl/crypto/evp/e_des.c
++++ deps/openssl/openssl/crypto/evp/e_des3.c
++++ deps/openssl/openssl/crypto/evp/e_idea.c
++++ deps/openssl/openssl/crypto/evp/e_null.c
++++ deps/openssl/openssl/crypto/evp/e_old.c
++++ deps/openssl/openssl/crypto/evp/e_rc2.c
++++ deps/openssl/openssl/crypto/evp/e_rc4.c
++++ deps/openssl/openssl/crypto/evp/e_rc4_hmac_md5.c
++++ deps/openssl/openssl/crypto/evp/e_rc5.c
++++ deps/openssl/openssl/crypto/evp/e_seed.c
++++ deps/openssl/openssl/crypto/evp/e_xcbc_d.c
++++ deps/openssl/openssl/crypto/evp/encode.c
++++ deps/openssl/openssl/crypto/evp/evp_cnf.c
++++ deps/openssl/openssl/crypto/evp/evp_enc.c
++++ deps/openssl/openssl/crypto/evp/evp_err.c
++++ deps/openssl/openssl/crypto/evp/evp_key.c
++++ deps/openssl/openssl/crypto/evp/evp_lib.c
++++ deps/openssl/openssl/crypto/evp/evp_locl.h
++++ deps/openssl/openssl/crypto/evp/evp_pbe.c
++++ deps/openssl/openssl/crypto/evp/evp_pkey.c
++++ deps/openssl/openssl/crypto/evp/m_md2.c
++++ deps/openssl/openssl/crypto/evp/m_md4.c
++++ deps/openssl/openssl/crypto/evp/m_md5.c
++++ deps/openssl/openssl/crypto/evp/m_md5_sha1.c
++++ deps/openssl/openssl/crypto/evp/m_mdc2.c
++++ deps/openssl/openssl/crypto/evp/m_null.c
++++ deps/openssl/openssl/crypto/evp/m_ripemd.c
++++ deps/openssl/openssl/crypto/evp/m_sha1.c
++++ deps/openssl/openssl/crypto/evp/m_sha3.c
++++ deps/openssl/openssl/crypto/evp/m_sigver.c
++++ deps/openssl/openssl/crypto/evp/m_wp.c
++++ deps/openssl/openssl/crypto/evp/names.c
++++ deps/openssl/openssl/crypto/evp/p5_crpt.c
++++ deps/openssl/openssl/crypto/evp/p5_crpt2.c
++++ deps/openssl/openssl/crypto/evp/p_dec.c
++++ deps/openssl/openssl/crypto/evp/p_enc.c
++++ deps/openssl/openssl/crypto/evp/p_lib.c
++++ deps/openssl/openssl/crypto/evp/p_open.c
++++ deps/openssl/openssl/crypto/evp/p_seal.c
++++ deps/openssl/openssl/crypto/evp/p_sign.c
++++ deps/openssl/openssl/crypto/evp/p_verify.c
++++ deps/openssl/openssl/crypto/evp/pbe_scrypt.c
++++ deps/openssl/openssl/crypto/evp/pmeth_fn.c
++++ deps/openssl/openssl/crypto/evp/pmeth_gn.c
++++ deps/openssl/openssl/crypto/evp/pmeth_lib.c
++++ deps/openssl/openssl/crypto/ex_data.c
++++ deps/openssl/openssl/crypto/getenv.c
++++ deps/openssl/openssl/crypto/hmac/hm_ameth.c
++++ deps/openssl/openssl/crypto/hmac/hm_pmeth.c
++++ deps/openssl/openssl/crypto/hmac/hmac.c
++++ deps/openssl/openssl/crypto/hmac/hmac_lcl.h
++++ deps/openssl/openssl/crypto/ia64cpuid.S
++++ deps/openssl/openssl/crypto/idea/i_cbc.c
++++ deps/openssl/openssl/crypto/idea/i_cfb64.c
++++ deps/openssl/openssl/crypto/idea/i_ecb.c
++++ deps/openssl/openssl/crypto/idea/i_ofb64.c
++++ deps/openssl/openssl/crypto/idea/i_skey.c
++++ deps/openssl/openssl/crypto/idea/idea_lcl.h
++++ deps/openssl/openssl/crypto/include/internal/__DECC_INCLUDE_EPILOGUE.H
++++ deps/openssl/openssl/crypto/include/internal/__DECC_INCLUDE_PROLOGUE.H
++++ deps/openssl/openssl/crypto/include/internal/asn1_int.h
++++ deps/openssl/openssl/crypto/include/internal/async.h
++++ deps/openssl/openssl/crypto/include/internal/bn_conf.h.in
++++ deps/openssl/openssl/crypto/include/internal/bn_dh.h
++++ deps/openssl/openssl/crypto/include/internal/bn_int.h
++++ deps/openssl/openssl/crypto/include/internal/bn_srp.h
++++ deps/openssl/openssl/crypto/include/internal/chacha.h
++++ deps/openssl/openssl/crypto/include/internal/cryptlib_int.h
++++ deps/openssl/openssl/crypto/include/internal/ctype.h
++++ deps/openssl/openssl/crypto/include/internal/dso_conf.h.in
++++ deps/openssl/openssl/crypto/include/internal/ec_int.h
++++ deps/openssl/openssl/crypto/include/internal/engine.h
++++ deps/openssl/openssl/crypto/include/internal/err_int.h
++++ deps/openssl/openssl/crypto/include/internal/evp_int.h
++++ deps/openssl/openssl/crypto/include/internal/lhash.h
++++ deps/openssl/openssl/crypto/include/internal/md32_common.h
++++ deps/openssl/openssl/crypto/include/internal/objects.h
++++ deps/openssl/openssl/crypto/include/internal/poly1305.h
++++ deps/openssl/openssl/crypto/include/internal/rand_int.h
++++ deps/openssl/openssl/crypto/include/internal/siphash.h
++++ deps/openssl/openssl/crypto/include/internal/sm2err.h
++++ deps/openssl/openssl/crypto/include/internal/store.h
++++ deps/openssl/openssl/crypto/include/internal/store_int.h
++++ deps/openssl/openssl/crypto/include/internal/x509_int.h
++++ deps/openssl/openssl/crypto/init.c
++++ deps/openssl/openssl/crypto/kdf/hkdf.c
++++ deps/openssl/openssl/crypto/kdf/kdf_err.c
++++ deps/openssl/openssl/crypto/kdf/scrypt.c
++++ deps/openssl/openssl/crypto/kdf/tls1_prf.c
++++ deps/openssl/openssl/crypto/lhash/lh_stats.c
++++ deps/openssl/openssl/crypto/lhash/lhash.c
++++ deps/openssl/openssl/crypto/lhash/lhash_lcl.h
++++ deps/openssl/openssl/crypto/md2/md2_dgst.c
++++ deps/openssl/openssl/crypto/md2/md2_one.c
++++ deps/openssl/openssl/crypto/md4/md4_dgst.c
++++ deps/openssl/openssl/crypto/md4/md4_locl.h
++++ deps/openssl/openssl/crypto/md4/md4_one.c
++++ deps/openssl/openssl/crypto/md5/asm/md5-586.pl
++++ deps/openssl/openssl/crypto/md5/asm/md5-sparcv9.pl
++++ deps/openssl/openssl/crypto/md5/asm/md5-x86_64.pl
++++ deps/openssl/openssl/crypto/md5/md5_dgst.c
++++ deps/openssl/openssl/crypto/md5/md5_locl.h
++++ deps/openssl/openssl/crypto/md5/md5_one.c
++++ deps/openssl/openssl/crypto/mdc2/mdc2_one.c
++++ deps/openssl/openssl/crypto/mdc2/mdc2dgst.c
++++ deps/openssl/openssl/crypto/mem.c
++++ deps/openssl/openssl/crypto/mem_clr.c
++++ deps/openssl/openssl/crypto/mem_dbg.c
++++ deps/openssl/openssl/crypto/mips_arch.h
++++ deps/openssl/openssl/crypto/modes/asm/aesni-gcm-x86_64.pl
++++ deps/openssl/openssl/crypto/modes/asm/ghash-alpha.pl
++++ deps/openssl/openssl/crypto/modes/asm/ghash-armv4.pl
++++ deps/openssl/openssl/crypto/modes/asm/ghash-c64xplus.pl
++++ deps/openssl/openssl/crypto/modes/asm/ghash-ia64.pl
++++ deps/openssl/openssl/crypto/modes/asm/ghash-parisc.pl
++++ deps/openssl/openssl/crypto/modes/asm/ghash-s390x.pl
++++ deps/openssl/openssl/crypto/modes/asm/ghash-sparcv9.pl
++++ deps/openssl/openssl/crypto/modes/asm/ghash-x86.pl
++++ deps/openssl/openssl/crypto/modes/asm/ghash-x86_64.pl
++++ deps/openssl/openssl/crypto/modes/asm/ghashp8-ppc.pl
++++ deps/openssl/openssl/crypto/modes/asm/ghashv8-armx.pl
++++ deps/openssl/openssl/crypto/modes/cbc128.c
++++ deps/openssl/openssl/crypto/modes/cfb128.c
++++ deps/openssl/openssl/crypto/modes/ctr128.c
++++ deps/openssl/openssl/crypto/modes/cts128.c
++++ deps/openssl/openssl/crypto/modes/gcm128.c
++++ deps/openssl/openssl/crypto/modes/modes_lcl.h
++++ deps/openssl/openssl/crypto/modes/ocb128.c
++++ deps/openssl/openssl/crypto/modes/ofb128.c
++++ deps/openssl/openssl/crypto/modes/wrap128.c
++++ deps/openssl/openssl/crypto/modes/xts128.c
++++ deps/openssl/openssl/crypto/o_dir.c
++++ deps/openssl/openssl/crypto/o_fips.c
++++ deps/openssl/openssl/crypto/o_fopen.c
++++ deps/openssl/openssl/crypto/o_init.c
++++ deps/openssl/openssl/crypto/o_str.c
++++ deps/openssl/openssl/crypto/o_time.c
++++ deps/openssl/openssl/crypto/objects/o_names.c
++++ deps/openssl/openssl/crypto/objects/obj_dat.c
++++ deps/openssl/openssl/crypto/objects/obj_dat.h
++++ deps/openssl/openssl/crypto/objects/obj_err.c
++++ deps/openssl/openssl/crypto/objects/obj_lcl.h
++++ deps/openssl/openssl/crypto/objects/obj_lib.c
++++ deps/openssl/openssl/crypto/objects/obj_xref.c
++++ deps/openssl/openssl/crypto/objects/obj_xref.h
++++ deps/openssl/openssl/crypto/ocsp/ocsp_asn.c
++++ deps/openssl/openssl/crypto/ocsp/ocsp_cl.c
++++ deps/openssl/openssl/crypto/ocsp/ocsp_err.c
++++ deps/openssl/openssl/crypto/ocsp/ocsp_ext.c
++++ deps/openssl/openssl/crypto/ocsp/ocsp_ht.c
++++ deps/openssl/openssl/crypto/ocsp/ocsp_lcl.h
++++ deps/openssl/openssl/crypto/ocsp/ocsp_lib.c
++++ deps/openssl/openssl/crypto/ocsp/ocsp_prn.c
++++ deps/openssl/openssl/crypto/ocsp/ocsp_srv.c
++++ deps/openssl/openssl/crypto/ocsp/ocsp_vfy.c
++++ deps/openssl/openssl/crypto/ocsp/v3_ocsp.c
++++ deps/openssl/openssl/crypto/pariscid.pl
++++ deps/openssl/openssl/crypto/pem/pem_all.c
++++ deps/openssl/openssl/crypto/pem/pem_err.c
++++ deps/openssl/openssl/crypto/pem/pem_info.c
++++ deps/openssl/openssl/crypto/pem/pem_lib.c
++++ deps/openssl/openssl/crypto/pem/pem_oth.c
++++ deps/openssl/openssl/crypto/pem/pem_pk8.c
++++ deps/openssl/openssl/crypto/pem/pem_pkey.c
++++ deps/openssl/openssl/crypto/pem/pem_sign.c
++++ deps/openssl/openssl/crypto/pem/pem_x509.c
++++ deps/openssl/openssl/crypto/pem/pem_xaux.c
++++ deps/openssl/openssl/crypto/pem/pvkfmt.c
++++ deps/openssl/openssl/crypto/perlasm/arm-xlate.pl
++++ deps/openssl/openssl/crypto/perlasm/cbc.pl
++++ deps/openssl/openssl/crypto/perlasm/ppc-xlate.pl
++++ deps/openssl/openssl/crypto/perlasm/sparcv9_modes.pl
++++ deps/openssl/openssl/crypto/perlasm/x86_64-xlate.pl
++++ deps/openssl/openssl/crypto/perlasm/x86asm.pl
++++ deps/openssl/openssl/crypto/perlasm/x86gas.pl
++++ deps/openssl/openssl/crypto/perlasm/x86masm.pl
++++ deps/openssl/openssl/crypto/perlasm/x86nasm.pl
++++ deps/openssl/openssl/crypto/pkcs12/p12_add.c
++++ deps/openssl/openssl/crypto/pkcs12/p12_asn.c
++++ deps/openssl/openssl/crypto/pkcs12/p12_attr.c
++++ deps/openssl/openssl/crypto/pkcs12/p12_crpt.c
++++ deps/openssl/openssl/crypto/pkcs12/p12_crt.c
++++ deps/openssl/openssl/crypto/pkcs12/p12_decr.c
++++ deps/openssl/openssl/crypto/pkcs12/p12_init.c
++++ deps/openssl/openssl/crypto/pkcs12/p12_key.c
++++ deps/openssl/openssl/crypto/pkcs12/p12_kiss.c
++++ deps/openssl/openssl/crypto/pkcs12/p12_lcl.h
++++ deps/openssl/openssl/crypto/pkcs12/p12_mutl.c
++++ deps/openssl/openssl/crypto/pkcs12/p12_npas.c
++++ deps/openssl/openssl/crypto/pkcs12/p12_p8d.c
++++ deps/openssl/openssl/crypto/pkcs12/p12_p8e.c
++++ deps/openssl/openssl/crypto/pkcs12/p12_sbag.c
++++ deps/openssl/openssl/crypto/pkcs12/p12_utl.c
++++ deps/openssl/openssl/crypto/pkcs12/pk12err.c
++++ deps/openssl/openssl/crypto/pkcs7/bio_pk7.c
++++ deps/openssl/openssl/crypto/pkcs7/pk7_asn1.c
++++ deps/openssl/openssl/crypto/pkcs7/pk7_attr.c
++++ deps/openssl/openssl/crypto/pkcs7/pk7_doit.c
++++ deps/openssl/openssl/crypto/pkcs7/pk7_lib.c
++++ deps/openssl/openssl/crypto/pkcs7/pk7_mime.c
++++ deps/openssl/openssl/crypto/pkcs7/pk7_smime.c
++++ deps/openssl/openssl/crypto/pkcs7/pkcs7err.c
++++ deps/openssl/openssl/crypto/poly1305/asm/poly1305-armv4.pl
++++ deps/openssl/openssl/crypto/poly1305/asm/poly1305-armv8.pl
++++ deps/openssl/openssl/crypto/poly1305/asm/poly1305-c64xplus.pl
++++ deps/openssl/openssl/crypto/poly1305/asm/poly1305-mips.pl
++++ deps/openssl/openssl/crypto/poly1305/asm/poly1305-ppc.pl
++++ deps/openssl/openssl/crypto/poly1305/asm/poly1305-ppcfp.pl
++++ deps/openssl/openssl/crypto/poly1305/asm/poly1305-s390x.pl
++++ deps/openssl/openssl/crypto/poly1305/asm/poly1305-sparcv9.pl
++++ deps/openssl/openssl/crypto/poly1305/asm/poly1305-x86.pl
++++ deps/openssl/openssl/crypto/poly1305/asm/poly1305-x86_64.pl
++++ deps/openssl/openssl/crypto/poly1305/poly1305.c
++++ deps/openssl/openssl/crypto/poly1305/poly1305_ameth.c
++++ deps/openssl/openssl/crypto/poly1305/poly1305_base2_44.c
++++ deps/openssl/openssl/crypto/poly1305/poly1305_ieee754.c
++++ deps/openssl/openssl/crypto/poly1305/poly1305_local.h
++++ deps/openssl/openssl/crypto/poly1305/poly1305_pmeth.c
++++ deps/openssl/openssl/crypto/ppc_arch.h
++++ deps/openssl/openssl/crypto/ppccap.c
++++ deps/openssl/openssl/crypto/ppccpuid.pl
++++ deps/openssl/openssl/crypto/rand/drbg_ctr.c
++++ deps/openssl/openssl/crypto/rand/drbg_lib.c
++++ deps/openssl/openssl/crypto/rand/rand_egd.c
++++ deps/openssl/openssl/crypto/rand/rand_err.c
++++ deps/openssl/openssl/crypto/rand/rand_lcl.h
++++ deps/openssl/openssl/crypto/rand/rand_lib.c
++++ deps/openssl/openssl/crypto/rand/rand_unix.c
++++ deps/openssl/openssl/crypto/rand/rand_vms.c
++++ deps/openssl/openssl/crypto/rand/rand_win.c
++++ deps/openssl/openssl/crypto/rand/randfile.c
++++ deps/openssl/openssl/crypto/rc2/rc2_cbc.c
++++ deps/openssl/openssl/crypto/rc2/rc2_ecb.c
++++ deps/openssl/openssl/crypto/rc2/rc2_locl.h
++++ deps/openssl/openssl/crypto/rc2/rc2_skey.c
++++ deps/openssl/openssl/crypto/rc2/rc2cfb64.c
++++ deps/openssl/openssl/crypto/rc2/rc2ofb64.c
++++ deps/openssl/openssl/crypto/rc4/asm/rc4-586.pl
++++ deps/openssl/openssl/crypto/rc4/asm/rc4-c64xplus.pl
++++ deps/openssl/openssl/crypto/rc4/asm/rc4-md5-x86_64.pl
++++ deps/openssl/openssl/crypto/rc4/asm/rc4-parisc.pl
++++ deps/openssl/openssl/crypto/rc4/asm/rc4-s390x.pl
++++ deps/openssl/openssl/crypto/rc4/asm/rc4-x86_64.pl
++++ deps/openssl/openssl/crypto/rc4/rc4_enc.c
++++ deps/openssl/openssl/crypto/rc4/rc4_locl.h
++++ deps/openssl/openssl/crypto/rc4/rc4_skey.c
++++ deps/openssl/openssl/crypto/rc5/asm/rc5-586.pl
++++ deps/openssl/openssl/crypto/rc5/rc5_ecb.c
++++ deps/openssl/openssl/crypto/rc5/rc5_enc.c
++++ deps/openssl/openssl/crypto/rc5/rc5_locl.h
++++ deps/openssl/openssl/crypto/rc5/rc5_skey.c
++++ deps/openssl/openssl/crypto/rc5/rc5cfb64.c
++++ deps/openssl/openssl/crypto/rc5/rc5ofb64.c
++++ deps/openssl/openssl/crypto/ripemd/asm/rmd-586.pl
++++ deps/openssl/openssl/crypto/ripemd/rmd_dgst.c
++++ deps/openssl/openssl/crypto/ripemd/rmd_locl.h
++++ deps/openssl/openssl/crypto/ripemd/rmd_one.c
++++ deps/openssl/openssl/crypto/ripemd/rmdconst.h
++++ deps/openssl/openssl/crypto/rsa/rsa_ameth.c
++++ deps/openssl/openssl/crypto/rsa/rsa_asn1.c
++++ deps/openssl/openssl/crypto/rsa/rsa_chk.c
++++ deps/openssl/openssl/crypto/rsa/rsa_crpt.c
++++ deps/openssl/openssl/crypto/rsa/rsa_depr.c
++++ deps/openssl/openssl/crypto/rsa/rsa_err.c
++++ deps/openssl/openssl/crypto/rsa/rsa_gen.c
++++ deps/openssl/openssl/crypto/rsa/rsa_lib.c
++++ deps/openssl/openssl/crypto/rsa/rsa_locl.h
++++ deps/openssl/openssl/crypto/rsa/rsa_meth.c
++++ deps/openssl/openssl/crypto/rsa/rsa_none.c
++++ deps/openssl/openssl/crypto/rsa/rsa_oaep.c
++++ deps/openssl/openssl/crypto/rsa/rsa_ossl.c
++++ deps/openssl/openssl/crypto/rsa/rsa_pk1.c
++++ deps/openssl/openssl/crypto/rsa/rsa_pmeth.c
++++ deps/openssl/openssl/crypto/rsa/rsa_prn.c
++++ deps/openssl/openssl/crypto/rsa/rsa_pss.c
++++ deps/openssl/openssl/crypto/rsa/rsa_saos.c
++++ deps/openssl/openssl/crypto/rsa/rsa_sign.c
++++ deps/openssl/openssl/crypto/rsa/rsa_ssl.c
++++ deps/openssl/openssl/crypto/rsa/rsa_x931.c
++++ deps/openssl/openssl/crypto/rsa/rsa_x931g.c
++++ deps/openssl/openssl/crypto/s390x_arch.h
++++ deps/openssl/openssl/crypto/s390xcap.c
++++ deps/openssl/openssl/crypto/s390xcpuid.pl
++++ deps/openssl/openssl/crypto/seed/seed_cbc.c
++++ deps/openssl/openssl/crypto/seed/seed_cfb.c
++++ deps/openssl/openssl/crypto/seed/seed_ecb.c
++++ deps/openssl/openssl/crypto/seed/seed_ofb.c
++++ deps/openssl/openssl/crypto/sha/asm/keccak1600-armv4.pl
++++ deps/openssl/openssl/crypto/sha/asm/keccak1600-armv8.pl
++++ deps/openssl/openssl/crypto/sha/asm/keccak1600-avx2.pl
++++ deps/openssl/openssl/crypto/sha/asm/keccak1600-avx512.pl
++++ deps/openssl/openssl/crypto/sha/asm/keccak1600-avx512vl.pl
++++ deps/openssl/openssl/crypto/sha/asm/keccak1600-c64x.pl
++++ deps/openssl/openssl/crypto/sha/asm/keccak1600-mmx.pl
++++ deps/openssl/openssl/crypto/sha/asm/keccak1600-ppc64.pl
++++ deps/openssl/openssl/crypto/sha/asm/keccak1600-s390x.pl
++++ deps/openssl/openssl/crypto/sha/asm/keccak1600-x86_64.pl
++++ deps/openssl/openssl/crypto/sha/asm/keccak1600p8-ppc.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha1-586.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha1-alpha.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha1-armv4-large.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha1-armv8.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha1-c64xplus.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha1-ia64.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha1-mb-x86_64.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha1-mips.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha1-parisc.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha1-ppc.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha1-s390x.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha1-sparcv9.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha1-sparcv9a.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha1-thumb.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha1-x86_64.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha256-586.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha256-armv4.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha256-c64xplus.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha256-mb-x86_64.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha512-586.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha512-armv4.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha512-armv8.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha512-c64xplus.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha512-ia64.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha512-mips.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha512-parisc.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha512-ppc.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha512-s390x.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha512-sparcv9.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha512-x86_64.pl
++++ deps/openssl/openssl/crypto/sha/asm/sha512p8-ppc.pl
++++ deps/openssl/openssl/crypto/sha/keccak1600.c
++++ deps/openssl/openssl/crypto/sha/sha1_one.c
++++ deps/openssl/openssl/crypto/sha/sha1dgst.c
++++ deps/openssl/openssl/crypto/sha/sha256.c
++++ deps/openssl/openssl/crypto/sha/sha512.c
++++ deps/openssl/openssl/crypto/sha/sha_locl.h
++++ deps/openssl/openssl/crypto/siphash/siphash_ameth.c
++++ deps/openssl/openssl/crypto/siphash/siphash_local.h
++++ deps/openssl/openssl/crypto/siphash/siphash_pmeth.c
++++ deps/openssl/openssl/crypto/sm2/sm2_err.c
++++ deps/openssl/openssl/crypto/sm2/sm2_pmeth.c
++++ deps/openssl/openssl/crypto/sparc_arch.h
++++ deps/openssl/openssl/crypto/sparccpuid.S
++++ deps/openssl/openssl/crypto/sparcv9cap.c
++++ deps/openssl/openssl/crypto/stack/stack.c
++++ deps/openssl/openssl/crypto/store/loader_file.c
++++ deps/openssl/openssl/crypto/store/store_err.c
++++ deps/openssl/openssl/crypto/store/store_init.c
++++ deps/openssl/openssl/crypto/store/store_lib.c
++++ deps/openssl/openssl/crypto/store/store_locl.h
++++ deps/openssl/openssl/crypto/store/store_register.c
++++ deps/openssl/openssl/crypto/store/store_strings.c
++++ deps/openssl/openssl/crypto/threads_none.c
++++ deps/openssl/openssl/crypto/threads_pthread.c
++++ deps/openssl/openssl/crypto/threads_win.c
++++ deps/openssl/openssl/crypto/ts/ts_asn1.c
++++ deps/openssl/openssl/crypto/ts/ts_conf.c
++++ deps/openssl/openssl/crypto/ts/ts_err.c
++++ deps/openssl/openssl/crypto/ts/ts_lcl.h
++++ deps/openssl/openssl/crypto/ts/ts_lib.c
++++ deps/openssl/openssl/crypto/ts/ts_req_print.c
++++ deps/openssl/openssl/crypto/ts/ts_req_utils.c
++++ deps/openssl/openssl/crypto/ts/ts_rsp_print.c
++++ deps/openssl/openssl/crypto/ts/ts_rsp_sign.c
++++ deps/openssl/openssl/crypto/ts/ts_rsp_utils.c
++++ deps/openssl/openssl/crypto/ts/ts_rsp_verify.c
++++ deps/openssl/openssl/crypto/ts/ts_verify_ctx.c
++++ deps/openssl/openssl/crypto/txt_db/txt_db.c
++++ deps/openssl/openssl/crypto/ui/ui_err.c
++++ deps/openssl/openssl/crypto/ui/ui_lib.c
++++ deps/openssl/openssl/crypto/ui/ui_locl.h
++++ deps/openssl/openssl/crypto/ui/ui_null.c
++++ deps/openssl/openssl/crypto/ui/ui_openssl.c
++++ deps/openssl/openssl/crypto/ui/ui_util.c
++++ deps/openssl/openssl/crypto/uid.c
++++ deps/openssl/openssl/crypto/vms_rms.h
++++ deps/openssl/openssl/crypto/whrlpool/asm/wp-mmx.pl
++++ deps/openssl/openssl/crypto/whrlpool/asm/wp-x86_64.pl
++++ deps/openssl/openssl/crypto/whrlpool/wp_locl.h
++++ deps/openssl/openssl/crypto/x509/by_dir.c
++++ deps/openssl/openssl/crypto/x509/by_file.c
++++ deps/openssl/openssl/crypto/x509/t_crl.c
++++ deps/openssl/openssl/crypto/x509/t_req.c
++++ deps/openssl/openssl/crypto/x509/t_x509.c
++++ deps/openssl/openssl/crypto/x509/x509_att.c
++++ deps/openssl/openssl/crypto/x509/x509_cmp.c
++++ deps/openssl/openssl/crypto/x509/x509_d2.c
++++ deps/openssl/openssl/crypto/x509/x509_def.c
++++ deps/openssl/openssl/crypto/x509/x509_err.c
++++ deps/openssl/openssl/crypto/x509/x509_ext.c
++++ deps/openssl/openssl/crypto/x509/x509_lcl.h
++++ deps/openssl/openssl/crypto/x509/x509_lu.c
++++ deps/openssl/openssl/crypto/x509/x509_meth.c
++++ deps/openssl/openssl/crypto/x509/x509_obj.c
++++ deps/openssl/openssl/crypto/x509/x509_r2x.c
++++ deps/openssl/openssl/crypto/x509/x509_req.c
++++ deps/openssl/openssl/crypto/x509/x509_set.c
++++ deps/openssl/openssl/crypto/x509/x509_trs.c
++++ deps/openssl/openssl/crypto/x509/x509_txt.c
++++ deps/openssl/openssl/crypto/x509/x509_v3.c
++++ deps/openssl/openssl/crypto/x509/x509_vfy.c
++++ deps/openssl/openssl/crypto/x509/x509_vpm.c
++++ deps/openssl/openssl/crypto/x509/x509cset.c
++++ deps/openssl/openssl/crypto/x509/x509name.c
++++ deps/openssl/openssl/crypto/x509/x509rset.c
++++ deps/openssl/openssl/crypto/x509/x509spki.c
++++ deps/openssl/openssl/crypto/x509/x509type.c
++++ deps/openssl/openssl/crypto/x509/x_all.c
++++ deps/openssl/openssl/crypto/x509/x_attrib.c
++++ deps/openssl/openssl/crypto/x509/x_crl.c
++++ deps/openssl/openssl/crypto/x509/x_exten.c
++++ deps/openssl/openssl/crypto/x509/x_name.c
++++ deps/openssl/openssl/crypto/x509/x_pubkey.c
++++ deps/openssl/openssl/crypto/x509/x_req.c
++++ deps/openssl/openssl/crypto/x509/x_x509.c
++++ deps/openssl/openssl/crypto/x509/x_x509a.c
++++ deps/openssl/openssl/crypto/x509v3/ext_dat.h
++++ deps/openssl/openssl/crypto/x509v3/pcy_cache.c
++++ deps/openssl/openssl/crypto/x509v3/pcy_data.c
++++ deps/openssl/openssl/crypto/x509v3/pcy_int.h
++++ deps/openssl/openssl/crypto/x509v3/pcy_lib.c
++++ deps/openssl/openssl/crypto/x509v3/pcy_map.c
++++ deps/openssl/openssl/crypto/x509v3/pcy_node.c
++++ deps/openssl/openssl/crypto/x509v3/pcy_tree.c
++++ deps/openssl/openssl/crypto/x509v3/standard_exts.h
++++ deps/openssl/openssl/crypto/x509v3/v3_addr.c
++++ deps/openssl/openssl/crypto/x509v3/v3_admis.c
++++ deps/openssl/openssl/crypto/x509v3/v3_admis.h
++++ deps/openssl/openssl/crypto/x509v3/v3_akey.c
++++ deps/openssl/openssl/crypto/x509v3/v3_akeya.c
++++ deps/openssl/openssl/crypto/x509v3/v3_alt.c
++++ deps/openssl/openssl/crypto/x509v3/v3_asid.c
++++ deps/openssl/openssl/crypto/x509v3/v3_bcons.c
++++ deps/openssl/openssl/crypto/x509v3/v3_bitst.c
++++ deps/openssl/openssl/crypto/x509v3/v3_conf.c
++++ deps/openssl/openssl/crypto/x509v3/v3_cpols.c
++++ deps/openssl/openssl/crypto/x509v3/v3_crld.c
++++ deps/openssl/openssl/crypto/x509v3/v3_enum.c
++++ deps/openssl/openssl/crypto/x509v3/v3_extku.c
++++ deps/openssl/openssl/crypto/x509v3/v3_genn.c
++++ deps/openssl/openssl/crypto/x509v3/v3_ia5.c
++++ deps/openssl/openssl/crypto/x509v3/v3_info.c
++++ deps/openssl/openssl/crypto/x509v3/v3_int.c
++++ deps/openssl/openssl/crypto/x509v3/v3_lib.c
++++ deps/openssl/openssl/crypto/x509v3/v3_ncons.c
++++ deps/openssl/openssl/crypto/x509v3/v3_pcons.c
++++ deps/openssl/openssl/crypto/x509v3/v3_pku.c
++++ deps/openssl/openssl/crypto/x509v3/v3_pmaps.c
++++ deps/openssl/openssl/crypto/x509v3/v3_prn.c
++++ deps/openssl/openssl/crypto/x509v3/v3_purp.c
++++ deps/openssl/openssl/crypto/x509v3/v3_skey.c
++++ deps/openssl/openssl/crypto/x509v3/v3_sxnet.c
++++ deps/openssl/openssl/crypto/x509v3/v3_tlsf.c
++++ deps/openssl/openssl/crypto/x509v3/v3_utl.c
++++ deps/openssl/openssl/crypto/x509v3/v3err.c
++++ deps/openssl/openssl/crypto/x86_64cpuid.pl
++++ deps/openssl/openssl/crypto/x86cpuid.pl
++++ deps/openssl/openssl/e_os.h
++++ deps/openssl/openssl/engines/asm/e_padlock-x86.pl
++++ deps/openssl/openssl/engines/asm/e_padlock-x86_64.pl
++++ deps/openssl/openssl/engines/e_afalg.c
++++ deps/openssl/openssl/engines/e_afalg.h
++++ deps/openssl/openssl/engines/e_afalg.txt
++++ deps/openssl/openssl/engines/e_afalg_err.c
++++ deps/openssl/openssl/engines/e_afalg_err.h
++++ deps/openssl/openssl/engines/e_capi.c
++++ deps/openssl/openssl/engines/e_capi.txt
++++ deps/openssl/openssl/engines/e_capi_err.c
++++ deps/openssl/openssl/engines/e_capi_err.h
++++ deps/openssl/openssl/engines/e_dasync.c
++++ deps/openssl/openssl/engines/e_dasync.txt
++++ deps/openssl/openssl/engines/e_dasync_err.c
++++ deps/openssl/openssl/engines/e_dasync_err.h
++++ deps/openssl/openssl/engines/e_ossltest.c
++++ deps/openssl/openssl/engines/e_ossltest.txt
++++ deps/openssl/openssl/engines/e_ossltest_err.c
++++ deps/openssl/openssl/engines/e_ossltest_err.h
++++ deps/openssl/openssl/engines/e_padlock.c
++++ deps/openssl/openssl/external/perl/transfer/Text/Template.pm
++++ deps/openssl/openssl/fuzz/asn1.c
++++ deps/openssl/openssl/fuzz/asn1parse.c
++++ deps/openssl/openssl/fuzz/bignum.c
++++ deps/openssl/openssl/fuzz/bndiv.c
++++ deps/openssl/openssl/fuzz/client.c
++++ deps/openssl/openssl/fuzz/cms.c
++++ deps/openssl/openssl/fuzz/conf.c
++++ deps/openssl/openssl/fuzz/crl.c
++++ deps/openssl/openssl/fuzz/ct.c
++++ deps/openssl/openssl/fuzz/driver.c
++++ deps/openssl/openssl/fuzz/fuzzer.h
++++ deps/openssl/openssl/fuzz/helper.py
++++ deps/openssl/openssl/fuzz/mkfuzzoids.pl
++++ deps/openssl/openssl/fuzz/rand.inc
++++ deps/openssl/openssl/fuzz/server.c
++++ deps/openssl/openssl/fuzz/test-corpus.c
++++ deps/openssl/openssl/fuzz/x509.c
++++ deps/openssl/openssl/include/internal/__DECC_INCLUDE_EPILOGUE.H
++++ deps/openssl/openssl/include/internal/__DECC_INCLUDE_PROLOGUE.H
++++ deps/openssl/openssl/include/internal/bio.h
++++ deps/openssl/openssl/include/internal/comp.h
++++ deps/openssl/openssl/include/internal/conf.h
++++ deps/openssl/openssl/include/internal/constant_time_locl.h
++++ deps/openssl/openssl/include/internal/cryptlib.h
++++ deps/openssl/openssl/include/internal/dane.h
++++ deps/openssl/openssl/include/internal/dso.h
++++ deps/openssl/openssl/include/internal/dsoerr.h
++++ deps/openssl/openssl/include/internal/err.h
++++ deps/openssl/openssl/include/internal/nelem.h
++++ deps/openssl/openssl/include/internal/numbers.h
++++ deps/openssl/openssl/include/internal/o_str.h
++++ deps/openssl/openssl/include/internal/refcount.h
++++ deps/openssl/openssl/include/internal/sockets.h
++++ deps/openssl/openssl/include/internal/sslconf.h
++++ deps/openssl/openssl/include/internal/thread_once.h
++++ deps/openssl/openssl/include/internal/tsan_assist.h
++++ deps/openssl/openssl/include/openssl/__DECC_INCLUDE_EPILOGUE.H
++++ deps/openssl/openssl/include/openssl/__DECC_INCLUDE_PROLOGUE.H
++++ deps/openssl/openssl/include/openssl/aes.h
++++ deps/openssl/openssl/include/openssl/asn1.h
++++ deps/openssl/openssl/include/openssl/asn1_mac.h
++++ deps/openssl/openssl/include/openssl/asn1err.h
++++ deps/openssl/openssl/include/openssl/asn1t.h
++++ deps/openssl/openssl/include/openssl/async.h
++++ deps/openssl/openssl/include/openssl/asyncerr.h
++++ deps/openssl/openssl/include/openssl/bio.h
++++ deps/openssl/openssl/include/openssl/bioerr.h
++++ deps/openssl/openssl/include/openssl/blowfish.h
++++ deps/openssl/openssl/include/openssl/bnerr.h
++++ deps/openssl/openssl/include/openssl/buffer.h
++++ deps/openssl/openssl/include/openssl/buffererr.h
++++ deps/openssl/openssl/include/openssl/camellia.h
++++ deps/openssl/openssl/include/openssl/cast.h
++++ deps/openssl/openssl/include/openssl/cmac.h
++++ deps/openssl/openssl/include/openssl/cms.h
++++ deps/openssl/openssl/include/openssl/cmserr.h
++++ deps/openssl/openssl/include/openssl/comp.h
++++ deps/openssl/openssl/include/openssl/comperr.h
++++ deps/openssl/openssl/include/openssl/conf.h
++++ deps/openssl/openssl/include/openssl/conf_api.h
++++ deps/openssl/openssl/include/openssl/conferr.h
++++ deps/openssl/openssl/include/openssl/cryptoerr.h
++++ deps/openssl/openssl/include/openssl/ct.h
++++ deps/openssl/openssl/include/openssl/cterr.h
++++ deps/openssl/openssl/include/openssl/des.h
++++ deps/openssl/openssl/include/openssl/dh.h
++++ deps/openssl/openssl/include/openssl/dherr.h
++++ deps/openssl/openssl/include/openssl/dsa.h
++++ deps/openssl/openssl/include/openssl/dsaerr.h
++++ deps/openssl/openssl/include/openssl/dtls1.h
++++ deps/openssl/openssl/include/openssl/e_os2.h
++++ deps/openssl/openssl/include/openssl/ebcdic.h
++++ deps/openssl/openssl/include/openssl/ecdh.h
++++ deps/openssl/openssl/include/openssl/ecdsa.h
++++ deps/openssl/openssl/include/openssl/ecerr.h
++++ deps/openssl/openssl/include/openssl/engineerr.h
++++ deps/openssl/openssl/include/openssl/err.h
++++ deps/openssl/openssl/include/openssl/evp.h
++++ deps/openssl/openssl/include/openssl/evperr.h
++++ deps/openssl/openssl/include/openssl/hmac.h
++++ deps/openssl/openssl/include/openssl/idea.h
++++ deps/openssl/openssl/include/openssl/kdf.h
++++ deps/openssl/openssl/include/openssl/kdferr.h
++++ deps/openssl/openssl/include/openssl/lhash.h
++++ deps/openssl/openssl/include/openssl/md2.h
++++ deps/openssl/openssl/include/openssl/md4.h
++++ deps/openssl/openssl/include/openssl/md5.h
++++ deps/openssl/openssl/include/openssl/mdc2.h
++++ deps/openssl/openssl/include/openssl/modes.h
++++ deps/openssl/openssl/include/openssl/obj_mac.h
++++ deps/openssl/openssl/include/openssl/objects.h
++++ deps/openssl/openssl/include/openssl/objectserr.h
++++ deps/openssl/openssl/include/openssl/ocsp.h
++++ deps/openssl/openssl/include/openssl/ocsperr.h
++++ deps/openssl/openssl/include/openssl/opensslconf.h.in
++++ deps/openssl/openssl/include/openssl/opensslv.h
++++ deps/openssl/openssl/include/openssl/ossl_typ.h
++++ deps/openssl/openssl/include/openssl/pem.h
++++ deps/openssl/openssl/include/openssl/pem2.h
++++ deps/openssl/openssl/include/openssl/pemerr.h
++++ deps/openssl/openssl/include/openssl/pkcs12.h
++++ deps/openssl/openssl/include/openssl/pkcs12err.h
++++ deps/openssl/openssl/include/openssl/pkcs7.h
++++ deps/openssl/openssl/include/openssl/pkcs7err.h
++++ deps/openssl/openssl/include/openssl/rand.h
++++ deps/openssl/openssl/include/openssl/rand_drbg.h
++++ deps/openssl/openssl/include/openssl/randerr.h
++++ deps/openssl/openssl/include/openssl/rc2.h
++++ deps/openssl/openssl/include/openssl/rc4.h
++++ deps/openssl/openssl/include/openssl/rc5.h
++++ deps/openssl/openssl/include/openssl/ripemd.h
++++ deps/openssl/openssl/include/openssl/rsa.h
++++ deps/openssl/openssl/include/openssl/rsaerr.h
++++ deps/openssl/openssl/include/openssl/safestack.h
++++ deps/openssl/openssl/include/openssl/sha.h
++++ deps/openssl/openssl/include/openssl/ssl2.h
++++ deps/openssl/openssl/include/openssl/sslerr.h
++++ deps/openssl/openssl/include/openssl/stack.h
++++ deps/openssl/openssl/include/openssl/store.h
++++ deps/openssl/openssl/include/openssl/storeerr.h
++++ deps/openssl/openssl/include/openssl/symhacks.h
++++ deps/openssl/openssl/include/openssl/ts.h
++++ deps/openssl/openssl/include/openssl/tserr.h
++++ deps/openssl/openssl/include/openssl/txt_db.h
++++ deps/openssl/openssl/include/openssl/ui.h
++++ deps/openssl/openssl/include/openssl/uierr.h
++++ deps/openssl/openssl/include/openssl/whrlpool.h
++++ deps/openssl/openssl/include/openssl/x509_vfy.h
++++ deps/openssl/openssl/include/openssl/x509err.h
++++ deps/openssl/openssl/include/openssl/x509v3.h
++++ deps/openssl/openssl/include/openssl/x509v3err.h
++++ deps/openssl/openssl/ms/applink.c
++++ deps/openssl/openssl/ms/cmp.pl
++++ deps/openssl/openssl/ms/uplink-common.pl
++++ deps/openssl/openssl/ms/uplink-ia64.pl
++++ deps/openssl/openssl/ms/uplink-x86.pl
++++ deps/openssl/openssl/ms/uplink-x86_64.pl
++++ deps/openssl/openssl/ms/uplink.c
++++ deps/openssl/openssl/ms/uplink.h
++++ deps/openssl/openssl/ssl/bio_ssl.c
++++ deps/openssl/openssl/ssl/d1_lib.c
++++ deps/openssl/openssl/ssl/d1_msg.c
++++ deps/openssl/openssl/ssl/methods.c
++++ deps/openssl/openssl/ssl/packet.c
++++ deps/openssl/openssl/ssl/packet_locl.h
++++ deps/openssl/openssl/ssl/pqueue.c
++++ deps/openssl/openssl/ssl/record/dtls1_bitmap.c
++++ deps/openssl/openssl/ssl/record/rec_layer_d1.c
++++ deps/openssl/openssl/ssl/record/rec_layer_s3.c
++++ deps/openssl/openssl/ssl/record/record.h
++++ deps/openssl/openssl/ssl/record/record_locl.h
++++ deps/openssl/openssl/ssl/record/ssl3_buffer.c
++++ deps/openssl/openssl/ssl/record/ssl3_record.c
++++ deps/openssl/openssl/ssl/record/ssl3_record_tls13.c
++++ deps/openssl/openssl/ssl/s3_cbc.c
++++ deps/openssl/openssl/ssl/s3_msg.c
++++ deps/openssl/openssl/ssl/ssl_cert_table.h
++++ deps/openssl/openssl/ssl/ssl_conf.c
++++ deps/openssl/openssl/ssl/ssl_err.c
++++ deps/openssl/openssl/ssl/ssl_init.c
++++ deps/openssl/openssl/ssl/ssl_mcnf.c
++++ deps/openssl/openssl/ssl/ssl_rsa.c
++++ deps/openssl/openssl/ssl/ssl_utst.c
++++ deps/openssl/openssl/ssl/statem/extensions.c
++++ deps/openssl/openssl/ssl/statem/extensions_clnt.c
++++ deps/openssl/openssl/ssl/statem/extensions_cust.c
++++ deps/openssl/openssl/ssl/statem/extensions_srvr.c
++++ deps/openssl/openssl/ssl/statem/statem.c
++++ deps/openssl/openssl/ssl/statem/statem.h
++++ deps/openssl/openssl/ssl/statem/statem_dtls.c
++++ deps/openssl/openssl/ssl/statem/statem_locl.h
++++ deps/openssl/openssl/ssl/t1_lib.c
++++ deps/openssl/openssl/ssl/t1_trce.c
++++ deps/openssl/openssl/ssl/tls13_enc.c
++++ deps/openssl/openssl/tools/c_rehash.in
++++ deps/openssl/openssl/util/add-depends.pl
++++ deps/openssl/openssl/util/check-malloc-errs
++++ deps/openssl/openssl/util/ck_errf.pl
++++ deps/openssl/openssl/util/copy.pl
++++ deps/openssl/openssl/util/dofile.pl
++++ deps/openssl/openssl/util/find-unused-errs
++++ deps/openssl/openssl/util/mkbuildinf.pl
++++ deps/openssl/openssl/util/mkdef.pl
++++ deps/openssl/openssl/util/mkdir-p.pl
++++ deps/openssl/openssl/util/openssl-format-source
++++ deps/openssl/openssl/util/openssl-update-copyright
++++ deps/openssl/openssl/util/perl/OpenSSL/Test.pm
++++ deps/openssl/openssl/util/perl/OpenSSL/Test/Simple.pm
++++ deps/openssl/openssl/util/perl/OpenSSL/Test/Utils.pm
++++ deps/openssl/openssl/util/perl/OpenSSL/Util/Pod.pm
++++ deps/openssl/openssl/util/perl/TLSProxy/Alert.pm
++++ deps/openssl/openssl/util/perl/TLSProxy/Certificate.pm
++++ deps/openssl/openssl/util/perl/TLSProxy/CertificateVerify.pm
++++ deps/openssl/openssl/util/perl/TLSProxy/ClientHello.pm
++++ deps/openssl/openssl/util/perl/TLSProxy/EncryptedExtensions.pm
++++ deps/openssl/openssl/util/perl/TLSProxy/Message.pm
++++ deps/openssl/openssl/util/perl/TLSProxy/NewSessionTicket.pm
++++ deps/openssl/openssl/util/perl/TLSProxy/Proxy.pm
++++ deps/openssl/openssl/util/perl/TLSProxy/Record.pm
++++ deps/openssl/openssl/util/perl/TLSProxy/ServerHello.pm
++++ deps/openssl/openssl/util/perl/TLSProxy/ServerKeyExchange.pm
++++ deps/openssl/openssl/util/perl/checkhandshake.pm
++++ deps/openssl/openssl/util/perl/with_fallback.pm
++++ deps/openssl/openssl/util/su-filter.pl
++++Copyright: 1995-2016, The OpenSSL Project Authors.
++++  1995-2017, The OpenSSL Project Authors.
++++  1995-2018, The OpenSSL Project Authors.
++++  1995-2019, The OpenSSL Project Authors.
++++  1998-2016, The OpenSSL Project Authors.
++++  1998-2017, The OpenSSL Project Authors.
++++  1998-2018, The OpenSSL Project Authors.
++++  1998-2019, The OpenSSL Project Authors.
++++  1999-2016, The OpenSSL Project Authors.
++++  1999-2017, The OpenSSL Project Authors.
++++  1999-2018, The OpenSSL Project Authors.
++++  1999-2019, The OpenSSL Project Authors.
++++  2000-2016, The OpenSSL Project Authors.
++++  2000-2017, The OpenSSL Project Authors.
++++  2000-2018, The OpenSSL Project Authors.
++++  2000-2019, The OpenSSL Project Authors.
++++  2001-2016, The OpenSSL Project Authors.
++++  2001-2017, The OpenSSL Project Authors.
++++  2001-2018, The OpenSSL Project Authors.
++++  2001-2019, The OpenSSL Project Authors.
++++  2002-2016, The OpenSSL Project Authors.
++++  2002-2018, The OpenSSL Project Authors.
++++  2002-2019, The OpenSSL Project Authors.
++++  2003-2016, The OpenSSL Project Authors.
++++  2003-2018, The OpenSSL Project Authors.
++++  2003-2019, The OpenSSL Project Authors.
++++  2004-2016, The OpenSSL Project Authors.
++++  2004-2017, The OpenSSL Project Authors.
++++  2004-2018, The OpenSSL Project Authors.
++++  2004-2019, The OpenSSL Project Authors.
++++  2005-2016, The OpenSSL Project Authors.
++++  2005-2017, The OpenSSL Project Authors.
++++  2005-2018, The OpenSSL Project Authors.
++++  2005-2019, The OpenSSL Project Authors.
++++  2006-2016, The OpenSSL Project Authors.
++++  2006-2017, The OpenSSL Project Authors.
++++  2006-2018, The OpenSSL Project Authors.
++++  2006-2019, The OpenSSL Project Authors.
++++  2007-2016, The OpenSSL Project Authors.
++++  2007-2018, The OpenSSL Project Authors.
++++  2007-2019, The OpenSSL Project Authors.
++++  2008-2016, The OpenSSL Project Authors.
++++  2008-2018, The OpenSSL Project Authors.
++++  2008-2019, The OpenSSL Project Authors.
++++  2009-2016, The OpenSSL Project Authors.
++++  2009-2018, The OpenSSL Project Authors.
++++  2009-2019, The OpenSSL Project Authors.
++++  2010-2016, The OpenSSL Project Authors.
++++  2010-2018, The OpenSSL Project Authors.
++++  2010-2019, The OpenSSL Project Authors.
++++  2011-2016, The OpenSSL Project Authors.
++++  2011-2018, The OpenSSL Project Authors.
++++  2011-2019, The OpenSSL Project Authors.
++++  2012-2016, The OpenSSL Project Authors.
++++  2012-2017, The OpenSSL Project Authors.
++++  2012-2018, The OpenSSL Project Authors.
++++  2013-2016, The OpenSSL Project Authors.
++++  2013-2018, The OpenSSL Project Authors.
++++  2013-2019, The OpenSSL Project Authors.
++++  2014-2016, The OpenSSL Project Authors.
++++  2014-2017, The OpenSSL Project Authors.
++++  2014-2018, The OpenSSL Project Authors.
++++  2014-2019, The OpenSSL Project Authors.
++++  2015-2016, The OpenSSL Project Authors.
++++  2015-2018, The OpenSSL Project Authors.
++++  2015-2019, The OpenSSL Project Authors.
++++  2016, The OpenSSL Project Authors.
++++  2016-2017, The OpenSSL Project Authors.
++++  2016-2018, The OpenSSL Project Authors.
++++  2016-2019, The OpenSSL Project Authors.
++++  2017, The OpenSSL Project Authors.
++++  2017-2018, The OpenSSL Project Authors.
++++  2017-2019, The OpenSSL Project Authors.
++++  2018, The OpenSSL Project Authors.
++++  2018-2019, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: benchmark/buffers/buffer-base64-encode.js
++++ benchmark/buffers/buffer-compare.js
++++ deps/http_parser/LICENSE-MIT
++++ deps/http_parser/Makefile
++++ deps/http_parser/contrib/parsertrace.c
++++ deps/http_parser/http_parser.c
++++ deps/http_parser/http_parser.h
++++ deps/http_parser/test.c
++++ deps/uv/include/uv.h
++++ deps/uv/include/uv/aix.h
++++ deps/uv/include/uv/bsd.h
++++ deps/uv/include/uv/darwin.h
++++ deps/uv/include/uv/errno.h
++++ deps/uv/include/uv/linux.h
++++ deps/uv/include/uv/sunos.h
++++ deps/uv/include/uv/threadpool.h
++++ deps/uv/include/uv/unix.h
++++ deps/uv/include/uv/version.h
++++ deps/uv/include/uv/win.h
++++ deps/uv/src/fs-poll.c
++++ deps/uv/src/threadpool.c
++++ deps/uv/src/timer.c
++++ deps/uv/src/unix/aix.c
++++ deps/uv/src/unix/async.c
++++ deps/uv/src/unix/darwin-proctitle.c
++++ deps/uv/src/unix/darwin.c
++++ deps/uv/src/unix/dl.c
++++ deps/uv/src/unix/freebsd.c
++++ deps/uv/src/unix/fs.c
++++ deps/uv/src/unix/fsevents.c
++++ deps/uv/src/unix/getaddrinfo.c
++++ deps/uv/src/unix/getnameinfo.c
++++ deps/uv/src/unix/internal.h
++++ deps/uv/src/unix/kqueue.c
++++ deps/uv/src/unix/linux-core.c
++++ deps/uv/src/unix/linux-inotify.c
++++ deps/uv/src/unix/linux-syscalls.c
++++ deps/uv/src/unix/linux-syscalls.h
++++ deps/uv/src/unix/loop-watcher.c
++++ deps/uv/src/unix/loop.c
++++ deps/uv/src/unix/netbsd.c
++++ deps/uv/src/unix/openbsd.c
++++ deps/uv/src/unix/pipe.c
++++ deps/uv/src/unix/poll.c
++++ deps/uv/src/unix/process.c
++++ deps/uv/src/unix/proctitle.c
++++ deps/uv/src/unix/signal.c
++++ deps/uv/src/unix/stream.c
++++ deps/uv/src/unix/sunos.c
++++ deps/uv/src/unix/tcp.c
++++ deps/uv/src/unix/thread.c
++++ deps/uv/src/unix/tty.c
++++ deps/uv/src/unix/udp.c
++++ deps/uv/src/uv-common.c
++++ deps/uv/src/uv-common.h
++++ deps/uv/src/version.c
++++ deps/uv/src/win/async.c
++++ deps/uv/src/win/atomicops-inl.h
++++ deps/uv/src/win/core.c
++++ deps/uv/src/win/dl.c
++++ deps/uv/src/win/error.c
++++ deps/uv/src/win/fs-event.c
++++ deps/uv/src/win/fs.c
++++ deps/uv/src/win/getaddrinfo.c
++++ deps/uv/src/win/getnameinfo.c
++++ deps/uv/src/win/handle-inl.h
++++ deps/uv/src/win/handle.c
++++ deps/uv/src/win/internal.h
++++ deps/uv/src/win/loop-watcher.c
++++ deps/uv/src/win/poll.c
++++ deps/uv/src/win/process-stdio.c
++++ deps/uv/src/win/process.c
++++ deps/uv/src/win/req-inl.h
++++ deps/uv/src/win/signal.c
++++ deps/uv/src/win/stream-inl.h
++++ deps/uv/src/win/stream.c
++++ deps/uv/src/win/tcp.c
++++ deps/uv/src/win/thread.c
++++ deps/uv/src/win/tty.c
++++ deps/uv/src/win/udp.c
++++ deps/uv/src/win/util.c
++++ deps/uv/src/win/winapi.c
++++ deps/uv/src/win/winapi.h
++++ deps/uv/src/win/winsock.c
++++ deps/uv/src/win/winsock.h
++++ lib/_http_agent.js
++++ lib/_http_client.js
++++ lib/_http_common.js
++++ lib/_http_incoming.js
++++ lib/_http_outgoing.js
++++ lib/_http_server.js
++++ lib/_stream_duplex.js
++++ lib/_stream_passthrough.js
++++ lib/_stream_readable.js
++++ lib/_stream_transform.js
++++ lib/_stream_writable.js
++++ lib/_tls_common.js
++++ lib/_tls_wrap.js
++++ lib/buffer.js
++++ lib/child_process.js
++++ lib/cluster.js
++++ lib/console.js
++++ lib/constants.js
++++ lib/crypto.js
++++ lib/dgram.js
++++ lib/dns.js
++++ lib/domain.js
++++ lib/events.js
++++ lib/fs.js
++++ lib/http.js
++++ lib/https.js
++++ lib/internal/modules/cjs/loader.js
++++ lib/net.js
++++ lib/os.js
++++ lib/path.js
++++ lib/querystring.js
++++ lib/readline.js
++++ lib/repl.js
++++ lib/stream.js
++++ lib/string_decoder.js
++++ lib/sys.js
++++ lib/timers.js
++++ lib/tls.js
++++ lib/tty.js
++++ lib/url.js
++++ lib/util.js
++++ lib/vm.js
++++ lib/zlib.js
++++ src/async_wrap-inl.h
++++ src/async_wrap.cc
++++ src/async_wrap.h
++++ src/base_object-inl.h
++++ src/base_object.h
++++ src/cares_wrap.cc
++++ src/env-inl.h
++++ src/env.h
++++ src/fs_event_wrap.cc
++++ src/handle_wrap.cc
++++ src/handle_wrap.h
++++ src/node.cc
++++ src/node.d
++++ src/node.h
++++ src/node.stp
++++ src/node_buffer.cc
++++ src/node_buffer.h
++++ src/node_constants.cc
++++ src/node_constants.h
++++ src/node_contextify.cc
++++ src/node_crypto.cc
++++ src/node_crypto.h
++++ src/node_crypto_bio.cc
++++ src/node_crypto_bio.h
++++ src/node_crypto_clienthello-inl.h
++++ src/node_crypto_clienthello.cc
++++ src/node_crypto_clienthello.h
++++ src/node_crypto_groups.h
++++ src/node_dtrace.cc
++++ src/node_dtrace.h
++++ src/node_file.cc
++++ src/node_http_parser_impl.h
++++ src/node_i18n.cc
++++ src/node_i18n.h
++++ src/node_internals.h
++++ src/node_main.cc
++++ src/node_object_wrap.h
++++ src/node_os.cc
++++ src/node_provider.d
++++ src/node_stat_watcher.cc
++++ src/node_stat_watcher.h
++++ src/node_v8.cc
++++ src/node_version.h
++++ src/node_watchdog.cc
++++ src/node_watchdog.h
++++ src/node_win32_etw_provider-inl.h
++++ src/node_win32_etw_provider.cc
++++ src/node_win32_etw_provider.h
++++ src/node_zlib.cc
++++ src/pipe_wrap.cc
++++ src/pipe_wrap.h
++++ src/process_wrap.cc
++++ src/signal_wrap.cc
++++ src/spawn_sync.cc
++++ src/spawn_sync.h
++++ src/stream_wrap.cc
++++ src/stream_wrap.h
++++ src/string_bytes.cc
++++ src/string_bytes.h
++++ src/tcp_wrap.cc
++++ src/tcp_wrap.h
++++ src/threadpoolwork-inl.h
++++ src/tls_wrap.cc
++++ src/tls_wrap.h
++++ src/tty_wrap.cc
++++ src/tty_wrap.h
++++ src/udp_wrap.cc
++++ src/udp_wrap.h
++++ src/util-inl.h
++++ src/util.cc
++++ src/util.h
++++ src/uv.cc
++++ src/v8abbr.h
++++ test/addons/repl-domain-abort/binding.cc
++++ test/addons/repl-domain-abort/test.js
++++ test/common/index.js
++++ test/fixtures/GH-1899-output.js
++++ test/fixtures/GH-892-request.js
++++ test/fixtures/a.js
++++ test/fixtures/b/c.js
++++ test/fixtures/b/d.js
++++ test/fixtures/b/package/index.js
++++ test/fixtures/catch-stdout-error.js
++++ test/fixtures/child_process_should_emit_error.js
++++ test/fixtures/cycles/folder/foo.js
++++ test/fixtures/cycles/root.js
++++ test/fixtures/echo-close-check.js
++++ test/fixtures/echo.js
++++ test/fixtures/exit.js
++++ test/fixtures/global/plain.js
++++ test/fixtures/json-with-directory-name-module/module-stub/index.js
++++ test/fixtures/json-with-directory-name-module/module-stub/one-trailing-slash/two/three.js
++++ test/fixtures/json-with-directory-name-module/module-stub/one/two/three.js
++++ test/fixtures/module-load-order/file1.js
++++ test/fixtures/module-load-order/file2.js
++++ test/fixtures/module-load-order/file2/index.js
++++ test/fixtures/module-load-order/file3/index.js
++++ test/fixtures/module-load-order/file4/index.js
++++ test/fixtures/module-load-order/file5/index.js
++++ test/fixtures/module-load-order/file6/index.js
++++ test/fixtures/nested-index/one/hello.js
++++ test/fixtures/nested-index/one/index.js
++++ test/fixtures/nested-index/three.js
++++ test/fixtures/nested-index/three/index.js
++++ test/fixtures/nested-index/two/hello.js
++++ test/fixtures/nested-index/two/index.js
++++ test/fixtures/net-fd-passing-receiver.js
++++ test/fixtures/node_modules/asdf.js
++++ test/fixtures/node_modules/bar.js
++++ test/fixtures/node_modules/baz/index.js
++++ test/fixtures/node_modules/baz/node_modules/asdf.js
++++ test/fixtures/node_modules/foo.js
++++ test/fixtures/node_modules/node_modules/bar.js
++++ test/fixtures/not-main-module.js
++++ test/fixtures/packages/main-index/package-main-module/index.js
++++ test/fixtures/packages/main/package-main-module.js
++++ test/fixtures/packages/missing-main/index.js
++++ test/fixtures/path.js
++++ test/fixtures/print-10-lines.js
++++ test/fixtures/print-chars-from-buffer.js
++++ test/fixtures/print-chars.js
++++ test/fixtures/recvfd.js
++++ test/fixtures/semicolon.js
++++ test/fixtures/should_exit.js
++++ test/fixtures/test-fs-readfile-error.js
++++ test/fixtures/test-init-index/index.js
++++ test/fixtures/test-init-native/fs.js
++++ test/fixtures/throws_error.js
++++ test/fixtures/throws_error1.js
++++ test/fixtures/throws_error2.js
++++ test/fixtures/throws_error3.js
++++ test/fixtures/throws_error4.js
++++ test/internet/test-dgram-broadcast-multi-process.js
++++ test/internet/test-dgram-multicast-multi-process.js
++++ test/internet/test-dns-regress-6244.js
++++ test/internet/test-dns.js
++++ test/internet/test-http-dns-fail.js
++++ test/internet/test-http-https-default-ports.js
++++ test/internet/test-net-connect-timeout.js
++++ test/internet/test-net-connect-unref.js
++++ test/internet/test-tls-reuse-host-from-socket.js
++++ test/message/2100bytes.js
++++ test/message/error_exit.js
++++ test/message/eval_messages.js
++++ test/message/hello_world.js
++++ test/message/max_tick_depth.js
++++ test/message/nexttick_throw.js
++++ test/message/stack_overflow.js
++++ test/message/stdin_messages.js
++++ test/message/throw_custom_error.js
++++ test/message/throw_in_line_with_tabs.js
++++ test/message/throw_non_error.js
++++ test/message/throw_null.js
++++ test/message/throw_undefined.js
++++ test/message/timeout_throw.js
++++ test/message/undefined_reference_in_new_context.js
++++ test/message/vm_display_runtime_error.js
++++ test/message/vm_display_syntax_error.js
++++ test/message/vm_dont_display_runtime_error.js
++++ test/message/vm_dont_display_syntax_error.js
++++ test/parallel/test-assert.js
++++ test/parallel/test-bad-unicode.js
++++ test/parallel/test-beforeexit-event-exit.js
++++ test/parallel/test-buffer-concat.js
++++ test/parallel/test-buffer-inspect.js
++++ test/parallel/test-buffer-slice.js
++++ test/parallel/test-c-ares.js
++++ test/parallel/test-child-process-cwd.js
++++ test/parallel/test-child-process-default-options.js
++++ test/parallel/test-child-process-detached.js
++++ test/parallel/test-child-process-disconnect.js
++++ test/parallel/test-child-process-double-pipe.js
++++ test/parallel/test-child-process-env.js
++++ test/parallel/test-child-process-exec-cwd.js
++++ test/parallel/test-child-process-exec-env.js
++++ test/parallel/test-child-process-exec-error.js
++++ test/parallel/test-child-process-exit-code.js
++++ test/parallel/test-child-process-fork-and-spawn.js
++++ test/parallel/test-child-process-fork-close.js
++++ test/parallel/test-child-process-fork-dgram.js
++++ test/parallel/test-child-process-fork-exec-argv.js
++++ test/parallel/test-child-process-fork-exec-path.js
++++ test/parallel/test-child-process-fork-getconnections.js
++++ test/parallel/test-child-process-fork-net-server.js
++++ test/parallel/test-child-process-fork-net-socket.js
++++ test/parallel/test-child-process-fork-net.js
++++ test/parallel/test-child-process-fork-ref.js
++++ test/parallel/test-child-process-fork-ref2.js
++++ test/parallel/test-child-process-fork.js
++++ test/parallel/test-child-process-fork3.js
++++ test/parallel/test-child-process-internal.js
++++ test/parallel/test-child-process-ipc.js
++++ test/parallel/test-child-process-kill.js
++++ test/parallel/test-child-process-recv-handle.js
++++ test/parallel/test-child-process-send-utf8.js
++++ test/parallel/test-child-process-set-blocking.js
++++ test/parallel/test-child-process-silent.js
++++ test/parallel/test-child-process-spawn-error.js
++++ test/parallel/test-child-process-spawn-typeerror.js
++++ test/parallel/test-child-process-spawnsync-env.js
++++ test/parallel/test-child-process-spawnsync-input.js
++++ test/parallel/test-child-process-spawnsync-timeout.js
++++ test/parallel/test-child-process-spawnsync.js
++++ test/parallel/test-child-process-stdin-ipc.js
++++ test/parallel/test-child-process-stdin.js
++++ test/parallel/test-child-process-stdio-big-write-end.js
++++ test/parallel/test-child-process-stdio-inherit.js
++++ test/parallel/test-child-process-stdio.js
++++ test/parallel/test-child-process-stdout-flush-exit.js
++++ test/parallel/test-child-process-stdout-flush.js
++++ test/parallel/test-cli-eval.js
++++ test/parallel/test-cluster-basic.js
++++ test/parallel/test-cluster-bind-privileged-port.js
++++ test/parallel/test-cluster-bind-twice.js
++++ test/parallel/test-cluster-dgram-1.js
++++ test/parallel/test-cluster-dgram-2.js
++++ test/parallel/test-cluster-disconnect-before-exit.js
++++ test/parallel/test-cluster-disconnect-idle-worker.js
++++ test/parallel/test-cluster-disconnect-unshared-tcp.js
++++ test/parallel/test-cluster-disconnect-unshared-udp.js
++++ test/parallel/test-cluster-disconnect-with-no-workers.js
++++ test/parallel/test-cluster-disconnect.js
++++ test/parallel/test-cluster-eaccess.js
++++ test/parallel/test-cluster-eaddrinuse.js
++++ test/parallel/test-cluster-fork-env.js
++++ test/parallel/test-cluster-http-pipe.js
++++ test/parallel/test-cluster-master-error.js
++++ test/parallel/test-cluster-master-kill.js
++++ test/parallel/test-cluster-message.js
++++ test/parallel/test-cluster-net-listen.js
++++ test/parallel/test-cluster-net-send.js
++++ test/parallel/test-cluster-rr-domain-listen.js
++++ test/parallel/test-cluster-send-deadlock.js
++++ test/parallel/test-cluster-send-handle-twice.js
++++ test/parallel/test-cluster-setup-master-argv.js
++++ test/parallel/test-cluster-setup-master-cumulative.js
++++ test/parallel/test-cluster-setup-master-emit.js
++++ test/parallel/test-cluster-setup-master-multiple.js
++++ test/parallel/test-cluster-setup-master.js
++++ test/parallel/test-cluster-shared-handle-bind-error.js
++++ test/parallel/test-cluster-shared-handle-bind-privileged-port.js
++++ test/parallel/test-cluster-uncaught-exception.js
++++ test/parallel/test-cluster-worker-constructor.js
++++ test/parallel/test-cluster-worker-death.js
++++ test/parallel/test-cluster-worker-destroy.js
++++ test/parallel/test-cluster-worker-disconnect.js
++++ test/parallel/test-cluster-worker-events.js
++++ test/parallel/test-cluster-worker-exit.js
++++ test/parallel/test-cluster-worker-forced-exit.js
++++ test/parallel/test-cluster-worker-init.js
++++ test/parallel/test-cluster-worker-kill.js
++++ test/parallel/test-cluster-worker-no-exit.js
++++ test/parallel/test-common.js
++++ test/parallel/test-console-instance.js
++++ test/parallel/test-console-not-call-toString.js
++++ test/parallel/test-console.js
++++ test/parallel/test-crypto-authenticated.js
++++ test/parallel/test-crypto-binary-default.js
++++ test/parallel/test-crypto-certificate.js
++++ test/parallel/test-crypto-dh-odd-key.js
++++ test/parallel/test-crypto-dh-padding.js
++++ test/parallel/test-crypto-domain.js
++++ test/parallel/test-crypto-domains.js
++++ test/parallel/test-crypto-ecb.js
++++ test/parallel/test-crypto-from-binary.js
++++ test/parallel/test-crypto-hash-stream-pipe.js
++++ test/parallel/test-crypto-padding-aes256.js
++++ test/parallel/test-crypto-padding.js
++++ test/parallel/test-crypto-random.js
++++ test/parallel/test-crypto-stream.js
++++ test/parallel/test-crypto-verify-failure.js
++++ test/parallel/test-crypto.js
++++ test/parallel/test-delayed-require.js
++++ test/parallel/test-dgram-address.js
++++ test/parallel/test-dgram-bind-default-address.js
++++ test/parallel/test-dgram-bind.js
++++ test/parallel/test-dgram-bytes-length.js
++++ test/parallel/test-dgram-close.js
++++ test/parallel/test-dgram-error-message-address.js
++++ test/parallel/test-dgram-exclusive-implicit-bind.js
++++ test/parallel/test-dgram-implicit-bind.js
++++ test/parallel/test-dgram-listen-after-bind.js
++++ test/parallel/test-dgram-msgsize.js
++++ test/parallel/test-dgram-multicast-setTTL.js
++++ test/parallel/test-dgram-oob-buffer.js
++++ test/parallel/test-dgram-ref.js
++++ test/parallel/test-dgram-send-bad-arguments.js
++++ test/parallel/test-dgram-send-callback-buffer-length.js
++++ test/parallel/test-dgram-send-empty-buffer.js
++++ test/parallel/test-dgram-send-invalid-msg-type.js
++++ test/parallel/test-dgram-udp4.js
++++ test/parallel/test-dgram-unref.js
++++ test/parallel/test-dns-resolvens-typeerror.js
++++ test/parallel/test-dns.js
++++ test/parallel/test-domain-crypto.js
++++ test/parallel/test-domain-enter-exit.js
++++ test/parallel/test-domain-from-timer.js
++++ test/parallel/test-domain-http-server.js
++++ test/parallel/test-domain-implicit-fs.js
++++ test/parallel/test-domain-multi.js
++++ test/parallel/test-domain-nested-throw.js
++++ test/parallel/test-domain-nested.js
++++ test/parallel/test-domain-safe-exit.js
++++ test/parallel/test-domain-stack.js
++++ test/parallel/test-domain-timers.js
++++ test/parallel/test-error-reporting.js
++++ test/parallel/test-event-emitter-add-listeners.js
++++ test/parallel/test-event-emitter-check-listener-leaks.js
++++ test/parallel/test-event-emitter-listeners-side-effects.js
++++ test/parallel/test-event-emitter-listeners.js
++++ test/parallel/test-event-emitter-max-listeners.js
++++ test/parallel/test-event-emitter-method-names.js
++++ test/parallel/test-event-emitter-modify-in-emit.js
++++ test/parallel/test-event-emitter-no-error-provided-to-error-event.js
++++ test/parallel/test-event-emitter-num-args.js
++++ test/parallel/test-event-emitter-once.js
++++ test/parallel/test-event-emitter-remove-all-listeners.js
++++ test/parallel/test-event-emitter-remove-listeners.js
++++ test/parallel/test-event-emitter-set-max-listeners-side-effects.js
++++ test/parallel/test-event-emitter-subclass.js
++++ test/parallel/test-exception-handler.js
++++ test/parallel/test-exception-handler2.js
++++ test/parallel/test-file-read-noexist.js
++++ test/parallel/test-file-write-stream.js
++++ test/parallel/test-file-write-stream2.js
++++ test/parallel/test-file-write-stream3.js
++++ test/parallel/test-fs-append-file-sync.js
++++ test/parallel/test-fs-append-file.js
++++ test/parallel/test-fs-chmod.js
++++ test/parallel/test-fs-empty-readStream.js
++++ test/parallel/test-fs-error-messages.js
++++ test/parallel/test-fs-exists.js
++++ test/parallel/test-fs-fsync.js
++++ test/parallel/test-fs-long-path.js
++++ test/parallel/test-fs-mkdir.js
++++ test/parallel/test-fs-null-bytes.js
++++ test/parallel/test-fs-open-flags.js
++++ test/parallel/test-fs-open.js
++++ test/parallel/test-fs-read-file-sync-hostname.js
++++ test/parallel/test-fs-read-file-sync.js
++++ test/parallel/test-fs-read-stream-err.js
++++ test/parallel/test-fs-read-stream-fd.js
++++ test/parallel/test-fs-read-stream-resume.js
++++ test/parallel/test-fs-read-stream.js
++++ test/parallel/test-fs-read.js
++++ test/parallel/test-fs-readfile-empty.js
++++ test/parallel/test-fs-readfile-error.js
++++ test/parallel/test-fs-readfile-pipe.js
++++ test/parallel/test-fs-readfile-unlink.js
++++ test/parallel/test-fs-readfile-zero-byte-liar.js
++++ test/parallel/test-fs-realpath.js
++++ test/parallel/test-fs-sir-writes-alot.js
++++ test/parallel/test-fs-stat.js
++++ test/parallel/test-fs-stream-double-close.js
++++ test/parallel/test-fs-symlink-dir-junction-relative.js
++++ test/parallel/test-fs-symlink-dir-junction.js
++++ test/parallel/test-fs-symlink.js
++++ test/parallel/test-fs-sync-fd-leak.js
++++ test/parallel/test-fs-truncate-clear-file-zero.js
++++ test/parallel/test-fs-truncate.js
++++ test/parallel/test-fs-utimes.js
++++ test/parallel/test-fs-watch-file-enoent-after-deletion.js
++++ test/parallel/test-fs-write-buffer.js
++++ test/parallel/test-fs-write-file-buffer.js
++++ test/parallel/test-fs-write-file-sync.js
++++ test/parallel/test-fs-write-file.js
++++ test/parallel/test-fs-write-stream-change-open.js
++++ test/parallel/test-fs-write-stream-end.js
++++ test/parallel/test-fs-write-stream-err.js
++++ test/parallel/test-fs-write-stream.js
++++ test/parallel/test-fs-write-sync.js
++++ test/parallel/test-fs-write.js
++++ test/parallel/test-global.js
++++ test/parallel/test-handle-wrap-close-abort.js
++++ test/parallel/test-http-1.0-keep-alive.js
++++ test/parallel/test-http-1.0.js
++++ test/parallel/test-http-abort-before-end.js
++++ test/parallel/test-http-abort-client.js
++++ test/parallel/test-http-abort-queued.js
++++ test/parallel/test-http-abort-stream-end.js
++++ test/parallel/test-http-after-connect.js
++++ test/parallel/test-http-agent-destroyed-socket.js
++++ test/parallel/test-http-agent-false.js
++++ test/parallel/test-http-agent-keepalive.js
++++ test/parallel/test-http-agent-no-protocol.js
++++ test/parallel/test-http-agent-null.js
++++ test/parallel/test-http-agent.js
++++ test/parallel/test-http-allow-req-after-204-res.js
++++ test/parallel/test-http-bind-twice.js
++++ test/parallel/test-http-blank-header.js
++++ test/parallel/test-http-buffer-sanity.js
++++ test/parallel/test-http-byteswritten.js
++++ test/parallel/test-http-chunked-304.js
++++ test/parallel/test-http-chunked.js
++++ test/parallel/test-http-client-abort.js
++++ test/parallel/test-http-client-abort2.js
++++ test/parallel/test-http-client-agent.js
++++ test/parallel/test-http-client-default-headers-exist.js
++++ test/parallel/test-http-client-encoding.js
++++ test/parallel/test-http-client-get-url.js
++++ test/parallel/test-http-client-parse-error.js
++++ test/parallel/test-http-client-pipe-end.js
++++ test/parallel/test-http-client-race-2.js
++++ test/parallel/test-http-client-race.js
++++ test/parallel/test-http-client-readable.js
++++ test/parallel/test-http-client-response-domain.js
++++ test/parallel/test-http-client-timeout-agent.js
++++ test/parallel/test-http-client-timeout-event.js
++++ test/parallel/test-http-client-timeout-with-data.js
++++ test/parallel/test-http-client-timeout.js
++++ test/parallel/test-http-client-unescaped-path.js
++++ test/parallel/test-http-client-upload-buf.js
++++ test/parallel/test-http-client-upload.js
++++ test/parallel/test-http-conn-reset.js
++++ test/parallel/test-http-connect.js
++++ test/parallel/test-http-contentLength0.js
++++ test/parallel/test-http-createConnection.js
++++ test/parallel/test-http-date-header.js
++++ test/parallel/test-http-default-encoding.js
++++ test/parallel/test-http-default-port.js
++++ test/parallel/test-http-destroyed-socket-write2.js
++++ test/parallel/test-http-dns-error.js
++++ test/parallel/test-http-end-throw-socket-handling.js
++++ test/parallel/test-http-eof-on-connect.js
++++ test/parallel/test-http-exceptions.js
++++ test/parallel/test-http-expect-continue.js
++++ test/parallel/test-http-extra-response.js
++++ test/parallel/test-http-flush.js
++++ test/parallel/test-http-full-response.js
++++ test/parallel/test-http-get-pipeline-problem.js
++++ test/parallel/test-http-head-request.js
++++ test/parallel/test-http-head-response-has-no-body-end.js
++++ test/parallel/test-http-head-response-has-no-body.js
++++ test/parallel/test-http-header-read.js
++++ test/parallel/test-http-hex-write.js
++++ test/parallel/test-http-host-headers.js
++++ test/parallel/test-http-incoming-pipelined-socket-destroy.js
++++ test/parallel/test-http-keep-alive-close-on-header.js
++++ test/parallel/test-http-keep-alive.js
++++ test/parallel/test-http-keepalive-client.js
++++ test/parallel/test-http-keepalive-request.js
++++ test/parallel/test-http-localaddress-bind-error.js
++++ test/parallel/test-http-localaddress.js
++++ test/parallel/test-http-malformed-request.js
++++ test/parallel/test-http-many-ended-pipelines.js
++++ test/parallel/test-http-max-headers-count.js
++++ test/parallel/test-http-methods.js
++++ test/parallel/test-http-multi-line-headers.js
++++ test/parallel/test-http-mutable-headers.js
++++ test/parallel/test-http-no-content-length.js
++++ test/parallel/test-http-outgoing-finish.js
++++ test/parallel/test-http-parser-free.js
++++ test/parallel/test-http-parser.js
++++ test/parallel/test-http-pause-resume-one-end.js
++++ test/parallel/test-http-pause.js
++++ test/parallel/test-http-pipe-fs.js
++++ test/parallel/test-http-proxy.js
++++ test/parallel/test-http-raw-headers.js
++++ test/parallel/test-http-remove-header-stays-removed.js
++++ test/parallel/test-http-request-end-twice.js
++++ test/parallel/test-http-request-end.js
++++ test/parallel/test-http-request-methods.js
++++ test/parallel/test-http-res-write-after-end.js
++++ test/parallel/test-http-res-write-end-dont-take-array.js
++++ test/parallel/test-http-response-close.js
++++ test/parallel/test-http-response-no-headers.js
++++ test/parallel/test-http-response-readable.js
++++ test/parallel/test-http-response-status-message.js
++++ test/parallel/test-http-server-multiheaders.js
++++ test/parallel/test-http-server-multiheaders2.js
++++ test/parallel/test-http-server-stale-close.js
++++ test/parallel/test-http-server.js
++++ test/parallel/test-http-set-cookies.js
++++ test/parallel/test-http-set-timeout-server.js
++++ test/parallel/test-http-set-timeout.js
++++ test/parallel/test-http-set-trailers.js
++++ test/parallel/test-http-should-keep-alive.js
++++ test/parallel/test-http-status-code.js
++++ test/parallel/test-http-status-message.js
++++ test/parallel/test-http-timeout-overflow.js
++++ test/parallel/test-http-timeout.js
++++ test/parallel/test-http-unix-socket.js
++++ test/parallel/test-http-upgrade-agent.js
++++ test/parallel/test-http-upgrade-client.js
++++ test/parallel/test-http-upgrade-client2.js
++++ test/parallel/test-http-upgrade-server.js
++++ test/parallel/test-http-upgrade-server2.js
++++ test/parallel/test-http-url.parse-auth-with-header-in-request.js
++++ test/parallel/test-http-url.parse-auth.js
++++ test/parallel/test-http-url.parse-basic.js
++++ test/parallel/test-http-url.parse-https.request.js
++++ test/parallel/test-http-url.parse-only-support-http-https-protocol.js
++++ test/parallel/test-http-url.parse-path.js
++++ test/parallel/test-http-url.parse-post.js
++++ test/parallel/test-http-url.parse-search.js
++++ test/parallel/test-http-wget.js
++++ test/parallel/test-http-write-callbacks.js
++++ test/parallel/test-http-write-empty-string.js
++++ test/parallel/test-http-write-head.js
++++ test/parallel/test-http-zero-length-write.js
++++ test/parallel/test-http.js
++++ test/parallel/test-https-agent.js
++++ test/parallel/test-https-byteswritten.js
++++ test/parallel/test-https-client-checkServerIdentity.js
++++ test/parallel/test-https-client-get-url.js
++++ test/parallel/test-https-client-reject.js
++++ test/parallel/test-https-client-renegotiation-limit.js
++++ test/parallel/test-https-client-resume.js
++++ test/parallel/test-https-connecting-to-http.js
++++ test/parallel/test-https-drain.js
++++ test/parallel/test-https-eof-for-eom.js
++++ test/parallel/test-https-foafssl.js
++++ test/parallel/test-https-localaddress-bind-error.js
++++ test/parallel/test-https-localaddress.js
++++ test/parallel/test-https-pfx.js
++++ test/parallel/test-https-set-timeout-server.js
++++ test/parallel/test-https-simple.js
++++ test/parallel/test-https-socket-options.js
++++ test/parallel/test-https-strict.js
++++ test/parallel/test-https-timeout-server-2.js
++++ test/parallel/test-https-timeout-server.js
++++ test/parallel/test-https-timeout.js
++++ test/parallel/test-https-truncate.js
++++ test/parallel/test-intl.js
++++ test/parallel/test-listen-fd-cluster.js
++++ test/parallel/test-listen-fd-detached-inherit.js
++++ test/parallel/test-listen-fd-detached.js
++++ test/parallel/test-listen-fd-ebadf.js
++++ test/parallel/test-listen-fd-server.js
++++ test/parallel/test-memory-usage.js
++++ test/parallel/test-microtask-queue-integration.js
++++ test/parallel/test-microtask-queue-run-immediate.js
++++ test/parallel/test-microtask-queue-run.js
++++ test/parallel/test-module-globalpaths-nodepath.js
++++ test/parallel/test-module-loading-error.js
++++ test/parallel/test-module-nodemodulepaths.js
++++ test/parallel/test-net-after-close.js
++++ test/parallel/test-net-binary.js
++++ test/parallel/test-net-bind-twice.js
++++ test/parallel/test-net-buffersize.js
++++ test/parallel/test-net-bytes-stats.js
++++ test/parallel/test-net-can-reset-timeout.js
++++ test/parallel/test-net-connect-buffer.js
++++ test/parallel/test-net-connect-immediate-finish.js
++++ test/parallel/test-net-connect-memleak.js
++++ test/parallel/test-net-connect-options-allowhalfopen.js
++++ test/parallel/test-net-connect-options-ipv6.js
++++ test/parallel/test-net-connect-options-port.js
++++ test/parallel/test-net-connect-paused-connection.js
++++ test/parallel/test-net-dns-error.js
++++ test/parallel/test-net-dns-lookup.js
++++ test/parallel/test-net-during-close.js
++++ test/parallel/test-net-eaddrinuse.js
++++ test/parallel/test-net-end-without-connect.js
++++ test/parallel/test-net-error-twice.js
++++ test/parallel/test-net-isip.js
++++ test/parallel/test-net-keepalive.js
++++ test/parallel/test-net-large-string.js
++++ test/parallel/test-net-listen-close-server.js
++++ test/parallel/test-net-listen-error.js
++++ test/parallel/test-net-listen-fd0.js
++++ test/parallel/test-net-local-address-port.js
++++ test/parallel/test-net-localerror.js
++++ test/parallel/test-net-pause-resume-connecting.js
++++ test/parallel/test-net-pingpong.js
++++ test/parallel/test-net-pipe-connect-errors.js
++++ test/parallel/test-net-reconnect.js
++++ test/parallel/test-net-remote-address-port.js
++++ test/parallel/test-net-server-close.js
++++ test/parallel/test-net-server-connections.js
++++ test/parallel/test-net-server-listen-remove-callback.js
++++ test/parallel/test-net-server-max-connections.js
++++ test/parallel/test-net-server-pause-on-connect.js
++++ test/parallel/test-net-server-try-ports.js
++++ test/parallel/test-net-server-unref.js
++++ test/parallel/test-net-settimeout.js
++++ test/parallel/test-net-socket-destroy-twice.js
++++ test/parallel/test-net-socket-timeout-unref.js
++++ test/parallel/test-net-socket-timeout.js
++++ test/parallel/test-net-stream.js
++++ test/parallel/test-net-write-after-close.js
++++ test/parallel/test-net-write-connect-write.js
++++ test/parallel/test-net-write-slow.js
++++ test/parallel/test-next-tick-doesnt-hang.js
++++ test/parallel/test-next-tick-domain.js
++++ test/parallel/test-next-tick-errors.js
++++ test/parallel/test-next-tick-intentional-starvation.js
++++ test/parallel/test-next-tick-ordering.js
++++ test/parallel/test-next-tick-ordering2.js
++++ test/parallel/test-next-tick.js
++++ test/parallel/test-os.js
++++ test/parallel/test-path-makelong.js
++++ test/parallel/test-path-parse-format.js
++++ test/parallel/test-path.js
++++ test/parallel/test-pipe-file-to-http.js
++++ test/parallel/test-pipe-return-val.js
++++ test/parallel/test-process-argv-0.js
++++ test/parallel/test-process-beforeexit.js
++++ test/parallel/test-process-config.js
++++ test/parallel/test-process-domain-segfault.js
++++ test/parallel/test-process-env.js
++++ test/parallel/test-process-exec-argv.js
++++ test/parallel/test-process-exit-code.js
++++ test/parallel/test-process-exit-from-before-exit.js
++++ test/parallel/test-process-exit-recursive.js
++++ test/parallel/test-process-exit.js
++++ test/parallel/test-process-getgroups.js
++++ test/parallel/test-process-hrtime.js
++++ test/parallel/test-process-kill-null.js
++++ test/parallel/test-process-kill-pid.js
++++ test/parallel/test-process-next-tick.js
++++ test/parallel/test-process-raw-debug.js
++++ test/parallel/test-process-uid-gid.js
++++ test/parallel/test-process-umask.js
++++ test/parallel/test-process-uptime.js
++++ test/parallel/test-process-wrap.js
++++ test/parallel/test-querystring.js
++++ test/parallel/test-readline-interface.js
++++ test/parallel/test-readline-set-raw-mode.js
++++ test/parallel/test-regression-object-prototype.js
++++ test/parallel/test-repl-autolibs.js
++++ test/parallel/test-repl-domain.js
++++ test/parallel/test-repl-end-emits-exit.js
++++ test/parallel/test-repl-harmony.js
++++ test/parallel/test-repl-options.js
++++ test/parallel/test-repl-require-cache.js
++++ test/parallel/test-repl-reset-event.js
++++ test/parallel/test-repl-save-load.js
++++ test/parallel/test-repl-setprompt.js
++++ test/parallel/test-repl-syntax-error-handling.js
++++ test/parallel/test-repl-tab-complete.js
++++ test/parallel/test-repl.js
++++ test/parallel/test-require-cache.js
++++ test/parallel/test-require-exceptions.js
++++ test/parallel/test-require-extensions-same-filename-as-dir-trailing-slash.js
++++ test/parallel/test-require-extensions-same-filename-as-dir.js
++++ test/parallel/test-require-json.js
++++ test/parallel/test-require-resolve.js
++++ test/parallel/test-signal-handler.js
++++ test/parallel/test-stdin-hang.js
++++ test/parallel/test-stdin-pause-resume-sync.js
++++ test/parallel/test-stdin-pause-resume.js
++++ test/parallel/test-stdin-resume-pause.js
++++ test/parallel/test-stdio-readable-writable.js
++++ test/parallel/test-stdout-close-unref.js
++++ test/parallel/test-stream-big-packet.js
++++ test/parallel/test-stream-big-push.js
++++ test/parallel/test-stream-duplex.js
++++ test/parallel/test-stream-end-paused.js
++++ test/parallel/test-stream-ispaused.js
++++ test/parallel/test-stream-pipe-after-end.js
++++ test/parallel/test-stream-pipe-cleanup.js
++++ test/parallel/test-stream-pipe-error-handling.js
++++ test/parallel/test-stream-pipe-event.js
++++ test/parallel/test-stream-push-order.js
++++ test/parallel/test-stream-push-strings.js
++++ test/parallel/test-stream-readable-event.js
++++ test/parallel/test-stream-readable-flow-recursion.js
++++ test/parallel/test-stream-transform-objectmode-falsey-value.js
++++ test/parallel/test-stream-transform-split-objectmode.js
++++ test/parallel/test-stream-unshift-empty-chunk.js
++++ test/parallel/test-stream-unshift-read-race.js
++++ test/parallel/test-stream-writable-change-default-encoding.js
++++ test/parallel/test-stream-writable-decoded-encoding.js
++++ test/parallel/test-stream-writev.js
++++ test/parallel/test-stream2-base64-single-char-read-end.js
++++ test/parallel/test-stream2-compatibility.js
++++ test/parallel/test-stream2-finish-pipe.js
++++ test/parallel/test-stream2-large-read-stall.js
++++ test/parallel/test-stream2-objects.js
++++ test/parallel/test-stream2-pipe-error-handling.js
++++ test/parallel/test-stream2-pipe-error-once-listener.js
++++ test/parallel/test-stream2-push.js
++++ test/parallel/test-stream2-read-sync-stack.js
++++ test/parallel/test-stream2-readable-empty-buffer-no-eof.js
++++ test/parallel/test-stream2-readable-from-list.js
++++ test/parallel/test-stream2-readable-legacy-drain.js
++++ test/parallel/test-stream2-readable-non-empty-end.js
++++ test/parallel/test-stream2-readable-wrap-empty.js
++++ test/parallel/test-stream2-readable-wrap.js
++++ test/parallel/test-stream2-set-encoding.js
++++ test/parallel/test-stream2-transform.js
++++ test/parallel/test-stream2-unpipe-drain.js
++++ test/parallel/test-stream2-unpipe-leak.js
++++ test/parallel/test-stream2-writable.js
++++ test/parallel/test-stream3-pause-then-read.js
++++ test/parallel/test-string-decoder.js
++++ test/parallel/test-stringbytes-external.js
++++ test/parallel/test-sys.js
++++ test/parallel/test-tcp-wrap.js
++++ test/parallel/test-timers-immediate-queue.js
++++ test/parallel/test-timers-immediate.js
++++ test/parallel/test-timers-linked-list.js
++++ test/parallel/test-timers-non-integer-delay.js
++++ test/parallel/test-timers-ordering.js
++++ test/parallel/test-timers-this.js
++++ test/parallel/test-timers-uncaught-exception.js
++++ test/parallel/test-timers-unref.js
++++ test/parallel/test-timers-zero-timeout.js
++++ test/parallel/test-timers.js
++++ test/parallel/test-tls-0-dns-altname.js
++++ test/parallel/test-tls-alert.js
++++ test/parallel/test-tls-cert-regression.js
++++ test/parallel/test-tls-check-server-identity.js
++++ test/parallel/test-tls-client-abort.js
++++ test/parallel/test-tls-client-abort2.js
++++ test/parallel/test-tls-client-default-ciphers.js
++++ test/parallel/test-tls-client-destroy-soon.js
++++ test/parallel/test-tls-client-reject.js
++++ test/parallel/test-tls-client-renegotiation-limit.js
++++ test/parallel/test-tls-client-resume.js
++++ test/parallel/test-tls-client-verify.js
++++ test/parallel/test-tls-close-notify.js
++++ test/parallel/test-tls-connect-given-socket.js
++++ test/parallel/test-tls-connect-memleak.js
++++ test/parallel/test-tls-connect-pipe.js
++++ test/parallel/test-tls-connect-simple.js
++++ test/parallel/test-tls-delayed-attach.js
++++ test/parallel/test-tls-dhe.js
++++ test/parallel/test-tls-ecdh.js
++++ test/parallel/test-tls-econnreset.js
++++ test/parallel/test-tls-fast-writing.js
++++ test/parallel/test-tls-friendly-error-message.js
++++ test/parallel/test-tls-getcipher.js
++++ test/parallel/test-tls-handshake-nohang.js
++++ test/parallel/test-tls-hello-parser-failure.js
++++ test/parallel/test-tls-inception.js
++++ test/parallel/test-tls-interleave.js
++++ test/parallel/test-tls-invoke-queued.js
++++ test/parallel/test-tls-junk-closes-server.js
++++ test/parallel/test-tls-key-mismatch.js
++++ test/parallel/test-tls-max-send-fragment.js
++++ test/parallel/test-tls-multi-key.js
++++ test/parallel/test-tls-no-cert-required.js
++++ test/parallel/test-tls-no-rsa-key.js
++++ test/parallel/test-tls-ocsp-callback.js
++++ test/parallel/test-tls-over-http-tunnel.js
++++ test/parallel/test-tls-passphrase.js
++++ test/parallel/test-tls-pause.js
++++ test/parallel/test-tls-peer-certificate-encoding.js
++++ test/parallel/test-tls-peer-certificate-multi-keys.js
++++ test/parallel/test-tls-peer-certificate.js
++++ test/parallel/test-tls-request-timeout.js
++++ test/parallel/test-tls-securepair-server.js
++++ test/parallel/test-tls-server-verify.js
++++ test/parallel/test-tls-session-cache.js
++++ test/parallel/test-tls-set-encoding.js
++++ test/parallel/test-tls-sni-option.js
++++ test/parallel/test-tls-sni-server-client.js
++++ test/parallel/test-tls-ticket-cluster.js
++++ test/parallel/test-tls-ticket.js
++++ test/parallel/test-tls-timeout-server-2.js
++++ test/parallel/test-tls-timeout-server.js
++++ test/parallel/test-tls-zero-clear-in.js
++++ test/parallel/test-tty-stdin-pipe.js
++++ test/parallel/test-utf8-scripts.js
++++ test/parallel/test-util-format.js
++++ test/parallel/test-util-inspect.js
++++ test/parallel/test-util-log.js
++++ test/parallel/test-util.js
++++ test/parallel/test-v8-global-setter.js
++++ test/parallel/test-vm-access-process-env.js
++++ test/parallel/test-vm-basic.js
++++ test/parallel/test-vm-context-async-script.js
++++ test/parallel/test-vm-context-property-forwarding.js
++++ test/parallel/test-vm-context.js
++++ test/parallel/test-vm-create-and-run-in-context.js
++++ test/parallel/test-vm-create-context-accessors.js
++++ test/parallel/test-vm-create-context-arg.js
++++ test/parallel/test-vm-create-context-circular-reference.js
++++ test/parallel/test-vm-cross-context.js
++++ test/parallel/test-vm-function-declaration.js
++++ test/parallel/test-vm-global-define-property.js
++++ test/parallel/test-vm-global-identity.js
++++ test/parallel/test-vm-harmony-symbols.js
++++ test/parallel/test-vm-is-context.js
++++ test/parallel/test-vm-new-script-new-context.js
++++ test/parallel/test-vm-new-script-this-context.js
++++ test/parallel/test-vm-run-in-new-context.js
++++ test/parallel/test-vm-static-this.js
++++ test/parallel/test-vm-timeout.js
++++ test/parallel/test-zlib-close-after-write.js
++++ test/parallel/test-zlib-convenience-methods.js
++++ test/parallel/test-zlib-dictionary-fail.js
++++ test/parallel/test-zlib-dictionary.js
++++ test/parallel/test-zlib-from-gzip.js
++++ test/parallel/test-zlib-invalid-input.js
++++ test/parallel/test-zlib-random-byte-pipes.js
++++ test/parallel/test-zlib-write-after-close.js
++++ test/parallel/test-zlib-write-after-flush.js
++++ test/parallel/test-zlib-zero-byte.js
++++ test/pummel/test-abort-fatal-error.js
++++ test/pummel/test-child-process-spawn-loop.js
++++ test/pummel/test-crypto-dh-hash.js
++++ test/pummel/test-crypto-dh-keys.js
++++ test/pummel/test-dh-regr.js
++++ test/pummel/test-fs-largefile.js
++++ test/pummel/test-fs-watch-file-slow.js
++++ test/pummel/test-fs-watch-file.js
++++ test/pummel/test-fs-watch-non-recursive.js
++++ test/pummel/test-http-many-keep-alive-connections.js
++++ test/pummel/test-http-upload-timeout.js
++++ test/pummel/test-https-large-response.js
++++ test/pummel/test-https-no-reader.js
++++ test/pummel/test-keep-alive.js
++++ test/pummel/test-net-connect-econnrefused.js
++++ test/pummel/test-net-many-clients.js
++++ test/pummel/test-net-pause.js
++++ test/pummel/test-net-pingpong-delay.js
++++ test/pummel/test-net-pingpong.js
++++ test/pummel/test-net-throttle.js
++++ test/pummel/test-net-timeout.js
++++ test/pummel/test-net-timeout2.js
++++ test/pummel/test-net-write-callbacks.js
++++ test/pummel/test-next-tick-infinite-calls.js
++++ test/pummel/test-process-hrtime.js
++++ test/pummel/test-regress-GH-814.js
++++ test/pummel/test-regress-GH-814_2.js
++++ test/pummel/test-regress-GH-892.js
++++ test/pummel/test-stream-pipe-multi.js
++++ test/pummel/test-timers.js
++++ test/pummel/test-tls-server-large-request.js
++++ test/pummel/test-tls-throttle.js
++++ test/pummel/test-vm-memleak.js
++++ test/pummel/test-watch-file.js
++++ test/sequential/test-child-process-emfile.js
++++ test/sequential/test-child-process-execsync.js
++++ test/sequential/test-child-process-exit.js
++++ test/sequential/test-deprecation-flags.js
++++ test/sequential/test-dgram-bind-shared-ports.js
++++ test/sequential/test-fs-stat-sync-overflow.js
++++ test/sequential/test-fs-watch.js
++++ test/sequential/test-http-econnrefused.js
++++ test/sequential/test-http-keepalive-maxsockets.js
++++ test/sequential/test-http-max-sockets.js
++++ test/sequential/test-init.js
++++ test/sequential/test-module-loading.js
++++ test/sequential/test-net-GH-5504.js
++++ test/sequential/test-net-connect-handle-econnrefused.js
++++ test/sequential/test-net-listen-shared-ports.js
++++ test/sequential/test-net-reconnect-error.js
++++ test/sequential/test-net-response-size.js
++++ test/sequential/test-net-server-address.js
++++ test/sequential/test-next-tick-error-spin.js
++++ test/sequential/test-pipe.js
++++ test/sequential/test-require-cache-without-stat.js
++++ test/sequential/test-stream2-stderr-sync.js
++++ test/sequential/test-tls-connect.js
++++ test/sequential/test-tls-securepair-client.js
++++ test/sequential/test-tls-session-timeout.js
++++ test/sequential/test-util-debug.js
++++ test/sequential/test-vm-timeout-rethrow.js
++++ tools/doc/LICENSE
++++ tools/doc/generate.js
++++ tools/doc/html.js
++++ tools/doc/json.js
++++Copyright: Joyent, Inc. and other Node contributors.
++++License: Expat
++++ FIXME
++++
++++Files: deps/v8/BUILD.gn
++++ deps/v8/base/trace_event/common/trace_event_common.h
++++ deps/v8/include/js_protocol.pdl
++++ deps/v8/testing/gmock/BUILD.gn
++++ deps/v8/testing/gmock/include/gmock/gmock-actions.h
++++ deps/v8/testing/gmock/include/gmock/gmock-generated-function-mockers.h
++++ deps/v8/testing/gmock/include/gmock/gmock-matchers.h
++++ deps/v8/testing/gmock/include/gmock/gmock.h
++++ deps/v8/testing/gtest/BUILD.gn
++++ deps/v8/testing/gtest/empty.cc
++++ deps/v8/testing/gtest/include/gtest/gtest-death-test.h
++++ deps/v8/testing/gtest/include/gtest/gtest-message.h
++++ deps/v8/testing/gtest/include/gtest/gtest-param-test.h
++++ deps/v8/testing/gtest/include/gtest/gtest-spi.h
++++ deps/v8/testing/gtest/include/gtest/gtest.h
++++ deps/v8/testing/gtest/include/gtest/gtest_prod.h
++++ deps/v8/third_party/binutils/download.py
++++ deps/v8/third_party/googletest/BUILD.gn
++++ deps/v8/third_party/googletest/custom/gtest/internal/custom/gtest-port.h
++++ deps/v8/third_party/googletest/gmock_custom/gmock/internal/custom/gmock-port.h
++++ deps/v8/third_party/inspector_protocol/bindings/bindings.cc
++++ deps/v8/third_party/inspector_protocol/bindings/bindings.h
++++ deps/v8/third_party/inspector_protocol/bindings/bindings_test.cc
++++ deps/v8/third_party/inspector_protocol/code_generator.py
++++ deps/v8/third_party/inspector_protocol/concatenate_protocols.py
++++ deps/v8/third_party/inspector_protocol/convert_protocol_to_json.py
++++ deps/v8/third_party/inspector_protocol/encoding/encoding.cc
++++ deps/v8/third_party/inspector_protocol/encoding/encoding.h
++++ deps/v8/third_party/inspector_protocol/encoding/encoding_test.cc
++++ deps/v8/third_party/inspector_protocol/inspector_protocol.gni
++++ deps/v8/third_party/inspector_protocol/lib/DispatcherBase_cpp.template
++++ deps/v8/third_party/inspector_protocol/lib/DispatcherBase_h.template
++++ deps/v8/third_party/inspector_protocol/lib/ErrorSupport_cpp.template
++++ deps/v8/third_party/inspector_protocol/lib/ErrorSupport_h.template
++++ deps/v8/third_party/inspector_protocol/lib/Forward_h.template
++++ deps/v8/third_party/inspector_protocol/lib/FrontendChannel_h.template
++++ deps/v8/third_party/inspector_protocol/lib/Object_cpp.template
++++ deps/v8/third_party/inspector_protocol/lib/Object_h.template
++++ deps/v8/third_party/inspector_protocol/lib/Parser_cpp.template
++++ deps/v8/third_party/inspector_protocol/lib/Parser_h.template
++++ deps/v8/third_party/inspector_protocol/lib/Protocol_cpp.template
++++ deps/v8/third_party/inspector_protocol/lib/ValueConversions_h.template
++++ deps/v8/third_party/inspector_protocol/lib/Values_cpp.template
++++ deps/v8/third_party/inspector_protocol/lib/Values_h.template
++++ deps/v8/third_party/inspector_protocol/lib/base_string_adapter_cc.template
++++ deps/v8/third_party/inspector_protocol/lib/base_string_adapter_h.template
++++ deps/v8/third_party/inspector_protocol/pdl.py
++++ deps/v8/third_party/inspector_protocol/roll.py
++++ deps/v8/third_party/inspector_protocol/templates/Exported_h.template
++++ deps/v8/third_party/inspector_protocol/templates/Imported_h.template
++++ deps/v8/third_party/inspector_protocol/templates/TypeBuilder_cpp.template
++++ deps/v8/third_party/inspector_protocol/templates/TypeBuilder_h.template
++++ deps/v8/tools/mb/mb
++++ deps/zlib/zlib.gyp
++++ src/tracing/trace_event_common.h
++++ tools/gyp/gyp
++++ tools/gyp/tools/emacs/testdata/media.gyp
++++ tools/gyp/tools/emacs/testdata/media.gyp.fontified
++++ tools/inspector_protocol/code_generator.py
++++ tools/inspector_protocol/concatenate_protocols.py
++++ tools/inspector_protocol/convert_protocol_to_json.py
++++ tools/inspector_protocol/encoding/encoding.cc
++++ tools/inspector_protocol/encoding/encoding.h
++++ tools/inspector_protocol/encoding/encoding_test.cc
++++ tools/inspector_protocol/inspector_protocol.gni
++++ tools/inspector_protocol/inspector_protocol.gypi
++++ tools/inspector_protocol/lib/Allocator_h.template
++++ tools/inspector_protocol/lib/Array_h.template
++++ tools/inspector_protocol/lib/DispatcherBase_cpp.template
++++ tools/inspector_protocol/lib/DispatcherBase_h.template
++++ tools/inspector_protocol/lib/ErrorSupport_cpp.template
++++ tools/inspector_protocol/lib/ErrorSupport_h.template
++++ tools/inspector_protocol/lib/Forward_h.template
++++ tools/inspector_protocol/lib/FrontendChannel_h.template
++++ tools/inspector_protocol/lib/Maybe_h.template
++++ tools/inspector_protocol/lib/Object_cpp.template
++++ tools/inspector_protocol/lib/Object_h.template
++++ tools/inspector_protocol/lib/Parser_cpp.template
++++ tools/inspector_protocol/lib/Parser_h.template
++++ tools/inspector_protocol/lib/Protocol_cpp.template
++++ tools/inspector_protocol/lib/ValueConversions_h.template
++++ tools/inspector_protocol/lib/Values_cpp.template
++++ tools/inspector_protocol/lib/Values_h.template
++++ tools/inspector_protocol/lib/base_string_adapter_cc.template
++++ tools/inspector_protocol/lib/base_string_adapter_h.template
++++ tools/inspector_protocol/lib/encoding_cpp.template
++++ tools/inspector_protocol/lib/encoding_h.template
++++ tools/inspector_protocol/pdl.py
++++ tools/inspector_protocol/roll.py
++++ tools/inspector_protocol/templates/Exported_h.template
++++ tools/inspector_protocol/templates/Imported_h.template
++++ tools/inspector_protocol/templates/TypeBuilder_cpp.template
++++ tools/inspector_protocol/templates/TypeBuilder_h.template
++++Copyright: 2009, The Chromium Authors.
++++  2012, The Chromium Authors.
++++  2013, The Chromium Authors.
++++  2014, The Chromium Authors.
++++  2015, The Chromium Authors.
++++  2016, The Chromium Authors.
++++  2017, The Chromium Authors.
++++  2018, The Chromium Authors.
++++  2019, The Chromium Authors.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/LICENSE.v8
++++ deps/v8/WATCHLISTS
++++ deps/v8/benchmarks/base.js
++++ deps/v8/benchmarks/regexp.js
++++ deps/v8/benchmarks/richards.js
++++ deps/v8/benchmarks/run.js
++++ deps/v8/benchmarks/spinning-balls/splay-tree.js
++++ deps/v8/benchmarks/spinning-balls/v.js
++++ deps/v8/benchmarks/splay.js
++++ deps/v8/gni/snapshot_toolchain.gni
++++ deps/v8/src/ast/ast-value-factory.cc
++++ deps/v8/src/ast/ast-value-factory.h
++++ deps/v8/src/codegen/arm64/assembler-arm64.cc
++++ deps/v8/src/diagnostics/perf-jit.cc
++++ deps/v8/src/diagnostics/perf-jit.h
++++ deps/v8/third_party/binutils/detect_v8_host_arch.py
++++ deps/v8/tools/android-ll-prof.sh
++++ deps/v8/tools/android-run.py
++++ deps/v8/tools/android-sync.sh
++++ deps/v8/tools/bash-completion.sh
++++ deps/v8/tools/check-static-initializers.sh
++++ deps/v8/tools/codemap.js
++++ deps/v8/tools/concatenate-files.py
++++ deps/v8/tools/consarray.js
++++ deps/v8/tools/cross_build_gcc.sh
++++ deps/v8/tools/csvparser.js
++++ deps/v8/tools/disasm.py
++++ deps/v8/tools/draw_instruction_graph.sh
++++ deps/v8/tools/fuzz-harness.sh
++++ deps/v8/tools/gc-nvp-trace-processor.py
++++ deps/v8/tools/gcmole/Makefile
++++ deps/v8/tools/gcmole/bootstrap.sh
++++ deps/v8/tools/gcmole/gccause.lua
++++ deps/v8/tools/gcmole/gcmole.cc
++++ deps/v8/tools/gcmole/gcmole.lua
++++ deps/v8/tools/gdb-v8-support.py
++++ deps/v8/tools/gen-postmortem-metadata.py
++++ deps/v8/tools/generate-ten-powers.scm
++++ deps/v8/tools/generate_shim_headers/generate_shim_headers.py
++++ deps/v8/tools/grokdump.py
++++ deps/v8/tools/ll_prof.py
++++ deps/v8/tools/logreader.js
++++ deps/v8/tools/objdump-v8
++++ deps/v8/tools/profile.js
++++ deps/v8/tools/profile_view.js
++++ deps/v8/tools/release/auto_push.py
++++ deps/v8/tools/release/common_includes.py
++++ deps/v8/tools/release/git_recipes.py
++++ deps/v8/tools/release/merge_to_branch.py
++++ deps/v8/tools/release/push_to_candidates.py
++++ deps/v8/tools/release/roll_merge.py
++++ deps/v8/tools/release/script_test.py
++++ deps/v8/tools/release/test_scripts.py
++++ deps/v8/tools/run-llprof.sh
++++ deps/v8/tools/shell-utils.h
++++ deps/v8/tools/sodium/sodium.js
++++ deps/v8/tools/splaytree.js
++++ deps/v8/tools/stats-viewer.py
++++ deps/v8/tools/testrunner/__init__.py
++++ deps/v8/tools/testrunner/local/__init__.py
++++ deps/v8/tools/testrunner/local/junit_output.py
++++ deps/v8/tools/testrunner/local/statusfile.py
++++ deps/v8/tools/testrunner/local/testsuite.py
++++ deps/v8/tools/testrunner/local/utils.py
++++ deps/v8/tools/testrunner/local/verbose.py
++++ deps/v8/tools/testrunner/objects/__init__.py
++++ deps/v8/tools/testrunner/objects/output.py
++++ deps/v8/tools/testrunner/objects/testcase.py
++++ deps/v8/tools/tickprocessor-driver.js
++++ deps/v8/tools/tickprocessor.js
++++ lib/internal/v8_prof_polyfill.js
++++ test/message/testcfg.py
++++ test/pseudo-tty/testcfg.py
++++ test/testpy/__init__.py
++++ tools/js2c.py
++++ tools/run-valgrind.py
++++ tools/test.py
++++ tools/utils.py
++++ tools/v8_gypfiles/features.gypi
++++ tools/v8_gypfiles/toolchain.gypi
++++Copyright: 2006-2008, the V8 project authors.
++++  2006-2011, the V8 project authors.
++++  2008, the V8 project authors.
++++  2009, the V8 project authors.
++++  2010, the V8 project authors.
++++  2011, the V8 project authors.
++++  2012, the V8 project authors.
++++  2013, the V8 project authors.
++++  2014, the V8 project authors.
++++  2015, the V8 project authors.
++++  2016, the V8 project authors.
++++License: BSD-3-clause
++++ FIXME
++++
++++Files: deps/brotli/c/common/constants.h
++++ deps/brotli/c/common/context.h
++++ deps/brotli/c/common/dictionary.c
++++ deps/brotli/c/common/dictionary.h
++++ deps/brotli/c/common/platform.h
++++ deps/brotli/c/common/transform.c
++++ deps/brotli/c/common/version.h
++++ deps/brotli/c/dec/bit_reader.c
++++ deps/brotli/c/dec/bit_reader.h
++++ deps/brotli/c/dec/decode.c
++++ deps/brotli/c/dec/huffman.c
++++ deps/brotli/c/dec/huffman.h
++++ deps/brotli/c/dec/prefix.h
++++ deps/brotli/c/dec/state.c
++++ deps/brotli/c/dec/state.h
++++ deps/brotli/c/enc/backward_references.c
++++ deps/brotli/c/enc/backward_references.h
++++ deps/brotli/c/enc/backward_references_hq.c
++++ deps/brotli/c/enc/backward_references_hq.h
++++ deps/brotli/c/enc/backward_references_inc.h
++++ deps/brotli/c/enc/bit_cost.c
++++ deps/brotli/c/enc/bit_cost.h
++++ deps/brotli/c/enc/bit_cost_inc.h
++++ deps/brotli/c/enc/block_encoder_inc.h
++++ deps/brotli/c/enc/block_splitter.c
++++ deps/brotli/c/enc/block_splitter.h
++++ deps/brotli/c/enc/block_splitter_inc.h
++++ deps/brotli/c/enc/brotli_bit_stream.c
++++ deps/brotli/c/enc/brotli_bit_stream.h
++++ deps/brotli/c/enc/cluster.c
++++ deps/brotli/c/enc/cluster.h
++++ deps/brotli/c/enc/cluster_inc.h
++++ deps/brotli/c/enc/command.h
++++ deps/brotli/c/enc/compress_fragment.c
++++ deps/brotli/c/enc/compress_fragment.h
++++ deps/brotli/c/enc/compress_fragment_two_pass.c
++++ deps/brotli/c/enc/compress_fragment_two_pass.h
++++ deps/brotli/c/enc/dictionary_hash.c
++++ deps/brotli/c/enc/dictionary_hash.h
++++ deps/brotli/c/enc/encode.c
++++ deps/brotli/c/enc/encoder_dict.c
++++ deps/brotli/c/enc/encoder_dict.h
++++ deps/brotli/c/enc/entropy_encode.c
++++ deps/brotli/c/enc/entropy_encode.h
++++ deps/brotli/c/enc/entropy_encode_static.h
++++ deps/brotli/c/enc/fast_log.h
++++ deps/brotli/c/enc/find_match_length.h
++++ deps/brotli/c/enc/hash.h
++++ deps/brotli/c/enc/hash_composite_inc.h
++++ deps/brotli/c/enc/hash_forgetful_chain_inc.h
++++ deps/brotli/c/enc/hash_longest_match64_inc.h
++++ deps/brotli/c/enc/hash_longest_match_inc.h
++++ deps/brotli/c/enc/hash_longest_match_quickly_inc.h
++++ deps/brotli/c/enc/hash_rolling_inc.h
++++ deps/brotli/c/enc/hash_to_binary_tree_inc.h
++++ deps/brotli/c/enc/histogram.c
++++ deps/brotli/c/enc/histogram.h
++++ deps/brotli/c/enc/histogram_inc.h
++++ deps/brotli/c/enc/literal_cost.c
++++ deps/brotli/c/enc/literal_cost.h
++++ deps/brotli/c/enc/memory.c
++++ deps/brotli/c/enc/memory.h
++++ deps/brotli/c/enc/metablock.c
++++ deps/brotli/c/enc/metablock.h
++++ deps/brotli/c/enc/metablock_inc.h
++++ deps/brotli/c/enc/params.h
++++ deps/brotli/c/enc/prefix.h
++++ deps/brotli/c/enc/quality.h
++++ deps/brotli/c/enc/ringbuffer.h
++++ deps/brotli/c/enc/static_dict.c
++++ deps/brotli/c/enc/static_dict.h
++++ deps/brotli/c/enc/static_dict_lut.h
++++ deps/brotli/c/enc/utf8_util.c
++++ deps/brotli/c/enc/utf8_util.h
++++ deps/brotli/c/enc/write_bits.h
++++ deps/brotli/c/include/brotli/decode.h
++++ deps/brotli/c/include/brotli/encode.h
++++ deps/brotli/c/include/brotli/port.h
++++ deps/brotli/c/include/brotli/types.h
++++Copyright: 2010, Google Inc.
++++  2013, Google Inc.
++++  2014, Google Inc.
++++  2015, Google Inc.
++++  2016, Google Inc.
++++  2017, Google Inc.
++++  2018, Google Inc.
++++License: Expat
++++ FIXME
++++
++++Files: tools/gyp/buildbot/buildbot_run.py
++++ tools/gyp/data/win/large-pdb-shim.cc
++++ tools/gyp/gyp.bat
++++ tools/gyp/gyp_main.py
++++ tools/gyp/gyptest.py
++++ tools/gyp/pylib/gyp/MSVSNew.py
++++ tools/gyp/pylib/gyp/MSVSProject.py
++++ tools/gyp/pylib/gyp/MSVSSettings.py
++++ tools/gyp/pylib/gyp/MSVSSettings_test.py
++++ tools/gyp/pylib/gyp/MSVSToolFile.py
++++ tools/gyp/pylib/gyp/MSVSUserFile.py
++++ tools/gyp/pylib/gyp/MSVSUtil.py
++++ tools/gyp/pylib/gyp/MSVSVersion.py
++++ tools/gyp/pylib/gyp/__init__.py
++++ tools/gyp/pylib/gyp/common.py
++++ tools/gyp/pylib/gyp/common_test.py
++++ tools/gyp/pylib/gyp/easy_xml.py
++++ tools/gyp/pylib/gyp/easy_xml_test.py
++++ tools/gyp/pylib/gyp/flock_tool.py
++++ tools/gyp/pylib/gyp/generator/analyzer.py
++++ tools/gyp/pylib/gyp/generator/cmake.py
++++ tools/gyp/pylib/gyp/generator/dump_dependency_json.py
++++ tools/gyp/pylib/gyp/generator/eclipse.py
++++ tools/gyp/pylib/gyp/generator/gypd.py
++++ tools/gyp/pylib/gyp/generator/gypsh.py
++++ tools/gyp/pylib/gyp/generator/make.py
++++ tools/gyp/pylib/gyp/generator/msvs.py
++++ tools/gyp/pylib/gyp/generator/msvs_test.py
++++ tools/gyp/pylib/gyp/generator/ninja.py
++++ tools/gyp/pylib/gyp/generator/ninja_test.py
++++ tools/gyp/pylib/gyp/generator/xcode.py
++++ tools/gyp/pylib/gyp/generator/xcode_test.py
++++ tools/gyp/pylib/gyp/input.py
++++ tools/gyp/pylib/gyp/input_test.py
++++ tools/gyp/pylib/gyp/mac_tool.py
++++ tools/gyp/pylib/gyp/msvs_emulation.py
++++ tools/gyp/pylib/gyp/simple_copy.py
++++ tools/gyp/pylib/gyp/xcode_emulation.py
++++ tools/gyp/pylib/gyp/xcode_ninja.py
++++ tools/gyp/pylib/gyp/xcodeproj_file.py
++++ tools/gyp/pylib/gyp/xml_fix.py
++++ tools/gyp/samples/samples
++++ tools/gyp/samples/samples.bat
++++ tools/gyp/setup.py
++++ tools/gyp/tools/Xcode/Specifications/gyp.xclangspec
++++ tools/gyp/tools/emacs/gyp-tests.el
++++ tools/gyp/tools/emacs/gyp.el
++++ tools/gyp/tools/emacs/run-unit-tests.sh
++++ tools/gyp/tools/graphviz.py
++++ tools/gyp/tools/pretty_gyp.py
++++ tools/gyp/tools/pretty_sln.py
++++ tools/gyp/tools/pretty_vcproj.py
++++ tools/v8_gypfiles/extras-libraries.cc
++++Copyright: 2009, Google Inc.
++++  2011, Google Inc.
++++  2012, Google Inc.
++++  2013, Google Inc.
++++  2014, Google Inc.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/nghttp2/lib/Makefile.am
++++ deps/nghttp2/lib/includes/Makefile.am
++++ deps/nghttp2/lib/includes/nghttp2/nghttp2.h
++++ deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h
++++ deps/nghttp2/lib/libnghttp2.pc.in
++++ deps/nghttp2/lib/nghttp2_buf.c
++++ deps/nghttp2/lib/nghttp2_buf.h
++++ deps/nghttp2/lib/nghttp2_callbacks.c
++++ deps/nghttp2/lib/nghttp2_callbacks.h
++++ deps/nghttp2/lib/nghttp2_debug.c
++++ deps/nghttp2/lib/nghttp2_debug.h
++++ deps/nghttp2/lib/nghttp2_frame.c
++++ deps/nghttp2/lib/nghttp2_frame.h
++++ deps/nghttp2/lib/nghttp2_hd.c
++++ deps/nghttp2/lib/nghttp2_hd.h
++++ deps/nghttp2/lib/nghttp2_hd_huffman.c
++++ deps/nghttp2/lib/nghttp2_hd_huffman.h
++++ deps/nghttp2/lib/nghttp2_hd_huffman_data.c
++++ deps/nghttp2/lib/nghttp2_helper.c
++++ deps/nghttp2/lib/nghttp2_helper.h
++++ deps/nghttp2/lib/nghttp2_http.c
++++ deps/nghttp2/lib/nghttp2_http.h
++++ deps/nghttp2/lib/nghttp2_int.h
++++ deps/nghttp2/lib/nghttp2_map.c
++++ deps/nghttp2/lib/nghttp2_map.h
++++ deps/nghttp2/lib/nghttp2_mem.c
++++ deps/nghttp2/lib/nghttp2_mem.h
++++ deps/nghttp2/lib/nghttp2_net.h
++++ deps/nghttp2/lib/nghttp2_npn.c
++++ deps/nghttp2/lib/nghttp2_npn.h
++++ deps/nghttp2/lib/nghttp2_option.c
++++ deps/nghttp2/lib/nghttp2_option.h
++++ deps/nghttp2/lib/nghttp2_outbound_item.c
++++ deps/nghttp2/lib/nghttp2_outbound_item.h
++++ deps/nghttp2/lib/nghttp2_pq.c
++++ deps/nghttp2/lib/nghttp2_pq.h
++++ deps/nghttp2/lib/nghttp2_priority_spec.c
++++ deps/nghttp2/lib/nghttp2_priority_spec.h
++++ deps/nghttp2/lib/nghttp2_queue.c
++++ deps/nghttp2/lib/nghttp2_queue.h
++++ deps/nghttp2/lib/nghttp2_rcbuf.c
++++ deps/nghttp2/lib/nghttp2_rcbuf.h
++++ deps/nghttp2/lib/nghttp2_session.c
++++ deps/nghttp2/lib/nghttp2_session.h
++++ deps/nghttp2/lib/nghttp2_stream.c
++++ deps/nghttp2/lib/nghttp2_stream.h
++++ deps/nghttp2/lib/nghttp2_submit.c
++++ deps/nghttp2/lib/nghttp2_submit.h
++++ deps/nghttp2/lib/nghttp2_version.c
++++Copyright: 2012, Tatsuhiro Tsujikawa
++++  2012-2013, Tatsuhiro Tsujikawa
++++  2013, Tatsuhiro Tsujikawa
++++  2013-2014, Tatsuhiro Tsujikawa
++++  2014, Tatsuhiro Tsujikawa
++++  2015, Tatsuhiro Tsujikawa
++++  2016, Tatsuhiro Tsujikawa
++++License: Expat
++++ FIXME
++++
++++Files: deps/v8/third_party/jinja2/__init__.py
++++ deps/v8/third_party/jinja2/asyncsupport.py
++++ deps/v8/third_party/jinja2/bccache.py
++++ deps/v8/third_party/jinja2/compiler.py
++++ deps/v8/third_party/jinja2/constants.py
++++ deps/v8/third_party/jinja2/debug.py
++++ deps/v8/third_party/jinja2/defaults.py
++++ deps/v8/third_party/jinja2/environment.py
++++ deps/v8/third_party/jinja2/exceptions.py
++++ deps/v8/third_party/jinja2/ext.py
++++ deps/v8/third_party/jinja2/filters.py
++++ deps/v8/third_party/jinja2/lexer.py
++++ deps/v8/third_party/jinja2/loaders.py
++++ deps/v8/third_party/jinja2/nodes.py
++++ deps/v8/third_party/jinja2/optimizer.py
++++ deps/v8/third_party/jinja2/parser.py
++++ deps/v8/third_party/jinja2/runtime.py
++++ deps/v8/third_party/jinja2/sandbox.py
++++ deps/v8/third_party/jinja2/tests.py
++++ deps/v8/third_party/jinja2/utils.py
++++ deps/v8/third_party/jinja2/visitor.py
++++ tools/inspector_protocol/jinja2/__init__.py
++++ tools/inspector_protocol/jinja2/asyncsupport.py
++++ tools/inspector_protocol/jinja2/bccache.py
++++ tools/inspector_protocol/jinja2/compiler.py
++++ tools/inspector_protocol/jinja2/constants.py
++++ tools/inspector_protocol/jinja2/debug.py
++++ tools/inspector_protocol/jinja2/defaults.py
++++ tools/inspector_protocol/jinja2/environment.py
++++ tools/inspector_protocol/jinja2/exceptions.py
++++ tools/inspector_protocol/jinja2/ext.py
++++ tools/inspector_protocol/jinja2/filters.py
++++ tools/inspector_protocol/jinja2/lexer.py
++++ tools/inspector_protocol/jinja2/loaders.py
++++ tools/inspector_protocol/jinja2/nodes.py
++++ tools/inspector_protocol/jinja2/optimizer.py
++++ tools/inspector_protocol/jinja2/parser.py
++++ tools/inspector_protocol/jinja2/runtime.py
++++ tools/inspector_protocol/jinja2/sandbox.py
++++ tools/inspector_protocol/jinja2/tests.py
++++ tools/inspector_protocol/jinja2/utils.py
++++ tools/inspector_protocol/jinja2/visitor.py
++++Copyright: (c) 2017 by the Jinja Team.
++++License: BSD~unspecified
++++ FIXME
++++
++++Files: deps/cares/src/ares__close_sockets.c
++++ deps/cares/src/ares__get_hostent.c
++++ deps/cares/src/ares__read_line.c
++++ deps/cares/src/ares_create_query.c
++++ deps/cares/src/ares_dns.h
++++ deps/cares/src/ares_expand_name.c
++++ deps/cares/src/ares_expand_string.c
++++ deps/cares/src/ares_fds.c
++++ deps/cares/src/ares_free_hostent.c
++++ deps/cares/src/ares_free_string.c
++++ deps/cares/src/ares_getenv.c
++++ deps/cares/src/ares_getenv.h
++++ deps/cares/src/ares_gethostbyaddr.c
++++ deps/cares/src/ares_gethostbyname.c
++++ deps/cares/src/ares_llist.c
++++ deps/cares/src/ares_llist.h
++++ deps/cares/src/ares_mkquery.c
++++ deps/cares/src/ares_parse_a_reply.c
++++ deps/cares/src/ares_parse_ns_reply.c
++++ deps/cares/src/ares_parse_ptr_reply.c
++++ deps/cares/src/ares_query.c
++++ deps/cares/src/ares_search.c
++++ deps/cares/src/ares_send.c
++++ deps/cares/src/ares_strcasecmp.c
++++ deps/cares/src/ares_strcasecmp.h
++++ deps/cares/src/ares_strdup.c
++++ deps/cares/src/ares_strdup.h
++++ deps/cares/src/ares_strerror.c
++++ deps/cares/src/ares_timeout.c
++++ deps/cares/src/ares_writev.c
++++ deps/cares/src/ares_writev.h
++++Copyright: 1998, 2011, 2013, the Massachusetts Institute of Technology.
++++  1998, 2011, the Massachusetts Institute of Technology.
++++  1998, the Massachusetts Institute of Technology.
++++  2000, the Massachusetts Institute of Technology.
++++License: NTP
++++ FIXME
++++
++++Files: deps/openssl/openssl/apps/ecparam.c
++++ deps/openssl/openssl/apps/speed.c
++++ deps/openssl/openssl/crypto/bn/bn_gf2m.c
++++ deps/openssl/openssl/crypto/cryptlib.c
++++ deps/openssl/openssl/crypto/ec/ec2_oct.c
++++ deps/openssl/openssl/crypto/ec/ec2_smpl.c
++++ deps/openssl/openssl/crypto/ec/ec_curve.c
++++ deps/openssl/openssl/crypto/ec/ec_cvt.c
++++ deps/openssl/openssl/crypto/ec/ec_key.c
++++ deps/openssl/openssl/crypto/ec/ec_lcl.h
++++ deps/openssl/openssl/crypto/ec/ec_lib.c
++++ deps/openssl/openssl/crypto/ec/ec_mult.c
++++ deps/openssl/openssl/crypto/ec/ec_oct.c
++++ deps/openssl/openssl/crypto/ec/ecdh_ossl.c
++++ deps/openssl/openssl/crypto/ec/eck_prn.c
++++ deps/openssl/openssl/crypto/ec/ecp_mont.c
++++ deps/openssl/openssl/crypto/ec/ecp_nist.c
++++ deps/openssl/openssl/crypto/ec/ecp_oct.c
++++ deps/openssl/openssl/crypto/ec/ecp_smpl.c
++++ deps/openssl/openssl/crypto/engine/eng_fat.c
++++ deps/openssl/openssl/crypto/engine/eng_int.h
++++ deps/openssl/openssl/crypto/engine/eng_list.c
++++ deps/openssl/openssl/crypto/engine/eng_openssl.c
++++ deps/openssl/openssl/crypto/include/internal/sha.h
++++ deps/openssl/openssl/include/openssl/bn.h
++++ deps/openssl/openssl/include/openssl/crypto.h
++++ deps/openssl/openssl/include/openssl/ec.h
++++ deps/openssl/openssl/include/openssl/ssl3.h
++++ deps/openssl/openssl/include/openssl/x509.h
++++ deps/openssl/openssl/ssl/ssl_cert.c
++++ deps/openssl/openssl/ssl/statem/statem_lib.c
++++Copyright: 1995-2018, The OpenSSL Project Authors.
++++  1995-2019, The OpenSSL Project Authors.
++++  1998-2019, The OpenSSL Project Authors.
++++  2001-2016, The OpenSSL Project Authors.
++++  2001-2018, The OpenSSL Project Authors.
++++  2001-2019, The OpenSSL Project Authors.
++++  2002, Oracle and/or its affiliates.
++++  2002-2018, The OpenSSL Project Authors.
++++  2002-2019, The OpenSSL Project Authors.
++++  2006-2018, The OpenSSL Project Authors.
++++  2011-2018, The OpenSSL Project Authors.
++++  2011-2019, The OpenSSL Project Authors.
++++  2018, Oracle and/or its affiliates.
++++  2018, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/v8/third_party/jinja2/_identifier.py
++++ test/fixtures/google_ssl_hello.bin
++++ test/fixtures/keys/agent6.pfx
++++ test/js-native-api/test_string/test.js
++++ test/known_issues/test-http-path-contains-unicode.js
++++ test/parallel/test-fs-write-file-typedarrays.js
++++ test/parallel/test-stdin-from-file.js
++++ test/wasi/wasm/cant_dotdot.wasm
++++ test/wasi/wasm/clock_getres.wasm
++++ test/wasi/wasm/follow_symlink.wasm
++++ test/wasi/wasm/getentropy.wasm
++++ test/wasi/wasm/getrusage.wasm
++++ test/wasi/wasm/gettimeofday.wasm
++++ test/wasi/wasm/poll.wasm
++++ test/wasi/wasm/read_file.wasm
++++ test/wasi/wasm/read_file_twice.wasm
++++ test/wasi/wasm/stat.wasm
++++ test/wasi/wasm/stdin.wasm
++++ test/wasi/wasm/symlink_escape.wasm
++++ test/wasi/wasm/symlink_loop.wasm
++++ tools/inspector_protocol/jinja2/_identifier.py
++++ tools/msvs/msi/i18n/zh-cn.wxl
++++Copyright: 
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/src/codegen/arm/assembler-arm-inl.h
++++ deps/v8/src/codegen/arm/assembler-arm.cc
++++ deps/v8/src/codegen/arm/assembler-arm.h
++++ deps/v8/src/codegen/assembler.cc
++++ deps/v8/src/codegen/assembler.h
++++ deps/v8/src/codegen/ia32/assembler-ia32-inl.h
++++ deps/v8/src/codegen/ia32/assembler-ia32.cc
++++ deps/v8/src/codegen/ia32/assembler-ia32.h
++++ deps/v8/src/codegen/mips/assembler-mips-inl.h
++++ deps/v8/src/codegen/mips/assembler-mips.cc
++++ deps/v8/src/codegen/mips/assembler-mips.h
++++ deps/v8/src/codegen/mips64/assembler-mips64-inl.h
++++ deps/v8/src/codegen/mips64/assembler-mips64.cc
++++ deps/v8/src/codegen/mips64/assembler-mips64.h
++++ deps/v8/src/codegen/ppc/assembler-ppc-inl.h
++++ deps/v8/src/codegen/ppc/assembler-ppc.cc
++++ deps/v8/src/codegen/ppc/assembler-ppc.h
++++ deps/v8/src/codegen/s390/assembler-s390-inl.h
++++ deps/v8/src/codegen/s390/assembler-s390.cc
++++ deps/v8/src/codegen/s390/assembler-s390.h
++++ deps/v8/src/codegen/x64/assembler-x64.h
++++Copyright: 1994-2006, Sun Microsystems Inc.
++++  2011, the V8 project authors.
++++  2012, the V8 project authors.
++++  2014, the V8 project authors.
++++License: BSD~unspecified
++++ FIXME
++++
++++Files: deps/uv/include/uv/os390.h
++++ deps/uv/include/uv/posix.h
++++ deps/uv/src/unix/aix-common.c
++++ deps/uv/src/unix/bsd-ifaddrs.c
++++ deps/uv/src/unix/bsd-proctitle.c
++++ deps/uv/src/unix/cygwin.c
++++ deps/uv/src/unix/haiku.c
++++ deps/uv/src/unix/ibmi.c
++++ deps/uv/src/unix/no-fsevents.c
++++ deps/uv/src/unix/no-proctitle.c
++++ deps/uv/src/unix/os390-syscalls.c
++++ deps/uv/src/unix/os390-syscalls.h
++++ deps/uv/src/unix/os390.c
++++ deps/uv/src/unix/posix-hrtime.c
++++ deps/uv/src/unix/posix-poll.c
++++ deps/uv/src/unix/procfs-exepath.c
++++ deps/uv/src/unix/sysinfo-loadavg.c
++++ deps/uv/src/unix/sysinfo-memory.c
++++Copyright: libuv project contributors.
++++License: Expat
++++ FIXME
++++
++++Files: deps/zlib/adler32.c
++++ deps/zlib/crc32.c
++++ deps/zlib/examples/enough.c
++++ deps/zlib/examples/gzlog.c
++++ deps/zlib/examples/zran.c
++++ deps/zlib/gzclose.c
++++ deps/zlib/gzguts.h
++++ deps/zlib/gzlib.c
++++ deps/zlib/gzread.c
++++ deps/zlib/gzwrite.c
++++ deps/zlib/infback.c
++++ deps/zlib/inffast.c
++++ deps/zlib/inffast.h
++++ deps/zlib/inflate.c
++++ deps/zlib/inflate.h
++++ deps/zlib/inftrees.h
++++ deps/zlib/test/infcover.c
++++Copyright: 1995-2003, 2010, Mark Adler
++++  1995-2005, 2010, Mark Adler
++++  1995-2006, 2010-2012, 2016, Mark Adler
++++  1995-2011, 2016, Mark Adler
++++  1995-2016, Mark Adler
++++  1995-2017, Mark Adler
++++  2004, 2008, 2012, 2016, Mark Adler
++++  2004, 2010, Mark Adler
++++  2004-2005, 2010-2013, 2016, Mark Adler
++++  2004-2017, Mark Adler
++++  2005, 2012, Mark Adler
++++  2007-2008, 2012, Mark Adler
++++  2011, 2016, Mark Adler
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/src/inspector/injected-script.cc
++++ deps/v8/src/inspector/injected-script.h
++++ deps/v8/src/inspector/v8-inspector-impl.cc
++++ deps/v8/src/inspector/v8-inspector-impl.h
++++ deps/v8/src/inspector/v8-runtime-agent-impl.cc
++++ deps/v8/src/inspector/v8-runtime-agent-impl.h
++++ deps/v8/third_party/googletest/src/googletest/include/gtest/gtest_prod.h
++++ deps/v8/third_party/inspector_protocol/check_protocol_compatibility.py
++++ test/cctest/gtest/LICENSE
++++ test/cctest/gtest/gtest-all.cc
++++ test/cctest/gtest/gtest.h
++++ test/cctest/gtest/gtest_main.cc
++++ tools/gyp/LICENSE
++++ tools/inspector_protocol/check_protocol_compatibility.py
++++Copyright: 2005, Google Inc.
++++  2006, Google Inc.
++++  2007, Google Inc.
++++  2008, Google Inc.
++++  2009, Google Inc.
++++  2010, Google Inc.
++++  2010-2011, Google Inc.
++++  2011, Google Inc.
++++  2012, Google Inc.
++++  2015, Google Inc.
++++License: BSD-3-clause
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/ec/curve448/arch_32/arch_intrinsics.h
++++ deps/openssl/openssl/crypto/ec/curve448/arch_32/f_impl.c
++++ deps/openssl/openssl/crypto/ec/curve448/arch_32/f_impl.h
++++ deps/openssl/openssl/crypto/ec/curve448/curve448.c
++++ deps/openssl/openssl/crypto/ec/curve448/curve448_tables.c
++++ deps/openssl/openssl/crypto/ec/curve448/curve448utils.h
++++ deps/openssl/openssl/crypto/ec/curve448/ed448.h
++++ deps/openssl/openssl/crypto/ec/curve448/eddsa.c
++++ deps/openssl/openssl/crypto/ec/curve448/f_generic.c
++++ deps/openssl/openssl/crypto/ec/curve448/field.h
++++ deps/openssl/openssl/crypto/ec/curve448/point_448.h
++++ deps/openssl/openssl/crypto/ec/curve448/scalar.c
++++ deps/openssl/openssl/crypto/ec/curve448/word.h
++++Copyright: 2014, Cryptography Research, Inc.
++++  2014-2016, Cryptography Research, Inc.
++++  2015, Cryptography Research, Inc.
++++  2015-2016, Cryptography Research, Inc.
++++  2016, Cryptography Research, Inc.
++++  2017-2018, The OpenSSL Project Authors.
++++  2017-2019, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/v8/src/base/adapters.h
++++ deps/v8/src/base/debug/stack_trace.h
++++ deps/v8/src/base/debug/stack_trace_android.cc
++++ deps/v8/src/base/debug/stack_trace_posix.cc
++++ deps/v8/src/base/debug/stack_trace_win.cc
++++ deps/v8/src/base/free_deleter.h
++++ deps/v8/src/base/optional.h
++++ deps/v8/src/base/safe_conversions.h
++++ deps/v8/src/base/safe_conversions_impl.h
++++ deps/v8/tools/generate-header-include-checks.py
++++ deps/v8/tools/mb/PRESUBMIT.py
++++ deps/v8/tools/mb/mb.py
++++ deps/v8/tools/mb/mb_unittest.py
++++Copyright: 2012, The Chromium Authors.
++++  2014, The Chromium Authors.
++++  2014, the V8 project authors.
++++  2015, The Chromium Authors.
++++  2016, The Chromium Authors.
++++  2016, the V8 project authors.
++++  2017, the V8 project authors.
++++  2018, The Chromium Authors.
++++  2018, the V8 project authors.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/evp/e_sm4.c
++++ deps/openssl/openssl/crypto/include/internal/sm2.h
++++ deps/openssl/openssl/crypto/include/internal/sm3.h
++++ deps/openssl/openssl/crypto/include/internal/sm4.h
++++ deps/openssl/openssl/crypto/sm2/sm2_crypt.c
++++ deps/openssl/openssl/crypto/sm2/sm2_sign.c
++++ deps/openssl/openssl/crypto/sm3/m_sm3.c
++++ deps/openssl/openssl/crypto/sm3/sm3.c
++++ deps/openssl/openssl/crypto/sm3/sm3_locl.h
++++ deps/openssl/openssl/crypto/sm4/sm4.c
++++Copyright: 2017, Ribose Inc.
++++  2017, The OpenSSL Project Authors.
++++  2017-2018, The OpenSSL Project Authors.
++++  2017-2019, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/v8/third_party/colorama/README.v8
++++ deps/v8/third_party/googletest/README.chromium
++++ deps/v8/third_party/inspector_protocol/README.v8
++++ deps/v8/third_party/jinja2/README.chromium
++++ deps/v8/third_party/markupsafe/README.chromium
++++ test/fixtures/wpt/resources/LICENSE
++++ tools/inspector_protocol/README.node
++++ tools/inspector_protocol/jinja2/README.chromium
++++ tools/inspector_protocol/markupsafe/README.chromium
++++Copyright: NONE
++++License: BSD~unspecified
++++ FIXME
++++
++++Files: deps/uv/Makefile.am
++++ deps/uv/autogen.sh
++++ deps/uv/configure.ac
++++ deps/uv/src/heap-inl.h
++++ deps/uv/src/idna.c
++++ deps/uv/src/idna.h
++++ deps/uv/src/queue.h
++++ deps/uv/src/unix/atomic-ops.h
++++ deps/uv/src/unix/spinlock.h
++++Copyright: 2011, 2018, Ben Noordhuis <info@bnoordhuis.nl>
++++  2013, Ben Noordhuis <info@bnoordhuis.nl>
++++License: ISC
++++ FIXME
++++
++++Files: debian/patches/1005_restore_sh_javascript_nonminified.patch
++++ debian/patches/2012_kfreebsd.patch
++++ debian/patches/atomic.patch
++++ debian/patches/benchmark_without_alice.patch
++++ debian/patches/fix_disable_cctest.patch
++++ debian/patches/make-doc.patch
++++ debian/patches/privacy_breach.patch
++++ debian/patches/test_ci_buildd.patch
++++ debian/patches/use_system_node_gyp.patch
++++Copyright: rémy Lal <kapouer@melix.org>
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/third_party/markupsafe/__init__.py
++++ deps/v8/third_party/markupsafe/_constants.py
++++ deps/v8/third_party/markupsafe/_native.py
++++ deps/v8/third_party/markupsafe/_speedups.c
++++ tools/inspector_protocol/markupsafe/__init__.py
++++ tools/inspector_protocol/markupsafe/_constants.py
++++ tools/inspector_protocol/markupsafe/_native.py
++++ tools/inspector_protocol/markupsafe/_speedups.c
++++Copyright: (c) 2010 by Armin Ronacher.
++++License: BSD~unspecified
++++ FIXME
++++
++++Files: deps/cares/include/ares_build.h
++++ deps/cares/include/ares_rules.h
++++ deps/cares/src/ares__timeval.c
++++ deps/cares/src/ares_cancel.c
++++ deps/cares/src/ares_inet_net_pton.h
++++ deps/cares/src/ares_setup.h
++++ deps/cares/src/config-win32.h
++++ deps/cares/src/setup_once.h
++++Copyright: 2004, Daniel Stenberg et al
++++  2004-2011, Daniel Stenberg et al
++++  2004-2012, Daniel Stenberg et al
++++  2004-2013, Daniel Stenberg et al
++++  2005-2013, Daniel Stenberg et al
++++  2008, Daniel Stenberg et al
++++  2009, Daniel Stenberg et al
++++  2009-2013, Daniel Stenberg et al
++++License: NTP
++++ FIXME
++++
++++Files: deps/openssl/openssl/apps/progs.pl
++++ deps/openssl/openssl/crypto/asn1/charmap.pl
++++ deps/openssl/openssl/crypto/bn/bn_prime.pl
++++ deps/openssl/openssl/crypto/conf/keysets.pl
++++ deps/openssl/openssl/crypto/objects/obj_dat.pl
++++ deps/openssl/openssl/crypto/objects/objects.pl
++++ deps/openssl/openssl/crypto/objects/objxref.pl
++++ deps/openssl/openssl/util/mkerr.pl
++++Copyright: 1995, -$YEAR The OpenSSL Project Authors.
++++  1995-2018, The OpenSSL Project Authors.
++++  1995-2019, The OpenSSL Project Authors.
++++  1998, -$YEAR The OpenSSL Project Authors.
++++  1998-2019, The OpenSSL Project Authors.
++++  1999, -$YEAR The OpenSSL Project Authors.
++++  1999-2019, The OpenSSL Project Authors.
++++  2000, -$YEAR The OpenSSL Project Authors.
++++  2000-2019, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/apps/s_server.c
++++ deps/openssl/openssl/include/openssl/ssl.h
++++ deps/openssl/openssl/include/openssl/tls1.h
++++ deps/openssl/openssl/ssl/s3_lib.c
++++ deps/openssl/openssl/ssl/ssl_ciph.c
++++ deps/openssl/openssl/ssl/ssl_lib.c
++++ deps/openssl/openssl/ssl/statem/statem_clnt.c
++++ deps/openssl/openssl/ssl/statem/statem_srvr.c
++++Copyright: 1995-2019, The OpenSSL Project Authors.
++++  2002, Oracle and/or its affiliates.
++++  2005, Nokia.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/LPdir_nyi.c
++++ deps/openssl/openssl/crypto/LPdir_unix.c
++++ deps/openssl/openssl/crypto/LPdir_vms.c
++++ deps/openssl/openssl/crypto/LPdir_win.c
++++ deps/openssl/openssl/crypto/LPdir_win32.c
++++ deps/openssl/openssl/crypto/LPdir_wince.c
++++ deps/openssl/openssl/include/internal/o_dir.h
++++Copyright: 2004, 2018, Richard Levitte <richard@levitte.org>
++++  2004, Richard Levitte <richard@levitte.org>
++++  2004-2016, The OpenSSL Project Authors.
++++  2004-2018, The OpenSSL Project Authors.
++++License: BSD-2-clause and/or OpenSSL
++++ FIXME
++++
++++Files: deps/cares/include/ares.h
++++ deps/cares/src/ares_destroy.c
++++ deps/cares/src/ares_init.c
++++ deps/cares/src/ares_library_init.c
++++ deps/cares/src/ares_library_init.h
++++ deps/cares/src/ares_options.c
++++ deps/cares/src/ares_process.c
++++Copyright: 1998, the Massachusetts Institute of Technology.
++++  2004-2009, Daniel Stenberg
++++  2004-2011, Daniel Stenberg
++++  2004-2017, Daniel Stenberg
++++  2007-2013, Daniel Stenberg
++++  2008-2013, Daniel Stenberg
++++License: NTP
++++ FIXME
++++
++++Files: deps/openssl/openssl/apps/s_client.c
++++ deps/openssl/openssl/ssl/s3_enc.c
++++ deps/openssl/openssl/ssl/ssl_asn1.c
++++ deps/openssl/openssl/ssl/ssl_sess.c
++++ deps/openssl/openssl/ssl/ssl_stat.c
++++ deps/openssl/openssl/ssl/ssl_txt.c
++++ deps/openssl/openssl/ssl/t1_enc.c
++++Copyright: 1995-2017, The OpenSSL Project Authors.
++++  1995-2018, The OpenSSL Project Authors.
++++  1995-2019, The OpenSSL Project Authors.
++++  2005, Nokia.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/v8/src/third_party/vtune/ittnotify_config.h
++++ deps/v8/src/third_party/vtune/ittnotify_types.h
++++ deps/v8/src/third_party/vtune/jitprofiling.cc
++++ deps/v8/src/third_party/vtune/v8-vtune.h
++++ deps/v8/src/third_party/vtune/vtune-jit.cc
++++ deps/v8/src/third_party/vtune/vtune-jit.h
++++Copyright: (c) 2005-2012 Intel Corporation.
++++License: BSD-3-clause and/or GPL-2
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/blake2/blake2_impl.h
++++ deps/openssl/openssl/crypto/blake2/blake2_locl.h
++++ deps/openssl/openssl/crypto/blake2/blake2b.c
++++ deps/openssl/openssl/crypto/blake2/blake2s.c
++++ deps/openssl/openssl/crypto/blake2/m_blake2b.c
++++ deps/openssl/openssl/crypto/blake2/m_blake2s.c
++++Copyright: 2012, Samuel Neves <sneves@dei.uc.pt>
++++  2016, The OpenSSL Project Authors.
++++  2016-2017, The OpenSSL Project Authors.
++++  2016-2019, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/acorn-plugins/acorn-class-fields/LICENSE
++++ deps/acorn-plugins/acorn-numeric-separator/LICENSE
++++ deps/acorn-plugins/acorn-private-class-elements/LICENSE
++++ deps/acorn-plugins/acorn-private-methods/LICENSE
++++ deps/acorn-plugins/acorn-static-class-features/LICENSE
++++Copyright: 2017-2018, Adrian Heine
++++License: Expat
++++ FIXME
++++
++++Files: deps/node-inspect/LICENSE
++++ deps/node-inspect/lib/_inspect.js
++++ deps/node-inspect/lib/cli.js
++++ deps/node-inspect/lib/internal/inspect_client.js
++++ deps/node-inspect/lib/internal/inspect_repl.js
++++Copyright: Node.js contributors.
++++License: Expat
++++ FIXME
++++
++++Files: deps/uv/src/random.c
++++ deps/uv/src/unix/random-devurandom.c
++++ deps/uv/src/unix/random-getentropy.c
++++ deps/uv/src/unix/random-getrandom.c
++++ deps/uv/src/unix/random-sysctl-linux.c
++++Copyright: libuv contributors.
++++License: Expat
++++ FIXME
++++
++++Files: deps/cares/src/ares_data.c
++++ deps/cares/src/ares_data.h
++++ deps/cares/src/ares_getsock.c
++++ deps/cares/src/ares_nowarn.c
++++ deps/cares/src/ares_nowarn.h
++++Copyright: 2005-2010, Daniel Stenberg
++++  2009-2013, Daniel Stenberg
++++  2010-2012, Daniel Stenberg
++++  2010-2013, Daniel Stenberg
++++License: NTP
++++ FIXME
++++
++++Files: deps/openssl/openssl/apps/srp.c
++++ deps/openssl/openssl/crypto/srp/srp_lib.c
++++ deps/openssl/openssl/crypto/srp/srp_vfy.c
++++ deps/openssl/openssl/include/openssl/srp.h
++++ deps/openssl/openssl/ssl/tls_srp.c
++++Copyright: 2004, EdelKey Project.
++++  2004-2018, The OpenSSL Project Authors.
++++  2004-2019, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/bn/asm/rsaz-avx2.pl
++++ deps/openssl/openssl/crypto/bn/asm/rsaz-x86_64.pl
++++ deps/openssl/openssl/crypto/bn/rsaz_exp.c
++++ deps/openssl/openssl/crypto/bn/rsaz_exp.h
++++ deps/openssl/openssl/crypto/ec/asm/ecp_nistz256-avx2.pl
++++Copyright: 2012, Intel Corporation.
++++  2013-2016, The OpenSSL Project Authors.
++++  2013-2018, The OpenSSL Project Authors.
++++  2013-2019, The OpenSSL Project Authors.
++++  2014, Intel Corporation.
++++  2014-2018, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/zlib/deflate.h
++++ deps/zlib/test/example.c
++++ deps/zlib/test/minigzip.c
++++ deps/zlib/trees.c
++++ deps/zlib/zutil.c
++++Copyright: 1995-2006, 2010-2011, 2016, Jean-loup Gailly
++++  1995-2006, 2011, 2016, Jean-loup Gailly
++++  1995-2016, Jean-loup Gailly
++++  1995-2017, Jean-loup Gailly
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/ec/ecp_nistp224.c
++++ deps/openssl/openssl/crypto/ec/ecp_nistp256.c
++++ deps/openssl/openssl/crypto/ec/ecp_nistp521.c
++++ deps/openssl/openssl/crypto/ec/ecp_nistputil.c
++++Copyright: 2010-2019, The OpenSSL Project Authors.
++++  2011, Google Inc.
++++  2011-2019, The OpenSSL Project Authors.
++++License: Apache-2.0 and/or OpenSSL
++++ FIXME
++++
++++Files: deps/cares/src/bitncmp.c
++++ deps/cares/src/inet_net_pton.c
++++ deps/cares/src/inet_ntop.c
++++ deps/uv/src/inet.c
++++Copyright: 1996, 1999, Internet Software Consortium.
++++  1996-1999, Internet Software Consortium.
++++  2004, Internet Systems Consortium, Inc. ("ISC")
++++License: ISC
++++ FIXME
++++
++++Files: deps/cares/src/ares_android.c
++++ deps/cares/src/ares_android.h
++++ deps/cares/src/ares_strsplit.c
++++ deps/cares/src/ares_strsplit.h
++++Copyright: 2017, John Schember <john@nachtimwald.com>
++++  2018, John Schember <john@nachtimwald.com>
++++License: NTP
++++ FIXME
++++
++++Files: deps/zlib/Makefile.in
++++ deps/zlib/compress.c
++++ deps/zlib/uncompr.c
++++ deps/zlib/zutil.h
++++Copyright: 1995-2003, 2010, 2014, 2016, Jean-loup Gailly, Mark Adler
++++  1995-2005, 2014, 2016, Jean-loup Gailly, Mark Adler
++++  1995-2016, Jean-loup Gailly, Mark Adler
++++  1995-2017, Jean-loup Gailly, Mark Adler
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/zlib/msdos/Makefile.dj2
++++ deps/zlib/msdos/Makefile.emx
++++ deps/zlib/old/Makefile.emx
++++ deps/zlib/win32/Makefile.gcc
++++Copyright: 1995-1998, Jean-loup Gailly.
++++  1995-2003, Jean-loup Gailly.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/build_overrides/build.gni
++++ deps/v8/build_overrides/gtest.gni
++++ deps/v8/infra/mb/mb_config.pyl
++++ deps/v8/infra/testing/builders.pyl
++++Copyright: 2016, The V8 project authors.
++++  2018, The V8 project authors.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/tools/SourceMap.js
++++ deps/v8/tools/js2c.py
++++ lib/internal/source_map/source_map.js
++++Copyright: 2011, Google Inc.
++++  2012, Google Inc.
++++  2012, the V8 project authors.
++++  2013, the V8 project authors.
++++License: BSD-3-clause
++++ FIXME
++++
++++Files: deps/v8/LICENSE.valgrind
++++ deps/v8/src/third_party/valgrind/LICENSE
++++ deps/v8/src/third_party/valgrind/valgrind.h
++++Copyright: 2000-2007, Julian Seward.
++++  2000-2010, Julian Seward.
++++License: BSD-3-clause and/or GPL-2
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/seed/seed.c
++++ deps/openssl/openssl/crypto/seed/seed_locl.h
++++ deps/openssl/openssl/include/openssl/seed.h
++++Copyright: 2007, KISA(Korea Information Security Agency).
++++  2007-2016, The OpenSSL Project Authors.
++++  2007-2018, The OpenSSL Project Authors.
++++License: BSD-3-clause and/or OpenSSL
++++ FIXME
++++
++++Files: deps/cares/src/ares_iphlpapi.h
++++ deps/cares/src/ares_platform.c
++++ deps/cares/src/ares_platform.h
++++Copyright: 1998, the Massachusetts Institute of Technology.
++++  2004-2011, Daniel Stenberg et al
++++License: NTP
++++ FIXME
++++
++++Files: deps/cares/src/ares_getnameinfo.c
++++ deps/cares/src/ares_ipv6.h
++++ deps/cares/src/bitncmp.h
++++Copyright: 2005, 2013, Dominick Meglio
++++  2005, Dominick Meglio
++++License: NTP
++++ FIXME
++++
++++Files: deps/cares/src/ares_parse_naptr_reply.c
++++ deps/cares/src/ares_parse_srv_reply.c
++++ deps/cares/src/ares_parse_txt_reply.c
++++Copyright: 1998, the Massachusetts Institute of Technology.
++++  2009, Jakub Hrozek <jhrozek@redhat.com>
++++License: NTP
++++ FIXME
++++
++++Files: tools/icu/icu-system.gyp
++++ tools/icu/icu_small.json
++++ tools/icu/icutrim.py
++++Copyright: 2014, IBM Corporation and Others.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/zlib/zconf.h
++++ deps/zlib/zconf.h.cmakein
++++ deps/zlib/zconf.h.in
++++Copyright: 1995-2016, Jean-loup Gailly, Mark Adler
++++  z_deflate_copyright
++++  z_inflate_copyright
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/third_party/inspector_protocol/bindings/bindings_test_helper.h
++++ deps/v8/third_party/inspector_protocol/encoding/encoding_test_helper.h
++++ tools/inspector_protocol/encoding/encoding_test_helper.h
++++Copyright: 2019, The V8 Authors.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/changelogs/CHANGELOG_V4.md
++++ doc/changelogs/CHANGELOG_V6.md
++++ doc/changelogs/CHANGELOG_V7.md
++++Copyright: s-Combarro 'piranna) [#10287
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/zlib/README
++++ deps/zlib/win32/README-WIN32.txt
++++ deps/zlib/zlib.h
++++Copyright: 1995-2017, Jean-loup Gailly and Mark Adler
++++License: Zlib
++++ FIXME
++++
++++Files: deps/openssl/openssl/util/cavs-to-evptest.pl
++++ deps/openssl/openssl/util/perl/TLSProxy/CertificateRequest.pm
++++Copyright: 2016-2019, The OpenSSL Project Authors.
++++  2019, The OpenSSL Project Authors.
++++License: Apache-2.0
++++ FIXME
++++
++++Files: deps/v8/third_party/markupsafe/LICENSE
++++ tools/inspector_protocol/markupsafe/LICENSE
++++Copyright: 2010, Armin Ronacher and contributors. See AUTHORS
++++License: BSD-3-clause
++++ FIXME
++++
++++Files: deps/v8/third_party/inspector_protocol/LICENSE
++++ tools/inspector_protocol/LICENSE
++++Copyright: 2016, The Chromium Authors.
++++License: BSD-3-clause
++++ FIXME
++++
++++Files: deps/cares/src/ares_getopt.c
++++ deps/cares/src/ares_getopt.h
++++Copyright: 1987-2001, The Regents of the University of California.
++++License: BSD-3-clause
++++ FIXME
++++
++++Files: deps/v8/third_party/jinja2/LICENSE
++++ tools/inspector_protocol/jinja2/LICENSE
++++Copyright: 2009, the Jinja Team, see AUTHORS for more details.
++++License: BSD-3-clause
++++ FIXME
++++
++++Files: deps/v8/src/third_party/vtune/LICENSE
++++ deps/v8/src/third_party/vtune/jitprofiling.h
++++Copyright: 2005-2012, Intel Corporation.
++++License: BSD-3-clause and/or GPL-2
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/x509v3/v3_pci.c
++++ deps/openssl/openssl/crypto/x509v3/v3_pcia.c
++++Copyright: 2004, Kungliga Tekniska Högskolan
++++  2004-2016, The OpenSSL Project Authors.
++++License: BSD-3-clause and/or OpenSSL
++++ FIXME
++++
++++Files: deps/v8/third_party/markupsafe/_compat.py
++++ tools/inspector_protocol/markupsafe/_compat.py
++++Copyright: (c) 2013 by Armin Ronacher.
++++License: BSD~unspecified
++++ FIXME
++++
++++Files: deps/v8/third_party/jinja2/meta.py
++++ tools/inspector_protocol/jinja2/meta.py
++++Copyright: (c) 2017 by the Jinja Team, see AUTHORS for more details.
++++License: BSD~unspecified
++++ FIXME
++++
++++Files: deps/v8/third_party/jinja2/_compat.py
++++ tools/inspector_protocol/jinja2/_compat.py
++++Copyright: Copyright 2013 by the Jinja team, see AUTHORS.
++++License: BSD~unspecified
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/whrlpool/wp_block.c
++++ deps/openssl/openssl/crypto/whrlpool/wp_dgst.c
++++Copyright: 2005-2016, The OpenSSL Project Authors.
++++  2005-2019, The OpenSSL Project Authors.
++++License: BSD~unspecified and/or OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/aes/aes_core.c
++++ deps/openssl/openssl/crypto/aes/aes_x86core.c
++++Copyright: 2002-2016, The OpenSSL Project Authors.
++++  2006-2016, The OpenSSL Project Authors.
++++License: BSD~unspecified and/or OpenSSL and/or public-domain
++++ FIXME
++++
++++Files: deps/uv/tools/vswhere_usability_wrapper.cmd
++++ tools/msvs/vswhere_usability_wrapper.cmd
++++Copyright: 2017, - Refael Ackermann
++++License: Expat
++++ FIXME
++++
++++Files: src/large_pages/node_large_page.cc
++++ src/large_pages/node_large_page.h
++++Copyright: 2018, Intel Corporation
++++License: Expat
++++ FIXME
++++
++++Files: deps/llhttp/LICENSE-MIT
++++ deps/llhttp/README.md
++++Copyright: Fedor Indutny, 2018.
++++License: Expat
++++ FIXME
++++
++++Files: test/parallel/test-stream2-basic.js
++++ test/parallel/test-zlib.js
++++Copyright: Joyent, Inc. and other Node contributors.
++++  this.write(c);
++++License: Expat
++++ FIXME
++++
++++Files: deps/uv/README.md
++++ deps/v8/tools/turbolizer/README.md
++++Copyright: NONE
++++License: Expat
++++ FIXME
++++
++++Files: tools/rpm/node.spec
++++ tools/rpm/rpmbuild.sh
++++Copyright: 2013, StrongLoop, Inc. <callback@strongloop.com>
++++License: ISC
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/camellia/asm/cmll-x86.pl
++++ deps/openssl/openssl/crypto/camellia/asm/cmll-x86_64.pl
++++Copyright: 2008, Andy Polyakov <appro@openssl.org>
++++  2008-2016, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/ec/asm/ecp_nistz256-x86_64.pl
++++ deps/openssl/openssl/crypto/ec/ecp_nistz256.c
++++Copyright: 2014, Intel Corporation.
++++  2014-2019, The OpenSSL Project Authors.
++++  2015, CloudFlare, Inc.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/camellia/camellia.c
++++ deps/openssl/openssl/crypto/camellia/cmll_locl.h
++++Copyright: 2006, NTT (Nippon Telegraph and Telephone Corporation) .
++++  2006-2016, The OpenSSL Project Authors.
++++  2006-2018, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/aria/aria.c
++++ deps/openssl/openssl/crypto/include/internal/aria.h
++++Copyright: 2006-2018, The OpenSSL Project Authors.
++++  2017, National Security Research Institute.
++++  2017, Oracle and/or its affiliates.
++++  2017, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/include/openssl/srtp.h
++++ deps/openssl/openssl/ssl/d1_srtp.c
++++Copyright: 2006, Network Resonance, Inc. Copyright (C) 2011, RTFM, Inc.
++++  2011-2016, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/apps/vms_term_sock.c
++++ deps/openssl/openssl/apps/vms_term_sock.h
++++Copyright: 2016, The OpenSSL Project Authors.
++++  2016, VMS Software, Inc.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/evp/e_aes.c
++++ deps/openssl/openssl/crypto/modes/ccm128.c
++++Copyright: 2001-2019, The OpenSSL Project Authors.
++++  2011-2019, The OpenSSL Project Authors.
++++  return;
++++License: OpenSSL
++++ FIXME
++++
++++Files: tools/icu/iculslocs.cc
++++ tools/icu/no-op.cc
++++Copyright: 2014, International Business Machines
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/src/third_party/siphash/halfsiphash.cc
++++ deps/v8/src/third_party/siphash/halfsiphash.h
++++Copyright: 2016, Jean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com>
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/zlib/win32/Makefile.msc
++++ deps/zlib/zlib.3
++++Copyright: 1995-2017, Jean-loup Gailly and Mark Adler
++++License: UNKNOWN
++++ FIXME
++++
++++Files: tools/v8_gypfiles/ForEachFormat.py
++++ tools/v8_gypfiles/GN-scraper.py
++++Copyright: 2019, Refael Ackeramnn<refack@gmail.com>.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/api/assets/sh_main.js
++++ doc/api_assets/sh_main.js
++++Copyright: 2007-2008, gnombat@users.sourceforge.net
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/uv/img/banner.png
++++ deps/v8/tools/turbolizer/img/toggle-hide-dead-icon.png
++++Copyright: Copyright (c) 1998 Hewlett-Packard Company
++++License: UNKNOWN
++++ FIXME
++++
++++Files: CONTRIBUTING.md
++++ deps/node-inspect/CONTRIBUTING.md
++++Copyright: The contribution was provided directly to me by some other
++++  and I have not modified
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/api/buffer.html
++++ doc/api/buffer.md
++++Copyright: console.log(buf2.toString(undefined, 0, 3));
++++  st
++++  st');
++++  st', 'latin1');
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/zlib/examples/fitblk.c
++++ deps/zlib/examples/zpipe.c
++++Copyright: ed -- provided to the public domain
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/third_party/markupsafe/AUTHORS
++++ tools/inspector_protocol/markupsafe/AUTHORS
++++Copyright: rin
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/third_party/jinja2/AUTHORS
++++ tools/inspector_protocol/jinja2/AUTHORS
++++Copyright: rin <kael@crocobox.org>
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/api/url.html
++++ doc/api/url.md
++++Copyright: ¦/?abc'
++++  ¦?abc#foo');
++++License: UNKNOWN
++++ FIXME
++++
++++Files: test/parallel/test-zlib-brotli-from-string.js
++++ test/parallel/test-zlib-truncated.js
++++Copyright: Î©Lorem ipsum dolor sit amet, consectetur adipiscing eli' +
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/zlib/examples/gzjoin.c
++++ deps/zlib/examples/gzlog.h
++++Copyright: 2004, 2008, 2012, Mark Adler
++++  2004-2005, 2012, Mark Adler
++++License: Zlib
++++ FIXME
++++
++++Files: deps/histogram/src/hdr_histogram.c
++++ deps/histogram/src/hdr_histogram.h
++++Copyright: NONE
++++License: public-domain
++++ FIXME
++++
++++Files: lib/internal/freeze_intrinsics.js
++++Copyright: 2011, Google Inc.
++++  2018, Agoric
++++License: Apache-2.0
++++ FIXME
++++
++++Files: deps/v8/src/wasm/c-api.cc
++++Copyright: 2019, Andreas Rossberg
++++  2019, the V8 project authors.
++++License: Apache-2.0
++++ FIXME
++++
++++Files: deps/v8/third_party/wasm-api/LICENSE
++++Copyright: License. Subject to the terms and conditions of
++++  You must retain, in the Source form of any Derivative Works
++++  license to reproduce, prepare Derivative Works of,
++++  patent, trademark, and
++++  {yyyy} {name of copyright owner}
++++License: Apache-2.0
++++ FIXME
++++
++++Files: LICENSE
++++Copyright: 1991-2019, Unicode, Inc.
++++  1995-2016, International Business Machines Corporation and others
++++  1995-2017, Jean-loup Gailly and Mark Adler
++++  1996, Chih-Hao Tsai @ Beckman Institute,
++++  1998, the Massachusetts Institute of Technology.
++++  1998-2019, The OpenSSL Project.
++++  1999, Computer Systems and Communication Lab,
++++  1999, Pai-Hsiang Hsiao.
++++  1999, TaBE Project.
++++  2000-2003, Nara Institute of Science
++++  2000-2006, The Perl Foundation.
++++  2006-2008, Google Inc.
++++  2006-2011, the V8 project authors.
++++  2007-2018, Daniel Stenberg with many contributors, see AUTHORS
++++  2008, Google Inc.
++++  2009, Google Inc.
++++  2009, the Jinja Team, see AUTHORS for more details.
++++  2009-2010, 2013-2016, the Brotli Authors.
++++  2010, Armin Ronacher and contributors. See AUTHORS
++++  2011, Google Inc.
++++  2012, 2014-2016, Tatsuhiro Tsujikawa
++++  2012, 2014-2016, nghttp2 contributors
++++  2012, Ben Noordhuis <info@bnoordhuis.nl>
++++  2012-2014, Gil Tene
++++  2012-2018, various contributors (see AUTHORS)
++++  2013, Brian Eugene Wilson, Robert Martin Campbell.
++++  2013, International Business Machines Corporation
++++  2013, LeRoy Benjamin Sharon
++++  2014, International Business Machines Corporation
++++  2014, Matt Warren
++++  2014, Michael Barker
++++  2014, StrongLoop Inc.
++++  2014, the V8 project authors.
++++  2014-2016, Sebastian McKenzie <sebmck@gmail.com>
++++  2015, -present libuv project contributors.
++++  2016, Jean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com>
++++  2016, The Chromium Authors.
++++  2017-2018, Adrian Heine
++++  2018, Agoric
++++  2018, Intel Corporation
++++  2019, Colin Ihrig and Contributors
++++  Alexander Chemeris. Three
++++  Berkeley Software Design
++++  Fedor Indutny, 2018.
++++  Google Inc. and Sony Mobile Communications AB.
++++  Isaac Z. Schlueter and Contributors
++++  JS Foundation and other contributors, https:js.foundation
++++  Joyent, Inc. and other Node contributors.
++++  Mathias Bynens <https:mathiasbynens.be/>
++++  Mathias Pettersson and Brian Hammond
++++  Niels Provos. Two clause BSD license.
++++  Node.js contributors.
++++  Tjarda Koster, https:jelloween.deviantart.com
++++  allow anyone who receives a copy of the Modified Version to
++++  ed by
++++  ed by Sun Microsystems Inc. and released
++++  ed by the University
++++  npm, Inc. and Contributors
++++  the Internet Systems Consortium, Inc., and licensed under the ISC
++++  their respective copyright owners
++++License: Apache-2.0 and/or Artistic-2.0 and/or BSD-2-clause and/or BSD-3-clause and/or BSD-4-clause and/or Expat and/or ICU and/or ISC and/or NTP and/or OpenSSL and/or Zlib and/or public-domain
++++ FIXME
++++
++++Files: deps/openssl/openssl/external/perl/Text-Template-1.46/lib/Text/Template.pm
++++Copyright: 2013, M. J. Dominus.
++++  2013, Mark Jason Dominus
++++License: Artistic or GPL-1+ and/or GPL-2+
++++ FIXME
++++
++++Files: deps/openssl/openssl/external/perl/Text-Template-1.46/lib/Text/Template/Preprocess.pm
++++Copyright: 2013, Mark Jason Dominus
++++License: Artistic or GPL-1+ and/or GPL-2+
++++ FIXME
++++
++++Files: deps/openssl/openssl/external/perl/Text-Template-1.46/Artistic
++++Copyright: of this Package, but belong to whoever generated
++++  s for the package.
++++License: Artistic-1.0-Perl
++++ FIXME
++++
++++Files: deps/uv/include/uv/stdint-msvc2008.h
++++Copyright: 2006-2008, Alexander Chemeris
++++License: BSD-2-clause
++++ FIXME
++++
++++Files: deps/uv/src/unix/android-ifaddrs.c
++++Copyright: 2013, Kenneth MacKay
++++  2014, Emergya (Cloud4all, FP7/2007-2013 grant agreement #289016)
++++License: BSD-2-clause
++++ FIXME
++++
++++Files: deps/v8/third_party/colorama/LICENSE
++++Copyright: 2010, Jonathan Hartley
++++License: BSD-2-clause
++++ FIXME
++++
++++Files: deps/uv/include/uv/tree.h
++++Copyright: 2002, Niels Provos <provos@citi.umich.edu>
++++License: BSD-2-clause
++++ FIXME
++++
++++Files: deps/histogram/LICENSE.txt
++++Copyright: 2012-2014, Gil Tene
++++  2014, Matt Warren
++++  2014, Michael Barker
++++License: BSD-2-clause and/or public-domain
++++ FIXME
++++
++++Files: deps/v8/src/inspector/v8-debugger-script.h
++++Copyright: 2008, Apple Inc.
++++  2010, Google Inc.
++++License: BSD-3-clause
++++ FIXME
++++
++++Files: deps/uv/src/unix/pthread-fixes.c
++++Copyright: 2012, Google Inc.
++++  2013, Sony Mobile Communications AB
++++License: BSD-3-clause
++++ FIXME
++++
++++Files: deps/v8/LICENSE
++++Copyright: 2014, the V8 project authors.
++++  ed by
++++  ed by Sun Microsystems Inc. and released
++++  ed by the University
++++License: BSD-3-clause
++++ FIXME
++++
++++Files: deps/v8/PRESUBMIT.py
++++Copyright: 2012, the V8 project authors.
++++  header, trailing whitespaces and two empty lines "
++++  with the canned PanProjectChecks. Need to make sure that the checks all
++++License: BSD-3-clause
++++ FIXME
++++
++++Files: deps/v8/tools/tick-processor.html
++++Copyright: 2012, the V8 project authors.
++++  the V8 Authors - Last change to this page: 12/12/2012
++++License: BSD-3-clause
++++ FIXME
++++
++++Files: test/fixtures/wpt/LICENSE.md
++++Copyright: 2019, web-platform-tests contributors
++++License: BSD-3-clause
++++ FIXME
++++
++++Files: deps/v8/tools/v8_presubmit.py
++++Copyright: header, trailing whitespaces and "
++++  header." % name)
++++License: BSD-3-clause
++++ FIXME
++++
++++Files: deps/openssl/openssl/LICENSE
++++Copyright: 1995-1998, Eric Young (eay@cryptsoft.com)
++++  1998-2019, The OpenSSL Project.
++++  remains Eric Young's, and as such any Copyright notices in
++++  terms
++++License: BSD-4-clause and/or OpenSSL and/or SSLeay
++++ FIXME
++++
++++Files: deps/uv/include/uv/android-ifaddrs.h
++++Copyright: 1995, 1999, Berkeley Software Design, Inc.
++++License: BSD~unspecified
++++ FIXME
++++
++++Files: deps/v8/LICENSE.strongtalk
++++Copyright: 1994-2006, Sun Microsystems Inc.
++++License: BSD~unspecified
++++ FIXME
++++
++++Files: deps/uv/LICENSE-docs
++++Copyright: --then that use is not regulated by the license. Our
++++  Treaty adopted on December 20, 1996, and/or similar international
++++  including, without limitation,
++++  or other
++++  resulting from Directive 96/9/EC of the European Parliament and of
++++License: CC-BY-4.0
++++ FIXME
++++
++++Files: deps/v8/src/third_party/siphash/LICENSE
++++Copyright: NONE
++++License: CC0-1.0
++++ FIXME
++++
++++Files: deps/v8/src/third_party/utf8-decoder/LICENSE
++++Copyright: 2008-2009, Bjoern Hoehrmann <bjoern@hoehrmann.de>
++++License: Expat
++++ FIXME
++++
++++Files: tools/node-lint-md-cli-rollup/LICENSE
++++Copyright: 2011-2014, Christopher Jeffrey (https:github.com/chjj/)
++++  2014-2016, Titus Wormer <tituswormer@gmail.com>
++++  2018, Refael Ackermann<refack@gmail.com>
++++License: Expat
++++ FIXME
++++
++++Files: deps/uvwasi/LICENSE
++++Copyright: 2019, Colin Ihrig and Contributors
++++License: Expat
++++ FIXME
++++
++++Files: lib/internal/tty.js
++++Copyright: 1996-2016, Free Software Foundation, Inc. Copying and
++++  Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
++++License: Expat
++++ FIXME
++++
++++Files: deps/v8/benchmarks/navier-stokes.js
++++Copyright: 2009, Oliver Hunt <http:nerget.com>
++++  2012, the V8 project authors.
++++License: Expat
++++ FIXME
++++
++++Files: tools/gyp/pylib/gyp/ordered_dict.py
++++Copyright: 2009, Raymond Hettinger.
++++License: Expat
++++ FIXME
++++
++++Files: test/fixtures/wpt/resources/webidl2/LICENSE
++++Copyright: 2014, Robin Berjon
++++License: Expat
++++ FIXME
++++
++++Files: deps/nghttp2/COPYING
++++Copyright: 2012, 2014-2016, Tatsuhiro Tsujikawa
++++  2012, 2014-2016, nghttp2 contributors
++++License: Expat
++++ FIXME
++++
++++Files: lib/assert.js
++++Copyright: 2009, Thomas Robinson <280north.com>
++++License: Expat
++++ FIXME
++++
++++Files: deps/v8/benchmarks/crypto.js
++++Copyright: 2003-2005, Tom Wu
++++  2005, Tom Wu
++++License: Expat
++++ FIXME
++++
++++Files: deps/brotli/LICENSE
++++Copyright: 2009-2010, 2013-2016, the Brotli Authors.
++++License: Expat
++++ FIXME
++++
++++Files: test/parallel/test-punycode.js
++++Copyright: Chinese (traditional)
++++  Joyent, Inc. and other Node contributors.
++++  ¸½'), 'x73l');
++++License: Expat
++++ FIXME
++++
++++Files: deps/http_parser/bench.c
++++Copyright: Fedor Indutny.
++++License: Expat
++++ FIXME
++++
++++Files: deps/uv/src/unix/core.c
++++Copyright: Joyent, Inc. and other Node contributors.
++++  NULL, (d))
++++License: Expat
++++ FIXME
++++
++++Files: src/res/node.rc
++++Copyright: Joyent, Inc. and other Node contributors.
++++  Node.js contributors. MIT license."
++++License: Expat
++++ FIXME
++++
++++Files: test/parallel/test-buffer-ascii.js
++++Copyright: Joyent, Inc. and other Node contributors.
++++  rité').toString('ascii'), 'hC)ritC)');
++++  union dâ\80\99un accent aigu ' +
++++License: Expat
++++ FIXME
++++
++++Files: test/sequential/test-stream2-fs.js
++++Copyright: Joyent, Inc. and other Node contributors.
++++  this.buffer.push(c.toString());
++++License: Expat
++++ FIXME
++++
++++Files: test/parallel/test-zlib-from-string.js
++++Copyright: Joyent, Inc. and other Node contributors.
++++  Î©Lorem ipsum dolor sit amet, consectetur adipiscing eli' +
++++License: Expat
++++ FIXME
++++
++++Files: deps/uv/src/win/pipe.c
++++Copyright: heap_buffer_offset += bufs[i
++++  size_t data_length;
++++License: Expat
++++ FIXME
++++
++++Files: deps/uv/src/win/snprintf.c
++++Copyright: the libuv project contributors.
++++License: Expat
++++ FIXME
++++
++++Files: test/parallel/test-string-decoder-end.js
++++Copyright: ï£¿', 'asdf'
++++License: Expat
++++ FIXME
++++
++++Files: deps/uv/LICENSE
++++Copyright: 2015, -present libuv project contributors.
++++  Alexander Chemeris. Three
++++  Berkeley Software Design
++++  Google Inc. and Sony Mobile Communications AB.
++++  Joyent, Inc. and other Node contributors.
++++  Niels Provos. Two clause BSD license.
++++  the Internet Systems Consortium, Inc., and licensed under the ISC
++++License: Expat and/or ISC
++++ FIXME
++++
++++Files: deps/v8/third_party/v8/builtins/LICENSE
++++Copyright: 1991-1995, Stichting Mathematisch Centrum Amsterdam,
++++  i.e., "Copyright (c)
++++  i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
++++License: GPL and/or Python-2.0
++++ FIXME
++++
++++Files: deps/v8/benchmarks/deltablue.js
++++Copyright: 1996, John Maloney and Mario Wolczko.
++++  2008, the V8 project authors.
++++License: GPL-2+
++++ FIXME
++++
++++Files: deps/openssl/openssl/external/perl/Text-Template-1.46/COPYING
++++Copyright: 1989, 1991, Free Software Foundation, Inc.
++++  19yy <name of author>
++++  19yy name of author
++++  disclaimer" for the program, if
++++  ed by the Free
++++  ed interfaces, the
++++  interest in the program
++++  the software, and
++++License: GPL-2+ and/or LGPL
++++ FIXME
++++
++++Files: deps/uv/m4/libuv-check-flags.m4
++++Copyright: 2006-2008, Diego Pettenò <flameeyes gmail com>
++++  2006-2008, xine project
++++License: GPL-3+
++++ FIXME
++++
++++Files: lib/v8.js
++++Copyright: 2014, StrongLoop Inc.
++++License: ISC
++++ FIXME
++++
++++Files: deps/cares/src/ares_private.h
++++Copyright: ->sock_state_cb((c)->sock_state_cb_data, (s), (r), (w));
++++  1998, the Massachusetts Institute of Technology.
++++  2004-2010, Daniel Stenberg
++++License: NTP
++++ FIXME
++++
++++Files: deps/cares/LICENSE.md
++++Copyright: 1998, the Massachusetts Institute of Technology.
++++  2007-2018, Daniel Stenberg with many contributors, see AUTHORS
++++License: NTP
++++ FIXME
++++
++++Files: deps/cares/src/ares_parse_aaaa_reply.c
++++Copyright: 1998, the Massachusetts Institute of Technology.
++++  2005, Dominick Meglio
++++License: NTP
++++ FIXME
++++
++++Files: deps/cares/src/ares_parse_mx_reply.c
++++Copyright: 1998, the Massachusetts Institute of Technology.
++++  2010, Jeremy Lal <kapouer@melix.org>
++++License: NTP
++++ FIXME
++++
++++Files: deps/cares/src/ares_parse_soa_reply.c
++++Copyright: 1998, the Massachusetts Institute of Technology.
++++  2012, Marko Kreen <markokr@gmail.com>
++++License: NTP
++++ FIXME
++++
++++Files: deps/openssl/openssl/ssl/ssl_locl.h
++++Copyright: 
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/util/mkrc.pl
++++Copyright: 1998, -$YEAR The OpenSSL Authors.
++++  2006-2018, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/mem_sec.c
++++Copyright: 2004-2014, Akamai Technologies.
++++  2015-2018, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/rsa/rsa_mp.c
++++Copyright: 2017, BaishanCloud.
++++  2017-2018, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/siphash/siphash.c
++++Copyright: 2012-2014, Daniel J. Bernstein
++++  2012-2016, Jean-Philippe Aumasson
++++  2017-2018, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/evp/e_aria.c
++++Copyright: 2017, Oracle and/or its affiliates.
++++  2017-2019, The OpenSSL Project Authors.
++++  return;
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/include/openssl/engine.h
++++Copyright: 2000-2018, The OpenSSL Project Authors.
++++  2002, Oracle and/or its affiliates.
++++  the shared library will be unloaded. So
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/apps/tsget.in
++++Copyright: 2002, The OpenTSA Project.
++++  2002-2018, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/apps/rehash.c
++++Copyright: 2013-2014, Timo Teräs <timo.teras@gmail.com>
++++  2015-2019, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/asn1/tasn_dec.c
++++Copyright: ->valid = 0
++++  2000-2018, The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/bio/b_print.c
++++Copyright: 1995-2018, The OpenSSL Project Authors.
++++  Patrick Powell 1995
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/apps/apps.c
++++Copyright: 1995-2019, The OpenSSL Project Authors.
++++  flags |= ptbl->flag;
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/util/find-doc-nits
++++Copyright: 2002-2019, The OpenSSL Project Authors.
++++  not lastn"
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/engine/eng_dyn.c
++++Copyright: 2001-2016, The OpenSSL Project Authors.
++++  sk_OPENSSL_STRING_free(c->dirs);
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/bn/asm/ia64-mont.pl
++++Copyright: 2010-2018, The OpenSSL Project Authors.
++++  stringz   "Montgomery multiplication for IA-64, CRYPTOGAMS by <appro@openssl.org>"
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/util/process_docs.pl
++++Copyright: 2016-2018, The OpenSSL Project Authors. /
++++  Copyright 2013-2018 The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/CONTRIBUTING
++++Copyright: 20xx-20yy The OpenSSL Project Authors.
++++License: OpenSSL
++++ FIXME
++++
++++Files: deps/openssl/openssl/crypto/bn/README.pod
++++Copyright: Copyright 2000-2016 The OpenSSL Project Authors. /
++++License: OpenSSL
++++ FIXME
++++
++++Files: test/fixtures/keys/ec.pfx
++++Copyright: \ 2\ 2\b
++++  Vé¼\7fö\97²\8fÊ\ 5)^<GPegJY\8c1Èä÷Ò| ¼\8a\121t0\82\ 1\ 2\ 6      *\86H\86÷
++++  lw\1d1`3saâ͹¥òÕLBt\17ä¯çz<e«\17
++++  \83\ 5E\ 5=Ò©æ9\99ý\97ý$£û\8fIéâ\ 2\15ëüê\9c"¹jNÚ
++++License: UNKNOWN
++++ FIXME
++++
++++Files: tools/gyp/PRESUBMIT.py
++++Copyright: ((c) )?%(year)s Google Inc.
++++  2012, Google Inc.
++++  is deprecated, but tolerate it until it's removed from all files.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/src/diagnostics/eh-frame.cc
++++Copyright: (E) and (A) have no alignment requirements.
++++  2016, the V8 project authors.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/zlib/amiga/Makefile.pup
++++Copyright: 1998, Andreas R. Kleinert
++++License: UNKNOWN
++++ FIXME
++++
++++Files: tools/gyp/pylib/gyp/generator/compile_commands_json.py
++++Copyright: 2016, Ben Noordhuis <info@bnoordhuis.nl>.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: tools/mk-ca-bundle.pl
++++Copyright: 1998-2014, Daniel Stenberg, <daniel@haxx.se>, et al.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/openssl/openssl/README
++++Copyright: 1995-1998, Eric A. Young, Tim J. Hudson
++++  1998-2019, The OpenSSL Project
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/openssl/config/README.md
++++Copyright: 2015, Free Software Foundation, Inc.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: tools/gyp/pylib/gyp/win_tool.py
++++Copyright: 2012, Google Inc.
++++  Microsoft Corporation') and
++++License: UNKNOWN
++++ FIXME
++++
++++Files: tools/icu/patches/64/source/common/putil.cpp
++++Copyright: 1997-2016, International Business Machines
++++  2016, and later: Unicode, Inc. and others.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: tools/icu/patches/64/source/i18n/dtptngen.cpp
++++Copyright: 2007-2016, International Business Machines Corporation and
++++  2016, and later: Unicode, Inc. and others.
++++  a pattern specified programmatically with a previous call to addPattern (which would only happen
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/zlib/os400/make.sh
++++Copyright: 1995-2017, Jean-Loup Gailly, Mark Adler. OS/400 version by P. Monnerat.")' >> os400.c
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/zlib/deflate.c
++++Copyright: 1995-2017, Jean-loup Gailly and Mark Adler
++++  1995-2017, Jean-loup Gailly and Mark Adler ";
++++License: UNKNOWN
++++ FIXME
++++
++++Files: test/parallel/test-url-relative.js
++++Copyright: 2002-2008, Kris Kowal <http:cixar.com/~kris.kowal>
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/zlib/inftrees.c
++++Copyright: 1995-2017, Mark Adler
++++  1995-2017, Mark Adler ";
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/zlib/examples/gun.c
++++Copyright: 2003, 2005, 2008, 2010, 2012, Mark Adler
++++  2003-2010, Mark Adlern");
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/zlib/examples/zlib_how.html
++++Copyright: 2004-2005, Mark Adler. -->
++++  2004-2005, Mark Adler<br>Last modified 11 December 2005</i>
++++  ed -- provided to the public domain
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/third_party/v8/builtins/array-sort.tq
++++Copyright: 2001-2018, Python Software Foundation;
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/benchmarks/raytrace.js
++++Copyright: 2005-2007, Sam Stephenson
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/LICENSE.fdlibm
++++Copyright: 1993-2004, Sun Microsystems, Inc.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/src/base/ieee754.cc
++++Copyright: 1993, Sun Microsystems, Inc.
++++  2016, the V8 project authors.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: tools/icu/icu-generic.gyp
++++Copyright: 2012, The Chromium Authors.
++++  IBM Corporation and Others.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/infra/mb/PRESUBMIT.py
++++Copyright: 2016, The WebRTC project authors.
++++  2016, the V8 project authors.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: tools/v8_gypfiles/ForEachReplace.py
++++Copyright: 2019, Ujjwal Sharma <usharma1998@gmail>.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/src/objects/bigint.cc
++++Copyright: 2014, the Dart project authors. Please see the AUTHORS file [1
++++  2017, the V8 project authors.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/src/heap/spaces.cc
++++Copyright: 2011, the V8 project authors.
++++  implicitly call
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/tools/profview/index.html
++++Copyright: 2017, the V8 project authors.
++++  the V8 Authors - Last change to this page: 2018/08/13
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/src/codegen/constant-pool.cc
++++Copyright: 2018, the V8 project authors.
++++  {dist32/64} exceeds the desired approximate distance to the pool.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: benchmark/misc/getstringwidth.js
++++Copyright: -ð\9f\91¦-ð\9f\91¦ð\9f\91¨-ð\9f\91©-ð\9f\91§-ð\9f\91§ð\9f\91©-ð\9f\91©-ð\9f\91§-ð\9f\91¦'.repeat(10),
++++License: UNKNOWN
++++ FIXME
++++
++++Files: test/parallel/test-icu-stringwidth.js
++++Copyright: -ð\9f\91©-ð\9f\91§-ð\9f\91§', { expandEmojiSequence: true }), 8);
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/http_parser/AUTHORS
++++Copyright: <dolmen@cpan.org>
++++License: UNKNOWN
++++ FIXME
++++
++++Files: AUTHORS
++++Copyright: <s@saghul.net>
++++  Arboleda <soyjuanarbol@gmail.com>
++++  Cruz <andre@cabine.org>
++++  Føyn Berge <im-andre@foynberge.com>
++++  Kooi <rene@kooi.me>
++++  Moreira <jose.moreira@findhit.com>
++++  Schünemann <rene.schuenemann@sap.com>
++++  bastien Barbieri <seba@rtbf.be>
++++  déric Germain <frederic.germain@gmail.com>
++++  e <github@benoitvallee.net>
++++  e Kooi <renee@kooi.me>
++++  mi Berson <remi@cliqz.com>
++++  my MEJA <remy.meja@inist.fr>
++++  phan Kochen <stephan@kochen.nl>
++++  phane Vasseur <mr.vasseur@gmail.com>
++++  rez <alvarperez92@gmail.com>
++++  rémy Lal <kapouer@melix.org>
++++  s-Combarro 'piranna <piranna@gmail.com>
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/uv/.mailmap
++++Copyright: <saghul@gmail.com>
++++  <saghul@gmail.com> <s@saghul.net>
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/uv/AUTHORS
++++Copyright: <saghul@gmail.com>
++++  Klitzing <aklitzing@gmail.com>
++++  Vadla RavnÃ¥s <oleavr@gmail.com>
++++  rémy Lal <kapouer@melix.org>
++++  tan <sloretan@riotgames.com>
++++License: UNKNOWN
++++ FIXME
++++
++++Files: test/fixtures/wpt/url/resources/urltestdata.json
++++Copyright: @example.com/bar",
++++  zbar",
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/guides/doc_img/compare-boxplot.png
++++Copyright: Copyright 2007 Apple Inc.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/node.1
++++Copyright: Copyright Node.js contributors.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: test/fixtures/keys/ec10.pfx
++++Copyright: E        0|V\94DÄX!¨_Þ\15ð5i\1a2\9f:^jWFYN3PÌÙ/\9f\83׬\80ÌRê.ç\ 6¬\ 6\8bAÄè?\9fAD\9d\ 2\ 5®\7fd\93Ì>à\90Õ\ex\9fÝ7¨Ï\e¾¾)Íw\15÷¢¦35ÔaÊ\8b£\94ç\98\aò\8d
++++  d7'W¶\9dßËTúÀ\9a\90Ö\15-«ÉZÞ\1c8åÑ\7fÀ\84Ñ¿É7±\16\92>A\98\1cY´¯\1f~Ãø¶_Á1'í|Ø\1cCx¤çn÷\14¦¥mÞ¥T\97'\15Û
++++  ¬U˧\9f¢ä%ßû\ e»Þ\9fo\19\ 2Án¾'\ 3áC1ѧ3\9a8HÓTÉ
++++  ìÒ_Z¸\8d\1aAµ§\88þ
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/zlib/amiga/Makefile.sas
++++Copyright: Jean-loup Gailly
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/uv/ChangeLog
++++Copyright: Klitzing)
++++  Vadla RavnÃ¥s)
++++  header (cjihrig)
++++  rémy Lal)
++++  tan)
++++  years (Saúl Ibarra Corretgé)
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/changelogs/CHANGELOG_IOJS.md
++++Copyright: Kooi) [#916
++++  boilerplate (Ben Noordhuis)
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/cares/src/AUTHORS
++++Copyright: Sebastian at basti79.de
++++  rémy Lal
++++License: UNKNOWN
++++ FIXME
++++
++++Files: benchmark/common.js
++++Copyright: ar&baz=%A©uux&xyzzy=%©ud',
++++License: UNKNOWN
++++ FIXME
++++
++++Files: test/fixtures/url-searchparams.js
++++Copyright: ar'
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/api/all.html
++++Copyright: console.log(buf2.toString(undefined, 0, 3));
++++  st
++++  st');
++++  st', 'latin1');
++++  ¦/?abc'
++++  ¦?abc#foo');
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/zlib/ChangeLog
++++Copyright: dates on modified source files
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/changelogs/CHANGELOG_ARCHIVE.md
++++Copyright: déric Germain)
++++  phan Kochen)
++++  rémy Lal)
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/brotli/c/common/dictionary.bin
++++Copyright: estarventagrupohechoellostengoamigocosasnivelgentemismaairesjuliotemashaciafavorjuniolibrepuntobuenoautorabrilbuenatextomarzosaberlistaluegocómoenerojuegoperúhaberestoynuncamujervalorfueralibrogustaigualvotoscasosguíapuedosomosavisousteddebennochebuscafaltaeurosseriedichocursoclavecasasleónplazolargoobrasvistaapoyojuntotratavistocrearcampohemoscincocargopisosordenhacenáreadiscopedrocercapuedapapelmenorútilclarojorgecalleponertardenadiemarcasigueellassiglocochemotosmadreclaserestoniñoquedapasarbancohijosviajepabloéstevienereinodejarfondocanalnorteletracausatomarmanoslunesautosvillavendopesartipostengamarcollevapadreunidovamoszonasambosbandamariaabusomuchasubirriojavivirgradochicaallíjovendichaestantalessalirsuelopesosfinesllamabuscoéstalleganegroplazahumorpagarjuntadobleislasbolsabañohablaluchaÃ\81readicenjugarnotasvalleallácargadolorabajoestégustomentemariofirmacostofichaplatahogarartesleyesaquelmuseobasespocosmitadcielochicomiedoganarsantoetapadebesplayaredessietecortecoreadudasdeseoviejodeseaaguas&quot;domaincommonstatuseventsmastersystemactionbannerremovescrollupdateglobalmediumfilternumberchangeresultpublicscreenchoosenormaltravelissuessourcetargetspringmodulemobileswitchphotosborderregionitselfsocialactivecolumnrecordfollowtitle>eitherlengthfamilyfriendlayoutauthorcreatereviewsummerserverplayedplayerexpandpolicyformatdoublepointsseriespersonlivingdesignmonthsforcesuniqueweightpeopleenergynaturesearchfigurehavingcustomoffsetletterwindowsubmitrendergroupsuploadhealthmethodvideosschoolfutureshadowdebatevaluesObjectothersrightsleaguechromesimplenoticesharedendingseasonreportonlinesquarebuttonimagesenablemovinglatestwinterFranceperiodstrongrepeatLondondetailformeddemandsecurepassedtoggleplacesdevicestaticcitiesstreamyellowattackstreetflighthiddeninfo">openedusefulvalleycausesleadersecretseconddamagesportsexceptratingsignedthingseffectfieldsstatesofficevisualeditorvolumeReportmuseummoviesparentaccessmostlymother" id="marketgroundchancesurveybeforesymbolmomentspeechmotioninsidematterCenterobjectexistsmiddleEuropegrowthlegacymannerenoughcareeransweroriginportalclientselectrandomclosedtopicscomingfatheroptionsimplyraisedescapechosenchurchdefinereasoncorneroutputmemoryiframepolicemodelsNumberduringoffersstyleskilledlistedcalledsilvermargindeletebetterbrowselimitsGlobalsinglewidgetcenterbudgetnowrapcreditclaimsenginesafetychoicespirit-stylespreadmakingneededrussiapleaseextentScriptbrokenallowschargedividefactormember-basedtheoryconfigaroundworkedhelpedChurchimpactshouldalwayslogo" bottomlist">){var prefixorangeHeader.push(couplegardenbridgelaunchReviewtakingvisionlittledatingButtonbeautythemesforgotSearchanchoralmostloadedChangereturnstringreloadMobileincomesupplySourceordersviewed&nbsp;courseAbout island<html cookiename="amazonmodernadvicein</a>: The dialoghousesBEGIN MexicostartscentreheightaddingIslandassetsEmpireSchooleffortdirectnearlymanualSelect.
++++  estonadatrespococasabajotodasinoaguapuesunosantediceluisellamayozonaamorpisoobraclicellodioshoracasiзанаомÑ\80аÑ\80Ñ\83Ñ\82анепооÑ\82изнодоÑ\82ожеониÑ
++++  fonocomisióncancionescapacidadencontraranálisisfavoritostérminosprovinciaetiquetaselementosfuncionesresultadocarácterpropiedadprincipionecesidadmunicipalcreacióndescargaspresenciacomercialopinionesejercicioeditorialsalamancagonzálezdocumentopelícularecientesgeneralestarragonaprácticanovedadespropuestapacientestécnicasobjetivoscontactosमà¥\87à¤\82लिà¤\8fहà¥\88à¤\82à¤\97यासाथà¤\8fवà¤\82रहà¥\87à¤\95à¥\8bà¤\88à¤\95à¥\81à¤\9bरहाबादà¤\95हासभà¥\80हà¥\81à¤\8fरहà¥\80मà¥\88à¤\82दिनबातdiplodocsसमयरà¥\82पनामपताफिरà¤\94सततरहलà¥\8bà¤\97हà¥\81à¤\86बारदà¥\87शहà¥\81à¤\88à¤\96à¥\87लयदिà¤\95ामवà¥\87बतà¥\80नबà¥\80à¤\9aमà¥\8cतसाललà¥\87à¤\96à¤\9cà¥\89बमददतथानहà¥\80शहरà¤
++++  group">assemblmaking pressedwidget.ps:" ? rebuiltby someFormer editorsdelayedCanonichad thepushingclass="but arepartialBabylonbottom carrierCommandits useAs withcoursesa thirddenotesalso inHouston20px;">accuseddouble goal ofFamous ).bind(priests Onlinein Julyst + "gconsultdecimalhelpfulrevivedis veryr'+'iptlosing femalesis alsostringsdays ofarrivalfuture <objectforcingString(" />
++++  javascriptconditionseverything<p class="technologybackground<a class="management© 201javaScriptcharactersbreadcrumbthemselveshorizontalgovernmentCaliforniaactivitiesdiscoveredNavigationtransitionconnectionnavigationappearance</title><mcheckbox" techniquesprotectionapparentlyas well asunt', 'UA-resolutionoperationstelevisiontranslatedWashingtonnavigator. = window.impression&lt;br&gt;literaturepopulationbgcolor="#especially content="productionnewsletterpropertiesdefinitionleadershipTechnologyParliamentcomparisonul class=".indexOf("conclusiondiscussioncomponentsbiologicalRevolution_containerunderstoodnoscript><permissioneach otheratmosphere onfocus="<form id="processingthis.valuegenerationConferencesubsequentwell-knownvariationsreputationphenomenondisciplinelogo.png" (document,boundariesexpressionsettlementBackgroundout of theenterprise("https:" unescape("password" democratic<a href="/wrapper">
++++  languagesexclusivecondition</form>
++++  nnoticiasmensajespersonasderechosnacionalserviciocontactousuariosprogramagobiernoempresasanunciosvalenciacolombiadespuésdeportesproyectoproductopúbliconosotroshistoriapresentemillonesmediantepreguntaanteriorrecursosproblemasantiagonuestrosopiniónimprimirmientrasaméricavendedorsociedadrespectorealizarregistropalabrasinterésentoncesespecialmiembrosrealidadcórdobazaragozapáginassocialesbloqueargestiónalquilersistemascienciascompletoversióncompletaestudiospúblicaobjetivoalicantebuscadorcantidadentradasaccionesarchivossuperiormayoríaalemaniafunciónúltimoshaciendoaquellosediciónfernandoambientefacebooknuestrasclientesprocesosbastantepresentareportarcongresopublicarcomerciocontratojóvenesdistritotécnicaconjuntoenergíatrabajarasturiasrecienteutilizarboletínsalvadorcorrectatrabajosprimerosnegocioslibertaddetallespantallapróximoalmeríaanimalesquiénescorazónsecciónbuscandoopcionesexteriorconceptotodavíagaleríaescribirmedicinalicenciaconsultaaspectoscríticadólaresjusticiadeberánperíodonecesitamantenerpequeñorecibidatribunaltenerifecancióncanariasdescargadiversosmallorcarequieretécnicodeberíaviviendafinanzasadelantefuncionaconsejosdifícilciudadesantiguasavanzadatérminounidadessánchezcampañasoftonicrevistascontienesectoresmomentosfacultadcréditodiversassupuestofactoressegundospequeñaгодаеÑ\81лиеÑ\81Ñ\82Ñ\8cбÑ\8bлобÑ\8bÑ\82Ñ\8cÑ\8dÑ\82омÐ\95Ñ\81лиÑ\82огоменÑ\8fвÑ\81еÑ
++++  situationswould havebusinessesDictionarystatementsoften usedpersistentin Januarycomprising</title>
++++  xicopáginasiempresistemaoctubreduranteañadirempresamomentonuestroprimeratravésgraciasnuestraprocesoestadoscalidadpersonanúmeroacuerdomúsicamiembroofertasalgunospaísesejemploderechoademásprivadoagregarenlacesposiblehotelessevillaprimeroúltimoeventosarchivoculturamujeresentradaanuncioembargomercadograndesestudiomejoresfebrerodiseñoturismocódigoportadaespaciofamiliaantoniopermiteguardaralgunaspreciosalguiensentidovisitastítuloconocersegundoconsejofranciaminutossegundatenemosefectosmálagasesiónrevistagranadacompraringresogarcíaacciónecuadorquienesinclusodeberámateriahombresmuestrapodríamañanaúltimaestamosoficialtambienningúnsaludospodemosmejorarpositionbusinesshomepagesecuritylanguagestandardcampaignfeaturescategoryexternalchildrenreservedresearchexchangefavoritetemplatemilitaryindustryservicesmaterialproductsz-index:commentssoftwarecompletecalendarplatformarticlesrequiredmovementquestionbuildingpoliticspossiblereligionphysicalfeedbackregisterpicturesdisabledprotocolaudiencesettingsactivityelementslearninganythingabstractprogressoverviewmagazineeconomictrainingpressurevarious <strong>propertyshoppingtogetheradvancedbehaviordownloadfeaturedfootballselectedLanguagedistanceremembertrackingpasswordmodifiedstudentsdirectlyfightingnortherndatabasefestivalbreakinglocationinternetdropdownpracticeevidencefunctionmarriageresponseproblemsnegativeprogramsanalysisreleasedbanner">purchasepoliciesregionalcreativeargumentbookmarkreferrerchemicaldivisioncallbackseparateprojectsconflicthardwareinterestdeliverymountainobtained= false;for(var acceptedcapacitycomputeridentityaircraftemployedproposeddomesticincludesprovidedhospitalverticalcollapseapproachpartnerslogo"><adaughterauthor" culturalfamilies/images/assemblypowerfulteachingfinisheddistrictcriticalcgi-bin/purposesrequireselectionbecomingprovidesacademicexerciseactuallymedicineconstantaccidentMagazinedocumentstartingbottom">observed: &quot;extendedpreviousSoftwarecustomerdecisionstrengthdetailedslightlyplanningtextareacurrencyeveryonestraighttransferpositiveproducedheritageshippingabsolutereceivedrelevantbutton" violenceanywherebenefitslaunchedrecentlyalliancefollowedmultiplebulletinincludedoccurredinternal$(this).republic><tr><tdcongressrecordedultimatesolution<ul id="discoverHome</a>websitesnetworksalthoughentirelymemorialmessagescontinueactive">somewhatvictoriaWestern title="LocationcontractvisitorsDownloadwithout right">
++++  xitolópezagendavídeoevitarpaginametrosjavierpadresfácilcabezaáreassalidaenvíojapónabusosbienestextosllevarpuedanfuertecomúnclaseshumanotenidobilbaounidadestáseditarcreadoдлÑ\8fÑ\87Ñ\82окакилиÑ\8dÑ\82овÑ\81еегопÑ\80иÑ\82акеÑ\89еÑ\83жеÐ\9aакбезбÑ\8bлониÐ\92Ñ\81еподЭÑ\82оÑ\82омÑ\87емнеÑ\82леÑ\82Ñ\80азонагдемнеÐ\94лÑ\8fÐ\9fÑ\80инаÑ\81ниÑ
++++  Ø§Ù\84اتصاÙ\84اتkeywords" content="w3.org/1999/xhtml"><a target="_blank" text/html; charset=" target="_blank"><table cellpadding="autocomplete="off" text-align: center;to last version by background-color: #" href="http:www./div></div><div id=<a href="#" class=""><img src="http:cript" src="http:
++++  Ø§Ù\84اغاÙ\86Ù\8acursor:pointer;</title>
++++License: UNKNOWN
++++ FIXME
++++
++++Files: test/fixtures/keys/rsa_cert.pfx
++++Copyright: fXò\19ûÓð\11K\80\17ºh¸\124\10\9dR\9apýtÖÙ>ª
++++  hÅQ\97\86Ωh\1f7\ 5Cqû
++++  \9eÕ\1cÀ¤íÁæ"¨ëuÌsà\9a\ 1\8a¸\19*\1e8PlíÁ6¿#\ 28bµ
++++  ÏAL@ð*}|ÁÄÖ¾(T\8aƽ²Q\ 2Õ\84vu
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/benchmarks/earley-boyer.js
++++Copyright: fill = c.val;
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/openssl/openssl/CHANGES
++++Copyright: into LICENSE
++++License: UNKNOWN
++++ FIXME
++++
++++Files: test/fixtures/url-idna.js
++++Copyright: ire.icom.museum'
++++  xico.icom.museum'
++++  ×¨×\90×\9c.museum'
++++License: UNKNOWN
++++ FIXME
++++
++++Files: benchmark/misc/punycode.js
++++Copyright: ire.icom.museum',
++++  ×¨×\90×\9c.museum',
++++License: UNKNOWN
++++ FIXME
++++
++++Files: test/parallel/test-buffer-bytelength.js
++++Copyright: llö wørlâ\88\82!', 'utf-8'), 19);
++++  tait tué'), 14);
++++  tait tué', 'utf8'), 14);
++++  tait tué', encoding), 12);
++++  tait tué', encoding), 24);
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/changelogs/CHANGELOG_V11.md
++++Copyright: phane Vasseur) [#23616
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/openssl/openssl/AUTHORS
++++Copyright: purposes.
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/changelogs/CHANGELOG_V12.md
++++Copyright: rez) [#30407
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/changelogs/CHANGELOG_V012.md
++++Copyright: ry) https:github.com/nodejs/node-v0.x-archive/pull/25811
++++License: UNKNOWN
++++ FIXME
++++
++++Files: debian/control
++++Copyright: rémy Lal <kapouer@melix.org>,
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/changelogs/CHANGELOG_V8.md
++++Copyright: rémy Lal) [#14566
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/changelogs/CHANGELOG_V10.md
++++Copyright: rémy Lal) [#20383
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/changelogs/CHANGELOG_V5.md
++++Copyright: rémy Lal) [#5813
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/api/buffer.json
++++Copyright: st');nn Creates a Buffer containing Latin-1 bytes [0x74, 0xe9, 0x73, 0x74
++++  st');nnconsole.log(buf2.toString('hex'));n Prints: 74c3a97374nconsole.log(buf2.toString('utf8', 0, 3));n Prints: ténconsole.log(buf2.toString(undefined, 0, 3));n Prints: tén</code></pre>",
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/api/all.json
++++Copyright: st');nn Creates a Buffer containing Latin-1 bytes [0x74, 0xe9, 0x73, 0x74
++++  st');nnconsole.log(buf2.toString('hex'));n Prints: 74c3a97374nconsole.log(buf2.toString('utf8', 0, 3));n Prints: ténconsole.log(buf2.toString(undefined, 0, 3));n Prints: tén</code></pre>",
++++  ¦');n https:xn--g6w251d/n</code></pre>n<p>This feature is only available if the <code>node</code> executable was compiled withn<a href="intl.html#intl_options_for_building_node_js">ICU</a> enabled. If not, the domain names are passed through unchanged.</p>n<p>In cases where it is not known in advance if <code>input</code> is an absolute URLnand a <code>base</code> is provided, it is advised to validate that the <code>origin</code> ofnthe <code>URL</code> object is what is expected.</p>n<pre><code class="language-js">let myURL = new URL('http:Example.com/', 'https:example.org/');n http:example.com/nnmyURL = new URL('https:Example.com/', 'https:example.org/');n https:example.com/nnmyURL = new URL('foo:Example.com/', 'https:example.org/');n foo:Example.com/nnmyURL = new URL('http:Example.com/', 'https:example.org/');n http:example.com/nnmyURL = new URL('https:Example.com/', 'https:example.org/');n https:example.org/Example.com/nnmyURL = new URL('foo:Example.com/', 'https:example.org/');n foo:Example.com/n</code></pre>",
++++  ¦');nconsole.log(idnURL.origin);n Prints https:xn--g6w251dnnconsole.log(idnURL.hostname);n Prints xn--g6w251dn</code></pre>",
++++  ¦?abc#foo');nnconsole.log(myURL.href);n Prints https:a:b@xn--g6w251d/?abc#foonnconsole.log(myURL.toString());n Prints https:a:b@xn--g6w251d/?abc#foonnconsole.log(url.format(myURL, { fragment: false, unicode: true, auth: false }));n Prints 'https:測試/?abc'n</code></pre>",
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/openssl/openssl/NEWS
++++Copyright: text was shrunk to a boilerplate that points to the license
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/v8/src/builtins/builtins-promise-gen.cc
++++Copyright: the {next_value} is a JSPromise whose [[Prototype
++++License: UNKNOWN
++++ FIXME
++++
++++Files: doc/api/url.json
++++Copyright: ¦');n https:xn--g6w251d/n</code></pre>n<p>This feature is only available if the <code>node</code> executable was compiled withn<a href="intl.html#intl_options_for_building_node_js">ICU</a> enabled. If not, the domain names are passed through unchanged.</p>n<p>In cases where it is not known in advance if <code>input</code> is an absolute URLnand a <code>base</code> is provided, it is advised to validate that the <code>origin</code> ofnthe <code>URL</code> object is what is expected.</p>n<pre><code class="language-js">let myURL = new URL('http:Example.com/', 'https:example.org/');n http:example.com/nnmyURL = new URL('https:Example.com/', 'https:example.org/');n https:example.com/nnmyURL = new URL('foo:Example.com/', 'https:example.org/');n foo:Example.com/nnmyURL = new URL('http:Example.com/', 'https:example.org/');n http:example.com/nnmyURL = new URL('https:Example.com/', 'https:example.org/');n https:example.org/Example.com/nnmyURL = new URL('foo:Example.com/', 'https:example.org/');n foo:Example.com/n</code></pre>",
++++  ¦');nconsole.log(idnURL.origin);n Prints https:xn--g6w251dnnconsole.log(idnURL.hostname);n Prints xn--g6w251dn</code></pre>",
++++  ¦?abc#foo');nnconsole.log(myURL.href);n Prints https:a:b@xn--g6w251d/?abc#foonnconsole.log(myURL.toString());n Prints https:a:b@xn--g6w251d/?abc#foonnconsole.log(url.format(myURL, { fragment: false, unicode: true, auth: false }));n Prints 'https:測試/?abc'n</code></pre>",
++++License: UNKNOWN
++++ FIXME
++++
++++Files: test/fixtures/keys/agent1.pfx
++++Copyright: Ç ¸TêYi2\94Þcäf\11\8d2¼oy?Ûü\a®\ 3Ù#Ç\ 6\1dÆ'u­N0"±ñ÷Ù4lwI\9b\ fLËn)¯¦_è
++++  Ó¼4ÏÈ\18¦Á8\1cgÓý\9b
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/zlib/zlib.3.pdf
++++Copyright: êëymmh\8cúñxÎ\91¬d¡\ 3ó\91
++++  í\ 5ZÃ'·Ô­\88à\82\151ÉqM÷B·\83È#2Ë»\19p\99~
++++  ûÝp?è\107wÈÄ\8c~\90$\ 2£\87\ e\9d
++++License: UNKNOWN
++++ FIXME
++++
++++Files: test/fixtures/person.jpg.br
++++Copyright: îØ\98\9c/\88\10$\94Õ_yÇÈb\93\92Æ66µ\97´\86ܸÕN\95ÁÝrx»+¶é\bîs[¾lí^¨r¼\99\1a
++++  òLm\1aGX\16V\84\87«ÐÒ¡Ks\93¯\92j.È&wÛìyg\91`cÚ¨Ôµ\15·Gµ\ e
++++  ò\90\ fÔÂøK4\ 5ÿÿ!Ô#dXÓêÚºK\1ck_È\8e\9c1ÍÎ\80-\9e\ f=\16I__të&Äm\16EJ\13\11`\ 6dr\9a[(\88\88\95p{\8ds\93HòÌDzJÞö7\13\11ÝúëPGvæ®\ 5Ì
++++  ô:ê'\97\14&Kà\13µå¼\1dóbV
++++  õçºò¬\15¿Þ·0¶¼6¢^Æ1_é\11§ë(Zp5\8fÞj\ 1YO
++++  ø_\14÷L\ 3tG¶&^3\9fþ\ 6×\95\98þ¶Ã\14\ 3Æ$ ÝD0SÊòKÚ÷­'±Ëe
++++  ú\95\1f\136gy\99ûy\15¬êf\9f\14å\1dr2K\9d\7f\7f\13IίuõØ)«w\94\95àóè\1eÆYv#%\96è±\1f23Û\9cTýL\ f\9fô5\87\82à>*³Ðê$\15\11\7fµ"ãý´ÅÃ\94\eX\ eFw\89Øâ&ä\9e\91\ fÈN\8b\ 4$Ui\1d{´Å8ääo\96mÓÒ_RL\88Y\99-¯Ô¤§\14çî«N
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/brotli/c/common/dictionary.bin.br
++++Copyright: îúHL°MÄÉ\16»_Ò\1d½¹U\1f\98|\ 5îK\ 6^
++++  ð½}yWTG¬\bÄyÅ
++++  òù4\ 6Ý\97ø¥Âg')\8f\95Ù*^³­¾9Ñ@Ñ«\7fÚî\8c(\1dq[y«\14\87\86ð\89¿5Z\83\a\9bÑ-:Ãþ\8e7ïøä\96#4õ+®É7\ 5_Yc¡¯UØÎ'W£r\16\87Ûªø\92qÐW\9eêh\18#\ e_ÙV\14\1eÂ\e\17v(
++++  ôZ\9c}·_«úñ^z[®òÖ\14­çzbT\9d\93(\e®JͼK    +\1dW^Ì\ 12ÏÖS-\82¾UÍ\ 2y\93÷ªP~0ò¡ûö¤¼æ;|6Î\18º
++++  õ.7\19/²éc\16\92n·v\91·>^ð\9d8k!\15Ìn\16MuVëëy%2
++++  õï7\9crVV\15±rÈô>G\9e"¹·¹EQ¢
++++  ÷\16O½¾z\12£¤¬1E+a²m\8b\ 4T
++++  û$Å ?Øi<*É1\8aø½Îôê\87,¨õ\1ao\89tû¼(RxÍ­i~qm\9aà\1a³.Ïæ\93\9e4ÃPPÓønpV¶»\8d>\a¸\9cJV¼4\7f´Z\91àý^ô\87æÒ|
++++  þFúÄÈÀÌc$Jê«=\12r\14­æÝxÇ\87Û\94\11ý¨ê×Ä\1aØ!í\ 4\ es9V3\14\ 6Ô·\1dZzî\91\ 6Û9.VÏ\87TÀÜ\ 5Ú#Y×9\14:r
++++  þKÚüÛ3y=õ<O·Î#W\9dÓ¬~\15\98ßÇX\11\97ÈÅ/¯\17
++++License: UNKNOWN
++++ FIXME
++++
++++Files: test/fixtures/keys/agent10.pfx
++++Copyright: ï­|ãR\16pWeÃÁn\92P\90Þò²\81=ED|Ô,£?\e\ 4³!\e\8b)î¦Ûñ#\ 1ª¹\84ï?\92«\87,DòýÂè\87Û¨ì©ãtâa\ 6g\9cXE\84<.Ü
++++License: UNKNOWN
++++ FIXME
++++
++++Files: test/fixtures/person.jpg.gz
++++Copyright: ÿ
++++License: UNKNOWN
++++ FIXME
++++
++++Files: deps/zlib/examples/gzappend.c
++++Copyright: 2003, 2012, Mark Adler
++++  2003, 2012, Mark Adlern"
++++License: Zlib
++++ FIXME
++++
++++Files: deps/v8/src/base/functional.cc
++++Copyright: 2014, the V8 project authors.
++++License: public-domain
++++ FIXME
++++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e3d4e695a4cff2bf9c1da6c69841ca22bc9f0224
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,18 @@@@@
++++Copyright Joyent, Inc. and other Node contributors. All rights reserved.
++++Permission is hereby granted, free of charge, to any person obtaining a copy
++++of this software and associated documentation files (the "Software"), to
++++deal in the Software without restriction, including without limitation the
++++rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
++++sell copies of the Software, and to permit persons to whom the Software is
++++furnished to do so, subject to the following conditions:
++++
++++The above copyright notice and this permission notice shall be included in
++++all copies or substantial portions of the Software.
++++
++++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++++IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++++FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
++++AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
++++LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
++++FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
++++IN THE SOFTWARE.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e2aedfb1b5662251d3738c3831b64d780fc8409a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,108 @@@@@
++++Here's how the node docs work.
++++
++++1:1 relationship from `lib/<module>.js` to `doc/api/<module>.md`.
++++
++++Each type of heading has a description block.
++++
++++```markdown
++++# module
++++
++++<!--introduced_in=v0.10.0-->
++++
++++> Stability: 2 - Stable
++++
++++A description and examples.
++++
++++## module.property
++++<!-- YAML
++++added: v0.10.0
++++-->
++++
++++* {type}
++++
++++A description of the property.
++++
++++## module.someFunction(x, y, [z=100])
++++<!-- YAML
++++added: v0.10.0
++++-->
++++
++++* `x` {string} The description of the string.
++++* `y` {boolean} Should I stay or should I go?
++++* `z` {number} How many zebras to bring. **Default:** `100`.
++++
++++A description of the function.
++++
++++## module.someNewFunction(x)
++++<!-- YAML
++++added: REPLACEME
++++-->
++++
++++* `x` {string} The description of the string.
++++
++++This feature is not in a release yet.
++++
++++## Event: 'blerg'
++++<!-- YAML
++++added: v0.10.0
++++-->
++++
++++* `anArg` {type} A description of the listener argument.
++++
++++Modules don't usually raise events on themselves. `cluster` is the
++++only exception.
++++
++++## Class: SomeClass
++++<!-- YAML
++++added: v0.10.0
++++-->
++++
++++A description of the class.
++++
++++### SomeClass.classMethod(anArg)
++++<!-- YAML
++++added: v0.10.0
++++-->
++++
++++* `anArg` {Object} Just an argument.
++++  * `field` {string} `anArg` can have this field.
++++  * `field2` {boolean} Another field. **Default:** `false`.
++++* Returns: {boolean} `true` if it worked.
++++
++++A description of the method for humans.
++++
++++### SomeClass.nextSibling()
++++<!-- YAML
++++added: v0.10.0
++++-->
++++
++++* Returns: {SomeClass | null} The next `SomeClass` in line.
++++
++++`SomeClass` must be registered in `tools/doc/type-parser.mjs`
++++to be properly parsed in `{type}` fields.
++++
++++### SomeClass.someProperty
++++<!-- YAML
++++added: v0.10.0
++++-->
++++
++++* {string}
++++
++++The indication of what `someProperty` is.
++++
++++### Event: 'grelb'
++++<!-- YAML
++++added: v0.10.0
++++-->
++++
++++* `isBlerg` {boolean}
++++
++++This event is emitted on instances of `SomeClass`, not on the module itself.
++++```
++++
++++* Classes have (description, Properties, Methods, Events).
++++* Events have (list of listener arguments, description).
++++* Functions have (list of arguments, returned value if defined, description).
++++* Methods have (list of arguments, returned value if defined, description).
++++* Modules have (description, Properties, Functions, Classes, Examples).
++++* Properties have (type, description).
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..92bbb7c0c3eb02665f112d900a38af1492a8579a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,89 @@@@@
++++// doc/api/addons.md has a bunch of code.  Extract it for verification
++++// that the C++ code compiles and the js code runs.
++++// Add .gyp files which will be used to compile the C++ code.
++++// Modify the require paths in the js code to pull from the build tree.
++++// Triggered from the build-addons target in the Makefile and vcbuild.bat.
++++
++++import { mkdir, readFile, writeFile } from 'fs/promises';
++++import { resolve } from 'path';
++++import { lexer } from 'marked';
++++
++++
++++const rootDir = new URL('../../', import.meta.url);
++++const doc = new URL('./doc/api/addons.md', rootDir);
++++const verifyDir = new URL('./test/addons/', rootDir);
++++
++++const tokens = lexer(await readFile(doc, 'utf8'));
++++
++++const addons = {};
++++let id = 0;
++++let currentHeader;
++++
++++const validNames = /^\/\/\s+(.*\.(?:cc|h|js))[\r\n]/;
++++tokens.forEach(({ type, text }) => {
++++  if (type === 'heading') {
++++    currentHeader = text;
++++    addons[currentHeader] = { files: {} };
++++  } else if (node.type === 'code') {
++++    const match = node.value.match(validNames);
++++    if (match !== null) {
++++      addons[currentHeader].files[match[1]] = text;
++++    }
++++  }
++++});
++++
++++await Promise.all(
++++  Object.keys(addons).flatMap(
++++    (header) => verifyFiles(addons[header].files, header),
++++  ));
++++
++++function verifyFiles(files, blockName) {
++++  const fileNames = Object.keys(files);
++++
++++  // Must have a .cc and a .js to be a valid test.
++++  if (!fileNames.some((name) => name.endsWith('.cc')) ||
++++      !fileNames.some((name) => name.endsWith('.js'))) {
++++    return [];
++++  }
++++
++++  blockName = blockName.toLowerCase().replace(/\s/g, '_').replace(/\W/g, '');
++++  const dir = new URL(
++++    `./${String(++id).padStart(2, '0')}_${blockName}/`,
++++    verifyDir,
++++  );
++++
++++  files = fileNames.map((name) => {
++++    if (name === 'test.js') {
++++      files[name] = `'use strict';
++++const common = require('../../common');
++++${files[name].replace(
++++    "'./build/Release/addon'",
++++    // eslint-disable-next-line no-template-curly-in-string
++++    '`./build/${common.buildType}/addon`')}
++++`;
++++    }
++++    return {
++++      content: files[name],
++++      name,
++++      url: new URL(`./${name}`, dir),
++++    };
++++  });
++++
++++  files.push({
++++    url: new URL('./binding.gyp', dir),
++++    content: JSON.stringify({
++++      targets: [
++++        {
++++          target_name: 'addon',
++++          sources: files.map(({ name }) => name),
++++          includes: ['../common.gypi'],
++++        },
++++      ],
++++    }),
++++  });
++++
++++  const dirCreation = mkdir(dir);
++++
++++  return files.map(({ url, content }) =>
++++    dirCreation.then(() => writeFile(url, content)));
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1cbbb6611cb39cff870e7ca94e9ece4944a9ae80
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,110 @@@@@
++++// Build all.html by combining the generated toc and apicontent from each
++++// of the generated html files.
++++
++++import fs from 'fs';
++++
++++const source = new URL('../../out/doc/api/', import.meta.url);
++++
++++// Get a list of generated API documents.
++++const htmlFiles = fs.readdirSync(source, 'utf8')
++++  .filter((name) => name.includes('.html') && name !== 'all.html');
++++
++++// Read the table of contents.
++++const toc = fs.readFileSync(new URL('./index.html', source), 'utf8');
++++
++++// Extract (and concatenate) the toc and apicontent from each document.
++++let contents = '';
++++let apicontent = '';
++++
++++// Identify files that should be skipped. As files are processed, they
++++// are added to this list to prevent dupes.
++++const seen = new Set(['all.html', 'index.html']);
++++
++++for (const link of toc.match(/<a.*?>/g)) {
++++  const href = /href="(.*?)"/.exec(link)[1];
++++  if (!htmlFiles.includes(href) || seen.has(href)) continue;
++++  const data = fs.readFileSync(new URL(`./${href}`, source), 'utf8');
++++
++++  // Split the doc.
++++  const match = /(<\/ul>\s*)?<\/\w+>\s*<\w+ role="main" id="apicontent">/.exec(data);
++++
++++  // Get module name
++++  const moduleName = href.replace(/\.html$/, '');
++++
++++  contents += data.slice(0, match.index)
++++    .replace(/[\s\S]*?id="toc"[^>]*>\s*<\w+>.*?<\/\w+>\s*(<ul>\s*)?/, '')
++++    // Prefix TOC links with current module name
++++    .replace(/<a href="#(?!DEP[0-9]{4})([^"]+)"/g, (match, anchor) => {
++++      return `<a href="#all_${moduleName}_${anchor}"`;
++++    });
++++
++++  apicontent += '<section>' + data.slice(match.index + match[0].length)
++++    .replace(/<!-- API END -->[\s\S]*/, '</section>')
++++    // Prefix all in-page anchor marks with module name
++++    .replace(/<a class="mark" href="#([^"]+)" id="([^"]+)"/g, (match, anchor, id) => {
++++      if (anchor !== id) throw new Error(`Mark does not match: ${anchor} should match ${id}`);
++++      return `<a class="mark" href="#all_${moduleName}_${anchor}" id="all_${moduleName}_${anchor}"`;
++++    })
++++    // Prefix all in-page links with current module name
++++    .replace(/<a href="#(?!DEP[0-9]{4})([^"]+)"/g, (match, anchor) => {
++++      return `<a href="#all_${moduleName}_${anchor}"`;
++++    })
++++    // Update footnote id attributes on anchors
++++    .replace(/<a href="([^"]+)" id="(user-content-fn[^"]+)"/g, (match, href, id) => {
++++      return `<a href="${href}" id="all_${moduleName}_${id}"`;
++++    })
++++    // Update footnote id attributes on list items
++++    .replace(/<(\S+) id="(user-content-fn[^"]+)"/g, (match, tagName, id) => {
++++      return `<${tagName} id="all_${moduleName}_${id}"`;
++++    })
++++    // Prefix all links to other docs modules with those module names
++++    .replace(/<a href="((\w[^#"]*)\.html)#/g, (match, href, linkModule) => {
++++      if (!htmlFiles.includes(href)) return match;
++++      return `<a href="#all_${linkModule}_`;
++++    })
++++    .trim() + '\n';
++++
++++  // Mark source as seen.
++++  seen.add(href);
++++}
++++
++++// Replace various mentions of index with all.
++++let all = toc.replace(/index\.html/g, 'all.html')
++++  .replace('<a href="all.html">', '<a href="index.html">')
++++  .replace('index.json', 'all.json')
++++  .replace('api-section-index', 'api-section-all')
++++  .replace('data-id="index"', 'data-id="all"')
++++  .replace(/<li class="edit_on_github">.*?<\/li>/, '');
++++
++++// Clean up the title.
++++all = all.replace(/<title>.*?\| /, '<title>');
++++
++++// Insert the combined table of contents.
++++const tocStart = /<!-- TOC -->/.exec(all);
++++all = all.slice(0, tocStart.index + tocStart[0].length) +
++++  '<details id="toc" open><summary>Table of contents</summary>\n' +
++++  '<ul>\n' + contents + '</ul>\n' +
++++  '</details>\n' +
++++  all.slice(tocStart.index + tocStart[0].length);
++++
++++// Replace apicontent with the concatenated set of apicontents from each source.
++++const apiStart = /<\w+ role="main" id="apicontent">\s*/.exec(all);
++++const apiEnd = all.lastIndexOf('<!-- API END -->');
++++all = all.slice(0, apiStart.index + apiStart[0].length) +
++++  apicontent +
++++  all.slice(apiEnd);
++++
++++// Write results.
++++fs.writeFileSync(new URL('./all.html', source), all, 'utf8');
++++
++++// Validate all hrefs have a target.
++++const idRe = / id="([^"]+)"/g;
++++const ids = new Set([...all.matchAll(idRe)].map((match) => match[1]));
++++
++++const hrefRe = / href="#([^"]+)"/g;
++++const hrefMatches = all.matchAll(hrefRe);
++++for (const match of hrefMatches) {
++++  if (!ids.has(match[1])) {
++++    console.error(`link not found: ${match[1]}`);
++++  }
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a5ff7c7e9badafd18df72a10e5e18c08db24cdff
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,54 @@@@@
++++// Build all.json by combining the miscs, modules, classes, globals, and methods
++++// from the generated json files.
++++
++++import fs from 'fs';
++++
++++const source = new URL('../../out/doc/api/', import.meta.url);
++++
++++// Get a list of generated API documents.
++++const jsonFiles = fs.readdirSync(source, 'utf8')
++++  .filter((name) => name.includes('.json') && name !== 'all.json');
++++
++++// Read the table of contents.
++++const toc = fs.readFileSync(new URL('./index.html', source), 'utf8');
++++
++++// Initialize results. Only these four data values will be collected.
++++const results = {
++++  miscs: [],
++++  modules: [],
++++  classes: [],
++++  globals: [],
++++  methods: [],
++++};
++++
++++// Identify files that should be skipped. As files are processed, they
++++// are added to this list to prevent dupes.
++++const seen = new Set(['all.json', 'index.json']);
++++
++++// Extract (and concatenate) the selected data from each document.
++++// Expand hrefs found in json to include source HTML file.
++++for (const link of toc.match(/<a.*?>/g)) {
++++  const href = /href="(.*?)"/.exec(link)[1];
++++  const json = href.replace('.html', '.json');
++++  if (!jsonFiles.includes(json) || seen.has(json)) continue;
++++  const data = JSON.parse(
++++    fs.readFileSync(new URL(`./${json}`, source), 'utf8')
++++      .replace(/<a href=\\"#/g, `<a href=\\"${href}#`),
++++  );
++++
++++  for (const property in data) {
++++    if (Object.hasOwn(results, property)) {
++++      data[property].forEach((mod) => {
++++        mod.source = data.source;
++++      });
++++      results[property].push(...data[property]);
++++    }
++++  }
++++
++++  // Mark source as seen.
++++  seen.add(json);
++++}
++++
++++// Write results.
++++fs.writeFileSync(new URL('./all.json', source),
++++                 `${JSON.stringify(results, null, 2)}\n`, 'utf8');
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..93b590d0104c6c63edb4c3ceec823fb7967bebe2
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,212 @@@@@
++++// Scan API sources for definitions.
++++//
++++// Note the output is produced based on a world class parser, adherence to
++++// conventions, and a bit of guess work. Examples:
++++//
++++//  * We scan for top level module.exports statements, and determine what
++++//    is exported by looking at the source code only (i.e., we don't do
++++//    an eval). If exports include `Foo`, it probably is a class, whereas
++++//    if what is exported is `constants` it probably is prefixed by the
++++//    basename of the source file (e.g., `zlib`), unless that source file is
++++//    `buffer.js`, in which case the name is just `buf`.  unless the constant
++++//    is `kMaxLength`, in which case it is `buffer`.
++++//
++++//  * We scan for top level definitions for those exports, handling
++++//    most common cases (e.g., `X.prototype.foo =`, `X.foo =`,
++++//    `function X(...) {...}`). Over time, we expect to handle more
++++//    cases (example: ES2015 class definitions).
++++
++++import child_process from 'child_process';
++++import fs from 'fs';
++++import path from 'path';
++++
++++import * as acorn from 'acorn';
++++
++++// Run a command, capturing stdout, ignoring errors.
++++function execSync(command) {
++++  try {
++++    return child_process.execSync(
++++      command,
++++      { stdio: ['ignore', null, 'ignore'] }
++++    ).toString().trim();
++++  } catch {
++++    return '';
++++  }
++++}
++++
++++// Determine origin repo and tag (or hash) of the most recent commit.
++++const localBranch = execSync('git name-rev --name-only HEAD');
++++const trackingRemote = execSync(`git config branch.${localBranch}.remote`);
++++const remoteUrl = execSync(`git config remote.${trackingRemote}.url`);
++++const repo = (remoteUrl.match(/(\w+\/\w+)\.git\r?\n?$/) ||
++++             ['', 'nodejs/node'])[1];
++++
++++const hash = execSync('git log -1 --pretty=%H') || 'main';
++++const tag = execSync(`git describe --contains ${hash}`).split('\n')[0] || hash;
++++
++++// Extract definitions from each file specified.
++++const definition = {};
++++const output = process.argv[2];
++++const inputs = process.argv.slice(3);
++++inputs.forEach((file) => {
++++  const basename = path.basename(file, '.js');
++++
++++  // Parse source.
++++  const source = fs.readFileSync(file, 'utf8');
++++  const ast = acorn.parse(source, {
++++    allowReturnOutsideFunction: true,
++++    ecmaVersion: 'latest',
++++    locations: true,
++++  });
++++  const program = ast.body;
++++
++++  // Build link
++++  const link =
++++    `https://github.com/${repo}/blob/${tag}/${path.relative('.', file).replace(/\\/g, '/')}`;
++++
++++  // Scan for exports.
++++  const exported = { constructors: [], identifiers: [] };
++++  const indirect = {};
++++  program.forEach((statement) => {
++++    if (statement.type === 'ExpressionStatement') {
++++      const expr = statement.expression;
++++      if (expr.type !== 'AssignmentExpression') return;
++++
++++      let lhs = expr.left;
++++      if (lhs.type !== 'MemberExpression') return;
++++      if (lhs.object.type === 'MemberExpression') lhs = lhs.object;
++++      if (lhs.object.name === 'exports') {
++++        const name = lhs.property.name;
++++        if (expr.right.type === 'FunctionExpression') {
++++          definition[`${basename}.${name}`] =
++++            `${link}#L${statement.loc.start.line}`;
++++        } else if (expr.right.type === 'Identifier') {
++++          if (expr.right.name === name) {
++++            indirect[name] = `${basename}.${name}`;
++++          }
++++        } else {
++++          exported.identifiers.push(name);
++++        }
++++      } else if (lhs.object.name === 'module') {
++++        if (lhs.property.name !== 'exports') return;
++++
++++        let rhs = expr.right;
++++        while (rhs.type === 'AssignmentExpression') rhs = rhs.right;
++++
++++        if (rhs.type === 'NewExpression') {
++++          exported.constructors.push(rhs.callee.name);
++++        } else if (rhs.type === 'ObjectExpression') {
++++          rhs.properties.forEach((property) => {
++++            if (property.value.type === 'Identifier') {
++++              exported.identifiers.push(property.value.name);
++++              if (/^[A-Z]/.test(property.value.name[0])) {
++++                exported.constructors.push(property.value.name);
++++              }
++++            }
++++          });
++++        } else if (rhs.type === 'Identifier') {
++++          exported.identifiers.push(rhs.name);
++++        }
++++      }
++++    } else if (statement.type === 'VariableDeclaration') {
++++      for (const decl of statement.declarations) {
++++        let init = decl.init;
++++        while (init && init.type === 'AssignmentExpression') init = init.left;
++++        if (!init || init.type !== 'MemberExpression') continue;
++++        if (init.object.name === 'exports') {
++++          definition[`${basename}.${init.property.name}`] =
++++            `${link}#L${statement.loc.start.line}`;
++++        } else if (init.object.name === 'module') {
++++          if (init.property.name !== 'exports') continue;
++++          exported.constructors.push(decl.id.name);
++++          definition[decl.id.name] = `${link}#L${statement.loc.start.line}`;
++++        }
++++      }
++++    }
++++  });
++++
++++  // Scan for definitions matching those exports; currently supports:
++++  //
++++  //   ClassName.foo = ...;
++++  //   ClassName.prototype.foo = ...;
++++  //   function Identifier(...) {...};
++++  //   class Foo {...};
++++  //
++++  program.forEach((statement) => {
++++    if (statement.type === 'ExpressionStatement') {
++++      const expr = statement.expression;
++++      if (expr.type !== 'AssignmentExpression') return;
++++      if (expr.left.type !== 'MemberExpression') return;
++++
++++      let object;
++++      if (expr.left.object.type === 'MemberExpression') {
++++        if (expr.left.object.property.name !== 'prototype') return;
++++        object = expr.left.object.object;
++++      } else if (expr.left.object.type === 'Identifier') {
++++        object = expr.left.object;
++++      } else {
++++        return;
++++      }
++++
++++      if (!exported.constructors.includes(object.name)) return;
++++
++++      let objectName = object.name;
++++      if (expr.left.object.type === 'MemberExpression') {
++++        objectName = objectName.toLowerCase();
++++        if (objectName === 'buffer') objectName = 'buf';
++++      }
++++
++++      let name = expr.left.property.name;
++++      if (expr.left.computed) {
++++        name = `${objectName}[${name}]`;
++++      } else {
++++        name = `${objectName}.${name}`;
++++      }
++++
++++      definition[name] = `${link}#L${statement.loc.start.line}`;
++++
++++      if (expr.left.property.name === expr.right.name) {
++++        indirect[expr.right.name] = name;
++++      }
++++
++++    } else if (statement.type === 'FunctionDeclaration') {
++++      const name = statement.id.name;
++++      if (!exported.identifiers.includes(name)) return;
++++      if (basename.startsWith('_')) return;
++++      definition[`${basename}.${name}`] =
++++        `${link}#L${statement.loc.start.line}`;
++++
++++    } else if (statement.type === 'ClassDeclaration') {
++++      if (!exported.constructors.includes(statement.id.name)) return;
++++      definition[statement.id.name] = `${link}#L${statement.loc.start.line}`;
++++
++++      const name = statement.id.name.slice(0, 1).toLowerCase() +
++++                  statement.id.name.slice(1);
++++
++++      statement.body.body.forEach((defn) => {
++++        if (defn.type !== 'MethodDefinition') return;
++++        if (defn.kind === 'method') {
++++          definition[`${name}.${defn.key.name}`] =
++++            `${link}#L${defn.loc.start.line}`;
++++        } else if (defn.kind === 'constructor') {
++++          definition[`new ${statement.id.name}`] =
++++            `${link}#L${defn.loc.start.line}`;
++++        }
++++      });
++++    }
++++  });
++++
++++  // Search for indirect references of the form ClassName.foo = foo;
++++  if (Object.keys(indirect).length > 0) {
++++    program.forEach((statement) => {
++++      if (statement.type === 'FunctionDeclaration') {
++++        const name = statement.id.name;
++++        if (indirect[name]) {
++++          definition[indirect[name]] = `${link}#L${statement.loc.start.line}`;
++++        }
++++      }
++++    });
++++  }
++++});
++++
++++fs.writeFileSync(output, JSON.stringify(definition, null, 2), 'utf8');
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..aeb0fe5d03f2325e1fc1f9e6156e98218292964a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,76 @@@@@
++++'use strict';
++++
++++const fs = require('fs');
++++const { extname, join, resolve } = require('path');
++++const unified = require('unified');
++++const { pathToFileURL } = require('url');
++++const DIR = resolve(process.argv[2]);
++++
++++console.log('Running Markdown link checker...');
++++findMarkdownFilesRecursively(DIR);
++++
++++function* getLinksRecursively(node) {
++++  if (node.url && !node.url.startsWith('#')) {
++++    yield node;
++++  }
++++  for (const child of node.children || []) {
++++    yield* getLinksRecursively(child);
++++  }
++++}
++++
++++function findMarkdownFilesRecursively(dirPath) {
++++  const entries = fs.readdirSync(dirPath, { withFileTypes: true });
++++
++++  for (const entry of entries) {
++++    const path = join(dirPath, entry.name);
++++
++++    if (
++++      entry.isDirectory() &&
++++      entry.name !== 'api' &&
++++      entry.name !== 'build' &&
++++      entry.name !== 'changelogs' &&
++++      entry.name !== 'deps' &&
++++      entry.name !== 'fixtures' &&
++++      entry.name !== 'gyp' &&
++++      entry.name !== 'node_modules' &&
++++      entry.name !== 'out' &&
++++      entry.name !== 'tmp'
++++    ) {
++++      findMarkdownFilesRecursively(path);
++++    } else if (entry.isFile() && extname(entry.name) === '.md') {
++++      checkFile(path);
++++    }
++++  }
++++}
++++
++++function checkFile(path) {
++++  const tree = unified()
++++    .use(require('remark-parse'))
++++    .parse(fs.readFileSync(path));
++++
++++  const base = pathToFileURL(path);
++++  let previousDefinitionLabel;
++++  for (const node of getLinksRecursively(tree)) {
++++    const targetURL = new URL(node.url, base);
++++    if (targetURL.protocol === 'file:' && !fs.existsSync(targetURL)) {
++++      const { line, column } = node.position.start;
++++      console.error((process.env.GITHUB_ACTIONS ?
++++        `::error file=${path},line=${line},col=${column}::` : '') +
++++        `Broken link at ${path}:${line}:${column} (${node.url})`);
++++      process.exitCode = 1;
++++    }
++++    if (node.type === 'definition') {
++++      if (previousDefinitionLabel &&
++++          previousDefinitionLabel > node.label) {
++++        const { line, column } = node.position.start;
++++        console.error((process.env.GITHUB_ACTIONS ?
++++          `::error file=${path},line=${line},col=${column}::` : '') +
++++          `Unordered reference at ${path}:${line}:${column} (` +
++++          `"${node.label}" should be before "${previousDefinitionLabel})"`
++++        );
++++        process.exitCode = 1;
++++      }
++++      previousDefinitionLabel = node.label;
++++    }
++++  }
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..2f838e3b15016abe0d9b8542558b4a5d91c536cd
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,45 @@@@@
++++import yaml from 'js-yaml';
++++
++++export function isYAMLBlock(text) {
++++  return /^<!-- YAML/.test(text);
++++}
++++
++++export function isSourceLink(text) {
++++  return /^<!-- source_link=([^\s/]+\/)+\w+\.\w+ -->/.test(text);
++++}
++++
++++export function arrify(value) {
++++  return Array.isArray(value) ? value : [value];
++++}
++++
++++export function extractAndParseYAML(text) {
++++  text = text.trim()
++++             .replace(/^<!-- YAML/, '')
++++             .replace(/-->$/, '');
++++
++++  // js-yaml.load() throws on error.
++++  const meta = yaml.load(text);
++++
++++  if (meta.added) {
++++    // Since semver-minors can trickle down to previous major versions,
++++    // features may have been added in multiple versions.
++++    meta.added = arrify(meta.added);
++++  }
++++
++++  if (meta.napiVersion) {
++++    meta.napiVersion = arrify(meta.napiVersion);
++++  }
++++
++++  if (meta.deprecated) {
++++    // Treat deprecated like added for consistency.
++++    meta.deprecated = arrify(meta.deprecated);
++++  }
++++
++++  if (meta.removed) {
++++    meta.removed = arrify(meta.removed);
++++  }
++++
++++  meta.changes = meta.changes || [];
++++
++++  return meta;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7807abea9b4ac3fd22129eae21864027b9348d3a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,110 @@@@@
++++// Copyright Joyent, Inc. and other Node contributors.
++++//
++++// Permission is hereby granted, free of charge, to any person obtaining a
++++// copy of this software and associated documentation files (the
++++// "Software"), to deal in the Software without restriction, including
++++// without limitation the rights to use, copy, modify, merge, publish,
++++// distribute, sublicense, and/or sell copies of the Software, and to permit
++++// persons to whom the Software is furnished to do so, subject to the
++++// following conditions:
++++//
++++// The above copyright notice and this permission notice shall be included
++++// in all copies or substantial portions of the Software.
++++//
++++// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
++++// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++++// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
++++// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
++++// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
++++// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
++++// USE OR OTHER DEALINGS IN THE SOFTWARE.
++++
++++import { promises as fs } from 'fs';
++++import path from 'path';
++++
++++import * as html from './html.mjs';
++++import * as json from './json.mjs';
++++
++++// Parse the args.
++++// Don't use nopt or whatever for this. It's simple enough.
++++
++++const args = process.argv.slice(2);
++++let filename = null;
++++let nodeVersion = null;
++++let outputDir = null;
++++let apilinks = {};
++++let versions = [];
++++
++++async function main() {
++++  for (const arg of args) {
++++  if (!arg.startsWith('--')) {
++++    filename = arg;
++++  } else if (arg.startsWith('--node-version=')) {
++++    nodeVersion = arg.replace(/^--node-version=/, '');
++++    } else if (arg.startsWith('--output-directory=')) {
++++      outputDir = arg.replace(/^--output-directory=/, '');
++++    } else if (arg.startsWith('--apilinks=')) {
++++      const linkFile = arg.replace(/^--apilinks=/, '');
++++      const data = await fs.readFile(linkFile, 'utf8');
++++      if (!data.trim()) {
++++        throw new Error(`${linkFile} is empty`);
++++  }
++++      apilinks = JSON.parse(data);
++++    } else if (arg.startsWith('--versions-file=')) {
++++      const versionsFile = arg.replace(/^--versions-file=/, '');
++++      const data = await fs.readFile(versionsFile, 'utf8');
++++      if (!data.trim()) {
++++        throw new Error(`${versionsFile} is empty`);
++++      }
++++      versions = JSON.parse(data);
++++    }
++++  }
++++
++++nodeVersion = nodeVersion || process.version;
++++
++++if (!filename) {
++++  throw new Error('No input file specified');
++++  } else if (!outputDir) {
++++    throw new Error('No output directory specified');
++++  }
++++
++++  const input = await fs.readFile(filename, 'utf8');
++++
++++  const myJson = await json.jsonAPI(input, filename);
++++  const myHtml = await html.toHTML({ input, filename, nodeVersion,
++++    versions, apilinks
++++  });
++++  const basename = path.basename(filename, '.md');
++++  const htmlTarget = path.join(outputDir, `${basename}.html`);
++++  const jsonTarget = path.join(outputDir, `${basename}.json`);
++++
++++  return Promise.allSettled([
++++    fs.writeFile(htmlTarget, myHtml),
++++    fs.writeFile(jsonTarget, JSON.stringify(myJson, null, 2)),
++++  ]);
++++  }
++++
++++main()
++++  .then((tasks) => {
++++    // Filter rejected tasks
++++    const errors = tasks.filter(({ status }) => status === 'rejected')
++++      .map(({ reason }) => reason);
++++
++++    // Log errors
++++    for (const error of errors) {
++++      console.error(error);
++++    }
++++
++++    // Exit process with code 1 if some errors
++++    if (errors.length > 0) {
++++      return process.exit(1);
++++    }
++++
++++    // Else with code 0
++++    process.exit(0);
++++  })
++++  .catch((error) => {
++++    console.error(error);
++++
++++    process.exit(1);
++++});
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f6619ee421b442ff99ef3cb0f4c95c0df0fa7a22
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,477 @@@@@
++++// Copyright Joyent, Inc. and other Node contributors.
++++//
++++// Permission is hereby granted, free of charge, to any person obtaining a
++++// copy of this software and associated documentation files (the
++++// "Software"), to deal in the Software without restriction, including
++++// without limitation the rights to use, copy, modify, merge, publish,
++++// distribute, sublicense, and/or sell copies of the Software, and to permit
++++// persons to whom the Software is furnished to do so, subject to the
++++// following conditions:
++++//
++++// The above copyright notice and this permission notice shall be included
++++// in all copies or substantial portions of the Software.
++++//
++++// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
++++// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++++// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
++++// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
++++// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
++++// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
++++// USE OR OTHER DEALINGS IN THE SOFTWARE.
++++
++++import fs from 'fs';
++++import path from 'path';
++++
++++import { marked } from 'marked';
++++
++++marked.setOptions({ headerIds: true });
++++
++++
++++import * as common from './common.mjs';
++++import * as typeParser from './type-parser.mjs';
++++
++++const docPath = new URL('../../doc/', import.meta.url);
++++
++++const gtocPath = new URL('./api/index.md', docPath);
++++const gtocMD = fs.readFileSync(gtocPath, 'utf8')
++++  .replace(/\(([^#?]+?)\.md\)/ig, (_, filename) => `(${filename}.html)`)
++++  .replace(/^<!--.*?-->/gms, '');
++++const gtocHTML = marked.parse(gtocMD, marked.defaults).replace(
++++  /<a href="(.*?)"/g,
++++  (all, href) => `<a href="${href}" class="nav-${href.replace('.html', '')
++++                                      .replace(/\W+/g, '-')}"`
++++);
++++
++++const templatePath = new URL('./template.html', docPath);
++++const template = fs.readFileSync(templatePath, 'utf8');
++++
++++import { replaceLinks } from './markdown.mjs';
++++const linksMapperFile = new URL('links-mapper.json', import.meta.url);
++++const linksMapper = JSON.parse(fs.readFileSync(linksMapperFile, 'utf8'));
++++
++++function processContent(content) {
++++  content = content.toString();
++++  // Increment header tag levels to avoid multiple h1 tags in a doc.
++++  // This means we can't already have an <h6>.
++++  if (content.includes('<h6>')) {
++++    throw new Error('Cannot increment a level 6 header');
++++  }
++++  // `++level` to convert the string to a number and increment it.
++++  content = content.replace(/(?<=<\/?h)[1-5](?=[^<>]*>)/g, (level) => ++level);
++++  // Wrap h3 tags in section tags unless they are immediately preceded by a
++++  // section tag. The latter happens when GFM footnotes are generated. We don't
++++  // want to add another section tag to the footnotes section at the end of the
++++  // document because that will result in an empty section element. While not an
++++  // HTML error, it's enough for validator.w3.org to print a warning.
++++  let firstTime = true;
++++  return content
++++    .replace(/(?<!<section [^>]+>)<h3/g, (heading) => {
++++      if (firstTime) {
++++        firstTime = false;
++++        return '<section>' + heading;
++++      }
++++      return '</section><section>' + heading;
++++    }) + (firstTime ? '' : '</section>');
++++}
++++
++++export async function toHTML({ input, filename, nodeVersion, versions, apilinks }) {
++++  filename = path.basename(filename, '.md');
++++
++++  input = input.replace(/\\\[\]/g, '[]');
++++
++++  const lexed = marked.lexer(input);
++++
++++  const firstHeading = lexed.find(({ type }) => type === 'heading');
++++  const section = firstHeading ? firstHeading.text : 'Index';
++++
++++  preprocessText(lexed);
++++  preprocessElements(lexed, { filename });
++++
++++  marked.walkTokens(lexed, replaceLinks({ filename, linksMapper }));
++++  const tocContent = buildToc(lexed, { filename, apilinks });
++++  const content = marked.parser(lexed, marked.defaults);
++++
++++  const id = filename.replace(/\W+/g, '-');
++++
++++  let HTML = template.replace('__ID__', id)
++++                     .replace(/__FILENAME__/g, filename)
++++                     .replace('__SECTION__', section)
++++                     .replace(/__VERSION__/g, nodeVersion)
++++                     .replace(/__TOC__/g, tocContent.toc)
++++                     .replace(/__TOC_PICKER__/g, tocPicker(id, tocContent))
++++                     .replace(/__GTOC_PICKER__/g, gtocPicker(id))
++++                     .replace(/__GTOC__/g, gtocHTML.replace(
++++                       `class="nav-${id}"`, `class="nav-${id} active"`))
++++                     .replace('__EDIT_ON_GITHUB__', editOnGitHub(filename))
++++                     .replace('__CONTENT__', processContent(content));
++++
++++  const docCreated = input.match(
++++    /<!--\s*introduced_in\s*=\s*v([0-9]+)\.([0-9]+)\.[0-9]+\s*-->/);
++++  if (docCreated) {
++++    HTML = HTML.replace('__ALTDOCS__', altDocs(filename, docCreated, versions));
++++  } else {
++++    console.error(`Failed to add alternative version links to ${filename}`);
++++    HTML = HTML.replace('__ALTDOCS__', '');
++++  }
++++
++++  return HTML;
++++}
++++
++++// Handle general body-text replacements.
++++// For example, link man page references to the actual page.
++++export function preprocessText(lexed) {
++++  marked.walkTokens(lexed, (token) => {
++++    if (!token.text) return;
++++    if (['code', 'codespan'].includes(token.type) == false) {
++++      token.text = replaceInText(token.text);
++++    }
++++  });
++++}
++++
++++// Replace placeholders in text tokens.
++++function replaceInText(text = '') {
++++  if (text === '') return text;
++++  return linkJsTypeDocs(linkManPages(text));
++++}
++++
++++// Syscalls which appear in the docs, but which only exist in BSD / macOS.
++++const BSD_ONLY_SYSCALLS = new Set(['lchmod']);
++++const MAN_PAGE = /(^|\s)([a-z.]+)\((\d)([a-z]?)\)/gm;
++++
++++// Handle references to man pages, eg "open(2)" or "lchmod(2)".
++++// Returns modified text, with such refs replaced with HTML links, for example
++++// '<a href="http://man7.org/linux/man-pages/man2/open.2.html">open(2)</a>'.
++++function linkManPages(text) {
++++  return text.replace(
++++    MAN_PAGE, (match, beginning, name, number, optionalCharacter) => {
++++      // Name consists of lowercase letters,
++++      // number is a single digit with an optional lowercase letter.
++++      const displayAs = `<code>${name}(${number}${optionalCharacter})</code>`;
++++
++++      if (BSD_ONLY_SYSCALLS.has(name)) {
++++        return `${beginning}<a href="https://www.freebsd.org/cgi/man.cgi?query=${name}&sektion=${number}">${displayAs}</a>`;
++++      }
++++
++++      return `${beginning}<a href="http://man7.org/linux/man-pages/man${number}/${name}.${number}${optionalCharacter}.html">${displayAs}</a>`;
++++    });
++++}
++++
++++const TYPE_SIGNATURE = /\{[^}]+\}/g;
++++function linkJsTypeDocs(text) {
++++  if (text.startsWith('<pre>')) return text;
++++  const parts = text.split('`');
++++
++++  // Handle types, for example the source Markdown might say
++++  // "This argument should be a {number} or {string}".
++++  try {
++++    for (let i = 0; i < parts.length; i += 2) {
++++      const typeMatches = parts[i].match(TYPE_SIGNATURE);
++++      if (typeMatches) {
++++        typeMatches.forEach((typeMatch) => {
++++          if (/^[_$]/.test(typeMatch)) return;
++++          parts[i] = parts[i].replace(typeMatch, typeParser.toLink(typeMatch));
++++        });
++++      }
++++    }
++++  } catch(ex) {
++++    console.warn(ex, "in", text);
++++  }
++++  return parts.join('`');
++++}
++++
++++// Preprocess stability blockquotes and YAML blocks.
++++export function preprocessElements(lexed, { filename }) {
++++  const STABILITY_RE = /(.*:)\s*(\d)([\s\S]*)/;
++++  let state = null;
++++  let headingIndex = -1;
++++  let heading = null;
++++
++++  marked.walkTokens(lexed, (token) => {
++++    if (token.type === 'heading') {
++++      headingIndex = 0;
++++      heading = token;
++++    } else {
++++      headingIndex++;
++++    }
++++    if (token.type === 'html' && common.isYAMLBlock(token.text)) {
++++      token.text = parseYAML(token.text);
++++    }
++++    if (token.type === 'blockquote_start') {
++++      state = 'MAYBE_STABILITY_BQ';
++++    }
++++    if (token.type === 'blockquote_end' && state === 'MAYBE_STABILITY_BQ') {
++++      state = null;
++++    }
++++    if (token.type === 'paragraph' && state === 'MAYBE_STABILITY_BQ') {
++++      if (token.text.includes('Stability:')) {
++++        const [, prefix, number, explication] =
++++          token.text.match(STABILITY_RE);
++++
++++        // Stability indices are never more than 3 nodes away from their
++++        // heading.
++++        const isStabilityIndex = headingIndex <= 3;
++++
++++        if (heading && isStabilityIndex) {
++++          heading.stability = number;
++++          heading = null;
++++        }
++++
++++        // Do not link to the section we are already in.
++++        const noLinking = filename.includes('documentation') &&
++++          heading !== null && heading.text === 'Stability index';
++++
++++        token.text = `<div class="api_stability api_stability_${number}">` +
++++          (noLinking ? '' :
++++            '<a href="documentation.html#stability-index">') +
++++          `${prefix} ${number}${noLinking ? '' : '</a>'}${explication}</div>`
++++          .replace(/\n/g, ' ');
++++      } else if (state === 'MAYBE_STABILITY_BQ') {
++++        state = null;
++++      }
++++    }
++++  });
++++}
++++
++++function parseYAML(text) {
++++  const meta = common.extractAndParseYAML(text);
++++  let result = '<div class="api_metadata">\n';
++++
++++  const added = { description: '' };
++++  const deprecated = { description: '' };
++++  const removed = { description: '' };
++++
++++  if (meta.added) {
++++    added.version = meta.added;
++++    added.description = `<span>Added in: ${added.version.join(', ')}</span>`;
++++  }
++++
++++  if (meta.deprecated) {
++++    deprecated.version = meta.deprecated;
++++    deprecated.description =
++++        `<span>Deprecated since: ${deprecated.version.join(', ')}</span>`;
++++  }
++++
++++  if (meta.removed) {
++++    removed.version = meta.removed;
++++    removed.description = `<span>Removed in: ${removed.version.join(', ')}</span>`;
++++  }
++++
++++  if (meta.changes.length > 0) {
++++    if (deprecated.description) meta.changes.push(deprecated);
++++    if (removed.description) meta.changes.push(removed);
++++
++++    meta.changes.sort((a, b) => versionSort(a.version, b.version));
++++    if (added.description) meta.changes.push(added);
++++
++++    result += '<details class="changelog"><summary>History</summary>\n' +
++++            '<table>\n<tr><th>Version</th><th>Changes</th></tr>\n';
++++
++++    meta.changes.forEach((change) => {
++++      const description = marked.parse(change.description);
++++      const version = common.arrify(change.version).join(', ');
++++
++++      result += `<tr><td>${version}</td>\n` +
++++                  `<td>${description}</td></tr>\n`;
++++    });
++++
++++    result += '</table>\n</details>\n';
++++  } else {
++++    result += `${added.description}${deprecated.description}${removed.description}\n`;
++++  }
++++
++++  if (meta.napiVersion) {
++++    result += `<span>N-API version: ${meta.napiVersion.join(', ')}</span>\n`;
++++  }
++++
++++  result += '</div>';
++++  return result;
++++}
++++
++++function minVersion(a) {
++++  return common.arrify(a).reduce((min, e) => {
++++    return !min || versionSort(min, e) < 0 ? e : min;
++++  });
++++}
++++
++++const numberRe = /^\d*/;
++++function versionSort(a, b) {
++++  a = minVersion(a).trim();
++++  b = minVersion(b).trim();
++++  let i = 0; // Common prefix length.
++++  while (i < a.length && i < b.length && a[i] === b[i]) i++;
++++  a = a.substr(i);
++++  b = b.substr(i);
++++  return +b.match(numberRe)[0] - +a.match(numberRe)[0];
++++}
++++
++++const DEPRECATION_HEADING_PATTERN = /^DEP\d+:/;
++++export function buildToc(lexed, { filename, apilinks }) {
++++  const idCounters = Object.create(null);
++++  const legacyIdCounters = Object.create(null);
++++  let toc = '';
++++  let depth = 0;
++++
++++  lexed.forEach((node) => {
++++    if (node.type !== 'heading') return;
++++
++++    if (node.depth - depth > 1) {
++++        throw new Error(
++++          `Inappropriate heading level:\n${JSON.stringify(node)}`
++++        );
++++    }
++++
++++    depth = node.depth;
++++    const realFilename = path.basename(filename, '.md');
++++    const headingText = node.text.trim();
++++    const id = getId(headingText, idCounters);
++++    // Use previous ID generator to create alias
++++    const legacyId = getLegacyId(`${realFilename}_${headingText}`, legacyIdCounters);
++++
++++    const isDeprecationHeading =
++++      DEPRECATION_HEADING_PATTERN.test(headingText);
++++    if (isDeprecationHeading) {
++++      node.raw = getId(headingText.substring(0, headingText.indexOf(':')), idCounters);
++++    }
++++
++++    const hasStability = node.stability !== undefined;
++++    toc += ' '.repeat((depth - 1) * 2) +
++++      (hasStability ? `* <span class="stability_${node.stability}">` : '* ') +
++++      `<a href="#${isDeprecationHeading ? node.raw : id}">${headingText}</a>${hasStability ? '</span>' : ''}\n`;
++++
++++    let anchor =
++++      `<span><a class="mark" href="#${id}" id="${id}">#</a></span>`;
++++
++++    // Add alias anchor to preserve old links
++++    anchor += `<a aria-hidden="true" class="legacy" id="${legacyId}"></a>`;
++++
++++    if (realFilename === 'errors' && headingText.startsWith('ERR_')) {
++++      anchor +=
++++        `<span><a class="mark" href="#${headingText}" id="${headingText}">#</a></span>`;
++++    }
++++
++++    const api = headingText.replace(/^.*:\s+/, '').replace(/\(.*/, '');
++++    if (apilinks[api]) {
++++      anchor = `<a class="srclink" href=${apilinks[api]}>[src]</a>${anchor}`;
++++    }
++++    node.tokens.push({ type: 'text', text: anchor });
++++  });
++++
++++  let tocPicker;
++++  if (toc !== '') {
++++    const inner = marked.parse(toc, marked.defaults);
++++    toc = `<details role="navigation" id="toc" open><summary>Table of contents</summary>${inner}</details>`;
++++    tocPicker = `<div class="toc">${inner}</div>`;
++++  } else {
++++    toc = tocPicker = '<!-- TOC -->';
++++  }
++++  return { toc, tocPicker };
++++}
++++
++++// ID generator that mirrors Github's heading anchor parser
++++const punctuation = /[^\w\- ]/g;
++++function getId(text, idCounters) {
++++  text = text.toLowerCase()
++++             .replace(punctuation, '')
++++             .replace(/ /g, '-');
++++  if (idCounters[text] !== undefined) {
++++    return `${text}_${++idCounters[text]}`;
++++  }
++++  idCounters[text] = 0;
++++  return text;
++++}
++++
++++// This ID generator is purely to generate aliases
++++// so we can preserve old doc links
++++const notAlphaNumerics = /[^a-z0-9]+/g;
++++const edgeUnderscores = /^_+|_+$/g;
++++const notAlphaStart = /^[^a-z]/;
++++function getLegacyId(text, idCounters) {
++++  text = text.toLowerCase()
++++             .replace(notAlphaNumerics, '_')
++++             .replace(edgeUnderscores, '')
++++             .replace(notAlphaStart, '_$&');
++++  if (idCounters[text] !== undefined) {
++++    return `${text}_${++idCounters[text]}`;
++++  }
++++  idCounters[text] = 0;
++++  return text;
++++}
++++
++++function altDocs(filename, docCreated, versions) {
++++  const [, docCreatedMajor, docCreatedMinor] = docCreated.map(Number);
++++  const host = 'https://nodejs.org';
++++
++++  const getHref = (versionNum) =>
++++    `${host}/docs/latest-v${versionNum}/api/${filename}.html`;
++++
++++  const wrapInListItem = (version) =>
++++    `<li><a href="${getHref(version.num)}">${version.num}${version.lts ? ' <b>LTS</b>' : ''}</a></li>`;
++++
++++  function isDocInVersion(version) {
++++    const [versionMajor, versionMinor] = version.num.split('.').map(Number);
++++    if (docCreatedMajor > versionMajor) return false;
++++    if (docCreatedMajor < versionMajor) return true;
++++    if (Number.isNaN(versionMinor)) return true;
++++    return docCreatedMinor <= versionMinor;
++++  }
++++
++++  const list = versions.filter(isDocInVersion).map(wrapInListItem).join('\n');
++++
++++  return list ? `
++++    <li class="picker-header">
++++      <a href="#">
++++        <span class="collapsed-arrow">&#x25ba;</span><span class="expanded-arrow">&#x25bc;</span>
++++        Other versions
++++      </a>
++++      <div class="picker"><ol id="alt-docs">${list}</ol></div>
++++    </li>
++++  ` : '';
++++}
++++
++++function editOnGitHub(filename) {
++++  return `<li class="edit_on_github"><a href="https://github.com/nodejs/node/edit/main/doc/api/${filename}.md">Edit on GitHub</a></li>`;
++++}
++++
++++function gtocPicker(id) {
++++  if (id === 'index') {
++++    return '';
++++  }
++++
++++  // Highlight the current module and add a link to the index
++++  const gtoc = gtocHTML.replace(
++++    `class="nav-${id}"`, `class="nav-${id} active"`,
++++  ).replace('</ul>', `
++++      <li>
++++        <a href="index.html">Index</a>
++++      </li>
++++    </ul>
++++  `);
++++
++++  return `
++++    <li class="picker-header">
++++      <a href="#">
++++        <span class="collapsed-arrow">&#x25ba;</span><span class="expanded-arrow">&#x25bc;</span>
++++        Index
++++      </a>
++++
++++      <div class="picker">${gtoc}</div>
++++    </li>
++++  `;
++++}
++++
++++function tocPicker(id, content) {
++++  if (id === 'index') {
++++    return '';
++++  }
++++
++++  return `
++++    <li class="picker-header">
++++      <a href="#">
++++        <span class="collapsed-arrow">&#x25ba;</span><span class="expanded-arrow">&#x25bc;</span>
++++        Table of contents
++++      </a>
++++
++++      <div class="picker">${content.tocPicker}</div>
++++    </li>
++++  `;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7ec377c35a409606bc35beddc2afbb7744058874
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,636 @@@@@
++++// Copyright Joyent, Inc. and other Node contributors.
++++//
++++// Permission is hereby granted, free of charge, to any person obtaining a
++++// copy of this software and associated documentation files (the
++++// "Software"), to deal in the Software without restriction, including
++++// without limitation the rights to use, copy, modify, merge, publish,
++++// distribute, sublicense, and/or sell copies of the Software, and to permit
++++// persons to whom the Software is furnished to do so, subject to the
++++// following conditions:
++++//
++++// The above copyright notice and this permission notice shall be included
++++// in all copies or substantial portions of the Software.
++++//
++++// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
++++// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++++// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
++++// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
++++// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
++++// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
++++// USE OR OTHER DEALINGS IN THE SOFTWARE.
++++
++++
++++import * as common from './common.mjs';
++++import * as marked from 'marked';
++++
++++// Take the lexed input, and return a JSON-encoded object.
++++// A module looks like this: https://gist.github.com/1777387.
++++
++++// Customized heading without id attribute.
++++const renderer = new marked.Renderer();
++++renderer.heading = (text, level) => `<h${level}>${text}</h${level}>\n`;
++++marked.setOptions({ renderer });
++++
++++
++++export async function jsonAPI(input, filename) {
++++  const root = { source: filename };
++++  const stack = [root];
++++  let depth = 0;
++++  let current = root;
++++  let state = null;
++++
++++  const exampleHeading = /^example/i;
++++  const metaExpr = /<!--([^=]+)=([^-]+)-->\n*/g;
++++  const stabilityExpr = /^Stability: ([0-5])(?:\s*-\s*)?(.*)$/s;
++++
++++  const lexed = marked.lexer(input);
++++  lexed.forEach((tok) => {
++++    const { type } = tok;
++++    let { text } = tok;
++++
++++    // <!-- name=module -->
++++    // This is for cases where the markdown semantic structure is lacking.
++++    if (type === 'paragraph' || type === 'html') {
++++      text = text.replace(metaExpr, (_0, key, value) => {
++++        current[key.trim()] = value.trim();
++++        return '';
++++      });
++++      text = text.trim();
++++      if (!text) return;
++++    }
++++    if (type === 'heading' && !exampleHeading.test(text.trim())) {
++++      if (tok.depth - depth > 2) {
++++        throw new Error(`Inappropriate heading level\n${JSON.stringify(tok)}`);
++++      }
++++
++++      // Sometimes we have two headings with a single blob of description.
++++      // Treat as a clone.
++++      if (state === 'AFTERHEADING' && depth === tok.depth) {
++++        const clone = current;
++++        current = newSection(tok);
++++        current.clone = clone;
++++        // Don't keep it around on the stack.
++++        stack.pop();
++++      } else {
++++        // If the level is greater than the current depth,
++++        // then it's a child, so we should just leave the stack as it is.
++++        // However, if it's a sibling or higher, then it implies
++++        // the closure of the other sections that came before.
++++        // root is always considered the level=0 section,
++++        // and the lowest heading is 1, so this should always
++++        // result in having a valid parent node.
++++        let closingDepth = tok.depth;
++++        while (closingDepth <= depth) {
++++          finishSection(stack.pop(), stack[stack.length - 1]);
++++          closingDepth++;
++++        }
++++        current = newSection(tok);
++++      }
++++      ({ depth } = tok);
++++      stack.push(current);
++++      state = 'AFTERHEADING';
++++      return;
++++    }
++++
++++    // Immediately after a heading, we can expect the following:
++++    //
++++    // { type: 'blockquote_start' },
++++    // { type: 'paragraph', text: 'Stability: ...' },
++++    // { type: 'blockquote_end' },
++++    //
++++    // A list: starting with list_start, ending with list_end,
++++    // maybe containing other nested lists in each item.
++++    //
++++    // A metadata:
++++    // <!-- YAML
++++    // added: v1.0.0
++++    // -->
++++    //
++++    // If one of these isn't found, then anything that comes
++++    // between here and the next heading should be parsed as the desc.
++++    if (state === 'AFTERHEADING') {
++++      if (type === 'blockquote_start') {
++++        state = 'AFTERHEADING_BLOCKQUOTE';
++++        return;
++++      } else if (type === 'list_start' && !tok.ordered) {
++++        state = 'AFTERHEADING_LIST';
++++        current.list = current.list || [];
++++        current.list.push(tok);
++++        current.list.level = 1;
++++      } else if (type === 'html' && common.isYAMLBlock(tok.text)) {
++++        current.meta = common.extractAndParseYAML(tok.text);
++++      } else {
++++        current.desc = current.desc || [];
++++        if (!Array.isArray(current.desc)) {
++++          current.shortDesc = current.desc;
++++          current.desc = [];
++++        }
++++        current.desc.links = lexed.links;
++++        current.desc.push(tok);
++++        state = 'DESC';
++++      }
++++      return;
++++    }
++++
++++    if (state === 'AFTERHEADING_LIST') {
++++      current.list.push(tok);
++++      if (type === 'list_start') {
++++        current.list.level++;
++++      } else if (type === 'list_end') {
++++        current.list.level--;
++++      }
++++      if (current.list.level === 0) {
++++        state = 'AFTERHEADING';
++++        processList(current);
++++      }
++++      return;
++++    }
++++
++++    if (state === 'AFTERHEADING_BLOCKQUOTE') {
++++      if (type === 'blockquote_end') {
++++        state = 'AFTERHEADING';
++++        return;
++++      }
++++
++++      let stability;
++++      if (type === 'paragraph' && (stability = text.match(stabilityExpr))) {
++++        current.stability = parseInt(stability[1], 10);
++++        current.stabilityText = stability[2].trim();
++++        return;
++++      }
++++    }
++++
++++    current.desc = current.desc || [];
++++    current.desc.links = lexed.links;
++++    current.desc.push(tok);
++++  });
++++
++++  // Finish any sections left open.
++++  while (root !== (current = stack.pop())) {
++++    finishSection(current, stack[stack.length - 1]);
++++  }
++++
++++  return root;
++++}
++++
++++
++++// Go from something like this:
++++//
++++// [ { type: "list_item_start" },
++++//   { type: "text",
++++//     text: "`options` {Object|string}" },
++++//   { type: "list_start",
++++//     ordered: false },
++++//   { type: "list_item_start" },
++++//   { type: "text",
++++//     text: "`encoding` {string|null} **Default:** `'utf8'`" },
++++//   { type: "list_item_end" },
++++//   { type: "list_item_start" },
++++//   { type: "text",
++++//     text: "`mode` {integer} **Default:** `0o666`" },
++++//   { type: "list_item_end" },
++++//   { type: "list_item_start" },
++++//   { type: "text",
++++//     text: "`flag` {string} **Default:** `'a'`" },
++++//   { type: "space" },
++++//   { type: "list_item_end" },
++++//   { type: "list_end" },
++++//   { type: "list_item_end" } ]
++++//
++++// to something like:
++++//
++++// [ { textRaw: "`options` {Object|string} ",
++++//     options: [
++++//       { textRaw: "`encoding` {string|null} **Default:** `'utf8'` ",
++++//         name: "encoding",
++++//         type: "string|null",
++++//         default: "`'utf8'`" },
++++//       { textRaw: "`mode` {integer} **Default:** `0o666` ",
++++//         name: "mode",
++++//         type: "integer",
++++//         default: "`0o666`" },
++++//       { textRaw: "`flag` {string} **Default:** `'a'` ",
++++//         name: "flag",
++++//         type: "string",
++++//         default: "`'a'`" } ],
++++//     name: "options",
++++//     type: "Object|string",
++++//     optional: true } ]
++++
++++function processList(section) {
++++  const { list } = section;
++++  const values = [];
++++  const stack = [];
++++  let current;
++++
++++  // For now, *just* build the hierarchical list.
++++  list.forEach((tok) => {
++++    const { type } = tok;
++++    if (type === 'space') return;
++++    if (type === 'list_item_start' || type === 'loose_item_start') {
++++      const item = {};
++++      if (!current) {
++++        values.push(item);
++++        current = item;
++++      } else {
++++        current.options = current.options || [];
++++        stack.push(current);
++++        current.options.push(item);
++++        current = item;
++++      }
++++    } else if (type === 'list_item_end') {
++++      if (!current) {
++++        throw new Error('invalid list - end without current item\n' +
++++                        `${JSON.stringify(tok)}\n` +
++++                        JSON.stringify(list));
++++      }
++++      current = stack.pop();
++++    } else if (type === 'text') {
++++      if (!current) {
++++        throw new Error('invalid list - text without current item\n' +
++++                        `${JSON.stringify(tok)}\n` +
++++                        JSON.stringify(list));
++++      }
++++      current.textRaw = `${current.textRaw || ''}${tok.text} `;
++++    }
++++  });
++++
++++  // Shove the name in there for properties,
++++  // since they are always just going to be the value etc.
++++  if (section.type === 'property' && values[0]) {
++++    values[0].textRaw = `\`${section.name}\` ${values[0].textRaw}`;
++++  }
++++
++++  // Now pull the actual values out of the text bits.
++++  values.forEach(parseListItem);
++++
++++  // Now figure out what this list actually means.
++++  // Depending on the section type, the list could be different things.
++++
++++  switch (section.type) {
++++    case 'ctor':
++++    case 'classMethod':
++++        case 'method':
++++      // Each item is an argument, unless the name is 'return',
++++      // in which case it's the return value.
++++      const sig = {};
++++      section.signatures = section.signatures || [];
++++      sig.params = values.filter((value) => {
++++        if (value.name === 'return') {
++++          sig.return = value;
++++          return false;
++++        }
++++        return true;
++++      });
++++      parseSignature(section.textRaw, sig);
++++      if (!sig.jump) section.signatures.push(sig);
++++      break;
++++
++++    case 'property': {
++++      // There should be only one item, which is the value.
++++      // Copy the data up to the section.
++++      const value = values[0] || {};
++++      delete value.name;
++++      section.typeof = value.type || section.typeof;
++++      delete value.type;
++++      Object.keys(value).forEach((key) => {
++++        section[key] = value[key];
++++      });
++++      break;
++++    }
++++
++++    case 'event':
++++      // Event: each item is an argument.
++++      section.params = values;
++++      break;
++++
++++    default:
++++      if (section.list.length > 0) {
++++        section.desc = section.desc || [];
++++        section.desc.push(...section.list);
++++      }
++++  }
++++
++++  delete section.list;
++++}
++++
++++
++++const paramExpr = /\((.+)\);?$/;
++++
++++// text: "someobject.someMethod(a[, b=100][, c])"
++++function parseSignature(text, sig) {
++++  const list = [];
++++
++++  let [, sigParams] = text.match(paramExpr) || [];
++++  if (!sigParams) return;
++++  sigParams = sigParams.split(',');
++++  let optionalLevel = 0;
++++  const optionalCharDict = { '[': 1, ' ': 0, ']': -1 };
++++  sigParams.forEach((sigParam, i) => {
++++    sigParam = sigParam.trim();
++++    if (!sigParam) {
++++      throw new Error(`Empty parameter slot: ${text}`);
++++    }
++++    let listParam = sig.params[i];
++++    let optional = false;
++++    let defaultValue;
++++
++++    // For grouped optional params such as someMethod(a[, b[, c]]).
++++    let pos;
++++    for (pos = 0; pos < sigParam.length; pos++) {
++++      const levelChange = optionalCharDict[sigParam[pos]];
++++      if (levelChange === undefined) break;
++++      optionalLevel += levelChange;
++++    }
++++    sigParam = sigParam.substring(pos);
++++    optional = (optionalLevel > 0);
++++    for (pos = sigParam.length - 1; pos >= 0; pos--) {
++++      const levelChange = optionalCharDict[sigParam[pos]];
++++      if (levelChange === undefined) break;
++++      optionalLevel += levelChange;
++++    }
++++    sigParam = sigParam.substring(0, pos + 1);
++++
++++    const eq = sigParam.indexOf('=');
++++    if (eq !== -1) {
++++      defaultValue = sigParam.substr(eq + 1);
++++      sigParam = sigParam.substr(0, eq);
++++    }
++++
++++    // At this point, the name should match. If it doesn't find one that does.
++++    // Example: shared signatures for:
++++    //   ### new Console(stdout[, stderr][, ignoreErrors])
++++    //   ### new Console(options)
++++    if (!listParam || sigParam !== listParam.name) {
++++      listParam = null;
++++      for (const param of sig.params) {
++++        if (param.name === sigParam) {
++++          listParam = param;
++++        } else if (param.options) {
++++          for (const option of param.options) {
++++            if (option.name === sigParam) {
++++              listParam = Object.assign({}, option);
++++            }
++++          }
++++        }
++++      }
++++
++++      if (!listParam) {
++++        if (sigParam.startsWith('...')) {
++++          listParam = { name: sigParam };
++++        } else {
++++          throw new Error(
++++            `Invalid param "${sigParam}"\n` +
++++            ` > ${JSON.stringify(listParam)}\n` +
++++            ` > ${text}`,
++++          );
++++        }
++++      }
++++    }
++++
++++    if (optional) listParam.optional = true;
++++    if (defaultValue !== undefined) listParam.default = defaultValue.trim();
++++
++++    list.push(listParam);
++++  });
++++
++++  sig.params = list;
++++}
++++
++++
++++const returnExpr = /^returns?\s*:?\s*/i;
++++const nameExpr = /^['`"]?([^'`": {]+)['`"]?\s*:?\s*/;
++++const typeExpr = /^\{([^}]+)\}\s*/;
++++const leadingHyphen = /^-\s*/;
++++const defaultExpr = /\s*\*\*Default:\*\*\s*([^]+)$/i;
++++
++++function parseListItem(item) {
++++  if (item.options) item.options.forEach(parseListItem);
++++  if (!item.textRaw) {
++++    throw new Error(`Empty list item: ${JSON.stringify(item)}`);
++++  }
++++
++++  // The goal here is to find the name, type, default, and optional.
++++  // Anything left over is 'desc'.
++++  let text = item.textRaw.trim();
++++
++++  if (returnExpr.test(text)) {
++++    item.name = 'return';
++++    text = text.replace(returnExpr, '');
++++  } else {
++++    const [, name] = text.match(nameExpr) || [];
++++    if (name) {
++++      item.name = name;
++++      text = text.replace(nameExpr, '');
++++    }
++++  }
++++
++++  const [, type] = text.match(typeExpr) || [];
++++  if (type) {
++++    item.type = type;
++++    text = text.replace(typeExpr, '');
++++  }
++++
++++  text = text.replace(leadingHyphen, '');
++++
++++  const [, defaultValue] = text.match(defaultExpr) || [];
++++  if (defaultValue) {
++++    item.default = defaultValue.replace(/\.$/, '');
++++    text = text.replace(defaultExpr, '');
++++  }
++++
++++  if (text) item.desc = text;
++++}
++++
++++
++++function finishSection(section, parent) {
++++  if (!section || !parent) {
++++    throw new Error('Invalid finishSection call\n' +
++++                    `${JSON.stringify(section)}\n` +
++++                    JSON.stringify(parent));
++++  }
++++
++++  if (!section.type) {
++++    section.type = 'module';
++++    if (parent.type === 'misc') {
++++      section.type = 'misc';
++++    }
++++    section.displayName = section.name;
++++    section.name = section.name.toLowerCase()
++++      .trim().replace(/\s+/g, '_');
++++  }
++++
++++  if (section.desc && Array.isArray(section.desc)) {
++++    section.desc.links = section.desc.links || [];
++++    section.desc = marked.parser(section.desc);
++++  }
++++
++++  if (!section.list) section.list = [];
++++  processList(section);
++++
++++  // Classes sometimes have various 'ctor' children
++++  // which are actually just descriptions of a constructor class signature.
++++  // Merge them into the parent.
++++  if (section.type === 'class' && section.ctors) {
++++    section.signatures = section.signatures || [];
++++    const sigs = section.signatures;
++++    section.ctors.forEach((ctor) => {
++++      ctor.signatures = ctor.signatures || [{}];
++++      ctor.signatures.forEach((sig) => {
++++        sig.desc = ctor.desc;
++++      });
++++      sigs.push(...ctor.signatures);
++++    });
++++    delete section.ctors;
++++  }
++++
++++  // Properties are a bit special.
++++  // Their "type" is the type of object, not "property".
++++  if (section.properties) {
++++    section.properties.forEach((prop) => {
++++      if (prop.typeof) {
++++        prop.type = prop.typeof;
++++        delete prop.typeof;
++++      } else {
++++        delete prop.type;
++++      }
++++    });
++++  }
++++
++++  // Handle clones.
++++  if (section.clone) {
++++    const { clone } = section;
++++    delete section.clone;
++++    delete clone.clone;
++++    deepCopy(section, clone);
++++    finishSection(clone, parent);
++++  }
++++
++++  let plur;
++++  if (section.type.slice(-1) === 's') {
++++    plur = `${section.type}es`;
++++  } else if (section.type.slice(-1) === 'y') {
++++    plur = section.type.replace(/y$/, 'ies');
++++  } else {
++++    plur = `${section.type}s`;
++++  }
++++
++++  // If the parent's type is 'misc', then it's just a random
++++  // collection of stuff, like the "globals" section.
++++  // Make the children top-level items.
++++  if (section.type === 'misc') {
++++    Object.keys(section).forEach((key) => {
++++      switch (key) {
++++        case 'textRaw':
++++        case 'name':
++++        case 'type':
++++        case 'desc':
++++        case 'miscs':
++++          return;
++++        default:
++++          if (parent.type === 'misc') {
++++            return;
++++          }
++++          if (parent[key] && Array.isArray(parent[key])) {
++++            parent[key] = parent[key].concat(section[key]);
++++          } else if (!parent[key]) {
++++            parent[key] = section[key];
++++          }
++++      }
++++    });
++++  }
++++
++++  parent[plur] = parent[plur] || [];
++++  parent[plur].push(section);
++++}
++++
++++
++++// Not a general purpose deep copy.
++++// But sufficient for these basic things.
++++function deepCopy(src, dest) {
++++  Object.keys(src)
++++    .filter((key) => !dest.hasOwnProperty(key))
++++    .forEach((key) => { dest[key] = cloneValue(src[key]); });
++++}
++++
++++function cloneValue(src) {
++++  if (!src) return src;
++++  if (Array.isArray(src)) {
++++    const clone = new Array(src.length);
++++    src.forEach((value, i) => {
++++      clone[i] = cloneValue(value);
++++    });
++++    return clone;
++++  }
++++  if (typeof src === 'object') {
++++    const clone = {};
++++    Object.keys(src).forEach((key) => {
++++      clone[key] = cloneValue(src[key]);
++++    });
++++    return clone;
++++  }
++++  return src;
++++}
++++
++++
++++// This section parses out the contents of an H# tag.
++++
++++// To reduce escape slashes in RegExp string components.
++++const r = String.raw;
++++
++++const eventPrefix = '^Event: +';
++++const classPrefix = '^[Cc]lass: +';
++++const ctorPrefix = '^(?:[Cc]onstructor: +)?`?new +';
++++const classMethodPrefix = '^Static method: +';
++++const maybeClassPropertyPrefix = '(?:Class property: +)?';
++++
++++const maybeQuote = '[\'"]?';
++++const notQuotes = '[^\'"]+';
++++
++++const maybeBacktick = '`?';
++++
++++// To include constructs like `readable\[Symbol.asyncIterator\]()`
++++// or `readable.\_read(size)` (with Markdown escapes).
++++const simpleId = r`(?:(?:\\?_)+|\b)\w+\b`;
++++const computedId = r`\\?\[[\w\.]+\\?\]`;
++++const id = `(?:${simpleId}|${computedId})`;
++++const classId = r`[A-Z]\w+`;
++++
++++const ancestors = r`(?:${id}\.?)+`;
++++const maybeAncestors = r`(?:${id}\.?)*`;
++++
++++const callWithParams = r`\([^)]*\)`;
++++
++++const maybeExtends = `(?: +extends +${maybeAncestors}${classId})?`;
++++
++++const headingExpressions = [
++++  { type: 'event', re: RegExp(
++++    `${eventPrefix}${maybeBacktick}${maybeQuote}(${notQuotes})${maybeQuote}${maybeBacktick}$`, 'i') },
++++
++++  { type: 'class', re: RegExp(
++++    `${classPrefix}${maybeBacktick}(${maybeAncestors}${classId})${maybeExtends}${maybeBacktick}$`, '') },
++++
++++  { type: 'ctor', re: RegExp(
++++    `${ctorPrefix}(${maybeAncestors}${classId})${callWithParams}${maybeBacktick}$`, '') },
++++
++++  { type: 'classMethod', re: RegExp(
++++    `${classMethodPrefix}${maybeBacktick}${maybeAncestors}(${id})${callWithParams}${maybeBacktick}$`, 'i') },
++++
++++  { type: 'method', re: RegExp(
++++    `^${maybeBacktick}${maybeAncestors}(${id})${callWithParams}${maybeBacktick}$`, 'i') },
++++
++++  { type: 'property', re: RegExp(
++++    `^${maybeClassPropertyPrefix}${maybeBacktick}${ancestors}(${id})${maybeBacktick}$`, 'i') },
++++];
++++
++++function newSection({ text }) {
++++  // Infer the type from the text.
++++  for (const { type, re } of headingExpressions) {
++++    const [, name] = text.match(re) || [];
++++    if (name) {
++++      return { textRaw: text, type, name };
++++    }
++++  }
++++  return { textRaw: text, name: text };
++++}
++++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..211ba70c0b5991c23fc5c49736c5fd8ccebefab5
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,6 @@@@@
++++{
++++  "doc/api/synopsis.md": {
++++    "command line options": "cli.html#options",
++++    "web server": "http.html"
++++  }
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..2baf634e4baf0854f9949a594e7cc8da49bc6d99
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,32 @@@@@
++++export const referenceToLocalMdFile = /^(?![+a-z]+:)([^#?]+)\.md(#.+)?$/i;
++++
++++export function replaceLinks({ filename, linksMapper }) {
++++  const fileHtmlUrls = linksMapper[filename];
++++  return (token) => {
++++    if (token.type == "link") {
++++      token.href = token.href.replace(
++++        referenceToLocalMdFile,
++++        (_, filename, hash) => `${filename}.html${hash || ''}`
++++      );
++++    }
++++
++++
++++    /*
++++    visit(tree, (node) => {
++++      if (node.url) {
++++        node.url = node.url.replace(
++++          referenceToLocalMdFile,
++++          (_, filename, hash) => `${filename}.html${hash || ''}`,
++++        );
++++      }
++++    });
++++    visit(tree, 'definition', (node) => {
++++      const htmlUrl = fileHtmlUrls && fileHtmlUrls[node.identifier];
++++
++++      if (htmlUrl && typeof htmlUrl === 'string') {
++++        node.url = htmlUrl;
++++      }
++++    });
++++    */
++++  };
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..59e4608d3e1c1c3eb2561ff37b2221eba72000b5
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,3917 @@@@@
++++{
++++  "name": "node-doc-generator",
++++  "version": "0.0.0",
++++  "lockfileVersion": 3,
++++  "requires": true,
++++  "packages": {
++++    "": {
++++      "name": "node-doc-generator",
++++      "version": "0.0.0",
++++      "bin": {
++++        "node-doc-generator": "generate.js"
++++      },
++++      "devDependencies": {
++++        "highlight.js": "^11.8.0",
++++        "js-yaml": "^4.1.0",
++++        "rehype-raw": "^7.0.0",
++++        "rehype-stringify": "^10.0.0",
++++        "remark-frontmatter": "^4.0.1",
++++        "remark-gfm": "^3.0.1",
++++        "remark-html": "^15.0.2",
++++        "remark-parse": "^10.0.2",
++++        "remark-rehype": "^10.1.0",
++++        "to-vfile": "^8.0.0",
++++        "unified": "^11.0.2",
++++        "unist-util-select": "^5.0.0",
++++        "unist-util-visit": "^5.0.0"
++++      },
++++      "engines": {
++++        "node": ">=14.8.0"
++++      }
++++    },
++++    "node_modules/@types/debug": {
++++      "version": "4.1.8",
++++      "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz",
++++      "integrity": "sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/ms": "*"
++++      }
++++    },
++++    "node_modules/@types/hast": {
++++      "version": "3.0.0",
++++      "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.0.tgz",
++++      "integrity": "sha512-SoytUJRuf68HXYqcXicQIhCrLQjqeYU2anikr4G3p3Iz+OZO5QDQpDj++gv+RenHsnUBwNZ2dumBArF8VLSk2Q==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "*"
++++      }
++++    },
++++    "node_modules/@types/mdast": {
++++      "version": "4.0.0",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.0.tgz",
++++      "integrity": "sha512-YLeG8CujC9adtj/kuDzq1N4tCDYKoZ5l/bnjq8d74+t/3q/tHquJOJKUQXJrLCflOHpKjXgcI/a929gpmLOEng==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "*"
++++      }
++++    },
++++    "node_modules/@types/ms": {
++++      "version": "0.7.31",
++++      "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz",
++++      "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==",
++++      "dev": true
++++    },
++++    "node_modules/@types/parse5": {
++++      "version": "6.0.3",
++++      "resolved": "https://registry.npmjs.org/@types/parse5/-/parse5-6.0.3.tgz",
++++      "integrity": "sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==",
++++      "dev": true
++++    },
++++    "node_modules/@types/unist": {
++++      "version": "3.0.0",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.0.tgz",
++++      "integrity": "sha512-MFETx3tbTjE7Uk6vvnWINA/1iJ7LuMdO4fcq8UfF0pRbj01aGLduVvQcRyswuACJdpnHgg8E3rQLhaRdNEJS0w==",
++++      "dev": true
++++    },
++++    "node_modules/@ungap/structured-clone": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz",
++++      "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==",
++++      "dev": true
++++    },
++++    "node_modules/argparse": {
++++      "version": "2.0.1",
++++      "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
++++      "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
++++      "dev": true
++++    },
++++    "node_modules/bail": {
++++      "version": "2.0.2",
++++      "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz",
++++      "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==",
++++      "dev": true,
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/boolbase": {
++++      "version": "1.0.0",
++++      "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
++++      "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==",
++++      "dev": true
++++    },
++++    "node_modules/ccount": {
++++      "version": "2.0.1",
++++      "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz",
++++      "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==",
++++      "dev": true,
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/character-entities": {
++++      "version": "2.0.2",
++++      "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz",
++++      "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==",
++++      "dev": true,
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/character-entities-html4": {
++++      "version": "2.1.0",
++++      "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz",
++++      "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==",
++++      "dev": true,
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/character-entities-legacy": {
++++      "version": "3.0.0",
++++      "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz",
++++      "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==",
++++      "dev": true,
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/comma-separated-tokens": {
++++      "version": "2.0.3",
++++      "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",
++++      "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==",
++++      "dev": true,
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/css-selector-parser": {
++++      "version": "2.3.2",
++++      "resolved": "https://registry.npmjs.org/css-selector-parser/-/css-selector-parser-2.3.2.tgz",
++++      "integrity": "sha512-JjnG6/pdLJh3iqipq7kteNVtbIczsU2A1cNxb+VAiniSuNmrB/NI3us4rSCfArvlwRXYly+jZhUUfEoInSH9Qg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "github",
++++          "url": "https://github.com/sponsors/mdevils"
++++        },
++++        {
++++          "type": "patreon",
++++          "url": "https://patreon.com/mdevils"
++++        }
++++      ]
++++    },
++++    "node_modules/debug": {
++++      "version": "4.3.4",
++++      "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
++++      "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
++++      "dev": true,
++++      "dependencies": {
++++        "ms": "2.1.2"
++++      },
++++      "engines": {
++++        "node": ">=6.0"
++++      },
++++      "peerDependenciesMeta": {
++++        "supports-color": {
++++          "optional": true
++++        }
++++      }
++++    },
++++    "node_modules/decode-named-character-reference": {
++++      "version": "1.0.2",
++++      "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz",
++++      "integrity": "sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==",
++++      "dev": true,
++++      "dependencies": {
++++        "character-entities": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/dequal": {
++++      "version": "2.0.3",
++++      "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
++++      "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
++++      "dev": true,
++++      "engines": {
++++        "node": ">=6"
++++      }
++++    },
++++    "node_modules/devlop": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",
++++      "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",
++++      "dev": true,
++++      "dependencies": {
++++        "dequal": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/diff": {
++++      "version": "5.1.0",
++++      "resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz",
++++      "integrity": "sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==",
++++      "dev": true,
++++      "engines": {
++++        "node": ">=0.3.1"
++++      }
++++    },
++++    "node_modules/entities": {
++++      "version": "4.5.0",
++++      "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
++++      "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
++++      "dev": true,
++++      "engines": {
++++        "node": ">=0.12"
++++      },
++++      "funding": {
++++        "url": "https://github.com/fb55/entities?sponsor=1"
++++      }
++++    },
++++    "node_modules/escape-string-regexp": {
++++      "version": "5.0.0",
++++      "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz",
++++      "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==",
++++      "dev": true,
++++      "engines": {
++++        "node": ">=12"
++++      },
++++      "funding": {
++++        "url": "https://github.com/sponsors/sindresorhus"
++++      }
++++    },
++++    "node_modules/extend": {
++++      "version": "3.0.2",
++++      "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
++++      "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
++++      "dev": true
++++    },
++++    "node_modules/fault": {
++++      "version": "2.0.1",
++++      "resolved": "https://registry.npmjs.org/fault/-/fault-2.0.1.tgz",
++++      "integrity": "sha512-WtySTkS4OKev5JtpHXnib4Gxiurzh5NCGvWrFaZ34m6JehfTUhKZvn9njTfw48t6JumVQOmrKqpmGcdwxnhqBQ==",
++++      "dev": true,
++++      "dependencies": {
++++        "format": "^0.2.0"
++++      },
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/format": {
++++      "version": "0.2.2",
++++      "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz",
++++      "integrity": "sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==",
++++      "dev": true,
++++      "engines": {
++++        "node": ">=0.4.x"
++++      }
++++    },
++++    "node_modules/hast-util-from-parse5": {
++++      "version": "8.0.1",
++++      "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-8.0.1.tgz",
++++      "integrity": "sha512-Er/Iixbc7IEa7r/XLtuG52zoqn/b3Xng/w6aZQ0xGVxzhw5xUFxcRqdPzP6yFi/4HBYRaifaI5fQ1RH8n0ZeOQ==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^3.0.0",
++++        "@types/unist": "^3.0.0",
++++        "devlop": "^1.0.0",
++++        "hastscript": "^8.0.0",
++++        "property-information": "^6.0.0",
++++        "vfile": "^6.0.0",
++++        "vfile-location": "^5.0.0",
++++        "web-namespaces": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/hast-util-parse-selector": {
++++      "version": "4.0.0",
++++      "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz",
++++      "integrity": "sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/hast-util-raw": {
++++      "version": "9.0.1",
++++      "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-9.0.1.tgz",
++++      "integrity": "sha512-5m1gmba658Q+lO5uqL5YNGQWeh1MYWZbZmWrM5lncdcuiXuo5E2HT/CIOp0rLF8ksfSwiCVJ3twlgVRyTGThGA==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^3.0.0",
++++        "@types/unist": "^3.0.0",
++++        "@ungap/structured-clone": "^1.0.0",
++++        "hast-util-from-parse5": "^8.0.0",
++++        "hast-util-to-parse5": "^8.0.0",
++++        "html-void-elements": "^3.0.0",
++++        "mdast-util-to-hast": "^13.0.0",
++++        "parse5": "^7.0.0",
++++        "unist-util-position": "^5.0.0",
++++        "unist-util-visit": "^5.0.0",
++++        "vfile": "^6.0.0",
++++        "web-namespaces": "^2.0.0",
++++        "zwitch": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/hast-util-sanitize": {
++++      "version": "4.1.0",
++++      "resolved": "https://registry.npmjs.org/hast-util-sanitize/-/hast-util-sanitize-4.1.0.tgz",
++++      "integrity": "sha512-Hd9tU0ltknMGRDv+d6Ro/4XKzBqQnP/EZrpiTbpFYfXv/uOhWeKc+2uajcbEvAEH98VZd7eII2PiXm13RihnLw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/hast-util-sanitize/node_modules/@types/hast": {
++++      "version": "2.3.5",
++++      "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.5.tgz",
++++      "integrity": "sha512-SvQi0L/lNpThgPoleH53cdjB3y9zpLlVjRbqB3rH8hx1jiRSBGAhyjV3H+URFjNVRqt2EdYNrbZE5IsGlNfpRg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/hast-util-sanitize/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/hast-util-to-html": {
++++      "version": "9.0.0",
++++      "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.0.tgz",
++++      "integrity": "sha512-IVGhNgg7vANuUA2XKrT6sOIIPgaYZnmLx3l/CCOAK0PtgfoHrZwX7jCSYyFxHTrGmC6S9q8aQQekjp4JPZF+cw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^3.0.0",
++++        "@types/unist": "^3.0.0",
++++        "ccount": "^2.0.0",
++++        "comma-separated-tokens": "^2.0.0",
++++        "hast-util-raw": "^9.0.0",
++++        "hast-util-whitespace": "^3.0.0",
++++        "html-void-elements": "^3.0.0",
++++        "mdast-util-to-hast": "^13.0.0",
++++        "property-information": "^6.0.0",
++++        "space-separated-tokens": "^2.0.0",
++++        "stringify-entities": "^4.0.0",
++++        "zwitch": "^2.0.4"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/hast-util-to-parse5": {
++++      "version": "8.0.0",
++++      "resolved": "https://registry.npmjs.org/hast-util-to-parse5/-/hast-util-to-parse5-8.0.0.tgz",
++++      "integrity": "sha512-3KKrV5ZVI8if87DVSi1vDeByYrkGzg4mEfeu4alwgmmIeARiBLKCZS2uw5Gb6nU9x9Yufyj3iudm6i7nl52PFw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^3.0.0",
++++        "comma-separated-tokens": "^2.0.0",
++++        "devlop": "^1.0.0",
++++        "property-information": "^6.0.0",
++++        "space-separated-tokens": "^2.0.0",
++++        "web-namespaces": "^2.0.0",
++++        "zwitch": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/hast-util-whitespace": {
++++      "version": "3.0.0",
++++      "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",
++++      "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/hastscript": {
++++      "version": "8.0.0",
++++      "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-8.0.0.tgz",
++++      "integrity": "sha512-dMOtzCEd3ABUeSIISmrETiKuyydk1w0pa+gE/uormcTpSYuaNJPbX1NU3JLyscSLjwAQM8bWMhhIlnCqnRvDTw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^3.0.0",
++++        "comma-separated-tokens": "^2.0.0",
++++        "hast-util-parse-selector": "^4.0.0",
++++        "property-information": "^6.0.0",
++++        "space-separated-tokens": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/highlight.js": {
++++      "version": "11.8.0",
++++      "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.8.0.tgz",
++++      "integrity": "sha512-MedQhoqVdr0U6SSnWPzfiadUcDHfN/Wzq25AkXiQv9oiOO/sG0S7XkvpFIqWBl9Yq1UYyYOOVORs5UW2XlPyzg==",
++++      "dev": true,
++++      "engines": {
++++        "node": ">=12.0.0"
++++      }
++++    },
++++    "node_modules/html-void-elements": {
++++      "version": "3.0.0",
++++      "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz",
++++      "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==",
++++      "dev": true,
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/is-buffer": {
++++      "version": "2.0.5",
++++      "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz",
++++      "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "github",
++++          "url": "https://github.com/sponsors/feross"
++++        },
++++        {
++++          "type": "patreon",
++++          "url": "https://www.patreon.com/feross"
++++        },
++++        {
++++          "type": "consulting",
++++          "url": "https://feross.org/support"
++++        }
++++      ],
++++      "engines": {
++++        "node": ">=4"
++++      }
++++    },
++++    "node_modules/is-plain-obj": {
++++      "version": "4.1.0",
++++      "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz",
++++      "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==",
++++      "dev": true,
++++      "engines": {
++++        "node": ">=12"
++++      },
++++      "funding": {
++++        "url": "https://github.com/sponsors/sindresorhus"
++++      }
++++    },
++++    "node_modules/js-yaml": {
++++      "version": "4.1.0",
++++      "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
++++      "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
++++      "dev": true,
++++      "dependencies": {
++++        "argparse": "^2.0.1"
++++      },
++++      "bin": {
++++        "js-yaml": "bin/js-yaml.js"
++++      }
++++    },
++++    "node_modules/kleur": {
++++      "version": "4.1.5",
++++      "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz",
++++      "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==",
++++      "dev": true,
++++      "engines": {
++++        "node": ">=6"
++++      }
++++    },
++++    "node_modules/longest-streak": {
++++      "version": "3.1.0",
++++      "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz",
++++      "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==",
++++      "dev": true,
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/markdown-table": {
++++      "version": "3.0.3",
++++      "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.3.tgz",
++++      "integrity": "sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==",
++++      "dev": true,
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/mdast-util-definitions": {
++++      "version": "5.1.2",
++++      "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-5.1.2.tgz",
++++      "integrity": "sha512-8SVPMuHqlPME/z3gqVwWY4zVXn8lqKv/pAhC57FuJ40ImXyBpmO5ukh98zB2v7Blql2FiHjHv9LVztSIqjY+MA==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/mdast": "^3.0.0",
++++        "@types/unist": "^2.0.0",
++++        "unist-util-visit": "^4.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/mdast-util-definitions/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/mdast-util-definitions/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/mdast-util-definitions/node_modules/unist-util-visit": {
++++      "version": "4.1.2",
++++      "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz",
++++      "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "unist-util-is": "^5.0.0",
++++        "unist-util-visit-parents": "^5.1.1"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/mdast-util-find-and-replace": {
++++      "version": "2.2.2",
++++      "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-2.2.2.tgz",
++++      "integrity": "sha512-MTtdFRz/eMDHXzeK6W3dO7mXUlF82Gom4y0oOgvHhh/HXZAGvIQDUvQ0SuUx+j2tv44b8xTHOm8K/9OoRFnXKw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/mdast": "^3.0.0",
++++        "escape-string-regexp": "^5.0.0",
++++        "unist-util-is": "^5.0.0",
++++        "unist-util-visit-parents": "^5.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/mdast-util-find-and-replace/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/mdast-util-find-and-replace/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/mdast-util-from-markdown": {
++++      "version": "1.3.1",
++++      "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-1.3.1.tgz",
++++      "integrity": "sha512-4xTO/M8c82qBcnQc1tgpNtubGUW/Y1tBQ1B0i5CtSoelOLKFYlElIr3bvgREYYO5iRqbMY1YuqZng0GVOI8Qww==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/mdast": "^3.0.0",
++++        "@types/unist": "^2.0.0",
++++        "decode-named-character-reference": "^1.0.0",
++++        "mdast-util-to-string": "^3.1.0",
++++        "micromark": "^3.0.0",
++++        "micromark-util-decode-numeric-character-reference": "^1.0.0",
++++        "micromark-util-decode-string": "^1.0.0",
++++        "micromark-util-normalize-identifier": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0",
++++        "unist-util-stringify-position": "^3.0.0",
++++        "uvu": "^0.5.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/mdast-util-from-markdown/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/mdast-util-from-markdown/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/mdast-util-from-markdown/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/mdast-util-frontmatter": {
++++      "version": "1.0.1",
++++      "resolved": "https://registry.npmjs.org/mdast-util-frontmatter/-/mdast-util-frontmatter-1.0.1.tgz",
++++      "integrity": "sha512-JjA2OjxRqAa8wEG8hloD0uTU0kdn8kbtOWpPP94NBkfAlbxn4S8gCGf/9DwFtEeGPXrDcNXdiDjVaRdUFqYokw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/mdast": "^3.0.0",
++++        "mdast-util-to-markdown": "^1.3.0",
++++        "micromark-extension-frontmatter": "^1.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/mdast-util-frontmatter/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/mdast-util-frontmatter/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/mdast-util-gfm": {
++++      "version": "2.0.2",
++++      "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-2.0.2.tgz",
++++      "integrity": "sha512-qvZ608nBppZ4icQlhQQIAdc6S3Ffj9RGmzwUKUWuEICFnd1LVkN3EktF7ZHAgfcEdvZB5owU9tQgt99e2TlLjg==",
++++      "dev": true,
++++      "dependencies": {
++++        "mdast-util-from-markdown": "^1.0.0",
++++        "mdast-util-gfm-autolink-literal": "^1.0.0",
++++        "mdast-util-gfm-footnote": "^1.0.0",
++++        "mdast-util-gfm-strikethrough": "^1.0.0",
++++        "mdast-util-gfm-table": "^1.0.0",
++++        "mdast-util-gfm-task-list-item": "^1.0.0",
++++        "mdast-util-to-markdown": "^1.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/mdast-util-gfm-autolink-literal": {
++++      "version": "1.0.3",
++++      "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-1.0.3.tgz",
++++      "integrity": "sha512-My8KJ57FYEy2W2LyNom4n3E7hKTuQk/0SES0u16tjA9Z3oFkF4RrC/hPAPgjlSpezsOvI8ObcXcElo92wn5IGA==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/mdast": "^3.0.0",
++++        "ccount": "^2.0.0",
++++        "mdast-util-find-and-replace": "^2.0.0",
++++        "micromark-util-character": "^1.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/mdast-util-gfm-autolink-literal/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/mdast-util-gfm-autolink-literal/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/mdast-util-gfm-autolink-literal/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/mdast-util-gfm-autolink-literal/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/mdast-util-gfm-autolink-literal/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/mdast-util-gfm-footnote": {
++++      "version": "1.0.2",
++++      "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-1.0.2.tgz",
++++      "integrity": "sha512-56D19KOGbE00uKVj3sgIykpwKL179QsVFwx/DCW0u/0+URsryacI4MAdNJl0dh+u2PSsD9FtxPFbHCzJ78qJFQ==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/mdast": "^3.0.0",
++++        "mdast-util-to-markdown": "^1.3.0",
++++        "micromark-util-normalize-identifier": "^1.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/mdast-util-gfm-footnote/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/mdast-util-gfm-footnote/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/mdast-util-gfm-strikethrough": {
++++      "version": "1.0.3",
++++      "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-1.0.3.tgz",
++++      "integrity": "sha512-DAPhYzTYrRcXdMjUtUjKvW9z/FNAMTdU0ORyMcbmkwYNbKocDpdk+PX1L1dQgOID/+vVs1uBQ7ElrBQfZ0cuiQ==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/mdast": "^3.0.0",
++++        "mdast-util-to-markdown": "^1.3.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/mdast-util-gfm-strikethrough/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/mdast-util-gfm-strikethrough/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/mdast-util-gfm-table": {
++++      "version": "1.0.7",
++++      "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-1.0.7.tgz",
++++      "integrity": "sha512-jjcpmNnQvrmN5Vx7y7lEc2iIOEytYv7rTvu+MeyAsSHTASGCCRA79Igg2uKssgOs1i1po8s3plW0sTu1wkkLGg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/mdast": "^3.0.0",
++++        "markdown-table": "^3.0.0",
++++        "mdast-util-from-markdown": "^1.0.0",
++++        "mdast-util-to-markdown": "^1.3.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/mdast-util-gfm-table/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/mdast-util-gfm-table/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/mdast-util-gfm-task-list-item": {
++++      "version": "1.0.2",
++++      "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-1.0.2.tgz",
++++      "integrity": "sha512-PFTA1gzfp1B1UaiJVyhJZA1rm0+Tzn690frc/L8vNX1Jop4STZgOE6bxUhnzdVSB+vm2GU1tIsuQcA9bxTQpMQ==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/mdast": "^3.0.0",
++++        "mdast-util-to-markdown": "^1.3.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/mdast-util-gfm-task-list-item/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/mdast-util-gfm-task-list-item/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/mdast-util-phrasing": {
++++      "version": "3.0.1",
++++      "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-3.0.1.tgz",
++++      "integrity": "sha512-WmI1gTXUBJo4/ZmSk79Wcb2HcjPJBzM1nlI/OUWA8yk2X9ik3ffNbBGsU+09BFmXaL1IBb9fiuvq6/KMiNycSg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/mdast": "^3.0.0",
++++        "unist-util-is": "^5.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/mdast-util-phrasing/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/mdast-util-phrasing/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/mdast-util-to-hast": {
++++      "version": "13.0.2",
++++      "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.0.2.tgz",
++++      "integrity": "sha512-U5I+500EOOw9e3ZrclN3Is3fRpw8c19SMyNZlZ2IS+7vLsNzb2Om11VpIVOR+/0137GhZsFEF6YiKD5+0Hr2Og==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^3.0.0",
++++        "@types/mdast": "^4.0.0",
++++        "@ungap/structured-clone": "^1.0.0",
++++        "devlop": "^1.0.0",
++++        "micromark-util-sanitize-uri": "^2.0.0",
++++        "trim-lines": "^3.0.0",
++++        "unist-util-position": "^5.0.0",
++++        "unist-util-visit": "^5.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/mdast-util-to-markdown": {
++++      "version": "1.5.0",
++++      "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-1.5.0.tgz",
++++      "integrity": "sha512-bbv7TPv/WC49thZPg3jXuqzuvI45IL2EVAr/KxF0BSdHsU0ceFHOmwQn6evxAh1GaoK/6GQ1wp4R4oW2+LFL/A==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/mdast": "^3.0.0",
++++        "@types/unist": "^2.0.0",
++++        "longest-streak": "^3.0.0",
++++        "mdast-util-phrasing": "^3.0.0",
++++        "mdast-util-to-string": "^3.0.0",
++++        "micromark-util-decode-string": "^1.0.0",
++++        "unist-util-visit": "^4.0.0",
++++        "zwitch": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/mdast-util-to-markdown/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/mdast-util-to-markdown/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/mdast-util-to-markdown/node_modules/unist-util-visit": {
++++      "version": "4.1.2",
++++      "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz",
++++      "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "unist-util-is": "^5.0.0",
++++        "unist-util-visit-parents": "^5.1.1"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/mdast-util-to-string": {
++++      "version": "3.2.0",
++++      "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz",
++++      "integrity": "sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/mdast": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/mdast-util-to-string/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/mdast-util-to-string/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/micromark": {
++++      "version": "3.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark/-/micromark-3.2.0.tgz",
++++      "integrity": "sha512-uD66tJj54JLYq0De10AhWycZWGQNUvDI55xPgk2sQM5kn1JYlhbCMTtEeT27+vAhW2FBQxLlOmS3pmA7/2z4aA==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "@types/debug": "^4.0.0",
++++        "debug": "^4.0.0",
++++        "decode-named-character-reference": "^1.0.0",
++++        "micromark-core-commonmark": "^1.0.1",
++++        "micromark-factory-space": "^1.0.0",
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-chunked": "^1.0.0",
++++        "micromark-util-combine-extensions": "^1.0.0",
++++        "micromark-util-decode-numeric-character-reference": "^1.0.0",
++++        "micromark-util-encode": "^1.0.0",
++++        "micromark-util-normalize-identifier": "^1.0.0",
++++        "micromark-util-resolve-all": "^1.0.0",
++++        "micromark-util-sanitize-uri": "^1.0.0",
++++        "micromark-util-subtokenize": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.1",
++++        "uvu": "^0.5.0"
++++      }
++++    },
++++    "node_modules/micromark-core-commonmark": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-1.1.0.tgz",
++++      "integrity": "sha512-BgHO1aRbolh2hcrzL2d1La37V0Aoz73ymF8rAcKnohLy93titmv62E0gP8Hrx9PKcKrqCZ1BbLGbP3bEhoXYlw==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "decode-named-character-reference": "^1.0.0",
++++        "micromark-factory-destination": "^1.0.0",
++++        "micromark-factory-label": "^1.0.0",
++++        "micromark-factory-space": "^1.0.0",
++++        "micromark-factory-title": "^1.0.0",
++++        "micromark-factory-whitespace": "^1.0.0",
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-chunked": "^1.0.0",
++++        "micromark-util-classify-character": "^1.0.0",
++++        "micromark-util-html-tag-name": "^1.0.0",
++++        "micromark-util-normalize-identifier": "^1.0.0",
++++        "micromark-util-resolve-all": "^1.0.0",
++++        "micromark-util-subtokenize": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.1",
++++        "uvu": "^0.5.0"
++++      }
++++    },
++++    "node_modules/micromark-core-commonmark/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-core-commonmark/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-core-commonmark/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-extension-frontmatter": {
++++      "version": "1.1.1",
++++      "resolved": "https://registry.npmjs.org/micromark-extension-frontmatter/-/micromark-extension-frontmatter-1.1.1.tgz",
++++      "integrity": "sha512-m2UH9a7n3W8VAH9JO9y01APpPKmNNNs71P0RbknEmYSaZU5Ghogv38BYO94AI5Xw6OYfxZRdHZZ2nYjs/Z+SZQ==",
++++      "dev": true,
++++      "dependencies": {
++++        "fault": "^2.0.0",
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/micromark-extension-frontmatter/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-extension-frontmatter/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-extension-frontmatter/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-extension-gfm": {
++++      "version": "2.0.3",
++++      "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-2.0.3.tgz",
++++      "integrity": "sha512-vb9OoHqrhCmbRidQv/2+Bc6pkP0FrtlhurxZofvOEy5o8RtuuvTq+RQ1Vw5ZDNrVraQZu3HixESqbG+0iKk/MQ==",
++++      "dev": true,
++++      "dependencies": {
++++        "micromark-extension-gfm-autolink-literal": "^1.0.0",
++++        "micromark-extension-gfm-footnote": "^1.0.0",
++++        "micromark-extension-gfm-strikethrough": "^1.0.0",
++++        "micromark-extension-gfm-table": "^1.0.0",
++++        "micromark-extension-gfm-tagfilter": "^1.0.0",
++++        "micromark-extension-gfm-task-list-item": "^1.0.0",
++++        "micromark-util-combine-extensions": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/micromark-extension-gfm-autolink-literal": {
++++      "version": "1.0.5",
++++      "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-1.0.5.tgz",
++++      "integrity": "sha512-z3wJSLrDf8kRDOh2qBtoTRD53vJ+CWIyo7uyZuxf/JAbNJjiHsOpG1y5wxk8drtv3ETAHutCu6N3thkOOgueWg==",
++++      "dev": true,
++++      "dependencies": {
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-sanitize-uri": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/micromark-extension-gfm-autolink-literal/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-extension-gfm-autolink-literal/node_modules/micromark-util-encode": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-1.1.0.tgz",
++++      "integrity": "sha512-EuEzTWSTAj9PA5GOAs992GzNh2dGQO52UvAbtSOMvXTxv3Criqb6IOzJUBCmEqrrXSblJIJBbFFv6zPxpreiJw==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-extension-gfm-autolink-literal/node_modules/micromark-util-sanitize-uri": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.2.0.tgz",
++++      "integrity": "sha512-QO4GXv0XZfWey4pYFndLUKEAktKkG5kZTdUNaTAkzbuJxn2tNBOr+QtxR2XpWaMhbImT2dPzyLrPXLlPhph34A==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-encode": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-extension-gfm-autolink-literal/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-extension-gfm-autolink-literal/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-extension-gfm-footnote": {
++++      "version": "1.1.2",
++++      "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-1.1.2.tgz",
++++      "integrity": "sha512-Yxn7z7SxgyGWRNa4wzf8AhYYWNrwl5q1Z8ii+CSTTIqVkmGZF1CElX2JI8g5yGoM3GAman9/PVCUFUSJ0kB/8Q==",
++++      "dev": true,
++++      "dependencies": {
++++        "micromark-core-commonmark": "^1.0.0",
++++        "micromark-factory-space": "^1.0.0",
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-normalize-identifier": "^1.0.0",
++++        "micromark-util-sanitize-uri": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0",
++++        "uvu": "^0.5.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/micromark-extension-gfm-footnote/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-extension-gfm-footnote/node_modules/micromark-util-encode": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-1.1.0.tgz",
++++      "integrity": "sha512-EuEzTWSTAj9PA5GOAs992GzNh2dGQO52UvAbtSOMvXTxv3Criqb6IOzJUBCmEqrrXSblJIJBbFFv6zPxpreiJw==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-extension-gfm-footnote/node_modules/micromark-util-sanitize-uri": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.2.0.tgz",
++++      "integrity": "sha512-QO4GXv0XZfWey4pYFndLUKEAktKkG5kZTdUNaTAkzbuJxn2tNBOr+QtxR2XpWaMhbImT2dPzyLrPXLlPhph34A==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-encode": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-extension-gfm-footnote/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-extension-gfm-footnote/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-extension-gfm-strikethrough": {
++++      "version": "1.0.7",
++++      "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-1.0.7.tgz",
++++      "integrity": "sha512-sX0FawVE1o3abGk3vRjOH50L5TTLr3b5XMqnP9YDRb34M0v5OoZhG+OHFz1OffZ9dlwgpTBKaT4XW/AsUVnSDw==",
++++      "dev": true,
++++      "dependencies": {
++++        "micromark-util-chunked": "^1.0.0",
++++        "micromark-util-classify-character": "^1.0.0",
++++        "micromark-util-resolve-all": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0",
++++        "uvu": "^0.5.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/micromark-extension-gfm-strikethrough/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-extension-gfm-strikethrough/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-extension-gfm-table": {
++++      "version": "1.0.7",
++++      "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-1.0.7.tgz",
++++      "integrity": "sha512-3ZORTHtcSnMQEKtAOsBQ9/oHp9096pI/UvdPtN7ehKvrmZZ2+bbWhi0ln+I9drmwXMt5boocn6OlwQzNXeVeqw==",
++++      "dev": true,
++++      "dependencies": {
++++        "micromark-factory-space": "^1.0.0",
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0",
++++        "uvu": "^0.5.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-extension-gfm-table/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-extension-gfm-tagfilter": {
++++      "version": "1.0.2",
++++      "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-1.0.2.tgz",
++++      "integrity": "sha512-5XWB9GbAUSHTn8VPU8/1DBXMuKYT5uOgEjJb8gN3mW0PNW5OPHpSdojoqf+iq1xo7vWzw/P8bAHY0n6ijpXF7g==",
++++      "dev": true,
++++      "dependencies": {
++++        "micromark-util-types": "^1.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/micromark-extension-gfm-tagfilter/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-extension-gfm-task-list-item": {
++++      "version": "1.0.5",
++++      "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-1.0.5.tgz",
++++      "integrity": "sha512-RMFXl2uQ0pNQy6Lun2YBYT9g9INXtWJULgbt01D/x8/6yJ2qpKyzdZD3pi6UIkzF++Da49xAelVKUeUMqd5eIQ==",
++++      "dev": true,
++++      "dependencies": {
++++        "micromark-factory-space": "^1.0.0",
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0",
++++        "uvu": "^0.5.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/micromark-extension-gfm-task-list-item/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-extension-gfm-task-list-item/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-extension-gfm-task-list-item/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-extension-gfm/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-factory-destination": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-1.1.0.tgz",
++++      "integrity": "sha512-XaNDROBgx9SgSChd69pjiGKbV+nfHGDPVYFs5dOoDd7ZnMAE+Cuu91BCpsY8RT2NP9vo/B8pds2VQNCLiu0zhg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-factory-destination/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-factory-destination/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-factory-destination/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-factory-label": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-1.1.0.tgz",
++++      "integrity": "sha512-OLtyez4vZo/1NjxGhcpDSbHQ+m0IIGnT8BoPamh+7jVlzLJBH98zzuCoUeMxvM6WsNeh8wx8cKvqLiPHEACn0w==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0",
++++        "uvu": "^0.5.0"
++++      }
++++    },
++++    "node_modules/micromark-factory-label/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-factory-label/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-factory-label/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-factory-space": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-1.1.0.tgz",
++++      "integrity": "sha512-cRzEj7c0OL4Mw2v6nwzttyOZe8XY/Z8G0rzmWQZTBi/jjwyw/U4uqKtUORXQrR5bAZZnbTI/feRV/R7hc4jQYQ==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-factory-space/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-factory-space/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-factory-space/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-factory-title": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-1.1.0.tgz",
++++      "integrity": "sha512-J7n9R3vMmgjDOCY8NPw55jiyaQnH5kBdV2/UXCtZIpnHH3P6nHUKaH7XXEYuWwx/xUJcawa8plLBEjMPU24HzQ==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-factory-space": "^1.0.0",
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-factory-title/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-factory-title/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-factory-title/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-factory-whitespace": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-1.1.0.tgz",
++++      "integrity": "sha512-v2WlmiymVSp5oMg+1Q0N1Lxmt6pMhIHD457whWM7/GUlEks1hI9xj5w3zbc4uuMKXGisksZk8DzP2UyGbGqNsQ==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-factory-space": "^1.0.0",
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-factory-whitespace/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-factory-whitespace/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-factory-whitespace/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-util-character": {
++++      "version": "2.0.1",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.0.1.tgz",
++++      "integrity": "sha512-3wgnrmEAJ4T+mGXAUfMvMAbxU9RDG43XmGce4j6CwPtVxB3vfwXSZ6KhFwDzZ3mZHhmPimMAXg71veiBGzeAZw==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^2.0.0",
++++        "micromark-util-types": "^2.0.0"
++++      }
++++    },
++++    "node_modules/micromark-util-chunked": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-1.1.0.tgz",
++++      "integrity": "sha512-Ye01HXpkZPNcV6FiyoW2fGZDUw4Yc7vT0E9Sad83+bEDiCJ1uXu0S3mr8WLpsz3HaG3x2q0HM6CTuPdcZcluFQ==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-util-chunked/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-util-classify-character": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-1.1.0.tgz",
++++      "integrity": "sha512-SL0wLxtKSnklKSUplok1WQFoGhUdWYKggKUiqhX+Swala+BtptGCu5iPRc+xvzJ4PXE/hwM3FNXsfEVgoZsWbw==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-util-classify-character/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-util-classify-character/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-util-classify-character/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-util-combine-extensions": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-1.1.0.tgz",
++++      "integrity": "sha512-Q20sp4mfNf9yEqDL50WwuWZHUrCO4fEyeDCnMGmG5Pr0Cz15Uo7KBs6jq+dq0EgX4DPwwrh9m0X+zPV1ypFvUA==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-chunked": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-util-combine-extensions/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-util-decode-numeric-character-reference": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-1.1.0.tgz",
++++      "integrity": "sha512-m9V0ExGv0jB1OT21mrWcuf4QhP46pH1KkfWy9ZEezqHKAxkj4mPCy3nIH1rkbdMlChLHX531eOrymlwyZIf2iw==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-util-decode-numeric-character-reference/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-util-decode-string": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-1.1.0.tgz",
++++      "integrity": "sha512-YphLGCK8gM1tG1bd54azwyrQRjCFcmgj2S2GoJDNnh4vYtnL38JS8M4gpxzOPNyHdNEpheyWXCTnnTDY3N+NVQ==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "decode-named-character-reference": "^1.0.0",
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-decode-numeric-character-reference": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-util-decode-string/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-util-decode-string/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-util-decode-string/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-util-encode": {
++++      "version": "2.0.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.0.tgz",
++++      "integrity": "sha512-pS+ROfCXAGLWCOc8egcBvT0kf27GoWMqtdarNfDcjb6YLuV5cM3ioG45Ys2qOVqeqSbjaKg72vU+Wby3eddPsA==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-util-html-tag-name": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-1.2.0.tgz",
++++      "integrity": "sha512-VTQzcuQgFUD7yYztuQFKXT49KghjtETQ+Wv/zUjGSGBioZnkA4P1XXZPT1FHeJA6RwRXSF47yvJ1tsJdoxwO+Q==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-util-normalize-identifier": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.1.0.tgz",
++++      "integrity": "sha512-N+w5vhqrBihhjdpM8+5Xsxy71QWqGn7HYNUvch71iV2PM7+E3uWGox1Qp90loa1ephtCxG2ftRV/Conitc6P2Q==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-util-normalize-identifier/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-util-resolve-all": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-1.1.0.tgz",
++++      "integrity": "sha512-b/G6BTMSg+bX+xVCshPTPyAu2tmA0E4X98NSR7eIbeC6ycCqCeE7wjfDIgzEbkzdEVJXRtOG4FbEm/uGbCRouA==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark-util-resolve-all/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-util-sanitize-uri": {
++++      "version": "2.0.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.0.tgz",
++++      "integrity": "sha512-WhYv5UEcZrbAtlsnPuChHUAsu/iBPOVaEVsntLBIdpibO0ddy8OzavZz3iL2xVvBZOpolujSliP65Kq0/7KIYw==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-character": "^2.0.0",
++++        "micromark-util-encode": "^2.0.0",
++++        "micromark-util-symbol": "^2.0.0"
++++      }
++++    },
++++    "node_modules/micromark-util-subtokenize": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-1.1.0.tgz",
++++      "integrity": "sha512-kUQHyzRoxvZO2PuLzMt2P/dwVsTiivCK8icYTeR+3WgbuPqfHgPPy7nFKbeqRivBvn/3N3GBiNC+JRTMSxEC7A==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-chunked": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0",
++++        "uvu": "^0.5.0"
++++      }
++++    },
++++    "node_modules/micromark-util-subtokenize/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-util-subtokenize/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-util-symbol": {
++++      "version": "2.0.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz",
++++      "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark-util-types": {
++++      "version": "2.0.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.0.tgz",
++++      "integrity": "sha512-oNh6S2WMHWRZrmutsRmDDfkzKtxF+bc2VxLC9dvtrDIRFln627VsFP6fLMgTryGDljgLPjkrzQSDcPrjPyDJ5w==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark/node_modules/micromark-util-encode": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-1.1.0.tgz",
++++      "integrity": "sha512-EuEzTWSTAj9PA5GOAs992GzNh2dGQO52UvAbtSOMvXTxv3Criqb6IOzJUBCmEqrrXSblJIJBbFFv6zPxpreiJw==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark/node_modules/micromark-util-sanitize-uri": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.2.0.tgz",
++++      "integrity": "sha512-QO4GXv0XZfWey4pYFndLUKEAktKkG5kZTdUNaTAkzbuJxn2tNBOr+QtxR2XpWaMhbImT2dPzyLrPXLlPhph34A==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-encode": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0"
++++      }
++++    },
++++    "node_modules/micromark/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/micromark/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/mri": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",
++++      "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==",
++++      "dev": true,
++++      "engines": {
++++        "node": ">=4"
++++      }
++++    },
++++    "node_modules/ms": {
++++      "version": "2.1.2",
++++      "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
++++      "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
++++      "dev": true
++++    },
++++    "node_modules/nth-check": {
++++      "version": "2.1.1",
++++      "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
++++      "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==",
++++      "dev": true,
++++      "dependencies": {
++++        "boolbase": "^1.0.0"
++++      },
++++      "funding": {
++++        "url": "https://github.com/fb55/nth-check?sponsor=1"
++++      }
++++    },
++++    "node_modules/parse5": {
++++      "version": "7.1.2",
++++      "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz",
++++      "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==",
++++      "dev": true,
++++      "dependencies": {
++++        "entities": "^4.4.0"
++++      },
++++      "funding": {
++++        "url": "https://github.com/inikulin/parse5?sponsor=1"
++++      }
++++    },
++++    "node_modules/property-information": {
++++      "version": "6.3.0",
++++      "resolved": "https://registry.npmjs.org/property-information/-/property-information-6.3.0.tgz",
++++      "integrity": "sha512-gVNZ74nqhRMiIUYWGQdosYetaKc83x8oT41a0LlV3AAFCAZwCpg4vmGkq8t34+cUhp3cnM4XDiU/7xlgK7HGrg==",
++++      "dev": true,
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/rehype-raw": {
++++      "version": "7.0.0",
++++      "resolved": "https://registry.npmjs.org/rehype-raw/-/rehype-raw-7.0.0.tgz",
++++      "integrity": "sha512-/aE8hCfKlQeA8LmyeyQvQF3eBiLRGNlfBJEvWH7ivp9sBqs7TNqBL5X3v157rM4IFETqDnIOO+z5M/biZbo9Ww==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^3.0.0",
++++        "hast-util-raw": "^9.0.0",
++++        "vfile": "^6.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/rehype-stringify": {
++++      "version": "10.0.0",
++++      "resolved": "https://registry.npmjs.org/rehype-stringify/-/rehype-stringify-10.0.0.tgz",
++++      "integrity": "sha512-1TX1i048LooI9QoecrXy7nGFFbFSufxVRAfc6Y9YMRAi56l+oB0zP51mLSV312uRuvVLPV1opSlJmslozR1XHQ==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^3.0.0",
++++        "hast-util-to-html": "^9.0.0",
++++        "unified": "^11.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-frontmatter": {
++++      "version": "4.0.1",
++++      "resolved": "https://registry.npmjs.org/remark-frontmatter/-/remark-frontmatter-4.0.1.tgz",
++++      "integrity": "sha512-38fJrB0KnmD3E33a5jZC/5+gGAC2WKNiPw1/fdXJvijBlhA7RCsvJklrYJakS0HedninvaCYW8lQGf9C918GfA==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/mdast": "^3.0.0",
++++        "mdast-util-frontmatter": "^1.0.0",
++++        "micromark-extension-frontmatter": "^1.0.0",
++++        "unified": "^10.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-frontmatter/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/remark-frontmatter/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/remark-frontmatter/node_modules/unified": {
++++      "version": "10.1.2",
++++      "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz",
++++      "integrity": "sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "bail": "^2.0.0",
++++        "extend": "^3.0.0",
++++        "is-buffer": "^2.0.0",
++++        "is-plain-obj": "^4.0.0",
++++        "trough": "^2.0.0",
++++        "vfile": "^5.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-frontmatter/node_modules/vfile": {
++++      "version": "5.3.7",
++++      "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.7.tgz",
++++      "integrity": "sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "is-buffer": "^2.0.0",
++++        "unist-util-stringify-position": "^3.0.0",
++++        "vfile-message": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-frontmatter/node_modules/vfile-message": {
++++      "version": "3.1.4",
++++      "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.4.tgz",
++++      "integrity": "sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "unist-util-stringify-position": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-gfm": {
++++      "version": "3.0.1",
++++      "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-3.0.1.tgz",
++++      "integrity": "sha512-lEFDoi2PICJyNrACFOfDD3JlLkuSbOa5Wd8EPt06HUdptv8Gn0bxYTdbU/XXQ3swAPkEaGxxPN9cbnMHvVu1Ig==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/mdast": "^3.0.0",
++++        "mdast-util-gfm": "^2.0.0",
++++        "micromark-extension-gfm": "^2.0.0",
++++        "unified": "^10.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-gfm/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/remark-gfm/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/remark-gfm/node_modules/unified": {
++++      "version": "10.1.2",
++++      "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz",
++++      "integrity": "sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "bail": "^2.0.0",
++++        "extend": "^3.0.0",
++++        "is-buffer": "^2.0.0",
++++        "is-plain-obj": "^4.0.0",
++++        "trough": "^2.0.0",
++++        "vfile": "^5.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-gfm/node_modules/vfile": {
++++      "version": "5.3.7",
++++      "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.7.tgz",
++++      "integrity": "sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "is-buffer": "^2.0.0",
++++        "unist-util-stringify-position": "^3.0.0",
++++        "vfile-message": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-gfm/node_modules/vfile-message": {
++++      "version": "3.1.4",
++++      "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.4.tgz",
++++      "integrity": "sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "unist-util-stringify-position": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-html": {
++++      "version": "15.0.2",
++++      "resolved": "https://registry.npmjs.org/remark-html/-/remark-html-15.0.2.tgz",
++++      "integrity": "sha512-/CIOI7wzHJzsh48AiuIyIe1clxVkUtreul73zcCXLub0FmnevQE0UMFDQm7NUx8/3rl/4zCshlMfqBdWScQthw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/mdast": "^3.0.0",
++++        "hast-util-sanitize": "^4.0.0",
++++        "hast-util-to-html": "^8.0.0",
++++        "mdast-util-to-hast": "^12.0.0",
++++        "unified": "^10.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/@types/hast": {
++++      "version": "2.3.5",
++++      "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.5.tgz",
++++      "integrity": "sha512-SvQi0L/lNpThgPoleH53cdjB3y9zpLlVjRbqB3rH8hx1jiRSBGAhyjV3H+URFjNVRqt2EdYNrbZE5IsGlNfpRg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/remark-html/node_modules/hast-util-from-parse5": {
++++      "version": "7.1.2",
++++      "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-7.1.2.tgz",
++++      "integrity": "sha512-Nz7FfPBuljzsN3tCQ4kCBKqdNhQE2l0Tn+X1ubgKBPRoiDIu1mL08Cfw4k7q71+Duyaw7DXDN+VTAp4Vh3oCOw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^2.0.0",
++++        "@types/unist": "^2.0.0",
++++        "hastscript": "^7.0.0",
++++        "property-information": "^6.0.0",
++++        "vfile": "^5.0.0",
++++        "vfile-location": "^4.0.0",
++++        "web-namespaces": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/hast-util-parse-selector": {
++++      "version": "3.1.1",
++++      "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-3.1.1.tgz",
++++      "integrity": "sha512-jdlwBjEexy1oGz0aJ2f4GKMaVKkA9jwjr4MjAAI22E5fM/TXVZHuS5OpONtdeIkRKqAaryQ2E9xNQxijoThSZA==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/hast-util-raw": {
++++      "version": "7.2.3",
++++      "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-7.2.3.tgz",
++++      "integrity": "sha512-RujVQfVsOrxzPOPSzZFiwofMArbQke6DJjnFfceiEbFh7S05CbPt0cYN+A5YeD3pso0JQk6O1aHBnx9+Pm2uqg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^2.0.0",
++++        "@types/parse5": "^6.0.0",
++++        "hast-util-from-parse5": "^7.0.0",
++++        "hast-util-to-parse5": "^7.0.0",
++++        "html-void-elements": "^2.0.0",
++++        "parse5": "^6.0.0",
++++        "unist-util-position": "^4.0.0",
++++        "unist-util-visit": "^4.0.0",
++++        "vfile": "^5.0.0",
++++        "web-namespaces": "^2.0.0",
++++        "zwitch": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/hast-util-to-html": {
++++      "version": "8.0.4",
++++      "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-8.0.4.tgz",
++++      "integrity": "sha512-4tpQTUOr9BMjtYyNlt0P50mH7xj0Ks2xpo8M943Vykljf99HW6EzulIoJP1N3eKOSScEHzyzi9dm7/cn0RfGwA==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^2.0.0",
++++        "@types/unist": "^2.0.0",
++++        "ccount": "^2.0.0",
++++        "comma-separated-tokens": "^2.0.0",
++++        "hast-util-raw": "^7.0.0",
++++        "hast-util-whitespace": "^2.0.0",
++++        "html-void-elements": "^2.0.0",
++++        "property-information": "^6.0.0",
++++        "space-separated-tokens": "^2.0.0",
++++        "stringify-entities": "^4.0.0",
++++        "zwitch": "^2.0.4"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/hast-util-to-parse5": {
++++      "version": "7.1.0",
++++      "resolved": "https://registry.npmjs.org/hast-util-to-parse5/-/hast-util-to-parse5-7.1.0.tgz",
++++      "integrity": "sha512-YNRgAJkH2Jky5ySkIqFXTQiaqcAtJyVE+D5lkN6CdtOqrnkLfGYYrEcKuHOJZlp+MwjSwuD3fZuawI+sic/RBw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^2.0.0",
++++        "comma-separated-tokens": "^2.0.0",
++++        "property-information": "^6.0.0",
++++        "space-separated-tokens": "^2.0.0",
++++        "web-namespaces": "^2.0.0",
++++        "zwitch": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/hast-util-whitespace": {
++++      "version": "2.0.1",
++++      "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-2.0.1.tgz",
++++      "integrity": "sha512-nAxA0v8+vXSBDt3AnRUNjyRIQ0rD+ntpbAp4LnPkumc5M9yUbSMa4XDU9Q6etY4f1Wp4bNgvc1yjiZtsTTrSng==",
++++      "dev": true,
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/hastscript": {
++++      "version": "7.2.0",
++++      "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-7.2.0.tgz",
++++      "integrity": "sha512-TtYPq24IldU8iKoJQqvZOuhi5CyCQRAbvDOX0x1eW6rsHSxa/1i2CCiptNTotGHJ3VoHRGmqiv6/D3q113ikkw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^2.0.0",
++++        "comma-separated-tokens": "^2.0.0",
++++        "hast-util-parse-selector": "^3.0.0",
++++        "property-information": "^6.0.0",
++++        "space-separated-tokens": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/html-void-elements": {
++++      "version": "2.0.1",
++++      "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-2.0.1.tgz",
++++      "integrity": "sha512-0quDb7s97CfemeJAnW9wC0hw78MtW7NU3hqtCD75g2vFlDLt36llsYD7uB7SUzojLMP24N5IatXf7ylGXiGG9A==",
++++      "dev": true,
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/mdast-util-to-hast": {
++++      "version": "12.3.0",
++++      "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-12.3.0.tgz",
++++      "integrity": "sha512-pits93r8PhnIoU4Vy9bjW39M2jJ6/tdHyja9rrot9uujkN7UTU9SDnE6WNJz/IGyQk3XHX6yNNtrBH6cQzm8Hw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^2.0.0",
++++        "@types/mdast": "^3.0.0",
++++        "mdast-util-definitions": "^5.0.0",
++++        "micromark-util-sanitize-uri": "^1.1.0",
++++        "trim-lines": "^3.0.0",
++++        "unist-util-generated": "^2.0.0",
++++        "unist-util-position": "^4.0.0",
++++        "unist-util-visit": "^4.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/micromark-util-encode": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-1.1.0.tgz",
++++      "integrity": "sha512-EuEzTWSTAj9PA5GOAs992GzNh2dGQO52UvAbtSOMvXTxv3Criqb6IOzJUBCmEqrrXSblJIJBbFFv6zPxpreiJw==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/remark-html/node_modules/micromark-util-sanitize-uri": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.2.0.tgz",
++++      "integrity": "sha512-QO4GXv0XZfWey4pYFndLUKEAktKkG5kZTdUNaTAkzbuJxn2tNBOr+QtxR2XpWaMhbImT2dPzyLrPXLlPhph34A==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-encode": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/remark-html/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/remark-html/node_modules/parse5": {
++++      "version": "6.0.1",
++++      "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz",
++++      "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==",
++++      "dev": true
++++    },
++++    "node_modules/remark-html/node_modules/unified": {
++++      "version": "10.1.2",
++++      "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz",
++++      "integrity": "sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "bail": "^2.0.0",
++++        "extend": "^3.0.0",
++++        "is-buffer": "^2.0.0",
++++        "is-plain-obj": "^4.0.0",
++++        "trough": "^2.0.0",
++++        "vfile": "^5.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/unist-util-position": {
++++      "version": "4.0.4",
++++      "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-4.0.4.tgz",
++++      "integrity": "sha512-kUBE91efOWfIVBo8xzh/uZQ7p9ffYRtUbMRZBNFYwf0RK8koUMx6dGUfwylLOKmaT2cs4wSW96QoYUSXAyEtpg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/unist-util-visit": {
++++      "version": "4.1.2",
++++      "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz",
++++      "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "unist-util-is": "^5.0.0",
++++        "unist-util-visit-parents": "^5.1.1"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/vfile": {
++++      "version": "5.3.7",
++++      "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.7.tgz",
++++      "integrity": "sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "is-buffer": "^2.0.0",
++++        "unist-util-stringify-position": "^3.0.0",
++++        "vfile-message": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/vfile-location": {
++++      "version": "4.1.0",
++++      "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-4.1.0.tgz",
++++      "integrity": "sha512-YF23YMyASIIJXpktBa4vIGLJ5Gs88UB/XePgqPmTa7cDA+JeO3yclbpheQYCHjVHBn/yePzrXuygIL+xbvRYHw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "vfile": "^5.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-html/node_modules/vfile-message": {
++++      "version": "3.1.4",
++++      "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.4.tgz",
++++      "integrity": "sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "unist-util-stringify-position": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-parse": {
++++      "version": "10.0.2",
++++      "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-10.0.2.tgz",
++++      "integrity": "sha512-3ydxgHa/ZQzG8LvC7jTXccARYDcRld3VfcgIIFs7bI6vbRSxJJmzgLEIIoYKyrfhaY+ujuWaf/PJiMZXoiCXgw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/mdast": "^3.0.0",
++++        "mdast-util-from-markdown": "^1.0.0",
++++        "unified": "^10.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-parse/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/remark-parse/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/remark-parse/node_modules/unified": {
++++      "version": "10.1.2",
++++      "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz",
++++      "integrity": "sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "bail": "^2.0.0",
++++        "extend": "^3.0.0",
++++        "is-buffer": "^2.0.0",
++++        "is-plain-obj": "^4.0.0",
++++        "trough": "^2.0.0",
++++        "vfile": "^5.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-parse/node_modules/vfile": {
++++      "version": "5.3.7",
++++      "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.7.tgz",
++++      "integrity": "sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "is-buffer": "^2.0.0",
++++        "unist-util-stringify-position": "^3.0.0",
++++        "vfile-message": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-parse/node_modules/vfile-message": {
++++      "version": "3.1.4",
++++      "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.4.tgz",
++++      "integrity": "sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "unist-util-stringify-position": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-rehype": {
++++      "version": "10.1.0",
++++      "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-10.1.0.tgz",
++++      "integrity": "sha512-EFmR5zppdBp0WQeDVZ/b66CWJipB2q2VLNFMabzDSGR66Z2fQii83G5gTBbgGEnEEA0QRussvrFHxk1HWGJskw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^2.0.0",
++++        "@types/mdast": "^3.0.0",
++++        "mdast-util-to-hast": "^12.1.0",
++++        "unified": "^10.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-rehype/node_modules/@types/hast": {
++++      "version": "2.3.5",
++++      "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.5.tgz",
++++      "integrity": "sha512-SvQi0L/lNpThgPoleH53cdjB3y9zpLlVjRbqB3rH8hx1jiRSBGAhyjV3H+URFjNVRqt2EdYNrbZE5IsGlNfpRg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/remark-rehype/node_modules/@types/mdast": {
++++      "version": "3.0.12",
++++      "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.12.tgz",
++++      "integrity": "sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2"
++++      }
++++    },
++++    "node_modules/remark-rehype/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/remark-rehype/node_modules/mdast-util-to-hast": {
++++      "version": "12.3.0",
++++      "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-12.3.0.tgz",
++++      "integrity": "sha512-pits93r8PhnIoU4Vy9bjW39M2jJ6/tdHyja9rrot9uujkN7UTU9SDnE6WNJz/IGyQk3XHX6yNNtrBH6cQzm8Hw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/hast": "^2.0.0",
++++        "@types/mdast": "^3.0.0",
++++        "mdast-util-definitions": "^5.0.0",
++++        "micromark-util-sanitize-uri": "^1.1.0",
++++        "trim-lines": "^3.0.0",
++++        "unist-util-generated": "^2.0.0",
++++        "unist-util-position": "^4.0.0",
++++        "unist-util-visit": "^4.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-rehype/node_modules/micromark-util-character": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.2.0.tgz",
++++      "integrity": "sha512-lXraTwcX3yH/vMDaFWCQJP1uIszLVebzUa3ZHdrgxr7KEU/9mL4mVgCpGbyhvNLNlauROiNUq7WN5u7ndbY6xg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-symbol": "^1.0.0",
++++        "micromark-util-types": "^1.0.0"
++++      }
++++    },
++++    "node_modules/remark-rehype/node_modules/micromark-util-encode": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-1.1.0.tgz",
++++      "integrity": "sha512-EuEzTWSTAj9PA5GOAs992GzNh2dGQO52UvAbtSOMvXTxv3Criqb6IOzJUBCmEqrrXSblJIJBbFFv6zPxpreiJw==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/remark-rehype/node_modules/micromark-util-sanitize-uri": {
++++      "version": "1.2.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.2.0.tgz",
++++      "integrity": "sha512-QO4GXv0XZfWey4pYFndLUKEAktKkG5kZTdUNaTAkzbuJxn2tNBOr+QtxR2XpWaMhbImT2dPzyLrPXLlPhph34A==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ],
++++      "dependencies": {
++++        "micromark-util-character": "^1.0.0",
++++        "micromark-util-encode": "^1.0.0",
++++        "micromark-util-symbol": "^1.0.0"
++++      }
++++    },
++++    "node_modules/remark-rehype/node_modules/micromark-util-symbol": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.1.0.tgz",
++++      "integrity": "sha512-uEjpEYY6KMs1g7QfJ2eX1SQEV+ZT4rUD3UcF6l57acZvLNK7PBZL+ty82Z1qhK1/yXIY4bdx04FKMgR0g4IAag==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/remark-rehype/node_modules/micromark-util-types": {
++++      "version": "1.1.0",
++++      "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.1.0.tgz",
++++      "integrity": "sha512-ukRBgie8TIAcacscVHSiddHjO4k/q3pnedmzMQ4iwDcK0FtFCohKOlFbaOL/mPgfnPsL3C1ZyxJa4sbWrBl3jg==",
++++      "dev": true,
++++      "funding": [
++++        {
++++          "type": "GitHub Sponsors",
++++          "url": "https://github.com/sponsors/unifiedjs"
++++        },
++++        {
++++          "type": "OpenCollective",
++++          "url": "https://opencollective.com/unified"
++++        }
++++      ]
++++    },
++++    "node_modules/remark-rehype/node_modules/unified": {
++++      "version": "10.1.2",
++++      "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz",
++++      "integrity": "sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "bail": "^2.0.0",
++++        "extend": "^3.0.0",
++++        "is-buffer": "^2.0.0",
++++        "is-plain-obj": "^4.0.0",
++++        "trough": "^2.0.0",
++++        "vfile": "^5.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-rehype/node_modules/unist-util-position": {
++++      "version": "4.0.4",
++++      "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-4.0.4.tgz",
++++      "integrity": "sha512-kUBE91efOWfIVBo8xzh/uZQ7p9ffYRtUbMRZBNFYwf0RK8koUMx6dGUfwylLOKmaT2cs4wSW96QoYUSXAyEtpg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-rehype/node_modules/unist-util-visit": {
++++      "version": "4.1.2",
++++      "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-4.1.2.tgz",
++++      "integrity": "sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "unist-util-is": "^5.0.0",
++++        "unist-util-visit-parents": "^5.1.1"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-rehype/node_modules/vfile": {
++++      "version": "5.3.7",
++++      "resolved": "https://registry.npmjs.org/vfile/-/vfile-5.3.7.tgz",
++++      "integrity": "sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "is-buffer": "^2.0.0",
++++        "unist-util-stringify-position": "^3.0.0",
++++        "vfile-message": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/remark-rehype/node_modules/vfile-message": {
++++      "version": "3.1.4",
++++      "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-3.1.4.tgz",
++++      "integrity": "sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "unist-util-stringify-position": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/sade": {
++++      "version": "1.8.1",
++++      "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz",
++++      "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==",
++++      "dev": true,
++++      "dependencies": {
++++        "mri": "^1.1.0"
++++      },
++++      "engines": {
++++        "node": ">=6"
++++      }
++++    },
++++    "node_modules/space-separated-tokens": {
++++      "version": "2.0.2",
++++      "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz",
++++      "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==",
++++      "dev": true,
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/stringify-entities": {
++++      "version": "4.0.3",
++++      "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.3.tgz",
++++      "integrity": "sha512-BP9nNHMhhfcMbiuQKCqMjhDP5yBCAxsPu4pHFFzJ6Alo9dZgY4VLDPutXqIjpRiMoKdp7Av85Gr73Q5uH9k7+g==",
++++      "dev": true,
++++      "dependencies": {
++++        "character-entities-html4": "^2.0.0",
++++        "character-entities-legacy": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/to-vfile": {
++++      "version": "8.0.0",
++++      "resolved": "https://registry.npmjs.org/to-vfile/-/to-vfile-8.0.0.tgz",
++++      "integrity": "sha512-IcmH1xB5576MJc9qcfEC/m/nQCFt3fzMHz45sSlgJyTWjRbKW1HAkJpuf3DgE57YzIlZcwcBZA5ENQbBo4aLkg==",
++++      "dev": true,
++++      "dependencies": {
++++        "vfile": "^6.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/trim-lines": {
++++      "version": "3.0.1",
++++      "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz",
++++      "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==",
++++      "dev": true,
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/trough": {
++++      "version": "2.1.0",
++++      "resolved": "https://registry.npmjs.org/trough/-/trough-2.1.0.tgz",
++++      "integrity": "sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==",
++++      "dev": true,
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/unified": {
++++      "version": "11.0.2",
++++      "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.2.tgz",
++++      "integrity": "sha512-Zta++onvS/dJ6xUvXQOR5q8XJZOkiMCE5wQ8Yv9mLR25pxRS567EX0GO6HZRxxNV/lznwfsvRZ/1pqe9K9QLeQ==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^3.0.0",
++++        "@ungap/structured-clone": "^1.0.0",
++++        "bail": "^2.0.0",
++++        "devlop": "^1.0.0",
++++        "is-plain-obj": "^4.0.0",
++++        "trough": "^2.0.0",
++++        "vfile": "^6.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/unist-util-generated": {
++++      "version": "2.0.1",
++++      "resolved": "https://registry.npmjs.org/unist-util-generated/-/unist-util-generated-2.0.1.tgz",
++++      "integrity": "sha512-qF72kLmPxAw0oN2fwpWIqbXAVyEqUzDHMsbtPvOudIlUzXYFIeQIuxXQCRCFh22B7cixvU0MG7m3MW8FTq/S+A==",
++++      "dev": true,
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/unist-util-is": {
++++      "version": "5.2.1",
++++      "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz",
++++      "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/unist-util-is/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/unist-util-position": {
++++      "version": "5.0.0",
++++      "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz",
++++      "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/unist-util-select": {
++++      "version": "5.0.0",
++++      "resolved": "https://registry.npmjs.org/unist-util-select/-/unist-util-select-5.0.0.tgz",
++++      "integrity": "sha512-xhX135nwV6kdOm3EuzO01aNYBgyAe6aC84j6Hj+RI5DIaV6W5B4BH9U92W3jvU3cw3D2NWx4hTcrusdcGKi8Uw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^3.0.0",
++++        "css-selector-parser": "^2.0.0",
++++        "devlop": "^1.1.0",
++++        "nth-check": "^2.0.0",
++++        "zwitch": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/unist-util-stringify-position": {
++++      "version": "3.0.3",
++++      "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-3.0.3.tgz",
++++      "integrity": "sha512-k5GzIBZ/QatR8N5X2y+drfpWG8IDBzdnVj6OInRNWm1oXrzydiaAT2OQiA8DPRRZyAKb9b6I2a6PxYklZD0gKg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/unist-util-stringify-position/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/unist-util-visit": {
++++      "version": "5.0.0",
++++      "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.0.0.tgz",
++++      "integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^3.0.0",
++++        "unist-util-is": "^6.0.0",
++++        "unist-util-visit-parents": "^6.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/unist-util-visit-parents": {
++++      "version": "5.1.3",
++++      "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz",
++++      "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^2.0.0",
++++        "unist-util-is": "^5.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/unist-util-visit-parents/node_modules/@types/unist": {
++++      "version": "2.0.8",
++++      "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.8.tgz",
++++      "integrity": "sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw==",
++++      "dev": true
++++    },
++++    "node_modules/unist-util-visit/node_modules/unist-util-is": {
++++      "version": "6.0.0",
++++      "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.0.tgz",
++++      "integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/unist-util-visit/node_modules/unist-util-visit-parents": {
++++      "version": "6.0.1",
++++      "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.1.tgz",
++++      "integrity": "sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^3.0.0",
++++        "unist-util-is": "^6.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/uvu": {
++++      "version": "0.5.6",
++++      "resolved": "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz",
++++      "integrity": "sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==",
++++      "dev": true,
++++      "dependencies": {
++++        "dequal": "^2.0.0",
++++        "diff": "^5.0.0",
++++        "kleur": "^4.0.3",
++++        "sade": "^1.7.3"
++++      },
++++      "bin": {
++++        "uvu": "bin.js"
++++      },
++++      "engines": {
++++        "node": ">=8"
++++      }
++++    },
++++    "node_modules/vfile": {
++++      "version": "6.0.1",
++++      "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.1.tgz",
++++      "integrity": "sha512-1bYqc7pt6NIADBJ98UiG0Bn/CHIVOoZ/IyEkqIruLg0mE1BKzkOXY2D6CSqQIcKqgadppE5lrxgWXJmXd7zZJw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^3.0.0",
++++        "unist-util-stringify-position": "^4.0.0",
++++        "vfile-message": "^4.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/vfile-location": {
++++      "version": "5.0.2",
++++      "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-5.0.2.tgz",
++++      "integrity": "sha512-NXPYyxyBSH7zB5U6+3uDdd6Nybz6o6/od9rk8bp9H8GR3L+cm/fC0uUTbqBmUTnMCUDslAGBOIKNfvvb+gGlDg==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^3.0.0",
++++        "vfile": "^6.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/vfile-message": {
++++      "version": "4.0.2",
++++      "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.2.tgz",
++++      "integrity": "sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^3.0.0",
++++        "unist-util-stringify-position": "^4.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/vfile-message/node_modules/unist-util-stringify-position": {
++++      "version": "4.0.0",
++++      "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",
++++      "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/vfile/node_modules/unist-util-stringify-position": {
++++      "version": "4.0.0",
++++      "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",
++++      "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==",
++++      "dev": true,
++++      "dependencies": {
++++        "@types/unist": "^3.0.0"
++++      },
++++      "funding": {
++++        "type": "opencollective",
++++        "url": "https://opencollective.com/unified"
++++      }
++++    },
++++    "node_modules/web-namespaces": {
++++      "version": "2.0.1",
++++      "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz",
++++      "integrity": "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==",
++++      "dev": true,
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    },
++++    "node_modules/zwitch": {
++++      "version": "2.0.4",
++++      "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz",
++++      "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==",
++++      "dev": true,
++++      "funding": {
++++        "type": "github",
++++        "url": "https://github.com/sponsors/wooorm"
++++      }
++++    }
++++  }
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3d49c92208b7ac15dc87dea041d464e67d31fc27
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,27 @@@@@
++++{
++++  "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
++++  "name": "node-doc-generator",
++++  "description": "Internal tool for generating Node.js API docs",
++++  "version": "0.0.0",
++++  "engines": {
++++    "node": ">=14.8.0"
++++  },
++++  "devDependencies": {
++++    "highlight.js": "^11.8.0",
++++    "js-yaml": "^4.1.0",
++++    "rehype-raw": "^7.0.0",
++++    "rehype-stringify": "^10.0.0",
++++    "remark-frontmatter": "^4.0.1",
++++    "remark-gfm": "^3.0.1",
++++    "remark-html": "^15.0.2",
++++    "remark-parse": "^10.0.2",
++++    "remark-rehype": "^10.1.0",
++++    "to-vfile": "^8.0.0",
++++    "unified": "^11.0.2",
++++    "unist-util-select": "^5.0.0",
++++    "unist-util-visit": "^5.0.0"
++++  },
++++  "bin": {
++++    "node-doc-generator": "generate.js"
++++  }
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..44577debc50695422a03b3d697d5e1bb2860def3
new file mode 120000 (symlink)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1 @@@@@
++++../../tools/doc/type-parser.mjs
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..8f6c4ef98ad5962e6619cc2337822fd77930fab0
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,78 @@@@@
++++import { readFileSync, writeFileSync } from 'fs';
++++import https from 'https';
++++
++++const srcRoot = new URL('../../', import.meta.url);
++++
++++const isRelease = () => {
++++  const re = /#define NODE_VERSION_IS_RELEASE 0/;
++++  const file = new URL('./src/node_version.h', srcRoot);
++++  return !re.test(readFileSync(file, { encoding: 'utf8' }));
++++};
++++
++++const getUrl = (url) => {
++++  return new Promise((resolve, reject) => {
++++    const request = https.get(url, { timeout: 30000 }, (response) => {
++++      if (response.statusCode !== 200) {
++++        reject(new Error(
++++          `Failed to get ${url}, status code ${response.statusCode}`));
++++      }
++++      response.setEncoding('utf8');
++++      let body = '';
++++      response.on('aborted', () => reject());
++++      response.on('data', (data) => body += data);
++++      response.on('end', () => resolve(body));
++++    });
++++    request.on('error', (err) => reject(err));
++++    request.on('timeout', () => request.abort());
++++  });
++++};
++++
++++const kNoInternet = !!process.env.NODE_TEST_NO_INTERNET;
++++const outFile = (process.argv.length > 2 ? process.argv[2] : undefined);
++++
++++async function versions() {
++++  // The CHANGELOG.md on release branches may not reference newer semver
++++  // majors of Node.js so fetch and parse the version from the main branch.
++++  const url =
++++    'https://raw.githubusercontent.com/nodejs/node/HEAD/CHANGELOG.md';
++++  let changelog;
++++  const file = new URL('./CHANGELOG.md', srcRoot);
++++  if (kNoInternet) {
++++    changelog = readFileSync(file, { encoding: 'utf8' });
++++  } else {
++++    try {
++++      changelog = await getUrl(url);
++++    } catch (e) {
++++      // Fail if this is a release build, otherwise fallback to local files.
++++      if (isRelease()) {
++++        throw e;
++++      } else {
++++        console.warn(`Unable to retrieve ${url}. Falling back to ${file}.`);
++++        changelog = readFileSync(file, { encoding: 'utf8' });
++++      }
++++    }
++++  }
++++  const ltsRE = /Long Term Support/i;
++++  const versionRE = /\* \[Node\.js ([0-9.]+)\]\S+ (.*)\r?\n/g;
++++  const _versions = [];
++++  let match;
++++  while ((match = versionRE.exec(changelog)) != null) {
++++    const entry = { num: `${match[1]}.x` };
++++    if (ltsRE.test(match[2])) {
++++      entry.lts = true;
++++    }
++++    _versions.push(entry);
++++  }
++++  return _versions;
++++}
++++
++++versions().then((v) => {
++++  if (outFile) {
++++    writeFileSync(outFile, JSON.stringify(v));
++++  } else {
++++    console.log(JSON.stringify(v));
++++  }
++++}).catch((err) => {
++++  console.error(err);
++++  process.exit(1);
++++});
diff --cc debian/gbp.conf
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b39b56d0594fcf5628a82564408200b1894ecd52
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,13 @@@@@
++++# Configuration file for git-buildpackage and friends
++++
++++[DEFAULT]
++++upstream-branch = upstream-20.x
++++debian-branch = master-20.x
++++component=['types-node', 'ada']
++++
++++pristine-tar = True
++++sign-tags = True
++++
++++[import-orig]
++++merge-mode = replace
++++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f9774a0abc3706eeeb08936f28c3d36ce33a8f94
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,2 @@@@@
++++usr/include/nodejs
++++usr/include/nodejs/deps/uv
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a0120eb4fa60afd3da9d254152a7fc89cf1b2cc7
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,10 @@@@@
++++usr/include/node
++++src/*.h usr/include/nodejs/src
++++src/crypto/*.h usr/include/nodejs/src/crypto
++++src/tracing/*.h usr/include/nodejs/src/tracing
++++src/permission/*.h usr/include/nodejs/src/permission
++++deps/v8/include/cppgc/*.h usr/include/nodejs/deps/v8/include/cppgc
++++deps/v8/include/cppgc/internal/*.h usr/include/nodejs/deps/v8/include/cppgc/internal
++++deps/v8/include/*.h usr/include/nodejs/deps/v8/include
++++deps/v8/include/libplatform/*.h usr/include/nodejs/deps/v8/include/libplatform
++++common.gypi usr/include/nodejs
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..2365f50fae3de70079aa18ccf1d0e7074ad7b0c1
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,8 @@@@@
++++usr/include/uv.h usr/include/nodejs/deps/uv/include/uv.h
++++usr/include/uv usr/include/nodejs/deps/uv/include/uv
++++usr/lib/@DEB_HOST_MULTIARCH@/libnode.so.@ABI@ usr/lib/@DEB_HOST_MULTIARCH@/libnode.so
++++usr/include/node usr/include/v8
++++usr/lib/@DEB_HOST_MULTIARCH@/libnode.so usr/lib/@DEB_HOST_MULTIARCH@/libv8.so
++++usr/lib/@DEB_HOST_MULTIARCH@/libnode.so usr/lib/@DEB_HOST_MULTIARCH@/libv8_libplatform.so
++++usr/lib/@DEB_HOST_MULTIARCH@/libnode.so usr/lib/@DEB_HOST_MULTIARCH@/libv8_libbase.so
++++usr/lib/@DEB_HOST_MULTIARCH@/libnode.so usr/lib/@DEB_HOST_MULTIARCH@/libv8_libsampler.so
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b93ce0d8405d1b216af7c53024b3a31bf9b28ac3
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1 @@@@@
++++usr/lib/libnode.so.* usr/lib/@DEB_HOST_MULTIARCH@/
diff --cc debian/node
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..2423a19d2520178d5fe3e0283eb9a2bdbf13b462
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,5 @@@@@
++++#!/bin/bash
++++
++++. /etc/default/nodejs
++++
++++NODE_OPTIONS="${NODE_OPTIONS} ${NODE_DEFAULTS}" exec -a "$0" /usr/lib/nodejs/bin/node "$@"
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..80994eba23f1deb5a2f97fc3ca8617843323ab0a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,9 @@@@@
++++Document: nodejs-api
++++Title: Node API Manual
++++Author: Ryan Dahl
++++Abstract: This manual describes the API and command-line usage of Node.
++++Section: Programming
++++
++++Format: HTML
++++Index: /usr/share/doc/nodejs/api/index.html
++++Files: /usr/share/doc/nodejs/api/*.html
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..15657b3491df84db086f0d7cec86ffdcef9c05fd
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1 @@@@@
++++out/doc/api
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..01d63d865aa1884b39bbf36a77bda5cf31d8645f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,26 @@@@@
++++nodejs for Debian
++++=================
++++
++++packaged modules
++++----------------
++++
++++The global search paths for modules is
++++
++++    * "/usr/lib/<$DEB_HOST_MULTIARCH>/nodejs" for c++ addons
++++    * "/usr/share/nodejs" for pure javascript modules
++++
++++
++++user modules
++++------------
++++
++++Node looks for modules in ./node_modules directory first;
++++please read node#modules documentation carefully for more information.
++++
++++Node does not look for modules in /usr/local/lib/node_modules,
++++where npm put them.
++++Please read npm-link(1) of npm package, to understand how to properly
++++use npm-installed modules in a project.
++++
++++Note that require.paths is not supported in future node versions.
++++See also node(1) for more information about NODE_PATH.
++++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..45fc58f9df6000002ef5ed1e685a1af772ce4e50
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1 @@@@@
++++usr/lib/${DEB_HOST_MULTIARCH}/nodejs
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c5b001dc38156873c12e8dc501ee8b590d1431af
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,7 @@@@@
++++usr/bin/node
++++debian/openssl.cnf usr/share/doc/nodejs/
++++usr/share/doc/node/gdbinit usr/share/doc/nodejs/
++++usr/share/doc/node/lldb_commands.py usr/share/doc/nodejs/
++++types-node/package.json usr/share/nodejs/@types/node/
++++types-node/*/ usr/share/nodejs/@types/node/
++++types-node/*.d.ts usr/share/nodejs/@types/node/
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f80ac77085bcc20c1df4863499efd53cd8d1c65c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,5 @@@@@
++++usr/bin/node usr/bin/nodejs
++++usr/share/man/man1/node.1 usr/share/man/man1/nodejs.1
++++usr/share/nodejs usr/share/node_modules
++++usr/lib/${DEB_HOST_MULTIARCH}/nodejs usr/lib/${DEB_HOST_MULTIARCH}/node_modules
++++/usr/share/bash-completion/completions/nodejs /usr/share/bash-completion/completions/node
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f7cc5d95ac962f894ef3d7dcb508c8b1c42153f6
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1 @@@@@
++++debian/tmp/usr/share/man/man1/node.1
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..19c400d107aa69eab232a61498608e9ba2dd40a1
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,10 @@@@@
++++#! /usr/bin/perl
++++# debhelper sequence file for dh_nodejs
++++
++++use warnings;
++++use strict;
++++use Debian::Debhelper::Dh_Lib;
++++
++++insert_before("dh_installinit", "dh_nodejs");
++++
++++1
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..cc4f21d947761aafce90154ead3e37aa7e8772f0
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,10 @@@@@
++++#!/bin/sh
++++
++++set -e
++++
++++if [ "$1" = "configure" ]; then
++++    update-alternatives --install /usr/bin/js js /usr/bin/nodejs 200 \
++++                        --slave /usr/share/man/man1/js.1.gz js.1.gz /usr/share/man/man1/nodejs.1.gz
++++fi
++++
++++#DEBHELPER#
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b4d8e66dabca11c6c1b7f7fed238f618b359a799
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,9 @@@@@
++++#!/bin/sh
++++
++++set -e
++++
++++if [ "$1" = "remove" ]; then
++++    update-alternatives --remove js /usr/bin/nodejs
++++fi
++++
++++#DEBHELPER#
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4ea83d005d15042465bf701cc145255c8bde2791
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,13 @@@@@
++++nodejs_conf = nodejs_init
++++
++++.include /etc/ssl/openssl.cnf
++++
++++[nodejs_init]
++++ssl_conf = ssl_sect
++++
++++[ssl_sect]
++++system_default = system_default_sect
++++
++++[system_default_sect]
++++CipherString = DEFAULT:@SECLEVEL=1
++++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..95ac442cac4372a35611e7701849c0adb557d92a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,33 @@@@@
++++Description: Harmonize V8 stack sizes on ARM architectures to match almost all other architectures
++++Author: James Addison <jay@jp-hosting.net>
++++Last-Update: 2023-02-28
++++Forwarded: https://github.com/nodejs/node/issues/41163
++++--- a/deps/v8/src/common/globals.h
+++++++ b/deps/v8/src/common/globals.h
++++@@ -152,26 +152,9 @@
++++ 
++++ #define ENABLE_SPARKPLUG true
++++ 
++++-#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64
++++-// Set stack limit lower for ARM and ARM64 than for other architectures because:
++++-//  - on Arm stack allocating MacroAssembler takes 120K bytes.
++++-//    See issue crbug.com/405338
++++-//  - on Arm64 when running in single-process mode for Android WebView, when
++++-//    initializing V8 we already have a large stack and so have to set the
++++-//    limit lower. See issue crbug.com/v8/10575
++++-#define V8_DEFAULT_STACK_SIZE_KB 864
++++-#elif V8_TARGET_ARCH_IA32
++++-// In mid-2022, we're observing an increase in stack overflow crashes on
++++-// 32-bit Windows; the suspicion is that some third-party software suddenly
++++-// started to consume a lot more stack memory (before V8 is even initialized).
++++-// So we speculatively lower the ia32 limit to the ARM limit for the time
++++-// being. See crbug.com/1346791.
++++-#define V8_DEFAULT_STACK_SIZE_KB 864
++++-#else
++++ // Slightly less than 1MB, since Windows' default stack size for
++++ // the main execution thread is 1MB.
++++ #define V8_DEFAULT_STACK_SIZE_KB 984
++++-#endif
++++ 
++++ // Helper macros to enable handling of direct C calls in the simulator.
++++ #if defined(USE_SIMULATOR) &&                                           \
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..bd755d7e3de4c7aaf3f5e0386fc3cbbc5b262734
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,41 @@@@@
++++Description: allow vfp2 and allow setting arm_version option
++++Author: Jérémy Lal <kapouer@melix.org>
++++Last-Update: 2022-08-29
++++Forwarded: https://github.com/nodejs/node/issues/44357
++++--- a/configure.py
+++++++ b/configure.py
++++@@ -50,7 +50,7 @@
++++ valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64el', 'ppc',
++++               'ppc64', 'x64', 'x86', 'x86_64', 's390x', 'riscv64', 'loong64')
++++ valid_arm_float_abi = ('soft', 'softfp', 'hard')
++++-valid_arm_fpu = ('vfp', 'vfpv3', 'vfpv3-d16', 'neon')
+++++valid_arm_fpu = ('vfp', 'vfpv2', 'vfpv3', 'vfpv3-d16', 'neon')
++++ valid_mips_arch = ('loongson', 'r1', 'r2', 'r6', 'rx')
++++ valid_mips_fpu = ('fp32', 'fp64', 'fpxx')
++++ valid_mips_float_abi = ('soft', 'hard')
++++@@ -625,6 +625,13 @@
++++     choices=valid_arm_fpu,
++++     help=f"ARM FPU mode ({', '.join(valid_arm_fpu)}) [default: %(default)s]")
++++ 
+++++parser.add_argument('--with-arm-version',
+++++    action='store',
+++++    dest='arm_version',
+++++    default=None,
+++++    help='ARM Version'
+++++)
+++++
++++ parser.add_argument('--with-mips-arch-variant',
++++     action='store',
++++     dest='mips_arch_variant',
++++@@ -1294,8 +1301,9 @@
++++     arm_float_abi = 'default'
++++ 
++++   arm_fpu = 'vfp'
++++-
++++-  if is_arch_armv7():
+++++  if options.arm_version:
+++++    o['variables']['arm_version'] = options.arm_version
+++++  elif is_arch_armv7():
++++     arm_fpu = 'vfpv3'
++++     o['variables']['arm_version'] = '7'
++++   else:
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5457dee0abb9ab0d0556d22fcf0481cc9f39a008
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,26 @@@@@
++++Description: build using ada upstream tarball component
++++Author: Jérémy Lal <kapouer@melix.org>
++++Last-Update: 2023-11-30
++++Forwarded: not-needed
++++
++++--- a/deps/ada/ada.gyp
+++++++ b/deps/ada/ada.gyp
++++@@ -1,15 +1,15 @@
++++ {
++++   'variables': {
++++     'v8_enable_i18n_support%': 1,
++++-    'ada_sources': [ 'ada.cpp' ],
+++++    'ada_sources': [ '../../ada/src/ada.cpp' ],
++++   },
++++   'targets': [
++++     {
++++       'target_name': 'ada',
++++       'type': 'static_library',
++++-      'include_dirs': ['.'],
+++++      'include_dirs': ['../../ada/include'],
++++       'direct_dependent_settings': {
++++-        'include_dirs': ['.'],
+++++        'include_dirs': ['../../ada/include'],
++++       },
++++       'sources': [ '<@(ada_sources)' ]
++++     },
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..8f8b2c56d250c91a6ca65c2364bcf0145cf837fb
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,24 @@@@@
++++Description: disable shared builtins when loading deps on demand
++++ This is to avoid preloading potentially missing files.
++++Author: Jérémy Lal <kapouer@melix.org>
++++Last-Update: 2023-12-10
++++Forwarded: no
++++--- a/src/node_builtins.cc
+++++++ b/src/node_builtins.cc
++++@@ -35,6 +35,7 @@
++++ BuiltinLoader::BuiltinLoader()
++++     : config_(GetConfig()), code_cache_(std::make_shared<BuiltinCodeCache>()) {
++++   LoadJavaScriptSource();
+++++#ifndef NODE_BUILTIN_MODULES_PATH
++++ #ifdef NODE_SHARED_BUILTIN_CJS_MODULE_LEXER_LEXER_PATH
++++   AddExternalizedBuiltin(
++++       "internal/deps/cjs-module-lexer/lexer",
++++@@ -69,7 +70,7 @@
++++     "internal/deps/minimatch/index",
++++     STRINGIFY(NODE_SHARED_BUILTIN_MINIMATCH_PATH));
++++ #endif  // NODE_SHARED_BUILTIN_MINIMATCH_PATH
++++-
+++++#endif
++++ }
++++ 
++++ bool BuiltinLoader::Exists(const char* id) {
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7c1307cd215c295099da01e70b55a1e7d3c6126d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,20 @@@@@
++++Description: do not build cctest, build broken on debian
++++Last-Update: 2017-12-18
++++Author: Jérémy Lal <kapouer@melix.org>
++++Forwarded: not yet !
++++--- a/Makefile
+++++++ b/Makefile
++++@@ -189,8 +189,12 @@
++++            exit 1; \
++++    fi
++++ 
+++++build:
+++++   $(MAKE) $(PARALLEL_ARGS) -C out $(NODE_EXE) BUILDTYPE=$(BUILDTYPE) V=$(V)
+++++   ln -sf out/$(BUILDTYPE)/node .
+++++
++++ .PHONY: install
++++-install: all ## Installs node into $PREFIX (default=/usr/local).
+++++install: ## Installs node into $PREFIX (default=/usr/local).
++++    $(PYTHON) tools/install.py $@ --dest-dir '$(DESTDIR)' --prefix '$(PREFIX)'
++++ 
++++ .PHONY: uninstall
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6505281e1c5cc54df2cf74555429d9f9b24346e3
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,113 @@@@@
++++Description: build doc using marked and js-yaml
++++ While waiting for unified/remarked/rehyped modules to be available in debian
++++Author: Jérémy Lal <kapouer@melix.org>
++++Forwarded: not-needed
++++Reviewed-By: Xavier Guimard <yadd@debian.org>
++++Last-Update: 2021-03-03
++++
++++--- a/Makefile
+++++++ b/Makefile
++++@@ -639,11 +639,6 @@
++++ 
++++ .PHONY: test-doc
++++ test-doc: doc-only lint-md ## Builds, lints, and verifies the docs.
++++-   @if [ "$(shell $(node_use_openssl))" != "true" ]; then \
++++-           echo "Skipping test-doc (no crypto)"; \
++++-   else \
++++-           $(PYTHON) tools/test.py $(PARALLEL_ARGS) doctool; \
++++-   fi
++++ 
++++ .PHONY: test-doc-ci
++++ test-doc-ci: doc-only
++++@@ -763,12 +758,12 @@
++++    fi
++++ 
++++ .PHONY: doc-only
++++-doc-only: tools/doc/node_modules \
+++++doc-only: \
++++    $(apidoc_dirs) $(apiassets)  ## Builds the docs with the local or the global Node.js binary.
++++    @if [ "$(shell $(node_use_openssl))" != "true" ]; then \
++++            echo "Skipping doc-only (no crypto)"; \
++++    else \
++++-           $(MAKE) out/doc/api/all.html out/doc/api/all.json out/doc/api/stability; \
+++++           $(MAKE) out/doc/api/all.html out/doc/api/all.json; \
++++    fi
++++ 
++++ .PHONY: doc
++++@@ -781,7 +776,9 @@
++++ # Just copy everything under doc/api over.
++++ out/doc/api: doc/api
++++    mkdir -p $@
++++-   cp -r doc/api out/doc
+++++   cp -r doc/api out/doc/
+++++   rm -f out/doc/api/*.html
+++++   rm -f out/doc/api/*.json
++++ 
++++ # If it's a source tarball, assets are already in doc/api/assets
++++ out/doc/api/assets:
++++@@ -797,50 +794,50 @@
++++ 
++++ LINK_DATA = out/doc/apilinks.json
++++ VERSIONS_DATA = out/previous-doc-versions.json
++++-gen-api = tools/doc/generate.mjs --node-version=$(FULLVERSION) \
+++++gen-api = debian/doc-generator/generate.mjs --node-version=$(FULLVERSION) \
++++            --apilinks=$(LINK_DATA) $< --output-directory=out/doc/api \
++++            --versions-file=$(VERSIONS_DATA)
++++-gen-apilink = tools/doc/apilinks.mjs $(LINK_DATA) $(wildcard lib/*.js)
+++++gen-apilink = debian/doc-generator/apilinks.mjs $(LINK_DATA) $(wildcard lib/*.js)
++++ 
++++-$(LINK_DATA): $(wildcard lib/*.js) tools/doc/apilinks.mjs | out/doc
+++++$(LINK_DATA): $(wildcard lib/*.js) debian/doc-generator/apilinks.mjs | out/doc
++++    $(call available-node, $(gen-apilink))
++++ 
++++ # Regenerate previous versions data if the current version changes
++++-$(VERSIONS_DATA): CHANGELOG.md src/node_version.h tools/doc/versions.mjs
++++-   $(call available-node, tools/doc/versions.mjs $@)
+++++$(VERSIONS_DATA): CHANGELOG.md src/node_version.h debian/doc-generator/versions.mjs
+++++   $(call available-node, debian/doc-generator/versions.mjs $@)
++++ 
++++ node_use_icu = $(call available-node,"-p" "typeof Intl === 'object'")
++++ 
++++-out/doc/api/%.json out/doc/api/%.html: doc/api/%.md tools/doc/generate.mjs \
++++-   tools/doc/markdown.mjs tools/doc/html.mjs tools/doc/json.mjs \
++++-   tools/doc/apilinks.mjs $(VERSIONS_DATA) | $(LINK_DATA) out/doc/api
+++++out/doc/api/%.json out/doc/api/%.html: doc/api/%.md debian/doc-generator/generate.mjs \
+++++   debian/doc-generator/markdown.mjs debian/doc-generator/html.mjs debian/doc-generator/json.mjs \
+++++   debian/doc-generator/apilinks.mjs $(VERSIONS_DATA) | $(LINK_DATA) out/doc/api
++++    @if [ "$(shell $(node_use_icu))" != "true" ]; then \
++++            echo "Skipping documentation generation (no ICU)"; \
++++    else \
++++            $(call available-node, $(gen-api)) \
++++    fi
++++ 
++++-out/doc/api/all.html: $(apidocs_html) tools/doc/allhtml.mjs \
++++-   tools/doc/apilinks.mjs | out/doc/api
+++++out/doc/api/all.html: $(apidocs_html) debian/doc-generator/allhtml.mjs \
+++++   debian/doc-generator/apilinks.mjs | out/doc/api
++++    @if [ "$(shell $(node_use_icu))" != "true" ]; then \
++++            echo "Skipping HTML single-page doc generation (no ICU)"; \
++++    else \
++++-           $(call available-node, tools/doc/allhtml.mjs) \
+++++           $(call available-node, debian/doc-generator/allhtml.mjs) \
++++    fi
++++ 
++++-out/doc/api/all.json: $(apidocs_json) tools/doc/alljson.mjs | out/doc/api
+++++out/doc/api/all.json: $(apidocs_json) debian/doc-generator/alljson.mjs | out/doc/api
++++    @if [ "$(shell $(node_use_icu))" != "true" ]; then \
++++            echo "Skipping JSON single-file generation (no ICU)"; \
++++    else \
++++-           $(call available-node, tools/doc/alljson.mjs) \
+++++           $(call available-node, debian/doc-generator/alljson.mjs) \
++++    fi
++++ 
++++ .PHONY: out/doc/api/stability
++++-out/doc/api/stability: out/doc/api/all.json tools/doc/stability.mjs | out/doc/api
+++++out/doc/api/stability: out/doc/api/all.json debian/doc-generator/stability.mjs | out/doc/api
++++    @if [ "$(shell $(node_use_icu))" != "true" ]; then \
++++            echo "Skipping stability indicator generation (no ICU)"; \
++++    else \
++++-           $(call available-node, tools/doc/stability.mjs) \
+++++           $(call available-node, debian/doc-generator/stability.mjs) \
++++    fi
++++ 
++++ .PHONY: docopen
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c24884fbb45c5583d7feba19a1f802c2d75b9be6
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,15 @@@@@
++++Description: fix link to home in html api
++++Forwarded: not needed, in conflict with the meaning of home page
++++Last-Update: 06-11-2022
++++Author: Jérémy Lal <kapouer@melix.org>
++++--- a/doc/template.html
+++++++ b/doc/template.html
++++@@ -27,7 +27,7 @@
++++   <div id="content" class="clearfix">
++++     <div role="navigation" id="column2" class="interior">
++++       <div id="intro" class="interior">
++++-        <a href="/" title="Go back to the home page">
+++++        <a href="index.html" title="Go back to the home page">
++++           Node.js
++++         </a>
++++       </div>
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..bd55ca3fa3f88917b6b3228c5f78995766a43ccb
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,19 @@@@@
++++Description: Link to -latomic by default
++++ This avoids surprises on mips*el/ppc*el
++++Author: Jérémy Lal <kapouer@melix.org>
++++Last-Update: 2019-10-25
++++Forwarded: not-needed
++++Bug: https://github.com/nodejs/node/pull/28532
++++Bug: https://github.com/nodejs/node/issues/30093
++++--- a/node.gypi
+++++++ b/node.gypi
++++@@ -346,6 +346,9 @@
++++       'libraries!': [
++++         '-lrt'
++++       ],
+++++      'libraries': [
+++++        '-latomic'
+++++      ]
++++     }],
++++     [ 'OS in "freebsd linux"', {
++++       'ldflags': [ '-Wl,-z,relro',
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c07c066b100cdd30b2451b4b236e33143cdb1695
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,59 @@@@@
++++Description: add acorn, walk to shared builtins
++++Last-Update: 2022-09-28
++++Forwarded: https://github.com/nodejs/node/pull/44376
++++Author: Jérémy Lal <kapouer@melix.org>
++++
++++--- a/configure.py
+++++++ b/configure.py
++++@@ -59,7 +59,10 @@
++++ 
++++ shareable_builtins = {'cjs_module_lexer/lexer': 'deps/cjs-module-lexer/lexer.js',
++++                      'cjs_module_lexer/dist/lexer': 'deps/cjs-module-lexer/dist/lexer.js',
++++-                     'undici/undici': 'deps/undici/undici.js'
+++++                     'undici/undici': 'deps/undici/undici.js',
+++++                     'acorn': 'deps/acorn/acorn/dist/acorn.js',
+++++                     'acorn_walk': 'deps/acorn/acorn-walk/dist/walk.js',
+++++                     'minimatch': 'deps/minimatch/index.js'
++++ }
++++ 
++++ # create option groups
++++--- a/src/node_builtins.cc
+++++++ b/src/node_builtins.cc
++++@@ -51,6 +51,25 @@
++++   AddExternalizedBuiltin("internal/deps/undici/undici",
++++                          STRINGIFY(NODE_SHARED_BUILTIN_UNDICI_UNDICI_PATH));
++++ #endif  // NODE_SHARED_BUILTIN_UNDICI_UNDICI_PATH
+++++
+++++#ifdef NODE_SHARED_BUILTIN_ACORN_PATH
+++++  AddExternalizedBuiltin(
+++++    "internal/deps/acorn/acorn/dist/acorn",
+++++    STRINGIFY(NODE_SHARED_BUILTIN_ACORN_PATH));
+++++#endif  // NODE_SHARED_BUILTIN_ACORN_PATH
+++++
+++++#ifdef NODE_SHARED_BUILTIN_ACORN_WALK_PATH
+++++  AddExternalizedBuiltin(
+++++    "internal/deps/acorn/acorn-walk/dist/walk",
+++++    STRINGIFY(NODE_SHARED_BUILTIN_ACORN_WALK_PATH));
+++++#endif  // NODE_SHARED_BUILTIN_ACORN_WALK_PATH
+++++
+++++#ifdef NODE_SHARED_BUILTIN_MINIMATCH_PATH
+++++  AddExternalizedBuiltin(
+++++    "internal/deps/minimatch/index",
+++++    STRINGIFY(NODE_SHARED_BUILTIN_MINIMATCH_PATH));
+++++#endif  // NODE_SHARED_BUILTIN_MINIMATCH_PATH
+++++
++++ }
++++ 
++++ bool BuiltinLoader::Exists(const char* id) {
++++--- a/node.gyp
+++++++ b/node.gyp
++++@@ -52,9 +52,6 @@
++++       'deps/v8/tools/tickprocessor.mjs',
++++       'deps/v8/tools/sourcemap.mjs',
++++       'deps/v8/tools/tickprocessor-driver.mjs',
++++-      'deps/acorn/acorn/dist/acorn.js',
++++-      'deps/acorn/acorn-walk/dist/walk.js',
++++-      'deps/minimatch/index.js',
++++       '<@(node_builtin_shareable_builtins)',
++++     ],
++++     'node_sources': [
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..aeca9ed5e88f3f67850ec60aed4e135c15bae871
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,14 @@@@@
++++Description: skip useless files in build target
++++Forwarded: https://github.com/nodejs/node/issues/55787
++++
++++--- a/Makefile
+++++++ b/Makefile
++++@@ -173,7 +173,7 @@
++++    $(warning '$@' target is a noop)
++++ 
++++ out/Makefile: config.gypi common.gypi node.gyp \
++++-   deps/uv/uv.gyp deps/llhttp/llhttp.gyp deps/zlib/zlib.gyp \
+++++   deps/llhttp/llhttp.gyp \
++++    deps/simdutf/simdutf.gyp deps/ada/ada.gyp \
++++    tools/v8_gypfiles/toolchain.gypi tools/v8_gypfiles/features.gypi \
++++    tools/v8_gypfiles/inspector.gypi tools/v8_gypfiles/v8.gyp
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c18c3c32ba623725ebad052ab08c42a596491657
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,143 @@@@@
++++Description: trivial tests fixes for OpenSSL32 compatibility
++++Forwarded: https://github.com/nodejs/node/issues/51152
++++Author: Jérémy Lal <kapouer@melix.org>
++++Last-Update: 2024-11-08
++++--- a/test/parallel/test-tls-set-ciphers.js
+++++++ b/test/parallel/test-tls-set-ciphers.js
++++@@ -79,6 +79,11 @@
++++ 
++++ const U = undefined;
++++ 
+++++let expectedTLSAlertError = 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE';
+++++if (common.hasOpenSSL(3, 2)) {
+++++  expectedTLSAlertError = 'ERR_SSL_SSL/TLS_ALERT_HANDSHAKE_FAILURE';
+++++}
+++++
++++ // Have shared ciphers.
++++ test(U, 'AES256-SHA', 'AES256-SHA');
++++ test('AES256-SHA', U, 'AES256-SHA');
++++@@ -89,13 +94,13 @@
++++ 
++++ // Do not have shared ciphers.
++++ test('TLS_AES_256_GCM_SHA384', 'TLS_CHACHA20_POLY1305_SHA256',
++++-     U, 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE', 'ERR_SSL_NO_SHARED_CIPHER');
+++++     U, expectedTLSAlertError, 'ERR_SSL_NO_SHARED_CIPHER');
++++ 
++++-test('AES128-SHA', 'AES256-SHA', U, 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE',
+++++test('AES256-SHA', 'AES256-SHA256', U, expectedTLSAlertError,
++++      'ERR_SSL_NO_SHARED_CIPHER');
++++-test('AES128-SHA:TLS_AES_256_GCM_SHA384',
++++-     'TLS_CHACHA20_POLY1305_SHA256:AES256-SHA',
++++-     U, 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE', 'ERR_SSL_NO_SHARED_CIPHER');
+++++test('AES256-SHA:TLS_AES_256_GCM_SHA384',
+++++     'TLS_CHACHA20_POLY1305_SHA256:AES256-SHA256',
+++++     U, expectedTLSAlertError, 'ERR_SSL_NO_SHARED_CIPHER');
++++ 
++++ // Cipher order ignored, TLS1.3 chosen before TLS1.2.
++++ test('AES256-SHA:TLS_AES_256_GCM_SHA384', U, 'TLS_AES_256_GCM_SHA384');
++++@@ -110,11 +115,15 @@
++++ 
++++ // TLS_AES_128_CCM_8_SHA256 & TLS_AES_128_CCM_SHA256 are not enabled by
++++ // default, but work.
++++-test('TLS_AES_128_CCM_8_SHA256', U,
++++-     U, 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE', 'ERR_SSL_NO_SHARED_CIPHER');
++++-
++++-test('TLS_AES_128_CCM_8_SHA256', 'TLS_AES_128_CCM_8_SHA256',
++++-     'TLS_AES_128_CCM_8_SHA256');
+++++// However, for OpenSSL32 AES_128 is not enabled due to the
+++++// default security level
+++++if (!common.hasOpenSSL(3, 2)) {
+++++  test('TLS_AES_128_CCM_8_SHA256', U,
+++++       U, 'ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE', 'ERR_SSL_NO_SHARED_CIPHER');
+++++
+++++  test('TLS_AES_128_CCM_8_SHA256', 'TLS_AES_128_CCM_8_SHA256',
+++++       'TLS_AES_128_CCM_8_SHA256');
+++++}
++++ 
++++ // Invalid cipher values
++++ test(9, 'AES256-SHA', U, 'ERR_INVALID_ARG_TYPE', U);
++++--- a/test/parallel/test-tls-getcipher.js
+++++++ b/test/parallel/test-tls-getcipher.js
++++@@ -47,13 +47,13 @@
++++   tls.connect({
++++     host: '127.0.0.1',
++++     port: this.address().port,
++++-    ciphers: 'AES128-SHA256',
+++++    ciphers: 'AES256-SHA256',
++++     rejectUnauthorized: false,
++++     maxVersion: 'TLSv1.2',
++++   }, common.mustCall(function() {
++++     const cipher = this.getCipher();
++++-    assert.strictEqual(cipher.name, 'AES128-SHA256');
++++-    assert.strictEqual(cipher.standardName, 'TLS_RSA_WITH_AES_128_CBC_SHA256');
+++++    assert.strictEqual(cipher.name, 'AES256-SHA256');
+++++    assert.strictEqual(cipher.standardName, 'TLS_RSA_WITH_AES_256_CBC_SHA256');
++++     assert.strictEqual(cipher.version, 'TLSv1.2');
++++     this.end();
++++   }));
++++@@ -62,14 +62,14 @@
++++   tls.connect({
++++     host: '127.0.0.1',
++++     port: this.address().port,
++++-    ciphers: 'ECDHE-RSA-AES128-GCM-SHA256',
+++++    ciphers: 'ECDHE-RSA-AES256-GCM-SHA384',
++++     rejectUnauthorized: false,
++++     maxVersion: 'TLSv1.2',
++++   }, common.mustCall(function() {
++++     const cipher = this.getCipher();
++++-    assert.strictEqual(cipher.name, 'ECDHE-RSA-AES128-GCM-SHA256');
+++++    assert.strictEqual(cipher.name, 'ECDHE-RSA-AES256-GCM-SHA384');
++++     assert.strictEqual(cipher.standardName,
++++-                       'TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256');
+++++                       'TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384');
++++     assert.strictEqual(cipher.version, 'TLSv1.2');
++++     this.end();
++++   }));
++++@@ -78,19 +78,19 @@
++++ tls.createServer({
++++   key: fixtures.readKey('agent2-key.pem'),
++++   cert: fixtures.readKey('agent2-cert.pem'),
++++-  ciphers: 'TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_CCM_8_SHA256',
+++++  ciphers: 'TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384',
++++   maxVersion: 'TLSv1.3',
++++ }, common.mustCall(function() {
++++   this.close();
++++ })).listen(0, common.mustCall(function() {
++++   const client = tls.connect({
++++     port: this.address().port,
++++-    ciphers: 'TLS_AES_128_CCM_8_SHA256',
+++++    ciphers: 'TLS_AES_256_GCM_SHA384',
++++     maxVersion: 'TLSv1.3',
++++     rejectUnauthorized: false
++++   }, common.mustCall(() => {
++++     const cipher = client.getCipher();
++++-    assert.strictEqual(cipher.name, 'TLS_AES_128_CCM_8_SHA256');
+++++    assert.strictEqual(cipher.name, 'TLS_AES_256_GCM_SHA384');
++++     assert.strictEqual(cipher.standardName, cipher.name);
++++     assert.strictEqual(cipher.version, 'TLSv1.3');
++++     client.end();
++++--- a/test/parallel/test-tls-junk-closes-server.js
+++++++ b/test/parallel/test-tls-junk-closes-server.js
++++@@ -39,6 +39,22 @@
++++ server.listen(0, common.mustCall(function() {
++++   const c = net.createConnection(this.address().port);
++++ 
+++++  c.on('data', function() {
+++++    // We must consume all data sent by the server. Otherwise the
+++++    // end event will not be sent and the test will hang.
+++++    // For example, when compiled with OpenSSL32 we see the
+++++    // following response '15 03 03 00 02 02 16' which
+++++    // decodes as a fatal (0x02) TLS error alert number 22 (0x16),
+++++    // which corresponds to TLS1_AD_RECORD_OVERFLOW which matches
+++++    // the error we see if NODE_DEBUG is turned on.
+++++    // Some earlier OpenSSL versions did not seem to send a response
+++++    // but the TLS spec seems to indicate there should be one
+++++    // https://datatracker.ietf.org/doc/html/rfc8446#page-85
+++++    // and error handling seems to have been re-written/improved
+++++    // in OpenSSL32. Consuming the data allows the test to pass
+++++    // either way.
+++++  });
+++++
++++   c.on('connect', common.mustCall(function() {
++++     c.write('blah\nblah\nblah\n');
++++   }));
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3f21f7698914821d964ff37be6102475fd5e848a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,22 @@@@@
++++Description: debian openssl in testing or sid (3.0.11, 3.1.4) does not seem to have that different behavior
++++Author: Jérémy Lal <kapouer@melix.org>
++++Last-Update: 2023-11-03
++++
++++--- a/test/parallel/test-crypto-dh.js
+++++++ b/test/parallel/test-crypto-dh.js
++++@@ -86,6 +86,7 @@
++++   }
++++ 
++++   {
+++++           /*
++++     const v = crypto.constants.OPENSSL_VERSION_NUMBER;
++++     const hasOpenSSL3WithNewErrorMessage = (v >= 0x300000c0 && v <= 0x30100000) || (v >= 0x30100040 && v <= 0x30200000);
++++     assert.throws(() => {
++++@@ -93,6 +94,7 @@
++++     }, { message: common.hasOpenSSL3 && !hasOpenSSL3WithNewErrorMessage ?
++++       'error:02800080:Diffie-Hellman routines::invalid secret' :
++++       'Supplied key is too small' });
+++++           */
++++   }
++++ }
++++ 
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..deb5a84f052ada2551ad1af14b1accab4789f759
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,24 @@@@@
++++Subject: skip buffer NaN internal representation check
++++ this fails on whatever archs having other internal representations of NaN.
++++Last-Update: 2022-05-02
++++Author: Jérémy Lal <kapouer@melix.org>
++++Forwarded: https://github.com/nodejs/node/issues/42945
++++
++++--- a/test/parallel/test-buffer-writefloat.js
+++++++ b/test/parallel/test-buffer-writefloat.js
++++@@ -53,6 +53,7 @@
++++ 
++++ // JS only knows a single NaN but there exist two platform specific
++++ // implementations. Therefore, allow both quiet and signalling NaNs.
+++++/*
++++ if (buffer[1] === 0xBF) {
++++   assert.ok(
++++     buffer.equals(new Uint8Array(
++++@@ -62,6 +63,7 @@
++++     buffer.equals(new Uint8Array(
++++       [ 0x7F, 0xC0, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x7F ])));
++++ }
+++++*/
++++ 
++++ assert.ok(Number.isNaN(buffer.readFloatBE(0)));
++++ assert.ok(Number.isNaN(buffer.readFloatLE(4)));
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..539e0dcdd7a2ec463dfa8033570479eec94927da
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,138 @@@@@
++++Description: adapt test-ci build target for buildd
++++ * run tests with ./node
++++ * remove addons from test-ci suite, because it creates a dependency loop
++++   nodejs -> node-gyp -> nodejs which is painful to manage.
++++ * disabled because it requires stdin:
++++   + test-stdout-close-unref
++++   + test-regress-GH-746
++++ * test-tick-processor fails on ppc64 and s390x, currently investigated
++++   https://github.com/nodejs/node/issues/2471
++++ * test-cluster-disconnect sometimes fails on busy buildd, forwarded upstream
++++   https://github.com/nodejs/node/issues/3383
++++ * test-fs-watch is flaky, might be related to https://github.com/nodejs/node/issues/4082
++++ * huge timeout value for all platforms, buildd could be busy
++++ * test-npm-install and test-release-npm must fail, debian package dfsg-repacked npm out
++++ * ability to override CI_NATIVE_SUITES, CI_JS_SUITES
++++ * disable tests failing because DNS is disabled
++++ * sequential/test-http2-session-timeout is flaky https://github.com/nodejs/node/issues/20628
++++Author: Jérémy Lal <kapouer@melix.org>
++++Forwarded: not-needed
++++Reviewed-By: Xavier Guimard <yadd@debian.org>
++++Last-Update: 2020-02-09
++++
++++--- a/Makefile
+++++++ b/Makefile
++++@@ -560,7 +560,7 @@
++++ # This target should not use a native compiler at all
++++ # Related CI job: node-test-commit-arm-fanned
++++ test-ci-js: | clear-stalled
++++-   $(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap --logfile test.tap \
+++++   $(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap \
++++            --mode=$(BUILDTYPE_LOWER) --flaky-tests=$(FLAKY_TESTS) \
++++            --skip-tests=$(CI_SKIP_TESTS) \
++++            $(TEST_CI_ARGS) $(CI_JS_SUITES)
++++--- a/test/parallel/parallel.status
+++++++ b/test/parallel/parallel.status
++++@@ -22,6 +22,28 @@
++++ # https://github.com/nodejs/node/issues/54006
++++ test-sqlite: PASS, FLAKY
++++ 
+++++test-process-config                  : PASS,FLAKY
+++++test-regress-GH-746                  : PASS,FLAKY
+++++test-stdout-close-unref              : PASS,FLAKY
+++++
+++++# https://bugs.debian.org/919588
+++++## flaky on some user environments
+++++test-net-listen-after-destroying-stdin: PASS,FLAKY
+++++## fails when running with eatmydata
+++++test-fs-error-messages: PASS,FLAKY
+++++
+++++# does not pass in autopkgtest ci env
+++++test-cluster-bind-privileged-port: PASS,FLAKY
+++++test-cluster-shared-handle-bind-privileged-port: PASS,FLAKY
+++++test-debugger-preserve-breaks: PASS,FLAKY
+++++
+++++# for debian buildd i386 (but pass on porter barriere.d.o)
+++++test-debugger-heap-profiler: PASS,FLAKY
+++++
+++++# fails on 32-bits arch, see #1069753
+++++test-fs-utimes: PASS,FLAKY
+++++test-fs-utimes-y2K38: PASS,FLAKY
+++++
++++ [$system==win32]
++++ # https://github.com/nodejs/node/issues/54807
++++ test-runner-watch-mode-complex: PASS, FLAKY
++++@@ -69,6 +91,10 @@
++++ # https://github.com/nodejs/node/issues/54801
++++ test-debugger-heap-profiler: PASS, FLAKY
++++ 
+++++[$arch==mips64el]
+++++# the debug flag is for hacking v8 internals
+++++test-debug-args: PASS,FLAKY
+++++
++++ [$system==solaris] # Also applies to SmartOS
++++ # https://github.com/nodejs/node/issues/43457
++++ test-domain-no-error-handler-abort-on-uncaught-0: PASS, FLAKY
++++@@ -120,10 +146,6 @@
++++ # https://github.com/nodejs/node/issues/48047
++++ test-http-pipeline-flood: SKIP
++++ 
++++-[$asan==on]
++++-# https://github.com/nodejs/node/issues/39655
++++-test-cluster-primary-error: PASS, FLAKY
++++-
++++ [$arch==loong64]
++++ # https://github.com/nodejs/node/issues/51662
++++ test-http-correct-hostname: SKIP
++++--- a/test/sequential/sequential.status
+++++++ b/test/sequential/sequential.status
++++@@ -7,12 +7,23 @@
++++ [true] # This section applies to all platforms
++++ # https://github.com/nodejs/node/issues/27611#issuecomment-613100468
++++ test-cpu-prof-dir-worker: PASS, FLAKY
+++++test-cpu-prof-dir-absolute: PASS,FLAKY
++++ # https://github.com/nodejs/node/issues/44898
++++ test-watch-mode: PASS, FLAKY
++++ test-watch-mode-inspect: PASS, FLAKY
++++ # https://github.com/nodejs/node/issues/47409
++++ test-http2-large-file: PASS, FLAKY
++++ 
+++++# flaky or failing at least on debian build servers
+++++test-fs-watch                                   : PASS,FLAKY
+++++test-http2-session-timeout                      : PASS,FLAKY
+++++test-debugger-preserve-breaks                   : PASS,FLAKY
+++++test-debugger-exec-scope                        : PASS,FLAKY
+++++test-worker-heapsnapshot-options                : PASS,FLAKY
+++++
+++++# https://github.com/nodejs/node/issues/24403
+++++test-cli-syntax: PASS,FLAKY
+++++
++++ [$system==win32]
++++ # https://github.com/nodejs/node/issues/47116
++++ test-http-max-sockets: PASS, FLAKY
++++--- a/test/common/index.js
+++++++ b/test/common/index.js
++++@@ -278,16 +278,15 @@
++++ 
++++ function platformTimeout(ms) {
++++   const multipliers = typeof ms === 'bigint' ?
++++-    { two: 2n, four: 4n, seven: 7n } : { two: 2, four: 4, seven: 7 };
+++++    { fast: 2n, slow: 4n } : { fast: 3, slow: 5 };
+++++ 
+++++  if (process.arch.startsWith('arm') || process.arch.startsWith('mips') || process.arch.startsWith('riscv'))
+++++    ms = multipliers.slow * ms;
+++++  else
+++++    ms = multipliers.fast * ms;
++++ 
++++   if (process.features.debug)
++++-    ms = multipliers.two * ms;
++++-
++++-  if (exports.isAIX || exports.isIBMi)
++++-    return multipliers.two * ms; // Default localhost speed is slower on AIX
++++-
++++-  if (isPi)
++++-    return multipliers.two * ms;  // Raspberry Pi devices
+++++    ms = multipliers.slow * ms;
++++ 
++++   return ms;
++++ }
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c03a6ce4fd3b54397939f117badf4bf782f7fd83
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,26 @@@@@
++++Description: Use system paths for builtins
++++Last-Update: 2023-02-22
++++Forwarded: not-needed
++++Author: Jérémy Lal <kapouer@melix.org>
++++--- a/test/parallel/test-process-versions.js
+++++++ b/test/parallel/test-process-versions.js
++++@@ -3,8 +3,8 @@
++++ const assert = require('assert');
++++ 
++++ // Import of pure js (non-shared) deps for comparison
++++-const acorn = require('../../deps/acorn/acorn/package.json');
++++-const cjs_module_lexer = require('../../deps/cjs-module-lexer/package.json');
+++++const acorn = require('/usr/share/nodejs/acorn/package.json');
+++++const cjs_module_lexer = require('/usr/share/nodejs/cjs-module-lexer/package.json');
++++ 
++++ const expected_keys = [
++++   'ares',
++++@@ -98,7 +98,7 @@
++++                    process.versions.napi);
++++ 
++++ if (hasUndici) {
++++-  const undici = require('../../deps/undici/src/package.json');
+++++  const undici = require('/usr/share/nodejs/undici/package.json');
++++   const expectedUndiciVersion = undici.version;
++++   assert.strictEqual(process.versions.undici, expectedUndiciVersion);
++++ }
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..65eabffaa804a7830436c55e4ee29e2be494fd22
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,23 @@@@@
++++Description: keep nodejs compatible with libc-ares public headers
++++Forwarded: not-needed
++++Last-Update: 2021-10-20
++++Author: Jérémy Lal <kapouer@melix.org>
++++--- a/src/cares_wrap.h
+++++++ b/src/cares_wrap.h
++++@@ -23,7 +23,15 @@
++++ # include <netdb.h>
++++ #endif  // __POSIX__
++++ 
++++-# include <ares_nameser.h>
+++++#if defined(__ANDROID__) || \
+++++    defined(__MINGW32__) || \
+++++    defined(__OpenBSD__) || \
+++++    defined(_MSC_VER)
+++++# include <nameser.h>
+++++#else
+++++# include <arpa/nameser.h>
+++++#endif
+++++
++++ 
++++ namespace node {
++++ namespace cares_wrap {
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..618787265ff6a4b692aed6b4a4c99dbd7145904f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,43 @@@@@
++++Description: do not use dns.ADDRCONFIG for localhost
++++ it fails on IPv6-only systems. Setting it with libc fails on linux.
++++ https://github.com/nodejs/node/issues/33279
++++ https://lists.debian.org/debian-devel/2023/12/msg00011.html
++++Author: Jérémy Lal <kapouer@melix.org>
++++Last-Update: 2020-06-11
++++Bug-Debian: https://bugs.debian.org/962318
++++Forwarded: https://github.com/nodejs/node/issues/33816
++++--- a/lib/net.js
+++++++ b/lib/net.js
++++@@ -1,4 +1,5 @@
++++ // Copyright Joyent, Inc. and other Node contributors.
+++++
++++ //
++++ // Permission is hereby granted, free of charge, to any person obtaining a
++++ // copy of this software and associated documentation files (the
++++@@ -1339,13 +1340,6 @@
++++     hints: options.hints || 0,
++++   };
++++ 
++++-  if (!isWindows &&
++++-      dnsopts.family !== 4 &&
++++-      dnsopts.family !== 6 &&
++++-      dnsopts.hints === 0) {
++++-    dnsopts.hints = dns.ADDRCONFIG;
++++-  }
++++-
++++   debug('connect: find host', host);
++++   debug('connect: dns options', dnsopts);
++++   self._host = host;
++++--- a/test/sequential/sequential.status
+++++++ b/test/sequential/sequential.status
++++@@ -24,6 +24,10 @@
++++ # https://github.com/nodejs/node/issues/24403
++++ test-cli-syntax: PASS,FLAKY
++++ 
+++++# does not work on IPv6 only host
+++++test-tls-psk-client: PASS,FLAKY
+++++test-tls-securepair-client: PASS,FLAKY
+++++
++++ [$system==win32]
++++ # https://github.com/nodejs/node/issues/47116
++++ test-http-max-sockets: PASS, FLAKY
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c91a03b814b75a1da3787bbdd70864769b5762ec
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,29 @@@@@
++++Description: use system-installed node-gyp for building test modules
++++Author: Jérémy Lal <kapouer@melix.org>
++++Last-Update: 2015-09-09
++++Forwarded: not-needed
++++--- a/Makefile
+++++++ b/Makefile
++++@@ -396,13 +396,8 @@
++++ # for generating headers. The list is manually synchronized with install.py.
++++ ADDONS_HEADERS_PREREQS := tools/install.py \
++++    config.gypi common.gypi \
++++-   $(wildcard deps/openssl/config/*.h) \
++++-   $(wildcard deps/openssl/openssl/include/openssl/*.h) \
++++-   $(wildcard deps/uv/include/*.h) \
++++-   $(wildcard deps/uv/include/*/*.h) \
++++    $(wildcard deps/v8/include/*.h) \
++++    $(wildcard deps/v8/include/*/*.h) \
++++-   deps/zlib/zconf.h deps/zlib/zlib.h \
++++    src/node.h src/node_api.h src/js_native_api.h src/js_native_api_types.h \
++++    src/node_api_types.h src/node_buffer.h src/node_object_wrap.h \
++++    src/node_version.h
++++@@ -423,7 +418,7 @@
++++    $(filter-out test/addons/??_*/*.h, $(wildcard test/addons/*/*.h))
++++ 
++++ ADDONS_PREREQS := test/addons/.headersbuildstamp \
++++-   deps/npm/node_modules/node-gyp/package.json tools/build_addons.py
+++++   tools/build_addons.py
++++ 
++++ define run_build_addons
++++ env $(PYTHON) "$$PWD/tools/build_addons.py" --loglevel=$(LOGLEVEL) --headers-dir "$(ADDONS_HEADERS_DIR)" $1
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..70a0e63ae6799190d3a03fc2daaecc6ba07bcb3e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,26 @@@@@
++++Description: compile v8 without zlib static lib
++++ it should have a minor performance impact
++++Author: Jérémy Lal <kapouer@melix.org>
++++Last-Update: 2023-12-16
++++Forwarded: https://github.com/nodejs/node/issues/33848
++++--- a/tools/v8_gypfiles/features.gypi
+++++++ b/tools/v8_gypfiles/features.gypi
++++@@ -288,7 +288,7 @@
++++ 
++++     # Compile V8 using zlib as dependency.
++++     # Sets -DV8_USE_ZLIB
++++-    'v8_use_zlib%': 1,
+++++    'v8_use_zlib%': 0,
++++ 
++++     # Variables from v8.gni
++++ 
++++--- a/tools/v8_gypfiles/v8.gyp
+++++++ b/tools/v8_gypfiles/v8.gyp
++++@@ -861,7 +861,6 @@
++++         'run_torque',
++++         'v8_internal_headers',
++++         'v8_maybe_icu',
++++-        'v8_zlib',
++++         'v8_pch',
++++       ],
++++       'includes': ['inspector.gypi'],
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5f39029b14e40432c2453b81017200e801f9c206
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,61 @@@@@
++++Description: a test uses a benchmark that read alice.html, dfsg excluded
++++Author: Jérémy Lal <kapouer@melix.org>
++++Forwarded: not-needed
++++Reviewed-By: Xavier Guimard <yadd@debian.org>
++++Last-Update: 2020-03-04
++++
++++--- a/benchmark/buffers/buffer-indexof-number.js
+++++++ b/benchmark/buffers/buffer-indexof-number.js
++++@@ -10,7 +10,7 @@
++++ 
++++ function main({ n, value }) {
++++   const aliceBuffer = fs.readFileSync(
++++-    path.resolve(__dirname, '../fixtures/alice.html'),
+++++    path.resolve(__dirname, '../../doc/api/all.html'),
++++   );
++++ 
++++   let count = 0;
++++--- a/benchmark/buffers/buffer-indexof.js
+++++++ b/benchmark/buffers/buffer-indexof.js
++++@@ -31,7 +31,7 @@
++++ 
++++ function main({ n, search, encoding, type }) {
++++   let aliceBuffer = fs.readFileSync(
++++-    path.resolve(__dirname, '../fixtures/alice.html'),
+++++    path.resolve(__dirname, '../../doc/api/all.html'),
++++   );
++++ 
++++   if (encoding === 'undefined') {
++++--- a/benchmark/http2/compat.js
+++++++ b/benchmark/http2/compat.js
++++@@ -3,7 +3,7 @@
++++ const common = require('../common.js');
++++ const path = require('path');
++++ const fs = require('fs');
++++-const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html');
+++++const file = path.join(path.resolve(__dirname, '../../doc/api'), 'all.html');
++++ 
++++ const bench = common.createBenchmark(main, {
++++   requests: [100, 1000, 5000],
++++--- a/benchmark/http2/respond-with-fd.js
+++++++ b/benchmark/http2/respond-with-fd.js
++++@@ -4,7 +4,7 @@
++++ const path = require('path');
++++ const fs = require('fs');
++++ 
++++-const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html');
+++++const file = path.join(path.resolve(__dirname, '../../doc/api'), 'all.html');
++++ 
++++ const bench = common.createBenchmark(main, {
++++   requests: [100, 1000, 5000],
++++--- a/benchmark/http2/simple.js
+++++++ b/benchmark/http2/simple.js
++++@@ -3,7 +3,7 @@
++++ const common = require('../common.js');
++++ const path = require('path');
++++ const fs = require('fs');
++++-const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html');
+++++const file = path.join(path.resolve(__dirname, '../../doc/api'), 'all.html');
++++ 
++++ const bench = common.createBenchmark(main, {
++++   requests: [100, 1000, 5000],
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..bb5f8dee10bcc06ba9d665a94a194f2dbe169eba
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,112 @@@@@
++++Description: Multiarch search path, arch triplet, DFHS path for modules
++++Author: "Bastien ROUCARIÈS" <roucaries.bastien@gmail.com>
++++Last-Update: 2018-09-30
++++Forwarded: https://github.com/nodejs/node/issues/22745
++++Reviewed-By: Xavier Guimard <yadd@debian.org>
++++Last-Update: 2020-03-04
++++
++++--- a/lib/internal/modules/cjs/loader.js
+++++++ b/lib/internal/modules/cjs/loader.js
++++@@ -1643,6 +1643,7 @@
++++ Module._initPaths = function() {
++++   const homeDir = isWindows ? process.env.USERPROFILE : safeGetenv('HOME');
++++   const nodePath = isWindows ? process.env.NODE_PATH : safeGetenv('NODE_PATH');
+++++  const relativePaths = process.config?.variables?.node_relative_path;
++++ 
++++   // process.execPath is $PREFIX/bin/node except on Windows where it is
++++   // $PREFIX\node.exe where $PREFIX is the root of the Node.js installation.
++++@@ -1650,7 +1651,18 @@
++++     path.resolve(process.execPath, '..') :
++++     path.resolve(process.execPath, '..', '..');
++++ 
++++-  const paths = [path.resolve(prefixDir, 'lib', 'node')];
+++++  const postDirs = [];
+++++  if (relativePaths) {
+++++    relativePaths.split(path.delimiter).map(path => {
+++++      if (path) postDirs.push(path);
+++++    });
+++++  } else {
+++++    postDirs.push(path.join('lib', 'node'));
+++++  }
+++++
+++++  const paths = postDirs.map(postDir => {
+++++    return path.resolve(prefixDir, postDir);
+++++  });
++++ 
++++   if (homeDir) {
++++     ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries'));
++++--- a/configure.py
+++++++ b/configure.py
++++@@ -96,6 +96,12 @@
++++     default=None,
++++     help='Build node with code coverage enabled')
++++ 
+++++parser.add_argument('--arch-triplet',
+++++    action='store',
+++++    dest='arch_triplet',
+++++    default=None,
+++++    help='arch triplet used by distro')
+++++
++++ parser.add_argument('--debug',
++++     action='store_true',
++++     dest='debug',
++++@@ -149,6 +155,13 @@
++++     default=None,
++++     help='add gdb support')
++++ 
+++++parser.add_argument('--node-relative-path',
+++++    action='store',
+++++    dest='node_relative_path',
+++++    default=None,
+++++    help='Node path(s) used by require, resolved relative to prefix dir.')
+++++
+++++
++++ parser.add_argument('--no-ifaddrs',
++++     action='store_true',
++++     dest='no_ifaddrs',
++++@@ -1552,6 +1565,17 @@
++++   version = getnapibuildversion.get_napi_version()
++++   output['variables']['napi_build_version'] = version
++++ 
+++++def configure_debian(output):
+++++  if options.arch_triplet:
+++++    output['variables']['arch_triplet'] = options.arch_triplet
+++++  else:
+++++    output['variables']['arch_triplet'] = 'unknown-unknown-unknown'
+++++
+++++  if options.node_relative_path:
+++++    output['variables']['node_relative_path'] = options.node_relative_path
+++++  else:
+++++    output['variables']['node_relative_path']= ''
+++++
++++ def configure_library(lib, output, pkgname=None):
++++   shared_lib = 'shared_' + lib
++++   output['variables']['node_' + shared_lib] = b(getattr(options, shared_lib))
++++@@ -2135,6 +2159,7 @@
++++ configure_node(output)
++++ configure_node_lib_files(output)
++++ configure_napi(output)
+++++configure_debian(output)
++++ configure_library('zlib', output)
++++ configure_library('http_parser', output)
++++ configure_library('libuv', output)
++++--- a/test/parallel/test-module-loading-globalpaths.js
+++++++ b/test/parallel/test-module-loading-globalpaths.js
++++@@ -71,12 +71,12 @@
++++   env.HOME = env.USERPROFILE = bothHomeDir;
++++   runTest('$HOME/.node_modules', env);
++++ 
++++-  // Test module in $PREFIX/lib/node.
++++-  // Write module into $PREFIX/lib/node.
++++-  const expectedString = '$PREFIX/lib/node';
++++-  const prefixLibPath = path.join(prefixPath, 'lib');
+++++  // Test module in $PREFIX/share/node.
+++++  // Write module into $PREFIX/share/node.
+++++  const expectedString = '$PREFIX/share/nodejs';
+++++  const prefixLibPath = path.join(prefixPath, 'share');
++++   fs.mkdirSync(prefixLibPath);
++++-  const prefixLibNodePath = path.join(prefixLibPath, 'node');
+++++  const prefixLibNodePath = path.join(prefixLibPath, 'nodejs');
++++   fs.mkdirSync(prefixLibNodePath);
++++   const pkgPath = path.join(prefixLibNodePath, `${pkgName}.js`);
++++   fs.writeFileSync(pkgPath, `exports.string = '${expectedString}';`);
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..2e7ada91b43083964cd5a12678017e721bc7bd17
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,17 @@@@@
++++Description: remove google font from template.html, and link to local
++++Author: Jérémy Lal <kapouer@melix.org>
++++Last-Update: 2015-09-09
++++Forwarded: not-needed
++++--- a/doc/template.html
+++++++ b/doc/template.html
++++@@ -5,10 +5,8 @@
++++   <meta name="viewport" content="width=device-width">
++++   <meta name="nodejs.org:node-version" content="__VERSION__">
++++   <title>__SECTION__ | Node.js __VERSION__ Documentation</title>
++++-  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic&display=fallback">
++++   <link rel="stylesheet" href="assets/style.css">
++++   <link rel="stylesheet" href="assets/hljs.css">
++++-  <link rel="canonical" href="https://nodejs.org/api/__FILENAME__.html">
++++   <script async defer src="assets/api.js" type="text/javascript"></script>
++++   <script>
++++       const storedTheme = localStorage.getItem('theme');
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b2afb91994ef2e9b265696d2dfd32516573d5560
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,35 @@@@@
++++Description: allow some tests to fail on loong64
++++Author: Bo YU <tsu.yubo@gmail.com>
++++Last-Update: 2023-12-09
++++Forwarded: no
++++--- a/test/parallel/parallel.status
+++++++ b/test/parallel/parallel.status
++++@@ -91,6 +91,15 @@
++++ # https://github.com/nodejs/node/issues/54801
++++ test-debugger-heap-profiler: PASS, FLAKY
++++ 
+++++[$arch==loong64]
+++++test-crypto-sign-verify: PASS, FLAKY
+++++test-freeze-intrinsics: PASS, FLAKY
+++++test-tls-root-certificates: PASS, FLAKY
+++++test-vm-global-non-writable-properties: PASS, FLAKY
+++++test-vm-global-setter: PASS, FLAKY
+++++test-vm-module-synthetic: PASS, FLAKY
+++++test-vm-strict-assign: PASS, FLAKY
+++++
++++ [$arch==mips64el]
++++ # the debug flag is for hacking v8 internals
++++ test-debug-args: PASS,FLAKY
++++--- a/test/sequential/sequential.status
+++++++ b/test/sequential/sequential.status
++++@@ -70,6 +70,10 @@
++++ # https://github.com/nodejs/node/issues/41286
++++ test-performance-eventloopdelay: PASS, FLAKY
++++ 
+++++[$arch==loong64 || $arch==mips64el]
+++++test-worker-prof: PASS, FLAKY
+++++test-cpu-prof-dir-relative: PASS, FLAKY
+++++
++++ [$arch==riscv64]
++++ test-diagnostic-dir-cpu-prof: PASS, FLAKY
++++ test-cpu-prof-worker-argv: PASS, FLAKY
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..d1f0748cdceba83f3e2a22f67c19e7f7a6fd5a94
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,22 @@@@@
++++Description: some tests fail on mips64el
++++ That architecture support improves over time - node 20.x branch has better support
++++ Meanwhile, let those tests fail.
++++Forwarded: not-needed
++++--- a/test/parallel/parallel.status
+++++++ b/test/parallel/parallel.status
++++@@ -94,6 +94,15 @@
++++ [$arch==mips64el]
++++ # the debug flag is for hacking v8 internals
++++ test-debug-args: PASS,FLAKY
+++++test-worker-heapsnapshot-options: PASS,FLAKY
+++++test-cli-node-options: SKIP
+++++test-crypto-sign-verify: PASS,FLAKY
+++++test-freeze-intrinsics: PASS,FLAKY
+++++test-tls-root-certificates: PASS,FLAKY
+++++test-vm-global-non-writable-properties: PASS,FLAKY
+++++test-vm-global-setter: PASS,FLAKY
+++++test-vm-module-synthetic: PASS,FLAKY
+++++test-vm-strict-assign: PASS,FLAKY
++++ 
++++ [$system==solaris] # Also applies to SmartOS
++++ # https://github.com/nodejs/node/issues/43457
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..34aa6bda2814f6076631f51bac26aefb4ddce86d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,26 @@@@@
++++Description: mksnapshot uses too much memory on 32-bit mipsel
++++Author: Jérémy Lal <kapouer@melix.org>
++++Last-Update: 2020-06-03
++++Forwarded: https://bugs.chromium.org/p/v8/issues/detail?id=10586
++++--- a/deps/v8/src/common/globals.h
+++++++ b/deps/v8/src/common/globals.h
++++@@ -284,7 +284,7 @@
++++ constexpr size_t kMinExpectedOSPageSize = 64 * KB;  // OS page on PPC Linux
++++ #elif V8_TARGET_ARCH_MIPS
++++ constexpr bool kPlatformRequiresCodeRange = false;
++++-constexpr size_t kMaximalCodeRangeSize = 2048LL * MB;
+++++constexpr size_t kMaximalCodeRangeSize = 512 * MB;
++++ constexpr size_t kMinimumCodeRangeSize = 0 * MB;
++++ constexpr size_t kMinExpectedOSPageSize = 4 * KB;  // OS page.
++++ #else
++++--- a/deps/v8/src/codegen/mips/constants-mips.h
+++++++ b/deps/v8/src/codegen/mips/constants-mips.h
++++@@ -140,7 +140,7 @@
++++ namespace v8 {
++++ namespace internal {
++++ 
++++-constexpr size_t kMaxPCRelativeCodeRangeInMB = 4096;
+++++constexpr size_t kMaxPCRelativeCodeRangeInMB = 1024;
++++ 
++++ // -----------------------------------------------------------------------------
++++ // Registers and FPURegisters.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..230554381a42e67db99e25d8d86feaf138fac771
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,18 @@@@@
++++Description: fix double register usage on mipsel
++++Author: Jérémy Lal <kapouer@melix.org>
++++Forwarded: not-yet
++++Last-Update: 2022-06-15
++++--- a/deps/v8/src/codegen/mips/register-mips.h
+++++++ b/deps/v8/src/codegen/mips/register-mips.h
++++@@ -32,9 +32,8 @@
++++ // Currently, MIPS just use even float point register, except
++++ // for C function param registers.
++++ #define DOUBLE_USE_REGISTERS(V)                           \
++++-  V(f0)  V(f2)  V(f4)  V(f6)  V(f8)  V(f10) V(f12) V(f13) \
++++-  V(f14) V(f15) V(f16) V(f18) V(f20) V(f22) V(f24) V(f26) \
++++-  V(f28) V(f30)
+++++  V(f0)  V(f2)  V(f4)  V(f6)  V(f8)  V(f10) V(f12) V(f14) \
+++++  V(f16) V(f18) V(f20) V(f22) V(f24) V(f26) V(f28) V(f30)
++++ 
++++ #define FLOAT_REGISTERS DOUBLE_REGISTERS
++++ #define SIMD128_REGISTERS(V)                              \
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3e6dc35374fb98433e349b2ed2a301b37c21750c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,15 @@@@@
++++Description: mipsel in debian supports 32-bit processors
++++Forwarded: not-needed
++++Last-Update: 2021-11-03
++++Author: Jérémy Lal <kapouer@melix.org>
++++--- a/test/common/index.js
+++++++ b/test/common/index.js
++++@@ -35,7 +35,7 @@
++++ const { isModuleNamespaceObject } = require('util/types');
++++ 
++++ const tmpdir = require('./tmpdir');
++++-const bits = ['arm64', 'loong64', 'mips', 'mipsel', 'ppc64', 'riscv64', 's390x', 'x64']
+++++const bits = ['arm64', 'loong64', 'mips', 'mips64el', 'ppc64', 'riscv64', 's390x', 'x64']
++++   .includes(process.arch) ? 64 : 32;
++++ const hasIntl = !!process.config.variables.v8_enable_i18n_support;
++++ 
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..9b54c0d7b7ffa569d77099538e24fca782e107fd
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,14 @@@@@
++++Description: allow undici-related failures on riscv64 for the time being
++++Forwarded: not-yet
++++Last-Update: 2022-10-01
++++Author: Jérémy Lal <kapouer@melix.org>
++++--- a/test/parallel/parallel.status
+++++++ b/test/parallel/parallel.status
++++@@ -140,3 +140,7 @@
++++ test-http-upgrade-advertise: PASS, FLAKY
++++ test-tls-client-mindhsize: PASS, FLAKY
++++ test-tls-write-error: PASS, FLAKY
+++++
+++++[$arch==riscv64]
+++++test-fetch: PASS, FLAKY
+++++test-wasm-web-api: PASS, FLAKY
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..0cd5b1286298bf8c9eba260991128f46c3e41784
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,53 @@@@@
++++Subject: test does not pass on riscv64
++++Last-Update: 2022-12-14
++++Author: Jérémy Lal <kapouer@melix.org>, Bo YU <tsu.yubo@gmail.com>
++++Forwarded: not-yet
++++
++++--- a/test/sequential/sequential.status
+++++++ b/test/sequential/sequential.status
++++@@ -70,6 +70,22 @@
++++ # https://github.com/nodejs/node/issues/41286
++++ test-performance-eventloopdelay: PASS, FLAKY
++++ 
+++++[$arch==riscv64]
+++++test-diagnostic-dir-cpu-prof: PASS, FLAKY
+++++test-cpu-prof-worker-argv: PASS, FLAKY
+++++test-cpu-prof-dir-and-name: PASS, FLAKY
+++++test-cpu-prof-exit: PASS, FLAKY
+++++test-cpu-prof-kill: PASS, FLAKY
+++++test-cpu-prof-name: PASS, FLAKY
+++++test-diagnostic-dir-cpu-prof: PASS, FLAKY
+++++test-debugger-auto-resume: PASS, FLAKY
+++++test-debugger-preserve-breaks: PASS, FLAKY
+++++test-cpu-prof-dir-relative: PASS, FLAKY
+++++test-cpu-prof-drained: PASS, FLAKY
+++++test-worker-prof: PASS, FLAKY
+++++test-vm-timeout-escape-promise-module-2: PASS, FLAKY
+++++test-cpu-prof-dir-absolute: PASS, FLAKY
+++++
++++ [$system==linux && $arch==ppc64]
++++ # https://github.com/nodejs/node/issues/50740
++++ test-single-executable-application-assets-raw: PASS, FLAKY
++++--- a/test/parallel/parallel.status
+++++++ b/test/parallel/parallel.status
++++@@ -158,3 +158,20 @@
++++ [$arch==loong64]
++++ # https://github.com/nodejs/node/issues/51662
++++ test-http-correct-hostname: SKIP
+++++
+++++[$arch==riscv64]
+++++test-fetch: PASS, FLAKY
+++++test-net-socket-connect-without-cb: PASS, FLAKY
+++++test-runner-inspect: PASS, FLAKY
+++++test-runner-output: PASS, FLAKY
+++++test-tcp-wrap-listen: PASS, FLAKY
+++++test-wasm-web-api: PASS, FLAKY
+++++test-vm-timeout-escape-promise-module: PASS, FLAKY
+++++test-crypto-sign-verify: PASS, FLAKY
+++++test-freeze-intrinsics: PASS, FLAKY
+++++test-tls-root-certificates: PASS, FLAKY
+++++test-vm-global-non-writable-properties: PASS, FLAKY
+++++test-vm-global-setter: PASS, FLAKY
+++++test-vm-module-synthetic: PASS, FLAKY
+++++test-vm-strict-assign: PASS, FLAKY
+++++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..42e56bc4026a268607bb8d948c481b09f5509d67
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,25 @@@@@
++++build/more_shareable_builtins.patch
++++build/builtins_module_paths_not_shareable.patch
++++build/cctest_disable.patch
++++build/doc.patch
++++build/flag_atomic.patch
++++build/test_ci.patch
++++deps/cares.patch
++++deps/localhost-no-addrconfig.patch
++++deps/node_gyp.patch
++++dfsg/benchmark_without_alice.patch
++++dfsg/multilib_modules.patch
++++dfsg/privacy_breach.patch
++++mips/mipsel_is_32.patch
++++build/skip-buffer-nan-internal-check.patch
++++mips/flaky_tests.patch
++++riscv/flaky_tests.patch
++++armel/configure.patch
++++build/doc_template_home.html
++++build/test_process_versions.patch
++++arm64/stacksize.patch
++++build/ada.patch
++++loong64/tests.patch
++++deps/v8-no-static-zlib.patch
++++build/openssl-3-2-2-tests.patch
++++build/no-deps.patch
diff --cc debian/rules
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..52d233654facb22b5a0107a92a15c5a6c13449ac
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,309 @@@@@
++++#!/usr/bin/make -f
++++
++++include /usr/share/dpkg/architecture.mk
++++include /usr/share/dpkg/pkg-info.mk
++++include /usr/share/dpkg/buildtools.mk
++++
++++
++++export DEB_BUILD_MAINT_OPTIONS = hardening=+all
++++
++++builtins := /usr/share/nodejs/node
++++
++++# source equivalent of nodejs -e 'console.log(process.versions.modules)'
++++ABI = $(shell awk '/^#define NODE_MODULE_VERSION [0-9]+/ {print $$3}' src/node_version.h)
++++
++++# archs
++++ARCHS := amd64 arm64 armel armhf i386 mips64el mips64r6el loong64 ppc64 ppc64el riscv64 s390x
++++
++++# branch
++++BRANCH := $(word 1, $(subst .,$(space), $(DEB_UPSTREAM_VERSION)))
++++
++++LANG=C
++++export LANG
++++DEB_CONFIGURE_NORMAL_ARGS =
++++DEB_CONFIGURE_EXTRA_FLAGS = \
++++--verbose \
++++--without-npm \
++++--without-corepack \
++++--shared \
++++--shared-zlib \
++++--shared-cares \
++++--shared-ngtcp2 \
++++--shared-nghttp3 \
++++--shared-nghttp2 \
++++--shared-brotli \
++++--shared-libuv \
++++--shared-simdjson \
++++--shared-builtin-undici/undici-path=/usr/share/nodejs/undici/undici-fetch.js \
++++--shared-builtin-acorn-path=/usr/share/nodejs/acorn/dist/acorn.js \
++++--shared-builtin-acorn_walk-path=/usr/share/nodejs/acorn-walk/dist/walk.js \
++++--shared-builtin-cjs_module_lexer/lexer-path=/usr/share/nodejs/cjs-module-lexer/lexer.js \
++++--shared-builtin-cjs_module_lexer/dist/lexer-path=/usr/share/nodejs/cjs-module-lexer/dist/lexer.js \
++++--shared-builtin-minimatch-path=/usr/share/nodejs/minimatch/dist/cjs/index.bundle.js \
++++--shared-openssl \
++++--openssl-use-def-ca-store \
++++--with-intl=system-icu \
++++--prefix=/usr \
++++--arch-triplet=$(DEB_HOST_MULTIARCH) \
++++--node-relative-path="lib/$(DEB_HOST_MULTIARCH)/nodejs:share/nodejs" \
++++--dest-os=linux
++++
++++ifneq ($(filter pkg.nodejs.nobuiltin,$(DEB_BUILD_PROFILES)),)
++++    DEB_CONFIGURE_EXTRA_FLAGS += --node-builtin-modules-path=$(builtins)
++++endif
++++
++++# map HOST ARCH AND OS, and if unknown let upstream guess
++++
++++destCpu =
++++destCpu := $(or $(destCpu),$(if $(filter i386,$(DEB_HOST_ARCH)),ia32))
++++destCpu := $(or $(destCpu),$(if $(filter x32,$(DEB_HOST_ARCH)),x32))
++++destCpu := $(or $(destCpu),$(if $(filter hurd-i386,$(DEB_HOST_ARCH)),ia32))
++++destCpu := $(or $(destCpu),$(if $(filter amd64,$(DEB_HOST_ARCH)),x64))
++++destCpu := $(or $(destCpu),$(if $(filter armel,$(DEB_HOST_ARCH)),arm))
++++destCpu := $(or $(destCpu),$(if $(filter armhf,$(DEB_HOST_ARCH)),arm))
++++destCpu := $(or $(destCpu),$(if $(filter aarch64,$(DEB_HOST_ARCH)),arm64))
++++destCpu := $(or $(destCpu),$(if $(filter mips64el,$(DEB_HOST_ARCH)),mips64el))
++++destCpu := $(or $(destCpu),$(if $(filter mips64r6el,$(DEB_HOST_ARCH)),mips64el))
++++destCpu := $(or $(destCpu),$(if $(filter loong64,$(DEB_HOST_ARCH)),loong64))
++++destCpu := $(or $(destCpu),$(if $(filter powerpc,$(DEB_HOST_ARCH)),ppc))
++++destCpu := $(or $(destCpu),$(if $(filter ppc64,$(DEB_HOST_ARCH)),ppc64))
++++destCpu := $(or $(destCpu),$(if $(filter riscv64,$(DEB_HOST_ARCH)),riscv64))
++++destCpu := $(or $(destCpu),$(if $(filter s390x,$(DEB_HOST_ARCH)),s390x))
++++
++++ifneq (, $(destCpu))
++++DEB_CONFIGURE_EXTRA_FLAGS += --dest-cpu=$(destCpu)
++++endif
++++
++++# mips32r1 or greater, detected at runtime
++++ifeq (mips64el, $(DEB_HOST_ARCH))
++++DEB_CONFIGURE_EXTRA_FLAGS += --with-mips-arch-variant=rx --with-mips-fpu-mode=fp64
++++CFLAGS += -gsplit-dwarf
++++CPPFLAGS += -gsplit-dwarf
++++endif
++++ifeq (mips64r6el, $(DEB_HOST_ARCH))
++++DEB_CONFIGURE_EXTRA_FLAGS += --with-mips-arch-variant=rx --with-mips-fpu-mode=fp64
++++CFLAGS += -gsplit-dwarf
++++CPPFLAGS += -gsplit-dwarf
++++endif
++++
++++ifeq (armel, $(DEB_HOST_ARCH))
++++DEB_CONFIGURE_EXTRA_FLAGS += --with-arm-float-abi=softfp
++++ifeq ($(shell dpkg-vendor --is ubuntu && echo true),true)
++++# Ubuntu targets armv7+ with VFP and thumb2 support by default for armel
++++DEB_CONFIGURE_EXTRA_FLAGS += --with-arm-fpu=vfpv3
++++else
++++# debian armel version
++++# v8 supports armv6k (must be set explicitely) + vfpv2 (selected by default)
++++# armv6k is only not available on ARM1136JF-S r0p2, and available on r1p0.
++++DEB_CONFIGURE_EXTRA_FLAGS += --with-arm-fpu=vfpv2 --with-arm-version=6
++++CFLAGS += -march=armv6k -mfpu=vfpv2
++++CPPFLAGS += -march=armv6k -mfpu=vfpv2
++++endif
++++endif
++++
++++ifeq (armhf, $(DEB_HOST_ARCH))
++++DEB_CONFIGURE_EXTRA_FLAGS += --with-arm-float-abi=hard
++++ifeq ($(shell dpkg-vendor --derives-from raspbian && echo true),true)
++++# enable vfp, disable armv7
++++DEB_CONFIGURE_EXTRA_FLAGS += --with-arm-fpu=vfp
++++else
++++# enable armv7 vfpv3-d16
++++DEB_CONFIGURE_EXTRA_FLAGS += --with-arm-fpu=vfpv3-d16
++++endif
++++endif
++++
++++DEB_DESTDIR = $(CURDIR)/debian/tmp
++++DEB_MAKE_CLEAN_TARGET = clean
++++DEB_MAKE_BUILD_TARGET = build
++++
++++#  relax regression tests when targeted experimental suite
++++skipTests =
++++# tests require undici >= 6.5.0
++++skipTests := $(skipTests),parallel/test-eventsource
++++# tests using npm
++++skipTests := $(skipTests),parallel/test-npm-install
++++skipTests := $(skipTests),parallel/test-npm-version
++++skipTests := $(skipTests),parallel/test-release-npm
++++# tests using network
++++skipTests := $(skipTests),parallel/test-dns
++++skipTests := $(skipTests),parallel/test-net-connect-immediate-finish
++++skipTests := $(skipTests),parallel/test-net-better-error-messages-port-hostname
++++skipTests := $(skipTests),parallel/test-https-connect-address-family
++++skipTests := $(skipTests),parallel/test-tls-connect-address-family
++++skipTests := $(skipTests),parallel/test-dns-cancel-reverse-lookup
++++skipTests := $(skipTests),parallel/test-dns-resolveany-bad-ancount
++++# bad test
++++skipTests := $(skipTests),parallel/test-child-process-stdio-overlapped
++++# requires corepack
++++skipTests := $(skipTests),parallel/test-corepack-yarn-install
++++skipTests := $(skipTests),parallel/test-corepack-version
++++# fail on buildd
++++skipTests := $(skipTests),sequential/test-force-repl
++++skipTests := $(skipTests),sequential/test-performance
++++# flaky on buildd https://github.com/nodejs/node/issues/39655
++++skipTests := $(skipTests),parallel/test-cluster-primary-error
++++skipTests := $(skipTests),parallel/test-cluster-primary-kill
++++# hangs https://github.com/nodejs/node/issues/44898
++++skipTests := $(skipTests),sequential/test-watch-mode
++++skipTests := $(skipTests),sequential/test-watch-mode-inspect
++++# CVE-2024-22017 shared libuv cannot guarantee io_uring is disabled
++++skipTests := $(skipTests),parallel/test-process-uid-gid
++++skipTests := $(skipTests),parallel/test-process-initgroups
++++skipTests := $(skipTests),parallel/test-process-setgroups
++++skipTests := $(skipTests),parallel/test-process-euid-egid
++++# sea requires postject
++++skipTests := $(skipTests),parallel/test-single-executable-application
++++# loading of openssl for tests make this test fail
++++skipTests := $(skipTests),parallel/test-strace-openat-openssl
++++
++++export HOME = $(CURDIR)/tmp
++++export FLAKY_TESTS = dontcare
++++export CI_JS_SUITES = message parallel sequential
++++export NODE_TEST_DIR = $(CURDIR)/tmp
++++export NODE_TEST_NO_INTERNET = 1
++++# needed for tests to avoid "ee key too small" errors
++++export OPENSSL_CONF = $(CURDIR)/debian/openssl.cnf
++++# keep in mind ./debian/rules check is also invoked by adt-run, see debian/tests/
++++exp-relax-check := $(if $(shell dpkg-parsechangelog | grep -x 'Distribution: \(experimental\|UNRELEASED\)'),-i)
++++DEB_MAKE_CHECK_TARGET = $(exp-relax-check) test-ci-js
++++export CI_SKIP_TESTS = $(skipTests)
++++TEST_CI_ARGS = --arch=$(destCpu) --timeout=3000
++++
++++# override Node.js path when running under adt-run (no build directory present)
++++ifeq (,$(wildcard $(CURDIR)/out))
++++TEST_CI_ARGS += --shell=/usr/bin/node
++++else
++++TEST_CI_ARGS += --shell=out/Release/node
++++endif
++++export TEST_CI_ARGS
++++
++++# build -fPIC
++++CFLAGS += -fPIC
++++CPPFLAGS += -fPIC
++++
++++ifeq ($(DEB_HOST_ARCH_BITS),32)
++++CFLAGS += -g1
++++CPPFLAGS += -g1
++++DH_FLAGS += --max-parallel=1
++++export JOBS = 1
++++else
++++CFLAGS += -g
++++CPPFLAGS += -g
++++endif
++++
++++
++++# hardening gyp
++++CXXFLAGS += $(CPPFLAGS)
++++
++++export CPPFLAGS
++++export CXXFLAGS
++++export CFLAGS
++++export LDFLAGS
++++
++++export PYTHON = python3
++++
++++%:
++++    dh $@ $(DH_FLAGS)
++++
++++# properly clean files from build, test, python
++++execute_after_dh_auto_clean:
++++    rm -f node_trace.1.log
++++    rm -f icu_config.gypi
++++    rm -rf test/addons/doc-*
++++    rm -f test/addons/.buildstamp
++++    rm -f test/addons/.docbuildstamp
++++    rm -rf test/addons/*/build
++++    rm -f config.gypi
++++    rm -f config.mk
++++    rm -f config.status
++++    rm -f test/fixtures/hello.txt
++++    rm -rf $(NODE_TEST_DIR)
++++    find . -name "*.pyc" -delete
++++    rm -rf out
++++    rm -rf node_modules
++++    rm -f debian/libnode$(ABI).install
++++    rm -f debian/libnode-dev.links
++++    rm -f debian/nodejs.install
++++    rm -f debian/nodejs.bash-completion
++++    rm -rf deps/openssl/
++++
++++# remove *.json files from documentation
++++execute_after_dh_installdocs:
++++    find debian/nodejs-doc/usr/share/doc/nodejs-doc -name *.json -delete || true
++++
++++override_dh_auto_configure:
++++# gyp    | debian
++++# -------+-------
++++# target | host
++++# host   | build
++++
++++ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
++++    CC=$(CC) CXX=$(CXX) PKG_CONFIG=$(PKG_CONFIG) CC_host=$(CC_FOR_BUILD) CXX_host=$(CXX_FOR_BUILD) ./configure --cross-compiling $(DEB_CONFIGURE_EXTRA_FLAGS)
++++else
++++    ./configure $(DEB_CONFIGURE_EXTRA_FLAGS)
++++endif
++++
++++execute_before_dh_auto_build-arch:
++++    mkdir -p deps/openssl/ && touch deps/openssl/nodejs-openssl.cnf
++++    pkver=`dpkg-query --showformat='$${source:Upstream-Version}' --show node-acorn | sed -E 's/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/g'`; \
++++    sed -i -e "s/[0-9]\+\.[0-9]\+\.[0-9]\+/$${pkver}/" src/acorn_version.h
++++    pkver=`dpkg-query --showformat='$${source:Upstream-Version}' --show node-cjs-module-lexer | sed -E 's/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/g'`; \
++++    sed -i -e "s/[0-9]\+\.[0-9]\+\.[0-9]\+/$${pkver}/" src/cjs_module_lexer_version.h
++++    pkver=`dpkg-query --showformat='$${source:Upstream-Version}' --show node-undici | sed -E 's/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/g'`; \
++++    sed -i -e "s/[0-9]\+\.[0-9]\+\.[0-9]\+/$${pkver}/" src/undici_version.h
++++
++++execute_after_dh_auto_build-arch:
++++ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
++++    ./out/Release/node --completion-bash > ./debian/nodejs.bash-completion
++++endif
++++
++++override_dh_auto_build-indep:
++++    mkdir -p node_modules
++++    ln -sf /usr/share/nodejs/marked node_modules/
++++    ln -sf /usr/share/nodejs/acorn node_modules/
++++    ln -sf /usr/share/nodejs/js-yaml node_modules/
++++    ln -sf /usr/share/nodejs/cjs-module-lexer node_modules/
++++    ln -sf /usr/share/nodejs/minimatch node_modules/
++++    $(MAKE) doc-only
++++
++++override_dh_auto_test-indep:
++++    # skip tests
++++
++++override_dh_auto_test-arch:
++++ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
++++    mkdir -p $(NODE_TEST_DIR)
++++    $(MAKE) $(DEB_MAKE_CHECK_TARGET)
++++    rm -rf $(NODE_TEST_DIR)
++++endif
++++
++++override_dh_auto_install-indep:
++++    # skip install all
++++
++++override_dh_auto_install-arch:
++++    dh_auto_install
++++
++++override_dh_install-arch:
++++    sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' debian/libnode.install.in > debian/libnode$(ABI).install
++++    sed -e 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' -e 's/@ABI@/$(ABI)/g' debian/libnode-dev.links.in > debian/libnode-dev.links
++++    cp debian/nodejs.install.in debian/nodejs.install
++++ifneq ($(filter pkg.nodejs.nobuiltin,$(DEB_BUILD_PROFILES)),)
++++    echo "./lib $(builtins)/" >> debian/nodejs.install
++++    deps_files="$(shell $(PYTHON) -c "import ast; d = ast.literal_eval(open('node.gyp').read()); print(' '.join(d['variables']['deps_files'][:-1]));")"; \
++++    for src in $$deps_files; do \
++++            dst=`dirname $$src`; \
++++            echo "./$$src $(builtins)/$$dst" >> debian/nodejs.install; \
++++    done
++++endif
++++    dh_install
++++
++++override_dh_dwz:
++++    # Double up the limit of debug information entries
++++    # Also, ignore failures (on 32-bit archs it might fail)
++++    -dh_dwz -- --max-die-limit 100000000
++++
++++override_dh_gencontrol:
++++    dh_gencontrol -- \
++++     -V"types:Node=$(shell jq --raw-output .version <types-node/package.json)~$(DEB_VERSION)"
++++
++++execute_after_dh_fixperms-arch:
++++    find $(CURDIR)/debian/nodejs/usr/share/nodejs/@types/node -type f -exec chmod a-x '{}' \;
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b0ffab8ccb5bdd56c8147d32889e989d598df3d0
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,10 @@@@@
++++---
++++
++++include:
++++  - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml
++++
++++variables:
++++  # Save some space to avoid artifacts being too big to upload
++++  # Do not check during build: ci runs autopkgtests just after
++++  DEB_BUILD_OPTIONS: "nocheck noautodbgsym"
++++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..163aaf8d82b6c54f23c45f32895dbdfdcc27b047
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1 @@@@@
++++3.0 (quilt)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b9887ceb2f6d76f6124d5b1cfa16909f51fb3b13
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,13 @@@@@
++++# false positives
++++source-is-missing [deps/v8/third_party/test262-harness/src/templates/runner.*.html]
++++source-is-missing [test/parallel/test-zlib-brotli-16GB.js]
++++
++++# regenerated by build=all
++++source-is-missing [doc/api/*.html]
++++
++++# false positives
++++source-is-missing [test/fixtures/*.js]
++++source-is-missing [test/fixtures/*.xhtml]
++++source-is-missing [test/fixtures/*.html]
++++source-is-missing [test/parallel/test-snapshot-umd.js]
++++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..84a74e164aaf2fcbca585bf036914ef6e9d8464b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,2 @@@@@
++++Test-Command: ./debian/rules override_dh_auto_test-arch
++++Depends: @, ca-certificates, python3, procps, curl, build-essential
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4fabc30f8f9449b636e14c948bf1a0baf6bb759a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,8 @@@@@
++++---
++++Archive: GitHub
++++Bug-Database: https://github.com/nodejs/node/issues
++++Bug-Submit: https://github.com/nodejs/node/issues/new
++++Changelog: https://github.com/nodejs/node/tags
++++Repository: https://github.com/nodejs/node.git
++++Repository-Browse: https://github.com/nodejs/node
++++Security-Contact: https://github.com/nodejs/node/tree/HEAD/SECURITY.md
diff --cc debian/watch
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b3688acadffd9ec26f947606725f8bc587a53c4c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,19 @@@@@
++++version=4
++++opts=downloadurlmangle=s/.*v(.*)\//https\:\/\/nodejs\.org\/dist\/v$1\/node\-v$1\.tar\.xz/,\
++++filenamemangle=s/.*v(.*)\/$/nodejs-$1\.tar\.xz/,\
++++dversionmangle=auto,\
++++repacksuffix=+dfsg \
++++https://nodejs.org/dist v(20\.\d+\.\d+)/ group
++++
++++# IMPORTANT: do NOT upgrade @types/node when target is debian/stable,
++++# it will break some debian packages, and some users packages too.
++++
++++# It is not recommended use npmregistry. Please investigate more.
++++# Take a look at https://wiki.debian.org/debian/watch/
++++opts="searchmode=plain,ctype=nodejs,component=types-node,pgpmode=none" \
++++ https://registry.npmjs.org/@types/node https://registry.npmjs.org/@types/node/-/node-(20\.17\.6)@ARCHIVE_EXT@ ignore
++++
++++opts="component=ada,filenamemangle=s%(?:.*?)?v?@ANY_VERSION@(@ARCHIVE_EXT@)%ada-$1$2%" \
++++ https://github.com/ada-url/ada/tags?after=v2.9.99 \
++++ (?:.*?/)?v?@ANY_VERSION@@ARCHIVE_EXT@ ignore
++++ 
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..9e841e7a26e4eb057b24511e7b92d42b257a80e5
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,21 @@@@@
++++    MIT License
++++
++++    Copyright (c) Microsoft Corporation.
++++
++++    Permission is hereby granted, free of charge, to any person obtaining a copy
++++    of this software and associated documentation files (the "Software"), to deal
++++    in the Software without restriction, including without limitation the rights
++++    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
++++    copies of the Software, and to permit persons to whom the Software is
++++    furnished to do so, subject to the following conditions:
++++
++++    The above copyright notice and this permission notice shall be included in all
++++    copies or substantial portions of the Software.
++++
++++    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++++    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++++    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
++++    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
++++    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
++++    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
++++    SOFTWARE
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..80ce3a51efcce518f0fcd3808dc7f259a8cd7a85
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,15 @@@@@
++++# Installation\r
++++> `npm install --save @types/node`\r
++++\r
++++# Summary\r
++++This package contains type definitions for node (https://nodejs.org/).\r
++++\r
++++# Details\r
++++Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v20.\r
++++\r
++++### Additional Details\r
++++ * Last updated: Sun, 03 Nov 2024 04:02:17 GMT\r
++++ * Dependencies: [undici-types](https://npmjs.com/package/undici-types)\r
++++\r
++++# Credits\r
++++These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky).\r
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..139d4de068c36ef5b4e161662e42070e27d8e6de
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1040 @@@@@
++++/**
++++ * The `node:assert` module provides a set of assertion functions for verifying
++++ * invariants.
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/assert.js)
++++ */
++++declare module "assert" {
++++    /**
++++     * An alias of {@link ok}.
++++     * @since v0.5.9
++++     * @param value The input that is checked for being truthy.
++++     */
++++    function assert(value: unknown, message?: string | Error): asserts value;
++++    namespace assert {
++++        /**
++++         * Indicates the failure of an assertion. All errors thrown by the `node:assert` module will be instances of the `AssertionError` class.
++++         */
++++        class AssertionError extends Error {
++++            /**
++++             * Set to the `actual` argument for methods such as {@link assert.strictEqual()}.
++++             */
++++            actual: unknown;
++++            /**
++++             * Set to the `expected` argument for methods such as {@link assert.strictEqual()}.
++++             */
++++            expected: unknown;
++++            /**
++++             * Set to the passed in operator value.
++++             */
++++            operator: string;
++++            /**
++++             * Indicates if the message was auto-generated (`true`) or not.
++++             */
++++            generatedMessage: boolean;
++++            /**
++++             * Value is always `ERR_ASSERTION` to show that the error is an assertion error.
++++             */
++++            code: "ERR_ASSERTION";
++++            constructor(options?: {
++++                /** If provided, the error message is set to this value. */
++++                message?: string | undefined;
++++                /** The `actual` property on the error instance. */
++++                actual?: unknown | undefined;
++++                /** The `expected` property on the error instance. */
++++                expected?: unknown | undefined;
++++                /** The `operator` property on the error instance. */
++++                operator?: string | undefined;
++++                /** If provided, the generated stack trace omits frames before this function. */
++++                // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
++++                stackStartFn?: Function | undefined;
++++            });
++++        }
++++        /**
++++         * This feature is deprecated and will be removed in a future version.
++++         * Please consider using alternatives such as the `mock` helper function.
++++         * @since v14.2.0, v12.19.0
++++         * @deprecated Deprecated
++++         */
++++        class CallTracker {
++++            /**
++++             * The wrapper function is expected to be called exactly `exact` times. If the
++++             * function has not been called exactly `exact` times when `tracker.verify()` is called, then `tracker.verify()` will throw an
++++             * error.
++++             *
++++             * ```js
++++             * import assert from 'node:assert';
++++             *
++++             * // Creates call tracker.
++++             * const tracker = new assert.CallTracker();
++++             *
++++             * function func() {}
++++             *
++++             * // Returns a function that wraps func() that must be called exact times
++++             * // before tracker.verify().
++++             * const callsfunc = tracker.calls(func);
++++             * ```
++++             * @since v14.2.0, v12.19.0
++++             * @param [fn='A no-op function']
++++             * @param [exact=1]
++++             * @return A function that wraps `fn`.
++++             */
++++            calls(exact?: number): () => void;
++++            calls<Func extends (...args: any[]) => any>(fn?: Func, exact?: number): Func;
++++            /**
++++             * Example:
++++             *
++++             * ```js
++++             * import assert from 'node:assert';
++++             *
++++             * const tracker = new assert.CallTracker();
++++             *
++++             * function func() {}
++++             * const callsfunc = tracker.calls(func);
++++             * callsfunc(1, 2, 3);
++++             *
++++             * assert.deepStrictEqual(tracker.getCalls(callsfunc),
++++             *                        [{ thisArg: undefined, arguments: [1, 2, 3] }]);
++++             * ```
++++             * @since v18.8.0, v16.18.0
++++             * @return An array with all the calls to a tracked function.
++++             */
++++            getCalls(fn: Function): CallTrackerCall[];
++++            /**
++++             * The arrays contains information about the expected and actual number of calls of
++++             * the functions that have not been called the expected number of times.
++++             *
++++             * ```js
++++             * import assert from 'node:assert';
++++             *
++++             * // Creates call tracker.
++++             * const tracker = new assert.CallTracker();
++++             *
++++             * function func() {}
++++             *
++++             * // Returns a function that wraps func() that must be called exact times
++++             * // before tracker.verify().
++++             * const callsfunc = tracker.calls(func, 2);
++++             *
++++             * // Returns an array containing information on callsfunc()
++++             * console.log(tracker.report());
++++             * // [
++++             * //  {
++++             * //    message: 'Expected the func function to be executed 2 time(s) but was
++++             * //    executed 0 time(s).',
++++             * //    actual: 0,
++++             * //    expected: 2,
++++             * //    operator: 'func',
++++             * //    stack: stack trace
++++             * //  }
++++             * // ]
++++             * ```
++++             * @since v14.2.0, v12.19.0
++++             * @return An array of objects containing information about the wrapper functions returned by {@link tracker.calls()}.
++++             */
++++            report(): CallTrackerReportInformation[];
++++            /**
++++             * Reset calls of the call tracker. If a tracked function is passed as an argument, the calls will be reset for it.
++++             * If no arguments are passed, all tracked functions will be reset.
++++             *
++++             * ```js
++++             * import assert from 'node:assert';
++++             *
++++             * const tracker = new assert.CallTracker();
++++             *
++++             * function func() {}
++++             * const callsfunc = tracker.calls(func);
++++             *
++++             * callsfunc();
++++             * // Tracker was called once
++++             * assert.strictEqual(tracker.getCalls(callsfunc).length, 1);
++++             *
++++             * tracker.reset(callsfunc);
++++             * assert.strictEqual(tracker.getCalls(callsfunc).length, 0);
++++             * ```
++++             * @since v18.8.0, v16.18.0
++++             * @param fn a tracked function to reset.
++++             */
++++            reset(fn?: Function): void;
++++            /**
++++             * Iterates through the list of functions passed to {@link tracker.calls()} and will throw an error for functions that
++++             * have not been called the expected number of times.
++++             *
++++             * ```js
++++             * import assert from 'node:assert';
++++             *
++++             * // Creates call tracker.
++++             * const tracker = new assert.CallTracker();
++++             *
++++             * function func() {}
++++             *
++++             * // Returns a function that wraps func() that must be called exact times
++++             * // before tracker.verify().
++++             * const callsfunc = tracker.calls(func, 2);
++++             *
++++             * callsfunc();
++++             *
++++             * // Will throw an error since callsfunc() was only called once.
++++             * tracker.verify();
++++             * ```
++++             * @since v14.2.0, v12.19.0
++++             */
++++            verify(): void;
++++        }
++++        interface CallTrackerCall {
++++            thisArg: object;
++++            arguments: unknown[];
++++        }
++++        interface CallTrackerReportInformation {
++++            message: string;
++++            /** The actual number of times the function was called. */
++++            actual: number;
++++            /** The number of times the function was expected to be called. */
++++            expected: number;
++++            /** The name of the function that is wrapped. */
++++            operator: string;
++++            /** A stack trace of the function. */
++++            stack: object;
++++        }
++++        type AssertPredicate = RegExp | (new() => object) | ((thrown: unknown) => boolean) | object | Error;
++++        /**
++++         * Throws an `AssertionError` with the provided error message or a default
++++         * error message. If the `message` parameter is an instance of an `Error` then
++++         * it will be thrown instead of the `AssertionError`.
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * assert.fail();
++++         * // AssertionError [ERR_ASSERTION]: Failed
++++         *
++++         * assert.fail('boom');
++++         * // AssertionError [ERR_ASSERTION]: boom
++++         *
++++         * assert.fail(new TypeError('need array'));
++++         * // TypeError: need array
++++         * ```
++++         *
++++         * Using `assert.fail()` with more than two arguments is possible but deprecated.
++++         * See below for further details.
++++         * @since v0.1.21
++++         * @param [message='Failed']
++++         */
++++        function fail(message?: string | Error): never;
++++        /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
++++        function fail(
++++            actual: unknown,
++++            expected: unknown,
++++            message?: string | Error,
++++            operator?: string,
++++            // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
++++            stackStartFn?: Function,
++++        ): never;
++++        /**
++++         * Tests if `value` is truthy. It is equivalent to `assert.equal(!!value, true, message)`.
++++         *
++++         * If `value` is not truthy, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is `undefined`, a default
++++         * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
++++         * If no arguments are passed in at all `message` will be set to the string:`` 'No value argument passed to `assert.ok()`' ``.
++++         *
++++         * Be aware that in the `repl` the error message will be different to the one
++++         * thrown in a file! See below for further details.
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * assert.ok(true);
++++         * // OK
++++         * assert.ok(1);
++++         * // OK
++++         *
++++         * assert.ok();
++++         * // AssertionError: No value argument passed to `assert.ok()`
++++         *
++++         * assert.ok(false, 'it\'s false');
++++         * // AssertionError: it's false
++++         *
++++         * // In the repl:
++++         * assert.ok(typeof 123 === 'string');
++++         * // AssertionError: false == true
++++         *
++++         * // In a file (e.g. test.js):
++++         * assert.ok(typeof 123 === 'string');
++++         * // AssertionError: The expression evaluated to a falsy value:
++++         * //
++++         * //   assert.ok(typeof 123 === 'string')
++++         *
++++         * assert.ok(false);
++++         * // AssertionError: The expression evaluated to a falsy value:
++++         * //
++++         * //   assert.ok(false)
++++         *
++++         * assert.ok(0);
++++         * // AssertionError: The expression evaluated to a falsy value:
++++         * //
++++         * //   assert.ok(0)
++++         * ```
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * // Using `assert()` works the same:
++++         * assert(0);
++++         * // AssertionError: The expression evaluated to a falsy value:
++++         * //
++++         * //   assert(0)
++++         * ```
++++         * @since v0.1.21
++++         */
++++        function ok(value: unknown, message?: string | Error): asserts value;
++++        /**
++++         * **Strict assertion mode**
++++         *
++++         * An alias of {@link strictEqual}.
++++         *
++++         * **Legacy assertion mode**
++++         *
++++         * > Stability: 3 - Legacy: Use {@link strictEqual} instead.
++++         *
++++         * Tests shallow, coercive equality between the `actual` and `expected` parameters
++++         * using the [`==` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality). `NaN` is specially handled
++++         * and treated as being identical if both sides are `NaN`.
++++         *
++++         * ```js
++++         * import assert from 'node:assert';
++++         *
++++         * assert.equal(1, 1);
++++         * // OK, 1 == 1
++++         * assert.equal(1, '1');
++++         * // OK, 1 == '1'
++++         * assert.equal(NaN, NaN);
++++         * // OK
++++         *
++++         * assert.equal(1, 2);
++++         * // AssertionError: 1 == 2
++++         * assert.equal({ a: { b: 1 } }, { a: { b: 1 } });
++++         * // AssertionError: { a: { b: 1 } } == { a: { b: 1 } }
++++         * ```
++++         *
++++         * If the values are not equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default
++++         * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
++++         * @since v0.1.21
++++         */
++++        function equal(actual: unknown, expected: unknown, message?: string | Error): void;
++++        /**
++++         * **Strict assertion mode**
++++         *
++++         * An alias of {@link notStrictEqual}.
++++         *
++++         * **Legacy assertion mode**
++++         *
++++         * > Stability: 3 - Legacy: Use {@link notStrictEqual} instead.
++++         *
++++         * Tests shallow, coercive inequality with the [`!=` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality). `NaN` is
++++         * specially handled and treated as being identical if both sides are `NaN`.
++++         *
++++         * ```js
++++         * import assert from 'node:assert';
++++         *
++++         * assert.notEqual(1, 2);
++++         * // OK
++++         *
++++         * assert.notEqual(1, 1);
++++         * // AssertionError: 1 != 1
++++         *
++++         * assert.notEqual(1, '1');
++++         * // AssertionError: 1 != '1'
++++         * ```
++++         *
++++         * If the values are equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default error
++++         * message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
++++         * @since v0.1.21
++++         */
++++        function notEqual(actual: unknown, expected: unknown, message?: string | Error): void;
++++        /**
++++         * **Strict assertion mode**
++++         *
++++         * An alias of {@link deepStrictEqual}.
++++         *
++++         * **Legacy assertion mode**
++++         *
++++         * > Stability: 3 - Legacy: Use {@link deepStrictEqual} instead.
++++         *
++++         * Tests for deep equality between the `actual` and `expected` parameters. Consider
++++         * using {@link deepStrictEqual} instead. {@link deepEqual} can have
++++         * surprising results.
++++         *
++++         * _Deep equality_ means that the enumerable "own" properties of child objects
++++         * are also recursively evaluated by the following rules.
++++         * @since v0.1.21
++++         */
++++        function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
++++        /**
++++         * **Strict assertion mode**
++++         *
++++         * An alias of {@link notDeepStrictEqual}.
++++         *
++++         * **Legacy assertion mode**
++++         *
++++         * > Stability: 3 - Legacy: Use {@link notDeepStrictEqual} instead.
++++         *
++++         * Tests for any deep inequality. Opposite of {@link deepEqual}.
++++         *
++++         * ```js
++++         * import assert from 'node:assert';
++++         *
++++         * const obj1 = {
++++         *   a: {
++++         *     b: 1,
++++         *   },
++++         * };
++++         * const obj2 = {
++++         *   a: {
++++         *     b: 2,
++++         *   },
++++         * };
++++         * const obj3 = {
++++         *   a: {
++++         *     b: 1,
++++         *   },
++++         * };
++++         * const obj4 = { __proto__: obj1 };
++++         *
++++         * assert.notDeepEqual(obj1, obj1);
++++         * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
++++         *
++++         * assert.notDeepEqual(obj1, obj2);
++++         * // OK
++++         *
++++         * assert.notDeepEqual(obj1, obj3);
++++         * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
++++         *
++++         * assert.notDeepEqual(obj1, obj4);
++++         * // OK
++++         * ```
++++         *
++++         * If the values are deeply equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default
++++         * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
++++         * instead of the `AssertionError`.
++++         * @since v0.1.21
++++         */
++++        function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
++++        /**
++++         * Tests strict equality between the `actual` and `expected` parameters as
++++         * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * assert.strictEqual(1, 2);
++++         * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
++++         * //
++++         * // 1 !== 2
++++         *
++++         * assert.strictEqual(1, 1);
++++         * // OK
++++         *
++++         * assert.strictEqual('Hello foobar', 'Hello World!');
++++         * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
++++         * // + actual - expected
++++         * //
++++         * // + 'Hello foobar'
++++         * // - 'Hello World!'
++++         * //          ^
++++         *
++++         * const apples = 1;
++++         * const oranges = 2;
++++         * assert.strictEqual(apples, oranges, `apples ${apples} !== oranges ${oranges}`);
++++         * // AssertionError [ERR_ASSERTION]: apples 1 !== oranges 2
++++         *
++++         * assert.strictEqual(1, '1', new TypeError('Inputs are not identical'));
++++         * // TypeError: Inputs are not identical
++++         * ```
++++         *
++++         * If the values are not strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a
++++         * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
++++         * instead of the `AssertionError`.
++++         * @since v0.1.21
++++         */
++++        function strictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
++++        /**
++++         * Tests strict inequality between the `actual` and `expected` parameters as
++++         * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * assert.notStrictEqual(1, 2);
++++         * // OK
++++         *
++++         * assert.notStrictEqual(1, 1);
++++         * // AssertionError [ERR_ASSERTION]: Expected "actual" to be strictly unequal to:
++++         * //
++++         * // 1
++++         *
++++         * assert.notStrictEqual(1, '1');
++++         * // OK
++++         * ```
++++         *
++++         * If the values are strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a
++++         * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
++++         * instead of the `AssertionError`.
++++         * @since v0.1.21
++++         */
++++        function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
++++        /**
++++         * Tests for deep equality between the `actual` and `expected` parameters.
++++         * "Deep" equality means that the enumerable "own" properties of child objects
++++         * are recursively evaluated also by the following rules.
++++         * @since v1.2.0
++++         */
++++        function deepStrictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
++++        /**
++++         * Tests for deep strict inequality. Opposite of {@link deepStrictEqual}.
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * assert.notDeepStrictEqual({ a: 1 }, { a: '1' });
++++         * // OK
++++         * ```
++++         *
++++         * If the values are deeply and strictly equal, an `AssertionError` is thrown
++++         * with a `message` property set equal to the value of the `message` parameter. If
++++         * the `message` parameter is undefined, a default error message is assigned. If
++++         * the `message` parameter is an instance of an `Error` then it will be thrown
++++         * instead of the `AssertionError`.
++++         * @since v1.2.0
++++         */
++++        function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
++++        /**
++++         * Expects the function `fn` to throw an error.
++++         *
++++         * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
++++         * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
++++         * a validation object where each property will be tested for strict deep equality,
++++         * or an instance of error where each property will be tested for strict deep
++++         * equality including the non-enumerable `message` and `name` properties. When
++++         * using an object, it is also possible to use a regular expression, when
++++         * validating against a string property. See below for examples.
++++         *
++++         * If specified, `message` will be appended to the message provided by the `AssertionError` if the `fn` call fails to throw or in case the error validation
++++         * fails.
++++         *
++++         * Custom validation object/error instance:
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * const err = new TypeError('Wrong value');
++++         * err.code = 404;
++++         * err.foo = 'bar';
++++         * err.info = {
++++         *   nested: true,
++++         *   baz: 'text',
++++         * };
++++         * err.reg = /abc/i;
++++         *
++++         * assert.throws(
++++         *   () => {
++++         *     throw err;
++++         *   },
++++         *   {
++++         *     name: 'TypeError',
++++         *     message: 'Wrong value',
++++         *     info: {
++++         *       nested: true,
++++         *       baz: 'text',
++++         *     },
++++         *     // Only properties on the validation object will be tested for.
++++         *     // Using nested objects requires all properties to be present. Otherwise
++++         *     // the validation is going to fail.
++++         *   },
++++         * );
++++         *
++++         * // Using regular expressions to validate error properties:
++++         * assert.throws(
++++         *   () => {
++++         *     throw err;
++++         *   },
++++         *   {
++++         *     // The `name` and `message` properties are strings and using regular
++++         *     // expressions on those will match against the string. If they fail, an
++++         *     // error is thrown.
++++         *     name: /^TypeError$/,
++++         *     message: /Wrong/,
++++         *     foo: 'bar',
++++         *     info: {
++++         *       nested: true,
++++         *       // It is not possible to use regular expressions for nested properties!
++++         *       baz: 'text',
++++         *     },
++++         *     // The `reg` property contains a regular expression and only if the
++++         *     // validation object contains an identical regular expression, it is going
++++         *     // to pass.
++++         *     reg: /abc/i,
++++         *   },
++++         * );
++++         *
++++         * // Fails due to the different `message` and `name` properties:
++++         * assert.throws(
++++         *   () => {
++++         *     const otherErr = new Error('Not found');
++++         *     // Copy all enumerable properties from `err` to `otherErr`.
++++         *     for (const [key, value] of Object.entries(err)) {
++++         *       otherErr[key] = value;
++++         *     }
++++         *     throw otherErr;
++++         *   },
++++         *   // The error's `message` and `name` properties will also be checked when using
++++         *   // an error as validation object.
++++         *   err,
++++         * );
++++         * ```
++++         *
++++         * Validate instanceof using constructor:
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * assert.throws(
++++         *   () => {
++++         *     throw new Error('Wrong value');
++++         *   },
++++         *   Error,
++++         * );
++++         * ```
++++         *
++++         * Validate error message using [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions):
++++         *
++++         * Using a regular expression runs `.toString` on the error object, and will
++++         * therefore also include the error name.
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * assert.throws(
++++         *   () => {
++++         *     throw new Error('Wrong value');
++++         *   },
++++         *   /^Error: Wrong value$/,
++++         * );
++++         * ```
++++         *
++++         * Custom error validation:
++++         *
++++         * The function must return `true` to indicate all internal validations passed.
++++         * It will otherwise fail with an `AssertionError`.
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * assert.throws(
++++         *   () => {
++++         *     throw new Error('Wrong value');
++++         *   },
++++         *   (err) => {
++++         *     assert(err instanceof Error);
++++         *     assert(/value/.test(err));
++++         *     // Avoid returning anything from validation functions besides `true`.
++++         *     // Otherwise, it's not clear what part of the validation failed. Instead,
++++         *     // throw an error about the specific validation that failed (as done in this
++++         *     // example) and add as much helpful debugging information to that error as
++++         *     // possible.
++++         *     return true;
++++         *   },
++++         *   'unexpected error',
++++         * );
++++         * ```
++++         *
++++         * `error` cannot be a string. If a string is provided as the second
++++         * argument, then `error` is assumed to be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Using the same
++++         * message as the thrown error message is going to result in an `ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using
++++         * a string as the second argument gets considered:
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * function throwingFirst() {
++++         *   throw new Error('First');
++++         * }
++++         *
++++         * function throwingSecond() {
++++         *   throw new Error('Second');
++++         * }
++++         *
++++         * function notThrowing() {}
++++         *
++++         * // The second argument is a string and the input function threw an Error.
++++         * // The first case will not throw as it does not match for the error message
++++         * // thrown by the input function!
++++         * assert.throws(throwingFirst, 'Second');
++++         * // In the next example the message has no benefit over the message from the
++++         * // error and since it is not clear if the user intended to actually match
++++         * // against the error message, Node.js throws an `ERR_AMBIGUOUS_ARGUMENT` error.
++++         * assert.throws(throwingSecond, 'Second');
++++         * // TypeError [ERR_AMBIGUOUS_ARGUMENT]
++++         *
++++         * // The string is only used (as message) in case the function does not throw:
++++         * assert.throws(notThrowing, 'Second');
++++         * // AssertionError [ERR_ASSERTION]: Missing expected exception: Second
++++         *
++++         * // If it was intended to match for the error message do this instead:
++++         * // It does not throw because the error messages match.
++++         * assert.throws(throwingSecond, /Second$/);
++++         *
++++         * // If the error message does not match, an AssertionError is thrown.
++++         * assert.throws(throwingFirst, /Second$/);
++++         * // AssertionError [ERR_ASSERTION]
++++         * ```
++++         *
++++         * Due to the confusing error-prone notation, avoid a string as the second
++++         * argument.
++++         * @since v0.1.21
++++         */
++++        function throws(block: () => unknown, message?: string | Error): void;
++++        function throws(block: () => unknown, error: AssertPredicate, message?: string | Error): void;
++++        /**
++++         * Asserts that the function `fn` does not throw an error.
++++         *
++++         * Using `assert.doesNotThrow()` is actually not useful because there
++++         * is no benefit in catching an error and then rethrowing it. Instead, consider
++++         * adding a comment next to the specific code path that should not throw and keep
++++         * error messages as expressive as possible.
++++         *
++++         * When `assert.doesNotThrow()` is called, it will immediately call the `fn` function.
++++         *
++++         * If an error is thrown and it is the same type as that specified by the `error` parameter, then an `AssertionError` is thrown. If the error is of a
++++         * different type, or if the `error` parameter is undefined, the error is
++++         * propagated back to the caller.
++++         *
++++         * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
++++         * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), or a validation
++++         * function. See {@link throws} for more details.
++++         *
++++         * The following, for instance, will throw the `TypeError` because there is no
++++         * matching error type in the assertion:
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * assert.doesNotThrow(
++++         *   () => {
++++         *     throw new TypeError('Wrong value');
++++         *   },
++++         *   SyntaxError,
++++         * );
++++         * ```
++++         *
++++         * However, the following will result in an `AssertionError` with the message
++++         * 'Got unwanted exception...':
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * assert.doesNotThrow(
++++         *   () => {
++++         *     throw new TypeError('Wrong value');
++++         *   },
++++         *   TypeError,
++++         * );
++++         * ```
++++         *
++++         * If an `AssertionError` is thrown and a value is provided for the `message` parameter, the value of `message` will be appended to the `AssertionError` message:
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * assert.doesNotThrow(
++++         *   () => {
++++         *     throw new TypeError('Wrong value');
++++         *   },
++++         *   /Wrong value/,
++++         *   'Whoops',
++++         * );
++++         * // Throws: AssertionError: Got unwanted exception: Whoops
++++         * ```
++++         * @since v0.1.21
++++         */
++++        function doesNotThrow(block: () => unknown, message?: string | Error): void;
++++        function doesNotThrow(block: () => unknown, error: AssertPredicate, message?: string | Error): void;
++++        /**
++++         * Throws `value` if `value` is not `undefined` or `null`. This is useful when
++++         * testing the `error` argument in callbacks. The stack trace contains all frames
++++         * from the error passed to `ifError()` including the potential new frames for `ifError()` itself.
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * assert.ifError(null);
++++         * // OK
++++         * assert.ifError(0);
++++         * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 0
++++         * assert.ifError('error');
++++         * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 'error'
++++         * assert.ifError(new Error());
++++         * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Error
++++         *
++++         * // Create some random error frames.
++++         * let err;
++++         * (function errorFrame() {
++++         *   err = new Error('test error');
++++         * })();
++++         *
++++         * (function ifErrorFrame() {
++++         *   assert.ifError(err);
++++         * })();
++++         * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error
++++         * //     at ifErrorFrame
++++         * //     at errorFrame
++++         * ```
++++         * @since v0.1.97
++++         */
++++        function ifError(value: unknown): asserts value is null | undefined;
++++        /**
++++         * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
++++         * calls the function and awaits the returned promise to complete. It will then
++++         * check that the promise is rejected.
++++         *
++++         * If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the
++++         * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v20.x/api/errors.html#err_invalid_return_value)
++++         * error. In both cases the error handler is skipped.
++++         *
++++         * Besides the async nature to await the completion behaves identically to {@link throws}.
++++         *
++++         * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
++++         * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
++++         * an object where each property will be tested for, or an instance of error where
++++         * each property will be tested for including the non-enumerable `message` and `name` properties.
++++         *
++++         * If specified, `message` will be the message provided by the `{@link AssertionError}` if the `asyncFn` fails to reject.
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * await assert.rejects(
++++         *   async () => {
++++         *     throw new TypeError('Wrong value');
++++         *   },
++++         *   {
++++         *     name: 'TypeError',
++++         *     message: 'Wrong value',
++++         *   },
++++         * );
++++         * ```
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * await assert.rejects(
++++         *   async () => {
++++         *     throw new TypeError('Wrong value');
++++         *   },
++++         *   (err) => {
++++         *     assert.strictEqual(err.name, 'TypeError');
++++         *     assert.strictEqual(err.message, 'Wrong value');
++++         *     return true;
++++         *   },
++++         * );
++++         * ```
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * assert.rejects(
++++         *   Promise.reject(new Error('Wrong value')),
++++         *   Error,
++++         * ).then(() => {
++++         *   // ...
++++         * });
++++         * ```
++++         *
++++         * `error` cannot be a string. If a string is provided as the second argument, then `error` is assumed to
++++         * be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Please read the
++++         * example in {@link throws} carefully if using a string as the second argument gets considered.
++++         * @since v10.0.0
++++         */
++++        function rejects(block: (() => Promise<unknown>) | Promise<unknown>, message?: string | Error): Promise<void>;
++++        function rejects(
++++            block: (() => Promise<unknown>) | Promise<unknown>,
++++            error: AssertPredicate,
++++            message?: string | Error,
++++        ): Promise<void>;
++++        /**
++++         * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately
++++         * calls the function and awaits the returned promise to complete. It will then
++++         * check that the promise is not rejected.
++++         *
++++         * If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If
++++         * the function does not return a promise, `assert.doesNotReject()` will return a
++++         * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v20.x/api/errors.html#err_invalid_return_value) error. In both cases
++++         * the error handler is skipped.
++++         *
++++         * Using `assert.doesNotReject()` is actually not useful because there is little
++++         * benefit in catching a rejection and then rejecting it again. Instead, consider
++++         * adding a comment next to the specific code path that should not reject and keep
++++         * error messages as expressive as possible.
++++         *
++++         * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
++++         * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), or a validation
++++         * function. See {@link throws} for more details.
++++         *
++++         * Besides the async nature to await the completion behaves identically to {@link doesNotThrow}.
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * await assert.doesNotReject(
++++         *   async () => {
++++         *     throw new TypeError('Wrong value');
++++         *   },
++++         *   SyntaxError,
++++         * );
++++         * ```
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * assert.doesNotReject(Promise.reject(new TypeError('Wrong value')))
++++         *   .then(() => {
++++         *     // ...
++++         *   });
++++         * ```
++++         * @since v10.0.0
++++         */
++++        function doesNotReject(
++++            block: (() => Promise<unknown>) | Promise<unknown>,
++++            message?: string | Error,
++++        ): Promise<void>;
++++        function doesNotReject(
++++            block: (() => Promise<unknown>) | Promise<unknown>,
++++            error: AssertPredicate,
++++            message?: string | Error,
++++        ): Promise<void>;
++++        /**
++++         * Expects the `string` input to match the regular expression.
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * assert.match('I will fail', /pass/);
++++         * // AssertionError [ERR_ASSERTION]: The input did not match the regular ...
++++         *
++++         * assert.match(123, /pass/);
++++         * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string.
++++         *
++++         * assert.match('I will pass', /pass/);
++++         * // OK
++++         * ```
++++         *
++++         * If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
++++         * to the value of the `message` parameter. If the `message` parameter is
++++         * undefined, a default error message is assigned. If the `message` parameter is an
++++         * instance of an [Error](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
++++         * @since v13.6.0, v12.16.0
++++         */
++++        function match(value: string, regExp: RegExp, message?: string | Error): void;
++++        /**
++++         * Expects the `string` input not to match the regular expression.
++++         *
++++         * ```js
++++         * import assert from 'node:assert/strict';
++++         *
++++         * assert.doesNotMatch('I will fail', /fail/);
++++         * // AssertionError [ERR_ASSERTION]: The input was expected to not match the ...
++++         *
++++         * assert.doesNotMatch(123, /pass/);
++++         * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string.
++++         *
++++         * assert.doesNotMatch('I will pass', /different/);
++++         * // OK
++++         * ```
++++         *
++++         * If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
++++         * to the value of the `message` parameter. If the `message` parameter is
++++         * undefined, a default error message is assigned. If the `message` parameter is an
++++         * instance of an [Error](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
++++         * @since v13.6.0, v12.16.0
++++         */
++++        function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
++++        /**
++++         * In strict assertion mode, non-strict methods behave like their corresponding strict methods. For example,
++++         * {@link deepEqual} will behave like {@link deepStrictEqual}.
++++         *
++++         * In strict assertion mode, error messages for objects display a diff. In legacy assertion mode, error
++++         * messages for objects display the objects, often truncated.
++++         *
++++         * To use strict assertion mode:
++++         *
++++         * ```js
++++         * import { strict as assert } from 'node:assert';COPY
++++         * import assert from 'node:assert/strict';
++++         * ```
++++         *
++++         * Example error diff:
++++         *
++++         * ```js
++++         * import { strict as assert } from 'node:assert';
++++         *
++++         * assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]);
++++         * // AssertionError: Expected inputs to be strictly deep-equal:
++++         * // + actual - expected ... Lines skipped
++++         * //
++++         * //   [
++++         * //     [
++++         * // ...
++++         * //       2,
++++         * // +     3
++++         * // -     '3'
++++         * //     ],
++++         * // ...
++++         * //     5
++++         * //   ]
++++         * ```
++++         *
++++         * To deactivate the colors, use the `NO_COLOR` or `NODE_DISABLE_COLORS` environment variables. This will also
++++         * deactivate the colors in the REPL. For more on color support in terminal environments, read the tty
++++         * `getColorDepth()` documentation.
++++         *
++++         * @since v15.0.0, v13.9.0, v12.16.2, v9.9.0
++++         */
++++        namespace strict {
++++            type AssertionError = assert.AssertionError;
++++            type AssertPredicate = assert.AssertPredicate;
++++            type CallTrackerCall = assert.CallTrackerCall;
++++            type CallTrackerReportInformation = assert.CallTrackerReportInformation;
++++        }
++++        const strict:
++++            & Omit<
++++                typeof assert,
++++                | "equal"
++++                | "notEqual"
++++                | "deepEqual"
++++                | "notDeepEqual"
++++                | "ok"
++++                | "strictEqual"
++++                | "deepStrictEqual"
++++                | "ifError"
++++                | "strict"
++++            >
++++            & {
++++                (value: unknown, message?: string | Error): asserts value;
++++                equal: typeof strictEqual;
++++                notEqual: typeof notStrictEqual;
++++                deepEqual: typeof deepStrictEqual;
++++                notDeepEqual: typeof notDeepStrictEqual;
++++                // Mapped types and assertion functions are incompatible?
++++                // TS2775: Assertions require every name in the call target
++++                // to be declared with an explicit type annotation.
++++                ok: typeof ok;
++++                strictEqual: typeof strictEqual;
++++                deepStrictEqual: typeof deepStrictEqual;
++++                ifError: typeof ifError;
++++                strict: typeof strict;
++++            };
++++    }
++++    export = assert;
++++}
++++declare module "node:assert" {
++++    import assert = require("assert");
++++    export = assert;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f333913a4565f7067b05ddbc415490e585f2d1e1
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,8 @@@@@
++++declare module "assert/strict" {
++++    import { strict } from "node:assert";
++++    export = strict;
++++}
++++declare module "node:assert/strict" {
++++    import { strict } from "node:assert";
++++    export = strict;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f5432e238d14c47ed12bcf13522531559e16cf42
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,541 @@@@@
++++/**
++++ * We strongly discourage the use of the `async_hooks` API.
++++ * Other APIs that can cover most of its use cases include:
++++ *
++++ * * [`AsyncLocalStorage`](https://nodejs.org/docs/latest-v20.x/api/async_context.html#class-asynclocalstorage) tracks async context
++++ * * [`process.getActiveResourcesInfo()`](https://nodejs.org/docs/latest-v20.x/api/process.html#processgetactiveresourcesinfo) tracks active resources
++++ *
++++ * The `node:async_hooks` module provides an API to track asynchronous resources.
++++ * It can be accessed using:
++++ *
++++ * ```js
++++ * import async_hooks from 'node:async_hooks';
++++ * ```
++++ * @experimental
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/async_hooks.js)
++++ */
++++declare module "async_hooks" {
++++    /**
++++     * ```js
++++     * import { executionAsyncId } from 'node:async_hooks';
++++     * import fs from 'node:fs';
++++     *
++++     * console.log(executionAsyncId());  // 1 - bootstrap
++++     * const path = '.';
++++     * fs.open(path, 'r', (err, fd) => {
++++     *   console.log(executionAsyncId());  // 6 - open()
++++     * });
++++     * ```
++++     *
++++     * The ID returned from `executionAsyncId()` is related to execution timing, not
++++     * causality (which is covered by `triggerAsyncId()`):
++++     *
++++     * ```js
++++     * const server = net.createServer((conn) => {
++++     *   // Returns the ID of the server, not of the new connection, because the
++++     *   // callback runs in the execution scope of the server's MakeCallback().
++++     *   async_hooks.executionAsyncId();
++++     *
++++     * }).listen(port, () => {
++++     *   // Returns the ID of a TickObject (process.nextTick()) because all
++++     *   // callbacks passed to .listen() are wrapped in a nextTick().
++++     *   async_hooks.executionAsyncId();
++++     * });
++++     * ```
++++     *
++++     * Promise contexts may not get precise `executionAsyncIds` by default.
++++     * See the section on [promise execution tracking](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html#promise-execution-tracking).
++++     * @since v8.1.0
++++     * @return The `asyncId` of the current execution context. Useful to track when something calls.
++++     */
++++    function executionAsyncId(): number;
++++    /**
++++     * Resource objects returned by `executionAsyncResource()` are most often internal
++++     * Node.js handle objects with undocumented APIs. Using any functions or properties
++++     * on the object is likely to crash your application and should be avoided.
++++     *
++++     * Using `executionAsyncResource()` in the top-level execution context will
++++     * return an empty object as there is no handle or request object to use,
++++     * but having an object representing the top-level can be helpful.
++++     *
++++     * ```js
++++     * import { open } from 'node:fs';
++++     * import { executionAsyncId, executionAsyncResource } from 'node:async_hooks';
++++     *
++++     * console.log(executionAsyncId(), executionAsyncResource());  // 1 {}
++++     * open(new URL(import.meta.url), 'r', (err, fd) => {
++++     *   console.log(executionAsyncId(), executionAsyncResource());  // 7 FSReqWrap
++++     * });
++++     * ```
++++     *
++++     * This can be used to implement continuation local storage without the
++++     * use of a tracking `Map` to store the metadata:
++++     *
++++     * ```js
++++     * import { createServer } from 'node:http';
++++     * import {
++++     *   executionAsyncId,
++++     *   executionAsyncResource,
++++     *   createHook,
++++     * } from 'async_hooks';
++++     * const sym = Symbol('state'); // Private symbol to avoid pollution
++++     *
++++     * createHook({
++++     *   init(asyncId, type, triggerAsyncId, resource) {
++++     *     const cr = executionAsyncResource();
++++     *     if (cr) {
++++     *       resource[sym] = cr[sym];
++++     *     }
++++     *   },
++++     * }).enable();
++++     *
++++     * const server = createServer((req, res) => {
++++     *   executionAsyncResource()[sym] = { state: req.url };
++++     *   setTimeout(function() {
++++     *     res.end(JSON.stringify(executionAsyncResource()[sym]));
++++     *   }, 100);
++++     * }).listen(3000);
++++     * ```
++++     * @since v13.9.0, v12.17.0
++++     * @return The resource representing the current execution. Useful to store data within the resource.
++++     */
++++    function executionAsyncResource(): object;
++++    /**
++++     * ```js
++++     * const server = net.createServer((conn) => {
++++     *   // The resource that caused (or triggered) this callback to be called
++++     *   // was that of the new connection. Thus the return value of triggerAsyncId()
++++     *   // is the asyncId of "conn".
++++     *   async_hooks.triggerAsyncId();
++++     *
++++     * }).listen(port, () => {
++++     *   // Even though all callbacks passed to .listen() are wrapped in a nextTick()
++++     *   // the callback itself exists because the call to the server's .listen()
++++     *   // was made. So the return value would be the ID of the server.
++++     *   async_hooks.triggerAsyncId();
++++     * });
++++     * ```
++++     *
++++     * Promise contexts may not get valid `triggerAsyncId`s by default. See
++++     * the section on [promise execution tracking](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html#promise-execution-tracking).
++++     * @return The ID of the resource responsible for calling the callback that is currently being executed.
++++     */
++++    function triggerAsyncId(): number;
++++    interface HookCallbacks {
++++        /**
++++         * Called when a class is constructed that has the possibility to emit an asynchronous event.
++++         * @param asyncId A unique ID for the async resource
++++         * @param type The type of the async resource
++++         * @param triggerAsyncId The unique ID of the async resource in whose execution context this async resource was created
++++         * @param resource Reference to the resource representing the async operation, needs to be released during destroy
++++         */
++++        init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void;
++++        /**
++++         * When an asynchronous operation is initiated or completes a callback is called to notify the user.
++++         * The before callback is called just before said callback is executed.
++++         * @param asyncId the unique identifier assigned to the resource about to execute the callback.
++++         */
++++        before?(asyncId: number): void;
++++        /**
++++         * Called immediately after the callback specified in `before` is completed.
++++         *
++++         * If an uncaught exception occurs during execution of the callback, then `after` will run after the `'uncaughtException'` event is emitted or a `domain`'s handler runs.
++++         * @param asyncId the unique identifier assigned to the resource which has executed the callback.
++++         */
++++        after?(asyncId: number): void;
++++        /**
++++         * Called when a promise has resolve() called. This may not be in the same execution id
++++         * as the promise itself.
++++         * @param asyncId the unique id for the promise that was resolve()d.
++++         */
++++        promiseResolve?(asyncId: number): void;
++++        /**
++++         * Called after the resource corresponding to asyncId is destroyed
++++         * @param asyncId a unique ID for the async resource
++++         */
++++        destroy?(asyncId: number): void;
++++    }
++++    interface AsyncHook {
++++        /**
++++         * Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop.
++++         */
++++        enable(): this;
++++        /**
++++         * Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled.
++++         */
++++        disable(): this;
++++    }
++++    /**
++++     * Registers functions to be called for different lifetime events of each async
++++     * operation.
++++     *
++++     * The callbacks `init()`/`before()`/`after()`/`destroy()` are called for the
++++     * respective asynchronous event during a resource's lifetime.
++++     *
++++     * All callbacks are optional. For example, if only resource cleanup needs to
++++     * be tracked, then only the `destroy` callback needs to be passed. The
++++     * specifics of all functions that can be passed to `callbacks` is in the `Hook Callbacks` section.
++++     *
++++     * ```js
++++     * import { createHook } from 'node:async_hooks';
++++     *
++++     * const asyncHook = createHook({
++++     *   init(asyncId, type, triggerAsyncId, resource) { },
++++     *   destroy(asyncId) { },
++++     * });
++++     * ```
++++     *
++++     * The callbacks will be inherited via the prototype chain:
++++     *
++++     * ```js
++++     * class MyAsyncCallbacks {
++++     *   init(asyncId, type, triggerAsyncId, resource) { }
++++     *   destroy(asyncId) {}
++++     * }
++++     *
++++     * class MyAddedCallbacks extends MyAsyncCallbacks {
++++     *   before(asyncId) { }
++++     *   after(asyncId) { }
++++     * }
++++     *
++++     * const asyncHook = async_hooks.createHook(new MyAddedCallbacks());
++++     * ```
++++     *
++++     * Because promises are asynchronous resources whose lifecycle is tracked
++++     * via the async hooks mechanism, the `init()`, `before()`, `after()`, and`destroy()` callbacks _must not_ be async functions that return promises.
++++     * @since v8.1.0
++++     * @param callbacks The `Hook Callbacks` to register
++++     * @return Instance used for disabling and enabling hooks
++++     */
++++    function createHook(callbacks: HookCallbacks): AsyncHook;
++++    interface AsyncResourceOptions {
++++        /**
++++         * The ID of the execution context that created this async event.
++++         * @default executionAsyncId()
++++         */
++++        triggerAsyncId?: number | undefined;
++++        /**
++++         * Disables automatic `emitDestroy` when the object is garbage collected.
++++         * This usually does not need to be set (even if `emitDestroy` is called
++++         * manually), unless the resource's `asyncId` is retrieved and the
++++         * sensitive API's `emitDestroy` is called with it.
++++         * @default false
++++         */
++++        requireManualDestroy?: boolean | undefined;
++++    }
++++    /**
++++     * The class `AsyncResource` is designed to be extended by the embedder's async
++++     * resources. Using this, users can easily trigger the lifetime events of their
++++     * own resources.
++++     *
++++     * The `init` hook will trigger when an `AsyncResource` is instantiated.
++++     *
++++     * The following is an overview of the `AsyncResource` API.
++++     *
++++     * ```js
++++     * import { AsyncResource, executionAsyncId } from 'node:async_hooks';
++++     *
++++     * // AsyncResource() is meant to be extended. Instantiating a
++++     * // new AsyncResource() also triggers init. If triggerAsyncId is omitted then
++++     * // async_hook.executionAsyncId() is used.
++++     * const asyncResource = new AsyncResource(
++++     *   type, { triggerAsyncId: executionAsyncId(), requireManualDestroy: false },
++++     * );
++++     *
++++     * // Run a function in the execution context of the resource. This will
++++     * // * establish the context of the resource
++++     * // * trigger the AsyncHooks before callbacks
++++     * // * call the provided function `fn` with the supplied arguments
++++     * // * trigger the AsyncHooks after callbacks
++++     * // * restore the original execution context
++++     * asyncResource.runInAsyncScope(fn, thisArg, ...args);
++++     *
++++     * // Call AsyncHooks destroy callbacks.
++++     * asyncResource.emitDestroy();
++++     *
++++     * // Return the unique ID assigned to the AsyncResource instance.
++++     * asyncResource.asyncId();
++++     *
++++     * // Return the trigger ID for the AsyncResource instance.
++++     * asyncResource.triggerAsyncId();
++++     * ```
++++     */
++++    class AsyncResource {
++++        /**
++++         * AsyncResource() is meant to be extended. Instantiating a
++++         * new AsyncResource() also triggers init. If triggerAsyncId is omitted then
++++         * async_hook.executionAsyncId() is used.
++++         * @param type The type of async event.
++++         * @param triggerAsyncId The ID of the execution context that created
++++         *   this async event (default: `executionAsyncId()`), or an
++++         *   AsyncResourceOptions object (since v9.3.0)
++++         */
++++        constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions);
++++        /**
++++         * Binds the given function to the current execution context.
++++         * @since v14.8.0, v12.19.0
++++         * @param fn The function to bind to the current execution context.
++++         * @param type An optional name to associate with the underlying `AsyncResource`.
++++         */
++++        static bind<Func extends (this: ThisArg, ...args: any[]) => any, ThisArg>(
++++            fn: Func,
++++            type?: string,
++++            thisArg?: ThisArg,
++++        ): Func;
++++        /**
++++         * Binds the given function to execute to this `AsyncResource`'s scope.
++++         * @since v14.8.0, v12.19.0
++++         * @param fn The function to bind to the current `AsyncResource`.
++++         */
++++        bind<Func extends (...args: any[]) => any>(fn: Func): Func;
++++        /**
++++         * Call the provided function with the provided arguments in the execution context
++++         * of the async resource. This will establish the context, trigger the AsyncHooks
++++         * before callbacks, call the function, trigger the AsyncHooks after callbacks, and
++++         * then restore the original execution context.
++++         * @since v9.6.0
++++         * @param fn The function to call in the execution context of this async resource.
++++         * @param thisArg The receiver to be used for the function call.
++++         * @param args Optional arguments to pass to the function.
++++         */
++++        runInAsyncScope<This, Result>(
++++            fn: (this: This, ...args: any[]) => Result,
++++            thisArg?: This,
++++            ...args: any[]
++++        ): Result;
++++        /**
++++         * Call all `destroy` hooks. This should only ever be called once. An error will
++++         * be thrown if it is called more than once. This **must** be manually called. If
++++         * the resource is left to be collected by the GC then the `destroy` hooks will
++++         * never be called.
++++         * @return A reference to `asyncResource`.
++++         */
++++        emitDestroy(): this;
++++        /**
++++         * @return The unique `asyncId` assigned to the resource.
++++         */
++++        asyncId(): number;
++++        /**
++++         * @return The same `triggerAsyncId` that is passed to the `AsyncResource` constructor.
++++         */
++++        triggerAsyncId(): number;
++++    }
++++    /**
++++     * This class creates stores that stay coherent through asynchronous operations.
++++     *
++++     * While you can create your own implementation on top of the `node:async_hooks` module, `AsyncLocalStorage` should be preferred as it is a performant and memory
++++     * safe implementation that involves significant optimizations that are non-obvious
++++     * to implement.
++++     *
++++     * The following example uses `AsyncLocalStorage` to build a simple logger
++++     * that assigns IDs to incoming HTTP requests and includes them in messages
++++     * logged within each request.
++++     *
++++     * ```js
++++     * import http from 'node:http';
++++     * import { AsyncLocalStorage } from 'node:async_hooks';
++++     *
++++     * const asyncLocalStorage = new AsyncLocalStorage();
++++     *
++++     * function logWithId(msg) {
++++     *   const id = asyncLocalStorage.getStore();
++++     *   console.log(`${id !== undefined ? id : '-'}:`, msg);
++++     * }
++++     *
++++     * let idSeq = 0;
++++     * http.createServer((req, res) => {
++++     *   asyncLocalStorage.run(idSeq++, () => {
++++     *     logWithId('start');
++++     *     // Imagine any chain of async operations here
++++     *     setImmediate(() => {
++++     *       logWithId('finish');
++++     *       res.end();
++++     *     });
++++     *   });
++++     * }).listen(8080);
++++     *
++++     * http.get('http://localhost:8080');
++++     * http.get('http://localhost:8080');
++++     * // Prints:
++++     * //   0: start
++++     * //   1: start
++++     * //   0: finish
++++     * //   1: finish
++++     * ```
++++     *
++++     * Each instance of `AsyncLocalStorage` maintains an independent storage context.
++++     * Multiple instances can safely exist simultaneously without risk of interfering
++++     * with each other's data.
++++     * @since v13.10.0, v12.17.0
++++     */
++++    class AsyncLocalStorage<T> {
++++        /**
++++         * Binds the given function to the current execution context.
++++         * @since v19.8.0
++++         * @experimental
++++         * @param fn The function to bind to the current execution context.
++++         * @return A new function that calls `fn` within the captured execution context.
++++         */
++++        static bind<Func extends (...args: any[]) => any>(fn: Func): Func;
++++        /**
++++         * Captures the current execution context and returns a function that accepts a
++++         * function as an argument. Whenever the returned function is called, it
++++         * calls the function passed to it within the captured context.
++++         *
++++         * ```js
++++         * const asyncLocalStorage = new AsyncLocalStorage();
++++         * const runInAsyncScope = asyncLocalStorage.run(123, () => AsyncLocalStorage.snapshot());
++++         * const result = asyncLocalStorage.run(321, () => runInAsyncScope(() => asyncLocalStorage.getStore()));
++++         * console.log(result);  // returns 123
++++         * ```
++++         *
++++         * AsyncLocalStorage.snapshot() can replace the use of AsyncResource for simple
++++         * async context tracking purposes, for example:
++++         *
++++         * ```js
++++         * class Foo {
++++         *   #runInAsyncScope = AsyncLocalStorage.snapshot();
++++         *
++++         *   get() { return this.#runInAsyncScope(() => asyncLocalStorage.getStore()); }
++++         * }
++++         *
++++         * const foo = asyncLocalStorage.run(123, () => new Foo());
++++         * console.log(asyncLocalStorage.run(321, () => foo.get())); // returns 123
++++         * ```
++++         * @since v19.8.0
++++         * @experimental
++++         * @return A new function with the signature `(fn: (...args) : R, ...args) : R`.
++++         */
++++        static snapshot(): <R, TArgs extends any[]>(fn: (...args: TArgs) => R, ...args: TArgs) => R;
++++        /**
++++         * Disables the instance of `AsyncLocalStorage`. All subsequent calls
++++         * to `asyncLocalStorage.getStore()` will return `undefined` until `asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()` is called again.
++++         *
++++         * When calling `asyncLocalStorage.disable()`, all current contexts linked to the
++++         * instance will be exited.
++++         *
++++         * Calling `asyncLocalStorage.disable()` is required before the `asyncLocalStorage` can be garbage collected. This does not apply to stores
++++         * provided by the `asyncLocalStorage`, as those objects are garbage collected
++++         * along with the corresponding async resources.
++++         *
++++         * Use this method when the `asyncLocalStorage` is not in use anymore
++++         * in the current process.
++++         * @since v13.10.0, v12.17.0
++++         * @experimental
++++         */
++++        disable(): void;
++++        /**
++++         * Returns the current store.
++++         * If called outside of an asynchronous context initialized by
++++         * calling `asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()`, it
++++         * returns `undefined`.
++++         * @since v13.10.0, v12.17.0
++++         */
++++        getStore(): T | undefined;
++++        /**
++++         * Runs a function synchronously within a context and returns its
++++         * return value. The store is not accessible outside of the callback function.
++++         * The store is accessible to any asynchronous operations created within the
++++         * callback.
++++         *
++++         * The optional `args` are passed to the callback function.
++++         *
++++         * If the callback function throws an error, the error is thrown by `run()` too.
++++         * The stacktrace is not impacted by this call and the context is exited.
++++         *
++++         * Example:
++++         *
++++         * ```js
++++         * const store = { id: 2 };
++++         * try {
++++         *   asyncLocalStorage.run(store, () => {
++++         *     asyncLocalStorage.getStore(); // Returns the store object
++++         *     setTimeout(() => {
++++         *       asyncLocalStorage.getStore(); // Returns the store object
++++         *     }, 200);
++++         *     throw new Error();
++++         *   });
++++         * } catch (e) {
++++         *   asyncLocalStorage.getStore(); // Returns undefined
++++         *   // The error will be caught here
++++         * }
++++         * ```
++++         * @since v13.10.0, v12.17.0
++++         */
++++        run<R>(store: T, callback: () => R): R;
++++        run<R, TArgs extends any[]>(store: T, callback: (...args: TArgs) => R, ...args: TArgs): R;
++++        /**
++++         * Runs a function synchronously outside of a context and returns its
++++         * return value. The store is not accessible within the callback function or
++++         * the asynchronous operations created within the callback. Any `getStore()` call done within the callback function will always return `undefined`.
++++         *
++++         * The optional `args` are passed to the callback function.
++++         *
++++         * If the callback function throws an error, the error is thrown by `exit()` too.
++++         * The stacktrace is not impacted by this call and the context is re-entered.
++++         *
++++         * Example:
++++         *
++++         * ```js
++++         * // Within a call to run
++++         * try {
++++         *   asyncLocalStorage.getStore(); // Returns the store object or value
++++         *   asyncLocalStorage.exit(() => {
++++         *     asyncLocalStorage.getStore(); // Returns undefined
++++         *     throw new Error();
++++         *   });
++++         * } catch (e) {
++++         *   asyncLocalStorage.getStore(); // Returns the same object or value
++++         *   // The error will be caught here
++++         * }
++++         * ```
++++         * @since v13.10.0, v12.17.0
++++         * @experimental
++++         */
++++        exit<R, TArgs extends any[]>(callback: (...args: TArgs) => R, ...args: TArgs): R;
++++        /**
++++         * Transitions into the context for the remainder of the current
++++         * synchronous execution and then persists the store through any following
++++         * asynchronous calls.
++++         *
++++         * Example:
++++         *
++++         * ```js
++++         * const store = { id: 1 };
++++         * // Replaces previous store with the given store object
++++         * asyncLocalStorage.enterWith(store);
++++         * asyncLocalStorage.getStore(); // Returns the store object
++++         * someAsyncOperation(() => {
++++         *   asyncLocalStorage.getStore(); // Returns the same object
++++         * });
++++         * ```
++++         *
++++         * This transition will continue for the _entire_ synchronous execution.
++++         * This means that if, for example, the context is entered within an event
++++         * handler subsequent event handlers will also run within that context unless
++++         * specifically bound to another context with an `AsyncResource`. That is why `run()` should be preferred over `enterWith()` unless there are strong reasons
++++         * to use the latter method.
++++         *
++++         * ```js
++++         * const store = { id: 1 };
++++         *
++++         * emitter.on('my-event', () => {
++++         *   asyncLocalStorage.enterWith(store);
++++         * });
++++         * emitter.on('my-event', () => {
++++         *   asyncLocalStorage.getStore(); // Returns the same object
++++         * });
++++         *
++++         * asyncLocalStorage.getStore(); // Returns undefined
++++         * emitter.emit('my-event');
++++         * asyncLocalStorage.getStore(); // Returns the same object
++++         * ```
++++         * @since v13.11.0, v12.17.0
++++         * @experimental
++++         */
++++        enterWith(store: T): void;
++++    }
++++}
++++declare module "node:async_hooks" {
++++    export * from "async_hooks";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..0b6c49a6431b4fc621e991375a8392fe4a6a287a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,385 @@@@@
++++declare module "buffer" {
++++    global {
++++        interface BufferConstructor {
++++            // see buffer.d.ts for implementation shared with all TypeScript versions
++++
++++            /**
++++             * Allocates a new buffer containing the given {str}.
++++             *
++++             * @param str String to store in buffer.
++++             * @param encoding encoding to use, optional.  Default is 'utf8'
++++             * @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead.
++++             */
++++            new(str: string, encoding?: BufferEncoding): Buffer<ArrayBuffer>;
++++            /**
++++             * Allocates a new buffer of {size} octets.
++++             *
++++             * @param size count of octets to allocate.
++++             * @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`).
++++             */
++++            new(size: number): Buffer<ArrayBuffer>;
++++            /**
++++             * Allocates a new buffer containing the given {array} of octets.
++++             *
++++             * @param array The octets to store.
++++             * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
++++             */
++++            new(array: Uint8Array): Buffer<ArrayBuffer>;
++++            /**
++++             * Produces a Buffer backed by the same allocated memory as
++++             * the given {ArrayBuffer}/{SharedArrayBuffer}.
++++             *
++++             * @param arrayBuffer The ArrayBuffer with which to share memory.
++++             * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead.
++++             */
++++            new<TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(arrayBuffer: TArrayBuffer): Buffer<TArrayBuffer>;
++++            /**
++++             * Allocates a new buffer containing the given {array} of octets.
++++             *
++++             * @param array The octets to store.
++++             * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
++++             */
++++            new(array: readonly any[]): Buffer<ArrayBuffer>;
++++            /**
++++             * Copies the passed {buffer} data onto a new {Buffer} instance.
++++             *
++++             * @param buffer The buffer to copy.
++++             * @deprecated since v10.0.0 - Use `Buffer.from(buffer)` instead.
++++             */
++++            new(buffer: Buffer): Buffer<ArrayBuffer>;
++++            /**
++++             * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`.
++++             * Array entries outside that range will be truncated to fit into it.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'.
++++             * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]);
++++             * ```
++++             *
++++             * If `array` is an `Array`\-like object (that is, one with a `length` property of
++++             * type `number`), it is treated as if it is an array, unless it is a `Buffer` or
++++             * a `Uint8Array`. This means all other `TypedArray` variants get treated as an `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use `Buffer.copyBytesFrom()`.
++++             *
++++             * A `TypeError` will be thrown if `array` is not an `Array` or another type
++++             * appropriate for `Buffer.from()` variants.
++++             *
++++             * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does.
++++             * @since v5.10.0
++++             */
++++            from<TArrayBuffer extends ArrayBufferLike>(
++++                arrayBuffer: WithImplicitCoercion<TArrayBuffer>,
++++                byteOffset?: number,
++++                length?: number,
++++            ): Buffer<TArrayBuffer>;
++++            /**
++++             * Creates a new Buffer using the passed {data}
++++             * @param data data to create a new Buffer
++++             */
++++            from(data: Uint8Array | readonly number[]): Buffer<ArrayBuffer>;
++++            from(data: WithImplicitCoercion<Uint8Array | readonly number[] | string>): Buffer<ArrayBuffer>;
++++            /**
++++             * Creates a new Buffer containing the given JavaScript string {str}.
++++             * If provided, the {encoding} parameter identifies the character encoding.
++++             * If not provided, {encoding} defaults to 'utf8'.
++++             */
++++            from(
++++                str:
++++                    | WithImplicitCoercion<string>
++++                    | {
++++                        [Symbol.toPrimitive](hint: "string"): string;
++++                    },
++++                encoding?: BufferEncoding,
++++            ): Buffer<ArrayBuffer>;
++++            /**
++++             * Creates a new Buffer using the passed {data}
++++             * @param values to create a new Buffer
++++             */
++++            of(...items: number[]): Buffer<ArrayBuffer>;
++++            /**
++++             * Returns a new `Buffer` which is the result of concatenating all the `Buffer` instances in the `list` together.
++++             *
++++             * If the list has no items, or if the `totalLength` is 0, then a new zero-length `Buffer` is returned.
++++             *
++++             * If `totalLength` is not provided, it is calculated from the `Buffer` instances
++++             * in `list` by adding their lengths.
++++             *
++++             * If `totalLength` is provided, it is coerced to an unsigned integer. If the
++++             * combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is
++++             * truncated to `totalLength`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * // Create a single `Buffer` from a list of three `Buffer` instances.
++++             *
++++             * const buf1 = Buffer.alloc(10);
++++             * const buf2 = Buffer.alloc(14);
++++             * const buf3 = Buffer.alloc(18);
++++             * const totalLength = buf1.length + buf2.length + buf3.length;
++++             *
++++             * console.log(totalLength);
++++             * // Prints: 42
++++             *
++++             * const bufA = Buffer.concat([buf1, buf2, buf3], totalLength);
++++             *
++++             * console.log(bufA);
++++             * // Prints: <Buffer 00 00 00 00 ...>
++++             * console.log(bufA.length);
++++             * // Prints: 42
++++             * ```
++++             *
++++             * `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does.
++++             * @since v0.7.11
++++             * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate.
++++             * @param totalLength Total length of the `Buffer` instances in `list` when concatenated.
++++             */
++++            concat(list: readonly Uint8Array[], totalLength?: number): Buffer<ArrayBuffer>;
++++            /**
++++             * Copies the underlying memory of `view` into a new `Buffer`.
++++             *
++++             * ```js
++++             * const u16 = new Uint16Array([0, 0xffff]);
++++             * const buf = Buffer.copyBytesFrom(u16, 1, 1);
++++             * u16[1] = 0;
++++             * console.log(buf.length); // 2
++++             * console.log(buf[0]); // 255
++++             * console.log(buf[1]); // 255
++++             * ```
++++             * @since v19.8.0
++++             * @param view The {TypedArray} to copy.
++++             * @param [offset=0] The starting offset within `view`.
++++             * @param [length=view.length - offset] The number of elements from `view` to copy.
++++             */
++++            copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer<ArrayBuffer>;
++++            /**
++++             * Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.alloc(5);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 00 00 00 00 00>
++++             * ```
++++             *
++++             * If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown.
++++             *
++++             * If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.alloc(5, 'a');
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 61 61 61 61 61>
++++             * ```
++++             *
++++             * If both `fill` and `encoding` are specified, the allocated `Buffer` will be
++++             * initialized by calling `buf.fill(fill, encoding)`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64');
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 68 65 6c 6c 6f 20 77 6f 72 6c 64>
++++             * ```
++++             *
++++             * Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance
++++             * contents will never contain sensitive data from previous allocations, including
++++             * data that might not have been allocated for `Buffer`s.
++++             *
++++             * A `TypeError` will be thrown if `size` is not a number.
++++             * @since v5.10.0
++++             * @param size The desired length of the new `Buffer`.
++++             * @param [fill=0] A value to pre-fill the new `Buffer` with.
++++             * @param [encoding='utf8'] If `fill` is a string, this is its encoding.
++++             */
++++            alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer<ArrayBuffer>;
++++            /**
++++             * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown.
++++             *
++++             * The underlying memory for `Buffer` instances created in this way is _not_
++++             * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(10);
++++             *
++++             * console.log(buf);
++++             * // Prints (contents may vary): <Buffer a0 8b 28 3f 01 00 00 00 50 32>
++++             *
++++             * buf.fill(0);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 00 00 00 00 00 00 00 00 00 00>
++++             * ```
++++             *
++++             * A `TypeError` will be thrown if `size` is not a number.
++++             *
++++             * The `Buffer` module pre-allocates an internal `Buffer` instance of
++++             * size `Buffer.poolSize` that is used as a pool for the fast allocation of new `Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`,
++++             * and `Buffer.concat()` only when `size` is less than `Buffer.poolSize >>> 1` (floor of `Buffer.poolSize` divided by two).
++++             *
++++             * Use of this pre-allocated internal memory pool is a key difference between
++++             * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`.
++++             * Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less
++++             * than or equal to half `Buffer.poolSize`. The
++++             * difference is subtle but can be important when an application requires the
++++             * additional performance that `Buffer.allocUnsafe()` provides.
++++             * @since v5.10.0
++++             * @param size The desired length of the new `Buffer`.
++++             */
++++            allocUnsafe(size: number): Buffer<ArrayBuffer>;
++++            /**
++++             * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. A zero-length `Buffer` is created if
++++             * `size` is 0.
++++             *
++++             * The underlying memory for `Buffer` instances created in this way is _not_
++++             * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `buf.fill(0)` to initialize
++++             * such `Buffer` instances with zeroes.
++++             *
++++             * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances,
++++             * allocations under 4 KiB are sliced from a single pre-allocated `Buffer`. This
++++             * allows applications to avoid the garbage collection overhead of creating many
++++             * individually allocated `Buffer` instances. This approach improves both
++++             * performance and memory usage by eliminating the need to track and clean up as
++++             * many individual `ArrayBuffer` objects.
++++             *
++++             * However, in the case where a developer may need to retain a small chunk of
++++             * memory from a pool for an indeterminate amount of time, it may be appropriate
++++             * to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and
++++             * then copying out the relevant bits.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * // Need to keep around a few small chunks of memory.
++++             * const store = [];
++++             *
++++             * socket.on('readable', () => {
++++             *   let data;
++++             *   while (null !== (data = readable.read())) {
++++             *     // Allocate for retained data.
++++             *     const sb = Buffer.allocUnsafeSlow(10);
++++             *
++++             *     // Copy the data into the new allocation.
++++             *     data.copy(sb, 0, 0, 10);
++++             *
++++             *     store.push(sb);
++++             *   }
++++             * });
++++             * ```
++++             *
++++             * A `TypeError` will be thrown if `size` is not a number.
++++             * @since v5.12.0
++++             * @param size The desired length of the new `Buffer`.
++++             */
++++            allocUnsafeSlow(size: number): Buffer<ArrayBuffer>;
++++        }
++++        interface Buffer<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> extends Uint8Array<TArrayBuffer> {
++++            // see buffer.d.ts for implementation shared with all TypeScript versions
++++
++++            /**
++++             * Returns a new `Buffer` that references the same memory as the original, but
++++             * offset and cropped by the `start` and `end` indices.
++++             *
++++             * This method is not compatible with the `Uint8Array.prototype.slice()`,
++++             * which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from('buffer');
++++             *
++++             * const copiedBuf = Uint8Array.prototype.slice.call(buf);
++++             * copiedBuf[0]++;
++++             * console.log(copiedBuf.toString());
++++             * // Prints: cuffer
++++             *
++++             * console.log(buf.toString());
++++             * // Prints: buffer
++++             *
++++             * // With buf.slice(), the original buffer is modified.
++++             * const notReallyCopiedBuf = buf.slice();
++++             * notReallyCopiedBuf[0]++;
++++             * console.log(notReallyCopiedBuf.toString());
++++             * // Prints: cuffer
++++             * console.log(buf.toString());
++++             * // Also prints: cuffer (!)
++++             * ```
++++             * @since v0.3.0
++++             * @deprecated Use `subarray` instead.
++++             * @param [start=0] Where the new `Buffer` will start.
++++             * @param [end=buf.length] Where the new `Buffer` will end (not inclusive).
++++             */
++++            slice(start?: number, end?: number): Buffer<ArrayBuffer>;
++++            /**
++++             * Returns a new `Buffer` that references the same memory as the original, but
++++             * offset and cropped by the `start` and `end` indices.
++++             *
++++             * Specifying `end` greater than `buf.length` will return the same result as
++++             * that of `end` equal to `buf.length`.
++++             *
++++             * This method is inherited from [`TypedArray.prototype.subarray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray).
++++             *
++++             * Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte
++++             * // from the original `Buffer`.
++++             *
++++             * const buf1 = Buffer.allocUnsafe(26);
++++             *
++++             * for (let i = 0; i < 26; i++) {
++++             *   // 97 is the decimal ASCII value for 'a'.
++++             *   buf1[i] = i + 97;
++++             * }
++++             *
++++             * const buf2 = buf1.subarray(0, 3);
++++             *
++++             * console.log(buf2.toString('ascii', 0, buf2.length));
++++             * // Prints: abc
++++             *
++++             * buf1[0] = 33;
++++             *
++++             * console.log(buf2.toString('ascii', 0, buf2.length));
++++             * // Prints: !bc
++++             * ```
++++             *
++++             * Specifying negative indexes causes the slice to be generated relative to the
++++             * end of `buf` rather than the beginning.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from('buffer');
++++             *
++++             * console.log(buf.subarray(-6, -1).toString());
++++             * // Prints: buffe
++++             * // (Equivalent to buf.subarray(0, 5).)
++++             *
++++             * console.log(buf.subarray(-6, -2).toString());
++++             * // Prints: buff
++++             * // (Equivalent to buf.subarray(0, 4).)
++++             *
++++             * console.log(buf.subarray(-5, -2).toString());
++++             * // Prints: uff
++++             * // (Equivalent to buf.subarray(1, 4).)
++++             * ```
++++             * @since v3.0.0
++++             * @param [start=0] Where the new `Buffer` will start.
++++             * @param [end=buf.length] Where the new `Buffer` will end (not inclusive).
++++             */
++++            subarray(start?: number, end?: number): Buffer<TArrayBuffer>;
++++        }
++++    }
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..2871fc6d1696d74f838803c53ad3f8c83dd2a9fe
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1934 @@@@@
++++// If lib.dom.d.ts or lib.webworker.d.ts is loaded, then use the global types.
++++// Otherwise, use the types from node.
++++type _Blob = typeof globalThis extends { onmessage: any; Blob: any } ? {} : import("buffer").Blob;
++++type _File = typeof globalThis extends { onmessage: any; File: any } ? {} : import("buffer").File;
++++
++++/**
++++ * `Buffer` objects are used to represent a fixed-length sequence of bytes. Many
++++ * Node.js APIs support `Buffer`s.
++++ *
++++ * The `Buffer` class is a subclass of JavaScript's [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) class and
++++ * extends it with methods that cover additional use cases. Node.js APIs accept
++++ * plain [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) s wherever `Buffer`s are supported as well.
++++ *
++++ * While the `Buffer` class is available within the global scope, it is still
++++ * recommended to explicitly reference it via an import or require statement.
++++ *
++++ * ```js
++++ * import { Buffer } from 'node:buffer';
++++ *
++++ * // Creates a zero-filled Buffer of length 10.
++++ * const buf1 = Buffer.alloc(10);
++++ *
++++ * // Creates a Buffer of length 10,
++++ * // filled with bytes which all have the value `1`.
++++ * const buf2 = Buffer.alloc(10, 1);
++++ *
++++ * // Creates an uninitialized buffer of length 10.
++++ * // This is faster than calling Buffer.alloc() but the returned
++++ * // Buffer instance might contain old data that needs to be
++++ * // overwritten using fill(), write(), or other functions that fill the Buffer's
++++ * // contents.
++++ * const buf3 = Buffer.allocUnsafe(10);
++++ *
++++ * // Creates a Buffer containing the bytes [1, 2, 3].
++++ * const buf4 = Buffer.from([1, 2, 3]);
++++ *
++++ * // Creates a Buffer containing the bytes [1, 1, 1, 1] – the entries
++++ * // are all truncated using `(value &#x26; 255)` to fit into the range 0–255.
++++ * const buf5 = Buffer.from([257, 257.5, -255, '1']);
++++ *
++++ * // Creates a Buffer containing the UTF-8-encoded bytes for the string 'tést':
++++ * // [0x74, 0xc3, 0xa9, 0x73, 0x74] (in hexadecimal notation)
++++ * // [116, 195, 169, 115, 116] (in decimal notation)
++++ * const buf6 = Buffer.from('tést');
++++ *
++++ * // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
++++ * const buf7 = Buffer.from('tést', 'latin1');
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/buffer.js)
++++ */
++++declare module "buffer" {
++++    import { BinaryLike } from "node:crypto";
++++    import { ReadableStream as WebReadableStream } from "node:stream/web";
++++    /**
++++     * This function returns `true` if `input` contains only valid UTF-8-encoded data,
++++     * including the case in which `input` is empty.
++++     *
++++     * Throws if the `input` is a detached array buffer.
++++     * @since v19.4.0, v18.14.0
++++     * @param input The input to validate.
++++     */
++++    export function isUtf8(input: Buffer | ArrayBuffer | NodeJS.TypedArray): boolean;
++++    /**
++++     * This function returns `true` if `input` contains only valid ASCII-encoded data,
++++     * including the case in which `input` is empty.
++++     *
++++     * Throws if the `input` is a detached array buffer.
++++     * @since v19.6.0, v18.15.0
++++     * @param input The input to validate.
++++     */
++++    export function isAscii(input: Buffer | ArrayBuffer | NodeJS.TypedArray): boolean;
++++    export const INSPECT_MAX_BYTES: number;
++++    export const kMaxLength: number;
++++    export const kStringMaxLength: number;
++++    export const constants: {
++++        MAX_LENGTH: number;
++++        MAX_STRING_LENGTH: number;
++++    };
++++    export type TranscodeEncoding =
++++        | "ascii"
++++        | "utf8"
++++        | "utf-8"
++++        | "utf16le"
++++        | "utf-16le"
++++        | "ucs2"
++++        | "ucs-2"
++++        | "latin1"
++++        | "binary";
++++    /**
++++     * Re-encodes the given `Buffer` or `Uint8Array` instance from one character
++++     * encoding to another. Returns a new `Buffer` instance.
++++     *
++++     * Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if
++++     * conversion from `fromEnc` to `toEnc` is not permitted.
++++     *
++++     * Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`, `'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`.
++++     *
++++     * The transcoding process will use substitution characters if a given byte
++++     * sequence cannot be adequately represented in the target encoding. For instance:
++++     *
++++     * ```js
++++     * import { Buffer, transcode } from 'node:buffer';
++++     *
++++     * const newBuf = transcode(Buffer.from('€'), 'utf8', 'ascii');
++++     * console.log(newBuf.toString('ascii'));
++++     * // Prints: '?'
++++     * ```
++++     *
++++     * Because the Euro (`€`) sign is not representable in US-ASCII, it is replaced
++++     * with `?` in the transcoded `Buffer`.
++++     * @since v7.1.0
++++     * @param source A `Buffer` or `Uint8Array` instance.
++++     * @param fromEnc The current encoding.
++++     * @param toEnc To target encoding.
++++     */
++++    export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
++++    export const SlowBuffer: {
++++        /** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */
++++        new(size: number): Buffer;
++++        prototype: Buffer;
++++    };
++++    /**
++++     * Resolves a `'blob:nodedata:...'` an associated `Blob` object registered using
++++     * a prior call to `URL.createObjectURL()`.
++++     * @since v16.7.0
++++     * @experimental
++++     * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
++++     */
++++    export function resolveObjectURL(id: string): Blob | undefined;
++++    export { Buffer };
++++    /**
++++     * @experimental
++++     */
++++    export interface BlobOptions {
++++        /**
++++         * One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts
++++         * will be converted to the platform native line-ending as specified by `import { EOL } from 'node:node:os'`.
++++         */
++++        endings?: "transparent" | "native";
++++        /**
++++         * The Blob content-type. The intent is for `type` to convey
++++         * the MIME media type of the data, however no validation of the type format
++++         * is performed.
++++         */
++++        type?: string | undefined;
++++    }
++++    /**
++++     * A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across
++++     * multiple worker threads.
++++     * @since v15.7.0, v14.18.0
++++     */
++++    export class Blob {
++++        /**
++++         * The total size of the `Blob` in bytes.
++++         * @since v15.7.0, v14.18.0
++++         */
++++        readonly size: number;
++++        /**
++++         * The content-type of the `Blob`.
++++         * @since v15.7.0, v14.18.0
++++         */
++++        readonly type: string;
++++        /**
++++         * Creates a new `Blob` object containing a concatenation of the given sources.
++++         *
++++         * {ArrayBuffer}, {TypedArray}, {DataView}, and {Buffer} sources are copied into
++++         * the 'Blob' and can therefore be safely modified after the 'Blob' is created.
++++         *
++++         * String sources are also copied into the `Blob`.
++++         */
++++        constructor(sources: Array<ArrayBuffer | BinaryLike | Blob>, options?: BlobOptions);
++++        /**
++++         * Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of
++++         * the `Blob` data.
++++         * @since v15.7.0, v14.18.0
++++         */
++++        arrayBuffer(): Promise<ArrayBuffer>;
++++        /**
++++         * The `blob.bytes()` method returns the byte of the `Blob` object as a `Promise<Uint8Array>`.
++++         *
++++         * ```js
++++         * const blob = new Blob(['hello']);
++++         * blob.bytes().then((bytes) => {
++++         *   console.log(bytes); // Outputs: Uint8Array(5) [ 104, 101, 108, 108, 111 ]
++++         * });
++++         * ```
++++         * @since v20.16.0
++++         */
++++        bytes(): Promise<Uint8Array>;
++++        /**
++++         * Creates and returns a new `Blob` containing a subset of this `Blob` objects
++++         * data. The original `Blob` is not altered.
++++         * @since v15.7.0, v14.18.0
++++         * @param start The starting index.
++++         * @param end The ending index.
++++         * @param type The content-type for the new `Blob`
++++         */
++++        slice(start?: number, end?: number, type?: string): Blob;
++++        /**
++++         * Returns a promise that fulfills with the contents of the `Blob` decoded as a
++++         * UTF-8 string.
++++         * @since v15.7.0, v14.18.0
++++         */
++++        text(): Promise<string>;
++++        /**
++++         * Returns a new `ReadableStream` that allows the content of the `Blob` to be read.
++++         * @since v16.7.0
++++         */
++++        stream(): WebReadableStream;
++++    }
++++    export interface FileOptions {
++++        /**
++++         * One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts will be
++++         * converted to the platform native line-ending as specified by `import { EOL } from 'node:node:os'`.
++++         */
++++        endings?: "native" | "transparent";
++++        /** The File content-type. */
++++        type?: string;
++++        /** The last modified date of the file. `Default`: Date.now(). */
++++        lastModified?: number;
++++    }
++++    /**
++++     * A [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) provides information about files.
++++     * @since v19.2.0, v18.13.0
++++     */
++++    export class File extends Blob {
++++        constructor(sources: Array<BinaryLike | Blob>, fileName: string, options?: FileOptions);
++++        /**
++++         * The name of the `File`.
++++         * @since v19.2.0, v18.13.0
++++         */
++++        readonly name: string;
++++        /**
++++         * The last modified date of the `File`.
++++         * @since v19.2.0, v18.13.0
++++         */
++++        readonly lastModified: number;
++++    }
++++    export import atob = globalThis.atob;
++++    export import btoa = globalThis.btoa;
++++
++++    global {
++++        namespace NodeJS {
++++            export { BufferEncoding };
++++        }
++++        // Buffer class
++++        type BufferEncoding =
++++            | "ascii"
++++            | "utf8"
++++            | "utf-8"
++++            | "utf16le"
++++            | "utf-16le"
++++            | "ucs2"
++++            | "ucs-2"
++++            | "base64"
++++            | "base64url"
++++            | "latin1"
++++            | "binary"
++++            | "hex";
++++        type WithImplicitCoercion<T> =
++++            | T
++++            | {
++++                valueOf(): T;
++++            };
++++        /**
++++         * Raw data is stored in instances of the Buffer class.
++++         * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap.  A Buffer cannot be resized.
++++         * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'
++++         */
++++        interface BufferConstructor {
++++            // see buffer.buffer.d.ts for implementation specific to TypeScript 5.7 and later
++++            // see ts5.6/buffer.buffer.d.ts for implementation specific to TypeScript 5.6 and earlier
++++
++++            /**
++++             * Returns `true` if `obj` is a `Buffer`, `false` otherwise.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * Buffer.isBuffer(Buffer.alloc(10)); // true
++++             * Buffer.isBuffer(Buffer.from('foo')); // true
++++             * Buffer.isBuffer('a string'); // false
++++             * Buffer.isBuffer([]); // false
++++             * Buffer.isBuffer(new Uint8Array(1024)); // false
++++             * ```
++++             * @since v0.1.101
++++             */
++++            isBuffer(obj: any): obj is Buffer;
++++            /**
++++             * Returns `true` if `encoding` is the name of a supported character encoding,
++++             * or `false` otherwise.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * console.log(Buffer.isEncoding('utf8'));
++++             * // Prints: true
++++             *
++++             * console.log(Buffer.isEncoding('hex'));
++++             * // Prints: true
++++             *
++++             * console.log(Buffer.isEncoding('utf/8'));
++++             * // Prints: false
++++             *
++++             * console.log(Buffer.isEncoding(''));
++++             * // Prints: false
++++             * ```
++++             * @since v0.9.1
++++             * @param encoding A character encoding name to check.
++++             */
++++            isEncoding(encoding: string): encoding is BufferEncoding;
++++            /**
++++             * Returns the byte length of a string when encoded using `encoding`.
++++             * This is not the same as [`String.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length), which does not account
++++             * for the encoding that is used to convert the string into bytes.
++++             *
++++             * For `'base64'`, `'base64url'`, and `'hex'`, this function assumes valid input.
++++             * For strings that contain non-base64/hex-encoded data (e.g. whitespace), the
++++             * return value might be greater than the length of a `Buffer` created from the
++++             * string.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const str = '\u00bd + \u00bc = \u00be';
++++             *
++++             * console.log(`${str}: ${str.length} characters, ` +
++++             *             `${Buffer.byteLength(str, 'utf8')} bytes`);
++++             * // Prints: ½ + ¼ = ¾: 9 characters, 12 bytes
++++             * ```
++++             *
++++             * When `string` is a
++++             * `Buffer`/[`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView)/[`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/-
++++             * Reference/Global_Objects/TypedArray)/[`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)/[`SharedArrayBuffer`](https://develop-
++++             * er.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer), the byte length as reported by `.byteLength`is returned.
++++             * @since v0.1.90
++++             * @param string A value to calculate the length of.
++++             * @param [encoding='utf8'] If `string` is a string, this is its encoding.
++++             * @return The number of bytes contained within `string`.
++++             */
++++            byteLength(
++++                string: string | Buffer | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer,
++++                encoding?: BufferEncoding,
++++            ): number;
++++            /**
++++             * Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of `Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf1 = Buffer.from('1234');
++++             * const buf2 = Buffer.from('0123');
++++             * const arr = [buf1, buf2];
++++             *
++++             * console.log(arr.sort(Buffer.compare));
++++             * // Prints: [ <Buffer 30 31 32 33>, <Buffer 31 32 33 34> ]
++++             * // (This result is equal to: [buf2, buf1].)
++++             * ```
++++             * @since v0.11.13
++++             * @return Either `-1`, `0`, or `1`, depending on the result of the comparison. See `compare` for details.
++++             */
++++            compare(buf1: Uint8Array, buf2: Uint8Array): -1 | 0 | 1;
++++            /**
++++             * This is the size (in bytes) of pre-allocated internal `Buffer` instances used
++++             * for pooling. This value may be modified.
++++             * @since v0.11.3
++++             */
++++            poolSize: number;
++++        }
++++        interface Buffer {
++++            // see buffer.buffer.d.ts for implementation specific to TypeScript 5.7 and later
++++            // see ts5.6/buffer.buffer.d.ts for implementation specific to TypeScript 5.6 and earlier
++++
++++            /**
++++             * Writes `string` to `buf` at `offset` according to the character encoding in`encoding`. The `length` parameter is the number of bytes to write. If `buf` did
++++             * not contain enough space to fit the entire string, only part of `string` will be
++++             * written. However, partially encoded characters will not be written.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.alloc(256);
++++             *
++++             * const len = buf.write('\u00bd + \u00bc = \u00be', 0);
++++             *
++++             * console.log(`${len} bytes: ${buf.toString('utf8', 0, len)}`);
++++             * // Prints: 12 bytes: ½ + ¼ = ¾
++++             *
++++             * const buffer = Buffer.alloc(10);
++++             *
++++             * const length = buffer.write('abcd', 8);
++++             *
++++             * console.log(`${length} bytes: ${buffer.toString('utf8', 8, 10)}`);
++++             * // Prints: 2 bytes : ab
++++             * ```
++++             * @since v0.1.90
++++             * @param string String to write to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write `string`.
++++             * @param [length=buf.length - offset] Maximum number of bytes to write (written bytes will not exceed `buf.length - offset`).
++++             * @param [encoding='utf8'] The character encoding of `string`.
++++             * @return Number of bytes written.
++++             */
++++            write(string: string, encoding?: BufferEncoding): number;
++++            write(string: string, offset: number, encoding?: BufferEncoding): number;
++++            write(string: string, offset: number, length: number, encoding?: BufferEncoding): number;
++++            /**
++++             * Decodes `buf` to a string according to the specified character encoding in`encoding`. `start` and `end` may be passed to decode only a subset of `buf`.
++++             *
++++             * If `encoding` is `'utf8'` and a byte sequence in the input is not valid UTF-8,
++++             * then each invalid byte is replaced with the replacement character `U+FFFD`.
++++             *
++++             * The maximum length of a string instance (in UTF-16 code units) is available
++++             * as {@link constants.MAX_STRING_LENGTH}.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf1 = Buffer.allocUnsafe(26);
++++             *
++++             * for (let i = 0; i < 26; i++) {
++++             *   // 97 is the decimal ASCII value for 'a'.
++++             *   buf1[i] = i + 97;
++++             * }
++++             *
++++             * console.log(buf1.toString('utf8'));
++++             * // Prints: abcdefghijklmnopqrstuvwxyz
++++             * console.log(buf1.toString('utf8', 0, 5));
++++             * // Prints: abcde
++++             *
++++             * const buf2 = Buffer.from('tést');
++++             *
++++             * console.log(buf2.toString('hex'));
++++             * // Prints: 74c3a97374
++++             * console.log(buf2.toString('utf8', 0, 3));
++++             * // Prints: té
++++             * console.log(buf2.toString(undefined, 0, 3));
++++             * // Prints: té
++++             * ```
++++             * @since v0.1.90
++++             * @param [encoding='utf8'] The character encoding to use.
++++             * @param [start=0] The byte offset to start decoding at.
++++             * @param [end=buf.length] The byte offset to stop decoding at (not inclusive).
++++             */
++++            toString(encoding?: BufferEncoding, start?: number, end?: number): string;
++++            /**
++++             * Returns a JSON representation of `buf`. [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) implicitly calls
++++             * this function when stringifying a `Buffer` instance.
++++             *
++++             * `Buffer.from()` accepts objects in the format returned from this method.
++++             * In particular, `Buffer.from(buf.toJSON())` works like `Buffer.from(buf)`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5]);
++++             * const json = JSON.stringify(buf);
++++             *
++++             * console.log(json);
++++             * // Prints: {"type":"Buffer","data":[1,2,3,4,5]}
++++             *
++++             * const copy = JSON.parse(json, (key, value) => {
++++             *   return value &#x26;&#x26; value.type === 'Buffer' ?
++++             *     Buffer.from(value) :
++++             *     value;
++++             * });
++++             *
++++             * console.log(copy);
++++             * // Prints: <Buffer 01 02 03 04 05>
++++             * ```
++++             * @since v0.9.2
++++             */
++++            toJSON(): {
++++                type: "Buffer";
++++                data: number[];
++++            };
++++            /**
++++             * Returns `true` if both `buf` and `otherBuffer` have exactly the same bytes,`false` otherwise. Equivalent to `buf.compare(otherBuffer) === 0`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf1 = Buffer.from('ABC');
++++             * const buf2 = Buffer.from('414243', 'hex');
++++             * const buf3 = Buffer.from('ABCD');
++++             *
++++             * console.log(buf1.equals(buf2));
++++             * // Prints: true
++++             * console.log(buf1.equals(buf3));
++++             * // Prints: false
++++             * ```
++++             * @since v0.11.13
++++             * @param otherBuffer A `Buffer` or {@link Uint8Array} with which to compare `buf`.
++++             */
++++            equals(otherBuffer: Uint8Array): boolean;
++++            /**
++++             * Compares `buf` with `target` and returns a number indicating whether `buf`comes before, after, or is the same as `target` in sort order.
++++             * Comparison is based on the actual sequence of bytes in each `Buffer`.
++++             *
++++             * * `0` is returned if `target` is the same as `buf`
++++             * * `1` is returned if `target` should come _before_`buf` when sorted.
++++             * * `-1` is returned if `target` should come _after_`buf` when sorted.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf1 = Buffer.from('ABC');
++++             * const buf2 = Buffer.from('BCD');
++++             * const buf3 = Buffer.from('ABCD');
++++             *
++++             * console.log(buf1.compare(buf1));
++++             * // Prints: 0
++++             * console.log(buf1.compare(buf2));
++++             * // Prints: -1
++++             * console.log(buf1.compare(buf3));
++++             * // Prints: -1
++++             * console.log(buf2.compare(buf1));
++++             * // Prints: 1
++++             * console.log(buf2.compare(buf3));
++++             * // Prints: 1
++++             * console.log([buf1, buf2, buf3].sort(Buffer.compare));
++++             * // Prints: [ <Buffer 41 42 43>, <Buffer 41 42 43 44>, <Buffer 42 43 44> ]
++++             * // (This result is equal to: [buf1, buf3, buf2].)
++++             * ```
++++             *
++++             * The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd` arguments can be used to limit the comparison to specific ranges within `target` and `buf` respectively.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf1 = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8, 9]);
++++             * const buf2 = Buffer.from([5, 6, 7, 8, 9, 1, 2, 3, 4]);
++++             *
++++             * console.log(buf1.compare(buf2, 5, 9, 0, 4));
++++             * // Prints: 0
++++             * console.log(buf1.compare(buf2, 0, 6, 4));
++++             * // Prints: -1
++++             * console.log(buf1.compare(buf2, 5, 6, 5));
++++             * // Prints: 1
++++             * ```
++++             *
++++             * `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0`, `targetEnd > target.byteLength`, or `sourceEnd > source.byteLength`.
++++             * @since v0.11.13
++++             * @param target A `Buffer` or {@link Uint8Array} with which to compare `buf`.
++++             * @param [targetStart=0] The offset within `target` at which to begin comparison.
++++             * @param [targetEnd=target.length] The offset within `target` at which to end comparison (not inclusive).
++++             * @param [sourceStart=0] The offset within `buf` at which to begin comparison.
++++             * @param [sourceEnd=buf.length] The offset within `buf` at which to end comparison (not inclusive).
++++             */
++++            compare(
++++                target: Uint8Array,
++++                targetStart?: number,
++++                targetEnd?: number,
++++                sourceStart?: number,
++++                sourceEnd?: number,
++++            ): -1 | 0 | 1;
++++            /**
++++             * Copies data from a region of `buf` to a region in `target`, even if the `target`memory region overlaps with `buf`.
++++             *
++++             * [`TypedArray.prototype.set()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) performs the same operation, and is available
++++             * for all TypedArrays, including Node.js `Buffer`s, although it takes
++++             * different function arguments.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * // Create two `Buffer` instances.
++++             * const buf1 = Buffer.allocUnsafe(26);
++++             * const buf2 = Buffer.allocUnsafe(26).fill('!');
++++             *
++++             * for (let i = 0; i < 26; i++) {
++++             *   // 97 is the decimal ASCII value for 'a'.
++++             *   buf1[i] = i + 97;
++++             * }
++++             *
++++             * // Copy `buf1` bytes 16 through 19 into `buf2` starting at byte 8 of `buf2`.
++++             * buf1.copy(buf2, 8, 16, 20);
++++             * // This is equivalent to:
++++             * // buf2.set(buf1.subarray(16, 20), 8);
++++             *
++++             * console.log(buf2.toString('ascii', 0, 25));
++++             * // Prints: !!!!!!!!qrst!!!!!!!!!!!!!
++++             * ```
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * // Create a `Buffer` and copy data from one region to an overlapping region
++++             * // within the same `Buffer`.
++++             *
++++             * const buf = Buffer.allocUnsafe(26);
++++             *
++++             * for (let i = 0; i < 26; i++) {
++++             *   // 97 is the decimal ASCII value for 'a'.
++++             *   buf[i] = i + 97;
++++             * }
++++             *
++++             * buf.copy(buf, 0, 4, 10);
++++             *
++++             * console.log(buf.toString());
++++             * // Prints: efghijghijklmnopqrstuvwxyz
++++             * ```
++++             * @since v0.1.90
++++             * @param target A `Buffer` or {@link Uint8Array} to copy into.
++++             * @param [targetStart=0] The offset within `target` at which to begin writing.
++++             * @param [sourceStart=0] The offset within `buf` from which to begin copying.
++++             * @param [sourceEnd=buf.length] The offset within `buf` at which to stop copying (not inclusive).
++++             * @return The number of bytes copied.
++++             */
++++            copy(target: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset` as big-endian.
++++             *
++++             * `value` is interpreted and written as a two's complement signed integer.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(8);
++++             *
++++             * buf.writeBigInt64BE(0x0102030405060708n, 0);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 01 02 03 04 05 06 07 08>
++++             * ```
++++             * @since v12.0.0, v10.20.0
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeBigInt64BE(value: bigint, offset?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset` as little-endian.
++++             *
++++             * `value` is interpreted and written as a two's complement signed integer.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(8);
++++             *
++++             * buf.writeBigInt64LE(0x0102030405060708n, 0);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 08 07 06 05 04 03 02 01>
++++             * ```
++++             * @since v12.0.0, v10.20.0
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeBigInt64LE(value: bigint, offset?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset` as big-endian.
++++             *
++++             * This function is also available under the `writeBigUint64BE` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(8);
++++             *
++++             * buf.writeBigUInt64BE(0xdecafafecacefaden, 0);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer de ca fa fe ca ce fa de>
++++             * ```
++++             * @since v12.0.0, v10.20.0
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeBigUInt64BE(value: bigint, offset?: number): number;
++++            /**
++++             * @alias Buffer.writeBigUInt64BE
++++             * @since v14.10.0, v12.19.0
++++             */
++++            writeBigUint64BE(value: bigint, offset?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset` as little-endian
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(8);
++++             *
++++             * buf.writeBigUInt64LE(0xdecafafecacefaden, 0);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer de fa ce ca fe fa ca de>
++++             * ```
++++             *
++++             * This function is also available under the `writeBigUint64LE` alias.
++++             * @since v12.0.0, v10.20.0
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeBigUInt64LE(value: bigint, offset?: number): number;
++++            /**
++++             * @alias Buffer.writeBigUInt64LE
++++             * @since v14.10.0, v12.19.0
++++             */
++++            writeBigUint64LE(value: bigint, offset?: number): number;
++++            /**
++++             * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined
++++             * when `value` is anything other than an unsigned integer.
++++             *
++++             * This function is also available under the `writeUintLE` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(6);
++++             *
++++             * buf.writeUIntLE(0x1234567890ab, 0, 6);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer ab 90 78 56 34 12>
++++             * ```
++++             * @since v0.5.5
++++             * @param value Number to be written to `buf`.
++++             * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`.
++++             * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeUIntLE(value: number, offset: number, byteLength: number): number;
++++            /**
++++             * @alias Buffer.writeUIntLE
++++             * @since v14.9.0, v12.19.0
++++             */
++++            writeUintLE(value: number, offset: number, byteLength: number): number;
++++            /**
++++             * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined
++++             * when `value` is anything other than an unsigned integer.
++++             *
++++             * This function is also available under the `writeUintBE` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(6);
++++             *
++++             * buf.writeUIntBE(0x1234567890ab, 0, 6);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 12 34 56 78 90 ab>
++++             * ```
++++             * @since v0.5.5
++++             * @param value Number to be written to `buf`.
++++             * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`.
++++             * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeUIntBE(value: number, offset: number, byteLength: number): number;
++++            /**
++++             * @alias Buffer.writeUIntBE
++++             * @since v14.9.0, v12.19.0
++++             */
++++            writeUintBE(value: number, offset: number, byteLength: number): number;
++++            /**
++++             * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined
++++             * when `value` is anything other than a signed integer.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(6);
++++             *
++++             * buf.writeIntLE(0x1234567890ab, 0, 6);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer ab 90 78 56 34 12>
++++             * ```
++++             * @since v0.11.15
++++             * @param value Number to be written to `buf`.
++++             * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`.
++++             * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeIntLE(value: number, offset: number, byteLength: number): number;
++++            /**
++++             * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined when`value` is anything other than a
++++             * signed integer.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(6);
++++             *
++++             * buf.writeIntBE(0x1234567890ab, 0, 6);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 12 34 56 78 90 ab>
++++             * ```
++++             * @since v0.11.15
++++             * @param value Number to be written to `buf`.
++++             * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`.
++++             * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeIntBE(value: number, offset: number, byteLength: number): number;
++++            /**
++++             * Reads an unsigned, big-endian 64-bit integer from `buf` at the specified`offset`.
++++             *
++++             * This function is also available under the `readBigUint64BE` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]);
++++             *
++++             * console.log(buf.readBigUInt64BE(0));
++++             * // Prints: 4294967295n
++++             * ```
++++             * @since v12.0.0, v10.20.0
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
++++             */
++++            readBigUInt64BE(offset?: number): bigint;
++++            /**
++++             * @alias Buffer.readBigUInt64BE
++++             * @since v14.10.0, v12.19.0
++++             */
++++            readBigUint64BE(offset?: number): bigint;
++++            /**
++++             * Reads an unsigned, little-endian 64-bit integer from `buf` at the specified`offset`.
++++             *
++++             * This function is also available under the `readBigUint64LE` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]);
++++             *
++++             * console.log(buf.readBigUInt64LE(0));
++++             * // Prints: 18446744069414584320n
++++             * ```
++++             * @since v12.0.0, v10.20.0
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
++++             */
++++            readBigUInt64LE(offset?: number): bigint;
++++            /**
++++             * @alias Buffer.readBigUInt64LE
++++             * @since v14.10.0, v12.19.0
++++             */
++++            readBigUint64LE(offset?: number): bigint;
++++            /**
++++             * Reads a signed, big-endian 64-bit integer from `buf` at the specified `offset`.
++++             *
++++             * Integers read from a `Buffer` are interpreted as two's complement signed
++++             * values.
++++             * @since v12.0.0, v10.20.0
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
++++             */
++++            readBigInt64BE(offset?: number): bigint;
++++            /**
++++             * Reads a signed, little-endian 64-bit integer from `buf` at the specified`offset`.
++++             *
++++             * Integers read from a `Buffer` are interpreted as two's complement signed
++++             * values.
++++             * @since v12.0.0, v10.20.0
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`.
++++             */
++++            readBigInt64LE(offset?: number): bigint;
++++            /**
++++             * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned, little-endian integer supporting
++++             * up to 48 bits of accuracy.
++++             *
++++             * This function is also available under the `readUintLE` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
++++             *
++++             * console.log(buf.readUIntLE(0, 6).toString(16));
++++             * // Prints: ab9078563412
++++             * ```
++++             * @since v0.11.15
++++             * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`.
++++             * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
++++             */
++++            readUIntLE(offset: number, byteLength: number): number;
++++            /**
++++             * @alias Buffer.readUIntLE
++++             * @since v14.9.0, v12.19.0
++++             */
++++            readUintLE(offset: number, byteLength: number): number;
++++            /**
++++             * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned big-endian integer supporting
++++             * up to 48 bits of accuracy.
++++             *
++++             * This function is also available under the `readUintBE` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
++++             *
++++             * console.log(buf.readUIntBE(0, 6).toString(16));
++++             * // Prints: 1234567890ab
++++             * console.log(buf.readUIntBE(1, 6).toString(16));
++++             * // Throws ERR_OUT_OF_RANGE.
++++             * ```
++++             * @since v0.11.15
++++             * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`.
++++             * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
++++             */
++++            readUIntBE(offset: number, byteLength: number): number;
++++            /**
++++             * @alias Buffer.readUIntBE
++++             * @since v14.9.0, v12.19.0
++++             */
++++            readUintBE(offset: number, byteLength: number): number;
++++            /**
++++             * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a little-endian, two's complement signed value
++++             * supporting up to 48 bits of accuracy.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
++++             *
++++             * console.log(buf.readIntLE(0, 6).toString(16));
++++             * // Prints: -546f87a9cbee
++++             * ```
++++             * @since v0.11.15
++++             * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`.
++++             * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
++++             */
++++            readIntLE(offset: number, byteLength: number): number;
++++            /**
++++             * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a big-endian, two's complement signed value
++++             * supporting up to 48 bits of accuracy.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
++++             *
++++             * console.log(buf.readIntBE(0, 6).toString(16));
++++             * // Prints: 1234567890ab
++++             * console.log(buf.readIntBE(1, 6).toString(16));
++++             * // Throws ERR_OUT_OF_RANGE.
++++             * console.log(buf.readIntBE(1, 0).toString(16));
++++             * // Throws ERR_OUT_OF_RANGE.
++++             * ```
++++             * @since v0.11.15
++++             * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`.
++++             * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`.
++++             */
++++            readIntBE(offset: number, byteLength: number): number;
++++            /**
++++             * Reads an unsigned 8-bit integer from `buf` at the specified `offset`.
++++             *
++++             * This function is also available under the `readUint8` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([1, -2]);
++++             *
++++             * console.log(buf.readUInt8(0));
++++             * // Prints: 1
++++             * console.log(buf.readUInt8(1));
++++             * // Prints: 254
++++             * console.log(buf.readUInt8(2));
++++             * // Throws ERR_OUT_OF_RANGE.
++++             * ```
++++             * @since v0.5.0
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`.
++++             */
++++            readUInt8(offset?: number): number;
++++            /**
++++             * @alias Buffer.readUInt8
++++             * @since v14.9.0, v12.19.0
++++             */
++++            readUint8(offset?: number): number;
++++            /**
++++             * Reads an unsigned, little-endian 16-bit integer from `buf` at the specified `offset`.
++++             *
++++             * This function is also available under the `readUint16LE` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([0x12, 0x34, 0x56]);
++++             *
++++             * console.log(buf.readUInt16LE(0).toString(16));
++++             * // Prints: 3412
++++             * console.log(buf.readUInt16LE(1).toString(16));
++++             * // Prints: 5634
++++             * console.log(buf.readUInt16LE(2).toString(16));
++++             * // Throws ERR_OUT_OF_RANGE.
++++             * ```
++++             * @since v0.5.5
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
++++             */
++++            readUInt16LE(offset?: number): number;
++++            /**
++++             * @alias Buffer.readUInt16LE
++++             * @since v14.9.0, v12.19.0
++++             */
++++            readUint16LE(offset?: number): number;
++++            /**
++++             * Reads an unsigned, big-endian 16-bit integer from `buf` at the specified`offset`.
++++             *
++++             * This function is also available under the `readUint16BE` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([0x12, 0x34, 0x56]);
++++             *
++++             * console.log(buf.readUInt16BE(0).toString(16));
++++             * // Prints: 1234
++++             * console.log(buf.readUInt16BE(1).toString(16));
++++             * // Prints: 3456
++++             * ```
++++             * @since v0.5.5
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
++++             */
++++            readUInt16BE(offset?: number): number;
++++            /**
++++             * @alias Buffer.readUInt16BE
++++             * @since v14.9.0, v12.19.0
++++             */
++++            readUint16BE(offset?: number): number;
++++            /**
++++             * Reads an unsigned, little-endian 32-bit integer from `buf` at the specified`offset`.
++++             *
++++             * This function is also available under the `readUint32LE` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]);
++++             *
++++             * console.log(buf.readUInt32LE(0).toString(16));
++++             * // Prints: 78563412
++++             * console.log(buf.readUInt32LE(1).toString(16));
++++             * // Throws ERR_OUT_OF_RANGE.
++++             * ```
++++             * @since v0.5.5
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
++++             */
++++            readUInt32LE(offset?: number): number;
++++            /**
++++             * @alias Buffer.readUInt32LE
++++             * @since v14.9.0, v12.19.0
++++             */
++++            readUint32LE(offset?: number): number;
++++            /**
++++             * Reads an unsigned, big-endian 32-bit integer from `buf` at the specified`offset`.
++++             *
++++             * This function is also available under the `readUint32BE` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]);
++++             *
++++             * console.log(buf.readUInt32BE(0).toString(16));
++++             * // Prints: 12345678
++++             * ```
++++             * @since v0.5.5
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
++++             */
++++            readUInt32BE(offset?: number): number;
++++            /**
++++             * @alias Buffer.readUInt32BE
++++             * @since v14.9.0, v12.19.0
++++             */
++++            readUint32BE(offset?: number): number;
++++            /**
++++             * Reads a signed 8-bit integer from `buf` at the specified `offset`.
++++             *
++++             * Integers read from a `Buffer` are interpreted as two's complement signed values.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([-1, 5]);
++++             *
++++             * console.log(buf.readInt8(0));
++++             * // Prints: -1
++++             * console.log(buf.readInt8(1));
++++             * // Prints: 5
++++             * console.log(buf.readInt8(2));
++++             * // Throws ERR_OUT_OF_RANGE.
++++             * ```
++++             * @since v0.5.0
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`.
++++             */
++++            readInt8(offset?: number): number;
++++            /**
++++             * Reads a signed, little-endian 16-bit integer from `buf` at the specified`offset`.
++++             *
++++             * Integers read from a `Buffer` are interpreted as two's complement signed values.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([0, 5]);
++++             *
++++             * console.log(buf.readInt16LE(0));
++++             * // Prints: 1280
++++             * console.log(buf.readInt16LE(1));
++++             * // Throws ERR_OUT_OF_RANGE.
++++             * ```
++++             * @since v0.5.5
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
++++             */
++++            readInt16LE(offset?: number): number;
++++            /**
++++             * Reads a signed, big-endian 16-bit integer from `buf` at the specified `offset`.
++++             *
++++             * Integers read from a `Buffer` are interpreted as two's complement signed values.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([0, 5]);
++++             *
++++             * console.log(buf.readInt16BE(0));
++++             * // Prints: 5
++++             * ```
++++             * @since v0.5.5
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`.
++++             */
++++            readInt16BE(offset?: number): number;
++++            /**
++++             * Reads a signed, little-endian 32-bit integer from `buf` at the specified`offset`.
++++             *
++++             * Integers read from a `Buffer` are interpreted as two's complement signed values.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([0, 0, 0, 5]);
++++             *
++++             * console.log(buf.readInt32LE(0));
++++             * // Prints: 83886080
++++             * console.log(buf.readInt32LE(1));
++++             * // Throws ERR_OUT_OF_RANGE.
++++             * ```
++++             * @since v0.5.5
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
++++             */
++++            readInt32LE(offset?: number): number;
++++            /**
++++             * Reads a signed, big-endian 32-bit integer from `buf` at the specified `offset`.
++++             *
++++             * Integers read from a `Buffer` are interpreted as two's complement signed values.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([0, 0, 0, 5]);
++++             *
++++             * console.log(buf.readInt32BE(0));
++++             * // Prints: 5
++++             * ```
++++             * @since v0.5.5
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
++++             */
++++            readInt32BE(offset?: number): number;
++++            /**
++++             * Reads a 32-bit, little-endian float from `buf` at the specified `offset`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([1, 2, 3, 4]);
++++             *
++++             * console.log(buf.readFloatLE(0));
++++             * // Prints: 1.539989614439558e-36
++++             * console.log(buf.readFloatLE(1));
++++             * // Throws ERR_OUT_OF_RANGE.
++++             * ```
++++             * @since v0.11.15
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
++++             */
++++            readFloatLE(offset?: number): number;
++++            /**
++++             * Reads a 32-bit, big-endian float from `buf` at the specified `offset`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([1, 2, 3, 4]);
++++             *
++++             * console.log(buf.readFloatBE(0));
++++             * // Prints: 2.387939260590663e-38
++++             * ```
++++             * @since v0.11.15
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`.
++++             */
++++            readFloatBE(offset?: number): number;
++++            /**
++++             * Reads a 64-bit, little-endian double from `buf` at the specified `offset`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]);
++++             *
++++             * console.log(buf.readDoubleLE(0));
++++             * // Prints: 5.447603722011605e-270
++++             * console.log(buf.readDoubleLE(1));
++++             * // Throws ERR_OUT_OF_RANGE.
++++             * ```
++++             * @since v0.11.15
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`.
++++             */
++++            readDoubleLE(offset?: number): number;
++++            /**
++++             * Reads a 64-bit, big-endian double from `buf` at the specified `offset`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]);
++++             *
++++             * console.log(buf.readDoubleBE(0));
++++             * // Prints: 8.20788039913184e-304
++++             * ```
++++             * @since v0.11.15
++++             * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`.
++++             */
++++            readDoubleBE(offset?: number): number;
++++            reverse(): this;
++++            /**
++++             * Interprets `buf` as an array of unsigned 16-bit integers and swaps the
++++             * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 2.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
++++             *
++++             * console.log(buf1);
++++             * // Prints: <Buffer 01 02 03 04 05 06 07 08>
++++             *
++++             * buf1.swap16();
++++             *
++++             * console.log(buf1);
++++             * // Prints: <Buffer 02 01 04 03 06 05 08 07>
++++             *
++++             * const buf2 = Buffer.from([0x1, 0x2, 0x3]);
++++             *
++++             * buf2.swap16();
++++             * // Throws ERR_INVALID_BUFFER_SIZE.
++++             * ```
++++             *
++++             * One convenient use of `buf.swap16()` is to perform a fast in-place conversion
++++             * between UTF-16 little-endian and UTF-16 big-endian:
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from('This is little-endian UTF-16', 'utf16le');
++++             * buf.swap16(); // Convert to big-endian UTF-16 text.
++++             * ```
++++             * @since v5.10.0
++++             * @return A reference to `buf`.
++++             */
++++            swap16(): this;
++++            /**
++++             * Interprets `buf` as an array of unsigned 32-bit integers and swaps the
++++             * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 4.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
++++             *
++++             * console.log(buf1);
++++             * // Prints: <Buffer 01 02 03 04 05 06 07 08>
++++             *
++++             * buf1.swap32();
++++             *
++++             * console.log(buf1);
++++             * // Prints: <Buffer 04 03 02 01 08 07 06 05>
++++             *
++++             * const buf2 = Buffer.from([0x1, 0x2, 0x3]);
++++             *
++++             * buf2.swap32();
++++             * // Throws ERR_INVALID_BUFFER_SIZE.
++++             * ```
++++             * @since v5.10.0
++++             * @return A reference to `buf`.
++++             */
++++            swap32(): this;
++++            /**
++++             * Interprets `buf` as an array of 64-bit numbers and swaps byte order _in-place_.
++++             * Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 8.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
++++             *
++++             * console.log(buf1);
++++             * // Prints: <Buffer 01 02 03 04 05 06 07 08>
++++             *
++++             * buf1.swap64();
++++             *
++++             * console.log(buf1);
++++             * // Prints: <Buffer 08 07 06 05 04 03 02 01>
++++             *
++++             * const buf2 = Buffer.from([0x1, 0x2, 0x3]);
++++             *
++++             * buf2.swap64();
++++             * // Throws ERR_INVALID_BUFFER_SIZE.
++++             * ```
++++             * @since v6.3.0
++++             * @return A reference to `buf`.
++++             */
++++            swap64(): this;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset`. `value` must be a
++++             * valid unsigned 8-bit integer. Behavior is undefined when `value` is anything
++++             * other than an unsigned 8-bit integer.
++++             *
++++             * This function is also available under the `writeUint8` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(4);
++++             *
++++             * buf.writeUInt8(0x3, 0);
++++             * buf.writeUInt8(0x4, 1);
++++             * buf.writeUInt8(0x23, 2);
++++             * buf.writeUInt8(0x42, 3);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 03 04 23 42>
++++             * ```
++++             * @since v0.5.0
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeUInt8(value: number, offset?: number): number;
++++            /**
++++             * @alias Buffer.writeUInt8
++++             * @since v14.9.0, v12.19.0
++++             */
++++            writeUint8(value: number, offset?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid unsigned 16-bit integer. Behavior is undefined when `value` is
++++             * anything other than an unsigned 16-bit integer.
++++             *
++++             * This function is also available under the `writeUint16LE` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(4);
++++             *
++++             * buf.writeUInt16LE(0xdead, 0);
++++             * buf.writeUInt16LE(0xbeef, 2);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer ad de ef be>
++++             * ```
++++             * @since v0.5.5
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeUInt16LE(value: number, offset?: number): number;
++++            /**
++++             * @alias Buffer.writeUInt16LE
++++             * @since v14.9.0, v12.19.0
++++             */
++++            writeUint16LE(value: number, offset?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid unsigned 16-bit integer. Behavior is undefined when `value`is anything other than an
++++             * unsigned 16-bit integer.
++++             *
++++             * This function is also available under the `writeUint16BE` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(4);
++++             *
++++             * buf.writeUInt16BE(0xdead, 0);
++++             * buf.writeUInt16BE(0xbeef, 2);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer de ad be ef>
++++             * ```
++++             * @since v0.5.5
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeUInt16BE(value: number, offset?: number): number;
++++            /**
++++             * @alias Buffer.writeUInt16BE
++++             * @since v14.9.0, v12.19.0
++++             */
++++            writeUint16BE(value: number, offset?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid unsigned 32-bit integer. Behavior is undefined when `value` is
++++             * anything other than an unsigned 32-bit integer.
++++             *
++++             * This function is also available under the `writeUint32LE` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(4);
++++             *
++++             * buf.writeUInt32LE(0xfeedface, 0);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer ce fa ed fe>
++++             * ```
++++             * @since v0.5.5
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeUInt32LE(value: number, offset?: number): number;
++++            /**
++++             * @alias Buffer.writeUInt32LE
++++             * @since v14.9.0, v12.19.0
++++             */
++++            writeUint32LE(value: number, offset?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid unsigned 32-bit integer. Behavior is undefined when `value`is anything other than an
++++             * unsigned 32-bit integer.
++++             *
++++             * This function is also available under the `writeUint32BE` alias.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(4);
++++             *
++++             * buf.writeUInt32BE(0xfeedface, 0);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer fe ed fa ce>
++++             * ```
++++             * @since v0.5.5
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeUInt32BE(value: number, offset?: number): number;
++++            /**
++++             * @alias Buffer.writeUInt32BE
++++             * @since v14.9.0, v12.19.0
++++             */
++++            writeUint32BE(value: number, offset?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset`. `value` must be a valid
++++             * signed 8-bit integer. Behavior is undefined when `value` is anything other than
++++             * a signed 8-bit integer.
++++             *
++++             * `value` is interpreted and written as a two's complement signed integer.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(2);
++++             *
++++             * buf.writeInt8(2, 0);
++++             * buf.writeInt8(-2, 1);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 02 fe>
++++             * ```
++++             * @since v0.5.0
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeInt8(value: number, offset?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset` as little-endian.  The `value` must be a valid signed 16-bit integer. Behavior is undefined when `value` is
++++             * anything other than a signed 16-bit integer.
++++             *
++++             * The `value` is interpreted and written as a two's complement signed integer.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(2);
++++             *
++++             * buf.writeInt16LE(0x0304, 0);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 04 03>
++++             * ```
++++             * @since v0.5.5
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeInt16LE(value: number, offset?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset` as big-endian.  The `value` must be a valid signed 16-bit integer. Behavior is undefined when `value` is
++++             * anything other than a signed 16-bit integer.
++++             *
++++             * The `value` is interpreted and written as a two's complement signed integer.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(2);
++++             *
++++             * buf.writeInt16BE(0x0102, 0);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 01 02>
++++             * ```
++++             * @since v0.5.5
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeInt16BE(value: number, offset?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid signed 32-bit integer. Behavior is undefined when `value` is
++++             * anything other than a signed 32-bit integer.
++++             *
++++             * The `value` is interpreted and written as a two's complement signed integer.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(4);
++++             *
++++             * buf.writeInt32LE(0x05060708, 0);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 08 07 06 05>
++++             * ```
++++             * @since v0.5.5
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeInt32LE(value: number, offset?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid signed 32-bit integer. Behavior is undefined when `value` is
++++             * anything other than a signed 32-bit integer.
++++             *
++++             * The `value` is interpreted and written as a two's complement signed integer.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(4);
++++             *
++++             * buf.writeInt32BE(0x01020304, 0);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 01 02 03 04>
++++             * ```
++++             * @since v0.5.5
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeInt32BE(value: number, offset?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset` as little-endian. Behavior is
++++             * undefined when `value` is anything other than a JavaScript number.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(4);
++++             *
++++             * buf.writeFloatLE(0xcafebabe, 0);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer bb fe 4a 4f>
++++             * ```
++++             * @since v0.11.15
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeFloatLE(value: number, offset?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset` as big-endian. Behavior is
++++             * undefined when `value` is anything other than a JavaScript number.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(4);
++++             *
++++             * buf.writeFloatBE(0xcafebabe, 0);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 4f 4a fe bb>
++++             * ```
++++             * @since v0.11.15
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeFloatBE(value: number, offset?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a JavaScript number. Behavior is undefined when `value` is anything
++++             * other than a JavaScript number.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(8);
++++             *
++++             * buf.writeDoubleLE(123.456, 0);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 77 be 9f 1a 2f dd 5e 40>
++++             * ```
++++             * @since v0.11.15
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeDoubleLE(value: number, offset?: number): number;
++++            /**
++++             * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a JavaScript number. Behavior is undefined when `value` is anything
++++             * other than a JavaScript number.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(8);
++++             *
++++             * buf.writeDoubleBE(123.456, 0);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 40 5e dd 2f 1a 9f be 77>
++++             * ```
++++             * @since v0.11.15
++++             * @param value Number to be written to `buf`.
++++             * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`.
++++             * @return `offset` plus the number of bytes written.
++++             */
++++            writeDoubleBE(value: number, offset?: number): number;
++++            /**
++++             * Fills `buf` with the specified `value`. If the `offset` and `end` are not given,
++++             * the entire `buf` will be filled:
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * // Fill a `Buffer` with the ASCII character 'h'.
++++             *
++++             * const b = Buffer.allocUnsafe(50).fill('h');
++++             *
++++             * console.log(b.toString());
++++             * // Prints: hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
++++             *
++++             * // Fill a buffer with empty string
++++             * const c = Buffer.allocUnsafe(5).fill('');
++++             *
++++             * console.log(c.fill(''));
++++             * // Prints: <Buffer 00 00 00 00 00>
++++             * ```
++++             *
++++             * `value` is coerced to a `uint32` value if it is not a string, `Buffer`, or
++++             * integer. If the resulting integer is greater than `255` (decimal), `buf` will be
++++             * filled with `value &#x26; 255`.
++++             *
++++             * If the final write of a `fill()` operation falls on a multi-byte character,
++++             * then only the bytes of that character that fit into `buf` are written:
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * // Fill a `Buffer` with character that takes up two bytes in UTF-8.
++++             *
++++             * console.log(Buffer.allocUnsafe(5).fill('\u0222'));
++++             * // Prints: <Buffer c8 a2 c8 a2 c8>
++++             * ```
++++             *
++++             * If `value` contains invalid characters, it is truncated; if no valid
++++             * fill data remains, an exception is thrown:
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(5);
++++             *
++++             * console.log(buf.fill('a'));
++++             * // Prints: <Buffer 61 61 61 61 61>
++++             * console.log(buf.fill('aazz', 'hex'));
++++             * // Prints: <Buffer aa aa aa aa aa>
++++             * console.log(buf.fill('zz', 'hex'));
++++             * // Throws an exception.
++++             * ```
++++             * @since v0.5.0
++++             * @param value The value with which to fill `buf`. Empty value (string, Uint8Array, Buffer) is coerced to `0`.
++++             * @param [offset=0] Number of bytes to skip before starting to fill `buf`.
++++             * @param [end=buf.length] Where to stop filling `buf` (not inclusive).
++++             * @param [encoding='utf8'] The encoding for `value` if `value` is a string.
++++             * @return A reference to `buf`.
++++             */
++++            fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this;
++++            /**
++++             * If `value` is:
++++             *
++++             * * a string, `value` is interpreted according to the character encoding in `encoding`.
++++             * * a `Buffer` or [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array), `value` will be used in its entirety.
++++             * To compare a partial `Buffer`, use `buf.subarray`.
++++             * * a number, `value` will be interpreted as an unsigned 8-bit integer
++++             * value between `0` and `255`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from('this is a buffer');
++++             *
++++             * console.log(buf.indexOf('this'));
++++             * // Prints: 0
++++             * console.log(buf.indexOf('is'));
++++             * // Prints: 2
++++             * console.log(buf.indexOf(Buffer.from('a buffer')));
++++             * // Prints: 8
++++             * console.log(buf.indexOf(97));
++++             * // Prints: 8 (97 is the decimal ASCII value for 'a')
++++             * console.log(buf.indexOf(Buffer.from('a buffer example')));
++++             * // Prints: -1
++++             * console.log(buf.indexOf(Buffer.from('a buffer example').slice(0, 8)));
++++             * // Prints: 8
++++             *
++++             * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le');
++++             *
++++             * console.log(utf16Buffer.indexOf('\u03a3', 0, 'utf16le'));
++++             * // Prints: 4
++++             * console.log(utf16Buffer.indexOf('\u03a3', -4, 'utf16le'));
++++             * // Prints: 6
++++             * ```
++++             *
++++             * If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
++++             * an integer between 0 and 255.
++++             *
++++             * If `byteOffset` is not a number, it will be coerced to a number. If the result
++++             * of coercion is `NaN` or `0`, then the entire buffer will be searched. This
++++             * behavior matches [`String.prototype.indexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf).
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const b = Buffer.from('abcdef');
++++             *
++++             * // Passing a value that's a number, but not a valid byte.
++++             * // Prints: 2, equivalent to searching for 99 or 'c'.
++++             * console.log(b.indexOf(99.9));
++++             * console.log(b.indexOf(256 + 99));
++++             *
++++             * // Passing a byteOffset that coerces to NaN or 0.
++++             * // Prints: 1, searching the whole buffer.
++++             * console.log(b.indexOf('b', undefined));
++++             * console.log(b.indexOf('b', {}));
++++             * console.log(b.indexOf('b', null));
++++             * console.log(b.indexOf('b', []));
++++             * ```
++++             *
++++             * If `value` is an empty string or empty `Buffer` and `byteOffset` is less
++++             * than `buf.length`, `byteOffset` will be returned. If `value` is empty and`byteOffset` is at least `buf.length`, `buf.length` will be returned.
++++             * @since v1.5.0
++++             * @param value What to search for.
++++             * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
++++             * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`.
++++             * @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
++++             */
++++            indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
++++            /**
++++             * Identical to `buf.indexOf()`, except the last occurrence of `value` is found
++++             * rather than the first occurrence.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from('this buffer is a buffer');
++++             *
++++             * console.log(buf.lastIndexOf('this'));
++++             * // Prints: 0
++++             * console.log(buf.lastIndexOf('buffer'));
++++             * // Prints: 17
++++             * console.log(buf.lastIndexOf(Buffer.from('buffer')));
++++             * // Prints: 17
++++             * console.log(buf.lastIndexOf(97));
++++             * // Prints: 15 (97 is the decimal ASCII value for 'a')
++++             * console.log(buf.lastIndexOf(Buffer.from('yolo')));
++++             * // Prints: -1
++++             * console.log(buf.lastIndexOf('buffer', 5));
++++             * // Prints: 5
++++             * console.log(buf.lastIndexOf('buffer', 4));
++++             * // Prints: -1
++++             *
++++             * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le');
++++             *
++++             * console.log(utf16Buffer.lastIndexOf('\u03a3', undefined, 'utf16le'));
++++             * // Prints: 6
++++             * console.log(utf16Buffer.lastIndexOf('\u03a3', -5, 'utf16le'));
++++             * // Prints: 4
++++             * ```
++++             *
++++             * If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
++++             * an integer between 0 and 255.
++++             *
++++             * If `byteOffset` is not a number, it will be coerced to a number. Any arguments
++++             * that coerce to `NaN`, like `{}` or `undefined`, will search the whole buffer.
++++             * This behavior matches [`String.prototype.lastIndexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf).
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const b = Buffer.from('abcdef');
++++             *
++++             * // Passing a value that's a number, but not a valid byte.
++++             * // Prints: 2, equivalent to searching for 99 or 'c'.
++++             * console.log(b.lastIndexOf(99.9));
++++             * console.log(b.lastIndexOf(256 + 99));
++++             *
++++             * // Passing a byteOffset that coerces to NaN.
++++             * // Prints: 1, searching the whole buffer.
++++             * console.log(b.lastIndexOf('b', undefined));
++++             * console.log(b.lastIndexOf('b', {}));
++++             *
++++             * // Passing a byteOffset that coerces to 0.
++++             * // Prints: -1, equivalent to passing 0.
++++             * console.log(b.lastIndexOf('b', null));
++++             * console.log(b.lastIndexOf('b', []));
++++             * ```
++++             *
++++             * If `value` is an empty string or empty `Buffer`, `byteOffset` will be returned.
++++             * @since v6.0.0
++++             * @param value What to search for.
++++             * @param [byteOffset=buf.length - 1] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
++++             * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`.
++++             * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
++++             */
++++            lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
++++            /**
++++             * Equivalent to `buf.indexOf() !== -1`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from('this is a buffer');
++++             *
++++             * console.log(buf.includes('this'));
++++             * // Prints: true
++++             * console.log(buf.includes('is'));
++++             * // Prints: true
++++             * console.log(buf.includes(Buffer.from('a buffer')));
++++             * // Prints: true
++++             * console.log(buf.includes(97));
++++             * // Prints: true (97 is the decimal ASCII value for 'a')
++++             * console.log(buf.includes(Buffer.from('a buffer example')));
++++             * // Prints: false
++++             * console.log(buf.includes(Buffer.from('a buffer example').slice(0, 8)));
++++             * // Prints: true
++++             * console.log(buf.includes('this', 4));
++++             * // Prints: false
++++             * ```
++++             * @since v5.3.0
++++             * @param value What to search for.
++++             * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
++++             * @param [encoding='utf8'] If `value` is a string, this is its encoding.
++++             * @return `true` if `value` was found in `buf`, `false` otherwise.
++++             */
++++            includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
++++        }
++++        var Buffer: BufferConstructor;
++++        /**
++++         * Decodes a string of Base64-encoded data into bytes, and encodes those bytes
++++         * into a string using Latin-1 (ISO-8859-1).
++++         *
++++         * The `data` may be any JavaScript-value that can be coerced into a string.
++++         *
++++         * **This function is only provided for compatibility with legacy web platform APIs**
++++         * **and should never be used in new code, because they use strings to represent**
++++         * **binary data and predate the introduction of typed arrays in JavaScript.**
++++         * **For code running using Node.js APIs, converting between base64-encoded strings**
++++         * **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.**
++++         * @since v15.13.0, v14.17.0
++++         * @legacy Use `Buffer.from(data, 'base64')` instead.
++++         * @param data The Base64-encoded input string.
++++         */
++++        function atob(data: string): string;
++++        /**
++++         * Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes
++++         * into a string using Base64.
++++         *
++++         * The `data` may be any JavaScript-value that can be coerced into a string.
++++         *
++++         * **This function is only provided for compatibility with legacy web platform APIs**
++++         * **and should never be used in new code, because they use strings to represent**
++++         * **binary data and predate the introduction of typed arrays in JavaScript.**
++++         * **For code running using Node.js APIs, converting between base64-encoded strings**
++++         * **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.**
++++         * @since v15.13.0, v14.17.0
++++         * @legacy Use `buf.toString('base64')` instead.
++++         * @param data An ASCII (Latin1) string.
++++         */
++++        function btoa(data: string): string;
++++        interface Blob extends _Blob {}
++++        /**
++++         * `Blob` class is a global reference for `import { Blob } from 'node:node:buffer'`
++++         * https://nodejs.org/api/buffer.html#class-blob
++++         * @since v18.0.0
++++         */
++++        var Blob: typeof globalThis extends { onmessage: any; Blob: infer T } ? T
++++            : typeof import("buffer").Blob;
++++        interface File extends _File {}
++++        /**
++++         * `File` class is a global reference for `import { File } from 'node:node:buffer'`
++++         * https://nodejs.org/api/buffer.html#class-file
++++         * @since v20.0.0
++++         */
++++        var File: typeof globalThis extends { onmessage: any; File: infer T } ? T
++++            : typeof import("buffer").File;
++++    }
++++}
++++declare module "node:buffer" {
++++    export * from "buffer";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5d07ef1a7bec77356566cccca5171468a130309e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1548 @@@@@
++++/**
++++ * The `node:child_process` module provides the ability to spawn subprocesses in
++++ * a manner that is similar, but not identical, to [`popen(3)`](http://man7.org/linux/man-pages/man3/popen.3.html). This capability
++++ * is primarily provided by the {@link spawn} function:
++++ *
++++ * ```js
++++ * import { spawn } from 'node:child_process';
++++ * const ls = spawn('ls', ['-lh', '/usr']);
++++ *
++++ * ls.stdout.on('data', (data) => {
++++ *   console.log(`stdout: ${data}`);
++++ * });
++++ *
++++ * ls.stderr.on('data', (data) => {
++++ *   console.error(`stderr: ${data}`);
++++ * });
++++ *
++++ * ls.on('close', (code) => {
++++ *   console.log(`child process exited with code ${code}`);
++++ * });
++++ * ```
++++ *
++++ * By default, pipes for `stdin`, `stdout`, and `stderr` are established between
++++ * the parent Node.js process and the spawned subprocess. These pipes have
++++ * limited (and platform-specific) capacity. If the subprocess writes to
++++ * stdout in excess of that limit without the output being captured, the
++++ * subprocess blocks waiting for the pipe buffer to accept more data. This is
++++ * identical to the behavior of pipes in the shell. Use the `{ stdio: 'ignore' }` option if the output will not be consumed.
++++ *
++++ * The command lookup is performed using the `options.env.PATH` environment
++++ * variable if `env` is in the `options` object. Otherwise, `process.env.PATH` is
++++ * used. If `options.env` is set without `PATH`, lookup on Unix is performed
++++ * on a default search path search of `/usr/bin:/bin` (see your operating system's
++++ * manual for execvpe/execvp), on Windows the current processes environment
++++ * variable `PATH` is used.
++++ *
++++ * On Windows, environment variables are case-insensitive. Node.js
++++ * lexicographically sorts the `env` keys and uses the first one that
++++ * case-insensitively matches. Only first (in lexicographic order) entry will be
++++ * passed to the subprocess. This might lead to issues on Windows when passing
++++ * objects to the `env` option that have multiple variants of the same key, such as `PATH` and `Path`.
++++ *
++++ * The {@link spawn} method spawns the child process asynchronously,
++++ * without blocking the Node.js event loop. The {@link spawnSync} function provides equivalent functionality in a synchronous manner that blocks
++++ * the event loop until the spawned process either exits or is terminated.
++++ *
++++ * For convenience, the `node:child_process` module provides a handful of
++++ * synchronous and asynchronous alternatives to {@link spawn} and {@link spawnSync}. Each of these alternatives are implemented on
++++ * top of {@link spawn} or {@link spawnSync}.
++++ *
++++ * * {@link exec}: spawns a shell and runs a command within that
++++ * shell, passing the `stdout` and `stderr` to a callback function when
++++ * complete.
++++ * * {@link execFile}: similar to {@link exec} except
++++ * that it spawns the command directly without first spawning a shell by
++++ * default.
++++ * * {@link fork}: spawns a new Node.js process and invokes a
++++ * specified module with an IPC communication channel established that allows
++++ * sending messages between parent and child.
++++ * * {@link execSync}: a synchronous version of {@link exec} that will block the Node.js event loop.
++++ * * {@link execFileSync}: a synchronous version of {@link execFile} that will block the Node.js event loop.
++++ *
++++ * For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however,
++++ * the synchronous methods can have significant impact on performance due to
++++ * stalling the event loop while spawned processes complete.
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/child_process.js)
++++ */
++++declare module "child_process" {
++++    import { ObjectEncodingOptions } from "node:fs";
++++    import { Abortable, EventEmitter } from "node:events";
++++    import * as dgram from "node:dgram";
++++    import * as net from "node:net";
++++    import { Pipe, Readable, Stream, Writable } from "node:stream";
++++    import { URL } from "node:url";
++++    type Serializable = string | object | number | boolean | bigint;
++++    type SendHandle = net.Socket | net.Server | dgram.Socket | undefined;
++++    /**
++++     * Instances of the `ChildProcess` represent spawned child processes.
++++     *
++++     * Instances of `ChildProcess` are not intended to be created directly. Rather,
++++     * use the {@link spawn}, {@link exec},{@link execFile}, or {@link fork} methods to create
++++     * instances of `ChildProcess`.
++++     * @since v2.2.0
++++     */
++++    class ChildProcess extends EventEmitter {
++++        /**
++++         * A `Writable Stream` that represents the child process's `stdin`.
++++         *
++++         * If a child process waits to read all of its input, the child will not continue
++++         * until this stream has been closed via `end()`.
++++         *
++++         * If the child was spawned with `stdio[0]` set to anything other than `'pipe'`,
++++         * then this will be `null`.
++++         *
++++         * `subprocess.stdin` is an alias for `subprocess.stdio[0]`. Both properties will
++++         * refer to the same value.
++++         *
++++         * The `subprocess.stdin` property can be `null` or `undefined` if the child process could not be successfully spawned.
++++         * @since v0.1.90
++++         */
++++        stdin: Writable | null;
++++        /**
++++         * A `Readable Stream` that represents the child process's `stdout`.
++++         *
++++         * If the child was spawned with `stdio[1]` set to anything other than `'pipe'`,
++++         * then this will be `null`.
++++         *
++++         * `subprocess.stdout` is an alias for `subprocess.stdio[1]`. Both properties will
++++         * refer to the same value.
++++         *
++++         * ```js
++++         * import { spawn } from 'node:child_process';
++++         *
++++         * const subprocess = spawn('ls');
++++         *
++++         * subprocess.stdout.on('data', (data) => {
++++         *   console.log(`Received chunk ${data}`);
++++         * });
++++         * ```
++++         *
++++         * The `subprocess.stdout` property can be `null` or `undefined` if the child process could not be successfully spawned.
++++         * @since v0.1.90
++++         */
++++        stdout: Readable | null;
++++        /**
++++         * A `Readable Stream` that represents the child process's `stderr`.
++++         *
++++         * If the child was spawned with `stdio[2]` set to anything other than `'pipe'`,
++++         * then this will be `null`.
++++         *
++++         * `subprocess.stderr` is an alias for `subprocess.stdio[2]`. Both properties will
++++         * refer to the same value.
++++         *
++++         * The `subprocess.stderr` property can be `null` or `undefined` if the child process could not be successfully spawned.
++++         * @since v0.1.90
++++         */
++++        stderr: Readable | null;
++++        /**
++++         * The `subprocess.channel` property is a reference to the child's IPC channel. If
++++         * no IPC channel exists, this property is `undefined`.
++++         * @since v7.1.0
++++         */
++++        readonly channel?: Pipe | null | undefined;
++++        /**
++++         * A sparse array of pipes to the child process, corresponding with positions in
++++         * the `stdio` option passed to {@link spawn} that have been set
++++         * to the value `'pipe'`. `subprocess.stdio[0]`, `subprocess.stdio[1]`, and `subprocess.stdio[2]` are also available as `subprocess.stdin`, `subprocess.stdout`, and `subprocess.stderr`,
++++         * respectively.
++++         *
++++         * In the following example, only the child's fd `1` (stdout) is configured as a
++++         * pipe, so only the parent's `subprocess.stdio[1]` is a stream, all other values
++++         * in the array are `null`.
++++         *
++++         * ```js
++++         * import assert from 'node:assert';
++++         * import fs from 'node:fs';
++++         * import child_process from 'node:child_process';
++++         *
++++         * const subprocess = child_process.spawn('ls', {
++++         *   stdio: [
++++         *     0, // Use parent's stdin for child.
++++         *     'pipe', // Pipe child's stdout to parent.
++++         *     fs.openSync('err.out', 'w'), // Direct child's stderr to a file.
++++         *   ],
++++         * });
++++         *
++++         * assert.strictEqual(subprocess.stdio[0], null);
++++         * assert.strictEqual(subprocess.stdio[0], subprocess.stdin);
++++         *
++++         * assert(subprocess.stdout);
++++         * assert.strictEqual(subprocess.stdio[1], subprocess.stdout);
++++         *
++++         * assert.strictEqual(subprocess.stdio[2], null);
++++         * assert.strictEqual(subprocess.stdio[2], subprocess.stderr);
++++         * ```
++++         *
++++         * The `subprocess.stdio` property can be `undefined` if the child process could
++++         * not be successfully spawned.
++++         * @since v0.7.10
++++         */
++++        readonly stdio: [
++++            Writable | null,
++++            // stdin
++++            Readable | null,
++++            // stdout
++++            Readable | null,
++++            // stderr
++++            Readable | Writable | null | undefined,
++++            // extra
++++            Readable | Writable | null | undefined, // extra
++++        ];
++++        /**
++++         * The `subprocess.killed` property indicates whether the child process
++++         * successfully received a signal from `subprocess.kill()`. The `killed` property
++++         * does not indicate that the child process has been terminated.
++++         * @since v0.5.10
++++         */
++++        readonly killed: boolean;
++++        /**
++++         * Returns the process identifier (PID) of the child process. If the child process
++++         * fails to spawn due to errors, then the value is `undefined` and `error` is
++++         * emitted.
++++         *
++++         * ```js
++++         * import { spawn } from 'node:child_process';
++++         * const grep = spawn('grep', ['ssh']);
++++         *
++++         * console.log(`Spawned child pid: ${grep.pid}`);
++++         * grep.stdin.end();
++++         * ```
++++         * @since v0.1.90
++++         */
++++        readonly pid?: number | undefined;
++++        /**
++++         * The `subprocess.connected` property indicates whether it is still possible to
++++         * send and receive messages from a child process. When `subprocess.connected` is `false`, it is no longer possible to send or receive messages.
++++         * @since v0.7.2
++++         */
++++        readonly connected: boolean;
++++        /**
++++         * The `subprocess.exitCode` property indicates the exit code of the child process.
++++         * If the child process is still running, the field will be `null`.
++++         */
++++        readonly exitCode: number | null;
++++        /**
++++         * The `subprocess.signalCode` property indicates the signal received by
++++         * the child process if any, else `null`.
++++         */
++++        readonly signalCode: NodeJS.Signals | null;
++++        /**
++++         * The `subprocess.spawnargs` property represents the full list of command-line
++++         * arguments the child process was launched with.
++++         */
++++        readonly spawnargs: string[];
++++        /**
++++         * The `subprocess.spawnfile` property indicates the executable file name of
++++         * the child process that is launched.
++++         *
++++         * For {@link fork}, its value will be equal to `process.execPath`.
++++         * For {@link spawn}, its value will be the name of
++++         * the executable file.
++++         * For {@link exec},  its value will be the name of the shell
++++         * in which the child process is launched.
++++         */
++++        readonly spawnfile: string;
++++        /**
++++         * The `subprocess.kill()` method sends a signal to the child process. If no
++++         * argument is given, the process will be sent the `'SIGTERM'` signal. See [`signal(7)`](http://man7.org/linux/man-pages/man7/signal.7.html) for a list of available signals. This function
++++         * returns `true` if [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) succeeds, and `false` otherwise.
++++         *
++++         * ```js
++++         * import { spawn } from 'node:child_process';
++++         * const grep = spawn('grep', ['ssh']);
++++         *
++++         * grep.on('close', (code, signal) => {
++++         *   console.log(
++++         *     `child process terminated due to receipt of signal ${signal}`);
++++         * });
++++         *
++++         * // Send SIGHUP to process.
++++         * grep.kill('SIGHUP');
++++         * ```
++++         *
++++         * The `ChildProcess` object may emit an `'error'` event if the signal
++++         * cannot be delivered. Sending a signal to a child process that has already exited
++++         * is not an error but may have unforeseen consequences. Specifically, if the
++++         * process identifier (PID) has been reassigned to another process, the signal will
++++         * be delivered to that process instead which can have unexpected results.
++++         *
++++         * While the function is called `kill`, the signal delivered to the child process
++++         * may not actually terminate the process.
++++         *
++++         * See [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for reference.
++++         *
++++         * On Windows, where POSIX signals do not exist, the `signal` argument will be
++++         * ignored, and the process will be killed forcefully and abruptly (similar to `'SIGKILL'`).
++++         * See `Signal Events` for more details.
++++         *
++++         * On Linux, child processes of child processes will not be terminated
++++         * when attempting to kill their parent. This is likely to happen when running a
++++         * new process in a shell or with the use of the `shell` option of `ChildProcess`:
++++         *
++++         * ```js
++++         * 'use strict';
++++         * import { spawn } from 'node:child_process';
++++         *
++++         * const subprocess = spawn(
++++         *   'sh',
++++         *   [
++++         *     '-c',
++++         *     `node -e "setInterval(() => {
++++         *       console.log(process.pid, 'is alive')
++++         *     }, 500);"`,
++++         *   ], {
++++         *     stdio: ['inherit', 'inherit', 'inherit'],
++++         *   },
++++         * );
++++         *
++++         * setTimeout(() => {
++++         *   subprocess.kill(); // Does not terminate the Node.js process in the shell.
++++         * }, 2000);
++++         * ```
++++         * @since v0.1.90
++++         */
++++        kill(signal?: NodeJS.Signals | number): boolean;
++++        /**
++++         * Calls {@link ChildProcess.kill} with `'SIGTERM'`.
++++         * @since v20.5.0
++++         */
++++        [Symbol.dispose](): void;
++++        /**
++++         * When an IPC channel has been established between the parent and child (
++++         * i.e. when using {@link fork}), the `subprocess.send()` method can
++++         * be used to send messages to the child process. When the child process is a
++++         * Node.js instance, these messages can be received via the `'message'` event.
++++         *
++++         * The message goes through serialization and parsing. The resulting
++++         * message might not be the same as what is originally sent.
++++         *
++++         * For example, in the parent script:
++++         *
++++         * ```js
++++         * import cp from 'node:child_process';
++++         * const n = cp.fork(`${__dirname}/sub.js`);
++++         *
++++         * n.on('message', (m) => {
++++         *   console.log('PARENT got message:', m);
++++         * });
++++         *
++++         * // Causes the child to print: CHILD got message: { hello: 'world' }
++++         * n.send({ hello: 'world' });
++++         * ```
++++         *
++++         * And then the child script, `'sub.js'` might look like this:
++++         *
++++         * ```js
++++         * process.on('message', (m) => {
++++         *   console.log('CHILD got message:', m);
++++         * });
++++         *
++++         * // Causes the parent to print: PARENT got message: { foo: 'bar', baz: null }
++++         * process.send({ foo: 'bar', baz: NaN });
++++         * ```
++++         *
++++         * Child Node.js processes will have a `process.send()` method of their own
++++         * that allows the child to send messages back to the parent.
++++         *
++++         * There is a special case when sending a `{cmd: 'NODE_foo'}` message. Messages
++++         * containing a `NODE_` prefix in the `cmd` property are reserved for use within
++++         * Node.js core and will not be emitted in the child's `'message'` event. Rather, such messages are emitted using the `'internalMessage'` event and are consumed internally by Node.js.
++++         * Applications should avoid using such messages or listening for `'internalMessage'` events as it is subject to change without notice.
++++         *
++++         * The optional `sendHandle` argument that may be passed to `subprocess.send()` is
++++         * for passing a TCP server or socket object to the child process. The child will
++++         * receive the object as the second argument passed to the callback function
++++         * registered on the `'message'` event. Any data that is received and buffered in
++++         * the socket will not be sent to the child. Sending IPC sockets is not supported on Windows.
++++         *
++++         * The optional `callback` is a function that is invoked after the message is
++++         * sent but before the child may have received it. The function is called with a
++++         * single argument: `null` on success, or an `Error` object on failure.
++++         *
++++         * If no `callback` function is provided and the message cannot be sent, an `'error'` event will be emitted by the `ChildProcess` object. This can
++++         * happen, for instance, when the child process has already exited.
++++         *
++++         * `subprocess.send()` will return `false` if the channel has closed or when the
++++         * backlog of unsent messages exceeds a threshold that makes it unwise to send
++++         * more. Otherwise, the method returns `true`. The `callback` function can be
++++         * used to implement flow control.
++++         *
++++         * #### Example: sending a server object
++++         *
++++         * The `sendHandle` argument can be used, for instance, to pass the handle of
++++         * a TCP server object to the child process as illustrated in the example below:
++++         *
++++         * ```js
++++         * import child_process from 'node:child_process';
++++         * const subprocess = child_process.fork('subprocess.js');
++++         *
++++         * // Open up the server object and send the handle.
++++         * import net from 'node:net';
++++         * const server = net.createServer();
++++         * server.on('connection', (socket) => {
++++         *   socket.end('handled by parent');
++++         * });
++++         * server.listen(1337, () => {
++++         *   subprocess.send('server', server);
++++         * });
++++         * ```
++++         *
++++         * The child would then receive the server object as:
++++         *
++++         * ```js
++++         * process.on('message', (m, server) => {
++++         *   if (m === 'server') {
++++         *     server.on('connection', (socket) => {
++++         *       socket.end('handled by child');
++++         *     });
++++         *   }
++++         * });
++++         * ```
++++         *
++++         * Once the server is now shared between the parent and child, some connections
++++         * can be handled by the parent and some by the child.
++++         *
++++         * While the example above uses a server created using the `node:net` module, `node:dgram` module servers use exactly the same workflow with the exceptions of
++++         * listening on a `'message'` event instead of `'connection'` and using `server.bind()` instead of `server.listen()`. This is, however, only
++++         * supported on Unix platforms.
++++         *
++++         * #### Example: sending a socket object
++++         *
++++         * Similarly, the `sendHandler` argument can be used to pass the handle of a
++++         * socket to the child process. The example below spawns two children that each
++++         * handle connections with "normal" or "special" priority:
++++         *
++++         * ```js
++++         * import { fork } from 'node:child_process';
++++         * const normal = fork('subprocess.js', ['normal']);
++++         * const special = fork('subprocess.js', ['special']);
++++         *
++++         * // Open up the server and send sockets to child. Use pauseOnConnect to prevent
++++         * // the sockets from being read before they are sent to the child process.
++++         * import net from 'node:net';
++++         * const server = net.createServer({ pauseOnConnect: true });
++++         * server.on('connection', (socket) => {
++++         *
++++         *   // If this is special priority...
++++         *   if (socket.remoteAddress === '74.125.127.100') {
++++         *     special.send('socket', socket);
++++         *     return;
++++         *   }
++++         *   // This is normal priority.
++++         *   normal.send('socket', socket);
++++         * });
++++         * server.listen(1337);
++++         * ```
++++         *
++++         * The `subprocess.js` would receive the socket handle as the second argument
++++         * passed to the event callback function:
++++         *
++++         * ```js
++++         * process.on('message', (m, socket) => {
++++         *   if (m === 'socket') {
++++         *     if (socket) {
++++         *       // Check that the client socket exists.
++++         *       // It is possible for the socket to be closed between the time it is
++++         *       // sent and the time it is received in the child process.
++++         *       socket.end(`Request handled with ${process.argv[2]} priority`);
++++         *     }
++++         *   }
++++         * });
++++         * ```
++++         *
++++         * Do not use `.maxConnections` on a socket that has been passed to a subprocess.
++++         * The parent cannot track when the socket is destroyed.
++++         *
++++         * Any `'message'` handlers in the subprocess should verify that `socket` exists,
++++         * as the connection may have been closed during the time it takes to send the
++++         * connection to the child.
++++         * @since v0.5.9
++++         * @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-v20.x/api/net.html#class-netsocket), [`net.Server`](https://nodejs.org/docs/latest-v20.x/api/net.html#class-netserver), or [`dgram.Socket`](https://nodejs.org/docs/latest-v20.x/api/dgram.html#class-dgramsocket) object.
++++         * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties:
++++         */
++++        send(message: Serializable, callback?: (error: Error | null) => void): boolean;
++++        send(message: Serializable, sendHandle?: SendHandle, callback?: (error: Error | null) => void): boolean;
++++        send(
++++            message: Serializable,
++++            sendHandle?: SendHandle,
++++            options?: MessageOptions,
++++            callback?: (error: Error | null) => void,
++++        ): boolean;
++++        /**
++++         * Closes the IPC channel between parent and child, allowing the child to exit
++++         * gracefully once there are no other connections keeping it alive. After calling
++++         * this method the `subprocess.connected` and `process.connected` properties in
++++         * both the parent and child (respectively) will be set to `false`, and it will be
++++         * no longer possible to pass messages between the processes.
++++         *
++++         * The `'disconnect'` event will be emitted when there are no messages in the
++++         * process of being received. This will most often be triggered immediately after
++++         * calling `subprocess.disconnect()`.
++++         *
++++         * When the child process is a Node.js instance (e.g. spawned using {@link fork}), the `process.disconnect()` method can be invoked
++++         * within the child process to close the IPC channel as well.
++++         * @since v0.7.2
++++         */
++++        disconnect(): void;
++++        /**
++++         * By default, the parent will wait for the detached child to exit. To prevent the
++++         * parent from waiting for a given `subprocess` to exit, use the `subprocess.unref()` method. Doing so will cause the parent's event loop to not
++++         * include the child in its reference count, allowing the parent to exit
++++         * independently of the child, unless there is an established IPC channel between
++++         * the child and the parent.
++++         *
++++         * ```js
++++         * import { spawn } from 'node:child_process';
++++         *
++++         * const subprocess = spawn(process.argv[0], ['child_program.js'], {
++++         *   detached: true,
++++         *   stdio: 'ignore',
++++         * });
++++         *
++++         * subprocess.unref();
++++         * ```
++++         * @since v0.7.10
++++         */
++++        unref(): void;
++++        /**
++++         * Calling `subprocess.ref()` after making a call to `subprocess.unref()` will
++++         * restore the removed reference count for the child process, forcing the parent
++++         * to wait for the child to exit before exiting itself.
++++         *
++++         * ```js
++++         * import { spawn } from 'node:child_process';
++++         *
++++         * const subprocess = spawn(process.argv[0], ['child_program.js'], {
++++         *   detached: true,
++++         *   stdio: 'ignore',
++++         * });
++++         *
++++         * subprocess.unref();
++++         * subprocess.ref();
++++         * ```
++++         * @since v0.7.10
++++         */
++++        ref(): void;
++++        /**
++++         * events.EventEmitter
++++         * 1. close
++++         * 2. disconnect
++++         * 3. error
++++         * 4. exit
++++         * 5. message
++++         * 6. spawn
++++         */
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        addListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
++++        addListener(event: "disconnect", listener: () => void): this;
++++        addListener(event: "error", listener: (err: Error) => void): this;
++++        addListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
++++        addListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
++++        addListener(event: "spawn", listener: () => void): this;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        emit(event: "close", code: number | null, signal: NodeJS.Signals | null): boolean;
++++        emit(event: "disconnect"): boolean;
++++        emit(event: "error", err: Error): boolean;
++++        emit(event: "exit", code: number | null, signal: NodeJS.Signals | null): boolean;
++++        emit(event: "message", message: Serializable, sendHandle: SendHandle): boolean;
++++        emit(event: "spawn", listener: () => void): boolean;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        on(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
++++        on(event: "disconnect", listener: () => void): this;
++++        on(event: "error", listener: (err: Error) => void): this;
++++        on(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
++++        on(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
++++        on(event: "spawn", listener: () => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        once(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
++++        once(event: "disconnect", listener: () => void): this;
++++        once(event: "error", listener: (err: Error) => void): this;
++++        once(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
++++        once(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
++++        once(event: "spawn", listener: () => void): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        prependListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
++++        prependListener(event: "disconnect", listener: () => void): this;
++++        prependListener(event: "error", listener: (err: Error) => void): this;
++++        prependListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
++++        prependListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
++++        prependListener(event: "spawn", listener: () => void): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++        prependOnceListener(
++++            event: "close",
++++            listener: (code: number | null, signal: NodeJS.Signals | null) => void,
++++        ): this;
++++        prependOnceListener(event: "disconnect", listener: () => void): this;
++++        prependOnceListener(event: "error", listener: (err: Error) => void): this;
++++        prependOnceListener(
++++            event: "exit",
++++            listener: (code: number | null, signal: NodeJS.Signals | null) => void,
++++        ): this;
++++        prependOnceListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
++++        prependOnceListener(event: "spawn", listener: () => void): this;
++++    }
++++    // return this object when stdio option is undefined or not specified
++++    interface ChildProcessWithoutNullStreams extends ChildProcess {
++++        stdin: Writable;
++++        stdout: Readable;
++++        stderr: Readable;
++++        readonly stdio: [
++++            Writable,
++++            Readable,
++++            Readable,
++++            // stderr
++++            Readable | Writable | null | undefined,
++++            // extra, no modification
++++            Readable | Writable | null | undefined, // extra, no modification
++++        ];
++++    }
++++    // return this object when stdio option is a tuple of 3
++++    interface ChildProcessByStdio<I extends null | Writable, O extends null | Readable, E extends null | Readable>
++++        extends ChildProcess
++++    {
++++        stdin: I;
++++        stdout: O;
++++        stderr: E;
++++        readonly stdio: [
++++            I,
++++            O,
++++            E,
++++            Readable | Writable | null | undefined,
++++            // extra, no modification
++++            Readable | Writable | null | undefined, // extra, no modification
++++        ];
++++    }
++++    interface MessageOptions {
++++        keepOpen?: boolean | undefined;
++++    }
++++    type IOType = "overlapped" | "pipe" | "ignore" | "inherit";
++++    type StdioOptions = IOType | Array<IOType | "ipc" | Stream | number | null | undefined>;
++++    type SerializationType = "json" | "advanced";
++++    interface MessagingOptions extends Abortable {
++++        /**
++++         * Specify the kind of serialization used for sending messages between processes.
++++         * @default 'json'
++++         */
++++        serialization?: SerializationType | undefined;
++++        /**
++++         * The signal value to be used when the spawned process will be killed by the abort signal.
++++         * @default 'SIGTERM'
++++         */
++++        killSignal?: NodeJS.Signals | number | undefined;
++++        /**
++++         * In milliseconds the maximum amount of time the process is allowed to run.
++++         */
++++        timeout?: number | undefined;
++++    }
++++    interface ProcessEnvOptions {
++++        uid?: number | undefined;
++++        gid?: number | undefined;
++++        cwd?: string | URL | undefined;
++++        env?: NodeJS.ProcessEnv | undefined;
++++    }
++++    interface CommonOptions extends ProcessEnvOptions {
++++        /**
++++         * @default false
++++         */
++++        windowsHide?: boolean | undefined;
++++        /**
++++         * @default 0
++++         */
++++        timeout?: number | undefined;
++++    }
++++    interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable {
++++        argv0?: string | undefined;
++++        /**
++++         * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
++++         * If passed as an array, the first element is used for `stdin`, the second for
++++         * `stdout`, and the third for `stderr`. A fourth element can be used to
++++         * specify the `stdio` behavior beyond the standard streams. See
++++         * {@link ChildProcess.stdio} for more information.
++++         *
++++         * @default 'pipe'
++++         */
++++        stdio?: StdioOptions | undefined;
++++        shell?: boolean | string | undefined;
++++        windowsVerbatimArguments?: boolean | undefined;
++++    }
++++    interface SpawnOptions extends CommonSpawnOptions {
++++        detached?: boolean | undefined;
++++    }
++++    interface SpawnOptionsWithoutStdio extends SpawnOptions {
++++        stdio?: StdioPipeNamed | StdioPipe[] | undefined;
++++    }
++++    type StdioNull = "inherit" | "ignore" | Stream;
++++    type StdioPipeNamed = "pipe" | "overlapped";
++++    type StdioPipe = undefined | null | StdioPipeNamed;
++++    interface SpawnOptionsWithStdioTuple<
++++        Stdin extends StdioNull | StdioPipe,
++++        Stdout extends StdioNull | StdioPipe,
++++        Stderr extends StdioNull | StdioPipe,
++++    > extends SpawnOptions {
++++        stdio: [Stdin, Stdout, Stderr];
++++    }
++++    /**
++++     * The `child_process.spawn()` method spawns a new process using the given `command`, with command-line arguments in `args`. If omitted, `args` defaults
++++     * to an empty array.
++++     *
++++     * **If the `shell` option is enabled, do not pass unsanitized user input to this**
++++     * **function. Any input containing shell metacharacters may be used to trigger**
++++     * **arbitrary command execution.**
++++     *
++++     * A third argument may be used to specify additional options, with these defaults:
++++     *
++++     * ```js
++++     * const defaults = {
++++     *   cwd: undefined,
++++     *   env: process.env,
++++     * };
++++     * ```
++++     *
++++     * Use `cwd` to specify the working directory from which the process is spawned.
++++     * If not given, the default is to inherit the current working directory. If given,
++++     * but the path does not exist, the child process emits an `ENOENT` error
++++     * and exits immediately. `ENOENT` is also emitted when the command
++++     * does not exist.
++++     *
++++     * Use `env` to specify environment variables that will be visible to the new
++++     * process, the default is `process.env`.
++++     *
++++     * `undefined` values in `env` will be ignored.
++++     *
++++     * Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the
++++     * exit code:
++++     *
++++     * ```js
++++     * import { spawn } from 'node:child_process';
++++     * const ls = spawn('ls', ['-lh', '/usr']);
++++     *
++++     * ls.stdout.on('data', (data) => {
++++     *   console.log(`stdout: ${data}`);
++++     * });
++++     *
++++     * ls.stderr.on('data', (data) => {
++++     *   console.error(`stderr: ${data}`);
++++     * });
++++     *
++++     * ls.on('close', (code) => {
++++     *   console.log(`child process exited with code ${code}`);
++++     * });
++++     * ```
++++     *
++++     * Example: A very elaborate way to run `ps ax | grep ssh`
++++     *
++++     * ```js
++++     * import { spawn } from 'node:child_process';
++++     * const ps = spawn('ps', ['ax']);
++++     * const grep = spawn('grep', ['ssh']);
++++     *
++++     * ps.stdout.on('data', (data) => {
++++     *   grep.stdin.write(data);
++++     * });
++++     *
++++     * ps.stderr.on('data', (data) => {
++++     *   console.error(`ps stderr: ${data}`);
++++     * });
++++     *
++++     * ps.on('close', (code) => {
++++     *   if (code !== 0) {
++++     *     console.log(`ps process exited with code ${code}`);
++++     *   }
++++     *   grep.stdin.end();
++++     * });
++++     *
++++     * grep.stdout.on('data', (data) => {
++++     *   console.log(data.toString());
++++     * });
++++     *
++++     * grep.stderr.on('data', (data) => {
++++     *   console.error(`grep stderr: ${data}`);
++++     * });
++++     *
++++     * grep.on('close', (code) => {
++++     *   if (code !== 0) {
++++     *     console.log(`grep process exited with code ${code}`);
++++     *   }
++++     * });
++++     * ```
++++     *
++++     * Example of checking for failed `spawn`:
++++     *
++++     * ```js
++++     * import { spawn } from 'node:child_process';
++++     * const subprocess = spawn('bad_command');
++++     *
++++     * subprocess.on('error', (err) => {
++++     *   console.error('Failed to start subprocess.');
++++     * });
++++     * ```
++++     *
++++     * Certain platforms (macOS, Linux) will use the value of `argv[0]` for the process
++++     * title while others (Windows, SunOS) will use `command`.
++++     *
++++     * Node.js overwrites `argv[0]` with `process.execPath` on startup, so `process.argv[0]` in a Node.js child process will not match the `argv0` parameter passed to `spawn` from the parent. Retrieve
++++     * it with the `process.argv0` property instead.
++++     *
++++     * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except
++++     * the error passed to the callback will be an `AbortError`:
++++     *
++++     * ```js
++++     * import { spawn } from 'node:child_process';
++++     * const controller = new AbortController();
++++     * const { signal } = controller;
++++     * const grep = spawn('grep', ['ssh'], { signal });
++++     * grep.on('error', (err) => {
++++     *   // This will be called with err being an AbortError if the controller aborts
++++     * });
++++     * controller.abort(); // Stops the child process
++++     * ```
++++     * @since v0.1.90
++++     * @param command The command to run.
++++     * @param args List of string arguments.
++++     */
++++    function spawn(command: string, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams;
++++    function spawn(
++++        command: string,
++++        options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>,
++++    ): ChildProcessByStdio<Writable, Readable, Readable>;
++++    function spawn(
++++        command: string,
++++        options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>,
++++    ): ChildProcessByStdio<Writable, Readable, null>;
++++    function spawn(
++++        command: string,
++++        options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>,
++++    ): ChildProcessByStdio<Writable, null, Readable>;
++++    function spawn(
++++        command: string,
++++        options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>,
++++    ): ChildProcessByStdio<null, Readable, Readable>;
++++    function spawn(
++++        command: string,
++++        options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>,
++++    ): ChildProcessByStdio<Writable, null, null>;
++++    function spawn(
++++        command: string,
++++        options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>,
++++    ): ChildProcessByStdio<null, Readable, null>;
++++    function spawn(
++++        command: string,
++++        options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>,
++++    ): ChildProcessByStdio<null, null, Readable>;
++++    function spawn(
++++        command: string,
++++        options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>,
++++    ): ChildProcessByStdio<null, null, null>;
++++    function spawn(command: string, options: SpawnOptions): ChildProcess;
++++    // overloads of spawn with 'args'
++++    function spawn(
++++        command: string,
++++        args?: readonly string[],
++++        options?: SpawnOptionsWithoutStdio,
++++    ): ChildProcessWithoutNullStreams;
++++    function spawn(
++++        command: string,
++++        args: readonly string[],
++++        options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>,
++++    ): ChildProcessByStdio<Writable, Readable, Readable>;
++++    function spawn(
++++        command: string,
++++        args: readonly string[],
++++        options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>,
++++    ): ChildProcessByStdio<Writable, Readable, null>;
++++    function spawn(
++++        command: string,
++++        args: readonly string[],
++++        options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>,
++++    ): ChildProcessByStdio<Writable, null, Readable>;
++++    function spawn(
++++        command: string,
++++        args: readonly string[],
++++        options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>,
++++    ): ChildProcessByStdio<null, Readable, Readable>;
++++    function spawn(
++++        command: string,
++++        args: readonly string[],
++++        options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>,
++++    ): ChildProcessByStdio<Writable, null, null>;
++++    function spawn(
++++        command: string,
++++        args: readonly string[],
++++        options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>,
++++    ): ChildProcessByStdio<null, Readable, null>;
++++    function spawn(
++++        command: string,
++++        args: readonly string[],
++++        options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>,
++++    ): ChildProcessByStdio<null, null, Readable>;
++++    function spawn(
++++        command: string,
++++        args: readonly string[],
++++        options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>,
++++    ): ChildProcessByStdio<null, null, null>;
++++    function spawn(command: string, args: readonly string[], options: SpawnOptions): ChildProcess;
++++    interface ExecOptions extends CommonOptions {
++++        shell?: string | undefined;
++++        signal?: AbortSignal | undefined;
++++        maxBuffer?: number | undefined;
++++        killSignal?: NodeJS.Signals | number | undefined;
++++    }
++++    interface ExecOptionsWithStringEncoding extends ExecOptions {
++++        encoding: BufferEncoding;
++++    }
++++    interface ExecOptionsWithBufferEncoding extends ExecOptions {
++++        encoding: BufferEncoding | null; // specify `null`.
++++    }
++++    interface ExecException extends Error {
++++        cmd?: string | undefined;
++++        killed?: boolean | undefined;
++++        code?: number | undefined;
++++        signal?: NodeJS.Signals | undefined;
++++        stdout?: string;
++++        stderr?: string;
++++    }
++++    /**
++++     * Spawns a shell then executes the `command` within that shell, buffering any
++++     * generated output. The `command` string passed to the exec function is processed
++++     * directly by the shell and special characters (vary based on [shell](https://en.wikipedia.org/wiki/List_of_command-line_interpreters))
++++     * need to be dealt with accordingly:
++++     *
++++     * ```js
++++     * import { exec } from 'node:child_process';
++++     *
++++     * exec('"/path/to/test file/test.sh" arg1 arg2');
++++     * // Double quotes are used so that the space in the path is not interpreted as
++++     * // a delimiter of multiple arguments.
++++     *
++++     * exec('echo "The \\$HOME variable is $HOME"');
++++     * // The $HOME variable is escaped in the first instance, but not in the second.
++++     * ```
++++     *
++++     * **Never pass unsanitized user input to this function. Any input containing shell**
++++     * **metacharacters may be used to trigger arbitrary command execution.**
++++     *
++++     * If a `callback` function is provided, it is called with the arguments `(error, stdout, stderr)`. On success, `error` will be `null`. On error, `error` will be an instance of `Error`. The
++++     * `error.code` property will be
++++     * the exit code of the process. By convention, any exit code other than `0` indicates an error. `error.signal` will be the signal that terminated the
++++     * process.
++++     *
++++     * The `stdout` and `stderr` arguments passed to the callback will contain the
++++     * stdout and stderr output of the child process. By default, Node.js will decode
++++     * the output as UTF-8 and pass strings to the callback. The `encoding` option
++++     * can be used to specify the character encoding used to decode the stdout and
++++     * stderr output. If `encoding` is `'buffer'`, or an unrecognized character
++++     * encoding, `Buffer` objects will be passed to the callback instead.
++++     *
++++     * ```js
++++     * import { exec } from 'node:child_process';
++++     * exec('cat *.js missing_file | wc -l', (error, stdout, stderr) => {
++++     *   if (error) {
++++     *     console.error(`exec error: ${error}`);
++++     *     return;
++++     *   }
++++     *   console.log(`stdout: ${stdout}`);
++++     *   console.error(`stderr: ${stderr}`);
++++     * });
++++     * ```
++++     *
++++     * If `timeout` is greater than `0`, the parent will send the signal
++++     * identified by the `killSignal` property (the default is `'SIGTERM'`) if the
++++     * child runs longer than `timeout` milliseconds.
++++     *
++++     * Unlike the [`exec(3)`](http://man7.org/linux/man-pages/man3/exec.3.html) POSIX system call, `child_process.exec()` does not replace
++++     * the existing process and uses a shell to execute the command.
++++     *
++++     * If this method is invoked as its `util.promisify()` ed version, it returns
++++     * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned `ChildProcess` instance is attached to the `Promise` as a `child` property. In
++++     * case of an error (including any error resulting in an exit code other than 0), a
++++     * rejected promise is returned, with the same `error` object given in the
++++     * callback, but with two additional properties `stdout` and `stderr`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     * import child_process from 'node:child_process';
++++     * const exec = util.promisify(child_process.exec);
++++     *
++++     * async function lsExample() {
++++     *   const { stdout, stderr } = await exec('ls');
++++     *   console.log('stdout:', stdout);
++++     *   console.error('stderr:', stderr);
++++     * }
++++     * lsExample();
++++     * ```
++++     *
++++     * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except
++++     * the error passed to the callback will be an `AbortError`:
++++     *
++++     * ```js
++++     * import { exec } from 'node:child_process';
++++     * const controller = new AbortController();
++++     * const { signal } = controller;
++++     * const child = exec('grep ssh', { signal }, (error) => {
++++     *   console.error(error); // an AbortError
++++     * });
++++     * controller.abort();
++++     * ```
++++     * @since v0.1.90
++++     * @param command The command to run, with space-separated arguments.
++++     * @param callback called with the output when process terminates.
++++     */
++++    function exec(
++++        command: string,
++++        callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
++++    ): ChildProcess;
++++    // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
++++    function exec(
++++        command: string,
++++        options: {
++++            encoding: "buffer" | null;
++++        } & ExecOptions,
++++        callback?: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void,
++++    ): ChildProcess;
++++    // `options` with well known `encoding` means stdout/stderr are definitely `string`.
++++    function exec(
++++        command: string,
++++        options: {
++++            encoding: BufferEncoding;
++++        } & ExecOptions,
++++        callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
++++    ): ChildProcess;
++++    // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
++++    // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
++++    function exec(
++++        command: string,
++++        options: {
++++            encoding: BufferEncoding;
++++        } & ExecOptions,
++++        callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
++++    ): ChildProcess;
++++    // `options` without an `encoding` means stdout/stderr are definitely `string`.
++++    function exec(
++++        command: string,
++++        options: ExecOptions,
++++        callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
++++    ): ChildProcess;
++++    // fallback if nothing else matches. Worst case is always `string | Buffer`.
++++    function exec(
++++        command: string,
++++        options: (ObjectEncodingOptions & ExecOptions) | undefined | null,
++++        callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
++++    ): ChildProcess;
++++    interface PromiseWithChild<T> extends Promise<T> {
++++        child: ChildProcess;
++++    }
++++    namespace exec {
++++        function __promisify__(command: string): PromiseWithChild<{
++++            stdout: string;
++++            stderr: string;
++++        }>;
++++        function __promisify__(
++++            command: string,
++++            options: {
++++                encoding: "buffer" | null;
++++            } & ExecOptions,
++++        ): PromiseWithChild<{
++++            stdout: Buffer;
++++            stderr: Buffer;
++++        }>;
++++        function __promisify__(
++++            command: string,
++++            options: {
++++                encoding: BufferEncoding;
++++            } & ExecOptions,
++++        ): PromiseWithChild<{
++++            stdout: string;
++++            stderr: string;
++++        }>;
++++        function __promisify__(
++++            command: string,
++++            options: ExecOptions,
++++        ): PromiseWithChild<{
++++            stdout: string;
++++            stderr: string;
++++        }>;
++++        function __promisify__(
++++            command: string,
++++            options?: (ObjectEncodingOptions & ExecOptions) | null,
++++        ): PromiseWithChild<{
++++            stdout: string | Buffer;
++++            stderr: string | Buffer;
++++        }>;
++++    }
++++    interface ExecFileOptions extends CommonOptions, Abortable {
++++        maxBuffer?: number | undefined;
++++        killSignal?: NodeJS.Signals | number | undefined;
++++        windowsVerbatimArguments?: boolean | undefined;
++++        shell?: boolean | string | undefined;
++++        signal?: AbortSignal | undefined;
++++    }
++++    interface ExecFileOptionsWithStringEncoding extends ExecFileOptions {
++++        encoding: BufferEncoding;
++++    }
++++    interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions {
++++        encoding: "buffer" | null;
++++    }
++++    interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
++++        encoding: BufferEncoding;
++++    }
++++    type ExecFileException =
++++        & Omit<ExecException, "code">
++++        & Omit<NodeJS.ErrnoException, "code">
++++        & { code?: string | number | undefined | null };
++++    /**
++++     * The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified
++++     * executable `file` is spawned directly as a new process making it slightly more
++++     * efficient than {@link exec}.
++++     *
++++     * The same options as {@link exec} are supported. Since a shell is
++++     * not spawned, behaviors such as I/O redirection and file globbing are not
++++     * supported.
++++     *
++++     * ```js
++++     * import { execFile } from 'node:child_process';
++++     * const child = execFile('node', ['--version'], (error, stdout, stderr) => {
++++     *   if (error) {
++++     *     throw error;
++++     *   }
++++     *   console.log(stdout);
++++     * });
++++     * ```
++++     *
++++     * The `stdout` and `stderr` arguments passed to the callback will contain the
++++     * stdout and stderr output of the child process. By default, Node.js will decode
++++     * the output as UTF-8 and pass strings to the callback. The `encoding` option
++++     * can be used to specify the character encoding used to decode the stdout and
++++     * stderr output. If `encoding` is `'buffer'`, or an unrecognized character
++++     * encoding, `Buffer` objects will be passed to the callback instead.
++++     *
++++     * If this method is invoked as its `util.promisify()` ed version, it returns
++++     * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned `ChildProcess` instance is attached to the `Promise` as a `child` property. In
++++     * case of an error (including any error resulting in an exit code other than 0), a
++++     * rejected promise is returned, with the same `error` object given in the
++++     * callback, but with two additional properties `stdout` and `stderr`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     * const execFile = util.promisify(require('node:child_process').execFile);
++++     * async function getVersion() {
++++     *   const { stdout } = await execFile('node', ['--version']);
++++     *   console.log(stdout);
++++     * }
++++     * getVersion();
++++     * ```
++++     *
++++     * **If the `shell` option is enabled, do not pass unsanitized user input to this**
++++     * **function. Any input containing shell metacharacters may be used to trigger**
++++     * **arbitrary command execution.**
++++     *
++++     * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except
++++     * the error passed to the callback will be an `AbortError`:
++++     *
++++     * ```js
++++     * import { execFile } from 'node:child_process';
++++     * const controller = new AbortController();
++++     * const { signal } = controller;
++++     * const child = execFile('node', ['--version'], { signal }, (error) => {
++++     *   console.error(error); // an AbortError
++++     * });
++++     * controller.abort();
++++     * ```
++++     * @since v0.1.91
++++     * @param file The name or path of the executable file to run.
++++     * @param args List of string arguments.
++++     * @param callback Called with the output when process terminates.
++++     */
++++    function execFile(file: string): ChildProcess;
++++    function execFile(
++++        file: string,
++++        options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
++++    ): ChildProcess;
++++    function execFile(file: string, args?: readonly string[] | null): ChildProcess;
++++    function execFile(
++++        file: string,
++++        args: readonly string[] | undefined | null,
++++        options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
++++    ): ChildProcess;
++++    // no `options` definitely means stdout/stderr are `string`.
++++    function execFile(
++++        file: string,
++++        callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
++++    ): ChildProcess;
++++    function execFile(
++++        file: string,
++++        args: readonly string[] | undefined | null,
++++        callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
++++    ): ChildProcess;
++++    // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
++++    function execFile(
++++        file: string,
++++        options: ExecFileOptionsWithBufferEncoding,
++++        callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void,
++++    ): ChildProcess;
++++    function execFile(
++++        file: string,
++++        args: readonly string[] | undefined | null,
++++        options: ExecFileOptionsWithBufferEncoding,
++++        callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void,
++++    ): ChildProcess;
++++    // `options` with well known `encoding` means stdout/stderr are definitely `string`.
++++    function execFile(
++++        file: string,
++++        options: ExecFileOptionsWithStringEncoding,
++++        callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
++++    ): ChildProcess;
++++    function execFile(
++++        file: string,
++++        args: readonly string[] | undefined | null,
++++        options: ExecFileOptionsWithStringEncoding,
++++        callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
++++    ): ChildProcess;
++++    // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
++++    // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
++++    function execFile(
++++        file: string,
++++        options: ExecFileOptionsWithOtherEncoding,
++++        callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
++++    ): ChildProcess;
++++    function execFile(
++++        file: string,
++++        args: readonly string[] | undefined | null,
++++        options: ExecFileOptionsWithOtherEncoding,
++++        callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
++++    ): ChildProcess;
++++    // `options` without an `encoding` means stdout/stderr are definitely `string`.
++++    function execFile(
++++        file: string,
++++        options: ExecFileOptions,
++++        callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
++++    ): ChildProcess;
++++    function execFile(
++++        file: string,
++++        args: readonly string[] | undefined | null,
++++        options: ExecFileOptions,
++++        callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
++++    ): ChildProcess;
++++    // fallback if nothing else matches. Worst case is always `string | Buffer`.
++++    function execFile(
++++        file: string,
++++        options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
++++        callback:
++++            | ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void)
++++            | undefined
++++            | null,
++++    ): ChildProcess;
++++    function execFile(
++++        file: string,
++++        args: readonly string[] | undefined | null,
++++        options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
++++        callback:
++++            | ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void)
++++            | undefined
++++            | null,
++++    ): ChildProcess;
++++    namespace execFile {
++++        function __promisify__(file: string): PromiseWithChild<{
++++            stdout: string;
++++            stderr: string;
++++        }>;
++++        function __promisify__(
++++            file: string,
++++            args: readonly string[] | undefined | null,
++++        ): PromiseWithChild<{
++++            stdout: string;
++++            stderr: string;
++++        }>;
++++        function __promisify__(
++++            file: string,
++++            options: ExecFileOptionsWithBufferEncoding,
++++        ): PromiseWithChild<{
++++            stdout: Buffer;
++++            stderr: Buffer;
++++        }>;
++++        function __promisify__(
++++            file: string,
++++            args: readonly string[] | undefined | null,
++++            options: ExecFileOptionsWithBufferEncoding,
++++        ): PromiseWithChild<{
++++            stdout: Buffer;
++++            stderr: Buffer;
++++        }>;
++++        function __promisify__(
++++            file: string,
++++            options: ExecFileOptionsWithStringEncoding,
++++        ): PromiseWithChild<{
++++            stdout: string;
++++            stderr: string;
++++        }>;
++++        function __promisify__(
++++            file: string,
++++            args: readonly string[] | undefined | null,
++++            options: ExecFileOptionsWithStringEncoding,
++++        ): PromiseWithChild<{
++++            stdout: string;
++++            stderr: string;
++++        }>;
++++        function __promisify__(
++++            file: string,
++++            options: ExecFileOptionsWithOtherEncoding,
++++        ): PromiseWithChild<{
++++            stdout: string | Buffer;
++++            stderr: string | Buffer;
++++        }>;
++++        function __promisify__(
++++            file: string,
++++            args: readonly string[] | undefined | null,
++++            options: ExecFileOptionsWithOtherEncoding,
++++        ): PromiseWithChild<{
++++            stdout: string | Buffer;
++++            stderr: string | Buffer;
++++        }>;
++++        function __promisify__(
++++            file: string,
++++            options: ExecFileOptions,
++++        ): PromiseWithChild<{
++++            stdout: string;
++++            stderr: string;
++++        }>;
++++        function __promisify__(
++++            file: string,
++++            args: readonly string[] | undefined | null,
++++            options: ExecFileOptions,
++++        ): PromiseWithChild<{
++++            stdout: string;
++++            stderr: string;
++++        }>;
++++        function __promisify__(
++++            file: string,
++++            options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
++++        ): PromiseWithChild<{
++++            stdout: string | Buffer;
++++            stderr: string | Buffer;
++++        }>;
++++        function __promisify__(
++++            file: string,
++++            args: readonly string[] | undefined | null,
++++            options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
++++        ): PromiseWithChild<{
++++            stdout: string | Buffer;
++++            stderr: string | Buffer;
++++        }>;
++++    }
++++    interface ForkOptions extends ProcessEnvOptions, MessagingOptions, Abortable {
++++        execPath?: string | undefined;
++++        execArgv?: string[] | undefined;
++++        silent?: boolean | undefined;
++++        /**
++++         * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
++++         * If passed as an array, the first element is used for `stdin`, the second for
++++         * `stdout`, and the third for `stderr`. A fourth element can be used to
++++         * specify the `stdio` behavior beyond the standard streams. See
++++         * {@link ChildProcess.stdio} for more information.
++++         *
++++         * @default 'pipe'
++++         */
++++        stdio?: StdioOptions | undefined;
++++        detached?: boolean | undefined;
++++        windowsVerbatimArguments?: boolean | undefined;
++++    }
++++    /**
++++     * The `child_process.fork()` method is a special case of {@link spawn} used specifically to spawn new Node.js processes.
++++     * Like {@link spawn}, a `ChildProcess` object is returned. The
++++     * returned `ChildProcess` will have an additional communication channel
++++     * built-in that allows messages to be passed back and forth between the parent and
++++     * child. See `subprocess.send()` for details.
++++     *
++++     * Keep in mind that spawned Node.js child processes are
++++     * independent of the parent with exception of the IPC communication channel
++++     * that is established between the two. Each process has its own memory, with
++++     * their own V8 instances. Because of the additional resource allocations
++++     * required, spawning a large number of child Node.js processes is not
++++     * recommended.
++++     *
++++     * By default, `child_process.fork()` will spawn new Node.js instances using the `process.execPath` of the parent process. The `execPath` property in the `options` object allows for an alternative
++++     * execution path to be used.
++++     *
++++     * Node.js processes launched with a custom `execPath` will communicate with the
++++     * parent process using the file descriptor (fd) identified using the
++++     * environment variable `NODE_CHANNEL_FD` on the child process.
++++     *
++++     * Unlike the [`fork(2)`](http://man7.org/linux/man-pages/man2/fork.2.html) POSIX system call, `child_process.fork()` does not clone the
++++     * current process.
++++     *
++++     * The `shell` option available in {@link spawn} is not supported by `child_process.fork()` and will be ignored if set.
++++     *
++++     * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except
++++     * the error passed to the callback will be an `AbortError`:
++++     *
++++     * ```js
++++     * if (process.argv[2] === 'child') {
++++     *   setTimeout(() => {
++++     *     console.log(`Hello from ${process.argv[2]}!`);
++++     *   }, 1_000);
++++     * } else {
++++     *   import { fork } from 'node:child_process';
++++     *   const controller = new AbortController();
++++     *   const { signal } = controller;
++++     *   const child = fork(__filename, ['child'], { signal });
++++     *   child.on('error', (err) => {
++++     *     // This will be called with err being an AbortError if the controller aborts
++++     *   });
++++     *   controller.abort(); // Stops the child process
++++     * }
++++     * ```
++++     * @since v0.5.0
++++     * @param modulePath The module to run in the child.
++++     * @param args List of string arguments.
++++     */
++++    function fork(modulePath: string | URL, options?: ForkOptions): ChildProcess;
++++    function fork(modulePath: string | URL, args?: readonly string[], options?: ForkOptions): ChildProcess;
++++    interface SpawnSyncOptions extends CommonSpawnOptions {
++++        input?: string | NodeJS.ArrayBufferView | undefined;
++++        maxBuffer?: number | undefined;
++++        encoding?: BufferEncoding | "buffer" | null | undefined;
++++    }
++++    interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions {
++++        encoding: BufferEncoding;
++++    }
++++    interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions {
++++        encoding?: "buffer" | null | undefined;
++++    }
++++    interface SpawnSyncReturns<T> {
++++        pid: number;
++++        output: Array<T | null>;
++++        stdout: T;
++++        stderr: T;
++++        status: number | null;
++++        signal: NodeJS.Signals | null;
++++        error?: Error | undefined;
++++    }
++++    /**
++++     * The `child_process.spawnSync()` method is generally identical to {@link spawn} with the exception that the function will not return
++++     * until the child process has fully closed. When a timeout has been encountered
++++     * and `killSignal` is sent, the method won't return until the process has
++++     * completely exited. If the process intercepts and handles the `SIGTERM` signal
++++     * and doesn't exit, the parent process will wait until the child process has
++++     * exited.
++++     *
++++     * **If the `shell` option is enabled, do not pass unsanitized user input to this**
++++     * **function. Any input containing shell metacharacters may be used to trigger**
++++     * **arbitrary command execution.**
++++     * @since v0.11.12
++++     * @param command The command to run.
++++     * @param args List of string arguments.
++++     */
++++    function spawnSync(command: string): SpawnSyncReturns<Buffer>;
++++    function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
++++    function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
++++    function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
++++    function spawnSync(command: string, args: readonly string[]): SpawnSyncReturns<Buffer>;
++++    function spawnSync(
++++        command: string,
++++        args: readonly string[],
++++        options: SpawnSyncOptionsWithStringEncoding,
++++    ): SpawnSyncReturns<string>;
++++    function spawnSync(
++++        command: string,
++++        args: readonly string[],
++++        options: SpawnSyncOptionsWithBufferEncoding,
++++    ): SpawnSyncReturns<Buffer>;
++++    function spawnSync(
++++        command: string,
++++        args?: readonly string[],
++++        options?: SpawnSyncOptions,
++++    ): SpawnSyncReturns<string | Buffer>;
++++    interface CommonExecOptions extends CommonOptions {
++++        input?: string | NodeJS.ArrayBufferView | undefined;
++++        /**
++++         * Can be set to 'pipe', 'inherit, or 'ignore', or an array of these strings.
++++         * If passed as an array, the first element is used for `stdin`, the second for
++++         * `stdout`, and the third for `stderr`. A fourth element can be used to
++++         * specify the `stdio` behavior beyond the standard streams. See
++++         * {@link ChildProcess.stdio} for more information.
++++         *
++++         * @default 'pipe'
++++         */
++++        stdio?: StdioOptions | undefined;
++++        killSignal?: NodeJS.Signals | number | undefined;
++++        maxBuffer?: number | undefined;
++++        encoding?: BufferEncoding | "buffer" | null | undefined;
++++    }
++++    interface ExecSyncOptions extends CommonExecOptions {
++++        shell?: string | undefined;
++++    }
++++    interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions {
++++        encoding: BufferEncoding;
++++    }
++++    interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions {
++++        encoding?: "buffer" | null | undefined;
++++    }
++++    /**
++++     * The `child_process.execSync()` method is generally identical to {@link exec} with the exception that the method will not return
++++     * until the child process has fully closed. When a timeout has been encountered
++++     * and `killSignal` is sent, the method won't return until the process has
++++     * completely exited. If the child process intercepts and handles the `SIGTERM` signal and doesn't exit, the parent process will wait until the child process
++++     * has exited.
++++     *
++++     * If the process times out or has a non-zero exit code, this method will throw.
++++     * The `Error` object will contain the entire result from {@link spawnSync}.
++++     *
++++     * **Never pass unsanitized user input to this function. Any input containing shell**
++++     * **metacharacters may be used to trigger arbitrary command execution.**
++++     * @since v0.11.12
++++     * @param command The command to run.
++++     * @return The stdout from the command.
++++     */
++++    function execSync(command: string): Buffer;
++++    function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string;
++++    function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): Buffer;
++++    function execSync(command: string, options?: ExecSyncOptions): string | Buffer;
++++    interface ExecFileSyncOptions extends CommonExecOptions {
++++        shell?: boolean | string | undefined;
++++    }
++++    interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions {
++++        encoding: BufferEncoding;
++++    }
++++    interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions {
++++        encoding?: "buffer" | null; // specify `null`.
++++    }
++++    /**
++++     * The `child_process.execFileSync()` method is generally identical to {@link execFile} with the exception that the method will not
++++     * return until the child process has fully closed. When a timeout has been
++++     * encountered and `killSignal` is sent, the method won't return until the process
++++     * has completely exited.
++++     *
++++     * If the child process intercepts and handles the `SIGTERM` signal and
++++     * does not exit, the parent process will still wait until the child process has
++++     * exited.
++++     *
++++     * If the process times out or has a non-zero exit code, this method will throw an `Error` that will include the full result of the underlying {@link spawnSync}.
++++     *
++++     * **If the `shell` option is enabled, do not pass unsanitized user input to this**
++++     * **function. Any input containing shell metacharacters may be used to trigger**
++++     * **arbitrary command execution.**
++++     * @since v0.11.12
++++     * @param file The name or path of the executable file to run.
++++     * @param args List of string arguments.
++++     * @return The stdout from the command.
++++     */
++++    function execFileSync(file: string): Buffer;
++++    function execFileSync(file: string, options: ExecFileSyncOptionsWithStringEncoding): string;
++++    function execFileSync(file: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
++++    function execFileSync(file: string, options?: ExecFileSyncOptions): string | Buffer;
++++    function execFileSync(file: string, args: readonly string[]): Buffer;
++++    function execFileSync(
++++        file: string,
++++        args: readonly string[],
++++        options: ExecFileSyncOptionsWithStringEncoding,
++++    ): string;
++++    function execFileSync(
++++        file: string,
++++        args: readonly string[],
++++        options: ExecFileSyncOptionsWithBufferEncoding,
++++    ): Buffer;
++++    function execFileSync(file: string, args?: readonly string[], options?: ExecFileSyncOptions): string | Buffer;
++++}
++++declare module "node:child_process" {
++++    export * from "child_process";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b4605d6974ce376feec79cdaaf7a871b5a3ec51f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,578 @@@@@
++++/**
++++ * Clusters of Node.js processes can be used to run multiple instances of Node.js
++++ * that can distribute workloads among their application threads. When process isolation
++++ * is not needed, use the [`worker_threads`](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html)
++++ * module instead, which allows running multiple application threads within a single Node.js instance.
++++ *
++++ * The cluster module allows easy creation of child processes that all share
++++ * server ports.
++++ *
++++ * ```js
++++ * import cluster from 'node:cluster';
++++ * import http from 'node:http';
++++ * import { availableParallelism } from 'node:os';
++++ * import process from 'node:process';
++++ *
++++ * const numCPUs = availableParallelism();
++++ *
++++ * if (cluster.isPrimary) {
++++ *   console.log(`Primary ${process.pid} is running`);
++++ *
++++ *   // Fork workers.
++++ *   for (let i = 0; i < numCPUs; i++) {
++++ *     cluster.fork();
++++ *   }
++++ *
++++ *   cluster.on('exit', (worker, code, signal) => {
++++ *     console.log(`worker ${worker.process.pid} died`);
++++ *   });
++++ * } else {
++++ *   // Workers can share any TCP connection
++++ *   // In this case it is an HTTP server
++++ *   http.createServer((req, res) => {
++++ *     res.writeHead(200);
++++ *     res.end('hello world\n');
++++ *   }).listen(8000);
++++ *
++++ *   console.log(`Worker ${process.pid} started`);
++++ * }
++++ * ```
++++ *
++++ * Running Node.js will now share port 8000 between the workers:
++++ *
++++ * ```console
++++ * $ node server.js
++++ * Primary 3596 is running
++++ * Worker 4324 started
++++ * Worker 4520 started
++++ * Worker 6056 started
++++ * Worker 5644 started
++++ * ```
++++ *
++++ * On Windows, it is not yet possible to set up a named pipe server in a worker.
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/cluster.js)
++++ */
++++declare module "cluster" {
++++    import * as child from "node:child_process";
++++    import EventEmitter = require("node:events");
++++    import * as net from "node:net";
++++    type SerializationType = "json" | "advanced";
++++    export interface ClusterSettings {
++++        /**
++++         * List of string arguments passed to the Node.js executable.
++++         * @default process.execArgv
++++         */
++++        execArgv?: string[] | undefined;
++++        /**
++++         * File path to worker file.
++++         * @default process.argv[1]
++++         */
++++        exec?: string | undefined;
++++        /**
++++         * String arguments passed to worker.
++++         * @default process.argv.slice(2)
++++         */
++++        args?: string[] | undefined;
++++        /**
++++         * Whether or not to send output to parent's stdio.
++++         * @default false
++++         */
++++        silent?: boolean | undefined;
++++        /**
++++         * Configures the stdio of forked processes. Because the cluster module relies on IPC to function, this configuration must
++++         * contain an `'ipc'` entry. When this option is provided, it overrides `silent`. See [`child_prcess.spawn()`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#child_processspawncommand-args-options)'s
++++         * [`stdio`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#optionsstdio).
++++         */
++++        stdio?: any[] | undefined;
++++        /**
++++         * Sets the user identity of the process. (See [`setuid(2)`](https://man7.org/linux/man-pages/man2/setuid.2.html).)
++++         */
++++        uid?: number | undefined;
++++        /**
++++         * Sets the group identity of the process. (See [`setgid(2)`](https://man7.org/linux/man-pages/man2/setgid.2.html).)
++++         */
++++        gid?: number | undefined;
++++        /**
++++         * Sets inspector port of worker. This can be a number, or a function that takes no arguments and returns a number.
++++         * By default each worker gets its own port, incremented from the primary's `process.debugPort`.
++++         */
++++        inspectPort?: number | (() => number) | undefined;
++++        /**
++++         * Specify the kind of serialization used for sending messages between processes. Possible values are `'json'` and `'advanced'`.
++++         * See [Advanced serialization for `child_process`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#advanced-serialization) for more details.
++++         * @default false
++++         */
++++        serialization?: SerializationType | undefined;
++++        /**
++++         * Current working directory of the worker process.
++++         * @default undefined (inherits from parent process)
++++         */
++++        cwd?: string | undefined;
++++        /**
++++         * Hide the forked processes console window that would normally be created on Windows systems.
++++         * @default false
++++         */
++++        windowsHide?: boolean | undefined;
++++    }
++++    export interface Address {
++++        address: string;
++++        port: number;
++++        /**
++++         * The `addressType` is one of:
++++         *
++++         * * `4` (TCPv4)
++++         * * `6` (TCPv6)
++++         * * `-1` (Unix domain socket)
++++         * * `'udp4'` or `'udp6'` (UDPv4 or UDPv6)
++++         */
++++        addressType: 4 | 6 | -1 | "udp4" | "udp6";
++++    }
++++    /**
++++     * A `Worker` object contains all public information and method about a worker.
++++     * In the primary it can be obtained using `cluster.workers`. In a worker
++++     * it can be obtained using `cluster.worker`.
++++     * @since v0.7.0
++++     */
++++    export class Worker extends EventEmitter {
++++        /**
++++         * Each new worker is given its own unique id, this id is stored in the `id`.
++++         *
++++         * While a worker is alive, this is the key that indexes it in `cluster.workers`.
++++         * @since v0.8.0
++++         */
++++        id: number;
++++        /**
++++         * All workers are created using [`child_process.fork()`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#child_processforkmodulepath-args-options), the returned object
++++         * from this function is stored as `.process`. In a worker, the global `process` is stored.
++++         *
++++         * See: [Child Process module](https://nodejs.org/docs/latest-v20.x/api/child_process.html#child_processforkmodulepath-args-options).
++++         *
++++         * Workers will call `process.exit(0)` if the `'disconnect'` event occurs
++++         * on `process` and `.exitedAfterDisconnect` is not `true`. This protects against
++++         * accidental disconnection.
++++         * @since v0.7.0
++++         */
++++        process: child.ChildProcess;
++++        /**
++++         * Send a message to a worker or primary, optionally with a handle.
++++         *
++++         * In the primary, this sends a message to a specific worker. It is identical to [`ChildProcess.send()`](https://nodejs.org/docs/latest-v20.x/api/child_process.html#subprocesssendmessage-sendhandle-options-callback).
++++         *
++++         * In a worker, this sends a message to the primary. It is identical to `process.send()`.
++++         *
++++         * This example will echo back all messages from the primary:
++++         *
++++         * ```js
++++         * if (cluster.isPrimary) {
++++         *   const worker = cluster.fork();
++++         *   worker.send('hi there');
++++         *
++++         * } else if (cluster.isWorker) {
++++         *   process.on('message', (msg) => {
++++         *     process.send(msg);
++++         *   });
++++         * }
++++         * ```
++++         * @since v0.7.0
++++         * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles.
++++         */
++++        send(message: child.Serializable, callback?: (error: Error | null) => void): boolean;
++++        send(
++++            message: child.Serializable,
++++            sendHandle: child.SendHandle,
++++            callback?: (error: Error | null) => void,
++++        ): boolean;
++++        send(
++++            message: child.Serializable,
++++            sendHandle: child.SendHandle,
++++            options?: child.MessageOptions,
++++            callback?: (error: Error | null) => void,
++++        ): boolean;
++++        /**
++++         * This function will kill the worker. In the primary worker, it does this by
++++         * disconnecting the `worker.process`, and once disconnected, killing with `signal`. In the worker, it does it by killing the process with `signal`.
++++         *
++++         * The `kill()` function kills the worker process without waiting for a graceful
++++         * disconnect, it has the same behavior as `worker.process.kill()`.
++++         *
++++         * This method is aliased as `worker.destroy()` for backwards compatibility.
++++         *
++++         * In a worker, `process.kill()` exists, but it is not this function;
++++         * it is [`kill()`](https://nodejs.org/docs/latest-v20.x/api/process.html#processkillpid-signal).
++++         * @since v0.9.12
++++         * @param [signal='SIGTERM'] Name of the kill signal to send to the worker process.
++++         */
++++        kill(signal?: string): void;
++++        destroy(signal?: string): void;
++++        /**
++++         * In a worker, this function will close all servers, wait for the `'close'` event
++++         * on those servers, and then disconnect the IPC channel.
++++         *
++++         * In the primary, an internal message is sent to the worker causing it to call `.disconnect()` on itself.
++++         *
++++         * Causes `.exitedAfterDisconnect` to be set.
++++         *
++++         * After a server is closed, it will no longer accept new connections,
++++         * but connections may be accepted by any other listening worker. Existing
++++         * connections will be allowed to close as usual. When no more connections exist,
++++         * see `server.close()`, the IPC channel to the worker will close allowing it
++++         * to die gracefully.
++++         *
++++         * The above applies _only_ to server connections, client connections are not
++++         * automatically closed by workers, and disconnect does not wait for them to close
++++         * before exiting.
++++         *
++++         * In a worker, `process.disconnect` exists, but it is not this function;
++++         * it is `disconnect()`.
++++         *
++++         * Because long living server connections may block workers from disconnecting, it
++++         * may be useful to send a message, so application specific actions may be taken to
++++         * close them. It also may be useful to implement a timeout, killing a worker if
++++         * the `'disconnect'` event has not been emitted after some time.
++++         *
++++         * ```js
++++         * import net from 'node:net';
++++         * if (cluster.isPrimary) {
++++         *   const worker = cluster.fork();
++++         *   let timeout;
++++         *
++++         *   worker.on('listening', (address) => {
++++         *     worker.send('shutdown');
++++         *     worker.disconnect();
++++         *     timeout = setTimeout(() => {
++++         *       worker.kill();
++++         *     }, 2000);
++++         *   });
++++         *
++++         *   worker.on('disconnect', () => {
++++         *     clearTimeout(timeout);
++++         *   });
++++         *
++++         * } else if (cluster.isWorker) {
++++         *   const server = net.createServer((socket) => {
++++         *     // Connections never end
++++         *   });
++++         *
++++         *   server.listen(8000);
++++         *
++++         *   process.on('message', (msg) => {
++++         *     if (msg === 'shutdown') {
++++         *       // Initiate graceful close of any connections to server
++++         *     }
++++         *   });
++++         * }
++++         * ```
++++         * @since v0.7.7
++++         * @return A reference to `worker`.
++++         */
++++        disconnect(): void;
++++        /**
++++         * This function returns `true` if the worker is connected to its primary via its
++++         * IPC channel, `false` otherwise. A worker is connected to its primary after it
++++         * has been created. It is disconnected after the `'disconnect'` event is emitted.
++++         * @since v0.11.14
++++         */
++++        isConnected(): boolean;
++++        /**
++++         * This function returns `true` if the worker's process has terminated (either
++++         * because of exiting or being signaled). Otherwise, it returns `false`.
++++         *
++++         * ```js
++++         * import cluster from 'node:cluster';
++++         * import http from 'node:http';
++++         * import { availableParallelism } from 'node:os';
++++         * import process from 'node:process';
++++         *
++++         * const numCPUs = availableParallelism();
++++         *
++++         * if (cluster.isPrimary) {
++++         *   console.log(`Primary ${process.pid} is running`);
++++         *
++++         *   // Fork workers.
++++         *   for (let i = 0; i < numCPUs; i++) {
++++         *     cluster.fork();
++++         *   }
++++         *
++++         *   cluster.on('fork', (worker) => {
++++         *     console.log('worker is dead:', worker.isDead());
++++         *   });
++++         *
++++         *   cluster.on('exit', (worker, code, signal) => {
++++         *     console.log('worker is dead:', worker.isDead());
++++         *   });
++++         * } else {
++++         *   // Workers can share any TCP connection. In this case, it is an HTTP server.
++++         *   http.createServer((req, res) => {
++++         *     res.writeHead(200);
++++         *     res.end(`Current process\n ${process.pid}`);
++++         *     process.kill(process.pid);
++++         *   }).listen(8000);
++++         * }
++++         * ```
++++         * @since v0.11.14
++++         */
++++        isDead(): boolean;
++++        /**
++++         * This property is `true` if the worker exited due to `.disconnect()`.
++++         * If the worker exited any other way, it is `false`. If the
++++         * worker has not exited, it is `undefined`.
++++         *
++++         * The boolean `worker.exitedAfterDisconnect` allows distinguishing between
++++         * voluntary and accidental exit, the primary may choose not to respawn a worker
++++         * based on this value.
++++         *
++++         * ```js
++++         * cluster.on('exit', (worker, code, signal) => {
++++         *   if (worker.exitedAfterDisconnect === true) {
++++         *     console.log('Oh, it was just voluntary – no need to worry');
++++         *   }
++++         * });
++++         *
++++         * // kill worker
++++         * worker.kill();
++++         * ```
++++         * @since v6.0.0
++++         */
++++        exitedAfterDisconnect: boolean;
++++        /**
++++         * events.EventEmitter
++++         *   1. disconnect
++++         *   2. error
++++         *   3. exit
++++         *   4. listening
++++         *   5. message
++++         *   6. online
++++         */
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        addListener(event: "disconnect", listener: () => void): this;
++++        addListener(event: "error", listener: (error: Error) => void): this;
++++        addListener(event: "exit", listener: (code: number, signal: string) => void): this;
++++        addListener(event: "listening", listener: (address: Address) => void): this;
++++        addListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
++++        addListener(event: "online", listener: () => void): this;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        emit(event: "disconnect"): boolean;
++++        emit(event: "error", error: Error): boolean;
++++        emit(event: "exit", code: number, signal: string): boolean;
++++        emit(event: "listening", address: Address): boolean;
++++        emit(event: "message", message: any, handle: net.Socket | net.Server): boolean;
++++        emit(event: "online"): boolean;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        on(event: "disconnect", listener: () => void): this;
++++        on(event: "error", listener: (error: Error) => void): this;
++++        on(event: "exit", listener: (code: number, signal: string) => void): this;
++++        on(event: "listening", listener: (address: Address) => void): this;
++++        on(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
++++        on(event: "online", listener: () => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        once(event: "disconnect", listener: () => void): this;
++++        once(event: "error", listener: (error: Error) => void): this;
++++        once(event: "exit", listener: (code: number, signal: string) => void): this;
++++        once(event: "listening", listener: (address: Address) => void): this;
++++        once(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
++++        once(event: "online", listener: () => void): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        prependListener(event: "disconnect", listener: () => void): this;
++++        prependListener(event: "error", listener: (error: Error) => void): this;
++++        prependListener(event: "exit", listener: (code: number, signal: string) => void): this;
++++        prependListener(event: "listening", listener: (address: Address) => void): this;
++++        prependListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
++++        prependListener(event: "online", listener: () => void): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "disconnect", listener: () => void): this;
++++        prependOnceListener(event: "error", listener: (error: Error) => void): this;
++++        prependOnceListener(event: "exit", listener: (code: number, signal: string) => void): this;
++++        prependOnceListener(event: "listening", listener: (address: Address) => void): this;
++++        prependOnceListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
++++        prependOnceListener(event: "online", listener: () => void): this;
++++    }
++++    export interface Cluster extends EventEmitter {
++++        disconnect(callback?: () => void): void;
++++        /**
++++         * Spawn a new worker process.
++++         *
++++         * This can only be called from the primary process.
++++         * @param env Key/value pairs to add to worker process environment.
++++         * @since v0.6.0
++++         */
++++        fork(env?: any): Worker;
++++        /** @deprecated since v16.0.0 - use isPrimary. */
++++        readonly isMaster: boolean;
++++        /**
++++         * True if the process is a primary. This is determined by the `process.env.NODE_UNIQUE_ID`. If `process.env.NODE_UNIQUE_ID`
++++         * is undefined, then `isPrimary` is `true`.
++++         * @since v16.0.0
++++         */
++++        readonly isPrimary: boolean;
++++        /**
++++         * True if the process is not a primary (it is the negation of `cluster.isPrimary`).
++++         * @since v0.6.0
++++         */
++++        readonly isWorker: boolean;
++++        /**
++++         * The scheduling policy, either `cluster.SCHED_RR` for round-robin or `cluster.SCHED_NONE` to leave it to the operating system. This is a
++++         * global setting and effectively frozen once either the first worker is spawned, or [`.setupPrimary()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clustersetupprimarysettings)
++++         * is called, whichever comes first.
++++         *
++++         * `SCHED_RR` is the default on all operating systems except Windows. Windows will change to `SCHED_RR` once libuv is able to effectively distribute
++++         * IOCP handles without incurring a large performance hit.
++++         *
++++         * `cluster.schedulingPolicy` can also be set through the `NODE_CLUSTER_SCHED_POLICY` environment variable. Valid values are `'rr'` and `'none'`.
++++         * @since v0.11.2
++++         */
++++        schedulingPolicy: number;
++++        /**
++++         * After calling [`.setupPrimary()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clustersetupprimarysettings)
++++         * (or [`.fork()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clusterforkenv)) this settings object will contain
++++         * the settings, including the default values.
++++         *
++++         * This object is not intended to be changed or set manually.
++++         * @since v0.7.1
++++         */
++++        readonly settings: ClusterSettings;
++++        /** @deprecated since v16.0.0 - use [`.setupPrimary()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clustersetupprimarysettings) instead. */
++++        setupMaster(settings?: ClusterSettings): void;
++++        /**
++++         * `setupPrimary` is used to change the default 'fork' behavior. Once called, the settings will be present in `cluster.settings`.
++++         *
++++         * Any settings changes only affect future calls to [`.fork()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clusterforkenv)
++++         * and have no effect on workers that are already running.
++++         *
++++         * The only attribute of a worker that cannot be set via `.setupPrimary()` is the `env` passed to
++++         * [`.fork()`](https://nodejs.org/docs/latest-v20.x/api/cluster.html#clusterforkenv).
++++         *
++++         * The defaults above apply to the first call only; the defaults for later calls are the current values at the time of
++++         * `cluster.setupPrimary()` is called.
++++         *
++++         * ```js
++++         * import cluster from 'node:cluster';
++++         *
++++         * cluster.setupPrimary({
++++         *   exec: 'worker.js',
++++         *   args: ['--use', 'https'],
++++         *   silent: true,
++++         * });
++++         * cluster.fork(); // https worker
++++         * cluster.setupPrimary({
++++         *   exec: 'worker.js',
++++         *   args: ['--use', 'http'],
++++         * });
++++         * cluster.fork(); // http worker
++++         * ```
++++         *
++++         * This can only be called from the primary process.
++++         * @since v16.0.0
++++         */
++++        setupPrimary(settings?: ClusterSettings): void;
++++        /**
++++         * A reference to the current worker object. Not available in the primary process.
++++         *
++++         * ```js
++++         * import cluster from 'node:cluster';
++++         *
++++         * if (cluster.isPrimary) {
++++         *   console.log('I am primary');
++++         *   cluster.fork();
++++         *   cluster.fork();
++++         * } else if (cluster.isWorker) {
++++         *   console.log(`I am worker #${cluster.worker.id}`);
++++         * }
++++         * ```
++++         * @since v0.7.0
++++         */
++++        readonly worker?: Worker | undefined;
++++        /**
++++         * A hash that stores the active worker objects, keyed by `id` field. This makes it easy to loop through all the workers. It is only available in the primary process.
++++         *
++++         * A worker is removed from `cluster.workers` after the worker has disconnected _and_ exited. The order between these two events cannot be determined in advance. However, it
++++         * is guaranteed that the removal from the `cluster.workers` list happens before the last `'disconnect'` or `'exit'` event is emitted.
++++         *
++++         * ```js
++++         * import cluster from 'node:cluster';
++++         *
++++         * for (const worker of Object.values(cluster.workers)) {
++++         *   worker.send('big announcement to all workers');
++++         * }
++++         * ```
++++         * @since v0.7.0
++++         */
++++        readonly workers?: NodeJS.Dict<Worker> | undefined;
++++        readonly SCHED_NONE: number;
++++        readonly SCHED_RR: number;
++++        /**
++++         * events.EventEmitter
++++         *   1. disconnect
++++         *   2. exit
++++         *   3. fork
++++         *   4. listening
++++         *   5. message
++++         *   6. online
++++         *   7. setup
++++         */
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        addListener(event: "disconnect", listener: (worker: Worker) => void): this;
++++        addListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
++++        addListener(event: "fork", listener: (worker: Worker) => void): this;
++++        addListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
++++        addListener(
++++            event: "message",
++++            listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void,
++++        ): this; // the handle is a net.Socket or net.Server object, or undefined.
++++        addListener(event: "online", listener: (worker: Worker) => void): this;
++++        addListener(event: "setup", listener: (settings: ClusterSettings) => void): this;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        emit(event: "disconnect", worker: Worker): boolean;
++++        emit(event: "exit", worker: Worker, code: number, signal: string): boolean;
++++        emit(event: "fork", worker: Worker): boolean;
++++        emit(event: "listening", worker: Worker, address: Address): boolean;
++++        emit(event: "message", worker: Worker, message: any, handle: net.Socket | net.Server): boolean;
++++        emit(event: "online", worker: Worker): boolean;
++++        emit(event: "setup", settings: ClusterSettings): boolean;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        on(event: "disconnect", listener: (worker: Worker) => void): this;
++++        on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
++++        on(event: "fork", listener: (worker: Worker) => void): this;
++++        on(event: "listening", listener: (worker: Worker, address: Address) => void): this;
++++        on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
++++        on(event: "online", listener: (worker: Worker) => void): this;
++++        on(event: "setup", listener: (settings: ClusterSettings) => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        once(event: "disconnect", listener: (worker: Worker) => void): this;
++++        once(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
++++        once(event: "fork", listener: (worker: Worker) => void): this;
++++        once(event: "listening", listener: (worker: Worker, address: Address) => void): this;
++++        once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined.
++++        once(event: "online", listener: (worker: Worker) => void): this;
++++        once(event: "setup", listener: (settings: ClusterSettings) => void): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        prependListener(event: "disconnect", listener: (worker: Worker) => void): this;
++++        prependListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
++++        prependListener(event: "fork", listener: (worker: Worker) => void): this;
++++        prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
++++        // the handle is a net.Socket or net.Server object, or undefined.
++++        prependListener(
++++            event: "message",
++++            listener: (worker: Worker, message: any, handle?: net.Socket | net.Server) => void,
++++        ): this;
++++        prependListener(event: "online", listener: (worker: Worker) => void): this;
++++        prependListener(event: "setup", listener: (settings: ClusterSettings) => void): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): this;
++++        prependOnceListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this;
++++        prependOnceListener(event: "fork", listener: (worker: Worker) => void): this;
++++        prependOnceListener(event: "listening", listener: (worker: Worker, address: Address) => void): this;
++++        // the handle is a net.Socket or net.Server object, or undefined.
++++        prependOnceListener(
++++            event: "message",
++++            listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void,
++++        ): this;
++++        prependOnceListener(event: "online", listener: (worker: Worker) => void): this;
++++        prependOnceListener(event: "setup", listener: (settings: ClusterSettings) => void): this;
++++    }
++++    const cluster: Cluster;
++++    export default cluster;
++++}
++++declare module "node:cluster" {
++++    export * from "cluster";
++++    export { default as default } from "cluster";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5fff612b56dbf8c88d7d5220a422b8cbc19e073f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,16 @@@@@
++++// Polyfills for the explicit resource management types added in TypeScript 5.2.
++++// TODO: remove once this package no longer supports TS 5.1, and replace with a
++++// <reference> to TypeScript's disposable library in index.d.ts.
++++
++++interface SymbolConstructor {
++++    readonly dispose: unique symbol;
++++    readonly asyncDispose: unique symbol;
++++}
++++
++++interface Disposable {
++++    [Symbol.dispose](): void;
++++}
++++
++++interface AsyncDisposable {
++++    [Symbol.asyncDispose](): PromiseLike<void>;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5c41e37227a6b5cd3ade44a3dff7631bc4ad2ef9
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,9 @@@@@
++++// Declaration files in this directory contain types relating to TypeScript library features
++++// that are not included in all TypeScript versions supported by DefinitelyTyped, but
++++// which can be made backwards-compatible without needing `typesVersions`.
++++// If adding declarations to this directory, please specify which versions of TypeScript require them,
++++// so that they can be removed when no longer needed.
++++
++++/// <reference path="disposable.d.ts" />
++++/// <reference path="indexable.d.ts" />
++++/// <reference path="iterators.d.ts" />
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..262ba09ceb2ec25e073f88c0e9b4ec37f9726381
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,20 @@@@@
++++// Polyfill for ES2022's .at() method on string/array prototypes, added to TypeScript in 4.6.
++++
++++interface RelativeIndexable<T> {
++++    at(index: number): T | undefined;
++++}
++++
++++interface String extends RelativeIndexable<string> {}
++++interface Array<T> extends RelativeIndexable<T> {}
++++interface ReadonlyArray<T> extends RelativeIndexable<T> {}
++++interface Int8Array extends RelativeIndexable<number> {}
++++interface Uint8Array extends RelativeIndexable<number> {}
++++interface Uint8ClampedArray extends RelativeIndexable<number> {}
++++interface Int16Array extends RelativeIndexable<number> {}
++++interface Uint16Array extends RelativeIndexable<number> {}
++++interface Int32Array extends RelativeIndexable<number> {}
++++interface Uint32Array extends RelativeIndexable<number> {}
++++interface Float32Array extends RelativeIndexable<number> {}
++++interface Float64Array extends RelativeIndexable<number> {}
++++interface BigInt64Array extends RelativeIndexable<bigint> {}
++++interface BigUint64Array extends RelativeIndexable<bigint> {}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..156e7856360bf532de1d82080e425573e9b2d749
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,21 @@@@@
++++// Backwards-compatible iterator interfaces, augmented with iterator helper methods by lib.esnext.iterator in TypeScript 5.6.
++++// The IterableIterator interface does not contain these methods, which creates assignability issues in places where IteratorObjects
++++// are expected (eg. DOM-compatible APIs) if lib.esnext.iterator is loaded.
++++// Also ensures that iterators returned by the Node API, which inherit from Iterator.prototype, correctly expose the iterator helper methods
++++// if lib.esnext.iterator is loaded.
++++// TODO: remove once this package no longer supports TS 5.5, and replace NodeJS.BuiltinIteratorReturn with BuiltinIteratorReturn.
++++
++++// Placeholders for TS <5.6
++++interface IteratorObject<T, TReturn, TNext> {}
++++interface AsyncIteratorObject<T, TReturn, TNext> {}
++++
++++declare namespace NodeJS {
++++    // Populate iterator methods for TS <5.6
++++    interface Iterator<T, TReturn, TNext> extends globalThis.Iterator<T, TReturn, TNext> {}
++++    interface AsyncIterator<T, TReturn, TNext> extends globalThis.AsyncIterator<T, TReturn, TNext> {}
++++
++++    // Polyfill for TS 5.6's instrinsic BuiltinIteratorReturn type, required for DOM-compatible iterators
++++    type BuiltinIteratorReturn = ReturnType<any[][typeof Symbol.iterator]> extends
++++        globalThis.Iterator<any, infer TReturn> ? TReturn
++++        : any;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..206e3fc1c8d284d410e71493650b717d20965d18
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,452 @@@@@
++++/**
++++ * The `node:console` module provides a simple debugging console that is similar to
++++ * the JavaScript console mechanism provided by web browsers.
++++ *
++++ * The module exports two specific components:
++++ *
++++ * * A `Console` class with methods such as `console.log()`, `console.error()`, and `console.warn()` that can be used to write to any Node.js stream.
++++ * * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstdout) and
++++ * [`process.stderr`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstderr). The global `console` can be used without importing the `node:console` module.
++++ *
++++ * _**Warning**_: The global console object's methods are neither consistently
++++ * synchronous like the browser APIs they resemble, nor are they consistently
++++ * asynchronous like all other Node.js streams. See the [`note on process I/O`](https://nodejs.org/docs/latest-v20.x/api/process.html#a-note-on-process-io) for
++++ * more information.
++++ *
++++ * Example using the global `console`:
++++ *
++++ * ```js
++++ * console.log('hello world');
++++ * // Prints: hello world, to stdout
++++ * console.log('hello %s', 'world');
++++ * // Prints: hello world, to stdout
++++ * console.error(new Error('Whoops, something bad happened'));
++++ * // Prints error message and stack trace to stderr:
++++ * //   Error: Whoops, something bad happened
++++ * //     at [eval]:5:15
++++ * //     at Script.runInThisContext (node:vm:132:18)
++++ * //     at Object.runInThisContext (node:vm:309:38)
++++ * //     at node:internal/process/execution:77:19
++++ * //     at [eval]-wrapper:6:22
++++ * //     at evalScript (node:internal/process/execution:76:60)
++++ * //     at node:internal/main/eval_string:23:3
++++ *
++++ * const name = 'Will Robinson';
++++ * console.warn(`Danger ${name}! Danger!`);
++++ * // Prints: Danger Will Robinson! Danger!, to stderr
++++ * ```
++++ *
++++ * Example using the `Console` class:
++++ *
++++ * ```js
++++ * const out = getStreamSomehow();
++++ * const err = getStreamSomehow();
++++ * const myConsole = new console.Console(out, err);
++++ *
++++ * myConsole.log('hello world');
++++ * // Prints: hello world, to out
++++ * myConsole.log('hello %s', 'world');
++++ * // Prints: hello world, to out
++++ * myConsole.error(new Error('Whoops, something bad happened'));
++++ * // Prints: [Error: Whoops, something bad happened], to err
++++ *
++++ * const name = 'Will Robinson';
++++ * myConsole.warn(`Danger ${name}! Danger!`);
++++ * // Prints: Danger Will Robinson! Danger!, to err
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/console.js)
++++ */
++++declare module "console" {
++++    import console = require("node:console");
++++    export = console;
++++}
++++declare module "node:console" {
++++    import { InspectOptions } from "node:util";
++++    global {
++++        // This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build
++++        interface Console {
++++            Console: console.ConsoleConstructor;
++++            /**
++++             * `console.assert()` writes a message if `value` is [falsy](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) or omitted. It only
++++             * writes a message and does not otherwise affect execution. The output always
++++             * starts with `"Assertion failed"`. If provided, `message` is formatted using
++++             * [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args).
++++             *
++++             * If `value` is [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy), nothing happens.
++++             *
++++             * ```js
++++             * console.assert(true, 'does nothing');
++++             *
++++             * console.assert(false, 'Whoops %s work', 'didn\'t');
++++             * // Assertion failed: Whoops didn't work
++++             *
++++             * console.assert();
++++             * // Assertion failed
++++             * ```
++++             * @since v0.1.101
++++             * @param value The value tested for being truthy.
++++             * @param message All arguments besides `value` are used as error message.
++++             */
++++            assert(value: any, message?: string, ...optionalParams: any[]): void;
++++            /**
++++             * When `stdout` is a TTY, calling `console.clear()` will attempt to clear the
++++             * TTY. When `stdout` is not a TTY, this method does nothing.
++++             *
++++             * The specific operation of `console.clear()` can vary across operating systems
++++             * and terminal types. For most Linux operating systems, `console.clear()` operates similarly to the `clear` shell command. On Windows, `console.clear()` will clear only the output in the
++++             * current terminal viewport for the Node.js
++++             * binary.
++++             * @since v8.3.0
++++             */
++++            clear(): void;
++++            /**
++++             * Maintains an internal counter specific to `label` and outputs to `stdout` the
++++             * number of times `console.count()` has been called with the given `label`.
++++             *
++++             * ```js
++++             * > console.count()
++++             * default: 1
++++             * undefined
++++             * > console.count('default')
++++             * default: 2
++++             * undefined
++++             * > console.count('abc')
++++             * abc: 1
++++             * undefined
++++             * > console.count('xyz')
++++             * xyz: 1
++++             * undefined
++++             * > console.count('abc')
++++             * abc: 2
++++             * undefined
++++             * > console.count()
++++             * default: 3
++++             * undefined
++++             * >
++++             * ```
++++             * @since v8.3.0
++++             * @param [label='default'] The display label for the counter.
++++             */
++++            count(label?: string): void;
++++            /**
++++             * Resets the internal counter specific to `label`.
++++             *
++++             * ```js
++++             * > console.count('abc');
++++             * abc: 1
++++             * undefined
++++             * > console.countReset('abc');
++++             * undefined
++++             * > console.count('abc');
++++             * abc: 1
++++             * undefined
++++             * >
++++             * ```
++++             * @since v8.3.0
++++             * @param [label='default'] The display label for the counter.
++++             */
++++            countReset(label?: string): void;
++++            /**
++++             * The `console.debug()` function is an alias for {@link log}.
++++             * @since v8.0.0
++++             */
++++            debug(message?: any, ...optionalParams: any[]): void;
++++            /**
++++             * Uses [`util.inspect()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilinspectobject-options) on `obj` and prints the resulting string to `stdout`.
++++             * This function bypasses any custom `inspect()` function defined on `obj`.
++++             * @since v0.1.101
++++             */
++++            dir(obj: any, options?: InspectOptions): void;
++++            /**
++++             * This method calls `console.log()` passing it the arguments received.
++++             * This method does not produce any XML formatting.
++++             * @since v8.0.0
++++             */
++++            dirxml(...data: any[]): void;
++++            /**
++++             * Prints to `stderr` with newline. Multiple arguments can be passed, with the
++++             * first used as the primary message and all additional used as substitution
++++             * values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html)
++++             * (the arguments are all passed to [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args)).
++++             *
++++             * ```js
++++             * const code = 5;
++++             * console.error('error #%d', code);
++++             * // Prints: error #5, to stderr
++++             * console.error('error', code);
++++             * // Prints: error 5, to stderr
++++             * ```
++++             *
++++             * If formatting elements (e.g. `%d`) are not found in the first string then
++++             * [`util.inspect()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilinspectobject-options) is called on each argument and the
++++             * resulting string values are concatenated. See [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args)
++++             * for more information.
++++             * @since v0.1.100
++++             */
++++            error(message?: any, ...optionalParams: any[]): void;
++++            /**
++++             * Increases indentation of subsequent lines by spaces for `groupIndentation` length.
++++             *
++++             * If one or more `label`s are provided, those are printed first without the
++++             * additional indentation.
++++             * @since v8.5.0
++++             */
++++            group(...label: any[]): void;
++++            /**
++++             * An alias for {@link group}.
++++             * @since v8.5.0
++++             */
++++            groupCollapsed(...label: any[]): void;
++++            /**
++++             * Decreases indentation of subsequent lines by spaces for `groupIndentation` length.
++++             * @since v8.5.0
++++             */
++++            groupEnd(): void;
++++            /**
++++             * The `console.info()` function is an alias for {@link log}.
++++             * @since v0.1.100
++++             */
++++            info(message?: any, ...optionalParams: any[]): void;
++++            /**
++++             * Prints to `stdout` with newline. Multiple arguments can be passed, with the
++++             * first used as the primary message and all additional used as substitution
++++             * values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html)
++++             * (the arguments are all passed to [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args)).
++++             *
++++             * ```js
++++             * const count = 5;
++++             * console.log('count: %d', count);
++++             * // Prints: count: 5, to stdout
++++             * console.log('count:', count);
++++             * // Prints: count: 5, to stdout
++++             * ```
++++             *
++++             * See [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args) for more information.
++++             * @since v0.1.100
++++             */
++++            log(message?: any, ...optionalParams: any[]): void;
++++            /**
++++             * Try to construct a table with the columns of the properties of `tabularData` (or use `properties`) and rows of `tabularData` and log it. Falls back to just
++++             * logging the argument if it can't be parsed as tabular.
++++             *
++++             * ```js
++++             * // These can't be parsed as tabular data
++++             * console.table(Symbol());
++++             * // Symbol()
++++             *
++++             * console.table(undefined);
++++             * // undefined
++++             *
++++             * console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]);
++++             * // ┌─────────┬─────┬─────┐
++++             * // │ (index) │  a  │  b  │
++++             * // ├─────────┼─────┼─────┤
++++             * // │    0    │  1  │ 'Y' │
++++             * // │    1    │ 'Z' │  2  │
++++             * // └─────────┴─────┴─────┘
++++             *
++++             * console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']);
++++             * // ┌─────────┬─────┐
++++             * // │ (index) │  a  │
++++             * // ├─────────┼─────┤
++++             * // │    0    │  1  │
++++             * // │    1    │ 'Z' │
++++             * // └─────────┴─────┘
++++             * ```
++++             * @since v10.0.0
++++             * @param properties Alternate properties for constructing the table.
++++             */
++++            table(tabularData: any, properties?: readonly string[]): void;
++++            /**
++++             * Starts a timer that can be used to compute the duration of an operation. Timers
++++             * are identified by a unique `label`. Use the same `label` when calling {@link timeEnd} to stop the timer and output the elapsed time in
++++             * suitable time units to `stdout`. For example, if the elapsed
++++             * time is 3869ms, `console.timeEnd()` displays "3.869s".
++++             * @since v0.1.104
++++             * @param [label='default']
++++             */
++++            time(label?: string): void;
++++            /**
++++             * Stops a timer that was previously started by calling {@link time} and
++++             * prints the result to `stdout`:
++++             *
++++             * ```js
++++             * console.time('bunch-of-stuff');
++++             * // Do a bunch of stuff.
++++             * console.timeEnd('bunch-of-stuff');
++++             * // Prints: bunch-of-stuff: 225.438ms
++++             * ```
++++             * @since v0.1.104
++++             * @param [label='default']
++++             */
++++            timeEnd(label?: string): void;
++++            /**
++++             * For a timer that was previously started by calling {@link time}, prints
++++             * the elapsed time and other `data` arguments to `stdout`:
++++             *
++++             * ```js
++++             * console.time('process');
++++             * const value = expensiveProcess1(); // Returns 42
++++             * console.timeLog('process', value);
++++             * // Prints "process: 365.227ms 42".
++++             * doExpensiveProcess2(value);
++++             * console.timeEnd('process');
++++             * ```
++++             * @since v10.7.0
++++             * @param [label='default']
++++             */
++++            timeLog(label?: string, ...data: any[]): void;
++++            /**
++++             * Prints to `stderr` the string `'Trace: '`, followed by the [`util.format()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilformatformat-args)
++++             * formatted message and stack trace to the current position in the code.
++++             *
++++             * ```js
++++             * console.trace('Show me');
++++             * // Prints: (stack trace will vary based on where trace is called)
++++             * //  Trace: Show me
++++             * //    at repl:2:9
++++             * //    at REPLServer.defaultEval (repl.js:248:27)
++++             * //    at bound (domain.js:287:14)
++++             * //    at REPLServer.runBound [as eval] (domain.js:300:12)
++++             * //    at REPLServer.<anonymous> (repl.js:412:12)
++++             * //    at emitOne (events.js:82:20)
++++             * //    at REPLServer.emit (events.js:169:7)
++++             * //    at REPLServer.Interface._onLine (readline.js:210:10)
++++             * //    at REPLServer.Interface._line (readline.js:549:8)
++++             * //    at REPLServer.Interface._ttyWrite (readline.js:826:14)
++++             * ```
++++             * @since v0.1.104
++++             */
++++            trace(message?: any, ...optionalParams: any[]): void;
++++            /**
++++             * The `console.warn()` function is an alias for {@link error}.
++++             * @since v0.1.100
++++             */
++++            warn(message?: any, ...optionalParams: any[]): void;
++++            // --- Inspector mode only ---
++++            /**
++++             * This method does not display anything unless used in the inspector. The `console.profile()`
++++             * method starts a JavaScript CPU profile with an optional label until {@link profileEnd}
++++             * is called. The profile is then added to the Profile panel of the inspector.
++++             *
++++             * ```js
++++             * console.profile('MyLabel');
++++             * // Some code
++++             * console.profileEnd('MyLabel');
++++             * // Adds the profile 'MyLabel' to the Profiles panel of the inspector.
++++             * ```
++++             * @since v8.0.0
++++             */
++++            profile(label?: string): void;
++++            /**
++++             * This method does not display anything unless used in the inspector. Stops the current
++++             * JavaScript CPU profiling session if one has been started and prints the report to the
++++             * Profiles panel of the inspector. See {@link profile} for an example.
++++             *
++++             * If this method is called without a label, the most recently started profile is stopped.
++++             * @since v8.0.0
++++             */
++++            profileEnd(label?: string): void;
++++            /**
++++             * This method does not display anything unless used in the inspector. The `console.timeStamp()`
++++             * method adds an event with the label `'label'` to the Timeline panel of the inspector.
++++             * @since v8.0.0
++++             */
++++            timeStamp(label?: string): void;
++++        }
++++        /**
++++         * The `console` module provides a simple debugging console that is similar to the
++++         * JavaScript console mechanism provided by web browsers.
++++         *
++++         * The module exports two specific components:
++++         *
++++         * * A `Console` class with methods such as `console.log()`, `console.error()` and `console.warn()` that can be used to write to any Node.js stream.
++++         * * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstdout) and
++++         * [`process.stderr`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstderr). The global `console` can be used without importing the `node:console` module.
++++         *
++++         * _**Warning**_: The global console object's methods are neither consistently
++++         * synchronous like the browser APIs they resemble, nor are they consistently
++++         * asynchronous like all other Node.js streams. See the [`note on process I/O`](https://nodejs.org/docs/latest-v20.x/api/process.html#a-note-on-process-io) for
++++         * more information.
++++         *
++++         * Example using the global `console`:
++++         *
++++         * ```js
++++         * console.log('hello world');
++++         * // Prints: hello world, to stdout
++++         * console.log('hello %s', 'world');
++++         * // Prints: hello world, to stdout
++++         * console.error(new Error('Whoops, something bad happened'));
++++         * // Prints error message and stack trace to stderr:
++++         * //   Error: Whoops, something bad happened
++++         * //     at [eval]:5:15
++++         * //     at Script.runInThisContext (node:vm:132:18)
++++         * //     at Object.runInThisContext (node:vm:309:38)
++++         * //     at node:internal/process/execution:77:19
++++         * //     at [eval]-wrapper:6:22
++++         * //     at evalScript (node:internal/process/execution:76:60)
++++         * //     at node:internal/main/eval_string:23:3
++++         *
++++         * const name = 'Will Robinson';
++++         * console.warn(`Danger ${name}! Danger!`);
++++         * // Prints: Danger Will Robinson! Danger!, to stderr
++++         * ```
++++         *
++++         * Example using the `Console` class:
++++         *
++++         * ```js
++++         * const out = getStreamSomehow();
++++         * const err = getStreamSomehow();
++++         * const myConsole = new console.Console(out, err);
++++         *
++++         * myConsole.log('hello world');
++++         * // Prints: hello world, to out
++++         * myConsole.log('hello %s', 'world');
++++         * // Prints: hello world, to out
++++         * myConsole.error(new Error('Whoops, something bad happened'));
++++         * // Prints: [Error: Whoops, something bad happened], to err
++++         *
++++         * const name = 'Will Robinson';
++++         * myConsole.warn(`Danger ${name}! Danger!`);
++++         * // Prints: Danger Will Robinson! Danger!, to err
++++         * ```
++++         * @see [source](https://github.com/nodejs/node/blob/v20.11.1/lib/console.js)
++++         */
++++        namespace console {
++++            interface ConsoleConstructorOptions {
++++                stdout: NodeJS.WritableStream;
++++                stderr?: NodeJS.WritableStream | undefined;
++++                /**
++++                 * Ignore errors when writing to the underlying streams.
++++                 * @default true
++++                 */
++++                ignoreErrors?: boolean | undefined;
++++                /**
++++                 * Set color support for this `Console` instance. Setting to true enables coloring while inspecting
++++                 * values. Setting to `false` disables coloring while inspecting values. Setting to `'auto'` makes color
++++                 * support depend on the value of the `isTTY` property and the value returned by `getColorDepth()` on the
++++                 * respective stream. This option can not be used, if `inspectOptions.colors` is set as well.
++++                 * @default auto
++++                 */
++++                colorMode?: boolean | "auto" | undefined;
++++                /**
++++                 * Specifies options that are passed along to
++++                 * [`util.inspect()`](https://nodejs.org/docs/latest-v20.x/api/util.html#utilinspectobject-options).
++++                 */
++++                inspectOptions?: InspectOptions | undefined;
++++                /**
++++                 * Set group indentation.
++++                 * @default 2
++++                 */
++++                groupIndentation?: number | undefined;
++++            }
++++            interface ConsoleConstructor {
++++                prototype: Console;
++++                new(stdout: NodeJS.WritableStream, stderr?: NodeJS.WritableStream, ignoreErrors?: boolean): Console;
++++                new(options: ConsoleConstructorOptions): Console;
++++            }
++++        }
++++        var console: Console;
++++    }
++++    export = globalThis.console;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c3ac2b826436020bc945c03bb85c9a9479245f2f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,19 @@@@@
++++/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
++++declare module "constants" {
++++    import { constants as osConstants, SignalConstants } from "node:os";
++++    import { constants as cryptoConstants } from "node:crypto";
++++    import { constants as fsConstants } from "node:fs";
++++
++++    const exp:
++++        & typeof osConstants.errno
++++        & typeof osConstants.priority
++++        & SignalConstants
++++        & typeof cryptoConstants
++++        & typeof fsConstants;
++++    export = exp;
++++}
++++
++++declare module "node:constants" {
++++    import constants = require("constants");
++++    export = constants;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c9874e0d7539e9c90cd953f9074e9bded244ad90
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,4519 @@@@@
++++/**
++++ * The `node:crypto` module provides cryptographic functionality that includes a
++++ * set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify
++++ * functions.
++++ *
++++ * ```js
++++ * const { createHmac } = await import('node:crypto');
++++ *
++++ * const secret = 'abcdefg';
++++ * const hash = createHmac('sha256', secret)
++++ *                .update('I love cupcakes')
++++ *                .digest('hex');
++++ * console.log(hash);
++++ * // Prints:
++++ * //   c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/crypto.js)
++++ */
++++declare module "crypto" {
++++    import * as stream from "node:stream";
++++    import { PeerCertificate } from "node:tls";
++++    /**
++++     * SPKAC is a Certificate Signing Request mechanism originally implemented by
++++     * Netscape and was specified formally as part of HTML5's `keygen` element.
++++     *
++++     * `<keygen>` is deprecated since [HTML 5.2](https://www.w3.org/TR/html52/changes.html#features-removed) and new projects
++++     * should not use this element anymore.
++++     *
++++     * The `node:crypto` module provides the `Certificate` class for working with SPKAC
++++     * data. The most common usage is handling output generated by the HTML5 `<keygen>` element. Node.js uses [OpenSSL's SPKAC
++++     * implementation](https://www.openssl.org/docs/man3.0/man1/openssl-spkac.html) internally.
++++     * @since v0.11.8
++++     */
++++    class Certificate {
++++        /**
++++         * ```js
++++         * const { Certificate } = await import('node:crypto');
++++         * const spkac = getSpkacSomehow();
++++         * const challenge = Certificate.exportChallenge(spkac);
++++         * console.log(challenge.toString('utf8'));
++++         * // Prints: the challenge as a UTF8 string
++++         * ```
++++         * @since v9.0.0
++++         * @param encoding The `encoding` of the `spkac` string.
++++         * @return The challenge component of the `spkac` data structure, which includes a public key and a challenge.
++++         */
++++        static exportChallenge(spkac: BinaryLike): Buffer;
++++        /**
++++         * ```js
++++         * const { Certificate } = await import('node:crypto');
++++         * const spkac = getSpkacSomehow();
++++         * const publicKey = Certificate.exportPublicKey(spkac);
++++         * console.log(publicKey);
++++         * // Prints: the public key as <Buffer ...>
++++         * ```
++++         * @since v9.0.0
++++         * @param encoding The `encoding` of the `spkac` string.
++++         * @return The public key component of the `spkac` data structure, which includes a public key and a challenge.
++++         */
++++        static exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer;
++++        /**
++++         * ```js
++++         * import { Buffer } from 'node:buffer';
++++         * const { Certificate } = await import('node:crypto');
++++         *
++++         * const spkac = getSpkacSomehow();
++++         * console.log(Certificate.verifySpkac(Buffer.from(spkac)));
++++         * // Prints: true or false
++++         * ```
++++         * @since v9.0.0
++++         * @param encoding The `encoding` of the `spkac` string.
++++         * @return `true` if the given `spkac` data structure is valid, `false` otherwise.
++++         */
++++        static verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
++++        /**
++++         * @deprecated
++++         * @param spkac
++++         * @returns The challenge component of the `spkac` data structure,
++++         * which includes a public key and a challenge.
++++         */
++++        exportChallenge(spkac: BinaryLike): Buffer;
++++        /**
++++         * @deprecated
++++         * @param spkac
++++         * @param encoding The encoding of the spkac string.
++++         * @returns The public key component of the `spkac` data structure,
++++         * which includes a public key and a challenge.
++++         */
++++        exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer;
++++        /**
++++         * @deprecated
++++         * @param spkac
++++         * @returns `true` if the given `spkac` data structure is valid,
++++         * `false` otherwise.
++++         */
++++        verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
++++    }
++++    namespace constants {
++++        // https://nodejs.org/dist/latest-v20.x/docs/api/crypto.html#crypto-constants
++++        const OPENSSL_VERSION_NUMBER: number;
++++        /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */
++++        const SSL_OP_ALL: number;
++++        /** Instructs OpenSSL to allow a non-[EC]DHE-based key exchange mode for TLS v1.3 */
++++        const SSL_OP_ALLOW_NO_DHE_KEX: number;
++++        /** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
++++        const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;
++++        /** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
++++        const SSL_OP_CIPHER_SERVER_PREFERENCE: number;
++++        /** Instructs OpenSSL to use Cisco's version identifier of DTLS_BAD_VER. */
++++        const SSL_OP_CISCO_ANYCONNECT: number;
++++        /** Instructs OpenSSL to turn on cookie exchange. */
++++        const SSL_OP_COOKIE_EXCHANGE: number;
++++        /** Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft. */
++++        const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number;
++++        /** Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d. */
++++        const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number;
++++        /** Allows initial connection to servers that do not support RI. */
++++        const SSL_OP_LEGACY_SERVER_CONNECT: number;
++++        /** Instructs OpenSSL to disable support for SSL/TLS compression. */
++++        const SSL_OP_NO_COMPRESSION: number;
++++        /** Instructs OpenSSL to disable encrypt-then-MAC. */
++++        const SSL_OP_NO_ENCRYPT_THEN_MAC: number;
++++        const SSL_OP_NO_QUERY_MTU: number;
++++        /** Instructs OpenSSL to disable renegotiation. */
++++        const SSL_OP_NO_RENEGOTIATION: number;
++++        /** Instructs OpenSSL to always start a new session when performing renegotiation. */
++++        const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number;
++++        /** Instructs OpenSSL to turn off SSL v2 */
++++        const SSL_OP_NO_SSLv2: number;
++++        /** Instructs OpenSSL to turn off SSL v3 */
++++        const SSL_OP_NO_SSLv3: number;
++++        /** Instructs OpenSSL to disable use of RFC4507bis tickets. */
++++        const SSL_OP_NO_TICKET: number;
++++        /** Instructs OpenSSL to turn off TLS v1 */
++++        const SSL_OP_NO_TLSv1: number;
++++        /** Instructs OpenSSL to turn off TLS v1.1 */
++++        const SSL_OP_NO_TLSv1_1: number;
++++        /** Instructs OpenSSL to turn off TLS v1.2 */
++++        const SSL_OP_NO_TLSv1_2: number;
++++        /** Instructs OpenSSL to turn off TLS v1.3 */
++++        const SSL_OP_NO_TLSv1_3: number;
++++        /** Instructs OpenSSL server to prioritize ChaCha20-Poly1305 when the client does. This option has no effect if `SSL_OP_CIPHER_SERVER_PREFERENCE` is not enabled. */
++++        const SSL_OP_PRIORITIZE_CHACHA: number;
++++        /** Instructs OpenSSL to disable version rollback attack detection. */
++++        const SSL_OP_TLS_ROLLBACK_BUG: number;
++++        const ENGINE_METHOD_RSA: number;
++++        const ENGINE_METHOD_DSA: number;
++++        const ENGINE_METHOD_DH: number;
++++        const ENGINE_METHOD_RAND: number;
++++        const ENGINE_METHOD_EC: number;
++++        const ENGINE_METHOD_CIPHERS: number;
++++        const ENGINE_METHOD_DIGESTS: number;
++++        const ENGINE_METHOD_PKEY_METHS: number;
++++        const ENGINE_METHOD_PKEY_ASN1_METHS: number;
++++        const ENGINE_METHOD_ALL: number;
++++        const ENGINE_METHOD_NONE: number;
++++        const DH_CHECK_P_NOT_SAFE_PRIME: number;
++++        const DH_CHECK_P_NOT_PRIME: number;
++++        const DH_UNABLE_TO_CHECK_GENERATOR: number;
++++        const DH_NOT_SUITABLE_GENERATOR: number;
++++        const RSA_PKCS1_PADDING: number;
++++        const RSA_SSLV23_PADDING: number;
++++        const RSA_NO_PADDING: number;
++++        const RSA_PKCS1_OAEP_PADDING: number;
++++        const RSA_X931_PADDING: number;
++++        const RSA_PKCS1_PSS_PADDING: number;
++++        /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying. */
++++        const RSA_PSS_SALTLEN_DIGEST: number;
++++        /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data. */
++++        const RSA_PSS_SALTLEN_MAX_SIGN: number;
++++        /** Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature. */
++++        const RSA_PSS_SALTLEN_AUTO: number;
++++        const POINT_CONVERSION_COMPRESSED: number;
++++        const POINT_CONVERSION_UNCOMPRESSED: number;
++++        const POINT_CONVERSION_HYBRID: number;
++++        /** Specifies the built-in default cipher list used by Node.js (colon-separated values). */
++++        const defaultCoreCipherList: string;
++++        /** Specifies the active default cipher list used by the current Node.js process  (colon-separated values). */
++++        const defaultCipherList: string;
++++    }
++++    interface HashOptions extends stream.TransformOptions {
++++        /**
++++         * For XOF hash functions such as `shake256`, the
++++         * outputLength option can be used to specify the desired output length in bytes.
++++         */
++++        outputLength?: number | undefined;
++++    }
++++    /** @deprecated since v10.0.0 */
++++    const fips: boolean;
++++    /**
++++     * Creates and returns a `Hash` object that can be used to generate hash digests
++++     * using the given `algorithm`. Optional `options` argument controls stream
++++     * behavior. For XOF hash functions such as `'shake256'`, the `outputLength` option
++++     * can be used to specify the desired output length in bytes.
++++     *
++++     * The `algorithm` is dependent on the available algorithms supported by the
++++     * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
++++     * On recent releases of OpenSSL, `openssl list -digest-algorithms` will
++++     * display the available digest algorithms.
++++     *
++++     * Example: generating the sha256 sum of a file
++++     *
++++     * ```js
++++     * import {
++++     *   createReadStream,
++++     * } from 'node:fs';
++++     * import { argv } from 'node:process';
++++     * const {
++++     *   createHash,
++++     * } = await import('node:crypto');
++++     *
++++     * const filename = argv[2];
++++     *
++++     * const hash = createHash('sha256');
++++     *
++++     * const input = createReadStream(filename);
++++     * input.on('readable', () => {
++++     *   // Only one element is going to be produced by the
++++     *   // hash stream.
++++     *   const data = input.read();
++++     *   if (data)
++++     *     hash.update(data);
++++     *   else {
++++     *     console.log(`${hash.digest('hex')} ${filename}`);
++++     *   }
++++     * });
++++     * ```
++++     * @since v0.1.92
++++     * @param options `stream.transform` options
++++     */
++++    function createHash(algorithm: string, options?: HashOptions): Hash;
++++    /**
++++     * Creates and returns an `Hmac` object that uses the given `algorithm` and `key`.
++++     * Optional `options` argument controls stream behavior.
++++     *
++++     * The `algorithm` is dependent on the available algorithms supported by the
++++     * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc.
++++     * On recent releases of OpenSSL, `openssl list -digest-algorithms` will
++++     * display the available digest algorithms.
++++     *
++++     * The `key` is the HMAC key used to generate the cryptographic HMAC hash. If it is
++++     * a `KeyObject`, its type must be `secret`. If it is a string, please consider `caveats when using strings as inputs to cryptographic APIs`. If it was
++++     * obtained from a cryptographically secure source of entropy, such as {@link randomBytes} or {@link generateKey}, its length should not
++++     * exceed the block size of `algorithm` (e.g., 512 bits for SHA-256).
++++     *
++++     * Example: generating the sha256 HMAC of a file
++++     *
++++     * ```js
++++     * import {
++++     *   createReadStream,
++++     * } from 'node:fs';
++++     * import { argv } from 'node:process';
++++     * const {
++++     *   createHmac,
++++     * } = await import('node:crypto');
++++     *
++++     * const filename = argv[2];
++++     *
++++     * const hmac = createHmac('sha256', 'a secret');
++++     *
++++     * const input = createReadStream(filename);
++++     * input.on('readable', () => {
++++     *   // Only one element is going to be produced by the
++++     *   // hash stream.
++++     *   const data = input.read();
++++     *   if (data)
++++     *     hmac.update(data);
++++     *   else {
++++     *     console.log(`${hmac.digest('hex')} ${filename}`);
++++     *   }
++++     * });
++++     * ```
++++     * @since v0.1.94
++++     * @param options `stream.transform` options
++++     */
++++    function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
++++    // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
++++    type BinaryToTextEncoding = "base64" | "base64url" | "hex" | "binary";
++++    type CharacterEncoding = "utf8" | "utf-8" | "utf16le" | "utf-16le" | "latin1";
++++    type LegacyCharacterEncoding = "ascii" | "binary" | "ucs2" | "ucs-2";
++++    type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
++++    type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid";
++++    /**
++++     * The `Hash` class is a utility for creating hash digests of data. It can be
++++     * used in one of two ways:
++++     *
++++     * * As a `stream` that is both readable and writable, where data is written
++++     * to produce a computed hash digest on the readable side, or
++++     * * Using the `hash.update()` and `hash.digest()` methods to produce the
++++     * computed hash.
++++     *
++++     * The {@link createHash} method is used to create `Hash` instances. `Hash`objects are not to be created directly using the `new` keyword.
++++     *
++++     * Example: Using `Hash` objects as streams:
++++     *
++++     * ```js
++++     * const {
++++     *   createHash,
++++     * } = await import('node:crypto');
++++     *
++++     * const hash = createHash('sha256');
++++     *
++++     * hash.on('readable', () => {
++++     *   // Only one element is going to be produced by the
++++     *   // hash stream.
++++     *   const data = hash.read();
++++     *   if (data) {
++++     *     console.log(data.toString('hex'));
++++     *     // Prints:
++++     *     //   6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50
++++     *   }
++++     * });
++++     *
++++     * hash.write('some data to hash');
++++     * hash.end();
++++     * ```
++++     *
++++     * Example: Using `Hash` and piped streams:
++++     *
++++     * ```js
++++     * import { createReadStream } from 'node:fs';
++++     * import { stdout } from 'node:process';
++++     * const { createHash } = await import('node:crypto');
++++     *
++++     * const hash = createHash('sha256');
++++     *
++++     * const input = createReadStream('test.js');
++++     * input.pipe(hash).setEncoding('hex').pipe(stdout);
++++     * ```
++++     *
++++     * Example: Using the `hash.update()` and `hash.digest()` methods:
++++     *
++++     * ```js
++++     * const {
++++     *   createHash,
++++     * } = await import('node:crypto');
++++     *
++++     * const hash = createHash('sha256');
++++     *
++++     * hash.update('some data to hash');
++++     * console.log(hash.digest('hex'));
++++     * // Prints:
++++     * //   6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50
++++     * ```
++++     * @since v0.1.92
++++     */
++++    class Hash extends stream.Transform {
++++        private constructor();
++++        /**
++++         * Creates a new `Hash` object that contains a deep copy of the internal state
++++         * of the current `Hash` object.
++++         *
++++         * The optional `options` argument controls stream behavior. For XOF hash
++++         * functions such as `'shake256'`, the `outputLength` option can be used to
++++         * specify the desired output length in bytes.
++++         *
++++         * An error is thrown when an attempt is made to copy the `Hash` object after
++++         * its `hash.digest()` method has been called.
++++         *
++++         * ```js
++++         * // Calculate a rolling hash.
++++         * const {
++++         *   createHash,
++++         * } = await import('node:crypto');
++++         *
++++         * const hash = createHash('sha256');
++++         *
++++         * hash.update('one');
++++         * console.log(hash.copy().digest('hex'));
++++         *
++++         * hash.update('two');
++++         * console.log(hash.copy().digest('hex'));
++++         *
++++         * hash.update('three');
++++         * console.log(hash.copy().digest('hex'));
++++         *
++++         * // Etc.
++++         * ```
++++         * @since v13.1.0
++++         * @param options `stream.transform` options
++++         */
++++        copy(options?: HashOptions): Hash;
++++        /**
++++         * Updates the hash content with the given `data`, the encoding of which
++++         * is given in `inputEncoding`.
++++         * If `encoding` is not provided, and the `data` is a string, an
++++         * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
++++         *
++++         * This can be called many times with new data as it is streamed.
++++         * @since v0.1.92
++++         * @param inputEncoding The `encoding` of the `data` string.
++++         */
++++        update(data: BinaryLike): Hash;
++++        update(data: string, inputEncoding: Encoding): Hash;
++++        /**
++++         * Calculates the digest of all of the data passed to be hashed (using the `hash.update()` method).
++++         * If `encoding` is provided a string will be returned; otherwise
++++         * a `Buffer` is returned.
++++         *
++++         * The `Hash` object can not be used again after `hash.digest()` method has been
++++         * called. Multiple calls will cause an error to be thrown.
++++         * @since v0.1.92
++++         * @param encoding The `encoding` of the return value.
++++         */
++++        digest(): Buffer;
++++        digest(encoding: BinaryToTextEncoding): string;
++++    }
++++    /**
++++     * The `Hmac` class is a utility for creating cryptographic HMAC digests. It can
++++     * be used in one of two ways:
++++     *
++++     * * As a `stream` that is both readable and writable, where data is written
++++     * to produce a computed HMAC digest on the readable side, or
++++     * * Using the `hmac.update()` and `hmac.digest()` methods to produce the
++++     * computed HMAC digest.
++++     *
++++     * The {@link createHmac} method is used to create `Hmac` instances. `Hmac`objects are not to be created directly using the `new` keyword.
++++     *
++++     * Example: Using `Hmac` objects as streams:
++++     *
++++     * ```js
++++     * const {
++++     *   createHmac,
++++     * } = await import('node:crypto');
++++     *
++++     * const hmac = createHmac('sha256', 'a secret');
++++     *
++++     * hmac.on('readable', () => {
++++     *   // Only one element is going to be produced by the
++++     *   // hash stream.
++++     *   const data = hmac.read();
++++     *   if (data) {
++++     *     console.log(data.toString('hex'));
++++     *     // Prints:
++++     *     //   7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e
++++     *   }
++++     * });
++++     *
++++     * hmac.write('some data to hash');
++++     * hmac.end();
++++     * ```
++++     *
++++     * Example: Using `Hmac` and piped streams:
++++     *
++++     * ```js
++++     * import { createReadStream } from 'node:fs';
++++     * import { stdout } from 'node:process';
++++     * const {
++++     *   createHmac,
++++     * } = await import('node:crypto');
++++     *
++++     * const hmac = createHmac('sha256', 'a secret');
++++     *
++++     * const input = createReadStream('test.js');
++++     * input.pipe(hmac).pipe(stdout);
++++     * ```
++++     *
++++     * Example: Using the `hmac.update()` and `hmac.digest()` methods:
++++     *
++++     * ```js
++++     * const {
++++     *   createHmac,
++++     * } = await import('node:crypto');
++++     *
++++     * const hmac = createHmac('sha256', 'a secret');
++++     *
++++     * hmac.update('some data to hash');
++++     * console.log(hmac.digest('hex'));
++++     * // Prints:
++++     * //   7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e
++++     * ```
++++     * @since v0.1.94
++++     * @deprecated Since v20.13.0 Calling `Hmac` class directly with `Hmac()` or `new Hmac()` is deprecated due to being internals, not intended for public use. Please use the {@link createHmac} method to create Hmac instances.
++++     */
++++    class Hmac extends stream.Transform {
++++        private constructor();
++++        /**
++++         * Updates the `Hmac` content with the given `data`, the encoding of which
++++         * is given in `inputEncoding`.
++++         * If `encoding` is not provided, and the `data` is a string, an
++++         * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
++++         *
++++         * This can be called many times with new data as it is streamed.
++++         * @since v0.1.94
++++         * @param inputEncoding The `encoding` of the `data` string.
++++         */
++++        update(data: BinaryLike): Hmac;
++++        update(data: string, inputEncoding: Encoding): Hmac;
++++        /**
++++         * Calculates the HMAC digest of all of the data passed using `hmac.update()`.
++++         * If `encoding` is
++++         * provided a string is returned; otherwise a `Buffer` is returned;
++++         *
++++         * The `Hmac` object can not be used again after `hmac.digest()` has been
++++         * called. Multiple calls to `hmac.digest()` will result in an error being thrown.
++++         * @since v0.1.94
++++         * @param encoding The `encoding` of the return value.
++++         */
++++        digest(): Buffer;
++++        digest(encoding: BinaryToTextEncoding): string;
++++    }
++++    type KeyObjectType = "secret" | "public" | "private";
++++    interface KeyExportOptions<T extends KeyFormat> {
++++        type: "pkcs1" | "spki" | "pkcs8" | "sec1";
++++        format: T;
++++        cipher?: string | undefined;
++++        passphrase?: string | Buffer | undefined;
++++    }
++++    interface JwkKeyExportOptions {
++++        format: "jwk";
++++    }
++++    interface JsonWebKey {
++++        crv?: string | undefined;
++++        d?: string | undefined;
++++        dp?: string | undefined;
++++        dq?: string | undefined;
++++        e?: string | undefined;
++++        k?: string | undefined;
++++        kty?: string | undefined;
++++        n?: string | undefined;
++++        p?: string | undefined;
++++        q?: string | undefined;
++++        qi?: string | undefined;
++++        x?: string | undefined;
++++        y?: string | undefined;
++++        [key: string]: unknown;
++++    }
++++    interface AsymmetricKeyDetails {
++++        /**
++++         * Key size in bits (RSA, DSA).
++++         */
++++        modulusLength?: number | undefined;
++++        /**
++++         * Public exponent (RSA).
++++         */
++++        publicExponent?: bigint | undefined;
++++        /**
++++         * Name of the message digest (RSA-PSS).
++++         */
++++        hashAlgorithm?: string | undefined;
++++        /**
++++         * Name of the message digest used by MGF1 (RSA-PSS).
++++         */
++++        mgf1HashAlgorithm?: string | undefined;
++++        /**
++++         * Minimal salt length in bytes (RSA-PSS).
++++         */
++++        saltLength?: number | undefined;
++++        /**
++++         * Size of q in bits (DSA).
++++         */
++++        divisorLength?: number | undefined;
++++        /**
++++         * Name of the curve (EC).
++++         */
++++        namedCurve?: string | undefined;
++++    }
++++    /**
++++     * Node.js uses a `KeyObject` class to represent a symmetric or asymmetric key,
++++     * and each kind of key exposes different functions. The {@link createSecretKey}, {@link createPublicKey} and {@link createPrivateKey} methods are used to create `KeyObject`instances. `KeyObject`
++++     * objects are not to be created directly using the `new`keyword.
++++     *
++++     * Most applications should consider using the new `KeyObject` API instead of
++++     * passing keys as strings or `Buffer`s due to improved security features.
++++     *
++++     * `KeyObject` instances can be passed to other threads via `postMessage()`.
++++     * The receiver obtains a cloned `KeyObject`, and the `KeyObject` does not need to
++++     * be listed in the `transferList` argument.
++++     * @since v11.6.0
++++     */
++++    class KeyObject {
++++        private constructor();
++++        /**
++++         * Example: Converting a `CryptoKey` instance to a `KeyObject`:
++++         *
++++         * ```js
++++         * const { KeyObject } = await import('node:crypto');
++++         * const { subtle } = globalThis.crypto;
++++         *
++++         * const key = await subtle.generateKey({
++++         *   name: 'HMAC',
++++         *   hash: 'SHA-256',
++++         *   length: 256,
++++         * }, true, ['sign', 'verify']);
++++         *
++++         * const keyObject = KeyObject.from(key);
++++         * console.log(keyObject.symmetricKeySize);
++++         * // Prints: 32 (symmetric key size in bytes)
++++         * ```
++++         * @since v15.0.0
++++         */
++++        static from(key: webcrypto.CryptoKey): KeyObject;
++++        /**
++++         * For asymmetric keys, this property represents the type of the key. Supported key
++++         * types are:
++++         *
++++         * * `'rsa'` (OID 1.2.840.113549.1.1.1)
++++         * * `'rsa-pss'` (OID 1.2.840.113549.1.1.10)
++++         * * `'dsa'` (OID 1.2.840.10040.4.1)
++++         * * `'ec'` (OID 1.2.840.10045.2.1)
++++         * * `'x25519'` (OID 1.3.101.110)
++++         * * `'x448'` (OID 1.3.101.111)
++++         * * `'ed25519'` (OID 1.3.101.112)
++++         * * `'ed448'` (OID 1.3.101.113)
++++         * * `'dh'` (OID 1.2.840.113549.1.3.1)
++++         *
++++         * This property is `undefined` for unrecognized `KeyObject` types and symmetric
++++         * keys.
++++         * @since v11.6.0
++++         */
++++        asymmetricKeyType?: KeyType | undefined;
++++        /**
++++         * This property exists only on asymmetric keys. Depending on the type of the key,
++++         * this object contains information about the key. None of the information obtained
++++         * through this property can be used to uniquely identify a key or to compromise
++++         * the security of the key.
++++         *
++++         * For RSA-PSS keys, if the key material contains a `RSASSA-PSS-params` sequence,
++++         * the `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` properties will be
++++         * set.
++++         *
++++         * Other key details might be exposed via this API using additional attributes.
++++         * @since v15.7.0
++++         */
++++        asymmetricKeyDetails?: AsymmetricKeyDetails | undefined;
++++        /**
++++         * For symmetric keys, the following encoding options can be used:
++++         *
++++         * For public keys, the following encoding options can be used:
++++         *
++++         * For private keys, the following encoding options can be used:
++++         *
++++         * The result type depends on the selected encoding format, when PEM the
++++         * result is a string, when DER it will be a buffer containing the data
++++         * encoded as DER, when [JWK](https://tools.ietf.org/html/rfc7517) it will be an object.
++++         *
++++         * When [JWK](https://tools.ietf.org/html/rfc7517) encoding format was selected, all other encoding options are
++++         * ignored.
++++         *
++++         * PKCS#1, SEC1, and PKCS#8 type keys can be encrypted by using a combination of
++++         * the `cipher` and `format` options. The PKCS#8 `type` can be used with any`format` to encrypt any key algorithm (RSA, EC, or DH) by specifying a`cipher`. PKCS#1 and SEC1 can only be
++++         * encrypted by specifying a `cipher`when the PEM `format` is used. For maximum compatibility, use PKCS#8 for
++++         * encrypted private keys. Since PKCS#8 defines its own
++++         * encryption mechanism, PEM-level encryption is not supported when encrypting
++++         * a PKCS#8 key. See [RFC 5208](https://www.rfc-editor.org/rfc/rfc5208.txt) for PKCS#8 encryption and [RFC 1421](https://www.rfc-editor.org/rfc/rfc1421.txt) for
++++         * PKCS#1 and SEC1 encryption.
++++         * @since v11.6.0
++++         */
++++        export(options: KeyExportOptions<"pem">): string | Buffer;
++++        export(options?: KeyExportOptions<"der">): Buffer;
++++        export(options?: JwkKeyExportOptions): JsonWebKey;
++++        /**
++++         * Returns `true` or `false` depending on whether the keys have exactly the same
++++         * type, value, and parameters. This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack).
++++         * @since v17.7.0, v16.15.0
++++         * @param otherKeyObject A `KeyObject` with which to compare `keyObject`.
++++         */
++++        equals(otherKeyObject: KeyObject): boolean;
++++        /**
++++         * For secret keys, this property represents the size of the key in bytes. This
++++         * property is `undefined` for asymmetric keys.
++++         * @since v11.6.0
++++         */
++++        symmetricKeySize?: number | undefined;
++++        /**
++++         * Depending on the type of this `KeyObject`, this property is either`'secret'` for secret (symmetric) keys, `'public'` for public (asymmetric) keys
++++         * or `'private'` for private (asymmetric) keys.
++++         * @since v11.6.0
++++         */
++++        type: KeyObjectType;
++++    }
++++    type CipherCCMTypes = "aes-128-ccm" | "aes-192-ccm" | "aes-256-ccm" | "chacha20-poly1305";
++++    type CipherGCMTypes = "aes-128-gcm" | "aes-192-gcm" | "aes-256-gcm";
++++    type CipherOCBTypes = "aes-128-ocb" | "aes-192-ocb" | "aes-256-ocb";
++++    type BinaryLike = string | NodeJS.ArrayBufferView;
++++    type CipherKey = BinaryLike | KeyObject;
++++    interface CipherCCMOptions extends stream.TransformOptions {
++++        authTagLength: number;
++++    }
++++    interface CipherGCMOptions extends stream.TransformOptions {
++++        authTagLength?: number | undefined;
++++    }
++++    interface CipherOCBOptions extends stream.TransformOptions {
++++        authTagLength: number;
++++    }
++++    /**
++++     * Creates and returns a `Cipher` object that uses the given `algorithm` and `password`.
++++     *
++++     * The `options` argument controls stream behavior and is optional except when a
++++     * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
++++     * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication
++++     * tag that will be returned by `getAuthTag()` and defaults to 16 bytes.
++++     * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
++++     *
++++     * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
++++     * recent OpenSSL releases, `openssl list -cipher-algorithms` will
++++     * display the available cipher algorithms.
++++     *
++++     * The `password` is used to derive the cipher key and initialization vector (IV).
++++     * The value must be either a `'latin1'` encoded string, a `Buffer`, a`TypedArray`, or a `DataView`.
++++     *
++++     * **This function is semantically insecure for all**
++++     * **supported ciphers and fatally flawed for ciphers in counter mode (such as CTR,**
++++     * **GCM, or CCM).**
++++     *
++++     * The implementation of `crypto.createCipher()` derives keys using the OpenSSL
++++     * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) with the digest algorithm set to MD5, one
++++     * iteration, and no salt. The lack of salt allows dictionary attacks as the same
++++     * password always creates the same key. The low iteration count and
++++     * non-cryptographically secure hash algorithm allow passwords to be tested very
++++     * rapidly.
++++     *
++++     * In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) it is recommended that
++++     * developers derive a key and IV on
++++     * their own using {@link scrypt} and to use {@link createCipheriv} to create the `Cipher` object. Users should not use ciphers with counter mode
++++     * (e.g. CTR, GCM, or CCM) in `crypto.createCipher()`. A warning is emitted when
++++     * they are used in order to avoid the risk of IV reuse that causes
++++     * vulnerabilities. For the case when IV is reused in GCM, see [Nonce-Disrespecting Adversaries](https://github.com/nonce-disrespect/nonce-disrespect) for details.
++++     * @since v0.1.94
++++     * @deprecated Since v10.0.0 - Use {@link createCipheriv} instead.
++++     * @param options `stream.transform` options
++++     */
++++    function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM;
++++    /** @deprecated since v10.0.0 use `createCipheriv()` */
++++    function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM;
++++    /** @deprecated since v10.0.0 use `createCipheriv()` */
++++    function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher;
++++    /**
++++     * Creates and returns a `Cipher` object, with the given `algorithm`, `key` and
++++     * initialization vector (`iv`).
++++     *
++++     * The `options` argument controls stream behavior and is optional except when a
++++     * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
++++     * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication
++++     * tag that will be returned by `getAuthTag()` and defaults to 16 bytes.
++++     * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
++++     *
++++     * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
++++     * recent OpenSSL releases, `openssl list -cipher-algorithms` will
++++     * display the available cipher algorithms.
++++     *
++++     * The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded
++++     * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be
++++     * a `KeyObject` of type `secret`. If the cipher does not need
++++     * an initialization vector, `iv` may be `null`.
++++     *
++++     * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`.
++++     *
++++     * Initialization vectors should be unpredictable and unique; ideally, they will be
++++     * cryptographically random. They do not have to be secret: IVs are typically just
++++     * added to ciphertext messages unencrypted. It may sound contradictory that
++++     * something has to be unpredictable and unique, but does not have to be secret;
++++     * remember that an attacker must not be able to predict ahead of time what a
++++     * given IV will be.
++++     * @since v0.1.94
++++     * @param options `stream.transform` options
++++     */
++++    function createCipheriv(
++++        algorithm: CipherCCMTypes,
++++        key: CipherKey,
++++        iv: BinaryLike,
++++        options: CipherCCMOptions,
++++    ): CipherCCM;
++++    function createCipheriv(
++++        algorithm: CipherOCBTypes,
++++        key: CipherKey,
++++        iv: BinaryLike,
++++        options: CipherOCBOptions,
++++    ): CipherOCB;
++++    function createCipheriv(
++++        algorithm: CipherGCMTypes,
++++        key: CipherKey,
++++        iv: BinaryLike,
++++        options?: CipherGCMOptions,
++++    ): CipherGCM;
++++    function createCipheriv(
++++        algorithm: string,
++++        key: CipherKey,
++++        iv: BinaryLike | null,
++++        options?: stream.TransformOptions,
++++    ): Cipher;
++++    /**
++++     * Instances of the `Cipher` class are used to encrypt data. The class can be
++++     * used in one of two ways:
++++     *
++++     * * As a `stream` that is both readable and writable, where plain unencrypted
++++     * data is written to produce encrypted data on the readable side, or
++++     * * Using the `cipher.update()` and `cipher.final()` methods to produce
++++     * the encrypted data.
++++     *
++++     * The {@link createCipher} or {@link createCipheriv} methods are
++++     * used to create `Cipher` instances. `Cipher` objects are not to be created
++++     * directly using the `new` keyword.
++++     *
++++     * Example: Using `Cipher` objects as streams:
++++     *
++++     * ```js
++++     * const {
++++     *   scrypt,
++++     *   randomFill,
++++     *   createCipheriv,
++++     * } = await import('node:crypto');
++++     *
++++     * const algorithm = 'aes-192-cbc';
++++     * const password = 'Password used to generate key';
++++     *
++++     * // First, we'll generate the key. The key length is dependent on the algorithm.
++++     * // In this case for aes192, it is 24 bytes (192 bits).
++++     * scrypt(password, 'salt', 24, (err, key) => {
++++     *   if (err) throw err;
++++     *   // Then, we'll generate a random initialization vector
++++     *   randomFill(new Uint8Array(16), (err, iv) => {
++++     *     if (err) throw err;
++++     *
++++     *     // Once we have the key and iv, we can create and use the cipher...
++++     *     const cipher = createCipheriv(algorithm, key, iv);
++++     *
++++     *     let encrypted = '';
++++     *     cipher.setEncoding('hex');
++++     *
++++     *     cipher.on('data', (chunk) => encrypted += chunk);
++++     *     cipher.on('end', () => console.log(encrypted));
++++     *
++++     *     cipher.write('some clear text data');
++++     *     cipher.end();
++++     *   });
++++     * });
++++     * ```
++++     *
++++     * Example: Using `Cipher` and piped streams:
++++     *
++++     * ```js
++++     * import {
++++     *   createReadStream,
++++     *   createWriteStream,
++++     * } from 'node:fs';
++++     *
++++     * import {
++++     *   pipeline,
++++     * } from 'node:stream';
++++     *
++++     * const {
++++     *   scrypt,
++++     *   randomFill,
++++     *   createCipheriv,
++++     * } = await import('node:crypto');
++++     *
++++     * const algorithm = 'aes-192-cbc';
++++     * const password = 'Password used to generate key';
++++     *
++++     * // First, we'll generate the key. The key length is dependent on the algorithm.
++++     * // In this case for aes192, it is 24 bytes (192 bits).
++++     * scrypt(password, 'salt', 24, (err, key) => {
++++     *   if (err) throw err;
++++     *   // Then, we'll generate a random initialization vector
++++     *   randomFill(new Uint8Array(16), (err, iv) => {
++++     *     if (err) throw err;
++++     *
++++     *     const cipher = createCipheriv(algorithm, key, iv);
++++     *
++++     *     const input = createReadStream('test.js');
++++     *     const output = createWriteStream('test.enc');
++++     *
++++     *     pipeline(input, cipher, output, (err) => {
++++     *       if (err) throw err;
++++     *     });
++++     *   });
++++     * });
++++     * ```
++++     *
++++     * Example: Using the `cipher.update()` and `cipher.final()` methods:
++++     *
++++     * ```js
++++     * const {
++++     *   scrypt,
++++     *   randomFill,
++++     *   createCipheriv,
++++     * } = await import('node:crypto');
++++     *
++++     * const algorithm = 'aes-192-cbc';
++++     * const password = 'Password used to generate key';
++++     *
++++     * // First, we'll generate the key. The key length is dependent on the algorithm.
++++     * // In this case for aes192, it is 24 bytes (192 bits).
++++     * scrypt(password, 'salt', 24, (err, key) => {
++++     *   if (err) throw err;
++++     *   // Then, we'll generate a random initialization vector
++++     *   randomFill(new Uint8Array(16), (err, iv) => {
++++     *     if (err) throw err;
++++     *
++++     *     const cipher = createCipheriv(algorithm, key, iv);
++++     *
++++     *     let encrypted = cipher.update('some clear text data', 'utf8', 'hex');
++++     *     encrypted += cipher.final('hex');
++++     *     console.log(encrypted);
++++     *   });
++++     * });
++++     * ```
++++     * @since v0.1.94
++++     */
++++    class Cipher extends stream.Transform {
++++        private constructor();
++++        /**
++++         * Updates the cipher with `data`. If the `inputEncoding` argument is given,
++++         * the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`, `TypedArray`, or `DataView`. If `data` is a `Buffer`,
++++         * `TypedArray`, or `DataView`, then `inputEncoding` is ignored.
++++         *
++++         * The `outputEncoding` specifies the output format of the enciphered
++++         * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned.
++++         *
++++         * The `cipher.update()` method can be called multiple times with new data until `cipher.final()` is called. Calling `cipher.update()` after `cipher.final()` will result in an error being
++++         * thrown.
++++         * @since v0.1.94
++++         * @param inputEncoding The `encoding` of the data.
++++         * @param outputEncoding The `encoding` of the return value.
++++         */
++++        update(data: BinaryLike): Buffer;
++++        update(data: string, inputEncoding: Encoding): Buffer;
++++        update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string;
++++        update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string;
++++        /**
++++         * Once the `cipher.final()` method has been called, the `Cipher` object can no
++++         * longer be used to encrypt data. Attempts to call `cipher.final()` more than
++++         * once will result in an error being thrown.
++++         * @since v0.1.94
++++         * @param outputEncoding The `encoding` of the return value.
++++         * @return Any remaining enciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned.
++++         */
++++        final(): Buffer;
++++        final(outputEncoding: BufferEncoding): string;
++++        /**
++++         * When using block encryption algorithms, the `Cipher` class will automatically
++++         * add padding to the input data to the appropriate block size. To disable the
++++         * default padding call `cipher.setAutoPadding(false)`.
++++         *
++++         * When `autoPadding` is `false`, the length of the entire input data must be a
++++         * multiple of the cipher's block size or `cipher.final()` will throw an error.
++++         * Disabling automatic padding is useful for non-standard padding, for instance
++++         * using `0x0` instead of PKCS padding.
++++         *
++++         * The `cipher.setAutoPadding()` method must be called before `cipher.final()`.
++++         * @since v0.7.1
++++         * @param [autoPadding=true]
++++         * @return for method chaining.
++++         */
++++        setAutoPadding(autoPadding?: boolean): this;
++++    }
++++    interface CipherCCM extends Cipher {
++++        setAAD(
++++            buffer: NodeJS.ArrayBufferView,
++++            options: {
++++                plaintextLength: number;
++++            },
++++        ): this;
++++        getAuthTag(): Buffer;
++++    }
++++    interface CipherGCM extends Cipher {
++++        setAAD(
++++            buffer: NodeJS.ArrayBufferView,
++++            options?: {
++++                plaintextLength: number;
++++            },
++++        ): this;
++++        getAuthTag(): Buffer;
++++    }
++++    interface CipherOCB extends Cipher {
++++        setAAD(
++++            buffer: NodeJS.ArrayBufferView,
++++            options?: {
++++                plaintextLength: number;
++++            },
++++        ): this;
++++        getAuthTag(): Buffer;
++++    }
++++    /**
++++     * Creates and returns a `Decipher` object that uses the given `algorithm` and `password` (key).
++++     *
++++     * The `options` argument controls stream behavior and is optional except when a
++++     * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the
++++     * authentication tag in bytes, see `CCM mode`.
++++     * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
++++     *
++++     * **This function is semantically insecure for all**
++++     * **supported ciphers and fatally flawed for ciphers in counter mode (such as CTR,**
++++     * **GCM, or CCM).**
++++     *
++++     * The implementation of `crypto.createDecipher()` derives keys using the OpenSSL
++++     * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) with the digest algorithm set to MD5, one
++++     * iteration, and no salt. The lack of salt allows dictionary attacks as the same
++++     * password always creates the same key. The low iteration count and
++++     * non-cryptographically secure hash algorithm allow passwords to be tested very
++++     * rapidly.
++++     *
++++     * In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) it is recommended that
++++     * developers derive a key and IV on
++++     * their own using {@link scrypt} and to use {@link createDecipheriv} to create the `Decipher` object.
++++     * @since v0.1.94
++++     * @deprecated Since v10.0.0 - Use {@link createDecipheriv} instead.
++++     * @param options `stream.transform` options
++++     */
++++    function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM;
++++    /** @deprecated since v10.0.0 use `createDecipheriv()` */
++++    function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM;
++++    /** @deprecated since v10.0.0 use `createDecipheriv()` */
++++    function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher;
++++    /**
++++     * Creates and returns a `Decipher` object that uses the given `algorithm`, `key` and initialization vector (`iv`).
++++     *
++++     * The `options` argument controls stream behavior and is optional except when a
++++     * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the
++++     * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength` option is not required but can be used to restrict accepted authentication tags
++++     * to those with the specified length.
++++     * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
++++     *
++++     * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
++++     * recent OpenSSL releases, `openssl list -cipher-algorithms` will
++++     * display the available cipher algorithms.
++++     *
++++     * The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded
++++     * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be
++++     * a `KeyObject` of type `secret`. If the cipher does not need
++++     * an initialization vector, `iv` may be `null`.
++++     *
++++     * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`.
++++     *
++++     * Initialization vectors should be unpredictable and unique; ideally, they will be
++++     * cryptographically random. They do not have to be secret: IVs are typically just
++++     * added to ciphertext messages unencrypted. It may sound contradictory that
++++     * something has to be unpredictable and unique, but does not have to be secret;
++++     * remember that an attacker must not be able to predict ahead of time what a given
++++     * IV will be.
++++     * @since v0.1.94
++++     * @param options `stream.transform` options
++++     */
++++    function createDecipheriv(
++++        algorithm: CipherCCMTypes,
++++        key: CipherKey,
++++        iv: BinaryLike,
++++        options: CipherCCMOptions,
++++    ): DecipherCCM;
++++    function createDecipheriv(
++++        algorithm: CipherOCBTypes,
++++        key: CipherKey,
++++        iv: BinaryLike,
++++        options: CipherOCBOptions,
++++    ): DecipherOCB;
++++    function createDecipheriv(
++++        algorithm: CipherGCMTypes,
++++        key: CipherKey,
++++        iv: BinaryLike,
++++        options?: CipherGCMOptions,
++++    ): DecipherGCM;
++++    function createDecipheriv(
++++        algorithm: string,
++++        key: CipherKey,
++++        iv: BinaryLike | null,
++++        options?: stream.TransformOptions,
++++    ): Decipher;
++++    /**
++++     * Instances of the `Decipher` class are used to decrypt data. The class can be
++++     * used in one of two ways:
++++     *
++++     * * As a `stream` that is both readable and writable, where plain encrypted
++++     * data is written to produce unencrypted data on the readable side, or
++++     * * Using the `decipher.update()` and `decipher.final()` methods to
++++     * produce the unencrypted data.
++++     *
++++     * The {@link createDecipher} or {@link createDecipheriv} methods are
++++     * used to create `Decipher` instances. `Decipher` objects are not to be created
++++     * directly using the `new` keyword.
++++     *
++++     * Example: Using `Decipher` objects as streams:
++++     *
++++     * ```js
++++     * import { Buffer } from 'node:buffer';
++++     * const {
++++     *   scryptSync,
++++     *   createDecipheriv,
++++     * } = await import('node:crypto');
++++     *
++++     * const algorithm = 'aes-192-cbc';
++++     * const password = 'Password used to generate key';
++++     * // Key length is dependent on the algorithm. In this case for aes192, it is
++++     * // 24 bytes (192 bits).
++++     * // Use the async `crypto.scrypt()` instead.
++++     * const key = scryptSync(password, 'salt', 24);
++++     * // The IV is usually passed along with the ciphertext.
++++     * const iv = Buffer.alloc(16, 0); // Initialization vector.
++++     *
++++     * const decipher = createDecipheriv(algorithm, key, iv);
++++     *
++++     * let decrypted = '';
++++     * decipher.on('readable', () => {
++++     *   let chunk;
++++     *   while (null !== (chunk = decipher.read())) {
++++     *     decrypted += chunk.toString('utf8');
++++     *   }
++++     * });
++++     * decipher.on('end', () => {
++++     *   console.log(decrypted);
++++     *   // Prints: some clear text data
++++     * });
++++     *
++++     * // Encrypted with same algorithm, key and iv.
++++     * const encrypted =
++++     *   'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa';
++++     * decipher.write(encrypted, 'hex');
++++     * decipher.end();
++++     * ```
++++     *
++++     * Example: Using `Decipher` and piped streams:
++++     *
++++     * ```js
++++     * import {
++++     *   createReadStream,
++++     *   createWriteStream,
++++     * } from 'node:fs';
++++     * import { Buffer } from 'node:buffer';
++++     * const {
++++     *   scryptSync,
++++     *   createDecipheriv,
++++     * } = await import('node:crypto');
++++     *
++++     * const algorithm = 'aes-192-cbc';
++++     * const password = 'Password used to generate key';
++++     * // Use the async `crypto.scrypt()` instead.
++++     * const key = scryptSync(password, 'salt', 24);
++++     * // The IV is usually passed along with the ciphertext.
++++     * const iv = Buffer.alloc(16, 0); // Initialization vector.
++++     *
++++     * const decipher = createDecipheriv(algorithm, key, iv);
++++     *
++++     * const input = createReadStream('test.enc');
++++     * const output = createWriteStream('test.js');
++++     *
++++     * input.pipe(decipher).pipe(output);
++++     * ```
++++     *
++++     * Example: Using the `decipher.update()` and `decipher.final()` methods:
++++     *
++++     * ```js
++++     * import { Buffer } from 'node:buffer';
++++     * const {
++++     *   scryptSync,
++++     *   createDecipheriv,
++++     * } = await import('node:crypto');
++++     *
++++     * const algorithm = 'aes-192-cbc';
++++     * const password = 'Password used to generate key';
++++     * // Use the async `crypto.scrypt()` instead.
++++     * const key = scryptSync(password, 'salt', 24);
++++     * // The IV is usually passed along with the ciphertext.
++++     * const iv = Buffer.alloc(16, 0); // Initialization vector.
++++     *
++++     * const decipher = createDecipheriv(algorithm, key, iv);
++++     *
++++     * // Encrypted using same algorithm, key and iv.
++++     * const encrypted =
++++     *   'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa';
++++     * let decrypted = decipher.update(encrypted, 'hex', 'utf8');
++++     * decrypted += decipher.final('utf8');
++++     * console.log(decrypted);
++++     * // Prints: some clear text data
++++     * ```
++++     * @since v0.1.94
++++     */
++++    class Decipher extends stream.Transform {
++++        private constructor();
++++        /**
++++         * Updates the decipher with `data`. If the `inputEncoding` argument is given,
++++         * the `data` argument is a string using the specified encoding. If the `inputEncoding` argument is not given, `data` must be a `Buffer`. If `data` is a `Buffer` then `inputEncoding` is
++++         * ignored.
++++         *
++++         * The `outputEncoding` specifies the output format of the enciphered
++++         * data. If the `outputEncoding` is specified, a string using the specified encoding is returned. If no `outputEncoding` is provided, a `Buffer` is returned.
++++         *
++++         * The `decipher.update()` method can be called multiple times with new data until `decipher.final()` is called. Calling `decipher.update()` after `decipher.final()` will result in an error
++++         * being thrown.
++++         * @since v0.1.94
++++         * @param inputEncoding The `encoding` of the `data` string.
++++         * @param outputEncoding The `encoding` of the return value.
++++         */
++++        update(data: NodeJS.ArrayBufferView): Buffer;
++++        update(data: string, inputEncoding: Encoding): Buffer;
++++        update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string;
++++        update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string;
++++        /**
++++         * Once the `decipher.final()` method has been called, the `Decipher` object can
++++         * no longer be used to decrypt data. Attempts to call `decipher.final()` more
++++         * than once will result in an error being thrown.
++++         * @since v0.1.94
++++         * @param outputEncoding The `encoding` of the return value.
++++         * @return Any remaining deciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned.
++++         */
++++        final(): Buffer;
++++        final(outputEncoding: BufferEncoding): string;
++++        /**
++++         * When data has been encrypted without standard block padding, calling `decipher.setAutoPadding(false)` will disable automatic padding to prevent `decipher.final()` from checking for and
++++         * removing padding.
++++         *
++++         * Turning auto padding off will only work if the input data's length is a
++++         * multiple of the ciphers block size.
++++         *
++++         * The `decipher.setAutoPadding()` method must be called before `decipher.final()`.
++++         * @since v0.7.1
++++         * @param [autoPadding=true]
++++         * @return for method chaining.
++++         */
++++        setAutoPadding(auto_padding?: boolean): this;
++++    }
++++    interface DecipherCCM extends Decipher {
++++        setAuthTag(buffer: NodeJS.ArrayBufferView): this;
++++        setAAD(
++++            buffer: NodeJS.ArrayBufferView,
++++            options: {
++++                plaintextLength: number;
++++            },
++++        ): this;
++++    }
++++    interface DecipherGCM extends Decipher {
++++        setAuthTag(buffer: NodeJS.ArrayBufferView): this;
++++        setAAD(
++++            buffer: NodeJS.ArrayBufferView,
++++            options?: {
++++                plaintextLength: number;
++++            },
++++        ): this;
++++    }
++++    interface DecipherOCB extends Decipher {
++++        setAuthTag(buffer: NodeJS.ArrayBufferView): this;
++++        setAAD(
++++            buffer: NodeJS.ArrayBufferView,
++++            options?: {
++++                plaintextLength: number;
++++            },
++++        ): this;
++++    }
++++    interface PrivateKeyInput {
++++        key: string | Buffer;
++++        format?: KeyFormat | undefined;
++++        type?: "pkcs1" | "pkcs8" | "sec1" | undefined;
++++        passphrase?: string | Buffer | undefined;
++++        encoding?: string | undefined;
++++    }
++++    interface PublicKeyInput {
++++        key: string | Buffer;
++++        format?: KeyFormat | undefined;
++++        type?: "pkcs1" | "spki" | undefined;
++++        encoding?: string | undefined;
++++    }
++++    /**
++++     * Asynchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`.
++++     *
++++     * ```js
++++     * const {
++++     *   generateKey,
++++     * } = await import('node:crypto');
++++     *
++++     * generateKey('hmac', { length: 512 }, (err, key) => {
++++     *   if (err) throw err;
++++     *   console.log(key.export().toString('hex'));  // 46e..........620
++++     * });
++++     * ```
++++     *
++++     * The size of a generated HMAC key should not exceed the block size of the
++++     * underlying hash function. See {@link createHmac} for more information.
++++     * @since v15.0.0
++++     * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`.
++++     */
++++    function generateKey(
++++        type: "hmac" | "aes",
++++        options: {
++++            length: number;
++++        },
++++        callback: (err: Error | null, key: KeyObject) => void,
++++    ): void;
++++    /**
++++     * Synchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`.
++++     *
++++     * ```js
++++     * const {
++++     *   generateKeySync,
++++     * } = await import('node:crypto');
++++     *
++++     * const key = generateKeySync('hmac', { length: 512 });
++++     * console.log(key.export().toString('hex'));  // e89..........41e
++++     * ```
++++     *
++++     * The size of a generated HMAC key should not exceed the block size of the
++++     * underlying hash function. See {@link createHmac} for more information.
++++     * @since v15.0.0
++++     * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`.
++++     */
++++    function generateKeySync(
++++        type: "hmac" | "aes",
++++        options: {
++++            length: number;
++++        },
++++    ): KeyObject;
++++    interface JsonWebKeyInput {
++++        key: JsonWebKey;
++++        format: "jwk";
++++    }
++++    /**
++++     * Creates and returns a new key object containing a private key. If `key` is a
++++     * string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key` must be an object with the properties described above.
++++     *
++++     * If the private key is encrypted, a `passphrase` must be specified. The length
++++     * of the passphrase is limited to 1024 bytes.
++++     * @since v11.6.0
++++     */
++++    function createPrivateKey(key: PrivateKeyInput | string | Buffer | JsonWebKeyInput): KeyObject;
++++    /**
++++     * Creates and returns a new key object containing a public key. If `key` is a
++++     * string or `Buffer`, `format` is assumed to be `'pem'`; if `key` is a `KeyObject` with type `'private'`, the public key is derived from the given private key;
++++     * otherwise, `key` must be an object with the properties described above.
++++     *
++++     * If the format is `'pem'`, the `'key'` may also be an X.509 certificate.
++++     *
++++     * Because public keys can be derived from private keys, a private key may be
++++     * passed instead of a public key. In that case, this function behaves as if {@link createPrivateKey} had been called, except that the type of the
++++     * returned `KeyObject` will be `'public'` and that the private key cannot be
++++     * extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type `'private'` is given, a new `KeyObject` with type `'public'` will be returned
++++     * and it will be impossible to extract the private key from the returned object.
++++     * @since v11.6.0
++++     */
++++    function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject | JsonWebKeyInput): KeyObject;
++++    /**
++++     * Creates and returns a new key object containing a secret key for symmetric
++++     * encryption or `Hmac`.
++++     * @since v11.6.0
++++     * @param encoding The string encoding when `key` is a string.
++++     */
++++    function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject;
++++    function createSecretKey(key: string, encoding: BufferEncoding): KeyObject;
++++    /**
++++     * Creates and returns a `Sign` object that uses the given `algorithm`. Use {@link getHashes} to obtain the names of the available digest algorithms.
++++     * Optional `options` argument controls the `stream.Writable` behavior.
++++     *
++++     * In some cases, a `Sign` instance can be created using the name of a signature
++++     * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use
++++     * the corresponding digest algorithm. This does not work for all signature
++++     * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest
++++     * algorithm names.
++++     * @since v0.1.92
++++     * @param options `stream.Writable` options
++++     */
++++    function createSign(algorithm: string, options?: stream.WritableOptions): Sign;
++++    type DSAEncoding = "der" | "ieee-p1363";
++++    interface SigningOptions {
++++        /**
++++         * @see crypto.constants.RSA_PKCS1_PADDING
++++         */
++++        padding?: number | undefined;
++++        saltLength?: number | undefined;
++++        dsaEncoding?: DSAEncoding | undefined;
++++    }
++++    interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {}
++++    interface SignKeyObjectInput extends SigningOptions {
++++        key: KeyObject;
++++    }
++++    interface SignJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {}
++++    interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {}
++++    interface VerifyKeyObjectInput extends SigningOptions {
++++        key: KeyObject;
++++    }
++++    interface VerifyJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {}
++++    type KeyLike = string | Buffer | KeyObject;
++++    /**
++++     * The `Sign` class is a utility for generating signatures. It can be used in one
++++     * of two ways:
++++     *
++++     * * As a writable `stream`, where data to be signed is written and the `sign.sign()` method is used to generate and return the signature, or
++++     * * Using the `sign.update()` and `sign.sign()` methods to produce the
++++     * signature.
++++     *
++++     * The {@link createSign} method is used to create `Sign` instances. The
++++     * argument is the string name of the hash function to use. `Sign` objects are not
++++     * to be created directly using the `new` keyword.
++++     *
++++     * Example: Using `Sign` and `Verify` objects as streams:
++++     *
++++     * ```js
++++     * const {
++++     *   generateKeyPairSync,
++++     *   createSign,
++++     *   createVerify,
++++     * } = await import('node:crypto');
++++     *
++++     * const { privateKey, publicKey } = generateKeyPairSync('ec', {
++++     *   namedCurve: 'sect239k1',
++++     * });
++++     *
++++     * const sign = createSign('SHA256');
++++     * sign.write('some data to sign');
++++     * sign.end();
++++     * const signature = sign.sign(privateKey, 'hex');
++++     *
++++     * const verify = createVerify('SHA256');
++++     * verify.write('some data to sign');
++++     * verify.end();
++++     * console.log(verify.verify(publicKey, signature, 'hex'));
++++     * // Prints: true
++++     * ```
++++     *
++++     * Example: Using the `sign.update()` and `verify.update()` methods:
++++     *
++++     * ```js
++++     * const {
++++     *   generateKeyPairSync,
++++     *   createSign,
++++     *   createVerify,
++++     * } = await import('node:crypto');
++++     *
++++     * const { privateKey, publicKey } = generateKeyPairSync('rsa', {
++++     *   modulusLength: 2048,
++++     * });
++++     *
++++     * const sign = createSign('SHA256');
++++     * sign.update('some data to sign');
++++     * sign.end();
++++     * const signature = sign.sign(privateKey);
++++     *
++++     * const verify = createVerify('SHA256');
++++     * verify.update('some data to sign');
++++     * verify.end();
++++     * console.log(verify.verify(publicKey, signature));
++++     * // Prints: true
++++     * ```
++++     * @since v0.1.92
++++     */
++++    class Sign extends stream.Writable {
++++        private constructor();
++++        /**
++++         * Updates the `Sign` content with the given `data`, the encoding of which
++++         * is given in `inputEncoding`.
++++         * If `encoding` is not provided, and the `data` is a string, an
++++         * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
++++         *
++++         * This can be called many times with new data as it is streamed.
++++         * @since v0.1.92
++++         * @param inputEncoding The `encoding` of the `data` string.
++++         */
++++        update(data: BinaryLike): this;
++++        update(data: string, inputEncoding: Encoding): this;
++++        /**
++++         * Calculates the signature on all the data passed through using either `sign.update()` or `sign.write()`.
++++         *
++++         * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
++++         * object, the following additional properties can be passed:
++++         *
++++         * If `outputEncoding` is provided a string is returned; otherwise a `Buffer` is returned.
++++         *
++++         * The `Sign` object can not be again used after `sign.sign()` method has been
++++         * called. Multiple calls to `sign.sign()` will result in an error being thrown.
++++         * @since v0.1.92
++++         */
++++        sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput): Buffer;
++++        sign(
++++            privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
++++            outputFormat: BinaryToTextEncoding,
++++        ): string;
++++    }
++++    /**
++++     * Creates and returns a `Verify` object that uses the given algorithm.
++++     * Use {@link getHashes} to obtain an array of names of the available
++++     * signing algorithms. Optional `options` argument controls the `stream.Writable` behavior.
++++     *
++++     * In some cases, a `Verify` instance can be created using the name of a signature
++++     * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use
++++     * the corresponding digest algorithm. This does not work for all signature
++++     * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest
++++     * algorithm names.
++++     * @since v0.1.92
++++     * @param options `stream.Writable` options
++++     */
++++    function createVerify(algorithm: string, options?: stream.WritableOptions): Verify;
++++    /**
++++     * The `Verify` class is a utility for verifying signatures. It can be used in one
++++     * of two ways:
++++     *
++++     * * As a writable `stream` where written data is used to validate against the
++++     * supplied signature, or
++++     * * Using the `verify.update()` and `verify.verify()` methods to verify
++++     * the signature.
++++     *
++++     * The {@link createVerify} method is used to create `Verify` instances. `Verify` objects are not to be created directly using the `new` keyword.
++++     *
++++     * See `Sign` for examples.
++++     * @since v0.1.92
++++     */
++++    class Verify extends stream.Writable {
++++        private constructor();
++++        /**
++++         * Updates the `Verify` content with the given `data`, the encoding of which
++++         * is given in `inputEncoding`.
++++         * If `inputEncoding` is not provided, and the `data` is a string, an
++++         * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or `DataView`, then `inputEncoding` is ignored.
++++         *
++++         * This can be called many times with new data as it is streamed.
++++         * @since v0.1.92
++++         * @param inputEncoding The `encoding` of the `data` string.
++++         */
++++        update(data: BinaryLike): Verify;
++++        update(data: string, inputEncoding: Encoding): Verify;
++++        /**
++++         * Verifies the provided data using the given `object` and `signature`.
++++         *
++++         * If `object` is not a `KeyObject`, this function behaves as if `object` had been passed to {@link createPublicKey}. If it is an
++++         * object, the following additional properties can be passed:
++++         *
++++         * The `signature` argument is the previously calculated signature for the data, in
++++         * the `signatureEncoding`.
++++         * If a `signatureEncoding` is specified, the `signature` is expected to be a
++++         * string; otherwise `signature` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
++++         *
++++         * The `verify` object can not be used again after `verify.verify()` has been
++++         * called. Multiple calls to `verify.verify()` will result in an error being
++++         * thrown.
++++         *
++++         * Because public keys can be derived from private keys, a private key may
++++         * be passed instead of a public key.
++++         * @since v0.1.92
++++         */
++++        verify(
++++            object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
++++            signature: NodeJS.ArrayBufferView,
++++        ): boolean;
++++        verify(
++++            object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
++++            signature: string,
++++            signature_format?: BinaryToTextEncoding,
++++        ): boolean;
++++    }
++++    /**
++++     * Creates a `DiffieHellman` key exchange object using the supplied `prime` and an
++++     * optional specific `generator`.
++++     *
++++     * The `generator` argument can be a number, string, or `Buffer`. If `generator` is not specified, the value `2` is used.
++++     *
++++     * If `primeEncoding` is specified, `prime` is expected to be a string; otherwise
++++     * a `Buffer`, `TypedArray`, or `DataView` is expected.
++++     *
++++     * If `generatorEncoding` is specified, `generator` is expected to be a string;
++++     * otherwise a number, `Buffer`, `TypedArray`, or `DataView` is expected.
++++     * @since v0.11.12
++++     * @param primeEncoding The `encoding` of the `prime` string.
++++     * @param [generator=2]
++++     * @param generatorEncoding The `encoding` of the `generator` string.
++++     */
++++    function createDiffieHellman(primeLength: number, generator?: number): DiffieHellman;
++++    function createDiffieHellman(
++++        prime: ArrayBuffer | NodeJS.ArrayBufferView,
++++        generator?: number | ArrayBuffer | NodeJS.ArrayBufferView,
++++    ): DiffieHellman;
++++    function createDiffieHellman(
++++        prime: ArrayBuffer | NodeJS.ArrayBufferView,
++++        generator: string,
++++        generatorEncoding: BinaryToTextEncoding,
++++    ): DiffieHellman;
++++    function createDiffieHellman(
++++        prime: string,
++++        primeEncoding: BinaryToTextEncoding,
++++        generator?: number | ArrayBuffer | NodeJS.ArrayBufferView,
++++    ): DiffieHellman;
++++    function createDiffieHellman(
++++        prime: string,
++++        primeEncoding: BinaryToTextEncoding,
++++        generator: string,
++++        generatorEncoding: BinaryToTextEncoding,
++++    ): DiffieHellman;
++++    /**
++++     * The `DiffieHellman` class is a utility for creating Diffie-Hellman key
++++     * exchanges.
++++     *
++++     * Instances of the `DiffieHellman` class can be created using the {@link createDiffieHellman} function.
++++     *
++++     * ```js
++++     * import assert from 'node:assert';
++++     *
++++     * const {
++++     *   createDiffieHellman,
++++     * } = await import('node:crypto');
++++     *
++++     * // Generate Alice's keys...
++++     * const alice = createDiffieHellman(2048);
++++     * const aliceKey = alice.generateKeys();
++++     *
++++     * // Generate Bob's keys...
++++     * const bob = createDiffieHellman(alice.getPrime(), alice.getGenerator());
++++     * const bobKey = bob.generateKeys();
++++     *
++++     * // Exchange and generate the secret...
++++     * const aliceSecret = alice.computeSecret(bobKey);
++++     * const bobSecret = bob.computeSecret(aliceKey);
++++     *
++++     * // OK
++++     * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex'));
++++     * ```
++++     * @since v0.5.0
++++     */
++++    class DiffieHellman {
++++        private constructor();
++++        /**
++++         * Generates private and public Diffie-Hellman key values unless they have been
++++         * generated or computed already, and returns
++++         * the public key in the specified `encoding`. This key should be
++++         * transferred to the other party.
++++         * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
++++         *
++++         * This function is a thin wrapper around [`DH_generate_key()`](https://www.openssl.org/docs/man3.0/man3/DH_generate_key.html). In particular,
++++         * once a private key has been generated or set, calling this function only updates
++++         * the public key but does not generate a new private key.
++++         * @since v0.5.0
++++         * @param encoding The `encoding` of the return value.
++++         */
++++        generateKeys(): Buffer;
++++        generateKeys(encoding: BinaryToTextEncoding): string;
++++        /**
++++         * Computes the shared secret using `otherPublicKey` as the other
++++         * party's public key and returns the computed shared secret. The supplied
++++         * key is interpreted using the specified `inputEncoding`, and secret is
++++         * encoded using specified `outputEncoding`.
++++         * If the `inputEncoding` is not
++++         * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
++++         *
++++         * If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned.
++++         * @since v0.5.0
++++         * @param inputEncoding The `encoding` of an `otherPublicKey` string.
++++         * @param outputEncoding The `encoding` of the return value.
++++         */
++++        computeSecret(otherPublicKey: NodeJS.ArrayBufferView, inputEncoding?: null, outputEncoding?: null): Buffer;
++++        computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding?: null): Buffer;
++++        computeSecret(
++++            otherPublicKey: NodeJS.ArrayBufferView,
++++            inputEncoding: null,
++++            outputEncoding: BinaryToTextEncoding,
++++        ): string;
++++        computeSecret(
++++            otherPublicKey: string,
++++            inputEncoding: BinaryToTextEncoding,
++++            outputEncoding: BinaryToTextEncoding,
++++        ): string;
++++        /**
++++         * Returns the Diffie-Hellman prime in the specified `encoding`.
++++         * If `encoding` is provided a string is
++++         * returned; otherwise a `Buffer` is returned.
++++         * @since v0.5.0
++++         * @param encoding The `encoding` of the return value.
++++         */
++++        getPrime(): Buffer;
++++        getPrime(encoding: BinaryToTextEncoding): string;
++++        /**
++++         * Returns the Diffie-Hellman generator in the specified `encoding`.
++++         * If `encoding` is provided a string is
++++         * returned; otherwise a `Buffer` is returned.
++++         * @since v0.5.0
++++         * @param encoding The `encoding` of the return value.
++++         */
++++        getGenerator(): Buffer;
++++        getGenerator(encoding: BinaryToTextEncoding): string;
++++        /**
++++         * Returns the Diffie-Hellman public key in the specified `encoding`.
++++         * If `encoding` is provided a
++++         * string is returned; otherwise a `Buffer` is returned.
++++         * @since v0.5.0
++++         * @param encoding The `encoding` of the return value.
++++         */
++++        getPublicKey(): Buffer;
++++        getPublicKey(encoding: BinaryToTextEncoding): string;
++++        /**
++++         * Returns the Diffie-Hellman private key in the specified `encoding`.
++++         * If `encoding` is provided a
++++         * string is returned; otherwise a `Buffer` is returned.
++++         * @since v0.5.0
++++         * @param encoding The `encoding` of the return value.
++++         */
++++        getPrivateKey(): Buffer;
++++        getPrivateKey(encoding: BinaryToTextEncoding): string;
++++        /**
++++         * Sets the Diffie-Hellman public key. If the `encoding` argument is provided, `publicKey` is expected
++++         * to be a string. If no `encoding` is provided, `publicKey` is expected
++++         * to be a `Buffer`, `TypedArray`, or `DataView`.
++++         * @since v0.5.0
++++         * @param encoding The `encoding` of the `publicKey` string.
++++         */
++++        setPublicKey(publicKey: NodeJS.ArrayBufferView): void;
++++        setPublicKey(publicKey: string, encoding: BufferEncoding): void;
++++        /**
++++         * Sets the Diffie-Hellman private key. If the `encoding` argument is provided,`privateKey` is expected
++++         * to be a string. If no `encoding` is provided, `privateKey` is expected
++++         * to be a `Buffer`, `TypedArray`, or `DataView`.
++++         *
++++         * This function does not automatically compute the associated public key. Either `diffieHellman.setPublicKey()` or `diffieHellman.generateKeys()` can be
++++         * used to manually provide the public key or to automatically derive it.
++++         * @since v0.5.0
++++         * @param encoding The `encoding` of the `privateKey` string.
++++         */
++++        setPrivateKey(privateKey: NodeJS.ArrayBufferView): void;
++++        setPrivateKey(privateKey: string, encoding: BufferEncoding): void;
++++        /**
++++         * A bit field containing any warnings and/or errors resulting from a check
++++         * performed during initialization of the `DiffieHellman` object.
++++         *
++++         * The following values are valid for this property (as defined in `node:constants` module):
++++         *
++++         * * `DH_CHECK_P_NOT_SAFE_PRIME`
++++         * * `DH_CHECK_P_NOT_PRIME`
++++         * * `DH_UNABLE_TO_CHECK_GENERATOR`
++++         * * `DH_NOT_SUITABLE_GENERATOR`
++++         * @since v0.11.12
++++         */
++++        verifyError: number;
++++    }
++++    /**
++++     * The `DiffieHellmanGroup` class takes a well-known modp group as its argument.
++++     * It works the same as `DiffieHellman`, except that it does not allow changing its keys after creation.
++++     * In other words, it does not implement `setPublicKey()` or `setPrivateKey()` methods.
++++     *
++++     * ```js
++++     * const { createDiffieHellmanGroup } = await import('node:crypto');
++++     * const dh = createDiffieHellmanGroup('modp1');
++++     * ```
++++     * The name (e.g. `'modp1'`) is taken from [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt) (modp1 and 2) and [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt):
++++     * ```bash
++++     * $ perl -ne 'print "$1\n" if /"(modp\d+)"/' src/node_crypto_groups.h
++++     * modp1  #  768 bits
++++     * modp2  # 1024 bits
++++     * modp5  # 1536 bits
++++     * modp14 # 2048 bits
++++     * modp15 # etc.
++++     * modp16
++++     * modp17
++++     * modp18
++++     * ```
++++     * @since v0.7.5
++++     */
++++    const DiffieHellmanGroup: DiffieHellmanGroupConstructor;
++++    interface DiffieHellmanGroupConstructor {
++++        new(name: string): DiffieHellmanGroup;
++++        (name: string): DiffieHellmanGroup;
++++        readonly prototype: DiffieHellmanGroup;
++++    }
++++    type DiffieHellmanGroup = Omit<DiffieHellman, "setPublicKey" | "setPrivateKey">;
++++    /**
++++     * Creates a predefined `DiffieHellmanGroup` key exchange object. The
++++     * supported groups are listed in the documentation for `DiffieHellmanGroup`.
++++     *
++++     * The returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing
++++     * the keys (with `diffieHellman.setPublicKey()`, for example). The
++++     * advantage of using this method is that the parties do not have to
++++     * generate nor exchange a group modulus beforehand, saving both processor
++++     * and communication time.
++++     *
++++     * Example (obtaining a shared secret):
++++     *
++++     * ```js
++++     * const {
++++     *   getDiffieHellman,
++++     * } = await import('node:crypto');
++++     * const alice = getDiffieHellman('modp14');
++++     * const bob = getDiffieHellman('modp14');
++++     *
++++     * alice.generateKeys();
++++     * bob.generateKeys();
++++     *
++++     * const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex');
++++     * const bobSecret = bob.computeSecret(alice.getPublicKey(), null, 'hex');
++++     *
++++     * // aliceSecret and bobSecret should be the same
++++     * console.log(aliceSecret === bobSecret);
++++     * ```
++++     * @since v0.7.5
++++     */
++++    function getDiffieHellman(groupName: string): DiffieHellmanGroup;
++++    /**
++++     * An alias for {@link getDiffieHellman}
++++     * @since v0.9.3
++++     */
++++    function createDiffieHellmanGroup(name: string): DiffieHellmanGroup;
++++    /**
++++     * Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2)
++++     * implementation. A selected HMAC digest algorithm specified by `digest` is
++++     * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`.
++++     *
++++     * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an error occurs while deriving the key, `err` will be set;
++++     * otherwise `err` will be `null`. By default, the successfully generated `derivedKey` will be passed to the callback as a `Buffer`. An error will be
++++     * thrown if any of the input arguments specify invalid values or types.
++++     *
++++     * The `iterations` argument must be a number set as high as possible. The
++++     * higher the number of iterations, the more secure the derived key will be,
++++     * but will take a longer amount of time to complete.
++++     *
++++     * The `salt` should be as unique as possible. It is recommended that a salt is
++++     * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
++++     *
++++     * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
++++     *
++++     * ```js
++++     * const {
++++     *   pbkdf2,
++++     * } = await import('node:crypto');
++++     *
++++     * pbkdf2('secret', 'salt', 100000, 64, 'sha512', (err, derivedKey) => {
++++     *   if (err) throw err;
++++     *   console.log(derivedKey.toString('hex'));  // '3745e48...08d59ae'
++++     * });
++++     * ```
++++     *
++++     * An array of supported digest functions can be retrieved using {@link getHashes}.
++++     *
++++     * This API uses libuv's threadpool, which can have surprising and
++++     * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
++++     * @since v0.5.5
++++     */
++++    function pbkdf2(
++++        password: BinaryLike,
++++        salt: BinaryLike,
++++        iterations: number,
++++        keylen: number,
++++        digest: string,
++++        callback: (err: Error | null, derivedKey: Buffer) => void,
++++    ): void;
++++    /**
++++     * Provides a synchronous Password-Based Key Derivation Function 2 (PBKDF2)
++++     * implementation. A selected HMAC digest algorithm specified by `digest` is
++++     * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`.
++++     *
++++     * If an error occurs an `Error` will be thrown, otherwise the derived key will be
++++     * returned as a `Buffer`.
++++     *
++++     * The `iterations` argument must be a number set as high as possible. The
++++     * higher the number of iterations, the more secure the derived key will be,
++++     * but will take a longer amount of time to complete.
++++     *
++++     * The `salt` should be as unique as possible. It is recommended that a salt is
++++     * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
++++     *
++++     * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
++++     *
++++     * ```js
++++     * const {
++++     *   pbkdf2Sync,
++++     * } = await import('node:crypto');
++++     *
++++     * const key = pbkdf2Sync('secret', 'salt', 100000, 64, 'sha512');
++++     * console.log(key.toString('hex'));  // '3745e48...08d59ae'
++++     * ```
++++     *
++++     * An array of supported digest functions can be retrieved using {@link getHashes}.
++++     * @since v0.9.3
++++     */
++++    function pbkdf2Sync(
++++        password: BinaryLike,
++++        salt: BinaryLike,
++++        iterations: number,
++++        keylen: number,
++++        digest: string,
++++    ): Buffer;
++++    /**
++++     * Generates cryptographically strong pseudorandom data. The `size` argument
++++     * is a number indicating the number of bytes to generate.
++++     *
++++     * If a `callback` function is provided, the bytes are generated asynchronously
++++     * and the `callback` function is invoked with two arguments: `err` and `buf`.
++++     * If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The `buf` argument is a `Buffer` containing the generated bytes.
++++     *
++++     * ```js
++++     * // Asynchronous
++++     * const {
++++     *   randomBytes,
++++     * } = await import('node:crypto');
++++     *
++++     * randomBytes(256, (err, buf) => {
++++     *   if (err) throw err;
++++     *   console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`);
++++     * });
++++     * ```
++++     *
++++     * If the `callback` function is not provided, the random bytes are generated
++++     * synchronously and returned as a `Buffer`. An error will be thrown if
++++     * there is a problem generating the bytes.
++++     *
++++     * ```js
++++     * // Synchronous
++++     * const {
++++     *   randomBytes,
++++     * } = await import('node:crypto');
++++     *
++++     * const buf = randomBytes(256);
++++     * console.log(
++++     *   `${buf.length} bytes of random data: ${buf.toString('hex')}`);
++++     * ```
++++     *
++++     * The `crypto.randomBytes()` method will not complete until there is
++++     * sufficient entropy available.
++++     * This should normally never take longer than a few milliseconds. The only time
++++     * when generating the random bytes may conceivably block for a longer period of
++++     * time is right after boot, when the whole system is still low on entropy.
++++     *
++++     * This API uses libuv's threadpool, which can have surprising and
++++     * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
++++     *
++++     * The asynchronous version of `crypto.randomBytes()` is carried out in a single
++++     * threadpool request. To minimize threadpool task length variation, partition
++++     * large `randomBytes` requests when doing so as part of fulfilling a client
++++     * request.
++++     * @since v0.5.8
++++     * @param size The number of bytes to generate. The `size` must not be larger than `2**31 - 1`.
++++     * @return if the `callback` function is not provided.
++++     */
++++    function randomBytes(size: number): Buffer;
++++    function randomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
++++    function pseudoRandomBytes(size: number): Buffer;
++++    function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void;
++++    /**
++++     * Return a random integer `n` such that `min <= n < max`.  This
++++     * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias).
++++     *
++++     * The range (`max - min`) must be less than 2**48. `min` and `max` must
++++     * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger).
++++     *
++++     * If the `callback` function is not provided, the random integer is
++++     * generated synchronously.
++++     *
++++     * ```js
++++     * // Asynchronous
++++     * const {
++++     *   randomInt,
++++     * } = await import('node:crypto');
++++     *
++++     * randomInt(3, (err, n) => {
++++     *   if (err) throw err;
++++     *   console.log(`Random number chosen from (0, 1, 2): ${n}`);
++++     * });
++++     * ```
++++     *
++++     * ```js
++++     * // Synchronous
++++     * const {
++++     *   randomInt,
++++     * } = await import('node:crypto');
++++     *
++++     * const n = randomInt(3);
++++     * console.log(`Random number chosen from (0, 1, 2): ${n}`);
++++     * ```
++++     *
++++     * ```js
++++     * // With `min` argument
++++     * const {
++++     *   randomInt,
++++     * } = await import('node:crypto');
++++     *
++++     * const n = randomInt(1, 7);
++++     * console.log(`The dice rolled: ${n}`);
++++     * ```
++++     * @since v14.10.0, v12.19.0
++++     * @param [min=0] Start of random range (inclusive).
++++     * @param max End of random range (exclusive).
++++     * @param callback `function(err, n) {}`.
++++     */
++++    function randomInt(max: number): number;
++++    function randomInt(min: number, max: number): number;
++++    function randomInt(max: number, callback: (err: Error | null, value: number) => void): void;
++++    function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void;
++++    /**
++++     * Synchronous version of {@link randomFill}.
++++     *
++++     * ```js
++++     * import { Buffer } from 'node:buffer';
++++     * const { randomFillSync } = await import('node:crypto');
++++     *
++++     * const buf = Buffer.alloc(10);
++++     * console.log(randomFillSync(buf).toString('hex'));
++++     *
++++     * randomFillSync(buf, 5);
++++     * console.log(buf.toString('hex'));
++++     *
++++     * // The above is equivalent to the following:
++++     * randomFillSync(buf, 5, 5);
++++     * console.log(buf.toString('hex'));
++++     * ```
++++     *
++++     * Any `ArrayBuffer`, `TypedArray` or `DataView` instance may be passed as`buffer`.
++++     *
++++     * ```js
++++     * import { Buffer } from 'node:buffer';
++++     * const { randomFillSync } = await import('node:crypto');
++++     *
++++     * const a = new Uint32Array(10);
++++     * console.log(Buffer.from(randomFillSync(a).buffer,
++++     *                         a.byteOffset, a.byteLength).toString('hex'));
++++     *
++++     * const b = new DataView(new ArrayBuffer(10));
++++     * console.log(Buffer.from(randomFillSync(b).buffer,
++++     *                         b.byteOffset, b.byteLength).toString('hex'));
++++     *
++++     * const c = new ArrayBuffer(10);
++++     * console.log(Buffer.from(randomFillSync(c)).toString('hex'));
++++     * ```
++++     * @since v7.10.0, v6.13.0
++++     * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`.
++++     * @param [offset=0]
++++     * @param [size=buffer.length - offset]
++++     * @return The object passed as `buffer` argument.
++++     */
++++    function randomFillSync<T extends NodeJS.ArrayBufferView>(buffer: T, offset?: number, size?: number): T;
++++    /**
++++     * This function is similar to {@link randomBytes} but requires the first
++++     * argument to be a `Buffer` that will be filled. It also
++++     * requires that a callback is passed in.
++++     *
++++     * If the `callback` function is not provided, an error will be thrown.
++++     *
++++     * ```js
++++     * import { Buffer } from 'node:buffer';
++++     * const { randomFill } = await import('node:crypto');
++++     *
++++     * const buf = Buffer.alloc(10);
++++     * randomFill(buf, (err, buf) => {
++++     *   if (err) throw err;
++++     *   console.log(buf.toString('hex'));
++++     * });
++++     *
++++     * randomFill(buf, 5, (err, buf) => {
++++     *   if (err) throw err;
++++     *   console.log(buf.toString('hex'));
++++     * });
++++     *
++++     * // The above is equivalent to the following:
++++     * randomFill(buf, 5, 5, (err, buf) => {
++++     *   if (err) throw err;
++++     *   console.log(buf.toString('hex'));
++++     * });
++++     * ```
++++     *
++++     * Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as `buffer`.
++++     *
++++     * While this includes instances of `Float32Array` and `Float64Array`, this
++++     * function should not be used to generate random floating-point numbers. The
++++     * result may contain `+Infinity`, `-Infinity`, and `NaN`, and even if the array
++++     * contains finite numbers only, they are not drawn from a uniform random
++++     * distribution and have no meaningful lower or upper bounds.
++++     *
++++     * ```js
++++     * import { Buffer } from 'node:buffer';
++++     * const { randomFill } = await import('node:crypto');
++++     *
++++     * const a = new Uint32Array(10);
++++     * randomFill(a, (err, buf) => {
++++     *   if (err) throw err;
++++     *   console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)
++++     *     .toString('hex'));
++++     * });
++++     *
++++     * const b = new DataView(new ArrayBuffer(10));
++++     * randomFill(b, (err, buf) => {
++++     *   if (err) throw err;
++++     *   console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)
++++     *     .toString('hex'));
++++     * });
++++     *
++++     * const c = new ArrayBuffer(10);
++++     * randomFill(c, (err, buf) => {
++++     *   if (err) throw err;
++++     *   console.log(Buffer.from(buf).toString('hex'));
++++     * });
++++     * ```
++++     *
++++     * This API uses libuv's threadpool, which can have surprising and
++++     * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information.
++++     *
++++     * The asynchronous version of `crypto.randomFill()` is carried out in a single
++++     * threadpool request. To minimize threadpool task length variation, partition
++++     * large `randomFill` requests when doing so as part of fulfilling a client
++++     * request.
++++     * @since v7.10.0, v6.13.0
++++     * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`.
++++     * @param [offset=0]
++++     * @param [size=buffer.length - offset]
++++     * @param callback `function(err, buf) {}`.
++++     */
++++    function randomFill<T extends NodeJS.ArrayBufferView>(
++++        buffer: T,
++++        callback: (err: Error | null, buf: T) => void,
++++    ): void;
++++    function randomFill<T extends NodeJS.ArrayBufferView>(
++++        buffer: T,
++++        offset: number,
++++        callback: (err: Error | null, buf: T) => void,
++++    ): void;
++++    function randomFill<T extends NodeJS.ArrayBufferView>(
++++        buffer: T,
++++        offset: number,
++++        size: number,
++++        callback: (err: Error | null, buf: T) => void,
++++    ): void;
++++    interface ScryptOptions {
++++        cost?: number | undefined;
++++        blockSize?: number | undefined;
++++        parallelization?: number | undefined;
++++        N?: number | undefined;
++++        r?: number | undefined;
++++        p?: number | undefined;
++++        maxmem?: number | undefined;
++++    }
++++    /**
++++     * Provides an asynchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based
++++     * key derivation function that is designed to be expensive computationally and
++++     * memory-wise in order to make brute-force attacks unrewarding.
++++     *
++++     * The `salt` should be as unique as possible. It is recommended that a salt is
++++     * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
++++     *
++++     * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
++++     *
++++     * The `callback` function is called with two arguments: `err` and `derivedKey`. `err` is an exception object when key derivation fails, otherwise `err` is `null`. `derivedKey` is passed to the
++++     * callback as a `Buffer`.
++++     *
++++     * An exception is thrown when any of the input arguments specify invalid values
++++     * or types.
++++     *
++++     * ```js
++++     * const {
++++     *   scrypt,
++++     * } = await import('node:crypto');
++++     *
++++     * // Using the factory defaults.
++++     * scrypt('password', 'salt', 64, (err, derivedKey) => {
++++     *   if (err) throw err;
++++     *   console.log(derivedKey.toString('hex'));  // '3745e48...08d59ae'
++++     * });
++++     * // Using a custom N parameter. Must be a power of two.
++++     * scrypt('password', 'salt', 64, { N: 1024 }, (err, derivedKey) => {
++++     *   if (err) throw err;
++++     *   console.log(derivedKey.toString('hex'));  // '3745e48...aa39b34'
++++     * });
++++     * ```
++++     * @since v10.5.0
++++     */
++++    function scrypt(
++++        password: BinaryLike,
++++        salt: BinaryLike,
++++        keylen: number,
++++        callback: (err: Error | null, derivedKey: Buffer) => void,
++++    ): void;
++++    function scrypt(
++++        password: BinaryLike,
++++        salt: BinaryLike,
++++        keylen: number,
++++        options: ScryptOptions,
++++        callback: (err: Error | null, derivedKey: Buffer) => void,
++++    ): void;
++++    /**
++++     * Provides a synchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based
++++     * key derivation function that is designed to be expensive computationally and
++++     * memory-wise in order to make brute-force attacks unrewarding.
++++     *
++++     * The `salt` should be as unique as possible. It is recommended that a salt is
++++     * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details.
++++     *
++++     * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
++++     *
++++     * An exception is thrown when key derivation fails, otherwise the derived key is
++++     * returned as a `Buffer`.
++++     *
++++     * An exception is thrown when any of the input arguments specify invalid values
++++     * or types.
++++     *
++++     * ```js
++++     * const {
++++     *   scryptSync,
++++     * } = await import('node:crypto');
++++     * // Using the factory defaults.
++++     *
++++     * const key1 = scryptSync('password', 'salt', 64);
++++     * console.log(key1.toString('hex'));  // '3745e48...08d59ae'
++++     * // Using a custom N parameter. Must be a power of two.
++++     * const key2 = scryptSync('password', 'salt', 64, { N: 1024 });
++++     * console.log(key2.toString('hex'));  // '3745e48...aa39b34'
++++     * ```
++++     * @since v10.5.0
++++     */
++++    function scryptSync(password: BinaryLike, salt: BinaryLike, keylen: number, options?: ScryptOptions): Buffer;
++++    interface RsaPublicKey {
++++        key: KeyLike;
++++        padding?: number | undefined;
++++    }
++++    interface RsaPrivateKey {
++++        key: KeyLike;
++++        passphrase?: string | undefined;
++++        /**
++++         * @default 'sha1'
++++         */
++++        oaepHash?: string | undefined;
++++        oaepLabel?: NodeJS.TypedArray | undefined;
++++        padding?: number | undefined;
++++    }
++++    /**
++++     * Encrypts the content of `buffer` with `key` and returns a new `Buffer` with encrypted content. The returned data can be decrypted using
++++     * the corresponding private key, for example using {@link privateDecrypt}.
++++     *
++++     * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an
++++     * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`.
++++     *
++++     * Because RSA public keys can be derived from private keys, a private key may
++++     * be passed instead of a public key.
++++     * @since v0.11.14
++++     */
++++    function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
++++    /**
++++     * Decrypts `buffer` with `key`.`buffer` was previously encrypted using
++++     * the corresponding private key, for example using {@link privateEncrypt}.
++++     *
++++     * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an
++++     * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`.
++++     *
++++     * Because RSA public keys can be derived from private keys, a private key may
++++     * be passed instead of a public key.
++++     * @since v1.1.0
++++     */
++++    function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
++++    /**
++++     * Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using
++++     * the corresponding public key, for example using {@link publicEncrypt}.
++++     *
++++     * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
++++     * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`.
++++     * @since v0.11.14
++++     */
++++    function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
++++    /**
++++     * Encrypts `buffer` with `privateKey`. The returned data can be decrypted using
++++     * the corresponding public key, for example using {@link publicDecrypt}.
++++     *
++++     * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
++++     * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`.
++++     * @since v1.1.0
++++     */
++++    function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
++++    /**
++++     * ```js
++++     * const {
++++     *   getCiphers,
++++     * } = await import('node:crypto');
++++     *
++++     * console.log(getCiphers()); // ['aes-128-cbc', 'aes-128-ccm', ...]
++++     * ```
++++     * @since v0.9.3
++++     * @return An array with the names of the supported cipher algorithms.
++++     */
++++    function getCiphers(): string[];
++++    /**
++++     * ```js
++++     * const {
++++     *   getCurves,
++++     * } = await import('node:crypto');
++++     *
++++     * console.log(getCurves()); // ['Oakley-EC2N-3', 'Oakley-EC2N-4', ...]
++++     * ```
++++     * @since v2.3.0
++++     * @return An array with the names of the supported elliptic curves.
++++     */
++++    function getCurves(): string[];
++++    /**
++++     * @since v10.0.0
++++     * @return `1` if and only if a FIPS compliant crypto provider is currently in use, `0` otherwise. A future semver-major release may change the return type of this API to a {boolean}.
++++     */
++++    function getFips(): 1 | 0;
++++    /**
++++     * Enables the FIPS compliant crypto provider in a FIPS-enabled Node.js build.
++++     * Throws an error if FIPS mode is not available.
++++     * @since v10.0.0
++++     * @param bool `true` to enable FIPS mode.
++++     */
++++    function setFips(bool: boolean): void;
++++    /**
++++     * ```js
++++     * const {
++++     *   getHashes,
++++     * } = await import('node:crypto');
++++     *
++++     * console.log(getHashes()); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...]
++++     * ```
++++     * @since v0.9.3
++++     * @return An array of the names of the supported hash algorithms, such as `'RSA-SHA256'`. Hash algorithms are also called "digest" algorithms.
++++     */
++++    function getHashes(): string[];
++++    /**
++++     * The `ECDH` class is a utility for creating Elliptic Curve Diffie-Hellman (ECDH)
++++     * key exchanges.
++++     *
++++     * Instances of the `ECDH` class can be created using the {@link createECDH} function.
++++     *
++++     * ```js
++++     * import assert from 'node:assert';
++++     *
++++     * const {
++++     *   createECDH,
++++     * } = await import('node:crypto');
++++     *
++++     * // Generate Alice's keys...
++++     * const alice = createECDH('secp521r1');
++++     * const aliceKey = alice.generateKeys();
++++     *
++++     * // Generate Bob's keys...
++++     * const bob = createECDH('secp521r1');
++++     * const bobKey = bob.generateKeys();
++++     *
++++     * // Exchange and generate the secret...
++++     * const aliceSecret = alice.computeSecret(bobKey);
++++     * const bobSecret = bob.computeSecret(aliceKey);
++++     *
++++     * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex'));
++++     * // OK
++++     * ```
++++     * @since v0.11.14
++++     */
++++    class ECDH {
++++        private constructor();
++++        /**
++++         * Converts the EC Diffie-Hellman public key specified by `key` and `curve` to the
++++         * format specified by `format`. The `format` argument specifies point encoding
++++         * and can be `'compressed'`, `'uncompressed'` or `'hybrid'`. The supplied key is
++++         * interpreted using the specified `inputEncoding`, and the returned key is encoded
++++         * using the specified `outputEncoding`.
++++         *
++++         * Use {@link getCurves} to obtain a list of available curve names.
++++         * On recent OpenSSL releases, `openssl ecparam -list_curves` will also display
++++         * the name and description of each available elliptic curve.
++++         *
++++         * If `format` is not specified the point will be returned in `'uncompressed'` format.
++++         *
++++         * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
++++         *
++++         * Example (uncompressing a key):
++++         *
++++         * ```js
++++         * const {
++++         *   createECDH,
++++         *   ECDH,
++++         * } = await import('node:crypto');
++++         *
++++         * const ecdh = createECDH('secp256k1');
++++         * ecdh.generateKeys();
++++         *
++++         * const compressedKey = ecdh.getPublicKey('hex', 'compressed');
++++         *
++++         * const uncompressedKey = ECDH.convertKey(compressedKey,
++++         *                                         'secp256k1',
++++         *                                         'hex',
++++         *                                         'hex',
++++         *                                         'uncompressed');
++++         *
++++         * // The converted key and the uncompressed public key should be the same
++++         * console.log(uncompressedKey === ecdh.getPublicKey('hex'));
++++         * ```
++++         * @since v10.0.0
++++         * @param inputEncoding The `encoding` of the `key` string.
++++         * @param outputEncoding The `encoding` of the return value.
++++         * @param [format='uncompressed']
++++         */
++++        static convertKey(
++++            key: BinaryLike,
++++            curve: string,
++++            inputEncoding?: BinaryToTextEncoding,
++++            outputEncoding?: "latin1" | "hex" | "base64" | "base64url",
++++            format?: "uncompressed" | "compressed" | "hybrid",
++++        ): Buffer | string;
++++        /**
++++         * Generates private and public EC Diffie-Hellman key values, and returns
++++         * the public key in the specified `format` and `encoding`. This key should be
++++         * transferred to the other party.
++++         *
++++         * The `format` argument specifies point encoding and can be `'compressed'` or `'uncompressed'`. If `format` is not specified, the point will be returned in`'uncompressed'` format.
++++         *
++++         * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
++++         * @since v0.11.14
++++         * @param encoding The `encoding` of the return value.
++++         * @param [format='uncompressed']
++++         */
++++        generateKeys(): Buffer;
++++        generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
++++        /**
++++         * Computes the shared secret using `otherPublicKey` as the other
++++         * party's public key and returns the computed shared secret. The supplied
++++         * key is interpreted using specified `inputEncoding`, and the returned secret
++++         * is encoded using the specified `outputEncoding`.
++++         * If the `inputEncoding` is not
++++         * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
++++         *
++++         * If `outputEncoding` is given a string will be returned; otherwise a `Buffer` is returned.
++++         *
++++         * `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey` lies outside of the elliptic curve. Since `otherPublicKey` is
++++         * usually supplied from a remote user over an insecure network,
++++         * be sure to handle this exception accordingly.
++++         * @since v0.11.14
++++         * @param inputEncoding The `encoding` of the `otherPublicKey` string.
++++         * @param outputEncoding The `encoding` of the return value.
++++         */
++++        computeSecret(otherPublicKey: NodeJS.ArrayBufferView): Buffer;
++++        computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer;
++++        computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string;
++++        computeSecret(
++++            otherPublicKey: string,
++++            inputEncoding: BinaryToTextEncoding,
++++            outputEncoding: BinaryToTextEncoding,
++++        ): string;
++++        /**
++++         * If `encoding` is specified, a string is returned; otherwise a `Buffer` is
++++         * returned.
++++         * @since v0.11.14
++++         * @param encoding The `encoding` of the return value.
++++         * @return The EC Diffie-Hellman in the specified `encoding`.
++++         */
++++        getPrivateKey(): Buffer;
++++        getPrivateKey(encoding: BinaryToTextEncoding): string;
++++        /**
++++         * The `format` argument specifies point encoding and can be `'compressed'` or `'uncompressed'`. If `format` is not specified the point will be returned in`'uncompressed'` format.
++++         *
++++         * If `encoding` is specified, a string is returned; otherwise a `Buffer` is
++++         * returned.
++++         * @since v0.11.14
++++         * @param encoding The `encoding` of the return value.
++++         * @param [format='uncompressed']
++++         * @return The EC Diffie-Hellman public key in the specified `encoding` and `format`.
++++         */
++++        getPublicKey(encoding?: null, format?: ECDHKeyFormat): Buffer;
++++        getPublicKey(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string;
++++        /**
++++         * Sets the EC Diffie-Hellman private key.
++++         * If `encoding` is provided, `privateKey` is expected
++++         * to be a string; otherwise `privateKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
++++         *
++++         * If `privateKey` is not valid for the curve specified when the `ECDH` object was
++++         * created, an error is thrown. Upon setting the private key, the associated
++++         * public point (key) is also generated and set in the `ECDH` object.
++++         * @since v0.11.14
++++         * @param encoding The `encoding` of the `privateKey` string.
++++         */
++++        setPrivateKey(privateKey: NodeJS.ArrayBufferView): void;
++++        setPrivateKey(privateKey: string, encoding: BinaryToTextEncoding): void;
++++    }
++++    /**
++++     * Creates an Elliptic Curve Diffie-Hellman (`ECDH`) key exchange object using a
++++     * predefined curve specified by the `curveName` string. Use {@link getCurves} to obtain a list of available curve names. On recent
++++     * OpenSSL releases, `openssl ecparam -list_curves` will also display the name
++++     * and description of each available elliptic curve.
++++     * @since v0.11.14
++++     */
++++    function createECDH(curveName: string): ECDH;
++++    /**
++++     * This function compares the underlying bytes that represent the given `ArrayBuffer`, `TypedArray`, or `DataView` instances using a constant-time
++++     * algorithm.
++++     *
++++     * This function does not leak timing information that
++++     * would allow an attacker to guess one of the values. This is suitable for
++++     * comparing HMAC digests or secret values like authentication cookies or [capability urls](https://www.w3.org/TR/capability-urls/).
++++     *
++++     * `a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they
++++     * must have the same byte length. An error is thrown if `a` and `b` have
++++     * different byte lengths.
++++     *
++++     * If at least one of `a` and `b` is a `TypedArray` with more than one byte per
++++     * entry, such as `Uint16Array`, the result will be computed using the platform
++++     * byte order.
++++     *
++++     * **When both of the inputs are `Float32Array`s or `Float64Array`s, this function might return unexpected results due to IEEE 754**
++++     * **encoding of floating-point numbers. In particular, neither `x === y` nor `Object.is(x, y)` implies that the byte representations of two floating-point**
++++     * **numbers `x` and `y` are equal.**
++++     *
++++     * Use of `crypto.timingSafeEqual` does not guarantee that the _surrounding_ code
++++     * is timing-safe. Care should be taken to ensure that the surrounding code does
++++     * not introduce timing vulnerabilities.
++++     * @since v6.6.0
++++     */
++++    function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean;
++++    type KeyType = "rsa" | "rsa-pss" | "dsa" | "ec" | "ed25519" | "ed448" | "x25519" | "x448";
++++    type KeyFormat = "pem" | "der" | "jwk";
++++    interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
++++        format: T;
++++        cipher?: string | undefined;
++++        passphrase?: string | undefined;
++++    }
++++    interface KeyPairKeyObjectResult {
++++        publicKey: KeyObject;
++++        privateKey: KeyObject;
++++    }
++++    interface ED25519KeyPairKeyObjectOptions {}
++++    interface ED448KeyPairKeyObjectOptions {}
++++    interface X25519KeyPairKeyObjectOptions {}
++++    interface X448KeyPairKeyObjectOptions {}
++++    interface ECKeyPairKeyObjectOptions {
++++        /**
++++         * Name of the curve to use
++++         */
++++        namedCurve: string;
++++        /**
++++         * Must be `'named'` or `'explicit'`. Default: `'named'`.
++++         */
++++        paramEncoding?: "explicit" | "named" | undefined;
++++    }
++++    interface RSAKeyPairKeyObjectOptions {
++++        /**
++++         * Key size in bits
++++         */
++++        modulusLength: number;
++++        /**
++++         * Public exponent
++++         * @default 0x10001
++++         */
++++        publicExponent?: number | undefined;
++++    }
++++    interface RSAPSSKeyPairKeyObjectOptions {
++++        /**
++++         * Key size in bits
++++         */
++++        modulusLength: number;
++++        /**
++++         * Public exponent
++++         * @default 0x10001
++++         */
++++        publicExponent?: number | undefined;
++++        /**
++++         * Name of the message digest
++++         */
++++        hashAlgorithm?: string;
++++        /**
++++         * Name of the message digest used by MGF1
++++         */
++++        mgf1HashAlgorithm?: string;
++++        /**
++++         * Minimal salt length in bytes
++++         */
++++        saltLength?: string;
++++    }
++++    interface DSAKeyPairKeyObjectOptions {
++++        /**
++++         * Key size in bits
++++         */
++++        modulusLength: number;
++++        /**
++++         * Size of q in bits
++++         */
++++        divisorLength: number;
++++    }
++++    interface RSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
++++        /**
++++         * Key size in bits
++++         */
++++        modulusLength: number;
++++        /**
++++         * Public exponent
++++         * @default 0x10001
++++         */
++++        publicExponent?: number | undefined;
++++        publicKeyEncoding: {
++++            type: "pkcs1" | "spki";
++++            format: PubF;
++++        };
++++        privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
++++            type: "pkcs1" | "pkcs8";
++++        };
++++    }
++++    interface RSAPSSKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
++++        /**
++++         * Key size in bits
++++         */
++++        modulusLength: number;
++++        /**
++++         * Public exponent
++++         * @default 0x10001
++++         */
++++        publicExponent?: number | undefined;
++++        /**
++++         * Name of the message digest
++++         */
++++        hashAlgorithm?: string;
++++        /**
++++         * Name of the message digest used by MGF1
++++         */
++++        mgf1HashAlgorithm?: string;
++++        /**
++++         * Minimal salt length in bytes
++++         */
++++        saltLength?: string;
++++        publicKeyEncoding: {
++++            type: "spki";
++++            format: PubF;
++++        };
++++        privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
++++            type: "pkcs8";
++++        };
++++    }
++++    interface DSAKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
++++        /**
++++         * Key size in bits
++++         */
++++        modulusLength: number;
++++        /**
++++         * Size of q in bits
++++         */
++++        divisorLength: number;
++++        publicKeyEncoding: {
++++            type: "spki";
++++            format: PubF;
++++        };
++++        privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
++++            type: "pkcs8";
++++        };
++++    }
++++    interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> extends ECKeyPairKeyObjectOptions {
++++        publicKeyEncoding: {
++++            type: "pkcs1" | "spki";
++++            format: PubF;
++++        };
++++        privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
++++            type: "sec1" | "pkcs8";
++++        };
++++    }
++++    interface ED25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
++++        publicKeyEncoding: {
++++            type: "spki";
++++            format: PubF;
++++        };
++++        privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
++++            type: "pkcs8";
++++        };
++++    }
++++    interface ED448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
++++        publicKeyEncoding: {
++++            type: "spki";
++++            format: PubF;
++++        };
++++        privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
++++            type: "pkcs8";
++++        };
++++    }
++++    interface X25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
++++        publicKeyEncoding: {
++++            type: "spki";
++++            format: PubF;
++++        };
++++        privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
++++            type: "pkcs8";
++++        };
++++    }
++++    interface X448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
++++        publicKeyEncoding: {
++++            type: "spki";
++++            format: PubF;
++++        };
++++        privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
++++            type: "pkcs8";
++++        };
++++    }
++++    interface KeyPairSyncResult<T1 extends string | Buffer, T2 extends string | Buffer> {
++++        publicKey: T1;
++++        privateKey: T2;
++++    }
++++    /**
++++     * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
++++     * Ed25519, Ed448, X25519, X448, and DH are currently supported.
++++     *
++++     * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
++++     * behaves as if `keyObject.export()` had been called on its result. Otherwise,
++++     * the respective part of the key is returned as a `KeyObject`.
++++     *
++++     * When encoding public keys, it is recommended to use `'spki'`. When encoding
++++     * private keys, it is recommended to use `'pkcs8'` with a strong passphrase,
++++     * and to keep the passphrase confidential.
++++     *
++++     * ```js
++++     * const {
++++     *   generateKeyPairSync,
++++     * } = await import('node:crypto');
++++     *
++++     * const {
++++     *   publicKey,
++++     *   privateKey,
++++     * } = generateKeyPairSync('rsa', {
++++     *   modulusLength: 4096,
++++     *   publicKeyEncoding: {
++++     *     type: 'spki',
++++     *     format: 'pem',
++++     *   },
++++     *   privateKeyEncoding: {
++++     *     type: 'pkcs8',
++++     *     format: 'pem',
++++     *     cipher: 'aes-256-cbc',
++++     *     passphrase: 'top secret',
++++     *   },
++++     * });
++++     * ```
++++     *
++++     * The return value `{ publicKey, privateKey }` represents the generated key pair.
++++     * When PEM encoding was selected, the respective key will be a string, otherwise
++++     * it will be a buffer containing the data encoded as DER.
++++     * @since v10.12.0
++++     * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
++++     */
++++    function generateKeyPairSync(
++++        type: "rsa",
++++        options: RSAKeyPairOptions<"pem", "pem">,
++++    ): KeyPairSyncResult<string, string>;
++++    function generateKeyPairSync(
++++        type: "rsa",
++++        options: RSAKeyPairOptions<"pem", "der">,
++++    ): KeyPairSyncResult<string, Buffer>;
++++    function generateKeyPairSync(
++++        type: "rsa",
++++        options: RSAKeyPairOptions<"der", "pem">,
++++    ): KeyPairSyncResult<Buffer, string>;
++++    function generateKeyPairSync(
++++        type: "rsa",
++++        options: RSAKeyPairOptions<"der", "der">,
++++    ): KeyPairSyncResult<Buffer, Buffer>;
++++    function generateKeyPairSync(type: "rsa", options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
++++    function generateKeyPairSync(
++++        type: "rsa-pss",
++++        options: RSAPSSKeyPairOptions<"pem", "pem">,
++++    ): KeyPairSyncResult<string, string>;
++++    function generateKeyPairSync(
++++        type: "rsa-pss",
++++        options: RSAPSSKeyPairOptions<"pem", "der">,
++++    ): KeyPairSyncResult<string, Buffer>;
++++    function generateKeyPairSync(
++++        type: "rsa-pss",
++++        options: RSAPSSKeyPairOptions<"der", "pem">,
++++    ): KeyPairSyncResult<Buffer, string>;
++++    function generateKeyPairSync(
++++        type: "rsa-pss",
++++        options: RSAPSSKeyPairOptions<"der", "der">,
++++    ): KeyPairSyncResult<Buffer, Buffer>;
++++    function generateKeyPairSync(type: "rsa-pss", options: RSAPSSKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
++++    function generateKeyPairSync(
++++        type: "dsa",
++++        options: DSAKeyPairOptions<"pem", "pem">,
++++    ): KeyPairSyncResult<string, string>;
++++    function generateKeyPairSync(
++++        type: "dsa",
++++        options: DSAKeyPairOptions<"pem", "der">,
++++    ): KeyPairSyncResult<string, Buffer>;
++++    function generateKeyPairSync(
++++        type: "dsa",
++++        options: DSAKeyPairOptions<"der", "pem">,
++++    ): KeyPairSyncResult<Buffer, string>;
++++    function generateKeyPairSync(
++++        type: "dsa",
++++        options: DSAKeyPairOptions<"der", "der">,
++++    ): KeyPairSyncResult<Buffer, Buffer>;
++++    function generateKeyPairSync(type: "dsa", options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
++++    function generateKeyPairSync(
++++        type: "ec",
++++        options: ECKeyPairOptions<"pem", "pem">,
++++    ): KeyPairSyncResult<string, string>;
++++    function generateKeyPairSync(
++++        type: "ec",
++++        options: ECKeyPairOptions<"pem", "der">,
++++    ): KeyPairSyncResult<string, Buffer>;
++++    function generateKeyPairSync(
++++        type: "ec",
++++        options: ECKeyPairOptions<"der", "pem">,
++++    ): KeyPairSyncResult<Buffer, string>;
++++    function generateKeyPairSync(
++++        type: "ec",
++++        options: ECKeyPairOptions<"der", "der">,
++++    ): KeyPairSyncResult<Buffer, Buffer>;
++++    function generateKeyPairSync(type: "ec", options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult;
++++    function generateKeyPairSync(
++++        type: "ed25519",
++++        options: ED25519KeyPairOptions<"pem", "pem">,
++++    ): KeyPairSyncResult<string, string>;
++++    function generateKeyPairSync(
++++        type: "ed25519",
++++        options: ED25519KeyPairOptions<"pem", "der">,
++++    ): KeyPairSyncResult<string, Buffer>;
++++    function generateKeyPairSync(
++++        type: "ed25519",
++++        options: ED25519KeyPairOptions<"der", "pem">,
++++    ): KeyPairSyncResult<Buffer, string>;
++++    function generateKeyPairSync(
++++        type: "ed25519",
++++        options: ED25519KeyPairOptions<"der", "der">,
++++    ): KeyPairSyncResult<Buffer, Buffer>;
++++    function generateKeyPairSync(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
++++    function generateKeyPairSync(
++++        type: "ed448",
++++        options: ED448KeyPairOptions<"pem", "pem">,
++++    ): KeyPairSyncResult<string, string>;
++++    function generateKeyPairSync(
++++        type: "ed448",
++++        options: ED448KeyPairOptions<"pem", "der">,
++++    ): KeyPairSyncResult<string, Buffer>;
++++    function generateKeyPairSync(
++++        type: "ed448",
++++        options: ED448KeyPairOptions<"der", "pem">,
++++    ): KeyPairSyncResult<Buffer, string>;
++++    function generateKeyPairSync(
++++        type: "ed448",
++++        options: ED448KeyPairOptions<"der", "der">,
++++    ): KeyPairSyncResult<Buffer, Buffer>;
++++    function generateKeyPairSync(type: "ed448", options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
++++    function generateKeyPairSync(
++++        type: "x25519",
++++        options: X25519KeyPairOptions<"pem", "pem">,
++++    ): KeyPairSyncResult<string, string>;
++++    function generateKeyPairSync(
++++        type: "x25519",
++++        options: X25519KeyPairOptions<"pem", "der">,
++++    ): KeyPairSyncResult<string, Buffer>;
++++    function generateKeyPairSync(
++++        type: "x25519",
++++        options: X25519KeyPairOptions<"der", "pem">,
++++    ): KeyPairSyncResult<Buffer, string>;
++++    function generateKeyPairSync(
++++        type: "x25519",
++++        options: X25519KeyPairOptions<"der", "der">,
++++    ): KeyPairSyncResult<Buffer, Buffer>;
++++    function generateKeyPairSync(type: "x25519", options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
++++    function generateKeyPairSync(
++++        type: "x448",
++++        options: X448KeyPairOptions<"pem", "pem">,
++++    ): KeyPairSyncResult<string, string>;
++++    function generateKeyPairSync(
++++        type: "x448",
++++        options: X448KeyPairOptions<"pem", "der">,
++++    ): KeyPairSyncResult<string, Buffer>;
++++    function generateKeyPairSync(
++++        type: "x448",
++++        options: X448KeyPairOptions<"der", "pem">,
++++    ): KeyPairSyncResult<Buffer, string>;
++++    function generateKeyPairSync(
++++        type: "x448",
++++        options: X448KeyPairOptions<"der", "der">,
++++    ): KeyPairSyncResult<Buffer, Buffer>;
++++    function generateKeyPairSync(type: "x448", options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
++++    /**
++++     * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
++++     * Ed25519, Ed448, X25519, X448, and DH are currently supported.
++++     *
++++     * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
++++     * behaves as if `keyObject.export()` had been called on its result. Otherwise,
++++     * the respective part of the key is returned as a `KeyObject`.
++++     *
++++     * It is recommended to encode public keys as `'spki'` and private keys as `'pkcs8'` with encryption for long-term storage:
++++     *
++++     * ```js
++++     * const {
++++     *   generateKeyPair,
++++     * } = await import('node:crypto');
++++     *
++++     * generateKeyPair('rsa', {
++++     *   modulusLength: 4096,
++++     *   publicKeyEncoding: {
++++     *     type: 'spki',
++++     *     format: 'pem',
++++     *   },
++++     *   privateKeyEncoding: {
++++     *     type: 'pkcs8',
++++     *     format: 'pem',
++++     *     cipher: 'aes-256-cbc',
++++     *     passphrase: 'top secret',
++++     *   },
++++     * }, (err, publicKey, privateKey) => {
++++     *   // Handle errors and use the generated key pair.
++++     * });
++++     * ```
++++     *
++++     * On completion, `callback` will be called with `err` set to `undefined` and `publicKey` / `privateKey` representing the generated key pair.
++++     *
++++     * If this method is invoked as its `util.promisify()` ed version, it returns
++++     * a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
++++     * @since v10.12.0
++++     * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
++++     */
++++    function generateKeyPair(
++++        type: "rsa",
++++        options: RSAKeyPairOptions<"pem", "pem">,
++++        callback: (err: Error | null, publicKey: string, privateKey: string) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "rsa",
++++        options: RSAKeyPairOptions<"pem", "der">,
++++        callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "rsa",
++++        options: RSAKeyPairOptions<"der", "pem">,
++++        callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "rsa",
++++        options: RSAKeyPairOptions<"der", "der">,
++++        callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "rsa",
++++        options: RSAKeyPairKeyObjectOptions,
++++        callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "rsa-pss",
++++        options: RSAPSSKeyPairOptions<"pem", "pem">,
++++        callback: (err: Error | null, publicKey: string, privateKey: string) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "rsa-pss",
++++        options: RSAPSSKeyPairOptions<"pem", "der">,
++++        callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "rsa-pss",
++++        options: RSAPSSKeyPairOptions<"der", "pem">,
++++        callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "rsa-pss",
++++        options: RSAPSSKeyPairOptions<"der", "der">,
++++        callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "rsa-pss",
++++        options: RSAPSSKeyPairKeyObjectOptions,
++++        callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "dsa",
++++        options: DSAKeyPairOptions<"pem", "pem">,
++++        callback: (err: Error | null, publicKey: string, privateKey: string) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "dsa",
++++        options: DSAKeyPairOptions<"pem", "der">,
++++        callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "dsa",
++++        options: DSAKeyPairOptions<"der", "pem">,
++++        callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "dsa",
++++        options: DSAKeyPairOptions<"der", "der">,
++++        callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "dsa",
++++        options: DSAKeyPairKeyObjectOptions,
++++        callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "ec",
++++        options: ECKeyPairOptions<"pem", "pem">,
++++        callback: (err: Error | null, publicKey: string, privateKey: string) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "ec",
++++        options: ECKeyPairOptions<"pem", "der">,
++++        callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "ec",
++++        options: ECKeyPairOptions<"der", "pem">,
++++        callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "ec",
++++        options: ECKeyPairOptions<"der", "der">,
++++        callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "ec",
++++        options: ECKeyPairKeyObjectOptions,
++++        callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "ed25519",
++++        options: ED25519KeyPairOptions<"pem", "pem">,
++++        callback: (err: Error | null, publicKey: string, privateKey: string) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "ed25519",
++++        options: ED25519KeyPairOptions<"pem", "der">,
++++        callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "ed25519",
++++        options: ED25519KeyPairOptions<"der", "pem">,
++++        callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "ed25519",
++++        options: ED25519KeyPairOptions<"der", "der">,
++++        callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "ed25519",
++++        options: ED25519KeyPairKeyObjectOptions | undefined,
++++        callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "ed448",
++++        options: ED448KeyPairOptions<"pem", "pem">,
++++        callback: (err: Error | null, publicKey: string, privateKey: string) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "ed448",
++++        options: ED448KeyPairOptions<"pem", "der">,
++++        callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "ed448",
++++        options: ED448KeyPairOptions<"der", "pem">,
++++        callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "ed448",
++++        options: ED448KeyPairOptions<"der", "der">,
++++        callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "ed448",
++++        options: ED448KeyPairKeyObjectOptions | undefined,
++++        callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "x25519",
++++        options: X25519KeyPairOptions<"pem", "pem">,
++++        callback: (err: Error | null, publicKey: string, privateKey: string) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "x25519",
++++        options: X25519KeyPairOptions<"pem", "der">,
++++        callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "x25519",
++++        options: X25519KeyPairOptions<"der", "pem">,
++++        callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "x25519",
++++        options: X25519KeyPairOptions<"der", "der">,
++++        callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "x25519",
++++        options: X25519KeyPairKeyObjectOptions | undefined,
++++        callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "x448",
++++        options: X448KeyPairOptions<"pem", "pem">,
++++        callback: (err: Error | null, publicKey: string, privateKey: string) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "x448",
++++        options: X448KeyPairOptions<"pem", "der">,
++++        callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "x448",
++++        options: X448KeyPairOptions<"der", "pem">,
++++        callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "x448",
++++        options: X448KeyPairOptions<"der", "der">,
++++        callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void,
++++    ): void;
++++    function generateKeyPair(
++++        type: "x448",
++++        options: X448KeyPairKeyObjectOptions | undefined,
++++        callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void,
++++    ): void;
++++    namespace generateKeyPair {
++++        function __promisify__(
++++            type: "rsa",
++++            options: RSAKeyPairOptions<"pem", "pem">,
++++        ): Promise<{
++++            publicKey: string;
++++            privateKey: string;
++++        }>;
++++        function __promisify__(
++++            type: "rsa",
++++            options: RSAKeyPairOptions<"pem", "der">,
++++        ): Promise<{
++++            publicKey: string;
++++            privateKey: Buffer;
++++        }>;
++++        function __promisify__(
++++            type: "rsa",
++++            options: RSAKeyPairOptions<"der", "pem">,
++++        ): Promise<{
++++            publicKey: Buffer;
++++            privateKey: string;
++++        }>;
++++        function __promisify__(
++++            type: "rsa",
++++            options: RSAKeyPairOptions<"der", "der">,
++++        ): Promise<{
++++            publicKey: Buffer;
++++            privateKey: Buffer;
++++        }>;
++++        function __promisify__(type: "rsa", options: RSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
++++        function __promisify__(
++++            type: "rsa-pss",
++++            options: RSAPSSKeyPairOptions<"pem", "pem">,
++++        ): Promise<{
++++            publicKey: string;
++++            privateKey: string;
++++        }>;
++++        function __promisify__(
++++            type: "rsa-pss",
++++            options: RSAPSSKeyPairOptions<"pem", "der">,
++++        ): Promise<{
++++            publicKey: string;
++++            privateKey: Buffer;
++++        }>;
++++        function __promisify__(
++++            type: "rsa-pss",
++++            options: RSAPSSKeyPairOptions<"der", "pem">,
++++        ): Promise<{
++++            publicKey: Buffer;
++++            privateKey: string;
++++        }>;
++++        function __promisify__(
++++            type: "rsa-pss",
++++            options: RSAPSSKeyPairOptions<"der", "der">,
++++        ): Promise<{
++++            publicKey: Buffer;
++++            privateKey: Buffer;
++++        }>;
++++        function __promisify__(
++++            type: "rsa-pss",
++++            options: RSAPSSKeyPairKeyObjectOptions,
++++        ): Promise<KeyPairKeyObjectResult>;
++++        function __promisify__(
++++            type: "dsa",
++++            options: DSAKeyPairOptions<"pem", "pem">,
++++        ): Promise<{
++++            publicKey: string;
++++            privateKey: string;
++++        }>;
++++        function __promisify__(
++++            type: "dsa",
++++            options: DSAKeyPairOptions<"pem", "der">,
++++        ): Promise<{
++++            publicKey: string;
++++            privateKey: Buffer;
++++        }>;
++++        function __promisify__(
++++            type: "dsa",
++++            options: DSAKeyPairOptions<"der", "pem">,
++++        ): Promise<{
++++            publicKey: Buffer;
++++            privateKey: string;
++++        }>;
++++        function __promisify__(
++++            type: "dsa",
++++            options: DSAKeyPairOptions<"der", "der">,
++++        ): Promise<{
++++            publicKey: Buffer;
++++            privateKey: Buffer;
++++        }>;
++++        function __promisify__(type: "dsa", options: DSAKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
++++        function __promisify__(
++++            type: "ec",
++++            options: ECKeyPairOptions<"pem", "pem">,
++++        ): Promise<{
++++            publicKey: string;
++++            privateKey: string;
++++        }>;
++++        function __promisify__(
++++            type: "ec",
++++            options: ECKeyPairOptions<"pem", "der">,
++++        ): Promise<{
++++            publicKey: string;
++++            privateKey: Buffer;
++++        }>;
++++        function __promisify__(
++++            type: "ec",
++++            options: ECKeyPairOptions<"der", "pem">,
++++        ): Promise<{
++++            publicKey: Buffer;
++++            privateKey: string;
++++        }>;
++++        function __promisify__(
++++            type: "ec",
++++            options: ECKeyPairOptions<"der", "der">,
++++        ): Promise<{
++++            publicKey: Buffer;
++++            privateKey: Buffer;
++++        }>;
++++        function __promisify__(type: "ec", options: ECKeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
++++        function __promisify__(
++++            type: "ed25519",
++++            options: ED25519KeyPairOptions<"pem", "pem">,
++++        ): Promise<{
++++            publicKey: string;
++++            privateKey: string;
++++        }>;
++++        function __promisify__(
++++            type: "ed25519",
++++            options: ED25519KeyPairOptions<"pem", "der">,
++++        ): Promise<{
++++            publicKey: string;
++++            privateKey: Buffer;
++++        }>;
++++        function __promisify__(
++++            type: "ed25519",
++++            options: ED25519KeyPairOptions<"der", "pem">,
++++        ): Promise<{
++++            publicKey: Buffer;
++++            privateKey: string;
++++        }>;
++++        function __promisify__(
++++            type: "ed25519",
++++            options: ED25519KeyPairOptions<"der", "der">,
++++        ): Promise<{
++++            publicKey: Buffer;
++++            privateKey: Buffer;
++++        }>;
++++        function __promisify__(
++++            type: "ed25519",
++++            options?: ED25519KeyPairKeyObjectOptions,
++++        ): Promise<KeyPairKeyObjectResult>;
++++        function __promisify__(
++++            type: "ed448",
++++            options: ED448KeyPairOptions<"pem", "pem">,
++++        ): Promise<{
++++            publicKey: string;
++++            privateKey: string;
++++        }>;
++++        function __promisify__(
++++            type: "ed448",
++++            options: ED448KeyPairOptions<"pem", "der">,
++++        ): Promise<{
++++            publicKey: string;
++++            privateKey: Buffer;
++++        }>;
++++        function __promisify__(
++++            type: "ed448",
++++            options: ED448KeyPairOptions<"der", "pem">,
++++        ): Promise<{
++++            publicKey: Buffer;
++++            privateKey: string;
++++        }>;
++++        function __promisify__(
++++            type: "ed448",
++++            options: ED448KeyPairOptions<"der", "der">,
++++        ): Promise<{
++++            publicKey: Buffer;
++++            privateKey: Buffer;
++++        }>;
++++        function __promisify__(type: "ed448", options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
++++        function __promisify__(
++++            type: "x25519",
++++            options: X25519KeyPairOptions<"pem", "pem">,
++++        ): Promise<{
++++            publicKey: string;
++++            privateKey: string;
++++        }>;
++++        function __promisify__(
++++            type: "x25519",
++++            options: X25519KeyPairOptions<"pem", "der">,
++++        ): Promise<{
++++            publicKey: string;
++++            privateKey: Buffer;
++++        }>;
++++        function __promisify__(
++++            type: "x25519",
++++            options: X25519KeyPairOptions<"der", "pem">,
++++        ): Promise<{
++++            publicKey: Buffer;
++++            privateKey: string;
++++        }>;
++++        function __promisify__(
++++            type: "x25519",
++++            options: X25519KeyPairOptions<"der", "der">,
++++        ): Promise<{
++++            publicKey: Buffer;
++++            privateKey: Buffer;
++++        }>;
++++        function __promisify__(
++++            type: "x25519",
++++            options?: X25519KeyPairKeyObjectOptions,
++++        ): Promise<KeyPairKeyObjectResult>;
++++        function __promisify__(
++++            type: "x448",
++++            options: X448KeyPairOptions<"pem", "pem">,
++++        ): Promise<{
++++            publicKey: string;
++++            privateKey: string;
++++        }>;
++++        function __promisify__(
++++            type: "x448",
++++            options: X448KeyPairOptions<"pem", "der">,
++++        ): Promise<{
++++            publicKey: string;
++++            privateKey: Buffer;
++++        }>;
++++        function __promisify__(
++++            type: "x448",
++++            options: X448KeyPairOptions<"der", "pem">,
++++        ): Promise<{
++++            publicKey: Buffer;
++++            privateKey: string;
++++        }>;
++++        function __promisify__(
++++            type: "x448",
++++            options: X448KeyPairOptions<"der", "der">,
++++        ): Promise<{
++++            publicKey: Buffer;
++++            privateKey: Buffer;
++++        }>;
++++        function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
++++    }
++++    /**
++++     * Calculates and returns the signature for `data` using the given private key and
++++     * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is
++++     * dependent upon the key type (especially Ed25519 and Ed448).
++++     *
++++     * If `key` is not a `KeyObject`, this function behaves as if `key` had been
++++     * passed to {@link createPrivateKey}. If it is an object, the following
++++     * additional properties can be passed:
++++     *
++++     * If the `callback` function is provided this function uses libuv's threadpool.
++++     * @since v12.0.0
++++     */
++++    function sign(
++++        algorithm: string | null | undefined,
++++        data: NodeJS.ArrayBufferView,
++++        key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
++++    ): Buffer;
++++    function sign(
++++        algorithm: string | null | undefined,
++++        data: NodeJS.ArrayBufferView,
++++        key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
++++        callback: (error: Error | null, data: Buffer) => void,
++++    ): void;
++++    /**
++++     * Verifies the given signature for `data` using the given key and algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is dependent upon the
++++     * key type (especially Ed25519 and Ed448).
++++     *
++++     * If `key` is not a `KeyObject`, this function behaves as if `key` had been
++++     * passed to {@link createPublicKey}. If it is an object, the following
++++     * additional properties can be passed:
++++     *
++++     * The `signature` argument is the previously calculated signature for the `data`.
++++     *
++++     * Because public keys can be derived from private keys, a private key or a public
++++     * key may be passed for `key`.
++++     *
++++     * If the `callback` function is provided this function uses libuv's threadpool.
++++     * @since v12.0.0
++++     */
++++    function verify(
++++        algorithm: string | null | undefined,
++++        data: NodeJS.ArrayBufferView,
++++        key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
++++        signature: NodeJS.ArrayBufferView,
++++    ): boolean;
++++    function verify(
++++        algorithm: string | null | undefined,
++++        data: NodeJS.ArrayBufferView,
++++        key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
++++        signature: NodeJS.ArrayBufferView,
++++        callback: (error: Error | null, result: boolean) => void,
++++    ): void;
++++    /**
++++     * Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`.
++++     * Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'` (for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES).
++++     * @since v13.9.0, v12.17.0
++++     */
++++    function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): Buffer;
++++    /**
++++     * A utility for creating one-shot hash digests of data. It can be faster than the object-based `crypto.createHash()` when hashing a smaller amount of data
++++     * (<= 5MB) that's readily available. If the data can be big or if it is streamed, it's still recommended to use `crypto.createHash()` instead. The `algorithm`
++++     * is dependent on the available algorithms supported by the version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. On recent releases
++++     * of OpenSSL, `openssl list -digest-algorithms` will display the available digest algorithms.
++++     *
++++     * Example:
++++     *
++++     * ```js
++++     * import crypto from 'node:crypto';
++++     * import { Buffer } from 'node:buffer';
++++     *
++++     * // Hashing a string and return the result as a hex-encoded string.
++++     * const string = 'Node.js';
++++     * // 10b3493287f831e81a438811a1ffba01f8cec4b7
++++     * console.log(crypto.hash('sha1', string));
++++     *
++++     * // Encode a base64-encoded string into a Buffer, hash it and return
++++     * // the result as a buffer.
++++     * const base64 = 'Tm9kZS5qcw==';
++++     * // <Buffer 10 b3 49 32 87 f8 31 e8 1a 43 88 11 a1 ff ba 01 f8 ce c4 b7>
++++     * console.log(crypto.hash('sha1', Buffer.from(base64, 'base64'), 'buffer'));
++++     * ```
++++     * @since v21.7.0, v20.12.0
++++     * @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different input encoding is desired for a string input, user
++++     *             could encode the string into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing the encoded `TypedArray` into this API instead.
++++     * @param [outputEncoding='hex'] [Encoding](https://nodejs.org/docs/latest-v20.x/api/buffer.html#buffers-and-character-encodings) used to encode the returned digest.
++++     */
++++    function hash(algorithm: string, data: BinaryLike, outputEncoding?: BinaryToTextEncoding): string;
++++    function hash(algorithm: string, data: BinaryLike, outputEncoding: "buffer"): Buffer;
++++    function hash(
++++        algorithm: string,
++++        data: BinaryLike,
++++        outputEncoding?: BinaryToTextEncoding | "buffer",
++++    ): string | Buffer;
++++    type CipherMode = "cbc" | "ccm" | "cfb" | "ctr" | "ecb" | "gcm" | "ocb" | "ofb" | "stream" | "wrap" | "xts";
++++    interface CipherInfoOptions {
++++        /**
++++         * A test key length.
++++         */
++++        keyLength?: number | undefined;
++++        /**
++++         * A test IV length.
++++         */
++++        ivLength?: number | undefined;
++++    }
++++    interface CipherInfo {
++++        /**
++++         * The name of the cipher.
++++         */
++++        name: string;
++++        /**
++++         * The nid of the cipher.
++++         */
++++        nid: number;
++++        /**
++++         * The block size of the cipher in bytes.
++++         * This property is omitted when mode is 'stream'.
++++         */
++++        blockSize?: number | undefined;
++++        /**
++++         * The expected or default initialization vector length in bytes.
++++         * This property is omitted if the cipher does not use an initialization vector.
++++         */
++++        ivLength?: number | undefined;
++++        /**
++++         * The expected or default key length in bytes.
++++         */
++++        keyLength: number;
++++        /**
++++         * The cipher mode.
++++         */
++++        mode: CipherMode;
++++    }
++++    /**
++++     * Returns information about a given cipher.
++++     *
++++     * Some ciphers accept variable length keys and initialization vectors. By default,
++++     * the `crypto.getCipherInfo()` method will return the default values for these
++++     * ciphers. To test if a given key length or iv length is acceptable for given
++++     * cipher, use the `keyLength` and `ivLength` options. If the given values are
++++     * unacceptable, `undefined` will be returned.
++++     * @since v15.0.0
++++     * @param nameOrNid The name or nid of the cipher to query.
++++     */
++++    function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined;
++++    /**
++++     * HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
++++     *
++++     * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an errors occurs while deriving the key, `err` will be set;
++++     * otherwise `err` will be `null`. The successfully generated `derivedKey` will
++++     * be passed to the callback as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any
++++     * of the input arguments specify invalid values or types.
++++     *
++++     * ```js
++++     * import { Buffer } from 'node:buffer';
++++     * const {
++++     *   hkdf,
++++     * } = await import('node:crypto');
++++     *
++++     * hkdf('sha512', 'key', 'salt', 'info', 64, (err, derivedKey) => {
++++     *   if (err) throw err;
++++     *   console.log(Buffer.from(derivedKey).toString('hex'));  // '24156e2...5391653'
++++     * });
++++     * ```
++++     * @since v15.0.0
++++     * @param digest The digest algorithm to use.
++++     * @param ikm The input keying material. Must be provided but can be zero-length.
++++     * @param salt The salt value. Must be provided but can be zero-length.
++++     * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes.
++++     * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512`
++++     * generates 64-byte hashes, making the maximum HKDF output 16320 bytes).
++++     */
++++    function hkdf(
++++        digest: string,
++++        irm: BinaryLike | KeyObject,
++++        salt: BinaryLike,
++++        info: BinaryLike,
++++        keylen: number,
++++        callback: (err: Error | null, derivedKey: ArrayBuffer) => void,
++++    ): void;
++++    /**
++++     * Provides a synchronous HKDF key derivation function as defined in RFC 5869\. The
++++     * given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
++++     *
++++     * The successfully generated `derivedKey` will be returned as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer).
++++     *
++++     * An error will be thrown if any of the input arguments specify invalid values or
++++     * types, or if the derived key cannot be generated.
++++     *
++++     * ```js
++++     * import { Buffer } from 'node:buffer';
++++     * const {
++++     *   hkdfSync,
++++     * } = await import('node:crypto');
++++     *
++++     * const derivedKey = hkdfSync('sha512', 'key', 'salt', 'info', 64);
++++     * console.log(Buffer.from(derivedKey).toString('hex'));  // '24156e2...5391653'
++++     * ```
++++     * @since v15.0.0
++++     * @param digest The digest algorithm to use.
++++     * @param ikm The input keying material. Must be provided but can be zero-length.
++++     * @param salt The salt value. Must be provided but can be zero-length.
++++     * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes.
++++     * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512`
++++     * generates 64-byte hashes, making the maximum HKDF output 16320 bytes).
++++     */
++++    function hkdfSync(
++++        digest: string,
++++        ikm: BinaryLike | KeyObject,
++++        salt: BinaryLike,
++++        info: BinaryLike,
++++        keylen: number,
++++    ): ArrayBuffer;
++++    interface SecureHeapUsage {
++++        /**
++++         * The total allocated secure heap size as specified using the `--secure-heap=n` command-line flag.
++++         */
++++        total: number;
++++        /**
++++         * The minimum allocation from the secure heap as specified using the `--secure-heap-min` command-line flag.
++++         */
++++        min: number;
++++        /**
++++         * The total number of bytes currently allocated from the secure heap.
++++         */
++++        used: number;
++++        /**
++++         * The calculated ratio of `used` to `total` allocated bytes.
++++         */
++++        utilization: number;
++++    }
++++    /**
++++     * @since v15.6.0
++++     */
++++    function secureHeapUsed(): SecureHeapUsage;
++++    interface RandomUUIDOptions {
++++        /**
++++         * By default, to improve performance,
++++         * Node.js will pre-emptively generate and persistently cache enough
++++         * random data to generate up to 128 random UUIDs. To generate a UUID
++++         * without using the cache, set `disableEntropyCache` to `true`.
++++         *
++++         * @default `false`
++++         */
++++        disableEntropyCache?: boolean | undefined;
++++    }
++++    type UUID = `${string}-${string}-${string}-${string}-${string}`;
++++    /**
++++     * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
++++     * cryptographic pseudorandom number generator.
++++     * @since v15.6.0, v14.17.0
++++     */
++++    function randomUUID(options?: RandomUUIDOptions): UUID;
++++    interface X509CheckOptions {
++++        /**
++++         * @default 'always'
++++         */
++++        subject?: "always" | "default" | "never";
++++        /**
++++         * @default true
++++         */
++++        wildcards?: boolean;
++++        /**
++++         * @default true
++++         */
++++        partialWildcards?: boolean;
++++        /**
++++         * @default false
++++         */
++++        multiLabelWildcards?: boolean;
++++        /**
++++         * @default false
++++         */
++++        singleLabelSubdomains?: boolean;
++++    }
++++    /**
++++     * Encapsulates an X509 certificate and provides read-only access to
++++     * its information.
++++     *
++++     * ```js
++++     * const { X509Certificate } = await import('node:crypto');
++++     *
++++     * const x509 = new X509Certificate('{... pem encoded cert ...}');
++++     *
++++     * console.log(x509.subject);
++++     * ```
++++     * @since v15.6.0
++++     */
++++    class X509Certificate {
++++        /**
++++         * Will be \`true\` if this is a Certificate Authority (CA) certificate.
++++         * @since v15.6.0
++++         */
++++        readonly ca: boolean;
++++        /**
++++         * The SHA-1 fingerprint of this certificate.
++++         *
++++         * Because SHA-1 is cryptographically broken and because the security of SHA-1 is
++++         * significantly worse than that of algorithms that are commonly used to sign
++++         * certificates, consider using `x509.fingerprint256` instead.
++++         * @since v15.6.0
++++         */
++++        readonly fingerprint: string;
++++        /**
++++         * The SHA-256 fingerprint of this certificate.
++++         * @since v15.6.0
++++         */
++++        readonly fingerprint256: string;
++++        /**
++++         * The SHA-512 fingerprint of this certificate.
++++         *
++++         * Because computing the SHA-256 fingerprint is usually faster and because it is
++++         * only half the size of the SHA-512 fingerprint, `x509.fingerprint256` may be
++++         * a better choice. While SHA-512 presumably provides a higher level of security in
++++         * general, the security of SHA-256 matches that of most algorithms that are
++++         * commonly used to sign certificates.
++++         * @since v17.2.0, v16.14.0
++++         */
++++        readonly fingerprint512: string;
++++        /**
++++         * The complete subject of this certificate.
++++         * @since v15.6.0
++++         */
++++        readonly subject: string;
++++        /**
++++         * The subject alternative name specified for this certificate.
++++         *
++++         * This is a comma-separated list of subject alternative names. Each entry begins
++++         * with a string identifying the kind of the subject alternative name followed by
++++         * a colon and the value associated with the entry.
++++         *
++++         * Earlier versions of Node.js incorrectly assumed that it is safe to split this
++++         * property at the two-character sequence `', '` (see [CVE-2021-44532](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44532)). However,
++++         * both malicious and legitimate certificates can contain subject alternative names
++++         * that include this sequence when represented as a string.
++++         *
++++         * After the prefix denoting the type of the entry, the remainder of each entry
++++         * might be enclosed in quotes to indicate that the value is a JSON string literal.
++++         * For backward compatibility, Node.js only uses JSON string literals within this
++++         * property when necessary to avoid ambiguity. Third-party code should be prepared
++++         * to handle both possible entry formats.
++++         * @since v15.6.0
++++         */
++++        readonly subjectAltName: string | undefined;
++++        /**
++++         * A textual representation of the certificate's authority information access
++++         * extension.
++++         *
++++         * This is a line feed separated list of access descriptions. Each line begins with
++++         * the access method and the kind of the access location, followed by a colon and
++++         * the value associated with the access location.
++++         *
++++         * After the prefix denoting the access method and the kind of the access location,
++++         * the remainder of each line might be enclosed in quotes to indicate that the
++++         * value is a JSON string literal. For backward compatibility, Node.js only uses
++++         * JSON string literals within this property when necessary to avoid ambiguity.
++++         * Third-party code should be prepared to handle both possible entry formats.
++++         * @since v15.6.0
++++         */
++++        readonly infoAccess: string | undefined;
++++        /**
++++         * An array detailing the key usages for this certificate.
++++         * @since v15.6.0
++++         */
++++        readonly keyUsage: string[];
++++        /**
++++         * The issuer identification included in this certificate.
++++         * @since v15.6.0
++++         */
++++        readonly issuer: string;
++++        /**
++++         * The issuer certificate or `undefined` if the issuer certificate is not
++++         * available.
++++         * @since v15.9.0
++++         */
++++        readonly issuerCertificate?: X509Certificate | undefined;
++++        /**
++++         * The public key `KeyObject` for this certificate.
++++         * @since v15.6.0
++++         */
++++        readonly publicKey: KeyObject;
++++        /**
++++         * A `Buffer` containing the DER encoding of this certificate.
++++         * @since v15.6.0
++++         */
++++        readonly raw: Buffer;
++++        /**
++++         * The serial number of this certificate.
++++         *
++++         * Serial numbers are assigned by certificate authorities and do not uniquely
++++         * identify certificates. Consider using `x509.fingerprint256` as a unique
++++         * identifier instead.
++++         * @since v15.6.0
++++         */
++++        readonly serialNumber: string;
++++        /**
++++         * The date/time from which this certificate is considered valid.
++++         * @since v15.6.0
++++         */
++++        readonly validFrom: string;
++++        /**
++++         * The date/time until which this certificate is considered valid.
++++         * @since v15.6.0
++++         */
++++        readonly validTo: string;
++++        constructor(buffer: BinaryLike);
++++        /**
++++         * Checks whether the certificate matches the given email address.
++++         *
++++         * If the `'subject'` option is undefined or set to `'default'`, the certificate
++++         * subject is only considered if the subject alternative name extension either does
++++         * not exist or does not contain any email addresses.
++++         *
++++         * If the `'subject'` option is set to `'always'` and if the subject alternative
++++         * name extension either does not exist or does not contain a matching email
++++         * address, the certificate subject is considered.
++++         *
++++         * If the `'subject'` option is set to `'never'`, the certificate subject is never
++++         * considered, even if the certificate contains no subject alternative names.
++++         * @since v15.6.0
++++         * @return Returns `email` if the certificate matches, `undefined` if it does not.
++++         */
++++        checkEmail(email: string, options?: Pick<X509CheckOptions, "subject">): string | undefined;
++++        /**
++++         * Checks whether the certificate matches the given host name.
++++         *
++++         * If the certificate matches the given host name, the matching subject name is
++++         * returned. The returned name might be an exact match (e.g., `foo.example.com`)
++++         * or it might contain wildcards (e.g., `*.example.com`). Because host name
++++         * comparisons are case-insensitive, the returned subject name might also differ
++++         * from the given `name` in capitalization.
++++         *
++++         * If the `'subject'` option is undefined or set to `'default'`, the certificate
++++         * subject is only considered if the subject alternative name extension either does
++++         * not exist or does not contain any DNS names. This behavior is consistent with [RFC 2818](https://www.rfc-editor.org/rfc/rfc2818.txt) ("HTTP Over TLS").
++++         *
++++         * If the `'subject'` option is set to `'always'` and if the subject alternative
++++         * name extension either does not exist or does not contain a matching DNS name,
++++         * the certificate subject is considered.
++++         *
++++         * If the `'subject'` option is set to `'never'`, the certificate subject is never
++++         * considered, even if the certificate contains no subject alternative names.
++++         * @since v15.6.0
++++         * @return Returns a subject name that matches `name`, or `undefined` if no subject name matches `name`.
++++         */
++++        checkHost(name: string, options?: X509CheckOptions): string | undefined;
++++        /**
++++         * Checks whether the certificate matches the given IP address (IPv4 or IPv6).
++++         *
++++         * Only [RFC 5280](https://www.rfc-editor.org/rfc/rfc5280.txt) `iPAddress` subject alternative names are considered, and they
++++         * must match the given `ip` address exactly. Other subject alternative names as
++++         * well as the subject field of the certificate are ignored.
++++         * @since v15.6.0
++++         * @return Returns `ip` if the certificate matches, `undefined` if it does not.
++++         */
++++        checkIP(ip: string): string | undefined;
++++        /**
++++         * Checks whether this certificate was issued by the given `otherCert`.
++++         * @since v15.6.0
++++         */
++++        checkIssued(otherCert: X509Certificate): boolean;
++++        /**
++++         * Checks whether the public key for this certificate is consistent with
++++         * the given private key.
++++         * @since v15.6.0
++++         * @param privateKey A private key.
++++         */
++++        checkPrivateKey(privateKey: KeyObject): boolean;
++++        /**
++++         * There is no standard JSON encoding for X509 certificates. The`toJSON()` method returns a string containing the PEM encoded
++++         * certificate.
++++         * @since v15.6.0
++++         */
++++        toJSON(): string;
++++        /**
++++         * Returns information about this certificate using the legacy `certificate object` encoding.
++++         * @since v15.6.0
++++         */
++++        toLegacyObject(): PeerCertificate;
++++        /**
++++         * Returns the PEM-encoded certificate.
++++         * @since v15.6.0
++++         */
++++        toString(): string;
++++        /**
++++         * Verifies that this certificate was signed by the given public key.
++++         * Does not perform any other validation checks on the certificate.
++++         * @since v15.6.0
++++         * @param publicKey A public key.
++++         */
++++        verify(publicKey: KeyObject): boolean;
++++    }
++++    type LargeNumberLike = NodeJS.ArrayBufferView | SharedArrayBuffer | ArrayBuffer | bigint;
++++    interface GeneratePrimeOptions {
++++        add?: LargeNumberLike | undefined;
++++        rem?: LargeNumberLike | undefined;
++++        /**
++++         * @default false
++++         */
++++        safe?: boolean | undefined;
++++        bigint?: boolean | undefined;
++++    }
++++    interface GeneratePrimeOptionsBigInt extends GeneratePrimeOptions {
++++        bigint: true;
++++    }
++++    interface GeneratePrimeOptionsArrayBuffer extends GeneratePrimeOptions {
++++        bigint?: false | undefined;
++++    }
++++    /**
++++     * Generates a pseudorandom prime of `size` bits.
++++     *
++++     * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime.
++++     *
++++     * The `options.add` and `options.rem` parameters can be used to enforce additional
++++     * requirements, e.g., for Diffie-Hellman:
++++     *
++++     * * If `options.add` and `options.rem` are both set, the prime will satisfy the
++++     * condition that `prime % add = rem`.
++++     * * If only `options.add` is set and `options.safe` is not `true`, the prime will
++++     * satisfy the condition that `prime % add = 1`.
++++     * * If only `options.add` is set and `options.safe` is set to `true`, the prime
++++     * will instead satisfy the condition that `prime % add = 3`. This is necessary
++++     * because `prime % add = 1` for `options.add > 2` would contradict the condition
++++     * enforced by `options.safe`.
++++     * * `options.rem` is ignored if `options.add` is not given.
++++     *
++++     * Both `options.add` and `options.rem` must be encoded as big-endian sequences
++++     * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`.
++++     *
++++     * By default, the prime is encoded as a big-endian sequence of octets
++++     * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
++++     * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided.
++++     * @since v15.8.0
++++     * @param size The size (in bits) of the prime to generate.
++++     */
++++    function generatePrime(size: number, callback: (err: Error | null, prime: ArrayBuffer) => void): void;
++++    function generatePrime(
++++        size: number,
++++        options: GeneratePrimeOptionsBigInt,
++++        callback: (err: Error | null, prime: bigint) => void,
++++    ): void;
++++    function generatePrime(
++++        size: number,
++++        options: GeneratePrimeOptionsArrayBuffer,
++++        callback: (err: Error | null, prime: ArrayBuffer) => void,
++++    ): void;
++++    function generatePrime(
++++        size: number,
++++        options: GeneratePrimeOptions,
++++        callback: (err: Error | null, prime: ArrayBuffer | bigint) => void,
++++    ): void;
++++    /**
++++     * Generates a pseudorandom prime of `size` bits.
++++     *
++++     * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime.
++++     *
++++     * The `options.add` and `options.rem` parameters can be used to enforce additional
++++     * requirements, e.g., for Diffie-Hellman:
++++     *
++++     * * If `options.add` and `options.rem` are both set, the prime will satisfy the
++++     * condition that `prime % add = rem`.
++++     * * If only `options.add` is set and `options.safe` is not `true`, the prime will
++++     * satisfy the condition that `prime % add = 1`.
++++     * * If only `options.add` is set and `options.safe` is set to `true`, the prime
++++     * will instead satisfy the condition that `prime % add = 3`. This is necessary
++++     * because `prime % add = 1` for `options.add > 2` would contradict the condition
++++     * enforced by `options.safe`.
++++     * * `options.rem` is ignored if `options.add` is not given.
++++     *
++++     * Both `options.add` and `options.rem` must be encoded as big-endian sequences
++++     * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`.
++++     *
++++     * By default, the prime is encoded as a big-endian sequence of octets
++++     * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
++++     * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided.
++++     * @since v15.8.0
++++     * @param size The size (in bits) of the prime to generate.
++++     */
++++    function generatePrimeSync(size: number): ArrayBuffer;
++++    function generatePrimeSync(size: number, options: GeneratePrimeOptionsBigInt): bigint;
++++    function generatePrimeSync(size: number, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer;
++++    function generatePrimeSync(size: number, options: GeneratePrimeOptions): ArrayBuffer | bigint;
++++    interface CheckPrimeOptions {
++++        /**
++++         * The number of Miller-Rabin probabilistic primality iterations to perform.
++++         * When the value is 0 (zero), a number of checks is used that yields a false positive rate of at most `2**-64` for random input.
++++         * Care must be used when selecting a number of checks.
++++         * Refer to the OpenSSL documentation for the BN_is_prime_ex function nchecks options for more details.
++++         *
++++         * @default 0
++++         */
++++        checks?: number | undefined;
++++    }
++++    /**
++++     * Checks the primality of the `candidate`.
++++     * @since v15.8.0
++++     * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length.
++++     */
++++    function checkPrime(value: LargeNumberLike, callback: (err: Error | null, result: boolean) => void): void;
++++    function checkPrime(
++++        value: LargeNumberLike,
++++        options: CheckPrimeOptions,
++++        callback: (err: Error | null, result: boolean) => void,
++++    ): void;
++++    /**
++++     * Checks the primality of the `candidate`.
++++     * @since v15.8.0
++++     * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length.
++++     * @return `true` if the candidate is a prime with an error probability less than `0.25 ** options.checks`.
++++     */
++++    function checkPrimeSync(candidate: LargeNumberLike, options?: CheckPrimeOptions): boolean;
++++    /**
++++     * Load and set the `engine` for some or all OpenSSL functions (selected by flags).
++++     *
++++     * `engine` could be either an id or a path to the engine's shared library.
++++     *
++++     * The optional `flags` argument uses `ENGINE_METHOD_ALL` by default. The `flags` is a bit field taking one of or a mix of the following flags (defined in `crypto.constants`):
++++     *
++++     * * `crypto.constants.ENGINE_METHOD_RSA`
++++     * * `crypto.constants.ENGINE_METHOD_DSA`
++++     * * `crypto.constants.ENGINE_METHOD_DH`
++++     * * `crypto.constants.ENGINE_METHOD_RAND`
++++     * * `crypto.constants.ENGINE_METHOD_EC`
++++     * * `crypto.constants.ENGINE_METHOD_CIPHERS`
++++     * * `crypto.constants.ENGINE_METHOD_DIGESTS`
++++     * * `crypto.constants.ENGINE_METHOD_PKEY_METHS`
++++     * * `crypto.constants.ENGINE_METHOD_PKEY_ASN1_METHS`
++++     * * `crypto.constants.ENGINE_METHOD_ALL`
++++     * * `crypto.constants.ENGINE_METHOD_NONE`
++++     * @since v0.11.11
++++     * @param flags
++++     */
++++    function setEngine(engine: string, flags?: number): void;
++++    /**
++++     * A convenient alias for {@link webcrypto.getRandomValues}. This
++++     * implementation is not compliant with the Web Crypto spec, to write
++++     * web-compatible code use {@link webcrypto.getRandomValues} instead.
++++     * @since v17.4.0
++++     * @return Returns `typedArray`.
++++     */
++++    function getRandomValues<T extends webcrypto.BufferSource>(typedArray: T): T;
++++    /**
++++     * A convenient alias for `crypto.webcrypto.subtle`.
++++     * @since v17.4.0
++++     */
++++    const subtle: webcrypto.SubtleCrypto;
++++    /**
++++     * An implementation of the Web Crypto API standard.
++++     *
++++     * See the {@link https://nodejs.org/docs/latest/api/webcrypto.html Web Crypto API documentation} for details.
++++     * @since v15.0.0
++++     */
++++    const webcrypto: webcrypto.Crypto;
++++    namespace webcrypto {
++++        type BufferSource = ArrayBufferView | ArrayBuffer;
++++        type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
++++        type KeyType = "private" | "public" | "secret";
++++        type KeyUsage =
++++            | "decrypt"
++++            | "deriveBits"
++++            | "deriveKey"
++++            | "encrypt"
++++            | "sign"
++++            | "unwrapKey"
++++            | "verify"
++++            | "wrapKey";
++++        type AlgorithmIdentifier = Algorithm | string;
++++        type HashAlgorithmIdentifier = AlgorithmIdentifier;
++++        type NamedCurve = string;
++++        type BigInteger = Uint8Array;
++++        interface AesCbcParams extends Algorithm {
++++            iv: BufferSource;
++++        }
++++        interface AesCtrParams extends Algorithm {
++++            counter: BufferSource;
++++            length: number;
++++        }
++++        interface AesDerivedKeyParams extends Algorithm {
++++            length: number;
++++        }
++++        interface AesGcmParams extends Algorithm {
++++            additionalData?: BufferSource;
++++            iv: BufferSource;
++++            tagLength?: number;
++++        }
++++        interface AesKeyAlgorithm extends KeyAlgorithm {
++++            length: number;
++++        }
++++        interface AesKeyGenParams extends Algorithm {
++++            length: number;
++++        }
++++        interface Algorithm {
++++            name: string;
++++        }
++++        interface EcKeyAlgorithm extends KeyAlgorithm {
++++            namedCurve: NamedCurve;
++++        }
++++        interface EcKeyGenParams extends Algorithm {
++++            namedCurve: NamedCurve;
++++        }
++++        interface EcKeyImportParams extends Algorithm {
++++            namedCurve: NamedCurve;
++++        }
++++        interface EcdhKeyDeriveParams extends Algorithm {
++++            public: CryptoKey;
++++        }
++++        interface EcdsaParams extends Algorithm {
++++            hash: HashAlgorithmIdentifier;
++++        }
++++        interface Ed448Params extends Algorithm {
++++            context?: BufferSource;
++++        }
++++        interface HkdfParams extends Algorithm {
++++            hash: HashAlgorithmIdentifier;
++++            info: BufferSource;
++++            salt: BufferSource;
++++        }
++++        interface HmacImportParams extends Algorithm {
++++            hash: HashAlgorithmIdentifier;
++++            length?: number;
++++        }
++++        interface HmacKeyAlgorithm extends KeyAlgorithm {
++++            hash: KeyAlgorithm;
++++            length: number;
++++        }
++++        interface HmacKeyGenParams extends Algorithm {
++++            hash: HashAlgorithmIdentifier;
++++            length?: number;
++++        }
++++        interface JsonWebKey {
++++            alg?: string;
++++            crv?: string;
++++            d?: string;
++++            dp?: string;
++++            dq?: string;
++++            e?: string;
++++            ext?: boolean;
++++            k?: string;
++++            key_ops?: string[];
++++            kty?: string;
++++            n?: string;
++++            oth?: RsaOtherPrimesInfo[];
++++            p?: string;
++++            q?: string;
++++            qi?: string;
++++            use?: string;
++++            x?: string;
++++            y?: string;
++++        }
++++        interface KeyAlgorithm {
++++            name: string;
++++        }
++++        interface Pbkdf2Params extends Algorithm {
++++            hash: HashAlgorithmIdentifier;
++++            iterations: number;
++++            salt: BufferSource;
++++        }
++++        interface RsaHashedImportParams extends Algorithm {
++++            hash: HashAlgorithmIdentifier;
++++        }
++++        interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
++++            hash: KeyAlgorithm;
++++        }
++++        interface RsaHashedKeyGenParams extends RsaKeyGenParams {
++++            hash: HashAlgorithmIdentifier;
++++        }
++++        interface RsaKeyAlgorithm extends KeyAlgorithm {
++++            modulusLength: number;
++++            publicExponent: BigInteger;
++++        }
++++        interface RsaKeyGenParams extends Algorithm {
++++            modulusLength: number;
++++            publicExponent: BigInteger;
++++        }
++++        interface RsaOaepParams extends Algorithm {
++++            label?: BufferSource;
++++        }
++++        interface RsaOtherPrimesInfo {
++++            d?: string;
++++            r?: string;
++++            t?: string;
++++        }
++++        interface RsaPssParams extends Algorithm {
++++            saltLength: number;
++++        }
++++        /**
++++         * Importing the `webcrypto` object (`import { webcrypto } from 'node:crypto'`) gives an instance of the `Crypto` class.
++++         * `Crypto` is a singleton that provides access to the remainder of the crypto API.
++++         * @since v15.0.0
++++         */
++++        interface Crypto {
++++            /**
++++             * Provides access to the `SubtleCrypto` API.
++++             * @since v15.0.0
++++             */
++++            readonly subtle: SubtleCrypto;
++++            /**
++++             * Generates cryptographically strong random values.
++++             * The given `typedArray` is filled with random values, and a reference to `typedArray` is returned.
++++             *
++++             * The given `typedArray` must be an integer-based instance of {@link NodeJS.TypedArray}, i.e. `Float32Array` and `Float64Array` are not accepted.
++++             *
++++             * An error will be thrown if the given `typedArray` is larger than 65,536 bytes.
++++             * @since v15.0.0
++++             */
++++            getRandomValues<T extends Exclude<NodeJS.TypedArray, Float32Array | Float64Array>>(typedArray: T): T;
++++            /**
++++             * Generates a random {@link https://www.rfc-editor.org/rfc/rfc4122.txt RFC 4122} version 4 UUID.
++++             * The UUID is generated using a cryptographic pseudorandom number generator.
++++             * @since v16.7.0
++++             */
++++            randomUUID(): UUID;
++++            CryptoKey: CryptoKeyConstructor;
++++        }
++++        // This constructor throws ILLEGAL_CONSTRUCTOR so it should not be newable.
++++        interface CryptoKeyConstructor {
++++            /** Illegal constructor */
++++            (_: { readonly _: unique symbol }): never; // Allows instanceof to work but not be callable by the user.
++++            readonly length: 0;
++++            readonly name: "CryptoKey";
++++            readonly prototype: CryptoKey;
++++        }
++++        /**
++++         * @since v15.0.0
++++         */
++++        interface CryptoKey {
++++            /**
++++             * An object detailing the algorithm for which the key can be used along with additional algorithm-specific parameters.
++++             * @since v15.0.0
++++             */
++++            readonly algorithm: KeyAlgorithm;
++++            /**
++++             * When `true`, the {@link CryptoKey} can be extracted using either `subtleCrypto.exportKey()` or `subtleCrypto.wrapKey()`.
++++             * @since v15.0.0
++++             */
++++            readonly extractable: boolean;
++++            /**
++++             * A string identifying whether the key is a symmetric (`'secret'`) or asymmetric (`'private'` or `'public'`) key.
++++             * @since v15.0.0
++++             */
++++            readonly type: KeyType;
++++            /**
++++             * An array of strings identifying the operations for which the key may be used.
++++             *
++++             * The possible usages are:
++++             * - `'encrypt'` - The key may be used to encrypt data.
++++             * - `'decrypt'` - The key may be used to decrypt data.
++++             * - `'sign'` - The key may be used to generate digital signatures.
++++             * - `'verify'` - The key may be used to verify digital signatures.
++++             * - `'deriveKey'` - The key may be used to derive a new key.
++++             * - `'deriveBits'` - The key may be used to derive bits.
++++             * - `'wrapKey'` - The key may be used to wrap another key.
++++             * - `'unwrapKey'` - The key may be used to unwrap another key.
++++             *
++++             * Valid key usages depend on the key algorithm (identified by `cryptokey.algorithm.name`).
++++             * @since v15.0.0
++++             */
++++            readonly usages: KeyUsage[];
++++        }
++++        /**
++++         * The `CryptoKeyPair` is a simple dictionary object with `publicKey` and `privateKey` properties, representing an asymmetric key pair.
++++         * @since v15.0.0
++++         */
++++        interface CryptoKeyPair {
++++            /**
++++             * A {@link CryptoKey} whose type will be `'private'`.
++++             * @since v15.0.0
++++             */
++++            privateKey: CryptoKey;
++++            /**
++++             * A {@link CryptoKey} whose type will be `'public'`.
++++             * @since v15.0.0
++++             */
++++            publicKey: CryptoKey;
++++        }
++++        /**
++++         * @since v15.0.0
++++         */
++++        interface SubtleCrypto {
++++            /**
++++             * Using the method and parameters specified in `algorithm` and the keying material provided by `key`,
++++             * `subtle.decrypt()` attempts to decipher the provided `data`. If successful,
++++             * the returned promise will be resolved with an `<ArrayBuffer>` containing the plaintext result.
++++             *
++++             * The algorithms currently supported include:
++++             *
++++             * - `'RSA-OAEP'`
++++             * - `'AES-CTR'`
++++             * - `'AES-CBC'`
++++             * - `'AES-GCM'`
++++             * @since v15.0.0
++++             */
++++            decrypt(
++++                algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
++++                key: CryptoKey,
++++                data: BufferSource,
++++            ): Promise<ArrayBuffer>;
++++            /**
++++             * Using the method and parameters specified in `algorithm` and the keying material provided by `baseKey`,
++++             * `subtle.deriveBits()` attempts to generate `length` bits.
++++             * The Node.js implementation requires that when `length` is a number it must be multiple of `8`.
++++             * When `length` is `null` the maximum number of bits for a given algorithm is generated. This is allowed
++++             * for the `'ECDH'`, `'X25519'`, and `'X448'` algorithms.
++++             * If successful, the returned promise will be resolved with an `<ArrayBuffer>` containing the generated data.
++++             *
++++             * The algorithms currently supported include:
++++             *
++++             * - `'ECDH'`
++++             * - `'X25519'`
++++             * - `'X448'`
++++             * - `'HKDF'`
++++             * - `'PBKDF2'`
++++             * @since v15.0.0
++++             */
++++            deriveBits(algorithm: EcdhKeyDeriveParams, baseKey: CryptoKey, length: number | null): Promise<ArrayBuffer>;
++++            deriveBits(
++++                algorithm: AlgorithmIdentifier | HkdfParams | Pbkdf2Params,
++++                baseKey: CryptoKey,
++++                length: number,
++++            ): Promise<ArrayBuffer>;
++++            /**
++++             * Using the method and parameters specified in `algorithm`, and the keying material provided by `baseKey`,
++++             * `subtle.deriveKey()` attempts to generate a new <CryptoKey>` based on the method and parameters in `derivedKeyAlgorithm`.
++++             *
++++             * Calling `subtle.deriveKey()` is equivalent to calling `subtle.deriveBits()` to generate raw keying material,
++++             * then passing the result into the `subtle.importKey()` method using the `deriveKeyAlgorithm`, `extractable`, and `keyUsages` parameters as input.
++++             *
++++             * The algorithms currently supported include:
++++             *
++++             * - `'ECDH'`
++++             * - `'X25519'`
++++             * - `'X448'`
++++             * - `'HKDF'`
++++             * - `'PBKDF2'`
++++             * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
++++             * @since v15.0.0
++++             */
++++            deriveKey(
++++                algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params,
++++                baseKey: CryptoKey,
++++                derivedKeyAlgorithm:
++++                    | AlgorithmIdentifier
++++                    | AesDerivedKeyParams
++++                    | HmacImportParams
++++                    | HkdfParams
++++                    | Pbkdf2Params,
++++                extractable: boolean,
++++                keyUsages: readonly KeyUsage[],
++++            ): Promise<CryptoKey>;
++++            /**
++++             * Using the method identified by `algorithm`, `subtle.digest()` attempts to generate a digest of `data`.
++++             * If successful, the returned promise is resolved with an `<ArrayBuffer>` containing the computed digest.
++++             *
++++             * If `algorithm` is provided as a `<string>`, it must be one of:
++++             *
++++             * - `'SHA-1'`
++++             * - `'SHA-256'`
++++             * - `'SHA-384'`
++++             * - `'SHA-512'`
++++             *
++++             * If `algorithm` is provided as an `<Object>`, it must have a `name` property whose value is one of the above.
++++             * @since v15.0.0
++++             */
++++            digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
++++            /**
++++             * Using the method and parameters specified by `algorithm` and the keying material provided by `key`,
++++             * `subtle.encrypt()` attempts to encipher `data`. If successful,
++++             * the returned promise is resolved with an `<ArrayBuffer>` containing the encrypted result.
++++             *
++++             * The algorithms currently supported include:
++++             *
++++             * - `'RSA-OAEP'`
++++             * - `'AES-CTR'`
++++             * - `'AES-CBC'`
++++             * - `'AES-GCM'`
++++             * @since v15.0.0
++++             */
++++            encrypt(
++++                algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
++++                key: CryptoKey,
++++                data: BufferSource,
++++            ): Promise<ArrayBuffer>;
++++            /**
++++             * Exports the given key into the specified format, if supported.
++++             *
++++             * If the `<CryptoKey>` is not extractable, the returned promise will reject.
++++             *
++++             * When `format` is either `'pkcs8'` or `'spki'` and the export is successful,
++++             * the returned promise will be resolved with an `<ArrayBuffer>` containing the exported key data.
++++             *
++++             * When `format` is `'jwk'` and the export is successful, the returned promise will be resolved with a
++++             * JavaScript object conforming to the {@link https://tools.ietf.org/html/rfc7517 JSON Web Key} specification.
++++             * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
++++             * @returns `<Promise>` containing `<ArrayBuffer>`.
++++             * @since v15.0.0
++++             */
++++            exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
++++            exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
++++            /**
++++             * Using the method and parameters provided in `algorithm`,
++++             * `subtle.generateKey()` attempts to generate new keying material.
++++             * Depending the method used, the method may generate either a single `<CryptoKey>` or a `<CryptoKeyPair>`.
++++             *
++++             * The `<CryptoKeyPair>` (public and private key) generating algorithms supported include:
++++             *
++++             * - `'RSASSA-PKCS1-v1_5'`
++++             * - `'RSA-PSS'`
++++             * - `'RSA-OAEP'`
++++             * - `'ECDSA'`
++++             * - `'Ed25519'`
++++             * - `'Ed448'`
++++             * - `'ECDH'`
++++             * - `'X25519'`
++++             * - `'X448'`
++++             * The `<CryptoKey>` (secret key) generating algorithms supported include:
++++             *
++++             * - `'HMAC'`
++++             * - `'AES-CTR'`
++++             * - `'AES-CBC'`
++++             * - `'AES-GCM'`
++++             * - `'AES-KW'`
++++             * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
++++             * @since v15.0.0
++++             */
++++            generateKey(
++++                algorithm: RsaHashedKeyGenParams | EcKeyGenParams,
++++                extractable: boolean,
++++                keyUsages: readonly KeyUsage[],
++++            ): Promise<CryptoKeyPair>;
++++            generateKey(
++++                algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params,
++++                extractable: boolean,
++++                keyUsages: readonly KeyUsage[],
++++            ): Promise<CryptoKey>;
++++            generateKey(
++++                algorithm: AlgorithmIdentifier,
++++                extractable: boolean,
++++                keyUsages: KeyUsage[],
++++            ): Promise<CryptoKeyPair | CryptoKey>;
++++            /**
++++             * The `subtle.importKey()` method attempts to interpret the provided `keyData` as the given `format`
++++             * to create a `<CryptoKey>` instance using the provided `algorithm`, `extractable`, and `keyUsages` arguments.
++++             * If the import is successful, the returned promise will be resolved with the created `<CryptoKey>`.
++++             *
++++             * If importing a `'PBKDF2'` key, `extractable` must be `false`.
++++             * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
++++             * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
++++             * @since v15.0.0
++++             */
++++            importKey(
++++                format: "jwk",
++++                keyData: JsonWebKey,
++++                algorithm:
++++                    | AlgorithmIdentifier
++++                    | RsaHashedImportParams
++++                    | EcKeyImportParams
++++                    | HmacImportParams
++++                    | AesKeyAlgorithm,
++++                extractable: boolean,
++++                keyUsages: readonly KeyUsage[],
++++            ): Promise<CryptoKey>;
++++            importKey(
++++                format: Exclude<KeyFormat, "jwk">,
++++                keyData: BufferSource,
++++                algorithm:
++++                    | AlgorithmIdentifier
++++                    | RsaHashedImportParams
++++                    | EcKeyImportParams
++++                    | HmacImportParams
++++                    | AesKeyAlgorithm,
++++                extractable: boolean,
++++                keyUsages: KeyUsage[],
++++            ): Promise<CryptoKey>;
++++            /**
++++             * Using the method and parameters given by `algorithm` and the keying material provided by `key`,
++++             * `subtle.sign()` attempts to generate a cryptographic signature of `data`. If successful,
++++             * the returned promise is resolved with an `<ArrayBuffer>` containing the generated signature.
++++             *
++++             * The algorithms currently supported include:
++++             *
++++             * - `'RSASSA-PKCS1-v1_5'`
++++             * - `'RSA-PSS'`
++++             * - `'ECDSA'`
++++             * - `'Ed25519'`
++++             * - `'Ed448'`
++++             * - `'HMAC'`
++++             * @since v15.0.0
++++             */
++++            sign(
++++                algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | Ed448Params,
++++                key: CryptoKey,
++++                data: BufferSource,
++++            ): Promise<ArrayBuffer>;
++++            /**
++++             * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material.
++++             * The `subtle.unwrapKey()` method attempts to decrypt a wrapped key and create a `<CryptoKey>` instance.
++++             * It is equivalent to calling `subtle.decrypt()` first on the encrypted key data (using the `wrappedKey`, `unwrapAlgo`, and `unwrappingKey` arguments as input)
++++             * then passing the results in to the `subtle.importKey()` method using the `unwrappedKeyAlgo`, `extractable`, and `keyUsages` arguments as inputs.
++++             * If successful, the returned promise is resolved with a `<CryptoKey>` object.
++++             *
++++             * The wrapping algorithms currently supported include:
++++             *
++++             * - `'RSA-OAEP'`
++++             * - `'AES-CTR'`
++++             * - `'AES-CBC'`
++++             * - `'AES-GCM'`
++++             * - `'AES-KW'`
++++             *
++++             * The unwrapped key algorithms supported include:
++++             *
++++             * - `'RSASSA-PKCS1-v1_5'`
++++             * - `'RSA-PSS'`
++++             * - `'RSA-OAEP'`
++++             * - `'ECDSA'`
++++             * - `'Ed25519'`
++++             * - `'Ed448'`
++++             * - `'ECDH'`
++++             * - `'X25519'`
++++             * - `'X448'`
++++             * - `'HMAC'`
++++             * - `'AES-CTR'`
++++             * - `'AES-CBC'`
++++             * - `'AES-GCM'`
++++             * - `'AES-KW'`
++++             * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
++++             * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}.
++++             * @since v15.0.0
++++             */
++++            unwrapKey(
++++                format: KeyFormat,
++++                wrappedKey: BufferSource,
++++                unwrappingKey: CryptoKey,
++++                unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
++++                unwrappedKeyAlgorithm:
++++                    | AlgorithmIdentifier
++++                    | RsaHashedImportParams
++++                    | EcKeyImportParams
++++                    | HmacImportParams
++++                    | AesKeyAlgorithm,
++++                extractable: boolean,
++++                keyUsages: KeyUsage[],
++++            ): Promise<CryptoKey>;
++++            /**
++++             * Using the method and parameters given in `algorithm` and the keying material provided by `key`,
++++             * `subtle.verify()` attempts to verify that `signature` is a valid cryptographic signature of `data`.
++++             * The returned promise is resolved with either `true` or `false`.
++++             *
++++             * The algorithms currently supported include:
++++             *
++++             * - `'RSASSA-PKCS1-v1_5'`
++++             * - `'RSA-PSS'`
++++             * - `'ECDSA'`
++++             * - `'Ed25519'`
++++             * - `'Ed448'`
++++             * - `'HMAC'`
++++             * @since v15.0.0
++++             */
++++            verify(
++++                algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | Ed448Params,
++++                key: CryptoKey,
++++                signature: BufferSource,
++++                data: BufferSource,
++++            ): Promise<boolean>;
++++            /**
++++             * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material.
++++             * The `subtle.wrapKey()` method exports the keying material into the format identified by `format`,
++++             * then encrypts it using the method and parameters specified by `wrapAlgo` and the keying material provided by `wrappingKey`.
++++             * It is the equivalent to calling `subtle.exportKey()` using `format` and `key` as the arguments,
++++             * then passing the result to the `subtle.encrypt()` method using `wrappingKey` and `wrapAlgo` as inputs.
++++             * If successful, the returned promise will be resolved with an `<ArrayBuffer>` containing the encrypted key data.
++++             *
++++             * The wrapping algorithms currently supported include:
++++             *
++++             * - `'RSA-OAEP'`
++++             * - `'AES-CTR'`
++++             * - `'AES-CBC'`
++++             * - `'AES-GCM'`
++++             * - `'AES-KW'`
++++             * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`.
++++             * @since v15.0.0
++++             */
++++            wrapKey(
++++                format: KeyFormat,
++++                key: CryptoKey,
++++                wrappingKey: CryptoKey,
++++                wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams,
++++            ): Promise<ArrayBuffer>;
++++        }
++++    }
++++
++++    global {
++++        var crypto: typeof globalThis extends {
++++            crypto: infer T;
++++            onmessage: any;
++++        } ? T
++++            : webcrypto.Crypto;
++++    }
++++}
++++declare module "node:crypto" {
++++    export * from "crypto";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3843f237f3c4a40f635e0cba88ab1eb567a761ce
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,596 @@@@@
++++/**
++++ * The `node:dgram` module provides an implementation of UDP datagram sockets.
++++ *
++++ * ```js
++++ * import dgram from 'node:dgram';
++++ *
++++ * const server = dgram.createSocket('udp4');
++++ *
++++ * server.on('error', (err) => {
++++ *   console.error(`server error:\n${err.stack}`);
++++ *   server.close();
++++ * });
++++ *
++++ * server.on('message', (msg, rinfo) => {
++++ *   console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`);
++++ * });
++++ *
++++ * server.on('listening', () => {
++++ *   const address = server.address();
++++ *   console.log(`server listening ${address.address}:${address.port}`);
++++ * });
++++ *
++++ * server.bind(41234);
++++ * // Prints: server listening 0.0.0.0:41234
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/dgram.js)
++++ */
++++declare module "dgram" {
++++    import { AddressInfo } from "node:net";
++++    import * as dns from "node:dns";
++++    import { Abortable, EventEmitter } from "node:events";
++++    interface RemoteInfo {
++++        address: string;
++++        family: "IPv4" | "IPv6";
++++        port: number;
++++        size: number;
++++    }
++++    interface BindOptions {
++++        port?: number | undefined;
++++        address?: string | undefined;
++++        exclusive?: boolean | undefined;
++++        fd?: number | undefined;
++++    }
++++    type SocketType = "udp4" | "udp6";
++++    interface SocketOptions extends Abortable {
++++        type: SocketType;
++++        reuseAddr?: boolean | undefined;
++++        /**
++++         * @default false
++++         */
++++        ipv6Only?: boolean | undefined;
++++        recvBufferSize?: number | undefined;
++++        sendBufferSize?: number | undefined;
++++        lookup?:
++++            | ((
++++                hostname: string,
++++                options: dns.LookupOneOptions,
++++                callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
++++            ) => void)
++++            | undefined;
++++    }
++++    /**
++++     * Creates a `dgram.Socket` object. Once the socket is created, calling `socket.bind()` will instruct the socket to begin listening for datagram
++++     * messages. When `address` and `port` are not passed to `socket.bind()` the
++++     * method will bind the socket to the "all interfaces" address on a random port
++++     * (it does the right thing for both `udp4` and `udp6` sockets). The bound address
++++     * and port can be retrieved using `socket.address().address` and `socket.address().port`.
++++     *
++++     * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.close()` on the socket:
++++     *
++++     * ```js
++++     * const controller = new AbortController();
++++     * const { signal } = controller;
++++     * const server = dgram.createSocket({ type: 'udp4', signal });
++++     * server.on('message', (msg, rinfo) => {
++++     *   console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`);
++++     * });
++++     * // Later, when you want to close the server.
++++     * controller.abort();
++++     * ```
++++     * @since v0.11.13
++++     * @param options Available options are:
++++     * @param callback Attached as a listener for `'message'` events. Optional.
++++     */
++++    function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
++++    function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
++++    /**
++++     * Encapsulates the datagram functionality.
++++     *
++++     * New instances of `dgram.Socket` are created using {@link createSocket}.
++++     * The `new` keyword is not to be used to create `dgram.Socket` instances.
++++     * @since v0.1.99
++++     */
++++    class Socket extends EventEmitter {
++++        /**
++++         * Tells the kernel to join a multicast group at the given `multicastAddress` and `multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the `multicastInterface` argument is not
++++         * specified, the operating system will choose
++++         * one interface and will add membership to it. To add membership to every
++++         * available interface, call `addMembership` multiple times, once per interface.
++++         *
++++         * When called on an unbound socket, this method will implicitly bind to a random
++++         * port, listening on all interfaces.
++++         *
++++         * When sharing a UDP socket across multiple `cluster` workers, the`socket.addMembership()` function must be called only once or an`EADDRINUSE` error will occur:
++++         *
++++         * ```js
++++         * import cluster from 'node:cluster';
++++         * import dgram from 'node:dgram';
++++         *
++++         * if (cluster.isPrimary) {
++++         *   cluster.fork(); // Works ok.
++++         *   cluster.fork(); // Fails with EADDRINUSE.
++++         * } else {
++++         *   const s = dgram.createSocket('udp4');
++++         *   s.bind(1234, () => {
++++         *     s.addMembership('224.0.0.114');
++++         *   });
++++         * }
++++         * ```
++++         * @since v0.6.9
++++         */
++++        addMembership(multicastAddress: string, multicastInterface?: string): void;
++++        /**
++++         * Returns an object containing the address information for a socket.
++++         * For UDP sockets, this object will contain `address`, `family`, and `port` properties.
++++         *
++++         * This method throws `EBADF` if called on an unbound socket.
++++         * @since v0.1.99
++++         */
++++        address(): AddressInfo;
++++        /**
++++         * For UDP sockets, causes the `dgram.Socket` to listen for datagram
++++         * messages on a named `port` and optional `address`. If `port` is not
++++         * specified or is `0`, the operating system will attempt to bind to a
++++         * random port. If `address` is not specified, the operating system will
++++         * attempt to listen on all addresses. Once binding is complete, a `'listening'` event is emitted and the optional `callback` function is
++++         * called.
++++         *
++++         * Specifying both a `'listening'` event listener and passing a `callback` to the `socket.bind()` method is not harmful but not very
++++         * useful.
++++         *
++++         * A bound datagram socket keeps the Node.js process running to receive
++++         * datagram messages.
++++         *
++++         * If binding fails, an `'error'` event is generated. In rare case (e.g.
++++         * attempting to bind with a closed socket), an `Error` may be thrown.
++++         *
++++         * Example of a UDP server listening on port 41234:
++++         *
++++         * ```js
++++         * import dgram from 'node:dgram';
++++         *
++++         * const server = dgram.createSocket('udp4');
++++         *
++++         * server.on('error', (err) => {
++++         *   console.error(`server error:\n${err.stack}`);
++++         *   server.close();
++++         * });
++++         *
++++         * server.on('message', (msg, rinfo) => {
++++         *   console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`);
++++         * });
++++         *
++++         * server.on('listening', () => {
++++         *   const address = server.address();
++++         *   console.log(`server listening ${address.address}:${address.port}`);
++++         * });
++++         *
++++         * server.bind(41234);
++++         * // Prints: server listening 0.0.0.0:41234
++++         * ```
++++         * @since v0.1.99
++++         * @param callback with no parameters. Called when binding is complete.
++++         */
++++        bind(port?: number, address?: string, callback?: () => void): this;
++++        bind(port?: number, callback?: () => void): this;
++++        bind(callback?: () => void): this;
++++        bind(options: BindOptions, callback?: () => void): this;
++++        /**
++++         * Close the underlying socket and stop listening for data on it. If a callback is
++++         * provided, it is added as a listener for the `'close'` event.
++++         * @since v0.1.99
++++         * @param callback Called when the socket has been closed.
++++         */
++++        close(callback?: () => void): this;
++++        /**
++++         * Associates the `dgram.Socket` to a remote address and port. Every
++++         * message sent by this handle is automatically sent to that destination. Also,
++++         * the socket will only receive messages from that remote peer.
++++         * Trying to call `connect()` on an already connected socket will result
++++         * in an `ERR_SOCKET_DGRAM_IS_CONNECTED` exception. If `address` is not
++++         * provided, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets)
++++         * will be used by default. Once the connection is complete, a `'connect'` event
++++         * is emitted and the optional `callback` function is called. In case of failure,
++++         * the `callback` is called or, failing this, an `'error'` event is emitted.
++++         * @since v12.0.0
++++         * @param callback Called when the connection is completed or on error.
++++         */
++++        connect(port: number, address?: string, callback?: () => void): void;
++++        connect(port: number, callback: () => void): void;
++++        /**
++++         * A synchronous function that disassociates a connected `dgram.Socket` from
++++         * its remote address. Trying to call `disconnect()` on an unbound or already
++++         * disconnected socket will result in an `ERR_SOCKET_DGRAM_NOT_CONNECTED` exception.
++++         * @since v12.0.0
++++         */
++++        disconnect(): void;
++++        /**
++++         * Instructs the kernel to leave a multicast group at `multicastAddress` using the `IP_DROP_MEMBERSHIP` socket option. This method is automatically called by the
++++         * kernel when the socket is closed or the process terminates, so most apps will
++++         * never have reason to call this.
++++         *
++++         * If `multicastInterface` is not specified, the operating system will attempt to
++++         * drop membership on all valid interfaces.
++++         * @since v0.6.9
++++         */
++++        dropMembership(multicastAddress: string, multicastInterface?: string): void;
++++        /**
++++         * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket.
++++         * @since v8.7.0
++++         * @return the `SO_RCVBUF` socket receive buffer size in bytes.
++++         */
++++        getRecvBufferSize(): number;
++++        /**
++++         * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket.
++++         * @since v8.7.0
++++         * @return the `SO_SNDBUF` socket send buffer size in bytes.
++++         */
++++        getSendBufferSize(): number;
++++        /**
++++         * @since v18.8.0, v16.19.0
++++         * @return Number of bytes queued for sending.
++++         */
++++        getSendQueueSize(): number;
++++        /**
++++         * @since v18.8.0, v16.19.0
++++         * @return Number of send requests currently in the queue awaiting to be processed.
++++         */
++++        getSendQueueCount(): number;
++++        /**
++++         * By default, binding a socket will cause it to block the Node.js process from
++++         * exiting as long as the socket is open. The `socket.unref()` method can be used
++++         * to exclude the socket from the reference counting that keeps the Node.js
++++         * process active. The `socket.ref()` method adds the socket back to the reference
++++         * counting and restores the default behavior.
++++         *
++++         * Calling `socket.ref()` multiples times will have no additional effect.
++++         *
++++         * The `socket.ref()` method returns a reference to the socket so calls can be
++++         * chained.
++++         * @since v0.9.1
++++         */
++++        ref(): this;
++++        /**
++++         * Returns an object containing the `address`, `family`, and `port` of the remote
++++         * endpoint. This method throws an `ERR_SOCKET_DGRAM_NOT_CONNECTED` exception
++++         * if the socket is not connected.
++++         * @since v12.0.0
++++         */
++++        remoteAddress(): AddressInfo;
++++        /**
++++         * Broadcasts a datagram on the socket.
++++         * For connectionless sockets, the destination `port` and `address` must be
++++         * specified. Connected sockets, on the other hand, will use their associated
++++         * remote endpoint, so the `port` and `address` arguments must not be set.
++++         *
++++         * The `msg` argument contains the message to be sent.
++++         * Depending on its type, different behavior can apply. If `msg` is a `Buffer`,
++++         * any `TypedArray` or a `DataView`,
++++         * the `offset` and `length` specify the offset within the `Buffer` where the
++++         * message begins and the number of bytes in the message, respectively.
++++         * If `msg` is a `String`, then it is automatically converted to a `Buffer` with `'utf8'` encoding. With messages that
++++         * contain multi-byte characters, `offset` and `length` will be calculated with
++++         * respect to `byte length` and not the character position.
++++         * If `msg` is an array, `offset` and `length` must not be specified.
++++         *
++++         * The `address` argument is a string. If the value of `address` is a host name,
++++         * DNS will be used to resolve the address of the host. If `address` is not
++++         * provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) will be used by default.
++++         *
++++         * If the socket has not been previously bound with a call to `bind`, the socket
++++         * is assigned a random port number and is bound to the "all interfaces" address
++++         * (`'0.0.0.0'` for `udp4` sockets, `'::0'` for `udp6` sockets.)
++++         *
++++         * An optional `callback` function may be specified to as a way of reporting
++++         * DNS errors or for determining when it is safe to reuse the `buf` object.
++++         * DNS lookups delay the time to send for at least one tick of the
++++         * Node.js event loop.
++++         *
++++         * The only way to know for sure that the datagram has been sent is by using a `callback`. If an error occurs and a `callback` is given, the error will be
++++         * passed as the first argument to the `callback`. If a `callback` is not given,
++++         * the error is emitted as an `'error'` event on the `socket` object.
++++         *
++++         * Offset and length are optional but both _must_ be set if either are used.
++++         * They are supported only when the first argument is a `Buffer`, a `TypedArray`,
++++         * or a `DataView`.
++++         *
++++         * This method throws `ERR_SOCKET_BAD_PORT` if called on an unbound socket.
++++         *
++++         * Example of sending a UDP packet to a port on `localhost`;
++++         *
++++         * ```js
++++         * import dgram from 'node:dgram';
++++         * import { Buffer } from 'node:buffer';
++++         *
++++         * const message = Buffer.from('Some bytes');
++++         * const client = dgram.createSocket('udp4');
++++         * client.send(message, 41234, 'localhost', (err) => {
++++         *   client.close();
++++         * });
++++         * ```
++++         *
++++         * Example of sending a UDP packet composed of multiple buffers to a port on`127.0.0.1`;
++++         *
++++         * ```js
++++         * import dgram from 'node:dgram';
++++         * import { Buffer } from 'node:buffer';
++++         *
++++         * const buf1 = Buffer.from('Some ');
++++         * const buf2 = Buffer.from('bytes');
++++         * const client = dgram.createSocket('udp4');
++++         * client.send([buf1, buf2], 41234, (err) => {
++++         *   client.close();
++++         * });
++++         * ```
++++         *
++++         * Sending multiple buffers might be faster or slower depending on the
++++         * application and operating system. Run benchmarks to
++++         * determine the optimal strategy on a case-by-case basis. Generally speaking,
++++         * however, sending multiple buffers is faster.
++++         *
++++         * Example of sending a UDP packet using a socket connected to a port on `localhost`:
++++         *
++++         * ```js
++++         * import dgram from 'node:dgram';
++++         * import { Buffer } from 'node:buffer';
++++         *
++++         * const message = Buffer.from('Some bytes');
++++         * const client = dgram.createSocket('udp4');
++++         * client.connect(41234, 'localhost', (err) => {
++++         *   client.send(message, (err) => {
++++         *     client.close();
++++         *   });
++++         * });
++++         * ```
++++         * @since v0.1.99
++++         * @param msg Message to be sent.
++++         * @param offset Offset in the buffer where the message starts.
++++         * @param length Number of bytes in the message.
++++         * @param port Destination port.
++++         * @param address Destination host name or IP address.
++++         * @param callback Called when the message has been sent.
++++         */
++++        send(
++++            msg: string | Uint8Array | readonly any[],
++++            port?: number,
++++            address?: string,
++++            callback?: (error: Error | null, bytes: number) => void,
++++        ): void;
++++        send(
++++            msg: string | Uint8Array | readonly any[],
++++            port?: number,
++++            callback?: (error: Error | null, bytes: number) => void,
++++        ): void;
++++        send(
++++            msg: string | Uint8Array | readonly any[],
++++            callback?: (error: Error | null, bytes: number) => void,
++++        ): void;
++++        send(
++++            msg: string | Uint8Array,
++++            offset: number,
++++            length: number,
++++            port?: number,
++++            address?: string,
++++            callback?: (error: Error | null, bytes: number) => void,
++++        ): void;
++++        send(
++++            msg: string | Uint8Array,
++++            offset: number,
++++            length: number,
++++            port?: number,
++++            callback?: (error: Error | null, bytes: number) => void,
++++        ): void;
++++        send(
++++            msg: string | Uint8Array,
++++            offset: number,
++++            length: number,
++++            callback?: (error: Error | null, bytes: number) => void,
++++        ): void;
++++        /**
++++         * Sets or clears the `SO_BROADCAST` socket option. When set to `true`, UDP
++++         * packets may be sent to a local interface's broadcast address.
++++         *
++++         * This method throws `EBADF` if called on an unbound socket.
++++         * @since v0.6.9
++++         */
++++        setBroadcast(flag: boolean): void;
++++        /**
++++         * _All references to scope in this section are referring to [IPv6 Zone Indices](https://en.wikipedia.org/wiki/IPv6_address#Scoped_literal_IPv6_addresses), which are defined by [RFC
++++         * 4007](https://tools.ietf.org/html/rfc4007). In string form, an IP_
++++         * _with a scope index is written as `'IP%scope'` where scope is an interface name_
++++         * _or interface number._
++++         *
++++         * Sets the default outgoing multicast interface of the socket to a chosen
++++         * interface or back to system interface selection. The `multicastInterface` must
++++         * be a valid string representation of an IP from the socket's family.
++++         *
++++         * For IPv4 sockets, this should be the IP configured for the desired physical
++++         * interface. All packets sent to multicast on the socket will be sent on the
++++         * interface determined by the most recent successful use of this call.
++++         *
++++         * For IPv6 sockets, `multicastInterface` should include a scope to indicate the
++++         * interface as in the examples that follow. In IPv6, individual `send` calls can
++++         * also use explicit scope in addresses, so only packets sent to a multicast
++++         * address without specifying an explicit scope are affected by the most recent
++++         * successful use of this call.
++++         *
++++         * This method throws `EBADF` if called on an unbound socket.
++++         *
++++         * #### Example: IPv6 outgoing multicast interface
++++         *
++++         * On most systems, where scope format uses the interface name:
++++         *
++++         * ```js
++++         * const socket = dgram.createSocket('udp6');
++++         *
++++         * socket.bind(1234, () => {
++++         *   socket.setMulticastInterface('::%eth1');
++++         * });
++++         * ```
++++         *
++++         * On Windows, where scope format uses an interface number:
++++         *
++++         * ```js
++++         * const socket = dgram.createSocket('udp6');
++++         *
++++         * socket.bind(1234, () => {
++++         *   socket.setMulticastInterface('::%2');
++++         * });
++++         * ```
++++         *
++++         * #### Example: IPv4 outgoing multicast interface
++++         *
++++         * All systems use an IP of the host on the desired physical interface:
++++         *
++++         * ```js
++++         * const socket = dgram.createSocket('udp4');
++++         *
++++         * socket.bind(1234, () => {
++++         *   socket.setMulticastInterface('10.0.0.2');
++++         * });
++++         * ```
++++         * @since v8.6.0
++++         */
++++        setMulticastInterface(multicastInterface: string): void;
++++        /**
++++         * Sets or clears the `IP_MULTICAST_LOOP` socket option. When set to `true`,
++++         * multicast packets will also be received on the local interface.
++++         *
++++         * This method throws `EBADF` if called on an unbound socket.
++++         * @since v0.3.8
++++         */
++++        setMulticastLoopback(flag: boolean): boolean;
++++        /**
++++         * Sets the `IP_MULTICAST_TTL` socket option. While TTL generally stands for
++++         * "Time to Live", in this context it specifies the number of IP hops that a
++++         * packet is allowed to travel through, specifically for multicast traffic. Each
++++         * router or gateway that forwards a packet decrements the TTL. If the TTL is
++++         * decremented to 0 by a router, it will not be forwarded.
++++         *
++++         * The `ttl` argument may be between 0 and 255\. The default on most systems is `1`.
++++         *
++++         * This method throws `EBADF` if called on an unbound socket.
++++         * @since v0.3.8
++++         */
++++        setMulticastTTL(ttl: number): number;
++++        /**
++++         * Sets the `SO_RCVBUF` socket option. Sets the maximum socket receive buffer
++++         * in bytes.
++++         *
++++         * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket.
++++         * @since v8.7.0
++++         */
++++        setRecvBufferSize(size: number): void;
++++        /**
++++         * Sets the `SO_SNDBUF` socket option. Sets the maximum socket send buffer
++++         * in bytes.
++++         *
++++         * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket.
++++         * @since v8.7.0
++++         */
++++        setSendBufferSize(size: number): void;
++++        /**
++++         * Sets the `IP_TTL` socket option. While TTL generally stands for "Time to Live",
++++         * in this context it specifies the number of IP hops that a packet is allowed to
++++         * travel through. Each router or gateway that forwards a packet decrements the
++++         * TTL. If the TTL is decremented to 0 by a router, it will not be forwarded.
++++         * Changing TTL values is typically done for network probes or when multicasting.
++++         *
++++         * The `ttl` argument may be between 1 and 255\. The default on most systems
++++         * is 64.
++++         *
++++         * This method throws `EBADF` if called on an unbound socket.
++++         * @since v0.1.101
++++         */
++++        setTTL(ttl: number): number;
++++        /**
++++         * By default, binding a socket will cause it to block the Node.js process from
++++         * exiting as long as the socket is open. The `socket.unref()` method can be used
++++         * to exclude the socket from the reference counting that keeps the Node.js
++++         * process active, allowing the process to exit even if the socket is still
++++         * listening.
++++         *
++++         * Calling `socket.unref()` multiple times will have no additional effect.
++++         *
++++         * The `socket.unref()` method returns a reference to the socket so calls can be
++++         * chained.
++++         * @since v0.9.1
++++         */
++++        unref(): this;
++++        /**
++++         * Tells the kernel to join a source-specific multicast channel at the given `sourceAddress` and `groupAddress`, using the `multicastInterface` with the `IP_ADD_SOURCE_MEMBERSHIP` socket
++++         * option. If the `multicastInterface` argument
++++         * is not specified, the operating system will choose one interface and will add
++++         * membership to it. To add membership to every available interface, call `socket.addSourceSpecificMembership()` multiple times, once per interface.
++++         *
++++         * When called on an unbound socket, this method will implicitly bind to a random
++++         * port, listening on all interfaces.
++++         * @since v13.1.0, v12.16.0
++++         */
++++        addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
++++        /**
++++         * Instructs the kernel to leave a source-specific multicast channel at the given `sourceAddress` and `groupAddress` using the `IP_DROP_SOURCE_MEMBERSHIP` socket option. This method is
++++         * automatically called by the kernel when the
++++         * socket is closed or the process terminates, so most apps will never have
++++         * reason to call this.
++++         *
++++         * If `multicastInterface` is not specified, the operating system will attempt to
++++         * drop membership on all valid interfaces.
++++         * @since v13.1.0, v12.16.0
++++         */
++++        dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
++++        /**
++++         * events.EventEmitter
++++         * 1. close
++++         * 2. connect
++++         * 3. error
++++         * 4. listening
++++         * 5. message
++++         */
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "connect", listener: () => void): this;
++++        addListener(event: "error", listener: (err: Error) => void): this;
++++        addListener(event: "listening", listener: () => void): this;
++++        addListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        emit(event: "close"): boolean;
++++        emit(event: "connect"): boolean;
++++        emit(event: "error", err: Error): boolean;
++++        emit(event: "listening"): boolean;
++++        emit(event: "message", msg: Buffer, rinfo: RemoteInfo): boolean;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "connect", listener: () => void): this;
++++        on(event: "error", listener: (err: Error) => void): this;
++++        on(event: "listening", listener: () => void): this;
++++        on(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "connect", listener: () => void): this;
++++        once(event: "error", listener: (err: Error) => void): this;
++++        once(event: "listening", listener: () => void): this;
++++        once(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "connect", listener: () => void): this;
++++        prependListener(event: "error", listener: (err: Error) => void): this;
++++        prependListener(event: "listening", listener: () => void): this;
++++        prependListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "connect", listener: () => void): this;
++++        prependOnceListener(event: "error", listener: (err: Error) => void): this;
++++        prependOnceListener(event: "listening", listener: () => void): this;
++++        prependOnceListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
++++        /**
++++         * Calls `socket.close()` and returns a promise that fulfills when the socket has closed.
++++         * @since v20.5.0
++++         */
++++        [Symbol.asyncDispose](): Promise<void>;
++++    }
++++}
++++declare module "node:dgram" {
++++    export * from "dgram";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e25ca694a2d4f88924af80201363c7ea67758e0d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,554 @@@@@
++++/**
++++ * The `node:diagnostics_channel` module provides an API to create named channels
++++ * to report arbitrary message data for diagnostics purposes.
++++ *
++++ * It can be accessed using:
++++ *
++++ * ```js
++++ * import diagnostics_channel from 'node:diagnostics_channel';
++++ * ```
++++ *
++++ * It is intended that a module writer wanting to report diagnostics messages
++++ * will create one or many top-level channels to report messages through.
++++ * Channels may also be acquired at runtime but it is not encouraged
++++ * due to the additional overhead of doing so. Channels may be exported for
++++ * convenience, but as long as the name is known it can be acquired anywhere.
++++ *
++++ * If you intend for your module to produce diagnostics data for others to
++++ * consume it is recommended that you include documentation of what named
++++ * channels are used along with the shape of the message data. Channel names
++++ * should generally include the module name to avoid collisions with data from
++++ * other modules.
++++ * @since v15.1.0, v14.17.0
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/diagnostics_channel.js)
++++ */
++++declare module "diagnostics_channel" {
++++    import { AsyncLocalStorage } from "node:async_hooks";
++++    /**
++++     * Check if there are active subscribers to the named channel. This is helpful if
++++     * the message you want to send might be expensive to prepare.
++++     *
++++     * This API is optional but helpful when trying to publish messages from very
++++     * performance-sensitive code.
++++     *
++++     * ```js
++++     * import diagnostics_channel from 'node:diagnostics_channel';
++++     *
++++     * if (diagnostics_channel.hasSubscribers('my-channel')) {
++++     *   // There are subscribers, prepare and publish message
++++     * }
++++     * ```
++++     * @since v15.1.0, v14.17.0
++++     * @param name The channel name
++++     * @return If there are active subscribers
++++     */
++++    function hasSubscribers(name: string | symbol): boolean;
++++    /**
++++     * This is the primary entry-point for anyone wanting to publish to a named
++++     * channel. It produces a channel object which is optimized to reduce overhead at
++++     * publish time as much as possible.
++++     *
++++     * ```js
++++     * import diagnostics_channel from 'node:diagnostics_channel';
++++     *
++++     * const channel = diagnostics_channel.channel('my-channel');
++++     * ```
++++     * @since v15.1.0, v14.17.0
++++     * @param name The channel name
++++     * @return The named channel object
++++     */
++++    function channel(name: string | symbol): Channel;
++++    type ChannelListener = (message: unknown, name: string | symbol) => void;
++++    /**
++++     * Register a message handler to subscribe to this channel. This message handler
++++     * will be run synchronously whenever a message is published to the channel. Any
++++     * errors thrown in the message handler will trigger an `'uncaughtException'`.
++++     *
++++     * ```js
++++     * import diagnostics_channel from 'node:diagnostics_channel';
++++     *
++++     * diagnostics_channel.subscribe('my-channel', (message, name) => {
++++     *   // Received data
++++     * });
++++     * ```
++++     * @since v18.7.0, v16.17.0
++++     * @param name The channel name
++++     * @param onMessage The handler to receive channel messages
++++     */
++++    function subscribe(name: string | symbol, onMessage: ChannelListener): void;
++++    /**
++++     * Remove a message handler previously registered to this channel with {@link subscribe}.
++++     *
++++     * ```js
++++     * import diagnostics_channel from 'node:diagnostics_channel';
++++     *
++++     * function onMessage(message, name) {
++++     *   // Received data
++++     * }
++++     *
++++     * diagnostics_channel.subscribe('my-channel', onMessage);
++++     *
++++     * diagnostics_channel.unsubscribe('my-channel', onMessage);
++++     * ```
++++     * @since v18.7.0, v16.17.0
++++     * @param name The channel name
++++     * @param onMessage The previous subscribed handler to remove
++++     * @return `true` if the handler was found, `false` otherwise.
++++     */
++++    function unsubscribe(name: string | symbol, onMessage: ChannelListener): boolean;
++++    /**
++++     * Creates a `TracingChannel` wrapper for the given `TracingChannel Channels`. If a name is given, the corresponding tracing
++++     * channels will be created in the form of `tracing:${name}:${eventType}` where `eventType` corresponds to the types of `TracingChannel Channels`.
++++     *
++++     * ```js
++++     * import diagnostics_channel from 'node:diagnostics_channel';
++++     *
++++     * const channelsByName = diagnostics_channel.tracingChannel('my-channel');
++++     *
++++     * // or...
++++     *
++++     * const channelsByCollection = diagnostics_channel.tracingChannel({
++++     *   start: diagnostics_channel.channel('tracing:my-channel:start'),
++++     *   end: diagnostics_channel.channel('tracing:my-channel:end'),
++++     *   asyncStart: diagnostics_channel.channel('tracing:my-channel:asyncStart'),
++++     *   asyncEnd: diagnostics_channel.channel('tracing:my-channel:asyncEnd'),
++++     *   error: diagnostics_channel.channel('tracing:my-channel:error'),
++++     * });
++++     * ```
++++     * @since v19.9.0
++++     * @experimental
++++     * @param nameOrChannels Channel name or object containing all the `TracingChannel Channels`
++++     * @return Collection of channels to trace with
++++     */
++++    function tracingChannel<
++++        StoreType = unknown,
++++        ContextType extends object = StoreType extends object ? StoreType : object,
++++    >(
++++        nameOrChannels: string | TracingChannelCollection<StoreType, ContextType>,
++++    ): TracingChannel<StoreType, ContextType>;
++++    /**
++++     * The class `Channel` represents an individual named channel within the data
++++     * pipeline. It is used to track subscribers and to publish messages when there
++++     * are subscribers present. It exists as a separate object to avoid channel
++++     * lookups at publish time, enabling very fast publish speeds and allowing
++++     * for heavy use while incurring very minimal cost. Channels are created with {@link channel}, constructing a channel directly
++++     * with `new Channel(name)` is not supported.
++++     * @since v15.1.0, v14.17.0
++++     */
++++    class Channel<StoreType = unknown, ContextType = StoreType> {
++++        readonly name: string | symbol;
++++        /**
++++         * Check if there are active subscribers to this channel. This is helpful if
++++         * the message you want to send might be expensive to prepare.
++++         *
++++         * This API is optional but helpful when trying to publish messages from very
++++         * performance-sensitive code.
++++         *
++++         * ```js
++++         * import diagnostics_channel from 'node:diagnostics_channel';
++++         *
++++         * const channel = diagnostics_channel.channel('my-channel');
++++         *
++++         * if (channel.hasSubscribers) {
++++         *   // There are subscribers, prepare and publish message
++++         * }
++++         * ```
++++         * @since v15.1.0, v14.17.0
++++         */
++++        readonly hasSubscribers: boolean;
++++        private constructor(name: string | symbol);
++++        /**
++++         * Publish a message to any subscribers to the channel. This will trigger
++++         * message handlers synchronously so they will execute within the same context.
++++         *
++++         * ```js
++++         * import diagnostics_channel from 'node:diagnostics_channel';
++++         *
++++         * const channel = diagnostics_channel.channel('my-channel');
++++         *
++++         * channel.publish({
++++         *   some: 'message',
++++         * });
++++         * ```
++++         * @since v15.1.0, v14.17.0
++++         * @param message The message to send to the channel subscribers
++++         */
++++        publish(message: unknown): void;
++++        /**
++++         * Register a message handler to subscribe to this channel. This message handler
++++         * will be run synchronously whenever a message is published to the channel. Any
++++         * errors thrown in the message handler will trigger an `'uncaughtException'`.
++++         *
++++         * ```js
++++         * import diagnostics_channel from 'node:diagnostics_channel';
++++         *
++++         * const channel = diagnostics_channel.channel('my-channel');
++++         *
++++         * channel.subscribe((message, name) => {
++++         *   // Received data
++++         * });
++++         * ```
++++         * @since v15.1.0, v14.17.0
++++         * @deprecated Since v18.7.0,v16.17.0 - Use {@link subscribe(name, onMessage)}
++++         * @param onMessage The handler to receive channel messages
++++         */
++++        subscribe(onMessage: ChannelListener): void;
++++        /**
++++         * Remove a message handler previously registered to this channel with `channel.subscribe(onMessage)`.
++++         *
++++         * ```js
++++         * import diagnostics_channel from 'node:diagnostics_channel';
++++         *
++++         * const channel = diagnostics_channel.channel('my-channel');
++++         *
++++         * function onMessage(message, name) {
++++         *   // Received data
++++         * }
++++         *
++++         * channel.subscribe(onMessage);
++++         *
++++         * channel.unsubscribe(onMessage);
++++         * ```
++++         * @since v15.1.0, v14.17.0
++++         * @deprecated Since v18.7.0,v16.17.0 - Use {@link unsubscribe(name, onMessage)}
++++         * @param onMessage The previous subscribed handler to remove
++++         * @return `true` if the handler was found, `false` otherwise.
++++         */
++++        unsubscribe(onMessage: ChannelListener): void;
++++        /**
++++         * When `channel.runStores(context, ...)` is called, the given context data
++++         * will be applied to any store bound to the channel. If the store has already been
++++         * bound the previous `transform` function will be replaced with the new one.
++++         * The `transform` function may be omitted to set the given context data as the
++++         * context directly.
++++         *
++++         * ```js
++++         * import diagnostics_channel from 'node:diagnostics_channel';
++++         * import { AsyncLocalStorage } from 'node:async_hooks';
++++         *
++++         * const store = new AsyncLocalStorage();
++++         *
++++         * const channel = diagnostics_channel.channel('my-channel');
++++         *
++++         * channel.bindStore(store, (data) => {
++++         *   return { data };
++++         * });
++++         * ```
++++         * @since v19.9.0
++++         * @experimental
++++         * @param store The store to which to bind the context data
++++         * @param transform Transform context data before setting the store context
++++         */
++++        bindStore(store: AsyncLocalStorage<StoreType>, transform?: (context: ContextType) => StoreType): void;
++++        /**
++++         * Remove a message handler previously registered to this channel with `channel.bindStore(store)`.
++++         *
++++         * ```js
++++         * import diagnostics_channel from 'node:diagnostics_channel';
++++         * import { AsyncLocalStorage } from 'node:async_hooks';
++++         *
++++         * const store = new AsyncLocalStorage();
++++         *
++++         * const channel = diagnostics_channel.channel('my-channel');
++++         *
++++         * channel.bindStore(store);
++++         * channel.unbindStore(store);
++++         * ```
++++         * @since v19.9.0
++++         * @experimental
++++         * @param store The store to unbind from the channel.
++++         * @return `true` if the store was found, `false` otherwise.
++++         */
++++        unbindStore(store: any): void;
++++        /**
++++         * Applies the given data to any AsyncLocalStorage instances bound to the channel
++++         * for the duration of the given function, then publishes to the channel within
++++         * the scope of that data is applied to the stores.
++++         *
++++         * If a transform function was given to `channel.bindStore(store)` it will be
++++         * applied to transform the message data before it becomes the context value for
++++         * the store. The prior storage context is accessible from within the transform
++++         * function in cases where context linking is required.
++++         *
++++         * The context applied to the store should be accessible in any async code which
++++         * continues from execution which began during the given function, however
++++         * there are some situations in which `context loss` may occur.
++++         *
++++         * ```js
++++         * import diagnostics_channel from 'node:diagnostics_channel';
++++         * import { AsyncLocalStorage } from 'node:async_hooks';
++++         *
++++         * const store = new AsyncLocalStorage();
++++         *
++++         * const channel = diagnostics_channel.channel('my-channel');
++++         *
++++         * channel.bindStore(store, (message) => {
++++         *   const parent = store.getStore();
++++         *   return new Span(message, parent);
++++         * });
++++         * channel.runStores({ some: 'message' }, () => {
++++         *   store.getStore(); // Span({ some: 'message' })
++++         * });
++++         * ```
++++         * @since v19.9.0
++++         * @experimental
++++         * @param context Message to send to subscribers and bind to stores
++++         * @param fn Handler to run within the entered storage context
++++         * @param thisArg The receiver to be used for the function call.
++++         * @param args Optional arguments to pass to the function.
++++         */
++++        runStores(): void;
++++    }
++++    interface TracingChannelSubscribers<ContextType extends object> {
++++        start: (message: ContextType) => void;
++++        end: (
++++            message: ContextType & {
++++                error?: unknown;
++++                result?: unknown;
++++            },
++++        ) => void;
++++        asyncStart: (
++++            message: ContextType & {
++++                error?: unknown;
++++                result?: unknown;
++++            },
++++        ) => void;
++++        asyncEnd: (
++++            message: ContextType & {
++++                error?: unknown;
++++                result?: unknown;
++++            },
++++        ) => void;
++++        error: (
++++            message: ContextType & {
++++                error: unknown;
++++            },
++++        ) => void;
++++    }
++++    interface TracingChannelCollection<StoreType = unknown, ContextType = StoreType> {
++++        start: Channel<StoreType, ContextType>;
++++        end: Channel<StoreType, ContextType>;
++++        asyncStart: Channel<StoreType, ContextType>;
++++        asyncEnd: Channel<StoreType, ContextType>;
++++        error: Channel<StoreType, ContextType>;
++++    }
++++    /**
++++     * The class `TracingChannel` is a collection of `TracingChannel Channels` which
++++     * together express a single traceable action. It is used to formalize and
++++     * simplify the process of producing events for tracing application flow. {@link tracingChannel} is used to construct a `TracingChannel`. As with `Channel` it is recommended to create and reuse a
++++     * single `TracingChannel` at the top-level of the file rather than creating them
++++     * dynamically.
++++     * @since v19.9.0
++++     * @experimental
++++     */
++++    class TracingChannel<StoreType = unknown, ContextType extends object = {}> implements TracingChannelCollection {
++++        start: Channel<StoreType, ContextType>;
++++        end: Channel<StoreType, ContextType>;
++++        asyncStart: Channel<StoreType, ContextType>;
++++        asyncEnd: Channel<StoreType, ContextType>;
++++        error: Channel<StoreType, ContextType>;
++++        /**
++++         * Helper to subscribe a collection of functions to the corresponding channels.
++++         * This is the same as calling `channel.subscribe(onMessage)` on each channel
++++         * individually.
++++         *
++++         * ```js
++++         * import diagnostics_channel from 'node:diagnostics_channel';
++++         *
++++         * const channels = diagnostics_channel.tracingChannel('my-channel');
++++         *
++++         * channels.subscribe({
++++         *   start(message) {
++++         *     // Handle start message
++++         *   },
++++         *   end(message) {
++++         *     // Handle end message
++++         *   },
++++         *   asyncStart(message) {
++++         *     // Handle asyncStart message
++++         *   },
++++         *   asyncEnd(message) {
++++         *     // Handle asyncEnd message
++++         *   },
++++         *   error(message) {
++++         *     // Handle error message
++++         *   },
++++         * });
++++         * ```
++++         * @since v19.9.0
++++         * @experimental
++++         * @param subscribers Set of `TracingChannel Channels` subscribers
++++         */
++++        subscribe(subscribers: TracingChannelSubscribers<ContextType>): void;
++++        /**
++++         * Helper to unsubscribe a collection of functions from the corresponding channels.
++++         * This is the same as calling `channel.unsubscribe(onMessage)` on each channel
++++         * individually.
++++         *
++++         * ```js
++++         * import diagnostics_channel from 'node:diagnostics_channel';
++++         *
++++         * const channels = diagnostics_channel.tracingChannel('my-channel');
++++         *
++++         * channels.unsubscribe({
++++         *   start(message) {
++++         *     // Handle start message
++++         *   },
++++         *   end(message) {
++++         *     // Handle end message
++++         *   },
++++         *   asyncStart(message) {
++++         *     // Handle asyncStart message
++++         *   },
++++         *   asyncEnd(message) {
++++         *     // Handle asyncEnd message
++++         *   },
++++         *   error(message) {
++++         *     // Handle error message
++++         *   },
++++         * });
++++         * ```
++++         * @since v19.9.0
++++         * @experimental
++++         * @param subscribers Set of `TracingChannel Channels` subscribers
++++         * @return `true` if all handlers were successfully unsubscribed, and `false` otherwise.
++++         */
++++        unsubscribe(subscribers: TracingChannelSubscribers<ContextType>): void;
++++        /**
++++         * Trace a synchronous function call. This will always produce a `start event` and `end event` around the execution and may produce an `error event` if the given function throws an error.
++++         * This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all
++++         * events should have any bound stores set to match this trace context.
++++         *
++++         * To ensure only correct trace graphs are formed, events will only be published if subscribers are present prior to starting the trace. Subscriptions
++++         * which are added after the trace begins will not receive future events from that trace, only future traces will be seen.
++++         *
++++         * ```js
++++         * import diagnostics_channel from 'node:diagnostics_channel';
++++         *
++++         * const channels = diagnostics_channel.tracingChannel('my-channel');
++++         *
++++         * channels.traceSync(() => {
++++         *   // Do something
++++         * }, {
++++         *   some: 'thing',
++++         * });
++++         * ```
++++         * @since v19.9.0
++++         * @experimental
++++         * @param fn Function to wrap a trace around
++++         * @param context Shared object to correlate events through
++++         * @param thisArg The receiver to be used for the function call
++++         * @param args Optional arguments to pass to the function
++++         * @return The return value of the given function
++++         */
++++        traceSync<ThisArg = any, Args extends any[] = any[]>(
++++            fn: (this: ThisArg, ...args: Args) => any,
++++            context?: ContextType,
++++            thisArg?: ThisArg,
++++            ...args: Args
++++        ): void;
++++        /**
++++         * Trace a promise-returning function call. This will always produce a `start event` and `end event` around the synchronous portion of the
++++         * function execution, and will produce an `asyncStart event` and `asyncEnd event` when a promise continuation is reached. It may also
++++         * produce an `error event` if the given function throws an error or the
++++         * returned promise rejects. This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all
++++         * events should have any bound stores set to match this trace context.
++++         *
++++         * To ensure only correct trace graphs are formed, events will only be published if subscribers are present prior to starting the trace. Subscriptions
++++         * which are added after the trace begins will not receive future events from that trace, only future traces will be seen.
++++         *
++++         * ```js
++++         * import diagnostics_channel from 'node:diagnostics_channel';
++++         *
++++         * const channels = diagnostics_channel.tracingChannel('my-channel');
++++         *
++++         * channels.tracePromise(async () => {
++++         *   // Do something
++++         * }, {
++++         *   some: 'thing',
++++         * });
++++         * ```
++++         * @since v19.9.0
++++         * @experimental
++++         * @param fn Promise-returning function to wrap a trace around
++++         * @param context Shared object to correlate trace events through
++++         * @param thisArg The receiver to be used for the function call
++++         * @param args Optional arguments to pass to the function
++++         * @return Chained from promise returned by the given function
++++         */
++++        tracePromise<ThisArg = any, Args extends any[] = any[]>(
++++            fn: (this: ThisArg, ...args: Args) => Promise<any>,
++++            context?: ContextType,
++++            thisArg?: ThisArg,
++++            ...args: Args
++++        ): void;
++++        /**
++++         * Trace a callback-receiving function call. This will always produce a `start event` and `end event` around the synchronous portion of the
++++         * function execution, and will produce a `asyncStart event` and `asyncEnd event` around the callback execution. It may also produce an `error event` if the given function throws an error or
++++         * the returned
++++         * promise rejects. This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all
++++         * events should have any bound stores set to match this trace context.
++++         *
++++         * The `position` will be -1 by default to indicate the final argument should
++++         * be used as the callback.
++++         *
++++         * ```js
++++         * import diagnostics_channel from 'node:diagnostics_channel';
++++         *
++++         * const channels = diagnostics_channel.tracingChannel('my-channel');
++++         *
++++         * channels.traceCallback((arg1, callback) => {
++++         *   // Do something
++++         *   callback(null, 'result');
++++         * }, 1, {
++++         *   some: 'thing',
++++         * }, thisArg, arg1, callback);
++++         * ```
++++         *
++++         * The callback will also be run with `channel.runStores(context, ...)` which
++++         * enables context loss recovery in some cases.
++++         *
++++         * To ensure only correct trace graphs are formed, events will only be published if subscribers are present prior to starting the trace. Subscriptions
++++         * which are added after the trace begins will not receive future events from that trace, only future traces will be seen.
++++         *
++++         * ```js
++++         * import diagnostics_channel from 'node:diagnostics_channel';
++++         * import { AsyncLocalStorage } from 'node:async_hooks';
++++         *
++++         * const channels = diagnostics_channel.tracingChannel('my-channel');
++++         * const myStore = new AsyncLocalStorage();
++++         *
++++         * // The start channel sets the initial store data to something
++++         * // and stores that store data value on the trace context object
++++         * channels.start.bindStore(myStore, (data) => {
++++         *   const span = new Span(data);
++++         *   data.span = span;
++++         *   return span;
++++         * });
++++         *
++++         * // Then asyncStart can restore from that data it stored previously
++++         * channels.asyncStart.bindStore(myStore, (data) => {
++++         *   return data.span;
++++         * });
++++         * ```
++++         * @since v19.9.0
++++         * @experimental
++++         * @param fn callback using function to wrap a trace around
++++         * @param position Zero-indexed argument position of expected callback
++++         * @param context Shared object to correlate trace events through
++++         * @param thisArg The receiver to be used for the function call
++++         * @param args Optional arguments to pass to the function
++++         * @return The return value of the given function
++++         */
++++        traceCallback<Fn extends (this: any, ...args: any) => any>(
++++            fn: Fn,
++++            position: number | undefined,
++++            context: ContextType | undefined,
++++            thisArg: any,
++++            ...args: Parameters<Fn>
++++        ): void;
++++    }
++++}
++++declare module "node:diagnostics_channel" {
++++    export * from "diagnostics_channel";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..bd03730ff13ca764a5716e156eea5fcbd88b0c83
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,864 @@@@@
++++/**
++++ * The `node:dns` module enables name resolution. For example, use it to look up IP
++++ * addresses of host names.
++++ *
++++ * Although named for the [Domain Name System (DNS)](https://en.wikipedia.org/wiki/Domain_Name_System), it does not always use the
++++ * DNS protocol for lookups. {@link lookup} uses the operating system
++++ * facilities to perform name resolution. It may not need to perform any network
++++ * communication. To perform name resolution the way other applications on the same
++++ * system do, use {@link lookup}.
++++ *
++++ * ```js
++++ * import dns from 'node:dns';
++++ *
++++ * dns.lookup('example.org', (err, address, family) => {
++++ *   console.log('address: %j family: IPv%s', address, family);
++++ * });
++++ * // address: "93.184.216.34" family: IPv4
++++ * ```
++++ *
++++ * All other functions in the `node:dns` module connect to an actual DNS server to
++++ * perform name resolution. They will always use the network to perform DNS
++++ * queries. These functions do not use the same set of configuration files used by {@link lookup} (e.g. `/etc/hosts`). Use these functions to always perform
++++ * DNS queries, bypassing other name-resolution facilities.
++++ *
++++ * ```js
++++ * import dns from 'node:dns';
++++ *
++++ * dns.resolve4('archive.org', (err, addresses) => {
++++ *   if (err) throw err;
++++ *
++++ *   console.log(`addresses: ${JSON.stringify(addresses)}`);
++++ *
++++ *   addresses.forEach((a) => {
++++ *     dns.reverse(a, (err, hostnames) => {
++++ *       if (err) {
++++ *         throw err;
++++ *       }
++++ *       console.log(`reverse for ${a}: ${JSON.stringify(hostnames)}`);
++++ *     });
++++ *   });
++++ * });
++++ * ```
++++ *
++++ * See the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations) for more information.
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/dns.js)
++++ */
++++declare module "dns" {
++++    import * as dnsPromises from "node:dns/promises";
++++    // Supported getaddrinfo flags.
++++    /**
++++     * Limits returned address types to the types of non-loopback addresses configured on the system. For example, IPv4 addresses are
++++     * only returned if the current system has at least one IPv4 address configured.
++++     */
++++    export const ADDRCONFIG: number;
++++    /**
++++     * If the IPv6 family was specified, but no IPv6 addresses were found, then return IPv4 mapped IPv6 addresses. It is not supported
++++     * on some operating systems (e.g. FreeBSD 10.1).
++++     */
++++    export const V4MAPPED: number;
++++    /**
++++     * If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as
++++     * well as IPv4 mapped IPv6 addresses.
++++     */
++++    export const ALL: number;
++++    export interface LookupOptions {
++++        /**
++++         * The record family. Must be `4`, `6`, or `0`. For backward compatibility reasons, `'IPv4'` and `'IPv6'` are interpreted
++++         * as `4` and `6` respectively. The value 0 indicates that either an IPv4 or IPv6 address is returned. If the value `0` is used
++++         * with `{ all: true } (see below)`, both IPv4 and IPv6 addresses are returned.
++++         * @default 0
++++         */
++++        family?: number | "IPv4" | "IPv6" | undefined;
++++        /**
++++         * One or more [supported `getaddrinfo`](https://nodejs.org/docs/latest-v20.x/api/dns.html#supported-getaddrinfo-flags) flags. Multiple flags may be
++++         * passed by bitwise `OR`ing their values.
++++         */
++++        hints?: number | undefined;
++++        /**
++++         * When `true`, the callback returns all resolved addresses in an array. Otherwise, returns a single address.
++++         * @default false
++++         */
++++        all?: boolean | undefined;
++++        /**
++++         * When `verbatim`, the resolved addresses are return unsorted. When `ipv4first`, the resolved addresses are sorted
++++         * by placing IPv4 addresses before IPv6 addresses. When `ipv6first`, the resolved addresses are sorted by placing IPv6
++++         * addresses before IPv4 addresses. Default value is configurable using
++++         * {@link setDefaultResultOrder} or [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder).
++++         * @default `verbatim` (addresses are not reordered)
++++         */
++++        order?: "ipv4first" | "ipv6first" | "verbatim" | undefined;
++++        /**
++++         * When `true`, the callback receives IPv4 and IPv6 addresses in the order the DNS resolver returned them. When `false`, IPv4
++++         * addresses are placed before IPv6 addresses. This option will be deprecated in favor of `order`. When both are specified,
++++         * `order` has higher precedence. New code should only use `order`. Default value is configurable using {@link setDefaultResultOrder}
++++         * or [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder).
++++         * @default true (addresses are not reordered)
++++         */
++++        verbatim?: boolean | undefined;
++++    }
++++    export interface LookupOneOptions extends LookupOptions {
++++        all?: false | undefined;
++++    }
++++    export interface LookupAllOptions extends LookupOptions {
++++        all: true;
++++    }
++++    export interface LookupAddress {
++++        /**
++++         * A string representation of an IPv4 or IPv6 address.
++++         */
++++        address: string;
++++        /**
++++         * `4` or `6`, denoting the family of `address`, or `0` if the address is not an IPv4 or IPv6 address. `0` is a likely indicator of a
++++         * bug in the name resolution service used by the operating system.
++++         */
++++        family: number;
++++    }
++++    /**
++++     * Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or
++++     * AAAA (IPv6) record. All `option` properties are optional. If `options` is an
++++     * integer, then it must be `4` or `6` – if `options` is `0` or not provided, then
++++     * IPv4 and IPv6 addresses are both returned if found.
++++     *
++++     * With the `all` option set to `true`, the arguments for `callback` change to `(err, addresses)`, with `addresses` being an array of objects with the
++++     * properties `address` and `family`.
++++     *
++++     * On error, `err` is an `Error` object, where `err.code` is the error code.
++++     * Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when
++++     * the host name does not exist but also when the lookup fails in other ways
++++     * such as no available file descriptors.
++++     *
++++     * `dns.lookup()` does not necessarily have anything to do with the DNS protocol.
++++     * The implementation uses an operating system facility that can associate names
++++     * with addresses and vice versa. This implementation can have subtle but
++++     * important consequences on the behavior of any Node.js program. Please take some
++++     * time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations)
++++     * before using `dns.lookup()`.
++++     *
++++     * Example usage:
++++     *
++++     * ```js
++++     * import dns from 'node:dns';
++++     * const options = {
++++     *   family: 6,
++++     *   hints: dns.ADDRCONFIG | dns.V4MAPPED,
++++     * };
++++     * dns.lookup('example.com', options, (err, address, family) =>
++++     *   console.log('address: %j family: IPv%s', address, family));
++++     * // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6
++++     *
++++     * // When options.all is true, the result will be an Array.
++++     * options.all = true;
++++     * dns.lookup('example.com', options, (err, addresses) =>
++++     *   console.log('addresses: %j', addresses));
++++     * // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}]
++++     * ```
++++     *
++++     * If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v20.x/api/util.html#utilpromisifyoriginal) ed
++++     * version, and `all` is not set to `true`, it returns a `Promise` for an `Object` with `address` and `family` properties.
++++     * @since v0.1.90
++++     */
++++    export function lookup(
++++        hostname: string,
++++        family: number,
++++        callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
++++    ): void;
++++    export function lookup(
++++        hostname: string,
++++        options: LookupOneOptions,
++++        callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
++++    ): void;
++++    export function lookup(
++++        hostname: string,
++++        options: LookupAllOptions,
++++        callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void,
++++    ): void;
++++    export function lookup(
++++        hostname: string,
++++        options: LookupOptions,
++++        callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void,
++++    ): void;
++++    export function lookup(
++++        hostname: string,
++++        callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
++++    ): void;
++++    export namespace lookup {
++++        function __promisify__(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
++++        function __promisify__(hostname: string, options?: LookupOneOptions | number): Promise<LookupAddress>;
++++        function __promisify__(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
++++    }
++++    /**
++++     * Resolves the given `address` and `port` into a host name and service using
++++     * the operating system's underlying `getnameinfo` implementation.
++++     *
++++     * If `address` is not a valid IP address, a `TypeError` will be thrown.
++++     * The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown.
++++     *
++++     * On an error, `err` is an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object,
++++     * where `err.code` is the error code.
++++     *
++++     * ```js
++++     * import dns from 'node:dns';
++++     * dns.lookupService('127.0.0.1', 22, (err, hostname, service) => {
++++     *   console.log(hostname, service);
++++     *   // Prints: localhost ssh
++++     * });
++++     * ```
++++     *
++++     * If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v20.x/api/util.html#utilpromisifyoriginal) ed
++++     * version, it returns a `Promise` for an `Object` with `hostname` and `service` properties.
++++     * @since v0.11.14
++++     */
++++    export function lookupService(
++++        address: string,
++++        port: number,
++++        callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void,
++++    ): void;
++++    export namespace lookupService {
++++        function __promisify__(
++++            address: string,
++++            port: number,
++++        ): Promise<{
++++            hostname: string;
++++            service: string;
++++        }>;
++++    }
++++    export interface ResolveOptions {
++++        ttl: boolean;
++++    }
++++    export interface ResolveWithTtlOptions extends ResolveOptions {
++++        ttl: true;
++++    }
++++    export interface RecordWithTtl {
++++        address: string;
++++        ttl: number;
++++    }
++++    /** @deprecated Use `AnyARecord` or `AnyAaaaRecord` instead. */
++++    export type AnyRecordWithTtl = AnyARecord | AnyAaaaRecord;
++++    export interface AnyARecord extends RecordWithTtl {
++++        type: "A";
++++    }
++++    export interface AnyAaaaRecord extends RecordWithTtl {
++++        type: "AAAA";
++++    }
++++    export interface CaaRecord {
++++        critical: number;
++++        issue?: string | undefined;
++++        issuewild?: string | undefined;
++++        iodef?: string | undefined;
++++        contactemail?: string | undefined;
++++        contactphone?: string | undefined;
++++    }
++++    export interface MxRecord {
++++        priority: number;
++++        exchange: string;
++++    }
++++    export interface AnyMxRecord extends MxRecord {
++++        type: "MX";
++++    }
++++    export interface NaptrRecord {
++++        flags: string;
++++        service: string;
++++        regexp: string;
++++        replacement: string;
++++        order: number;
++++        preference: number;
++++    }
++++    export interface AnyNaptrRecord extends NaptrRecord {
++++        type: "NAPTR";
++++    }
++++    export interface SoaRecord {
++++        nsname: string;
++++        hostmaster: string;
++++        serial: number;
++++        refresh: number;
++++        retry: number;
++++        expire: number;
++++        minttl: number;
++++    }
++++    export interface AnySoaRecord extends SoaRecord {
++++        type: "SOA";
++++    }
++++    export interface SrvRecord {
++++        priority: number;
++++        weight: number;
++++        port: number;
++++        name: string;
++++    }
++++    export interface AnySrvRecord extends SrvRecord {
++++        type: "SRV";
++++    }
++++    export interface AnyTxtRecord {
++++        type: "TXT";
++++        entries: string[];
++++    }
++++    export interface AnyNsRecord {
++++        type: "NS";
++++        value: string;
++++    }
++++    export interface AnyPtrRecord {
++++        type: "PTR";
++++        value: string;
++++    }
++++    export interface AnyCnameRecord {
++++        type: "CNAME";
++++        value: string;
++++    }
++++    export type AnyRecord =
++++        | AnyARecord
++++        | AnyAaaaRecord
++++        | AnyCnameRecord
++++        | AnyMxRecord
++++        | AnyNaptrRecord
++++        | AnyNsRecord
++++        | AnyPtrRecord
++++        | AnySoaRecord
++++        | AnySrvRecord
++++        | AnyTxtRecord;
++++    /**
++++     * Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array
++++     * of the resource records. The `callback` function has arguments `(err, records)`. When successful, `records` will be an array of resource
++++     * records. The type and structure of individual results varies based on `rrtype`:
++++     *
++++     * <omitted>
++++     *
++++     * On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object,
++++     * where `err.code` is one of the `DNS error codes`.
++++     * @since v0.1.27
++++     * @param hostname Host name to resolve.
++++     * @param [rrtype='A'] Resource record type.
++++     */
++++    export function resolve(
++++        hostname: string,
++++        callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
++++    ): void;
++++    export function resolve(
++++        hostname: string,
++++        rrtype: "A",
++++        callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
++++    ): void;
++++    export function resolve(
++++        hostname: string,
++++        rrtype: "AAAA",
++++        callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
++++    ): void;
++++    export function resolve(
++++        hostname: string,
++++        rrtype: "ANY",
++++        callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void,
++++    ): void;
++++    export function resolve(
++++        hostname: string,
++++        rrtype: "CNAME",
++++        callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
++++    ): void;
++++    export function resolve(
++++        hostname: string,
++++        rrtype: "MX",
++++        callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void,
++++    ): void;
++++    export function resolve(
++++        hostname: string,
++++        rrtype: "NAPTR",
++++        callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void,
++++    ): void;
++++    export function resolve(
++++        hostname: string,
++++        rrtype: "NS",
++++        callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
++++    ): void;
++++    export function resolve(
++++        hostname: string,
++++        rrtype: "PTR",
++++        callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
++++    ): void;
++++    export function resolve(
++++        hostname: string,
++++        rrtype: "SOA",
++++        callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void,
++++    ): void;
++++    export function resolve(
++++        hostname: string,
++++        rrtype: "SRV",
++++        callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void,
++++    ): void;
++++    export function resolve(
++++        hostname: string,
++++        rrtype: "TXT",
++++        callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void,
++++    ): void;
++++    export function resolve(
++++        hostname: string,
++++        rrtype: string,
++++        callback: (
++++            err: NodeJS.ErrnoException | null,
++++            addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[],
++++        ) => void,
++++    ): void;
++++    export namespace resolve {
++++        function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise<string[]>;
++++        function __promisify__(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
++++        function __promisify__(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
++++        function __promisify__(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
++++        function __promisify__(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
++++        function __promisify__(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
++++        function __promisify__(hostname: string, rrtype: "TXT"): Promise<string[][]>;
++++        function __promisify__(
++++            hostname: string,
++++            rrtype: string,
++++        ): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
++++    }
++++    /**
++++     * Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the `hostname`. The `addresses` argument passed to the `callback` function
++++     * will contain an array of IPv4 addresses (e.g.`['74.125.79.104', '74.125.79.105', '74.125.79.106']`).
++++     * @since v0.1.16
++++     * @param hostname Host name to resolve.
++++     */
++++    export function resolve4(
++++        hostname: string,
++++        callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
++++    ): void;
++++    export function resolve4(
++++        hostname: string,
++++        options: ResolveWithTtlOptions,
++++        callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void,
++++    ): void;
++++    export function resolve4(
++++        hostname: string,
++++        options: ResolveOptions,
++++        callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void,
++++    ): void;
++++    export namespace resolve4 {
++++        function __promisify__(hostname: string): Promise<string[]>;
++++        function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
++++        function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
++++    }
++++    /**
++++     * Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. The `addresses` argument passed to the `callback` function
++++     * will contain an array of IPv6 addresses.
++++     * @since v0.1.16
++++     * @param hostname Host name to resolve.
++++     */
++++    export function resolve6(
++++        hostname: string,
++++        callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
++++    ): void;
++++    export function resolve6(
++++        hostname: string,
++++        options: ResolveWithTtlOptions,
++++        callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void,
++++    ): void;
++++    export function resolve6(
++++        hostname: string,
++++        options: ResolveOptions,
++++        callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void,
++++    ): void;
++++    export namespace resolve6 {
++++        function __promisify__(hostname: string): Promise<string[]>;
++++        function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
++++        function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
++++    }
++++    /**
++++     * Uses the DNS protocol to resolve `CNAME` records for the `hostname`. The `addresses` argument passed to the `callback` function
++++     * will contain an array of canonical name records available for the `hostname` (e.g. `['bar.example.com']`).
++++     * @since v0.3.2
++++     */
++++    export function resolveCname(
++++        hostname: string,
++++        callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
++++    ): void;
++++    export namespace resolveCname {
++++        function __promisify__(hostname: string): Promise<string[]>;
++++    }
++++    /**
++++     * Uses the DNS protocol to resolve `CAA` records for the `hostname`. The `addresses` argument passed to the `callback` function
++++     * will contain an array of certification authority authorization records
++++     * available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'}, {critical: 128, issue: 'pki.example.com'}]`).
++++     * @since v15.0.0, v14.17.0
++++     */
++++    export function resolveCaa(
++++        hostname: string,
++++        callback: (err: NodeJS.ErrnoException | null, records: CaaRecord[]) => void,
++++    ): void;
++++    export namespace resolveCaa {
++++        function __promisify__(hostname: string): Promise<CaaRecord[]>;
++++    }
++++    /**
++++     * Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
++++     * contain an array of objects containing both a `priority` and `exchange` property (e.g. `[{priority: 10, exchange: 'mx.example.com'}, ...]`).
++++     * @since v0.1.27
++++     */
++++    export function resolveMx(
++++        hostname: string,
++++        callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void,
++++    ): void;
++++    export namespace resolveMx {
++++        function __promisify__(hostname: string): Promise<MxRecord[]>;
++++    }
++++    /**
++++     * Uses the DNS protocol to resolve regular expression-based records (`NAPTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will contain an array of
++++     * objects with the following properties:
++++     *
++++     * * `flags`
++++     * * `service`
++++     * * `regexp`
++++     * * `replacement`
++++     * * `order`
++++     * * `preference`
++++     *
++++     * ```js
++++     * {
++++     *   flags: 's',
++++     *   service: 'SIP+D2U',
++++     *   regexp: '',
++++     *   replacement: '_sip._udp.example.com',
++++     *   order: 30,
++++     *   preference: 100
++++     * }
++++     * ```
++++     * @since v0.9.12
++++     */
++++    export function resolveNaptr(
++++        hostname: string,
++++        callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void,
++++    ): void;
++++    export namespace resolveNaptr {
++++        function __promisify__(hostname: string): Promise<NaptrRecord[]>;
++++    }
++++    /**
++++     * Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
++++     * contain an array of name server records available for `hostname` (e.g. `['ns1.example.com', 'ns2.example.com']`).
++++     * @since v0.1.90
++++     */
++++    export function resolveNs(
++++        hostname: string,
++++        callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
++++    ): void;
++++    export namespace resolveNs {
++++        function __promisify__(hostname: string): Promise<string[]>;
++++    }
++++    /**
++++     * Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
++++     * be an array of strings containing the reply records.
++++     * @since v6.0.0
++++     */
++++    export function resolvePtr(
++++        hostname: string,
++++        callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
++++    ): void;
++++    export namespace resolvePtr {
++++        function __promisify__(hostname: string): Promise<string[]>;
++++    }
++++    /**
++++     * Uses the DNS protocol to resolve a start of authority record (`SOA` record) for
++++     * the `hostname`. The `address` argument passed to the `callback` function will
++++     * be an object with the following properties:
++++     *
++++     * * `nsname`
++++     * * `hostmaster`
++++     * * `serial`
++++     * * `refresh`
++++     * * `retry`
++++     * * `expire`
++++     * * `minttl`
++++     *
++++     * ```js
++++     * {
++++     *   nsname: 'ns.example.com',
++++     *   hostmaster: 'root.example.com',
++++     *   serial: 2013101809,
++++     *   refresh: 10000,
++++     *   retry: 2400,
++++     *   expire: 604800,
++++     *   minttl: 3600
++++     * }
++++     * ```
++++     * @since v0.11.10
++++     */
++++    export function resolveSoa(
++++        hostname: string,
++++        callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void,
++++    ): void;
++++    export namespace resolveSoa {
++++        function __promisify__(hostname: string): Promise<SoaRecord>;
++++    }
++++    /**
++++     * Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
++++     * be an array of objects with the following properties:
++++     *
++++     * * `priority`
++++     * * `weight`
++++     * * `port`
++++     * * `name`
++++     *
++++     * ```js
++++     * {
++++     *   priority: 10,
++++     *   weight: 5,
++++     *   port: 21223,
++++     *   name: 'service.example.com'
++++     * }
++++     * ```
++++     * @since v0.1.27
++++     */
++++    export function resolveSrv(
++++        hostname: string,
++++        callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void,
++++    ): void;
++++    export namespace resolveSrv {
++++        function __promisify__(hostname: string): Promise<SrvRecord[]>;
++++    }
++++    /**
++++     * Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. The `records` argument passed to the `callback` function is a
++++     * two-dimensional array of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of
++++     * one record. Depending on the use case, these could be either joined together or
++++     * treated separately.
++++     * @since v0.1.27
++++     */
++++    export function resolveTxt(
++++        hostname: string,
++++        callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void,
++++    ): void;
++++    export namespace resolveTxt {
++++        function __promisify__(hostname: string): Promise<string[][]>;
++++    }
++++    /**
++++     * Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query).
++++     * The `ret` argument passed to the `callback` function will be an array containing
++++     * various types of records. Each object has a property `type` that indicates the
++++     * type of the current record. And depending on the `type`, additional properties
++++     * will be present on the object:
++++     *
++++     * <omitted>
++++     *
++++     * Here is an example of the `ret` object passed to the callback:
++++     *
++++     * ```js
++++     * [ { type: 'A', address: '127.0.0.1', ttl: 299 },
++++     *   { type: 'CNAME', value: 'example.com' },
++++     *   { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 },
++++     *   { type: 'NS', value: 'ns1.example.com' },
++++     *   { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] },
++++     *   { type: 'SOA',
++++     *     nsname: 'ns1.example.com',
++++     *     hostmaster: 'admin.example.com',
++++     *     serial: 156696742,
++++     *     refresh: 900,
++++     *     retry: 900,
++++     *     expire: 1800,
++++     *     minttl: 60 } ]
++++     * ```
++++     *
++++     * DNS server operators may choose not to respond to `ANY` queries. It may be better to call individual methods like {@link resolve4}, {@link resolveMx}, and so on. For more details, see
++++     * [RFC 8482](https://tools.ietf.org/html/rfc8482).
++++     */
++++    export function resolveAny(
++++        hostname: string,
++++        callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void,
++++    ): void;
++++    export namespace resolveAny {
++++        function __promisify__(hostname: string): Promise<AnyRecord[]>;
++++    }
++++    /**
++++     * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an
++++     * array of host names.
++++     *
++++     * On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is
++++     * one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes).
++++     * @since v0.1.16
++++     */
++++    export function reverse(
++++        ip: string,
++++        callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void,
++++    ): void;
++++    /**
++++     * Get the default value for `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options).
++++     * The value could be:
++++     *
++++     * * `ipv4first`: for `order` defaulting to `ipv4first`.
++++     * * `ipv6first`: for `order` defaulting to `ipv6first`.
++++     * * `verbatim`: for `order` defaulting to `verbatim`.
++++     * @since v18.17.0
++++     */
++++    export function getDefaultResultOrder(): "ipv4first" | "ipv6first" | "verbatim";
++++    /**
++++     * Sets the IP address and port of servers to be used when performing DNS
++++     * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted
++++     * addresses. If the port is the IANA default DNS port (53) it can be omitted.
++++     *
++++     * ```js
++++     * dns.setServers([
++++     *   '4.4.4.4',
++++     *   '[2001:4860:4860::8888]',
++++     *   '4.4.4.4:1053',
++++     *   '[2001:4860:4860::8888]:1053',
++++     * ]);
++++     * ```
++++     *
++++     * An error will be thrown if an invalid address is provided.
++++     *
++++     * The `dns.setServers()` method must not be called while a DNS query is in
++++     * progress.
++++     *
++++     * The {@link setServers} method affects only {@link resolve}, `dns.resolve*()` and {@link reverse} (and specifically _not_ {@link lookup}).
++++     *
++++     * This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html).
++++     * That is, if attempting to resolve with the first server provided results in a `NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with
++++     * subsequent servers provided. Fallback DNS servers will only be used if the
++++     * earlier ones time out or result in some other error.
++++     * @since v0.11.3
++++     * @param servers array of [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952#section-6) formatted addresses
++++     */
++++    export function setServers(servers: readonly string[]): void;
++++    /**
++++     * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6),
++++     * that are currently configured for DNS resolution. A string will include a port
++++     * section if a custom port is used.
++++     *
++++     * ```js
++++     * [
++++     *   '4.4.4.4',
++++     *   '2001:4860:4860::8888',
++++     *   '4.4.4.4:1053',
++++     *   '[2001:4860:4860::8888]:1053',
++++     * ]
++++     * ```
++++     * @since v0.11.3
++++     */
++++    export function getServers(): string[];
++++    /**
++++     * Set the default value of `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options).
++++     * The value could be:
++++     *
++++     * * `ipv4first`: sets default `order` to `ipv4first`.
++++     * * `ipv6first`: sets default `order` to `ipv6first`.
++++     * * `verbatim`: sets default `order` to `verbatim`.
++++     *
++++     * The default is `verbatim` and {@link setDefaultResultOrder} have higher
++++     * priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder). When using
++++     * [worker threads](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html), {@link setDefaultResultOrder} from the main
++++     * thread won't affect the default dns orders in workers.
++++     * @since v16.4.0, v14.18.0
++++     * @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`.
++++     */
++++    export function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void;
++++    // Error codes
++++    export const NODATA: "ENODATA";
++++    export const FORMERR: "EFORMERR";
++++    export const SERVFAIL: "ESERVFAIL";
++++    export const NOTFOUND: "ENOTFOUND";
++++    export const NOTIMP: "ENOTIMP";
++++    export const REFUSED: "EREFUSED";
++++    export const BADQUERY: "EBADQUERY";
++++    export const BADNAME: "EBADNAME";
++++    export const BADFAMILY: "EBADFAMILY";
++++    export const BADRESP: "EBADRESP";
++++    export const CONNREFUSED: "ECONNREFUSED";
++++    export const TIMEOUT: "ETIMEOUT";
++++    export const EOF: "EOF";
++++    export const FILE: "EFILE";
++++    export const NOMEM: "ENOMEM";
++++    export const DESTRUCTION: "EDESTRUCTION";
++++    export const BADSTR: "EBADSTR";
++++    export const BADFLAGS: "EBADFLAGS";
++++    export const NONAME: "ENONAME";
++++    export const BADHINTS: "EBADHINTS";
++++    export const NOTINITIALIZED: "ENOTINITIALIZED";
++++    export const LOADIPHLPAPI: "ELOADIPHLPAPI";
++++    export const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS";
++++    export const CANCELLED: "ECANCELLED";
++++    export interface ResolverOptions {
++++        /**
++++         * Query timeout in milliseconds, or `-1` to use the default timeout.
++++         */
++++        timeout?: number | undefined;
++++        /**
++++         * The number of tries the resolver will try contacting each name server before giving up.
++++         * @default 4
++++         */
++++        tries?: number;
++++    }
++++    /**
++++     * An independent resolver for DNS requests.
++++     *
++++     * Creating a new resolver uses the default server settings. Setting
++++     * the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnssetserversservers) does not affect
++++     * other resolvers:
++++     *
++++     * ```js
++++     * import { Resolver } from 'node:dns';
++++     * const resolver = new Resolver();
++++     * resolver.setServers(['4.4.4.4']);
++++     *
++++     * // This request will use the server at 4.4.4.4, independent of global settings.
++++     * resolver.resolve4('example.org', (err, addresses) => {
++++     *   // ...
++++     * });
++++     * ```
++++     *
++++     * The following methods from the `node:dns` module are available:
++++     *
++++     * * `resolver.getServers()`
++++     * * `resolver.resolve()`
++++     * * `resolver.resolve4()`
++++     * * `resolver.resolve6()`
++++     * * `resolver.resolveAny()`
++++     * * `resolver.resolveCaa()`
++++     * * `resolver.resolveCname()`
++++     * * `resolver.resolveMx()`
++++     * * `resolver.resolveNaptr()`
++++     * * `resolver.resolveNs()`
++++     * * `resolver.resolvePtr()`
++++     * * `resolver.resolveSoa()`
++++     * * `resolver.resolveSrv()`
++++     * * `resolver.resolveTxt()`
++++     * * `resolver.reverse()`
++++     * * `resolver.setServers()`
++++     * @since v8.3.0
++++     */
++++    export class Resolver {
++++        constructor(options?: ResolverOptions);
++++        /**
++++         * Cancel all outstanding DNS queries made by this resolver. The corresponding
++++         * callbacks will be called with an error with code `ECANCELLED`.
++++         * @since v8.3.0
++++         */
++++        cancel(): void;
++++        getServers: typeof getServers;
++++        resolve: typeof resolve;
++++        resolve4: typeof resolve4;
++++        resolve6: typeof resolve6;
++++        resolveAny: typeof resolveAny;
++++        resolveCaa: typeof resolveCaa;
++++        resolveCname: typeof resolveCname;
++++        resolveMx: typeof resolveMx;
++++        resolveNaptr: typeof resolveNaptr;
++++        resolveNs: typeof resolveNs;
++++        resolvePtr: typeof resolvePtr;
++++        resolveSoa: typeof resolveSoa;
++++        resolveSrv: typeof resolveSrv;
++++        resolveTxt: typeof resolveTxt;
++++        reverse: typeof reverse;
++++        /**
++++         * The resolver instance will send its requests from the specified IP address.
++++         * This allows programs to specify outbound interfaces when used on multi-homed
++++         * systems.
++++         *
++++         * If a v4 or v6 address is not specified, it is set to the default and the
++++         * operating system will choose a local address automatically.
++++         *
++++         * The resolver will use the v4 local address when making requests to IPv4 DNS
++++         * servers, and the v6 local address when making requests to IPv6 DNS servers.
++++         * The `rrtype` of resolution requests has no impact on the local address used.
++++         * @since v15.1.0, v14.17.0
++++         * @param [ipv4='0.0.0.0'] A string representation of an IPv4 address.
++++         * @param [ipv6='::0'] A string representation of an IPv6 address.
++++         */
++++        setLocalAddress(ipv4?: string, ipv6?: string): void;
++++        setServers: typeof setServers;
++++    }
++++    export { dnsPromises as promises };
++++}
++++declare module "node:dns" {
++++    export * from "dns";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6db6685e0964fda6854596d98696565d23b00470
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,477 @@@@@
++++/**
++++ * The `dns.promises` API provides an alternative set of asynchronous DNS methods
++++ * that return `Promise` objects rather than using callbacks. The API is accessible
++++ * via `import { promises } from 'node:dns'` or `import dnsPromises from 'node:dns/promises'`.
++++ * @since v10.6.0
++++ */
++++declare module "dns/promises" {
++++    import {
++++        AnyRecord,
++++        CaaRecord,
++++        LookupAddress,
++++        LookupAllOptions,
++++        LookupOneOptions,
++++        LookupOptions,
++++        MxRecord,
++++        NaptrRecord,
++++        RecordWithTtl,
++++        ResolveOptions,
++++        ResolverOptions,
++++        ResolveWithTtlOptions,
++++        SoaRecord,
++++        SrvRecord,
++++    } from "node:dns";
++++    /**
++++     * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6),
++++     * that are currently configured for DNS resolution. A string will include a port
++++     * section if a custom port is used.
++++     *
++++     * ```js
++++     * [
++++     *   '4.4.4.4',
++++     *   '2001:4860:4860::8888',
++++     *   '4.4.4.4:1053',
++++     *   '[2001:4860:4860::8888]:1053',
++++     * ]
++++     * ```
++++     * @since v10.6.0
++++     */
++++    function getServers(): string[];
++++    /**
++++     * Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or
++++     * AAAA (IPv6) record. All `option` properties are optional. If `options` is an
++++     * integer, then it must be `4` or `6` – if `options` is not provided, then IPv4
++++     * and IPv6 addresses are both returned if found.
++++     *
++++     * With the `all` option set to `true`, the `Promise` is resolved with `addresses` being an array of objects with the properties `address` and `family`.
++++     *
++++     * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code.
++++     * Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when
++++     * the host name does not exist but also when the lookup fails in other ways
++++     * such as no available file descriptors.
++++     *
++++     * [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options) does not necessarily have anything to do with the DNS
++++     * protocol. The implementation uses an operating system facility that can
++++     * associate names with addresses and vice versa. This implementation can have
++++     * subtle but important consequences on the behavior of any Node.js program. Please
++++     * take some time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations) before
++++     * using `dnsPromises.lookup()`.
++++     *
++++     * Example usage:
++++     *
++++     * ```js
++++     * import dns from 'node:dns';
++++     * const dnsPromises = dns.promises;
++++     * const options = {
++++     *   family: 6,
++++     *   hints: dns.ADDRCONFIG | dns.V4MAPPED,
++++     * };
++++     *
++++     * dnsPromises.lookup('example.com', options).then((result) => {
++++     *   console.log('address: %j family: IPv%s', result.address, result.family);
++++     *   // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6
++++     * });
++++     *
++++     * // When options.all is true, the result will be an Array.
++++     * options.all = true;
++++     * dnsPromises.lookup('example.com', options).then((result) => {
++++     *   console.log('addresses: %j', result);
++++     *   // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}]
++++     * });
++++     * ```
++++     * @since v10.6.0
++++     */
++++    function lookup(hostname: string, family: number): Promise<LookupAddress>;
++++    function lookup(hostname: string, options: LookupOneOptions): Promise<LookupAddress>;
++++    function lookup(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
++++    function lookup(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
++++    function lookup(hostname: string): Promise<LookupAddress>;
++++    /**
++++     * Resolves the given `address` and `port` into a host name and service using
++++     * the operating system's underlying `getnameinfo` implementation.
++++     *
++++     * If `address` is not a valid IP address, a `TypeError` will be thrown.
++++     * The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown.
++++     *
++++     * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code.
++++     *
++++     * ```js
++++     * import dns from 'node:dns';
++++     * dns.promises.lookupService('127.0.0.1', 22).then((result) => {
++++     *   console.log(result.hostname, result.service);
++++     *   // Prints: localhost ssh
++++     * });
++++     * ```
++++     * @since v10.6.0
++++     */
++++    function lookupService(
++++        address: string,
++++        port: number,
++++    ): Promise<{
++++        hostname: string;
++++        service: string;
++++    }>;
++++    /**
++++     * Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array
++++     * of the resource records. When successful, the `Promise` is resolved with an
++++     * array of resource records. The type and structure of individual results vary
++++     * based on `rrtype`:
++++     *
++++     * <omitted>
++++     *
++++     * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code`
++++     * is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes).
++++     * @since v10.6.0
++++     * @param hostname Host name to resolve.
++++     * @param [rrtype='A'] Resource record type.
++++     */
++++    function resolve(hostname: string): Promise<string[]>;
++++    function resolve(hostname: string, rrtype: "A"): Promise<string[]>;
++++    function resolve(hostname: string, rrtype: "AAAA"): Promise<string[]>;
++++    function resolve(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
++++    function resolve(hostname: string, rrtype: "CAA"): Promise<CaaRecord[]>;
++++    function resolve(hostname: string, rrtype: "CNAME"): Promise<string[]>;
++++    function resolve(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
++++    function resolve(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
++++    function resolve(hostname: string, rrtype: "NS"): Promise<string[]>;
++++    function resolve(hostname: string, rrtype: "PTR"): Promise<string[]>;
++++    function resolve(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
++++    function resolve(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
++++    function resolve(hostname: string, rrtype: "TXT"): Promise<string[][]>;
++++    function resolve(
++++        hostname: string,
++++        rrtype: string,
++++    ): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
++++    /**
++++     * Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv4
++++     * addresses (e.g. `['74.125.79.104', '74.125.79.105', '74.125.79.106']`).
++++     * @since v10.6.0
++++     * @param hostname Host name to resolve.
++++     */
++++    function resolve4(hostname: string): Promise<string[]>;
++++    function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
++++    function resolve4(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
++++    /**
++++     * Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv6
++++     * addresses.
++++     * @since v10.6.0
++++     * @param hostname Host name to resolve.
++++     */
++++    function resolve6(hostname: string): Promise<string[]>;
++++    function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
++++    function resolve6(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
++++    /**
++++     * Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query).
++++     * On success, the `Promise` is resolved with an array containing various types of
++++     * records. Each object has a property `type` that indicates the type of the
++++     * current record. And depending on the `type`, additional properties will be
++++     * present on the object:
++++     *
++++     * <omitted>
++++     *
++++     * Here is an example of the result object:
++++     *
++++     * ```js
++++     * [ { type: 'A', address: '127.0.0.1', ttl: 299 },
++++     *   { type: 'CNAME', value: 'example.com' },
++++     *   { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 },
++++     *   { type: 'NS', value: 'ns1.example.com' },
++++     *   { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] },
++++     *   { type: 'SOA',
++++     *     nsname: 'ns1.example.com',
++++     *     hostmaster: 'admin.example.com',
++++     *     serial: 156696742,
++++     *     refresh: 900,
++++     *     retry: 900,
++++     *     expire: 1800,
++++     *     minttl: 60 } ]
++++     * ```
++++     * @since v10.6.0
++++     */
++++    function resolveAny(hostname: string): Promise<AnyRecord[]>;
++++    /**
++++     * Uses the DNS protocol to resolve `CAA` records for the `hostname`. On success,
++++     * the `Promise` is resolved with an array of objects containing available
++++     * certification authority authorization records available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]`).
++++     * @since v15.0.0, v14.17.0
++++     */
++++    function resolveCaa(hostname: string): Promise<CaaRecord[]>;
++++    /**
++++     * Uses the DNS protocol to resolve `CNAME` records for the `hostname`. On success,
++++     * the `Promise` is resolved with an array of canonical name records available for
++++     * the `hostname` (e.g. `['bar.example.com']`).
++++     * @since v10.6.0
++++     */
++++    function resolveCname(hostname: string): Promise<string[]>;
++++    /**
++++     * Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. On success, the `Promise` is resolved with an array of objects
++++     * containing both a `priority` and `exchange` property (e.g.`[{priority: 10, exchange: 'mx.example.com'}, ...]`).
++++     * @since v10.6.0
++++     */
++++    function resolveMx(hostname: string): Promise<MxRecord[]>;
++++    /**
++++     * Uses the DNS protocol to resolve regular expression-based records (`NAPTR` records) for the `hostname`. On success, the `Promise` is resolved with an array
++++     * of objects with the following properties:
++++     *
++++     * * `flags`
++++     * * `service`
++++     * * `regexp`
++++     * * `replacement`
++++     * * `order`
++++     * * `preference`
++++     *
++++     * ```js
++++     * {
++++     *   flags: 's',
++++     *   service: 'SIP+D2U',
++++     *   regexp: '',
++++     *   replacement: '_sip._udp.example.com',
++++     *   order: 30,
++++     *   preference: 100
++++     * }
++++     * ```
++++     * @since v10.6.0
++++     */
++++    function resolveNaptr(hostname: string): Promise<NaptrRecord[]>;
++++    /**
++++     * Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. On success, the `Promise` is resolved with an array of name server
++++     * records available for `hostname` (e.g.`['ns1.example.com', 'ns2.example.com']`).
++++     * @since v10.6.0
++++     */
++++    function resolveNs(hostname: string): Promise<string[]>;
++++    /**
++++     * Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. On success, the `Promise` is resolved with an array of strings
++++     * containing the reply records.
++++     * @since v10.6.0
++++     */
++++    function resolvePtr(hostname: string): Promise<string[]>;
++++    /**
++++     * Uses the DNS protocol to resolve a start of authority record (`SOA` record) for
++++     * the `hostname`. On success, the `Promise` is resolved with an object with the
++++     * following properties:
++++     *
++++     * * `nsname`
++++     * * `hostmaster`
++++     * * `serial`
++++     * * `refresh`
++++     * * `retry`
++++     * * `expire`
++++     * * `minttl`
++++     *
++++     * ```js
++++     * {
++++     *   nsname: 'ns.example.com',
++++     *   hostmaster: 'root.example.com',
++++     *   serial: 2013101809,
++++     *   refresh: 10000,
++++     *   retry: 2400,
++++     *   expire: 604800,
++++     *   minttl: 3600
++++     * }
++++     * ```
++++     * @since v10.6.0
++++     */
++++    function resolveSoa(hostname: string): Promise<SoaRecord>;
++++    /**
++++     * Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. On success, the `Promise` is resolved with an array of objects with
++++     * the following properties:
++++     *
++++     * * `priority`
++++     * * `weight`
++++     * * `port`
++++     * * `name`
++++     *
++++     * ```js
++++     * {
++++     *   priority: 10,
++++     *   weight: 5,
++++     *   port: 21223,
++++     *   name: 'service.example.com'
++++     * }
++++     * ```
++++     * @since v10.6.0
++++     */
++++    function resolveSrv(hostname: string): Promise<SrvRecord[]>;
++++    /**
++++     * Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. On success, the `Promise` is resolved with a two-dimensional array
++++     * of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of
++++     * one record. Depending on the use case, these could be either joined together or
++++     * treated separately.
++++     * @since v10.6.0
++++     */
++++    function resolveTxt(hostname: string): Promise<string[][]>;
++++    /**
++++     * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an
++++     * array of host names.
++++     *
++++     * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code`
++++     * is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes).
++++     * @since v10.6.0
++++     */
++++    function reverse(ip: string): Promise<string[]>;
++++    /**
++++     * Get the default value for `verbatim` in {@link lookup} and [dnsPromises.lookup()](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options).
++++     * The value could be:
++++     *
++++     * * `ipv4first`: for `verbatim` defaulting to `false`.
++++     * * `verbatim`: for `verbatim` defaulting to `true`.
++++     * @since v20.1.0
++++     */
++++    function getDefaultResultOrder(): "ipv4first" | "verbatim";
++++    /**
++++     * Sets the IP address and port of servers to be used when performing DNS
++++     * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted
++++     * addresses. If the port is the IANA default DNS port (53) it can be omitted.
++++     *
++++     * ```js
++++     * dnsPromises.setServers([
++++     *   '4.4.4.4',
++++     *   '[2001:4860:4860::8888]',
++++     *   '4.4.4.4:1053',
++++     *   '[2001:4860:4860::8888]:1053',
++++     * ]);
++++     * ```
++++     *
++++     * An error will be thrown if an invalid address is provided.
++++     *
++++     * The `dnsPromises.setServers()` method must not be called while a DNS query is in
++++     * progress.
++++     *
++++     * This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html).
++++     * That is, if attempting to resolve with the first server provided results in a `NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with
++++     * subsequent servers provided. Fallback DNS servers will only be used if the
++++     * earlier ones time out or result in some other error.
++++     * @since v10.6.0
++++     * @param servers array of `RFC 5952` formatted addresses
++++     */
++++    function setServers(servers: readonly string[]): void;
++++    /**
++++     * Set the default value of `order` in `dns.lookup()` and `{@link lookup}`. The value could be:
++++     *
++++     * * `ipv4first`: sets default `order` to `ipv4first`.
++++     * * `ipv6first`: sets default `order` to `ipv6first`.
++++     * * `verbatim`: sets default `order` to `verbatim`.
++++     *
++++     * The default is `verbatim` and [dnsPromises.setDefaultResultOrder()](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetdefaultresultorderorder)
++++     * have higher priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder).
++++     * When using [worker threads](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html), [`dnsPromises.setDefaultResultOrder()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetdefaultresultorderorder)
++++     * from the main thread won't affect the default dns orders in workers.
++++     * @since v16.4.0, v14.18.0
++++     * @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`.
++++     */
++++    function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void;
++++    // Error codes
++++    const NODATA: "ENODATA";
++++    const FORMERR: "EFORMERR";
++++    const SERVFAIL: "ESERVFAIL";
++++    const NOTFOUND: "ENOTFOUND";
++++    const NOTIMP: "ENOTIMP";
++++    const REFUSED: "EREFUSED";
++++    const BADQUERY: "EBADQUERY";
++++    const BADNAME: "EBADNAME";
++++    const BADFAMILY: "EBADFAMILY";
++++    const BADRESP: "EBADRESP";
++++    const CONNREFUSED: "ECONNREFUSED";
++++    const TIMEOUT: "ETIMEOUT";
++++    const EOF: "EOF";
++++    const FILE: "EFILE";
++++    const NOMEM: "ENOMEM";
++++    const DESTRUCTION: "EDESTRUCTION";
++++    const BADSTR: "EBADSTR";
++++    const BADFLAGS: "EBADFLAGS";
++++    const NONAME: "ENONAME";
++++    const BADHINTS: "EBADHINTS";
++++    const NOTINITIALIZED: "ENOTINITIALIZED";
++++    const LOADIPHLPAPI: "ELOADIPHLPAPI";
++++    const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS";
++++    const CANCELLED: "ECANCELLED";
++++
++++    /**
++++     * An independent resolver for DNS requests.
++++     *
++++     * Creating a new resolver uses the default server settings. Setting
++++     * the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetserversservers) does not affect
++++     * other resolvers:
++++     *
++++     * ```js
++++     * import dns from 'node:dns';
++++     * const { Resolver } = dns.promises;
++++     * const resolver = new Resolver();
++++     * resolver.setServers(['4.4.4.4']);
++++     *
++++     * // This request will use the server at 4.4.4.4, independent of global settings.
++++     * resolver.resolve4('example.org').then((addresses) => {
++++     *   // ...
++++     * });
++++     *
++++     * // Alternatively, the same code can be written using async-await style.
++++     * (async function() {
++++     *   const addresses = await resolver.resolve4('example.org');
++++     * })();
++++     * ```
++++     *
++++     * The following methods from the `dnsPromises` API are available:
++++     *
++++     * * `resolver.getServers()`
++++     * * `resolver.resolve()`
++++     * * `resolver.resolve4()`
++++     * * `resolver.resolve6()`
++++     * * `resolver.resolveAny()`
++++     * * `resolver.resolveCaa()`
++++     * * `resolver.resolveCname()`
++++     * * `resolver.resolveMx()`
++++     * * `resolver.resolveNaptr()`
++++     * * `resolver.resolveNs()`
++++     * * `resolver.resolvePtr()`
++++     * * `resolver.resolveSoa()`
++++     * * `resolver.resolveSrv()`
++++     * * `resolver.resolveTxt()`
++++     * * `resolver.reverse()`
++++     * * `resolver.setServers()`
++++     * @since v10.6.0
++++     */
++++    class Resolver {
++++        constructor(options?: ResolverOptions);
++++        /**
++++         * Cancel all outstanding DNS queries made by this resolver. The corresponding
++++         * callbacks will be called with an error with code `ECANCELLED`.
++++         * @since v8.3.0
++++         */
++++        cancel(): void;
++++        getServers: typeof getServers;
++++        resolve: typeof resolve;
++++        resolve4: typeof resolve4;
++++        resolve6: typeof resolve6;
++++        resolveAny: typeof resolveAny;
++++        resolveCaa: typeof resolveCaa;
++++        resolveCname: typeof resolveCname;
++++        resolveMx: typeof resolveMx;
++++        resolveNaptr: typeof resolveNaptr;
++++        resolveNs: typeof resolveNs;
++++        resolvePtr: typeof resolvePtr;
++++        resolveSoa: typeof resolveSoa;
++++        resolveSrv: typeof resolveSrv;
++++        resolveTxt: typeof resolveTxt;
++++        reverse: typeof reverse;
++++        /**
++++         * The resolver instance will send its requests from the specified IP address.
++++         * This allows programs to specify outbound interfaces when used on multi-homed
++++         * systems.
++++         *
++++         * If a v4 or v6 address is not specified, it is set to the default and the
++++         * operating system will choose a local address automatically.
++++         *
++++         * The resolver will use the v4 local address when making requests to IPv4 DNS
++++         * servers, and the v6 local address when making requests to IPv6 DNS servers.
++++         * The `rrtype` of resolution requests has no impact on the local address used.
++++         * @since v15.1.0, v14.17.0
++++         * @param [ipv4='0.0.0.0'] A string representation of an IPv4 address.
++++         * @param [ipv6='::0'] A string representation of an IPv6 address.
++++         */
++++        setLocalAddress(ipv4?: string, ipv6?: string): void;
++++        setServers: typeof setServers;
++++    }
++++}
++++declare module "node:dns/promises" {
++++    export * from "dns/promises";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f47f71d63866904b6a83bbd68f100db0f96adb00
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,124 @@@@@
++++export {}; // Don't export anything!
++++
++++//// DOM-like Events
++++// NB: The Event / EventTarget / EventListener implementations below were copied
++++// from lib.dom.d.ts, then edited to reflect Node's documentation at
++++// https://nodejs.org/api/events.html#class-eventtarget.
++++// Please read that link to understand important implementation differences.
++++
++++// This conditional type will be the existing global Event in a browser, or
++++// the copy below in a Node environment.
++++type __Event = typeof globalThis extends { onmessage: any; Event: any } ? {}
++++    : {
++++        /** This is not used in Node.js and is provided purely for completeness. */
++++        readonly bubbles: boolean;
++++        /** Alias for event.stopPropagation(). This is not used in Node.js and is provided purely for completeness. */
++++        cancelBubble: () => void;
++++        /** True if the event was created with the cancelable option */
++++        readonly cancelable: boolean;
++++        /** This is not used in Node.js and is provided purely for completeness. */
++++        readonly composed: boolean;
++++        /** Returns an array containing the current EventTarget as the only entry or empty if the event is not being dispatched. This is not used in Node.js and is provided purely for completeness. */
++++        composedPath(): [EventTarget?];
++++        /** Alias for event.target. */
++++        readonly currentTarget: EventTarget | null;
++++        /** Is true if cancelable is true and event.preventDefault() has been called. */
++++        readonly defaultPrevented: boolean;
++++        /** This is not used in Node.js and is provided purely for completeness. */
++++        readonly eventPhase: 0 | 2;
++++        /** The `AbortSignal` "abort" event is emitted with `isTrusted` set to `true`. The value is `false` in all other cases. */
++++        readonly isTrusted: boolean;
++++        /** Sets the `defaultPrevented` property to `true` if `cancelable` is `true`. */
++++        preventDefault(): void;
++++        /** This is not used in Node.js and is provided purely for completeness. */
++++        returnValue: boolean;
++++        /** Alias for event.target. */
++++        readonly srcElement: EventTarget | null;
++++        /** Stops the invocation of event listeners after the current one completes. */
++++        stopImmediatePropagation(): void;
++++        /** This is not used in Node.js and is provided purely for completeness. */
++++        stopPropagation(): void;
++++        /** The `EventTarget` dispatching the event */
++++        readonly target: EventTarget | null;
++++        /** The millisecond timestamp when the Event object was created. */
++++        readonly timeStamp: number;
++++        /** Returns the type of event, e.g. "click", "hashchange", or "submit". */
++++        readonly type: string;
++++    };
++++
++++// See comment above explaining conditional type
++++type __EventTarget = typeof globalThis extends { onmessage: any; EventTarget: any } ? {}
++++    : {
++++        /**
++++         * Adds a new handler for the `type` event. Any given `listener` is added only once per `type` and per `capture` option value.
++++         *
++++         * If the `once` option is true, the `listener` is removed after the next time a `type` event is dispatched.
++++         *
++++         * The `capture` option is not used by Node.js in any functional way other than tracking registered event listeners per the `EventTarget` specification.
++++         * Specifically, the `capture` option is used as part of the key when registering a `listener`.
++++         * Any individual `listener` may be added once with `capture = false`, and once with `capture = true`.
++++         */
++++        addEventListener(
++++            type: string,
++++            listener: EventListener | EventListenerObject,
++++            options?: AddEventListenerOptions | boolean,
++++        ): void;
++++        /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
++++        dispatchEvent(event: Event): boolean;
++++        /** Removes the event listener in target's event listener list with the same type, callback, and options. */
++++        removeEventListener(
++++            type: string,
++++            listener: EventListener | EventListenerObject,
++++            options?: EventListenerOptions | boolean,
++++        ): void;
++++    };
++++
++++interface EventInit {
++++    bubbles?: boolean;
++++    cancelable?: boolean;
++++    composed?: boolean;
++++}
++++
++++interface EventListenerOptions {
++++    /** Not directly used by Node.js. Added for API completeness. Default: `false`. */
++++    capture?: boolean;
++++}
++++
++++interface AddEventListenerOptions extends EventListenerOptions {
++++    /** When `true`, the listener is automatically removed when it is first invoked. Default: `false`. */
++++    once?: boolean;
++++    /** When `true`, serves as a hint that the listener will not call the `Event` object's `preventDefault()` method. Default: false. */
++++    passive?: boolean;
++++    /** The listener will be removed when the given AbortSignal object's `abort()` method is called. */
++++    signal?: AbortSignal;
++++}
++++
++++interface EventListener {
++++    (evt: Event): void;
++++}
++++
++++interface EventListenerObject {
++++    handleEvent(object: Event): void;
++++}
++++
++++import {} from "events"; // Make this an ambient declaration
++++declare global {
++++    /** An event which takes place in the DOM. */
++++    interface Event extends __Event {}
++++    var Event: typeof globalThis extends { onmessage: any; Event: infer T } ? T
++++        : {
++++            prototype: __Event;
++++            new(type: string, eventInitDict?: EventInit): __Event;
++++        };
++++
++++    /**
++++     * EventTarget is a DOM interface implemented by objects that can
++++     * receive events and may have listeners for them.
++++     */
++++    interface EventTarget extends __EventTarget {}
++++    var EventTarget: typeof globalThis extends { onmessage: any; EventTarget: infer T } ? T
++++        : {
++++            prototype: __EventTarget;
++++            new(): __EventTarget;
++++        };
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..d83b0f0ffabe2da0d2371510af7e9132f2e73f3b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,170 @@@@@
++++/**
++++ * **This module is pending deprecation.** Once a replacement API has been
++++ * finalized, this module will be fully deprecated. Most developers should
++++ * **not** have cause to use this module. Users who absolutely must have
++++ * the functionality that domains provide may rely on it for the time being
++++ * but should expect to have to migrate to a different solution
++++ * in the future.
++++ *
++++ * Domains provide a way to handle multiple different IO operations as a
++++ * single group. If any of the event emitters or callbacks registered to a
++++ * domain emit an `'error'` event, or throw an error, then the domain object
++++ * will be notified, rather than losing the context of the error in the `process.on('uncaughtException')` handler, or causing the program to
++++ * exit immediately with an error code.
++++ * @deprecated Since v1.4.2 - Deprecated
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/domain.js)
++++ */
++++declare module "domain" {
++++    import EventEmitter = require("node:events");
++++    /**
++++     * The `Domain` class encapsulates the functionality of routing errors and
++++     * uncaught exceptions to the active `Domain` object.
++++     *
++++     * To handle the errors that it catches, listen to its `'error'` event.
++++     */
++++    class Domain extends EventEmitter {
++++        /**
++++         * An array of timers and event emitters that have been explicitly added
++++         * to the domain.
++++         */
++++        members: Array<EventEmitter | NodeJS.Timer>;
++++        /**
++++         * The `enter()` method is plumbing used by the `run()`, `bind()`, and `intercept()` methods to set the active domain. It sets `domain.active` and `process.domain` to the domain, and implicitly
++++         * pushes the domain onto the domain
++++         * stack managed by the domain module (see {@link exit} for details on the
++++         * domain stack). The call to `enter()` delimits the beginning of a chain of
++++         * asynchronous calls and I/O operations bound to a domain.
++++         *
++++         * Calling `enter()` changes only the active domain, and does not alter the domain
++++         * itself. `enter()` and `exit()` can be called an arbitrary number of times on a
++++         * single domain.
++++         */
++++        enter(): void;
++++        /**
++++         * The `exit()` method exits the current domain, popping it off the domain stack.
++++         * Any time execution is going to switch to the context of a different chain of
++++         * asynchronous calls, it's important to ensure that the current domain is exited.
++++         * The call to `exit()` delimits either the end of or an interruption to the chain
++++         * of asynchronous calls and I/O operations bound to a domain.
++++         *
++++         * If there are multiple, nested domains bound to the current execution context, `exit()` will exit any domains nested within this domain.
++++         *
++++         * Calling `exit()` changes only the active domain, and does not alter the domain
++++         * itself. `enter()` and `exit()` can be called an arbitrary number of times on a
++++         * single domain.
++++         */
++++        exit(): void;
++++        /**
++++         * Run the supplied function in the context of the domain, implicitly
++++         * binding all event emitters, timers, and low-level requests that are
++++         * created in that context. Optionally, arguments can be passed to
++++         * the function.
++++         *
++++         * This is the most basic way to use a domain.
++++         *
++++         * ```js
++++         * import domain from 'node:domain';
++++         * import fs from 'node:fs';
++++         * const d = domain.create();
++++         * d.on('error', (er) => {
++++         *   console.error('Caught error!', er);
++++         * });
++++         * d.run(() => {
++++         *   process.nextTick(() => {
++++         *     setTimeout(() => { // Simulating some various async stuff
++++         *       fs.open('non-existent file', 'r', (er, fd) => {
++++         *         if (er) throw er;
++++         *         // proceed...
++++         *       });
++++         *     }, 100);
++++         *   });
++++         * });
++++         * ```
++++         *
++++         * In this example, the `d.on('error')` handler will be triggered, rather
++++         * than crashing the program.
++++         */
++++        run<T>(fn: (...args: any[]) => T, ...args: any[]): T;
++++        /**
++++         * Explicitly adds an emitter to the domain. If any event handlers called by
++++         * the emitter throw an error, or if the emitter emits an `'error'` event, it
++++         * will be routed to the domain's `'error'` event, just like with implicit
++++         * binding.
++++         *
++++         * This also works with timers that are returned from `setInterval()` and `setTimeout()`. If their callback function throws, it will be caught by
++++         * the domain `'error'` handler.
++++         *
++++         * If the Timer or `EventEmitter` was already bound to a domain, it is removed
++++         * from that one, and bound to this one instead.
++++         * @param emitter emitter or timer to be added to the domain
++++         */
++++        add(emitter: EventEmitter | NodeJS.Timer): void;
++++        /**
++++         * The opposite of {@link add}. Removes domain handling from the
++++         * specified emitter.
++++         * @param emitter emitter or timer to be removed from the domain
++++         */
++++        remove(emitter: EventEmitter | NodeJS.Timer): void;
++++        /**
++++         * The returned function will be a wrapper around the supplied callback
++++         * function. When the returned function is called, any errors that are
++++         * thrown will be routed to the domain's `'error'` event.
++++         *
++++         * ```js
++++         * const d = domain.create();
++++         *
++++         * function readSomeFile(filename, cb) {
++++         *   fs.readFile(filename, 'utf8', d.bind((er, data) => {
++++         *     // If this throws, it will also be passed to the domain.
++++         *     return cb(er, data ? JSON.parse(data) : null);
++++         *   }));
++++         * }
++++         *
++++         * d.on('error', (er) => {
++++         *   // An error occurred somewhere. If we throw it now, it will crash the program
++++         *   // with the normal line number and stack message.
++++         * });
++++         * ```
++++         * @param callback The callback function
++++         * @return The bound function
++++         */
++++        bind<T extends Function>(callback: T): T;
++++        /**
++++         * This method is almost identical to {@link bind}. However, in
++++         * addition to catching thrown errors, it will also intercept `Error` objects sent as the first argument to the function.
++++         *
++++         * In this way, the common `if (err) return callback(err);` pattern can be replaced
++++         * with a single error handler in a single place.
++++         *
++++         * ```js
++++         * const d = domain.create();
++++         *
++++         * function readSomeFile(filename, cb) {
++++         *   fs.readFile(filename, 'utf8', d.intercept((data) => {
++++         *     // Note, the first argument is never passed to the
++++         *     // callback since it is assumed to be the 'Error' argument
++++         *     // and thus intercepted by the domain.
++++         *
++++         *     // If this throws, it will also be passed to the domain
++++         *     // so the error-handling logic can be moved to the 'error'
++++         *     // event on the domain instead of being repeated throughout
++++         *     // the program.
++++         *     return cb(null, JSON.parse(data));
++++         *   }));
++++         * }
++++         *
++++         * d.on('error', (er) => {
++++         *   // An error occurred somewhere. If we throw it now, it will crash the program
++++         *   // with the normal line number and stack message.
++++         * });
++++         * ```
++++         * @param callback The callback function
++++         * @return The intercepted function
++++         */
++++        intercept<T extends Function>(callback: T): T;
++++    }
++++    function create(): Domain;
++++}
++++declare module "node:domain" {
++++    export * from "domain";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..250baa35aeaddc9366ab25b7a69d116590aa8250
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,931 @@@@@
++++/**
++++ * Much of the Node.js core API is built around an idiomatic asynchronous
++++ * event-driven architecture in which certain kinds of objects (called "emitters")
++++ * emit named events that cause `Function` objects ("listeners") to be called.
++++ *
++++ * For instance: a `net.Server` object emits an event each time a peer
++++ * connects to it; a `fs.ReadStream` emits an event when the file is opened;
++++ * a `stream` emits an event whenever data is available to be read.
++++ *
++++ * All objects that emit events are instances of the `EventEmitter` class. These
++++ * objects expose an `eventEmitter.on()` function that allows one or more
++++ * functions to be attached to named events emitted by the object. Typically,
++++ * event names are camel-cased strings but any valid JavaScript property key
++++ * can be used.
++++ *
++++ * When the `EventEmitter` object emits an event, all of the functions attached
++++ * to that specific event are called _synchronously_. Any values returned by the
++++ * called listeners are _ignored_ and discarded.
++++ *
++++ * The following example shows a simple `EventEmitter` instance with a single
++++ * listener. The `eventEmitter.on()` method is used to register listeners, while
++++ * the `eventEmitter.emit()` method is used to trigger the event.
++++ *
++++ * ```js
++++ * import { EventEmitter } from 'node:events';
++++ *
++++ * class MyEmitter extends EventEmitter {}
++++ *
++++ * const myEmitter = new MyEmitter();
++++ * myEmitter.on('event', () => {
++++ *   console.log('an event occurred!');
++++ * });
++++ * myEmitter.emit('event');
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/events.js)
++++ */
++++declare module "events" {
++++    import { AsyncResource, AsyncResourceOptions } from "node:async_hooks";
++++    // NOTE: This class is in the docs but is **not actually exported** by Node.
++++    // If https://github.com/nodejs/node/issues/39903 gets resolved and Node
++++    // actually starts exporting the class, uncomment below.
++++    // import { EventListener, EventListenerObject } from '__dom-events';
++++    // /** The NodeEventTarget is a Node.js-specific extension to EventTarget that emulates a subset of the EventEmitter API. */
++++    // interface NodeEventTarget extends EventTarget {
++++    //     /**
++++    //      * Node.js-specific extension to the `EventTarget` class that emulates the equivalent `EventEmitter` API.
++++    //      * The only difference between `addListener()` and `addEventListener()` is that addListener() will return a reference to the EventTarget.
++++    //      */
++++    //     addListener(type: string, listener: EventListener | EventListenerObject, options?: { once: boolean }): this;
++++    //     /** Node.js-specific extension to the `EventTarget` class that returns an array of event `type` names for which event listeners are registered. */
++++    //     eventNames(): string[];
++++    //     /** Node.js-specific extension to the `EventTarget` class that returns the number of event listeners registered for the `type`. */
++++    //     listenerCount(type: string): number;
++++    //     /** Node.js-specific alias for `eventTarget.removeListener()`. */
++++    //     off(type: string, listener: EventListener | EventListenerObject): this;
++++    //     /** Node.js-specific alias for `eventTarget.addListener()`. */
++++    //     on(type: string, listener: EventListener | EventListenerObject, options?: { once: boolean }): this;
++++    //     /** Node.js-specific extension to the `EventTarget` class that adds a `once` listener for the given event `type`. This is equivalent to calling `on` with the `once` option set to `true`. */
++++    //     once(type: string, listener: EventListener | EventListenerObject): this;
++++    //     /**
++++    //      * Node.js-specific extension to the `EventTarget` class.
++++    //      * If `type` is specified, removes all registered listeners for `type`,
++++    //      * otherwise removes all registered listeners.
++++    //      */
++++    //     removeAllListeners(type: string): this;
++++    //     /**
++++    //      * Node.js-specific extension to the `EventTarget` class that removes the listener for the given `type`.
++++    //      * The only difference between `removeListener()` and `removeEventListener()` is that `removeListener()` will return a reference to the `EventTarget`.
++++    //      */
++++    //     removeListener(type: string, listener: EventListener | EventListenerObject): this;
++++    // }
++++    interface EventEmitterOptions {
++++        /**
++++         * Enables automatic capturing of promise rejection.
++++         */
++++        captureRejections?: boolean | undefined;
++++    }
++++    interface StaticEventEmitterOptions {
++++        /**
++++         * Can be used to cancel awaiting events.
++++         */
++++        signal?: AbortSignal | undefined;
++++    }
++++    interface StaticEventEmitterIteratorOptions extends StaticEventEmitterOptions {
++++        /**
++++         * Names of events that will end the iteration.
++++         */
++++        close?: string[] | undefined;
++++        /**
++++         * The high watermark. The emitter is paused every time the size of events being buffered is higher than it.
++++         * Supported only on emitters implementing `pause()` and `resume()` methods.
++++         * @default Number.MAX_SAFE_INTEGER
++++         */
++++        highWaterMark?: number | undefined;
++++        /**
++++         * The low watermark. The emitter is resumed every time the size of events being buffered is lower than it.
++++         * Supported only on emitters implementing `pause()` and `resume()` methods.
++++         * @default 1
++++         */
++++        lowWaterMark?: number | undefined;
++++    }
++++    interface EventEmitter<T extends EventMap<T> = DefaultEventMap> extends NodeJS.EventEmitter<T> {}
++++    type EventMap<T> = Record<keyof T, any[]> | DefaultEventMap;
++++    type DefaultEventMap = [never];
++++    type AnyRest = [...args: any[]];
++++    type Args<K, T> = T extends DefaultEventMap ? AnyRest : (
++++        K extends keyof T ? T[K] : never
++++    );
++++    type Key<K, T> = T extends DefaultEventMap ? string | symbol : K | keyof T;
++++    type Key2<K, T> = T extends DefaultEventMap ? string | symbol : K & keyof T;
++++    type Listener<K, T, F> = T extends DefaultEventMap ? F : (
++++        K extends keyof T ? (
++++                T[K] extends unknown[] ? (...args: T[K]) => void : never
++++            )
++++            : never
++++    );
++++    type Listener1<K, T> = Listener<K, T, (...args: any[]) => void>;
++++    type Listener2<K, T> = Listener<K, T, Function>;
++++
++++    /**
++++     * The `EventEmitter` class is defined and exposed by the `node:events` module:
++++     *
++++     * ```js
++++     * import { EventEmitter } from 'node:events';
++++     * ```
++++     *
++++     * All `EventEmitter`s emit the event `'newListener'` when new listeners are
++++     * added and `'removeListener'` when existing listeners are removed.
++++     *
++++     * It supports the following option:
++++     * @since v0.1.26
++++     */
++++    class EventEmitter<T extends EventMap<T> = DefaultEventMap> {
++++        constructor(options?: EventEmitterOptions);
++++
++++        [EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: Key<K, T>, ...args: Args<K, T>): void;
++++
++++        /**
++++         * Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given
++++         * event or that is rejected if the `EventEmitter` emits `'error'` while waiting.
++++         * The `Promise` will resolve with an array of all the arguments emitted to the
++++         * given event.
++++         *
++++         * This method is intentionally generic and works with the web platform [EventTarget](https://dom.spec.whatwg.org/#interface-eventtarget) interface, which has no special`'error'` event
++++         * semantics and does not listen to the `'error'` event.
++++         *
++++         * ```js
++++         * import { once, EventEmitter } from 'node:events';
++++         * import process from 'node:process';
++++         *
++++         * const ee = new EventEmitter();
++++         *
++++         * process.nextTick(() => {
++++         *   ee.emit('myevent', 42);
++++         * });
++++         *
++++         * const [value] = await once(ee, 'myevent');
++++         * console.log(value);
++++         *
++++         * const err = new Error('kaboom');
++++         * process.nextTick(() => {
++++         *   ee.emit('error', err);
++++         * });
++++         *
++++         * try {
++++         *   await once(ee, 'myevent');
++++         * } catch (err) {
++++         *   console.error('error happened', err);
++++         * }
++++         * ```
++++         *
++++         * The special handling of the `'error'` event is only used when `events.once()` is used to wait for another event. If `events.once()` is used to wait for the
++++         * '`error'` event itself, then it is treated as any other kind of event without
++++         * special handling:
++++         *
++++         * ```js
++++         * import { EventEmitter, once } from 'node:events';
++++         *
++++         * const ee = new EventEmitter();
++++         *
++++         * once(ee, 'error')
++++         *   .then(([err]) => console.log('ok', err.message))
++++         *   .catch((err) => console.error('error', err.message));
++++         *
++++         * ee.emit('error', new Error('boom'));
++++         *
++++         * // Prints: ok boom
++++         * ```
++++         *
++++         * An `AbortSignal` can be used to cancel waiting for the event:
++++         *
++++         * ```js
++++         * import { EventEmitter, once } from 'node:events';
++++         *
++++         * const ee = new EventEmitter();
++++         * const ac = new AbortController();
++++         *
++++         * async function foo(emitter, event, signal) {
++++         *   try {
++++         *     await once(emitter, event, { signal });
++++         *     console.log('event emitted!');
++++         *   } catch (error) {
++++         *     if (error.name === 'AbortError') {
++++         *       console.error('Waiting for the event was canceled!');
++++         *     } else {
++++         *       console.error('There was an error', error.message);
++++         *     }
++++         *   }
++++         * }
++++         *
++++         * foo(ee, 'foo', ac.signal);
++++         * ac.abort(); // Abort waiting for the event
++++         * ee.emit('foo'); // Prints: Waiting for the event was canceled!
++++         * ```
++++         * @since v11.13.0, v10.16.0
++++         */
++++        static once(
++++            emitter: NodeJS.EventEmitter,
++++            eventName: string | symbol,
++++            options?: StaticEventEmitterOptions,
++++        ): Promise<any[]>;
++++        static once(emitter: EventTarget, eventName: string, options?: StaticEventEmitterOptions): Promise<any[]>;
++++        /**
++++         * ```js
++++         * import { on, EventEmitter } from 'node:events';
++++         * import process from 'node:process';
++++         *
++++         * const ee = new EventEmitter();
++++         *
++++         * // Emit later on
++++         * process.nextTick(() => {
++++         *   ee.emit('foo', 'bar');
++++         *   ee.emit('foo', 42);
++++         * });
++++         *
++++         * for await (const event of on(ee, 'foo')) {
++++         *   // The execution of this inner block is synchronous and it
++++         *   // processes one event at a time (even with await). Do not use
++++         *   // if concurrent execution is required.
++++         *   console.log(event); // prints ['bar'] [42]
++++         * }
++++         * // Unreachable here
++++         * ```
++++         *
++++         * Returns an `AsyncIterator` that iterates `eventName` events. It will throw
++++         * if the `EventEmitter` emits `'error'`. It removes all listeners when
++++         * exiting the loop. The `value` returned by each iteration is an array
++++         * composed of the emitted event arguments.
++++         *
++++         * An `AbortSignal` can be used to cancel waiting on events:
++++         *
++++         * ```js
++++         * import { on, EventEmitter } from 'node:events';
++++         * import process from 'node:process';
++++         *
++++         * const ac = new AbortController();
++++         *
++++         * (async () => {
++++         *   const ee = new EventEmitter();
++++         *
++++         *   // Emit later on
++++         *   process.nextTick(() => {
++++         *     ee.emit('foo', 'bar');
++++         *     ee.emit('foo', 42);
++++         *   });
++++         *
++++         *   for await (const event of on(ee, 'foo', { signal: ac.signal })) {
++++         *     // The execution of this inner block is synchronous and it
++++         *     // processes one event at a time (even with await). Do not use
++++         *     // if concurrent execution is required.
++++         *     console.log(event); // prints ['bar'] [42]
++++         *   }
++++         *   // Unreachable here
++++         * })();
++++         *
++++         * process.nextTick(() => ac.abort());
++++         * ```
++++         *
++++         * Use the `close` option to specify an array of event names that will end the iteration:
++++         *
++++         * ```js
++++         * import { on, EventEmitter } from 'node:events';
++++         * import process from 'node:process';
++++         *
++++         * const ee = new EventEmitter();
++++         *
++++         * // Emit later on
++++         * process.nextTick(() => {
++++         *   ee.emit('foo', 'bar');
++++         *   ee.emit('foo', 42);
++++         *   ee.emit('close');
++++         * });
++++         *
++++         * for await (const event of on(ee, 'foo', { close: ['close'] })) {
++++         *   console.log(event); // prints ['bar'] [42]
++++         * }
++++         * // the loop will exit after 'close' is emitted
++++         * console.log('done'); // prints 'done'
++++         * ```
++++         * @since v13.6.0, v12.16.0
++++         * @return An `AsyncIterator` that iterates `eventName` events emitted by the `emitter`
++++         */
++++        static on(
++++            emitter: NodeJS.EventEmitter,
++++            eventName: string | symbol,
++++            options?: StaticEventEmitterIteratorOptions,
++++        ): NodeJS.AsyncIterator<any[]>;
++++        static on(
++++            emitter: EventTarget,
++++            eventName: string,
++++            options?: StaticEventEmitterIteratorOptions,
++++        ): NodeJS.AsyncIterator<any[]>;
++++        /**
++++         * A class method that returns the number of listeners for the given `eventName` registered on the given `emitter`.
++++         *
++++         * ```js
++++         * import { EventEmitter, listenerCount } from 'node:events';
++++         *
++++         * const myEmitter = new EventEmitter();
++++         * myEmitter.on('event', () => {});
++++         * myEmitter.on('event', () => {});
++++         * console.log(listenerCount(myEmitter, 'event'));
++++         * // Prints: 2
++++         * ```
++++         * @since v0.9.12
++++         * @deprecated Since v3.2.0 - Use `listenerCount` instead.
++++         * @param emitter The emitter to query
++++         * @param eventName The event name
++++         */
++++        static listenerCount(emitter: NodeJS.EventEmitter, eventName: string | symbol): number;
++++        /**
++++         * Returns a copy of the array of listeners for the event named `eventName`.
++++         *
++++         * For `EventEmitter`s this behaves exactly the same as calling `.listeners` on
++++         * the emitter.
++++         *
++++         * For `EventTarget`s this is the only way to get the event listeners for the
++++         * event target. This is useful for debugging and diagnostic purposes.
++++         *
++++         * ```js
++++         * import { getEventListeners, EventEmitter } from 'node:events';
++++         *
++++         * {
++++         *   const ee = new EventEmitter();
++++         *   const listener = () => console.log('Events are fun');
++++         *   ee.on('foo', listener);
++++         *   console.log(getEventListeners(ee, 'foo')); // [ [Function: listener] ]
++++         * }
++++         * {
++++         *   const et = new EventTarget();
++++         *   const listener = () => console.log('Events are fun');
++++         *   et.addEventListener('foo', listener);
++++         *   console.log(getEventListeners(et, 'foo')); // [ [Function: listener] ]
++++         * }
++++         * ```
++++         * @since v15.2.0, v14.17.0
++++         */
++++        static getEventListeners(emitter: EventTarget | NodeJS.EventEmitter, name: string | symbol): Function[];
++++        /**
++++         * Returns the currently set max amount of listeners.
++++         *
++++         * For `EventEmitter`s this behaves exactly the same as calling `.getMaxListeners` on
++++         * the emitter.
++++         *
++++         * For `EventTarget`s this is the only way to get the max event listeners for the
++++         * event target. If the number of event handlers on a single EventTarget exceeds
++++         * the max set, the EventTarget will print a warning.
++++         *
++++         * ```js
++++         * import { getMaxListeners, setMaxListeners, EventEmitter } from 'node:events';
++++         *
++++         * {
++++         *   const ee = new EventEmitter();
++++         *   console.log(getMaxListeners(ee)); // 10
++++         *   setMaxListeners(11, ee);
++++         *   console.log(getMaxListeners(ee)); // 11
++++         * }
++++         * {
++++         *   const et = new EventTarget();
++++         *   console.log(getMaxListeners(et)); // 10
++++         *   setMaxListeners(11, et);
++++         *   console.log(getMaxListeners(et)); // 11
++++         * }
++++         * ```
++++         * @since v19.9.0
++++         */
++++        static getMaxListeners(emitter: EventTarget | NodeJS.EventEmitter): number;
++++        /**
++++         * ```js
++++         * import { setMaxListeners, EventEmitter } from 'node:events';
++++         *
++++         * const target = new EventTarget();
++++         * const emitter = new EventEmitter();
++++         *
++++         * setMaxListeners(5, target, emitter);
++++         * ```
++++         * @since v15.4.0
++++         * @param n A non-negative number. The maximum number of listeners per `EventTarget` event.
++++         * @param eventTargets Zero or more {EventTarget} or {EventEmitter} instances. If none are specified, `n` is set as the default max for all newly created {EventTarget} and {EventEmitter}
++++         * objects.
++++         */
++++        static setMaxListeners(n?: number, ...eventTargets: Array<EventTarget | NodeJS.EventEmitter>): void;
++++        /**
++++         * Listens once to the `abort` event on the provided `signal`.
++++         *
++++         * Listening to the `abort` event on abort signals is unsafe and may
++++         * lead to resource leaks since another third party with the signal can
++++         * call `e.stopImmediatePropagation()`. Unfortunately Node.js cannot change
++++         * this since it would violate the web standard. Additionally, the original
++++         * API makes it easy to forget to remove listeners.
++++         *
++++         * This API allows safely using `AbortSignal`s in Node.js APIs by solving these
++++         * two issues by listening to the event such that `stopImmediatePropagation` does
++++         * not prevent the listener from running.
++++         *
++++         * Returns a disposable so that it may be unsubscribed from more easily.
++++         *
++++         * ```js
++++         * import { addAbortListener } from 'node:events';
++++         *
++++         * function example(signal) {
++++         *   let disposable;
++++         *   try {
++++         *     signal.addEventListener('abort', (e) => e.stopImmediatePropagation());
++++         *     disposable = addAbortListener(signal, (e) => {
++++         *       // Do something when signal is aborted.
++++         *     });
++++         *   } finally {
++++         *     disposable?.[Symbol.dispose]();
++++         *   }
++++         * }
++++         * ```
++++         * @since v20.5.0
++++         * @experimental
++++         * @return Disposable that removes the `abort` listener.
++++         */
++++        static addAbortListener(signal: AbortSignal, resource: (event: Event) => void): Disposable;
++++        /**
++++         * This symbol shall be used to install a listener for only monitoring `'error'` events. Listeners installed using this symbol are called before the regular `'error'` listeners are called.
++++         *
++++         * Installing a listener using this symbol does not change the behavior once an `'error'` event is emitted. Therefore, the process will still crash if no
++++         * regular `'error'` listener is installed.
++++         * @since v13.6.0, v12.17.0
++++         */
++++        static readonly errorMonitor: unique symbol;
++++        /**
++++         * Value: `Symbol.for('nodejs.rejection')`
++++         *
++++         * See how to write a custom `rejection handler`.
++++         * @since v13.4.0, v12.16.0
++++         */
++++        static readonly captureRejectionSymbol: unique symbol;
++++        /**
++++         * Value: [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type)
++++         *
++++         * Change the default `captureRejections` option on all new `EventEmitter` objects.
++++         * @since v13.4.0, v12.16.0
++++         */
++++        static captureRejections: boolean;
++++        /**
++++         * By default, a maximum of `10` listeners can be registered for any single
++++         * event. This limit can be changed for individual `EventEmitter` instances
++++         * using the `emitter.setMaxListeners(n)` method. To change the default
++++         * for _all_`EventEmitter` instances, the `events.defaultMaxListeners` property
++++         * can be used. If this value is not a positive number, a `RangeError` is thrown.
++++         *
++++         * Take caution when setting the `events.defaultMaxListeners` because the
++++         * change affects _all_ `EventEmitter` instances, including those created before
++++         * the change is made. However, calling `emitter.setMaxListeners(n)` still has
++++         * precedence over `events.defaultMaxListeners`.
++++         *
++++         * This is not a hard limit. The `EventEmitter` instance will allow
++++         * more listeners to be added but will output a trace warning to stderr indicating
++++         * that a "possible EventEmitter memory leak" has been detected. For any single
++++         * `EventEmitter`, the `emitter.getMaxListeners()` and `emitter.setMaxListeners()` methods can be used to
++++         * temporarily avoid this warning:
++++         *
++++         * ```js
++++         * import { EventEmitter } from 'node:events';
++++         * const emitter = new EventEmitter();
++++         * emitter.setMaxListeners(emitter.getMaxListeners() + 1);
++++         * emitter.once('event', () => {
++++         *   // do stuff
++++         *   emitter.setMaxListeners(Math.max(emitter.getMaxListeners() - 1, 0));
++++         * });
++++         * ```
++++         *
++++         * The `--trace-warnings` command-line flag can be used to display the
++++         * stack trace for such warnings.
++++         *
++++         * The emitted warning can be inspected with `process.on('warning')` and will
++++         * have the additional `emitter`, `type`, and `count` properties, referring to
++++         * the event emitter instance, the event's name and the number of attached
++++         * listeners, respectively.
++++         * Its `name` property is set to `'MaxListenersExceededWarning'`.
++++         * @since v0.11.2
++++         */
++++        static defaultMaxListeners: number;
++++    }
++++    import internal = require("node:events");
++++    namespace EventEmitter {
++++        // Should just be `export { EventEmitter }`, but that doesn't work in TypeScript 3.4
++++        export { internal as EventEmitter };
++++        export interface Abortable {
++++            /**
++++             * When provided the corresponding `AbortController` can be used to cancel an asynchronous action.
++++             */
++++            signal?: AbortSignal | undefined;
++++        }
++++
++++        export interface EventEmitterReferencingAsyncResource extends AsyncResource {
++++            readonly eventEmitter: EventEmitterAsyncResource;
++++        }
++++
++++        export interface EventEmitterAsyncResourceOptions extends AsyncResourceOptions, EventEmitterOptions {
++++            /**
++++             * The type of async event, this is required when instantiating `EventEmitterAsyncResource`
++++             * directly rather than as a child class.
++++             * @default new.target.name if instantiated as a child class.
++++             */
++++            name?: string;
++++        }
++++
++++        /**
++++         * Integrates `EventEmitter` with `AsyncResource` for `EventEmitter`s that
++++         * require manual async tracking. Specifically, all events emitted by instances
++++         * of `events.EventEmitterAsyncResource` will run within its `async context`.
++++         *
++++         * ```js
++++         * import { EventEmitterAsyncResource, EventEmitter } from 'node:events';
++++         * import { notStrictEqual, strictEqual } from 'node:assert';
++++         * import { executionAsyncId, triggerAsyncId } from 'node:async_hooks';
++++         *
++++         * // Async tracking tooling will identify this as 'Q'.
++++         * const ee1 = new EventEmitterAsyncResource({ name: 'Q' });
++++         *
++++         * // 'foo' listeners will run in the EventEmitters async context.
++++         * ee1.on('foo', () => {
++++         *   strictEqual(executionAsyncId(), ee1.asyncId);
++++         *   strictEqual(triggerAsyncId(), ee1.triggerAsyncId);
++++         * });
++++         *
++++         * const ee2 = new EventEmitter();
++++         *
++++         * // 'foo' listeners on ordinary EventEmitters that do not track async
++++         * // context, however, run in the same async context as the emit().
++++         * ee2.on('foo', () => {
++++         *   notStrictEqual(executionAsyncId(), ee2.asyncId);
++++         *   notStrictEqual(triggerAsyncId(), ee2.triggerAsyncId);
++++         * });
++++         *
++++         * Promise.resolve().then(() => {
++++         *   ee1.emit('foo');
++++         *   ee2.emit('foo');
++++         * });
++++         * ```
++++         *
++++         * The `EventEmitterAsyncResource` class has the same methods and takes the
++++         * same options as `EventEmitter` and `AsyncResource` themselves.
++++         * @since v17.4.0, v16.14.0
++++         */
++++        export class EventEmitterAsyncResource extends EventEmitter {
++++            /**
++++             * @param options Only optional in child class.
++++             */
++++            constructor(options?: EventEmitterAsyncResourceOptions);
++++            /**
++++             * Call all `destroy` hooks. This should only ever be called once. An error will
++++             * be thrown if it is called more than once. This **must** be manually called. If
++++             * the resource is left to be collected by the GC then the `destroy` hooks will
++++             * never be called.
++++             */
++++            emitDestroy(): void;
++++            /**
++++             * The unique `asyncId` assigned to the resource.
++++             */
++++            readonly asyncId: number;
++++            /**
++++             * The same triggerAsyncId that is passed to the AsyncResource constructor.
++++             */
++++            readonly triggerAsyncId: number;
++++            /**
++++             * The returned `AsyncResource` object has an additional `eventEmitter` property
++++             * that provides a reference to this `EventEmitterAsyncResource`.
++++             */
++++            readonly asyncResource: EventEmitterReferencingAsyncResource;
++++        }
++++    }
++++    global {
++++        namespace NodeJS {
++++            interface EventEmitter<T extends EventMap<T> = DefaultEventMap> {
++++                [EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: Key<K, T>, ...args: Args<K, T>): void;
++++                /**
++++                 * Alias for `emitter.on(eventName, listener)`.
++++                 * @since v0.1.26
++++                 */
++++                addListener<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
++++                /**
++++                 * Adds the `listener` function to the end of the listeners array for the event
++++                 * named `eventName`. No checks are made to see if the `listener` has already
++++                 * been added. Multiple calls passing the same combination of `eventName` and
++++                 * `listener` will result in the `listener` being added, and called, multiple times.
++++                 *
++++                 * ```js
++++                 * server.on('connection', (stream) => {
++++                 *   console.log('someone connected!');
++++                 * });
++++                 * ```
++++                 *
++++                 * Returns a reference to the `EventEmitter`, so that calls can be chained.
++++                 *
++++                 * By default, event listeners are invoked in the order they are added. The `emitter.prependListener()` method can be used as an alternative to add the
++++                 * event listener to the beginning of the listeners array.
++++                 *
++++                 * ```js
++++                 * import { EventEmitter } from 'node:events';
++++                 * const myEE = new EventEmitter();
++++                 * myEE.on('foo', () => console.log('a'));
++++                 * myEE.prependListener('foo', () => console.log('b'));
++++                 * myEE.emit('foo');
++++                 * // Prints:
++++                 * //   b
++++                 * //   a
++++                 * ```
++++                 * @since v0.1.101
++++                 * @param eventName The name of the event.
++++                 * @param listener The callback function
++++                 */
++++                on<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
++++                /**
++++                 * Adds a **one-time** `listener` function for the event named `eventName`. The
++++                 * next time `eventName` is triggered, this listener is removed and then invoked.
++++                 *
++++                 * ```js
++++                 * server.once('connection', (stream) => {
++++                 *   console.log('Ah, we have our first user!');
++++                 * });
++++                 * ```
++++                 *
++++                 * Returns a reference to the `EventEmitter`, so that calls can be chained.
++++                 *
++++                 * By default, event listeners are invoked in the order they are added. The `emitter.prependOnceListener()` method can be used as an alternative to add the
++++                 * event listener to the beginning of the listeners array.
++++                 *
++++                 * ```js
++++                 * import { EventEmitter } from 'node:events';
++++                 * const myEE = new EventEmitter();
++++                 * myEE.once('foo', () => console.log('a'));
++++                 * myEE.prependOnceListener('foo', () => console.log('b'));
++++                 * myEE.emit('foo');
++++                 * // Prints:
++++                 * //   b
++++                 * //   a
++++                 * ```
++++                 * @since v0.3.0
++++                 * @param eventName The name of the event.
++++                 * @param listener The callback function
++++                 */
++++                once<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
++++                /**
++++                 * Removes the specified `listener` from the listener array for the event named `eventName`.
++++                 *
++++                 * ```js
++++                 * const callback = (stream) => {
++++                 *   console.log('someone connected!');
++++                 * };
++++                 * server.on('connection', callback);
++++                 * // ...
++++                 * server.removeListener('connection', callback);
++++                 * ```
++++                 *
++++                 * `removeListener()` will remove, at most, one instance of a listener from the
++++                 * listener array. If any single listener has been added multiple times to the
++++                 * listener array for the specified `eventName`, then `removeListener()` must be
++++                 * called multiple times to remove each instance.
++++                 *
++++                 * Once an event is emitted, all listeners attached to it at the
++++                 * time of emitting are called in order. This implies that any `removeListener()` or `removeAllListeners()` calls _after_ emitting and _before_ the last listener finishes execution
++++                 * will not remove them from`emit()` in progress. Subsequent events behave as expected.
++++                 *
++++                 * ```js
++++                 * import { EventEmitter } from 'node:events';
++++                 * class MyEmitter extends EventEmitter {}
++++                 * const myEmitter = new MyEmitter();
++++                 *
++++                 * const callbackA = () => {
++++                 *   console.log('A');
++++                 *   myEmitter.removeListener('event', callbackB);
++++                 * };
++++                 *
++++                 * const callbackB = () => {
++++                 *   console.log('B');
++++                 * };
++++                 *
++++                 * myEmitter.on('event', callbackA);
++++                 *
++++                 * myEmitter.on('event', callbackB);
++++                 *
++++                 * // callbackA removes listener callbackB but it will still be called.
++++                 * // Internal listener array at time of emit [callbackA, callbackB]
++++                 * myEmitter.emit('event');
++++                 * // Prints:
++++                 * //   A
++++                 * //   B
++++                 *
++++                 * // callbackB is now removed.
++++                 * // Internal listener array [callbackA]
++++                 * myEmitter.emit('event');
++++                 * // Prints:
++++                 * //   A
++++                 * ```
++++                 *
++++                 * Because listeners are managed using an internal array, calling this will
++++                 * change the position indices of any listener registered _after_ the listener
++++                 * being removed. This will not impact the order in which listeners are called,
++++                 * but it means that any copies of the listener array as returned by
++++                 * the `emitter.listeners()` method will need to be recreated.
++++                 *
++++                 * When a single function has been added as a handler multiple times for a single
++++                 * event (as in the example below), `removeListener()` will remove the most
++++                 * recently added instance. In the example the `once('ping')` listener is removed:
++++                 *
++++                 * ```js
++++                 * import { EventEmitter } from 'node:events';
++++                 * const ee = new EventEmitter();
++++                 *
++++                 * function pong() {
++++                 *   console.log('pong');
++++                 * }
++++                 *
++++                 * ee.on('ping', pong);
++++                 * ee.once('ping', pong);
++++                 * ee.removeListener('ping', pong);
++++                 *
++++                 * ee.emit('ping');
++++                 * ee.emit('ping');
++++                 * ```
++++                 *
++++                 * Returns a reference to the `EventEmitter`, so that calls can be chained.
++++                 * @since v0.1.26
++++                 */
++++                removeListener<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
++++                /**
++++                 * Alias for `emitter.removeListener()`.
++++                 * @since v10.0.0
++++                 */
++++                off<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
++++                /**
++++                 * Removes all listeners, or those of the specified `eventName`.
++++                 *
++++                 * It is bad practice to remove listeners added elsewhere in the code,
++++                 * particularly when the `EventEmitter` instance was created by some other
++++                 * component or module (e.g. sockets or file streams).
++++                 *
++++                 * Returns a reference to the `EventEmitter`, so that calls can be chained.
++++                 * @since v0.1.26
++++                 */
++++                removeAllListeners(eventName?: Key<unknown, T>): this;
++++                /**
++++                 * By default `EventEmitter`s will print a warning if more than `10` listeners are
++++                 * added for a particular event. This is a useful default that helps finding
++++                 * memory leaks. The `emitter.setMaxListeners()` method allows the limit to be
++++                 * modified for this specific `EventEmitter` instance. The value can be set to `Infinity` (or `0`) to indicate an unlimited number of listeners.
++++                 *
++++                 * Returns a reference to the `EventEmitter`, so that calls can be chained.
++++                 * @since v0.3.5
++++                 */
++++                setMaxListeners(n: number): this;
++++                /**
++++                 * Returns the current max listener value for the `EventEmitter` which is either
++++                 * set by `emitter.setMaxListeners(n)` or defaults to {@link defaultMaxListeners}.
++++                 * @since v1.0.0
++++                 */
++++                getMaxListeners(): number;
++++                /**
++++                 * Returns a copy of the array of listeners for the event named `eventName`.
++++                 *
++++                 * ```js
++++                 * server.on('connection', (stream) => {
++++                 *   console.log('someone connected!');
++++                 * });
++++                 * console.log(util.inspect(server.listeners('connection')));
++++                 * // Prints: [ [Function] ]
++++                 * ```
++++                 * @since v0.1.26
++++                 */
++++                listeners<K>(eventName: Key<K, T>): Array<Listener2<K, T>>;
++++                /**
++++                 * Returns a copy of the array of listeners for the event named `eventName`,
++++                 * including any wrappers (such as those created by `.once()`).
++++                 *
++++                 * ```js
++++                 * import { EventEmitter } from 'node:events';
++++                 * const emitter = new EventEmitter();
++++                 * emitter.once('log', () => console.log('log once'));
++++                 *
++++                 * // Returns a new Array with a function `onceWrapper` which has a property
++++                 * // `listener` which contains the original listener bound above
++++                 * const listeners = emitter.rawListeners('log');
++++                 * const logFnWrapper = listeners[0];
++++                 *
++++                 * // Logs "log once" to the console and does not unbind the `once` event
++++                 * logFnWrapper.listener();
++++                 *
++++                 * // Logs "log once" to the console and removes the listener
++++                 * logFnWrapper();
++++                 *
++++                 * emitter.on('log', () => console.log('log persistently'));
++++                 * // Will return a new Array with a single function bound by `.on()` above
++++                 * const newListeners = emitter.rawListeners('log');
++++                 *
++++                 * // Logs "log persistently" twice
++++                 * newListeners[0]();
++++                 * emitter.emit('log');
++++                 * ```
++++                 * @since v9.4.0
++++                 */
++++                rawListeners<K>(eventName: Key<K, T>): Array<Listener2<K, T>>;
++++                /**
++++                 * Synchronously calls each of the listeners registered for the event named `eventName`, in the order they were registered, passing the supplied arguments
++++                 * to each.
++++                 *
++++                 * Returns `true` if the event had listeners, `false` otherwise.
++++                 *
++++                 * ```js
++++                 * import { EventEmitter } from 'node:events';
++++                 * const myEmitter = new EventEmitter();
++++                 *
++++                 * // First listener
++++                 * myEmitter.on('event', function firstListener() {
++++                 *   console.log('Helloooo! first listener');
++++                 * });
++++                 * // Second listener
++++                 * myEmitter.on('event', function secondListener(arg1, arg2) {
++++                 *   console.log(`event with parameters ${arg1}, ${arg2} in second listener`);
++++                 * });
++++                 * // Third listener
++++                 * myEmitter.on('event', function thirdListener(...args) {
++++                 *   const parameters = args.join(', ');
++++                 *   console.log(`event with parameters ${parameters} in third listener`);
++++                 * });
++++                 *
++++                 * console.log(myEmitter.listeners('event'));
++++                 *
++++                 * myEmitter.emit('event', 1, 2, 3, 4, 5);
++++                 *
++++                 * // Prints:
++++                 * // [
++++                 * //   [Function: firstListener],
++++                 * //   [Function: secondListener],
++++                 * //   [Function: thirdListener]
++++                 * // ]
++++                 * // Helloooo! first listener
++++                 * // event with parameters 1, 2 in second listener
++++                 * // event with parameters 1, 2, 3, 4, 5 in third listener
++++                 * ```
++++                 * @since v0.1.26
++++                 */
++++                emit<K>(eventName: Key<K, T>, ...args: Args<K, T>): boolean;
++++                /**
++++                 * Returns the number of listeners listening for the event named `eventName`.
++++                 * If `listener` is provided, it will return how many times the listener is found
++++                 * in the list of the listeners of the event.
++++                 * @since v3.2.0
++++                 * @param eventName The name of the event being listened for
++++                 * @param listener The event handler function
++++                 */
++++                listenerCount<K>(eventName: Key<K, T>, listener?: Listener2<K, T>): number;
++++                /**
++++                 * Adds the `listener` function to the _beginning_ of the listeners array for the
++++                 * event named `eventName`. No checks are made to see if the `listener` has
++++                 * already been added. Multiple calls passing the same combination of `eventName`
++++                 * and `listener` will result in the `listener` being added, and called, multiple times.
++++                 *
++++                 * ```js
++++                 * server.prependListener('connection', (stream) => {
++++                 *   console.log('someone connected!');
++++                 * });
++++                 * ```
++++                 *
++++                 * Returns a reference to the `EventEmitter`, so that calls can be chained.
++++                 * @since v6.0.0
++++                 * @param eventName The name of the event.
++++                 * @param listener The callback function
++++                 */
++++                prependListener<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
++++                /**
++++                 * Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this
++++                 * listener is removed, and then invoked.
++++                 *
++++                 * ```js
++++                 * server.prependOnceListener('connection', (stream) => {
++++                 *   console.log('Ah, we have our first user!');
++++                 * });
++++                 * ```
++++                 *
++++                 * Returns a reference to the `EventEmitter`, so that calls can be chained.
++++                 * @since v6.0.0
++++                 * @param eventName The name of the event.
++++                 * @param listener The callback function
++++                 */
++++                prependOnceListener<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
++++                /**
++++                 * Returns an array listing the events for which the emitter has registered
++++                 * listeners. The values in the array are strings or `Symbol`s.
++++                 *
++++                 * ```js
++++                 * import { EventEmitter } from 'node:events';
++++                 *
++++                 * const myEE = new EventEmitter();
++++                 * myEE.on('foo', () => {});
++++                 * myEE.on('bar', () => {});
++++                 *
++++                 * const sym = Symbol('symbol');
++++                 * myEE.on(sym, () => {});
++++                 *
++++                 * console.log(myEE.eventNames());
++++                 * // Prints: [ 'foo', 'bar', Symbol(symbol) ]
++++                 * ```
++++                 * @since v6.0.0
++++                 */
++++                eventNames(): Array<(string | symbol) & Key2<unknown, T>>;
++++            }
++++        }
++++    }
++++    export = EventEmitter;
++++}
++++declare module "node:events" {
++++    import events = require("events");
++++    export = events;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f5390d1d1331c71e7e97549f04dbd53f10d07183
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,4317 @@@@@
++++/**
++++ * The `node:fs` module enables interacting with the file system in a
++++ * way modeled on standard POSIX functions.
++++ *
++++ * To use the promise-based APIs:
++++ *
++++ * ```js
++++ * import * as fs from 'node:fs/promises';
++++ * ```
++++ *
++++ * To use the callback and sync APIs:
++++ *
++++ * ```js
++++ * import * as fs from 'node:fs';
++++ * ```
++++ *
++++ * All file system operations have synchronous, callback, and promise-based
++++ * forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM).
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/fs.js)
++++ */
++++declare module "fs" {
++++    import * as stream from "node:stream";
++++    import { Abortable, EventEmitter } from "node:events";
++++    import { URL } from "node:url";
++++    import * as promises from "node:fs/promises";
++++    export { promises };
++++    /**
++++     * Valid types for path values in "fs".
++++     */
++++    export type PathLike = string | Buffer | URL;
++++    export type PathOrFileDescriptor = PathLike | number;
++++    export type TimeLike = string | number | Date;
++++    export type NoParamCallback = (err: NodeJS.ErrnoException | null) => void;
++++    export type BufferEncodingOption =
++++        | "buffer"
++++        | {
++++            encoding: "buffer";
++++        };
++++    export interface ObjectEncodingOptions {
++++        encoding?: BufferEncoding | null | undefined;
++++    }
++++    export type EncodingOption = ObjectEncodingOptions | BufferEncoding | undefined | null;
++++    export type OpenMode = number | string;
++++    export type Mode = number | string;
++++    export interface StatsBase<T> {
++++        isFile(): boolean;
++++        isDirectory(): boolean;
++++        isBlockDevice(): boolean;
++++        isCharacterDevice(): boolean;
++++        isSymbolicLink(): boolean;
++++        isFIFO(): boolean;
++++        isSocket(): boolean;
++++        dev: T;
++++        ino: T;
++++        mode: T;
++++        nlink: T;
++++        uid: T;
++++        gid: T;
++++        rdev: T;
++++        size: T;
++++        blksize: T;
++++        blocks: T;
++++        atimeMs: T;
++++        mtimeMs: T;
++++        ctimeMs: T;
++++        birthtimeMs: T;
++++        atime: Date;
++++        mtime: Date;
++++        ctime: Date;
++++        birthtime: Date;
++++    }
++++    export interface Stats extends StatsBase<number> {}
++++    /**
++++     * A `fs.Stats` object provides information about a file.
++++     *
++++     * Objects returned from {@link stat}, {@link lstat}, {@link fstat}, and
++++     * their synchronous counterparts are of this type.
++++     * If `bigint` in the `options` passed to those methods is true, the numeric values
++++     * will be `bigint` instead of `number`, and the object will contain additional
++++     * nanosecond-precision properties suffixed with `Ns`. `Stat` objects are not to be created directly using the `new` keyword.
++++     *
++++     * ```console
++++     * Stats {
++++     *   dev: 2114,
++++     *   ino: 48064969,
++++     *   mode: 33188,
++++     *   nlink: 1,
++++     *   uid: 85,
++++     *   gid: 100,
++++     *   rdev: 0,
++++     *   size: 527,
++++     *   blksize: 4096,
++++     *   blocks: 8,
++++     *   atimeMs: 1318289051000.1,
++++     *   mtimeMs: 1318289051000.1,
++++     *   ctimeMs: 1318289051000.1,
++++     *   birthtimeMs: 1318289051000.1,
++++     *   atime: Mon, 10 Oct 2011 23:24:11 GMT,
++++     *   mtime: Mon, 10 Oct 2011 23:24:11 GMT,
++++     *   ctime: Mon, 10 Oct 2011 23:24:11 GMT,
++++     *   birthtime: Mon, 10 Oct 2011 23:24:11 GMT }
++++     * ```
++++     *
++++     * `bigint` version:
++++     *
++++     * ```console
++++     * BigIntStats {
++++     *   dev: 2114n,
++++     *   ino: 48064969n,
++++     *   mode: 33188n,
++++     *   nlink: 1n,
++++     *   uid: 85n,
++++     *   gid: 100n,
++++     *   rdev: 0n,
++++     *   size: 527n,
++++     *   blksize: 4096n,
++++     *   blocks: 8n,
++++     *   atimeMs: 1318289051000n,
++++     *   mtimeMs: 1318289051000n,
++++     *   ctimeMs: 1318289051000n,
++++     *   birthtimeMs: 1318289051000n,
++++     *   atimeNs: 1318289051000000000n,
++++     *   mtimeNs: 1318289051000000000n,
++++     *   ctimeNs: 1318289051000000000n,
++++     *   birthtimeNs: 1318289051000000000n,
++++     *   atime: Mon, 10 Oct 2011 23:24:11 GMT,
++++     *   mtime: Mon, 10 Oct 2011 23:24:11 GMT,
++++     *   ctime: Mon, 10 Oct 2011 23:24:11 GMT,
++++     *   birthtime: Mon, 10 Oct 2011 23:24:11 GMT }
++++     * ```
++++     * @since v0.1.21
++++     */
++++    export class Stats {}
++++    export interface StatsFsBase<T> {
++++        /** Type of file system. */
++++        type: T;
++++        /**  Optimal transfer block size. */
++++        bsize: T;
++++        /**  Total data blocks in file system. */
++++        blocks: T;
++++        /** Free blocks in file system. */
++++        bfree: T;
++++        /** Available blocks for unprivileged users */
++++        bavail: T;
++++        /** Total file nodes in file system. */
++++        files: T;
++++        /** Free file nodes in file system. */
++++        ffree: T;
++++    }
++++    export interface StatsFs extends StatsFsBase<number> {}
++++    /**
++++     * Provides information about a mounted file system.
++++     *
++++     * Objects returned from {@link statfs} and its synchronous counterpart are of
++++     * this type. If `bigint` in the `options` passed to those methods is `true`, the
++++     * numeric values will be `bigint` instead of `number`.
++++     *
++++     * ```console
++++     * StatFs {
++++     *   type: 1397114950,
++++     *   bsize: 4096,
++++     *   blocks: 121938943,
++++     *   bfree: 61058895,
++++     *   bavail: 61058895,
++++     *   files: 999,
++++     *   ffree: 1000000
++++     * }
++++     * ```
++++     *
++++     * `bigint` version:
++++     *
++++     * ```console
++++     * StatFs {
++++     *   type: 1397114950n,
++++     *   bsize: 4096n,
++++     *   blocks: 121938943n,
++++     *   bfree: 61058895n,
++++     *   bavail: 61058895n,
++++     *   files: 999n,
++++     *   ffree: 1000000n
++++     * }
++++     * ```
++++     * @since v19.6.0, v18.15.0
++++     */
++++    export class StatsFs {}
++++    export interface BigIntStatsFs extends StatsFsBase<bigint> {}
++++    export interface StatFsOptions {
++++        bigint?: boolean | undefined;
++++    }
++++    /**
++++     * A representation of a directory entry, which can be a file or a subdirectory
++++     * within the directory, as returned by reading from an `fs.Dir`. The
++++     * directory entry is a combination of the file name and file type pairs.
++++     *
++++     * Additionally, when {@link readdir} or {@link readdirSync} is called with
++++     * the `withFileTypes` option set to `true`, the resulting array is filled with `fs.Dirent` objects, rather than strings or `Buffer` s.
++++     * @since v10.10.0
++++     */
++++    export class Dirent {
++++        /**
++++         * Returns `true` if the `fs.Dirent` object describes a regular file.
++++         * @since v10.10.0
++++         */
++++        isFile(): boolean;
++++        /**
++++         * Returns `true` if the `fs.Dirent` object describes a file system
++++         * directory.
++++         * @since v10.10.0
++++         */
++++        isDirectory(): boolean;
++++        /**
++++         * Returns `true` if the `fs.Dirent` object describes a block device.
++++         * @since v10.10.0
++++         */
++++        isBlockDevice(): boolean;
++++        /**
++++         * Returns `true` if the `fs.Dirent` object describes a character device.
++++         * @since v10.10.0
++++         */
++++        isCharacterDevice(): boolean;
++++        /**
++++         * Returns `true` if the `fs.Dirent` object describes a symbolic link.
++++         * @since v10.10.0
++++         */
++++        isSymbolicLink(): boolean;
++++        /**
++++         * Returns `true` if the `fs.Dirent` object describes a first-in-first-out
++++         * (FIFO) pipe.
++++         * @since v10.10.0
++++         */
++++        isFIFO(): boolean;
++++        /**
++++         * Returns `true` if the `fs.Dirent` object describes a socket.
++++         * @since v10.10.0
++++         */
++++        isSocket(): boolean;
++++        /**
++++         * The file name that this `fs.Dirent` object refers to. The type of this
++++         * value is determined by the `options.encoding` passed to {@link readdir} or {@link readdirSync}.
++++         * @since v10.10.0
++++         */
++++        name: string;
++++        /**
++++         * The base path that this `fs.Dirent` object refers to.
++++         * @since v20.12.0
++++         */
++++        parentPath: string;
++++        /**
++++         * Alias for `dirent.parentPath`.
++++         * @since v20.1.0
++++         * @deprecated Since v20.12.0
++++         */
++++        path: string;
++++    }
++++    /**
++++     * A class representing a directory stream.
++++     *
++++     * Created by {@link opendir}, {@link opendirSync}, or `fsPromises.opendir()`.
++++     *
++++     * ```js
++++     * import { opendir } from 'node:fs/promises';
++++     *
++++     * try {
++++     *   const dir = await opendir('./');
++++     *   for await (const dirent of dir)
++++     *     console.log(dirent.name);
++++     * } catch (err) {
++++     *   console.error(err);
++++     * }
++++     * ```
++++     *
++++     * When using the async iterator, the `fs.Dir` object will be automatically
++++     * closed after the iterator exits.
++++     * @since v12.12.0
++++     */
++++    export class Dir implements AsyncIterable<Dirent> {
++++        /**
++++         * The read-only path of this directory as was provided to {@link opendir},{@link opendirSync}, or `fsPromises.opendir()`.
++++         * @since v12.12.0
++++         */
++++        readonly path: string;
++++        /**
++++         * Asynchronously iterates over the directory via `readdir(3)` until all entries have been read.
++++         */
++++        [Symbol.asyncIterator](): NodeJS.AsyncIterator<Dirent>;
++++        /**
++++         * Asynchronously close the directory's underlying resource handle.
++++         * Subsequent reads will result in errors.
++++         *
++++         * A promise is returned that will be fulfilled after the resource has been
++++         * closed.
++++         * @since v12.12.0
++++         */
++++        close(): Promise<void>;
++++        close(cb: NoParamCallback): void;
++++        /**
++++         * Synchronously close the directory's underlying resource handle.
++++         * Subsequent reads will result in errors.
++++         * @since v12.12.0
++++         */
++++        closeSync(): void;
++++        /**
++++         * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`.
++++         *
++++         * A promise is returned that will be fulfilled with an `fs.Dirent`, or `null` if there are no more directory entries to read.
++++         *
++++         * Directory entries returned by this function are in no particular order as
++++         * provided by the operating system's underlying directory mechanisms.
++++         * Entries added or removed while iterating over the directory might not be
++++         * included in the iteration results.
++++         * @since v12.12.0
++++         * @return containing {fs.Dirent|null}
++++         */
++++        read(): Promise<Dirent | null>;
++++        read(cb: (err: NodeJS.ErrnoException | null, dirEnt: Dirent | null) => void): void;
++++        /**
++++         * Synchronously read the next directory entry as an `fs.Dirent`. See the
++++         * POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more detail.
++++         *
++++         * If there are no more directory entries to read, `null` will be returned.
++++         *
++++         * Directory entries returned by this function are in no particular order as
++++         * provided by the operating system's underlying directory mechanisms.
++++         * Entries added or removed while iterating over the directory might not be
++++         * included in the iteration results.
++++         * @since v12.12.0
++++         */
++++        readSync(): Dirent | null;
++++    }
++++    /**
++++     * Class: fs.StatWatcher
++++     * @since v14.3.0, v12.20.0
++++     * Extends `EventEmitter`
++++     * A successful call to {@link watchFile} method will return a new fs.StatWatcher object.
++++     */
++++    export interface StatWatcher extends EventEmitter {
++++        /**
++++         * When called, requests that the Node.js event loop _not_ exit so long as the `fs.StatWatcher` is active. Calling `watcher.ref()` multiple times will have
++++         * no effect.
++++         *
++++         * By default, all `fs.StatWatcher` objects are "ref'ed", making it normally
++++         * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been
++++         * called previously.
++++         * @since v14.3.0, v12.20.0
++++         */
++++        ref(): this;
++++        /**
++++         * When called, the active `fs.StatWatcher` object will not require the Node.js
++++         * event loop to remain active. If there is no other activity keeping the
++++         * event loop running, the process may exit before the `fs.StatWatcher` object's
++++         * callback is invoked. Calling `watcher.unref()` multiple times will have
++++         * no effect.
++++         * @since v14.3.0, v12.20.0
++++         */
++++        unref(): this;
++++    }
++++    export interface FSWatcher extends EventEmitter {
++++        /**
++++         * Stop watching for changes on the given `fs.FSWatcher`. Once stopped, the `fs.FSWatcher` object is no longer usable.
++++         * @since v0.5.8
++++         */
++++        close(): void;
++++        /**
++++         * When called, requests that the Node.js event loop _not_ exit so long as the `fs.FSWatcher` is active. Calling `watcher.ref()` multiple times will have
++++         * no effect.
++++         *
++++         * By default, all `fs.FSWatcher` objects are "ref'ed", making it normally
++++         * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been
++++         * called previously.
++++         * @since v14.3.0, v12.20.0
++++         */
++++        ref(): this;
++++        /**
++++         * When called, the active `fs.FSWatcher` object will not require the Node.js
++++         * event loop to remain active. If there is no other activity keeping the
++++         * event loop running, the process may exit before the `fs.FSWatcher` object's
++++         * callback is invoked. Calling `watcher.unref()` multiple times will have
++++         * no effect.
++++         * @since v14.3.0, v12.20.0
++++         */
++++        unref(): this;
++++        /**
++++         * events.EventEmitter
++++         *   1. change
++++         *   2. close
++++         *   3. error
++++         */
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "error", listener: (error: Error) => void): this;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "error", listener: (error: Error) => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "error", listener: (error: Error) => void): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "error", listener: (error: Error) => void): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "error", listener: (error: Error) => void): this;
++++    }
++++    /**
++++     * Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function.
++++     * @since v0.1.93
++++     */
++++    export class ReadStream extends stream.Readable {
++++        close(callback?: (err?: NodeJS.ErrnoException | null) => void): void;
++++        /**
++++         * The number of bytes that have been read so far.
++++         * @since v6.4.0
++++         */
++++        bytesRead: number;
++++        /**
++++         * The path to the file the stream is reading from as specified in the first
++++         * argument to `fs.createReadStream()`. If `path` is passed as a string, then`readStream.path` will be a string. If `path` is passed as a `Buffer`, then`readStream.path` will be a
++++         * `Buffer`. If `fd` is specified, then`readStream.path` will be `undefined`.
++++         * @since v0.1.93
++++         */
++++        path: string | Buffer;
++++        /**
++++         * This property is `true` if the underlying file has not been opened yet,
++++         * i.e. before the `'ready'` event is emitted.
++++         * @since v11.2.0, v10.16.0
++++         */
++++        pending: boolean;
++++        /**
++++         * events.EventEmitter
++++         *   1. open
++++         *   2. close
++++         *   3. ready
++++         */
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "data", listener: (chunk: Buffer | string) => void): this;
++++        addListener(event: "end", listener: () => void): this;
++++        addListener(event: "error", listener: (err: Error) => void): this;
++++        addListener(event: "open", listener: (fd: number) => void): this;
++++        addListener(event: "pause", listener: () => void): this;
++++        addListener(event: "readable", listener: () => void): this;
++++        addListener(event: "ready", listener: () => void): this;
++++        addListener(event: "resume", listener: () => void): this;
++++        addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "data", listener: (chunk: Buffer | string) => void): this;
++++        on(event: "end", listener: () => void): this;
++++        on(event: "error", listener: (err: Error) => void): this;
++++        on(event: "open", listener: (fd: number) => void): this;
++++        on(event: "pause", listener: () => void): this;
++++        on(event: "readable", listener: () => void): this;
++++        on(event: "ready", listener: () => void): this;
++++        on(event: "resume", listener: () => void): this;
++++        on(event: string | symbol, listener: (...args: any[]) => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "data", listener: (chunk: Buffer | string) => void): this;
++++        once(event: "end", listener: () => void): this;
++++        once(event: "error", listener: (err: Error) => void): this;
++++        once(event: "open", listener: (fd: number) => void): this;
++++        once(event: "pause", listener: () => void): this;
++++        once(event: "readable", listener: () => void): this;
++++        once(event: "ready", listener: () => void): this;
++++        once(event: "resume", listener: () => void): this;
++++        once(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "data", listener: (chunk: Buffer | string) => void): this;
++++        prependListener(event: "end", listener: () => void): this;
++++        prependListener(event: "error", listener: (err: Error) => void): this;
++++        prependListener(event: "open", listener: (fd: number) => void): this;
++++        prependListener(event: "pause", listener: () => void): this;
++++        prependListener(event: "readable", listener: () => void): this;
++++        prependListener(event: "ready", listener: () => void): this;
++++        prependListener(event: "resume", listener: () => void): this;
++++        prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "data", listener: (chunk: Buffer | string) => void): this;
++++        prependOnceListener(event: "end", listener: () => void): this;
++++        prependOnceListener(event: "error", listener: (err: Error) => void): this;
++++        prependOnceListener(event: "open", listener: (fd: number) => void): this;
++++        prependOnceListener(event: "pause", listener: () => void): this;
++++        prependOnceListener(event: "readable", listener: () => void): this;
++++        prependOnceListener(event: "ready", listener: () => void): this;
++++        prependOnceListener(event: "resume", listener: () => void): this;
++++        prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++    }
++++    /**
++++     * * Extends `stream.Writable`
++++     *
++++     * Instances of `fs.WriteStream` are created and returned using the {@link createWriteStream} function.
++++     * @since v0.1.93
++++     */
++++    export class WriteStream extends stream.Writable {
++++        /**
++++         * Closes `writeStream`. Optionally accepts a
++++         * callback that will be executed once the `writeStream`is closed.
++++         * @since v0.9.4
++++         */
++++        close(callback?: (err?: NodeJS.ErrnoException | null) => void): void;
++++        /**
++++         * The number of bytes written so far. Does not include data that is still queued
++++         * for writing.
++++         * @since v0.4.7
++++         */
++++        bytesWritten: number;
++++        /**
++++         * The path to the file the stream is writing to as specified in the first
++++         * argument to {@link createWriteStream}. If `path` is passed as a string, then`writeStream.path` will be a string. If `path` is passed as a `Buffer`, then`writeStream.path` will be a
++++         * `Buffer`.
++++         * @since v0.1.93
++++         */
++++        path: string | Buffer;
++++        /**
++++         * This property is `true` if the underlying file has not been opened yet,
++++         * i.e. before the `'ready'` event is emitted.
++++         * @since v11.2.0
++++         */
++++        pending: boolean;
++++        /**
++++         * events.EventEmitter
++++         *   1. open
++++         *   2. close
++++         *   3. ready
++++         */
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "drain", listener: () => void): this;
++++        addListener(event: "error", listener: (err: Error) => void): this;
++++        addListener(event: "finish", listener: () => void): this;
++++        addListener(event: "open", listener: (fd: number) => void): this;
++++        addListener(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        addListener(event: "ready", listener: () => void): this;
++++        addListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "drain", listener: () => void): this;
++++        on(event: "error", listener: (err: Error) => void): this;
++++        on(event: "finish", listener: () => void): this;
++++        on(event: "open", listener: (fd: number) => void): this;
++++        on(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        on(event: "ready", listener: () => void): this;
++++        on(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        on(event: string | symbol, listener: (...args: any[]) => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "drain", listener: () => void): this;
++++        once(event: "error", listener: (err: Error) => void): this;
++++        once(event: "finish", listener: () => void): this;
++++        once(event: "open", listener: (fd: number) => void): this;
++++        once(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        once(event: "ready", listener: () => void): this;
++++        once(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        once(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "drain", listener: () => void): this;
++++        prependListener(event: "error", listener: (err: Error) => void): this;
++++        prependListener(event: "finish", listener: () => void): this;
++++        prependListener(event: "open", listener: (fd: number) => void): this;
++++        prependListener(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        prependListener(event: "ready", listener: () => void): this;
++++        prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "drain", listener: () => void): this;
++++        prependOnceListener(event: "error", listener: (err: Error) => void): this;
++++        prependOnceListener(event: "finish", listener: () => void): this;
++++        prependOnceListener(event: "open", listener: (fd: number) => void): this;
++++        prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        prependOnceListener(event: "ready", listener: () => void): this;
++++        prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++    }
++++    /**
++++     * Asynchronously rename file at `oldPath` to the pathname provided
++++     * as `newPath`. In the case that `newPath` already exists, it will
++++     * be overwritten. If there is a directory at `newPath`, an error will
++++     * be raised instead. No arguments other than a possible exception are
++++     * given to the completion callback.
++++     *
++++     * See also: [`rename(2)`](http://man7.org/linux/man-pages/man2/rename.2.html).
++++     *
++++     * ```js
++++     * import { rename } from 'node:fs';
++++     *
++++     * rename('oldFile.txt', 'newFile.txt', (err) => {
++++     *   if (err) throw err;
++++     *   console.log('Rename complete!');
++++     * });
++++     * ```
++++     * @since v0.0.2
++++     */
++++    export function rename(oldPath: PathLike, newPath: PathLike, callback: NoParamCallback): void;
++++    export namespace rename {
++++        /**
++++         * Asynchronous rename(2) - Change the name or location of a file or directory.
++++         * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * URL support is _experimental_.
++++         * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * URL support is _experimental_.
++++         */
++++        function __promisify__(oldPath: PathLike, newPath: PathLike): Promise<void>;
++++    }
++++    /**
++++     * Renames the file from `oldPath` to `newPath`. Returns `undefined`.
++++     *
++++     * See the POSIX [`rename(2)`](http://man7.org/linux/man-pages/man2/rename.2.html) documentation for more details.
++++     * @since v0.1.21
++++     */
++++    export function renameSync(oldPath: PathLike, newPath: PathLike): void;
++++    /**
++++     * Truncates the file. No arguments other than a possible exception are
++++     * given to the completion callback. A file descriptor can also be passed as the
++++     * first argument. In this case, `fs.ftruncate()` is called.
++++     *
++++     * ```js
++++     * import { truncate } from 'node:fs';
++++     * // Assuming that 'path/file.txt' is a regular file.
++++     * truncate('path/file.txt', (err) => {
++++     *   if (err) throw err;
++++     *   console.log('path/file.txt was truncated');
++++     * });
++++     * ```
++++     *
++++     * Passing a file descriptor is deprecated and may result in an error being thrown
++++     * in the future.
++++     *
++++     * See the POSIX [`truncate(2)`](http://man7.org/linux/man-pages/man2/truncate.2.html) documentation for more details.
++++     * @since v0.8.6
++++     * @param [len=0]
++++     */
++++    export function truncate(path: PathLike, len: number | undefined | null, callback: NoParamCallback): void;
++++    /**
++++     * Asynchronous truncate(2) - Truncate a file to a specified length.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     */
++++    export function truncate(path: PathLike, callback: NoParamCallback): void;
++++    export namespace truncate {
++++        /**
++++         * Asynchronous truncate(2) - Truncate a file to a specified length.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param len If not specified, defaults to `0`.
++++         */
++++        function __promisify__(path: PathLike, len?: number | null): Promise<void>;
++++    }
++++    /**
++++     * Truncates the file. Returns `undefined`. A file descriptor can also be
++++     * passed as the first argument. In this case, `fs.ftruncateSync()` is called.
++++     *
++++     * Passing a file descriptor is deprecated and may result in an error being thrown
++++     * in the future.
++++     * @since v0.8.6
++++     * @param [len=0]
++++     */
++++    export function truncateSync(path: PathLike, len?: number | null): void;
++++    /**
++++     * Truncates the file descriptor. No arguments other than a possible exception are
++++     * given to the completion callback.
++++     *
++++     * See the POSIX [`ftruncate(2)`](http://man7.org/linux/man-pages/man2/ftruncate.2.html) documentation for more detail.
++++     *
++++     * If the file referred to by the file descriptor was larger than `len` bytes, only
++++     * the first `len` bytes will be retained in the file.
++++     *
++++     * For example, the following program retains only the first four bytes of the
++++     * file:
++++     *
++++     * ```js
++++     * import { open, close, ftruncate } from 'node:fs';
++++     *
++++     * function closeFd(fd) {
++++     *   close(fd, (err) => {
++++     *     if (err) throw err;
++++     *   });
++++     * }
++++     *
++++     * open('temp.txt', 'r+', (err, fd) => {
++++     *   if (err) throw err;
++++     *
++++     *   try {
++++     *     ftruncate(fd, 4, (err) => {
++++     *       closeFd(fd);
++++     *       if (err) throw err;
++++     *     });
++++     *   } catch (err) {
++++     *     closeFd(fd);
++++     *     if (err) throw err;
++++     *   }
++++     * });
++++     * ```
++++     *
++++     * If the file previously was shorter than `len` bytes, it is extended, and the
++++     * extended part is filled with null bytes (`'\0'`):
++++     *
++++     * If `len` is negative then `0` will be used.
++++     * @since v0.8.6
++++     * @param [len=0]
++++     */
++++    export function ftruncate(fd: number, len: number | undefined | null, callback: NoParamCallback): void;
++++    /**
++++     * Asynchronous ftruncate(2) - Truncate a file to a specified length.
++++     * @param fd A file descriptor.
++++     */
++++    export function ftruncate(fd: number, callback: NoParamCallback): void;
++++    export namespace ftruncate {
++++        /**
++++         * Asynchronous ftruncate(2) - Truncate a file to a specified length.
++++         * @param fd A file descriptor.
++++         * @param len If not specified, defaults to `0`.
++++         */
++++        function __promisify__(fd: number, len?: number | null): Promise<void>;
++++    }
++++    /**
++++     * Truncates the file descriptor. Returns `undefined`.
++++     *
++++     * For detailed information, see the documentation of the asynchronous version of
++++     * this API: {@link ftruncate}.
++++     * @since v0.8.6
++++     * @param [len=0]
++++     */
++++    export function ftruncateSync(fd: number, len?: number | null): void;
++++    /**
++++     * Asynchronously changes owner and group of a file. No arguments other than a
++++     * possible exception are given to the completion callback.
++++     *
++++     * See the POSIX [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html) documentation for more detail.
++++     * @since v0.1.97
++++     */
++++    export function chown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void;
++++    export namespace chown {
++++        /**
++++         * Asynchronous chown(2) - Change ownership of a file.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         */
++++        function __promisify__(path: PathLike, uid: number, gid: number): Promise<void>;
++++    }
++++    /**
++++     * Synchronously changes owner and group of a file. Returns `undefined`.
++++     * This is the synchronous version of {@link chown}.
++++     *
++++     * See the POSIX [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html) documentation for more detail.
++++     * @since v0.1.97
++++     */
++++    export function chownSync(path: PathLike, uid: number, gid: number): void;
++++    /**
++++     * Sets the owner of the file. No arguments other than a possible exception are
++++     * given to the completion callback.
++++     *
++++     * See the POSIX [`fchown(2)`](http://man7.org/linux/man-pages/man2/fchown.2.html) documentation for more detail.
++++     * @since v0.4.7
++++     */
++++    export function fchown(fd: number, uid: number, gid: number, callback: NoParamCallback): void;
++++    export namespace fchown {
++++        /**
++++         * Asynchronous fchown(2) - Change ownership of a file.
++++         * @param fd A file descriptor.
++++         */
++++        function __promisify__(fd: number, uid: number, gid: number): Promise<void>;
++++    }
++++    /**
++++     * Sets the owner of the file. Returns `undefined`.
++++     *
++++     * See the POSIX [`fchown(2)`](http://man7.org/linux/man-pages/man2/fchown.2.html) documentation for more detail.
++++     * @since v0.4.7
++++     * @param uid The file's new owner's user id.
++++     * @param gid The file's new group's group id.
++++     */
++++    export function fchownSync(fd: number, uid: number, gid: number): void;
++++    /**
++++     * Set the owner of the symbolic link. No arguments other than a possible
++++     * exception are given to the completion callback.
++++     *
++++     * See the POSIX [`lchown(2)`](http://man7.org/linux/man-pages/man2/lchown.2.html) documentation for more detail.
++++     */
++++    export function lchown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void;
++++    export namespace lchown {
++++        /**
++++         * Asynchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         */
++++        function __promisify__(path: PathLike, uid: number, gid: number): Promise<void>;
++++    }
++++    /**
++++     * Set the owner for the path. Returns `undefined`.
++++     *
++++     * See the POSIX [`lchown(2)`](http://man7.org/linux/man-pages/man2/lchown.2.html) documentation for more details.
++++     * @param uid The file's new owner's user id.
++++     * @param gid The file's new group's group id.
++++     */
++++    export function lchownSync(path: PathLike, uid: number, gid: number): void;
++++    /**
++++     * Changes the access and modification times of a file in the same way as {@link utimes}, with the difference that if the path refers to a symbolic
++++     * link, then the link is not dereferenced: instead, the timestamps of the
++++     * symbolic link itself are changed.
++++     *
++++     * No arguments other than a possible exception are given to the completion
++++     * callback.
++++     * @since v14.5.0, v12.19.0
++++     */
++++    export function lutimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void;
++++    export namespace lutimes {
++++        /**
++++         * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`,
++++         * with the difference that if the path refers to a symbolic link, then the link is not
++++         * dereferenced: instead, the timestamps of the symbolic link itself are changed.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param atime The last access time. If a string is provided, it will be coerced to number.
++++         * @param mtime The last modified time. If a string is provided, it will be coerced to number.
++++         */
++++        function __promisify__(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise<void>;
++++    }
++++    /**
++++     * Change the file system timestamps of the symbolic link referenced by `path`.
++++     * Returns `undefined`, or throws an exception when parameters are incorrect or
++++     * the operation fails. This is the synchronous version of {@link lutimes}.
++++     * @since v14.5.0, v12.19.0
++++     */
++++    export function lutimesSync(path: PathLike, atime: TimeLike, mtime: TimeLike): void;
++++    /**
++++     * Asynchronously changes the permissions of a file. No arguments other than a
++++     * possible exception are given to the completion callback.
++++     *
++++     * See the POSIX [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html) documentation for more detail.
++++     *
++++     * ```js
++++     * import { chmod } from 'node:fs';
++++     *
++++     * chmod('my_file.txt', 0o775, (err) => {
++++     *   if (err) throw err;
++++     *   console.log('The permissions for file "my_file.txt" have been changed!');
++++     * });
++++     * ```
++++     * @since v0.1.30
++++     */
++++    export function chmod(path: PathLike, mode: Mode, callback: NoParamCallback): void;
++++    export namespace chmod {
++++        /**
++++         * Asynchronous chmod(2) - Change permissions of a file.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
++++         */
++++        function __promisify__(path: PathLike, mode: Mode): Promise<void>;
++++    }
++++    /**
++++     * For detailed information, see the documentation of the asynchronous version of
++++     * this API: {@link chmod}.
++++     *
++++     * See the POSIX [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html) documentation for more detail.
++++     * @since v0.6.7
++++     */
++++    export function chmodSync(path: PathLike, mode: Mode): void;
++++    /**
++++     * Sets the permissions on the file. No arguments other than a possible exception
++++     * are given to the completion callback.
++++     *
++++     * See the POSIX [`fchmod(2)`](http://man7.org/linux/man-pages/man2/fchmod.2.html) documentation for more detail.
++++     * @since v0.4.7
++++     */
++++    export function fchmod(fd: number, mode: Mode, callback: NoParamCallback): void;
++++    export namespace fchmod {
++++        /**
++++         * Asynchronous fchmod(2) - Change permissions of a file.
++++         * @param fd A file descriptor.
++++         * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
++++         */
++++        function __promisify__(fd: number, mode: Mode): Promise<void>;
++++    }
++++    /**
++++     * Sets the permissions on the file. Returns `undefined`.
++++     *
++++     * See the POSIX [`fchmod(2)`](http://man7.org/linux/man-pages/man2/fchmod.2.html) documentation for more detail.
++++     * @since v0.4.7
++++     */
++++    export function fchmodSync(fd: number, mode: Mode): void;
++++    /**
++++     * Changes the permissions on a symbolic link. No arguments other than a possible
++++     * exception are given to the completion callback.
++++     *
++++     * This method is only implemented on macOS.
++++     *
++++     * See the POSIX [`lchmod(2)`](https://www.freebsd.org/cgi/man.cgi?query=lchmod&sektion=2) documentation for more detail.
++++     * @deprecated Since v0.4.7
++++     */
++++    export function lchmod(path: PathLike, mode: Mode, callback: NoParamCallback): void;
++++    /** @deprecated */
++++    export namespace lchmod {
++++        /**
++++         * Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param mode A file mode. If a string is passed, it is parsed as an octal integer.
++++         */
++++        function __promisify__(path: PathLike, mode: Mode): Promise<void>;
++++    }
++++    /**
++++     * Changes the permissions on a symbolic link. Returns `undefined`.
++++     *
++++     * This method is only implemented on macOS.
++++     *
++++     * See the POSIX [`lchmod(2)`](https://www.freebsd.org/cgi/man.cgi?query=lchmod&sektion=2) documentation for more detail.
++++     * @deprecated Since v0.4.7
++++     */
++++    export function lchmodSync(path: PathLike, mode: Mode): void;
++++    /**
++++     * Asynchronous [`stat(2)`](http://man7.org/linux/man-pages/man2/stat.2.html). The callback gets two arguments `(err, stats)` where`stats` is an `fs.Stats` object.
++++     *
++++     * In case of an error, the `err.code` will be one of `Common System Errors`.
++++     *
++++     * {@link stat} follows symbolic links. Use {@link lstat} to look at the
++++     * links themselves.
++++     *
++++     * Using `fs.stat()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended.
++++     * Instead, user code should open/read/write the file directly and handle the
++++     * error raised if the file is not available.
++++     *
++++     * To check if a file exists without manipulating it afterwards, {@link access} is recommended.
++++     *
++++     * For example, given the following directory structure:
++++     *
++++     * ```text
++++     * - txtDir
++++     * -- file.txt
++++     * - app.js
++++     * ```
++++     *
++++     * The next program will check for the stats of the given paths:
++++     *
++++     * ```js
++++     * import { stat } from 'node:fs';
++++     *
++++     * const pathsToCheck = ['./txtDir', './txtDir/file.txt'];
++++     *
++++     * for (let i = 0; i < pathsToCheck.length; i++) {
++++     *   stat(pathsToCheck[i], (err, stats) => {
++++     *     console.log(stats.isDirectory());
++++     *     console.log(stats);
++++     *   });
++++     * }
++++     * ```
++++     *
++++     * The resulting output will resemble:
++++     *
++++     * ```console
++++     * true
++++     * Stats {
++++     *   dev: 16777220,
++++     *   mode: 16877,
++++     *   nlink: 3,
++++     *   uid: 501,
++++     *   gid: 20,
++++     *   rdev: 0,
++++     *   blksize: 4096,
++++     *   ino: 14214262,
++++     *   size: 96,
++++     *   blocks: 0,
++++     *   atimeMs: 1561174653071.963,
++++     *   mtimeMs: 1561174614583.3518,
++++     *   ctimeMs: 1561174626623.5366,
++++     *   birthtimeMs: 1561174126937.2893,
++++     *   atime: 2019-06-22T03:37:33.072Z,
++++     *   mtime: 2019-06-22T03:36:54.583Z,
++++     *   ctime: 2019-06-22T03:37:06.624Z,
++++     *   birthtime: 2019-06-22T03:28:46.937Z
++++     * }
++++     * false
++++     * Stats {
++++     *   dev: 16777220,
++++     *   mode: 33188,
++++     *   nlink: 1,
++++     *   uid: 501,
++++     *   gid: 20,
++++     *   rdev: 0,
++++     *   blksize: 4096,
++++     *   ino: 14214074,
++++     *   size: 8,
++++     *   blocks: 8,
++++     *   atimeMs: 1561174616618.8555,
++++     *   mtimeMs: 1561174614584,
++++     *   ctimeMs: 1561174614583.8145,
++++     *   birthtimeMs: 1561174007710.7478,
++++     *   atime: 2019-06-22T03:36:56.619Z,
++++     *   mtime: 2019-06-22T03:36:54.584Z,
++++     *   ctime: 2019-06-22T03:36:54.584Z,
++++     *   birthtime: 2019-06-22T03:26:47.711Z
++++     * }
++++     * ```
++++     * @since v0.0.2
++++     */
++++    export function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
++++    export function stat(
++++        path: PathLike,
++++        options:
++++            | (StatOptions & {
++++                bigint?: false | undefined;
++++            })
++++            | undefined,
++++        callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void,
++++    ): void;
++++    export function stat(
++++        path: PathLike,
++++        options: StatOptions & {
++++            bigint: true;
++++        },
++++        callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void,
++++    ): void;
++++    export function stat(
++++        path: PathLike,
++++        options: StatOptions | undefined,
++++        callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void,
++++    ): void;
++++    export namespace stat {
++++        /**
++++         * Asynchronous stat(2) - Get file status.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         */
++++        function __promisify__(
++++            path: PathLike,
++++            options?: StatOptions & {
++++                bigint?: false | undefined;
++++            },
++++        ): Promise<Stats>;
++++        function __promisify__(
++++            path: PathLike,
++++            options: StatOptions & {
++++                bigint: true;
++++            },
++++        ): Promise<BigIntStats>;
++++        function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
++++    }
++++    export interface StatSyncFn extends Function {
++++        (path: PathLike, options?: undefined): Stats;
++++        (
++++            path: PathLike,
++++            options?: StatSyncOptions & {
++++                bigint?: false | undefined;
++++                throwIfNoEntry: false;
++++            },
++++        ): Stats | undefined;
++++        (
++++            path: PathLike,
++++            options: StatSyncOptions & {
++++                bigint: true;
++++                throwIfNoEntry: false;
++++            },
++++        ): BigIntStats | undefined;
++++        (
++++            path: PathLike,
++++            options?: StatSyncOptions & {
++++                bigint?: false | undefined;
++++            },
++++        ): Stats;
++++        (
++++            path: PathLike,
++++            options: StatSyncOptions & {
++++                bigint: true;
++++            },
++++        ): BigIntStats;
++++        (
++++            path: PathLike,
++++            options: StatSyncOptions & {
++++                bigint: boolean;
++++                throwIfNoEntry?: false | undefined;
++++            },
++++        ): Stats | BigIntStats;
++++        (path: PathLike, options?: StatSyncOptions): Stats | BigIntStats | undefined;
++++    }
++++    /**
++++     * Synchronous stat(2) - Get file status.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     */
++++    export const statSync: StatSyncFn;
++++    /**
++++     * Invokes the callback with the `fs.Stats` for the file descriptor.
++++     *
++++     * See the POSIX [`fstat(2)`](http://man7.org/linux/man-pages/man2/fstat.2.html) documentation for more detail.
++++     * @since v0.1.95
++++     */
++++    export function fstat(fd: number, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
++++    export function fstat(
++++        fd: number,
++++        options:
++++            | (StatOptions & {
++++                bigint?: false | undefined;
++++            })
++++            | undefined,
++++        callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void,
++++    ): void;
++++    export function fstat(
++++        fd: number,
++++        options: StatOptions & {
++++            bigint: true;
++++        },
++++        callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void,
++++    ): void;
++++    export function fstat(
++++        fd: number,
++++        options: StatOptions | undefined,
++++        callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void,
++++    ): void;
++++    export namespace fstat {
++++        /**
++++         * Asynchronous fstat(2) - Get file status.
++++         * @param fd A file descriptor.
++++         */
++++        function __promisify__(
++++            fd: number,
++++            options?: StatOptions & {
++++                bigint?: false | undefined;
++++            },
++++        ): Promise<Stats>;
++++        function __promisify__(
++++            fd: number,
++++            options: StatOptions & {
++++                bigint: true;
++++            },
++++        ): Promise<BigIntStats>;
++++        function __promisify__(fd: number, options?: StatOptions): Promise<Stats | BigIntStats>;
++++    }
++++    /**
++++     * Retrieves the `fs.Stats` for the file descriptor.
++++     *
++++     * See the POSIX [`fstat(2)`](http://man7.org/linux/man-pages/man2/fstat.2.html) documentation for more detail.
++++     * @since v0.1.95
++++     */
++++    export function fstatSync(
++++        fd: number,
++++        options?: StatOptions & {
++++            bigint?: false | undefined;
++++        },
++++    ): Stats;
++++    export function fstatSync(
++++        fd: number,
++++        options: StatOptions & {
++++            bigint: true;
++++        },
++++    ): BigIntStats;
++++    export function fstatSync(fd: number, options?: StatOptions): Stats | BigIntStats;
++++    /**
++++     * Retrieves the `fs.Stats` for the symbolic link referred to by the path.
++++     * The callback gets two arguments `(err, stats)` where `stats` is a `fs.Stats` object. `lstat()` is identical to `stat()`, except that if `path` is a symbolic
++++     * link, then the link itself is stat-ed, not the file that it refers to.
++++     *
++++     * See the POSIX [`lstat(2)`](http://man7.org/linux/man-pages/man2/lstat.2.html) documentation for more details.
++++     * @since v0.1.30
++++     */
++++    export function lstat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
++++    export function lstat(
++++        path: PathLike,
++++        options:
++++            | (StatOptions & {
++++                bigint?: false | undefined;
++++            })
++++            | undefined,
++++        callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void,
++++    ): void;
++++    export function lstat(
++++        path: PathLike,
++++        options: StatOptions & {
++++            bigint: true;
++++        },
++++        callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void,
++++    ): void;
++++    export function lstat(
++++        path: PathLike,
++++        options: StatOptions | undefined,
++++        callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void,
++++    ): void;
++++    export namespace lstat {
++++        /**
++++         * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         */
++++        function __promisify__(
++++            path: PathLike,
++++            options?: StatOptions & {
++++                bigint?: false | undefined;
++++            },
++++        ): Promise<Stats>;
++++        function __promisify__(
++++            path: PathLike,
++++            options: StatOptions & {
++++                bigint: true;
++++            },
++++        ): Promise<BigIntStats>;
++++        function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
++++    }
++++    /**
++++     * Asynchronous [`statfs(2)`](http://man7.org/linux/man-pages/man2/statfs.2.html). Returns information about the mounted file system which
++++     * contains `path`. The callback gets two arguments `(err, stats)` where `stats`is an `fs.StatFs` object.
++++     *
++++     * In case of an error, the `err.code` will be one of `Common System Errors`.
++++     * @since v19.6.0, v18.15.0
++++     * @param path A path to an existing file or directory on the file system to be queried.
++++     */
++++    export function statfs(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void): void;
++++    export function statfs(
++++        path: PathLike,
++++        options:
++++            | (StatFsOptions & {
++++                bigint?: false | undefined;
++++            })
++++            | undefined,
++++        callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void,
++++    ): void;
++++    export function statfs(
++++        path: PathLike,
++++        options: StatFsOptions & {
++++            bigint: true;
++++        },
++++        callback: (err: NodeJS.ErrnoException | null, stats: BigIntStatsFs) => void,
++++    ): void;
++++    export function statfs(
++++        path: PathLike,
++++        options: StatFsOptions | undefined,
++++        callback: (err: NodeJS.ErrnoException | null, stats: StatsFs | BigIntStatsFs) => void,
++++    ): void;
++++    export namespace statfs {
++++        /**
++++         * Asynchronous statfs(2) - Returns information about the mounted file system which contains path. The callback gets two arguments (err, stats) where stats is an <fs.StatFs> object.
++++         * @param path A path to an existing file or directory on the file system to be queried.
++++         */
++++        function __promisify__(
++++            path: PathLike,
++++            options?: StatFsOptions & {
++++                bigint?: false | undefined;
++++            },
++++        ): Promise<StatsFs>;
++++        function __promisify__(
++++            path: PathLike,
++++            options: StatFsOptions & {
++++                bigint: true;
++++            },
++++        ): Promise<BigIntStatsFs>;
++++        function __promisify__(path: PathLike, options?: StatFsOptions): Promise<StatsFs | BigIntStatsFs>;
++++    }
++++    /**
++++     * Synchronous [`statfs(2)`](http://man7.org/linux/man-pages/man2/statfs.2.html). Returns information about the mounted file system which
++++     * contains `path`.
++++     *
++++     * In case of an error, the `err.code` will be one of `Common System Errors`.
++++     * @since v19.6.0, v18.15.0
++++     * @param path A path to an existing file or directory on the file system to be queried.
++++     */
++++    export function statfsSync(
++++        path: PathLike,
++++        options?: StatFsOptions & {
++++            bigint?: false | undefined;
++++        },
++++    ): StatsFs;
++++    export function statfsSync(
++++        path: PathLike,
++++        options: StatFsOptions & {
++++            bigint: true;
++++        },
++++    ): BigIntStatsFs;
++++    export function statfsSync(path: PathLike, options?: StatFsOptions): StatsFs | BigIntStatsFs;
++++    /**
++++     * Synchronous lstat(2) - Get file status. Does not dereference symbolic links.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     */
++++    export const lstatSync: StatSyncFn;
++++    /**
++++     * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. No arguments other than
++++     * a possible
++++     * exception are given to the completion callback.
++++     * @since v0.1.31
++++     */
++++    export function link(existingPath: PathLike, newPath: PathLike, callback: NoParamCallback): void;
++++    export namespace link {
++++        /**
++++         * Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file.
++++         * @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         */
++++        function __promisify__(existingPath: PathLike, newPath: PathLike): Promise<void>;
++++    }
++++    /**
++++     * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. Returns `undefined`.
++++     * @since v0.1.31
++++     */
++++    export function linkSync(existingPath: PathLike, newPath: PathLike): void;
++++    /**
++++     * Creates the link called `path` pointing to `target`. No arguments other than a
++++     * possible exception are given to the completion callback.
++++     *
++++     * See the POSIX [`symlink(2)`](http://man7.org/linux/man-pages/man2/symlink.2.html) documentation for more details.
++++     *
++++     * The `type` argument is only available on Windows and ignored on other platforms.
++++     * It can be set to `'dir'`, `'file'`, or `'junction'`. If the `type` argument is
++++     * not a string, Node.js will autodetect `target` type and use `'file'` or `'dir'`.
++++     * If the `target` does not exist, `'file'` will be used. Windows junction points
++++     * require the destination path to be absolute. When using `'junction'`, the`target` argument will automatically be normalized to absolute path. Junction
++++     * points on NTFS volumes can only point to directories.
++++     *
++++     * Relative targets are relative to the link's parent directory.
++++     *
++++     * ```js
++++     * import { symlink } from 'node:fs';
++++     *
++++     * symlink('./mew', './mewtwo', callback);
++++     * ```
++++     *
++++     * The above example creates a symbolic link `mewtwo` which points to `mew` in the
++++     * same directory:
++++     *
++++     * ```bash
++++     * $ tree .
++++     * .
++++     * ├── mew
++++     * └── mewtwo -> ./mew
++++     * ```
++++     * @since v0.1.31
++++     * @param [type='null']
++++     */
++++    export function symlink(
++++        target: PathLike,
++++        path: PathLike,
++++        type: symlink.Type | undefined | null,
++++        callback: NoParamCallback,
++++    ): void;
++++    /**
++++     * Asynchronous symlink(2) - Create a new symbolic link to an existing file.
++++     * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol.
++++     * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol.
++++     */
++++    export function symlink(target: PathLike, path: PathLike, callback: NoParamCallback): void;
++++    export namespace symlink {
++++        /**
++++         * Asynchronous symlink(2) - Create a new symbolic link to an existing file.
++++         * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol.
++++         * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol.
++++         * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms).
++++         * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
++++         */
++++        function __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise<void>;
++++        type Type = "dir" | "file" | "junction";
++++    }
++++    /**
++++     * Returns `undefined`.
++++     *
++++     * For detailed information, see the documentation of the asynchronous version of
++++     * this API: {@link symlink}.
++++     * @since v0.1.31
++++     * @param [type='null']
++++     */
++++    export function symlinkSync(target: PathLike, path: PathLike, type?: symlink.Type | null): void;
++++    /**
++++     * Reads the contents of the symbolic link referred to by `path`. The callback gets
++++     * two arguments `(err, linkString)`.
++++     *
++++     * See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more details.
++++     *
++++     * The optional `options` argument can be a string specifying an encoding, or an
++++     * object with an `encoding` property specifying the character encoding to use for
++++     * the link path passed to the callback. If the `encoding` is set to `'buffer'`,
++++     * the link path returned will be passed as a `Buffer` object.
++++     * @since v0.1.31
++++     */
++++    export function readlink(
++++        path: PathLike,
++++        options: EncodingOption,
++++        callback: (err: NodeJS.ErrnoException | null, linkString: string) => void,
++++    ): void;
++++    /**
++++     * Asynchronous readlink(2) - read value of a symbolic link.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    export function readlink(
++++        path: PathLike,
++++        options: BufferEncodingOption,
++++        callback: (err: NodeJS.ErrnoException | null, linkString: Buffer) => void,
++++    ): void;
++++    /**
++++     * Asynchronous readlink(2) - read value of a symbolic link.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    export function readlink(
++++        path: PathLike,
++++        options: EncodingOption,
++++        callback: (err: NodeJS.ErrnoException | null, linkString: string | Buffer) => void,
++++    ): void;
++++    /**
++++     * Asynchronous readlink(2) - read value of a symbolic link.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     */
++++    export function readlink(
++++        path: PathLike,
++++        callback: (err: NodeJS.ErrnoException | null, linkString: string) => void,
++++    ): void;
++++    export namespace readlink {
++++        /**
++++         * Asynchronous readlink(2) - read value of a symbolic link.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++         */
++++        function __promisify__(path: PathLike, options?: EncodingOption): Promise<string>;
++++        /**
++++         * Asynchronous readlink(2) - read value of a symbolic link.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++         */
++++        function __promisify__(path: PathLike, options: BufferEncodingOption): Promise<Buffer>;
++++        /**
++++         * Asynchronous readlink(2) - read value of a symbolic link.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++         */
++++        function __promisify__(path: PathLike, options?: EncodingOption): Promise<string | Buffer>;
++++    }
++++    /**
++++     * Returns the symbolic link's string value.
++++     *
++++     * See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more details.
++++     *
++++     * The optional `options` argument can be a string specifying an encoding, or an
++++     * object with an `encoding` property specifying the character encoding to use for
++++     * the link path returned. If the `encoding` is set to `'buffer'`,
++++     * the link path returned will be passed as a `Buffer` object.
++++     * @since v0.1.31
++++     */
++++    export function readlinkSync(path: PathLike, options?: EncodingOption): string;
++++    /**
++++     * Synchronous readlink(2) - read value of a symbolic link.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    export function readlinkSync(path: PathLike, options: BufferEncodingOption): Buffer;
++++    /**
++++     * Synchronous readlink(2) - read value of a symbolic link.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    export function readlinkSync(path: PathLike, options?: EncodingOption): string | Buffer;
++++    /**
++++     * Asynchronously computes the canonical pathname by resolving `.`, `..`, and
++++     * symbolic links.
++++     *
++++     * A canonical pathname is not necessarily unique. Hard links and bind mounts can
++++     * expose a file system entity through many pathnames.
++++     *
++++     * This function behaves like [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html), with some exceptions:
++++     *
++++     * 1. No case conversion is performed on case-insensitive file systems.
++++     * 2. The maximum number of symbolic links is platform-independent and generally
++++     * (much) higher than what the native [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html) implementation supports.
++++     *
++++     * The `callback` gets two arguments `(err, resolvedPath)`. May use `process.cwd` to resolve relative paths.
++++     *
++++     * Only paths that can be converted to UTF8 strings are supported.
++++     *
++++     * The optional `options` argument can be a string specifying an encoding, or an
++++     * object with an `encoding` property specifying the character encoding to use for
++++     * the path passed to the callback. If the `encoding` is set to `'buffer'`,
++++     * the path returned will be passed as a `Buffer` object.
++++     *
++++     * If `path` resolves to a socket or a pipe, the function will return a system
++++     * dependent name for that object.
++++     * @since v0.1.31
++++     */
++++    export function realpath(
++++        path: PathLike,
++++        options: EncodingOption,
++++        callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
++++    ): void;
++++    /**
++++     * Asynchronous realpath(3) - return the canonicalized absolute pathname.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    export function realpath(
++++        path: PathLike,
++++        options: BufferEncodingOption,
++++        callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void,
++++    ): void;
++++    /**
++++     * Asynchronous realpath(3) - return the canonicalized absolute pathname.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    export function realpath(
++++        path: PathLike,
++++        options: EncodingOption,
++++        callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void,
++++    ): void;
++++    /**
++++     * Asynchronous realpath(3) - return the canonicalized absolute pathname.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     */
++++    export function realpath(
++++        path: PathLike,
++++        callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
++++    ): void;
++++    export namespace realpath {
++++        /**
++++         * Asynchronous realpath(3) - return the canonicalized absolute pathname.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++         */
++++        function __promisify__(path: PathLike, options?: EncodingOption): Promise<string>;
++++        /**
++++         * Asynchronous realpath(3) - return the canonicalized absolute pathname.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++         */
++++        function __promisify__(path: PathLike, options: BufferEncodingOption): Promise<Buffer>;
++++        /**
++++         * Asynchronous realpath(3) - return the canonicalized absolute pathname.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++         */
++++        function __promisify__(path: PathLike, options?: EncodingOption): Promise<string | Buffer>;
++++        /**
++++         * Asynchronous [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html).
++++         *
++++         * The `callback` gets two arguments `(err, resolvedPath)`.
++++         *
++++         * Only paths that can be converted to UTF8 strings are supported.
++++         *
++++         * The optional `options` argument can be a string specifying an encoding, or an
++++         * object with an `encoding` property specifying the character encoding to use for
++++         * the path passed to the callback. If the `encoding` is set to `'buffer'`,
++++         * the path returned will be passed as a `Buffer` object.
++++         *
++++         * On Linux, when Node.js is linked against musl libc, the procfs file system must
++++         * be mounted on `/proc` in order for this function to work. Glibc does not have
++++         * this restriction.
++++         * @since v9.2.0
++++         */
++++        function native(
++++            path: PathLike,
++++            options: EncodingOption,
++++            callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
++++        ): void;
++++        function native(
++++            path: PathLike,
++++            options: BufferEncodingOption,
++++            callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void,
++++        ): void;
++++        function native(
++++            path: PathLike,
++++            options: EncodingOption,
++++            callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void,
++++        ): void;
++++        function native(
++++            path: PathLike,
++++            callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
++++        ): void;
++++    }
++++    /**
++++     * Returns the resolved pathname.
++++     *
++++     * For detailed information, see the documentation of the asynchronous version of
++++     * this API: {@link realpath}.
++++     * @since v0.1.31
++++     */
++++    export function realpathSync(path: PathLike, options?: EncodingOption): string;
++++    /**
++++     * Synchronous realpath(3) - return the canonicalized absolute pathname.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    export function realpathSync(path: PathLike, options: BufferEncodingOption): Buffer;
++++    /**
++++     * Synchronous realpath(3) - return the canonicalized absolute pathname.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    export function realpathSync(path: PathLike, options?: EncodingOption): string | Buffer;
++++    export namespace realpathSync {
++++        function native(path: PathLike, options?: EncodingOption): string;
++++        function native(path: PathLike, options: BufferEncodingOption): Buffer;
++++        function native(path: PathLike, options?: EncodingOption): string | Buffer;
++++    }
++++    /**
++++     * Asynchronously removes a file or symbolic link. No arguments other than a
++++     * possible exception are given to the completion callback.
++++     *
++++     * ```js
++++     * import { unlink } from 'node:fs';
++++     * // Assuming that 'path/file.txt' is a regular file.
++++     * unlink('path/file.txt', (err) => {
++++     *   if (err) throw err;
++++     *   console.log('path/file.txt was deleted');
++++     * });
++++     * ```
++++     *
++++     * `fs.unlink()` will not work on a directory, empty or otherwise. To remove a
++++     * directory, use {@link rmdir}.
++++     *
++++     * See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html) documentation for more details.
++++     * @since v0.0.2
++++     */
++++    export function unlink(path: PathLike, callback: NoParamCallback): void;
++++    export namespace unlink {
++++        /**
++++         * Asynchronous unlink(2) - delete a name and possibly the file it refers to.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         */
++++        function __promisify__(path: PathLike): Promise<void>;
++++    }
++++    /**
++++     * Synchronous [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html). Returns `undefined`.
++++     * @since v0.1.21
++++     */
++++    export function unlinkSync(path: PathLike): void;
++++    export interface RmDirOptions {
++++        /**
++++         * If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or
++++         * `EPERM` error is encountered, Node.js will retry the operation with a linear
++++         * backoff wait of `retryDelay` ms longer on each try. This option represents the
++++         * number of retries. This option is ignored if the `recursive` option is not
++++         * `true`.
++++         * @default 0
++++         */
++++        maxRetries?: number | undefined;
++++        /**
++++         * @deprecated since v14.14.0 In future versions of Node.js and will trigger a warning
++++         * `fs.rmdir(path, { recursive: true })` will throw if `path` does not exist or is a file.
++++         * Use `fs.rm(path, { recursive: true, force: true })` instead.
++++         *
++++         * If `true`, perform a recursive directory removal. In
++++         * recursive mode, operations are retried on failure.
++++         * @default false
++++         */
++++        recursive?: boolean | undefined;
++++        /**
++++         * The amount of time in milliseconds to wait between retries.
++++         * This option is ignored if the `recursive` option is not `true`.
++++         * @default 100
++++         */
++++        retryDelay?: number | undefined;
++++    }
++++    /**
++++     * Asynchronous [`rmdir(2)`](http://man7.org/linux/man-pages/man2/rmdir.2.html). No arguments other than a possible exception are given
++++     * to the completion callback.
++++     *
++++     * Using `fs.rmdir()` on a file (not a directory) results in an `ENOENT` error on
++++     * Windows and an `ENOTDIR` error on POSIX.
++++     *
++++     * To get a behavior similar to the `rm -rf` Unix command, use {@link rm} with options `{ recursive: true, force: true }`.
++++     * @since v0.0.2
++++     */
++++    export function rmdir(path: PathLike, callback: NoParamCallback): void;
++++    export function rmdir(path: PathLike, options: RmDirOptions, callback: NoParamCallback): void;
++++    export namespace rmdir {
++++        /**
++++         * Asynchronous rmdir(2) - delete a directory.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         */
++++        function __promisify__(path: PathLike, options?: RmDirOptions): Promise<void>;
++++    }
++++    /**
++++     * Synchronous [`rmdir(2)`](http://man7.org/linux/man-pages/man2/rmdir.2.html). Returns `undefined`.
++++     *
++++     * Using `fs.rmdirSync()` on a file (not a directory) results in an `ENOENT` error
++++     * on Windows and an `ENOTDIR` error on POSIX.
++++     *
++++     * To get a behavior similar to the `rm -rf` Unix command, use {@link rmSync} with options `{ recursive: true, force: true }`.
++++     * @since v0.1.21
++++     */
++++    export function rmdirSync(path: PathLike, options?: RmDirOptions): void;
++++    export interface RmOptions {
++++        /**
++++         * When `true`, exceptions will be ignored if `path` does not exist.
++++         * @default false
++++         */
++++        force?: boolean | undefined;
++++        /**
++++         * If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or
++++         * `EPERM` error is encountered, Node.js will retry the operation with a linear
++++         * backoff wait of `retryDelay` ms longer on each try. This option represents the
++++         * number of retries. This option is ignored if the `recursive` option is not
++++         * `true`.
++++         * @default 0
++++         */
++++        maxRetries?: number | undefined;
++++        /**
++++         * If `true`, perform a recursive directory removal. In
++++         * recursive mode, operations are retried on failure.
++++         * @default false
++++         */
++++        recursive?: boolean | undefined;
++++        /**
++++         * The amount of time in milliseconds to wait between retries.
++++         * This option is ignored if the `recursive` option is not `true`.
++++         * @default 100
++++         */
++++        retryDelay?: number | undefined;
++++    }
++++    /**
++++     * Asynchronously removes files and directories (modeled on the standard POSIX `rm` utility). No arguments other than a possible exception are given to the
++++     * completion callback.
++++     * @since v14.14.0
++++     */
++++    export function rm(path: PathLike, callback: NoParamCallback): void;
++++    export function rm(path: PathLike, options: RmOptions, callback: NoParamCallback): void;
++++    export namespace rm {
++++        /**
++++         * Asynchronously removes files and directories (modeled on the standard POSIX `rm` utility).
++++         */
++++        function __promisify__(path: PathLike, options?: RmOptions): Promise<void>;
++++    }
++++    /**
++++     * Synchronously removes files and directories (modeled on the standard POSIX `rm` utility). Returns `undefined`.
++++     * @since v14.14.0
++++     */
++++    export function rmSync(path: PathLike, options?: RmOptions): void;
++++    export interface MakeDirectoryOptions {
++++        /**
++++         * Indicates whether parent folders should be created.
++++         * If a folder was created, the path to the first created folder will be returned.
++++         * @default false
++++         */
++++        recursive?: boolean | undefined;
++++        /**
++++         * A file mode. If a string is passed, it is parsed as an octal integer. If not specified
++++         * @default 0o777
++++         */
++++        mode?: Mode | undefined;
++++    }
++++    /**
++++     * Asynchronously creates a directory.
++++     *
++++     * The callback is given a possible exception and, if `recursive` is `true`, the
++++     * first directory path created, `(err[, path])`.`path` can still be `undefined` when `recursive` is `true`, if no directory was
++++     * created (for instance, if it was previously created).
++++     *
++++     * The optional `options` argument can be an integer specifying `mode` (permission
++++     * and sticky bits), or an object with a `mode` property and a `recursive` property indicating whether parent directories should be created. Calling `fs.mkdir()` when `path` is a directory that
++++     * exists results in an error only
++++     * when `recursive` is false. If `recursive` is false and the directory exists,
++++     * an `EEXIST` error occurs.
++++     *
++++     * ```js
++++     * import { mkdir } from 'node:fs';
++++     *
++++     * // Create ./tmp/a/apple, regardless of whether ./tmp and ./tmp/a exist.
++++     * mkdir('./tmp/a/apple', { recursive: true }, (err) => {
++++     *   if (err) throw err;
++++     * });
++++     * ```
++++     *
++++     * On Windows, using `fs.mkdir()` on the root directory even with recursion will
++++     * result in an error:
++++     *
++++     * ```js
++++     * import { mkdir } from 'node:fs';
++++     *
++++     * mkdir('/', { recursive: true }, (err) => {
++++     *   // => [Error: EPERM: operation not permitted, mkdir 'C:\']
++++     * });
++++     * ```
++++     *
++++     * See the POSIX [`mkdir(2)`](http://man7.org/linux/man-pages/man2/mkdir.2.html) documentation for more details.
++++     * @since v0.1.8
++++     */
++++    export function mkdir(
++++        path: PathLike,
++++        options: MakeDirectoryOptions & {
++++            recursive: true;
++++        },
++++        callback: (err: NodeJS.ErrnoException | null, path?: string) => void,
++++    ): void;
++++    /**
++++     * Asynchronous mkdir(2) - create a directory.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
++++     * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
++++     */
++++    export function mkdir(
++++        path: PathLike,
++++        options:
++++            | Mode
++++            | (MakeDirectoryOptions & {
++++                recursive?: false | undefined;
++++            })
++++            | null
++++            | undefined,
++++        callback: NoParamCallback,
++++    ): void;
++++    /**
++++     * Asynchronous mkdir(2) - create a directory.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
++++     * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
++++     */
++++    export function mkdir(
++++        path: PathLike,
++++        options: Mode | MakeDirectoryOptions | null | undefined,
++++        callback: (err: NodeJS.ErrnoException | null, path?: string) => void,
++++    ): void;
++++    /**
++++     * Asynchronous mkdir(2) - create a directory with a mode of `0o777`.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     */
++++    export function mkdir(path: PathLike, callback: NoParamCallback): void;
++++    export namespace mkdir {
++++        /**
++++         * Asynchronous mkdir(2) - create a directory.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
++++         * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
++++         */
++++        function __promisify__(
++++            path: PathLike,
++++            options: MakeDirectoryOptions & {
++++                recursive: true;
++++            },
++++        ): Promise<string | undefined>;
++++        /**
++++         * Asynchronous mkdir(2) - create a directory.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
++++         * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
++++         */
++++        function __promisify__(
++++            path: PathLike,
++++            options?:
++++                | Mode
++++                | (MakeDirectoryOptions & {
++++                    recursive?: false | undefined;
++++                })
++++                | null,
++++        ): Promise<void>;
++++        /**
++++         * Asynchronous mkdir(2) - create a directory.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
++++         * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
++++         */
++++        function __promisify__(
++++            path: PathLike,
++++            options?: Mode | MakeDirectoryOptions | null,
++++        ): Promise<string | undefined>;
++++    }
++++    /**
++++     * Synchronously creates a directory. Returns `undefined`, or if `recursive` is `true`, the first directory path created.
++++     * This is the synchronous version of {@link mkdir}.
++++     *
++++     * See the POSIX [`mkdir(2)`](http://man7.org/linux/man-pages/man2/mkdir.2.html) documentation for more details.
++++     * @since v0.1.21
++++     */
++++    export function mkdirSync(
++++        path: PathLike,
++++        options: MakeDirectoryOptions & {
++++            recursive: true;
++++        },
++++    ): string | undefined;
++++    /**
++++     * Synchronous mkdir(2) - create a directory.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
++++     * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
++++     */
++++    export function mkdirSync(
++++        path: PathLike,
++++        options?:
++++            | Mode
++++            | (MakeDirectoryOptions & {
++++                recursive?: false | undefined;
++++            })
++++            | null,
++++    ): void;
++++    /**
++++     * Synchronous mkdir(2) - create a directory.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
++++     * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
++++     */
++++    export function mkdirSync(path: PathLike, options?: Mode | MakeDirectoryOptions | null): string | undefined;
++++    /**
++++     * Creates a unique temporary directory.
++++     *
++++     * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. Due to platform
++++     * inconsistencies, avoid trailing `X` characters in `prefix`. Some platforms,
++++     * notably the BSDs, can return more than six random characters, and replace
++++     * trailing `X` characters in `prefix` with random characters.
++++     *
++++     * The created directory path is passed as a string to the callback's second
++++     * parameter.
++++     *
++++     * The optional `options` argument can be a string specifying an encoding, or an
++++     * object with an `encoding` property specifying the character encoding to use.
++++     *
++++     * ```js
++++     * import { mkdtemp } from 'node:fs';
++++     * import { join } from 'node:path';
++++     * import { tmpdir } from 'node:os';
++++     *
++++     * mkdtemp(join(tmpdir(), 'foo-'), (err, directory) => {
++++     *   if (err) throw err;
++++     *   console.log(directory);
++++     *   // Prints: /tmp/foo-itXde2 or C:\Users\...\AppData\Local\Temp\foo-itXde2
++++     * });
++++     * ```
++++     *
++++     * The `fs.mkdtemp()` method will append the six randomly selected characters
++++     * directly to the `prefix` string. For instance, given a directory `/tmp`, if the
++++     * intention is to create a temporary directory _within_`/tmp`, the `prefix`must end with a trailing platform-specific path separator
++++     * (`import { sep } from 'node:node:path'`).
++++     *
++++     * ```js
++++     * import { tmpdir } from 'node:os';
++++     * import { mkdtemp } from 'node:fs';
++++     *
++++     * // The parent directory for the new temporary directory
++++     * const tmpDir = tmpdir();
++++     *
++++     * // This method is *INCORRECT*:
++++     * mkdtemp(tmpDir, (err, directory) => {
++++     *   if (err) throw err;
++++     *   console.log(directory);
++++     *   // Will print something similar to `/tmpabc123`.
++++     *   // A new temporary directory is created at the file system root
++++     *   // rather than *within* the /tmp directory.
++++     * });
++++     *
++++     * // This method is *CORRECT*:
++++     * import { sep } from 'node:path';
++++     * mkdtemp(`${tmpDir}${sep}`, (err, directory) => {
++++     *   if (err) throw err;
++++     *   console.log(directory);
++++     *   // Will print something similar to `/tmp/abc123`.
++++     *   // A new temporary directory is created within
++++     *   // the /tmp directory.
++++     * });
++++     * ```
++++     * @since v5.10.0
++++     */
++++    export function mkdtemp(
++++        prefix: string,
++++        options: EncodingOption,
++++        callback: (err: NodeJS.ErrnoException | null, folder: string) => void,
++++    ): void;
++++    /**
++++     * Asynchronously creates a unique temporary directory.
++++     * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    export function mkdtemp(
++++        prefix: string,
++++        options:
++++            | "buffer"
++++            | {
++++                encoding: "buffer";
++++            },
++++        callback: (err: NodeJS.ErrnoException | null, folder: Buffer) => void,
++++    ): void;
++++    /**
++++     * Asynchronously creates a unique temporary directory.
++++     * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    export function mkdtemp(
++++        prefix: string,
++++        options: EncodingOption,
++++        callback: (err: NodeJS.ErrnoException | null, folder: string | Buffer) => void,
++++    ): void;
++++    /**
++++     * Asynchronously creates a unique temporary directory.
++++     * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
++++     */
++++    export function mkdtemp(
++++        prefix: string,
++++        callback: (err: NodeJS.ErrnoException | null, folder: string) => void,
++++    ): void;
++++    export namespace mkdtemp {
++++        /**
++++         * Asynchronously creates a unique temporary directory.
++++         * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
++++         * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++         */
++++        function __promisify__(prefix: string, options?: EncodingOption): Promise<string>;
++++        /**
++++         * Asynchronously creates a unique temporary directory.
++++         * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
++++         * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++         */
++++        function __promisify__(prefix: string, options: BufferEncodingOption): Promise<Buffer>;
++++        /**
++++         * Asynchronously creates a unique temporary directory.
++++         * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
++++         * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++         */
++++        function __promisify__(prefix: string, options?: EncodingOption): Promise<string | Buffer>;
++++    }
++++    /**
++++     * Returns the created directory path.
++++     *
++++     * For detailed information, see the documentation of the asynchronous version of
++++     * this API: {@link mkdtemp}.
++++     *
++++     * The optional `options` argument can be a string specifying an encoding, or an
++++     * object with an `encoding` property specifying the character encoding to use.
++++     * @since v5.10.0
++++     */
++++    export function mkdtempSync(prefix: string, options?: EncodingOption): string;
++++    /**
++++     * Synchronously creates a unique temporary directory.
++++     * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    export function mkdtempSync(prefix: string, options: BufferEncodingOption): Buffer;
++++    /**
++++     * Synchronously creates a unique temporary directory.
++++     * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    export function mkdtempSync(prefix: string, options?: EncodingOption): string | Buffer;
++++    /**
++++     * Reads the contents of a directory. The callback gets two arguments `(err, files)` where `files` is an array of the names of the files in the directory excluding `'.'` and `'..'`.
++++     *
++++     * See the POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more details.
++++     *
++++     * The optional `options` argument can be a string specifying an encoding, or an
++++     * object with an `encoding` property specifying the character encoding to use for
++++     * the filenames passed to the callback. If the `encoding` is set to `'buffer'`,
++++     * the filenames returned will be passed as `Buffer` objects.
++++     *
++++     * If `options.withFileTypes` is set to `true`, the `files` array will contain `fs.Dirent` objects.
++++     * @since v0.1.8
++++     */
++++    export function readdir(
++++        path: PathLike,
++++        options:
++++            | {
++++                encoding: BufferEncoding | null;
++++                withFileTypes?: false | undefined;
++++                recursive?: boolean | undefined;
++++            }
++++            | BufferEncoding
++++            | undefined
++++            | null,
++++        callback: (err: NodeJS.ErrnoException | null, files: string[]) => void,
++++    ): void;
++++    /**
++++     * Asynchronous readdir(3) - read a directory.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    export function readdir(
++++        path: PathLike,
++++        options:
++++            | {
++++                encoding: "buffer";
++++                withFileTypes?: false | undefined;
++++                recursive?: boolean | undefined;
++++            }
++++            | "buffer",
++++        callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void,
++++    ): void;
++++    /**
++++     * Asynchronous readdir(3) - read a directory.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    export function readdir(
++++        path: PathLike,
++++        options:
++++            | (ObjectEncodingOptions & {
++++                withFileTypes?: false | undefined;
++++                recursive?: boolean | undefined;
++++            })
++++            | BufferEncoding
++++            | undefined
++++            | null,
++++        callback: (err: NodeJS.ErrnoException | null, files: string[] | Buffer[]) => void,
++++    ): void;
++++    /**
++++     * Asynchronous readdir(3) - read a directory.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     */
++++    export function readdir(
++++        path: PathLike,
++++        callback: (err: NodeJS.ErrnoException | null, files: string[]) => void,
++++    ): void;
++++    /**
++++     * Asynchronous readdir(3) - read a directory.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options If called with `withFileTypes: true` the result data will be an array of Dirent.
++++     */
++++    export function readdir(
++++        path: PathLike,
++++        options: ObjectEncodingOptions & {
++++            withFileTypes: true;
++++            recursive?: boolean | undefined;
++++        },
++++        callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void,
++++    ): void;
++++    export namespace readdir {
++++        /**
++++         * Asynchronous readdir(3) - read a directory.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++         */
++++        function __promisify__(
++++            path: PathLike,
++++            options?:
++++                | {
++++                    encoding: BufferEncoding | null;
++++                    withFileTypes?: false | undefined;
++++                    recursive?: boolean | undefined;
++++                }
++++                | BufferEncoding
++++                | null,
++++        ): Promise<string[]>;
++++        /**
++++         * Asynchronous readdir(3) - read a directory.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++         */
++++        function __promisify__(
++++            path: PathLike,
++++            options:
++++                | "buffer"
++++                | {
++++                    encoding: "buffer";
++++                    withFileTypes?: false | undefined;
++++                    recursive?: boolean | undefined;
++++                },
++++        ): Promise<Buffer[]>;
++++        /**
++++         * Asynchronous readdir(3) - read a directory.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++         */
++++        function __promisify__(
++++            path: PathLike,
++++            options?:
++++                | (ObjectEncodingOptions & {
++++                    withFileTypes?: false | undefined;
++++                    recursive?: boolean | undefined;
++++                })
++++                | BufferEncoding
++++                | null,
++++        ): Promise<string[] | Buffer[]>;
++++        /**
++++         * Asynchronous readdir(3) - read a directory.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param options If called with `withFileTypes: true` the result data will be an array of Dirent
++++         */
++++        function __promisify__(
++++            path: PathLike,
++++            options: ObjectEncodingOptions & {
++++                withFileTypes: true;
++++                recursive?: boolean | undefined;
++++            },
++++        ): Promise<Dirent[]>;
++++    }
++++    /**
++++     * Reads the contents of the directory.
++++     *
++++     * See the POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more details.
++++     *
++++     * The optional `options` argument can be a string specifying an encoding, or an
++++     * object with an `encoding` property specifying the character encoding to use for
++++     * the filenames returned. If the `encoding` is set to `'buffer'`,
++++     * the filenames returned will be passed as `Buffer` objects.
++++     *
++++     * If `options.withFileTypes` is set to `true`, the result will contain `fs.Dirent` objects.
++++     * @since v0.1.21
++++     */
++++    export function readdirSync(
++++        path: PathLike,
++++        options?:
++++            | {
++++                encoding: BufferEncoding | null;
++++                withFileTypes?: false | undefined;
++++                recursive?: boolean | undefined;
++++            }
++++            | BufferEncoding
++++            | null,
++++    ): string[];
++++    /**
++++     * Synchronous readdir(3) - read a directory.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    export function readdirSync(
++++        path: PathLike,
++++        options:
++++            | {
++++                encoding: "buffer";
++++                withFileTypes?: false | undefined;
++++                recursive?: boolean | undefined;
++++            }
++++            | "buffer",
++++    ): Buffer[];
++++    /**
++++     * Synchronous readdir(3) - read a directory.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    export function readdirSync(
++++        path: PathLike,
++++        options?:
++++            | (ObjectEncodingOptions & {
++++                withFileTypes?: false | undefined;
++++                recursive?: boolean | undefined;
++++            })
++++            | BufferEncoding
++++            | null,
++++    ): string[] | Buffer[];
++++    /**
++++     * Synchronous readdir(3) - read a directory.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options If called with `withFileTypes: true` the result data will be an array of Dirent.
++++     */
++++    export function readdirSync(
++++        path: PathLike,
++++        options: ObjectEncodingOptions & {
++++            withFileTypes: true;
++++            recursive?: boolean | undefined;
++++        },
++++    ): Dirent[];
++++    /**
++++     * Closes the file descriptor. No arguments other than a possible exception are
++++     * given to the completion callback.
++++     *
++++     * Calling `fs.close()` on any file descriptor (`fd`) that is currently in use
++++     * through any other `fs` operation may lead to undefined behavior.
++++     *
++++     * See the POSIX [`close(2)`](http://man7.org/linux/man-pages/man2/close.2.html) documentation for more detail.
++++     * @since v0.0.2
++++     */
++++    export function close(fd: number, callback?: NoParamCallback): void;
++++    export namespace close {
++++        /**
++++         * Asynchronous close(2) - close a file descriptor.
++++         * @param fd A file descriptor.
++++         */
++++        function __promisify__(fd: number): Promise<void>;
++++    }
++++    /**
++++     * Closes the file descriptor. Returns `undefined`.
++++     *
++++     * Calling `fs.closeSync()` on any file descriptor (`fd`) that is currently in use
++++     * through any other `fs` operation may lead to undefined behavior.
++++     *
++++     * See the POSIX [`close(2)`](http://man7.org/linux/man-pages/man2/close.2.html) documentation for more detail.
++++     * @since v0.1.21
++++     */
++++    export function closeSync(fd: number): void;
++++    /**
++++     * Asynchronous file open. See the POSIX [`open(2)`](http://man7.org/linux/man-pages/man2/open.2.html) documentation for more details.
++++     *
++++     * `mode` sets the file mode (permission and sticky bits), but only if the file was
++++     * created. On Windows, only the write permission can be manipulated; see {@link chmod}.
++++     *
++++     * The callback gets two arguments `(err, fd)`.
++++     *
++++     * Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented
++++     * by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains
++++     * a colon, Node.js will open a file system stream, as described by [this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams).
++++     *
++++     * Functions based on `fs.open()` exhibit this behavior as well:`fs.writeFile()`, `fs.readFile()`, etc.
++++     * @since v0.0.2
++++     * @param [flags='r'] See `support of file system `flags``.
++++     * @param [mode=0o666]
++++     */
++++    export function open(
++++        path: PathLike,
++++        flags: OpenMode | undefined,
++++        mode: Mode | undefined | null,
++++        callback: (err: NodeJS.ErrnoException | null, fd: number) => void,
++++    ): void;
++++    /**
++++     * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param [flags='r'] See `support of file system `flags``.
++++     */
++++    export function open(
++++        path: PathLike,
++++        flags: OpenMode | undefined,
++++        callback: (err: NodeJS.ErrnoException | null, fd: number) => void,
++++    ): void;
++++    /**
++++     * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     */
++++    export function open(path: PathLike, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
++++    export namespace open {
++++        /**
++++         * Asynchronous open(2) - open and possibly create a file.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`.
++++         */
++++        function __promisify__(path: PathLike, flags: OpenMode, mode?: Mode | null): Promise<number>;
++++    }
++++    /**
++++     * Returns an integer representing the file descriptor.
++++     *
++++     * For detailed information, see the documentation of the asynchronous version of
++++     * this API: {@link open}.
++++     * @since v0.1.21
++++     * @param [flags='r']
++++     * @param [mode=0o666]
++++     */
++++    export function openSync(path: PathLike, flags: OpenMode, mode?: Mode | null): number;
++++    /**
++++     * Change the file system timestamps of the object referenced by `path`.
++++     *
++++     * The `atime` and `mtime` arguments follow these rules:
++++     *
++++     * * Values can be either numbers representing Unix epoch time in seconds, `Date`s, or a numeric string like `'123456789.0'`.
++++     * * If the value can not be converted to a number, or is `NaN`, `Infinity`, or `-Infinity`, an `Error` will be thrown.
++++     * @since v0.4.2
++++     */
++++    export function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void;
++++    export namespace utimes {
++++        /**
++++         * Asynchronously change file timestamps of the file referenced by the supplied path.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * @param atime The last access time. If a string is provided, it will be coerced to number.
++++         * @param mtime The last modified time. If a string is provided, it will be coerced to number.
++++         */
++++        function __promisify__(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise<void>;
++++    }
++++    /**
++++     * Returns `undefined`.
++++     *
++++     * For detailed information, see the documentation of the asynchronous version of
++++     * this API: {@link utimes}.
++++     * @since v0.4.2
++++     */
++++    export function utimesSync(path: PathLike, atime: TimeLike, mtime: TimeLike): void;
++++    /**
++++     * Change the file system timestamps of the object referenced by the supplied file
++++     * descriptor. See {@link utimes}.
++++     * @since v0.4.2
++++     */
++++    export function futimes(fd: number, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void;
++++    export namespace futimes {
++++        /**
++++         * Asynchronously change file timestamps of the file referenced by the supplied file descriptor.
++++         * @param fd A file descriptor.
++++         * @param atime The last access time. If a string is provided, it will be coerced to number.
++++         * @param mtime The last modified time. If a string is provided, it will be coerced to number.
++++         */
++++        function __promisify__(fd: number, atime: TimeLike, mtime: TimeLike): Promise<void>;
++++    }
++++    /**
++++     * Synchronous version of {@link futimes}. Returns `undefined`.
++++     * @since v0.4.2
++++     */
++++    export function futimesSync(fd: number, atime: TimeLike, mtime: TimeLike): void;
++++    /**
++++     * Request that all data for the open file descriptor is flushed to the storage
++++     * device. The specific implementation is operating system and device specific.
++++     * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. No arguments other
++++     * than a possible exception are given to the completion callback.
++++     * @since v0.1.96
++++     */
++++    export function fsync(fd: number, callback: NoParamCallback): void;
++++    export namespace fsync {
++++        /**
++++         * Asynchronous fsync(2) - synchronize a file's in-core state with the underlying storage device.
++++         * @param fd A file descriptor.
++++         */
++++        function __promisify__(fd: number): Promise<void>;
++++    }
++++    /**
++++     * Request that all data for the open file descriptor is flushed to the storage
++++     * device. The specific implementation is operating system and device specific.
++++     * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. Returns `undefined`.
++++     * @since v0.1.96
++++     */
++++    export function fsyncSync(fd: number): void;
++++    /**
++++     * Write `buffer` to the file specified by `fd`.
++++     *
++++     * `offset` determines the part of the buffer to be written, and `length` is
++++     * an integer specifying the number of bytes to write.
++++     *
++++     * `position` refers to the offset from the beginning of the file where this data
++++     * should be written. If `typeof position !== 'number'`, the data will be written
++++     * at the current position. See [`pwrite(2)`](http://man7.org/linux/man-pages/man2/pwrite.2.html).
++++     *
++++     * The callback will be given three arguments `(err, bytesWritten, buffer)` where `bytesWritten` specifies how many _bytes_ were written from `buffer`.
++++     *
++++     * If this method is invoked as its `util.promisify()` ed version, it returns
++++     * a promise for an `Object` with `bytesWritten` and `buffer` properties.
++++     *
++++     * It is unsafe to use `fs.write()` multiple times on the same file without waiting
++++     * for the callback. For this scenario, {@link createWriteStream} is
++++     * recommended.
++++     *
++++     * On Linux, positional writes don't work when the file is opened in append mode.
++++     * The kernel ignores the position argument and always appends the data to
++++     * the end of the file.
++++     * @since v0.0.2
++++     * @param [offset=0]
++++     * @param [length=buffer.byteLength - offset]
++++     * @param [position='null']
++++     */
++++    export function write<TBuffer extends NodeJS.ArrayBufferView>(
++++        fd: number,
++++        buffer: TBuffer,
++++        offset: number | undefined | null,
++++        length: number | undefined | null,
++++        position: number | undefined | null,
++++        callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
++++    ): void;
++++    /**
++++     * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
++++     * @param fd A file descriptor.
++++     * @param offset The part of the buffer to be written. If not supplied, defaults to `0`.
++++     * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`.
++++     */
++++    export function write<TBuffer extends NodeJS.ArrayBufferView>(
++++        fd: number,
++++        buffer: TBuffer,
++++        offset: number | undefined | null,
++++        length: number | undefined | null,
++++        callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
++++    ): void;
++++    /**
++++     * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
++++     * @param fd A file descriptor.
++++     * @param offset The part of the buffer to be written. If not supplied, defaults to `0`.
++++     */
++++    export function write<TBuffer extends NodeJS.ArrayBufferView>(
++++        fd: number,
++++        buffer: TBuffer,
++++        offset: number | undefined | null,
++++        callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
++++    ): void;
++++    /**
++++     * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
++++     * @param fd A file descriptor.
++++     */
++++    export function write<TBuffer extends NodeJS.ArrayBufferView>(
++++        fd: number,
++++        buffer: TBuffer,
++++        callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
++++    ): void;
++++    /**
++++     * Asynchronously writes `string` to the file referenced by the supplied file descriptor.
++++     * @param fd A file descriptor.
++++     * @param string A string to write.
++++     * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
++++     * @param encoding The expected string encoding.
++++     */
++++    export function write(
++++        fd: number,
++++        string: string,
++++        position: number | undefined | null,
++++        encoding: BufferEncoding | undefined | null,
++++        callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void,
++++    ): void;
++++    /**
++++     * Asynchronously writes `string` to the file referenced by the supplied file descriptor.
++++     * @param fd A file descriptor.
++++     * @param string A string to write.
++++     * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
++++     */
++++    export function write(
++++        fd: number,
++++        string: string,
++++        position: number | undefined | null,
++++        callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void,
++++    ): void;
++++    /**
++++     * Asynchronously writes `string` to the file referenced by the supplied file descriptor.
++++     * @param fd A file descriptor.
++++     * @param string A string to write.
++++     */
++++    export function write(
++++        fd: number,
++++        string: string,
++++        callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void,
++++    ): void;
++++    export namespace write {
++++        /**
++++         * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
++++         * @param fd A file descriptor.
++++         * @param offset The part of the buffer to be written. If not supplied, defaults to `0`.
++++         * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`.
++++         * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
++++         */
++++        function __promisify__<TBuffer extends NodeJS.ArrayBufferView>(
++++            fd: number,
++++            buffer?: TBuffer,
++++            offset?: number,
++++            length?: number,
++++            position?: number | null,
++++        ): Promise<{
++++            bytesWritten: number;
++++            buffer: TBuffer;
++++        }>;
++++        /**
++++         * Asynchronously writes `string` to the file referenced by the supplied file descriptor.
++++         * @param fd A file descriptor.
++++         * @param string A string to write.
++++         * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
++++         * @param encoding The expected string encoding.
++++         */
++++        function __promisify__(
++++            fd: number,
++++            string: string,
++++            position?: number | null,
++++            encoding?: BufferEncoding | null,
++++        ): Promise<{
++++            bytesWritten: number;
++++            buffer: string;
++++        }>;
++++    }
++++    /**
++++     * For detailed information, see the documentation of the asynchronous version of
++++     * this API: {@link write}.
++++     * @since v0.1.21
++++     * @param [offset=0]
++++     * @param [length=buffer.byteLength - offset]
++++     * @param [position='null']
++++     * @return The number of bytes written.
++++     */
++++    export function writeSync(
++++        fd: number,
++++        buffer: NodeJS.ArrayBufferView,
++++        offset?: number | null,
++++        length?: number | null,
++++        position?: number | null,
++++    ): number;
++++    /**
++++     * Synchronously writes `string` to the file referenced by the supplied file descriptor, returning the number of bytes written.
++++     * @param fd A file descriptor.
++++     * @param string A string to write.
++++     * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
++++     * @param encoding The expected string encoding.
++++     */
++++    export function writeSync(
++++        fd: number,
++++        string: string,
++++        position?: number | null,
++++        encoding?: BufferEncoding | null,
++++    ): number;
++++    export type ReadPosition = number | bigint;
++++    export interface ReadSyncOptions {
++++        /**
++++         * @default 0
++++         */
++++        offset?: number | undefined;
++++        /**
++++         * @default `length of buffer`
++++         */
++++        length?: number | undefined;
++++        /**
++++         * @default null
++++         */
++++        position?: ReadPosition | null | undefined;
++++    }
++++    export interface ReadAsyncOptions<TBuffer extends NodeJS.ArrayBufferView> extends ReadSyncOptions {
++++        buffer?: TBuffer;
++++    }
++++    /**
++++     * Read data from the file specified by `fd`.
++++     *
++++     * The callback is given the three arguments, `(err, bytesRead, buffer)`.
++++     *
++++     * If the file is not modified concurrently, the end-of-file is reached when the
++++     * number of bytes read is zero.
++++     *
++++     * If this method is invoked as its `util.promisify()` ed version, it returns
++++     * a promise for an `Object` with `bytesRead` and `buffer` properties.
++++     * @since v0.0.2
++++     * @param buffer The buffer that the data will be written to.
++++     * @param offset The position in `buffer` to write the data to.
++++     * @param length The number of bytes to read.
++++     * @param position Specifies where to begin reading from in the file. If `position` is `null` or `-1 `, data will be read from the current file position, and the file position will be updated. If
++++     * `position` is an integer, the file position will be unchanged.
++++     */
++++    export function read<TBuffer extends NodeJS.ArrayBufferView>(
++++        fd: number,
++++        buffer: TBuffer,
++++        offset: number,
++++        length: number,
++++        position: ReadPosition | null,
++++        callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void,
++++    ): void;
++++    /**
++++     * Similar to the above `fs.read` function, this version takes an optional `options` object.
++++     * If not otherwise specified in an `options` object,
++++     * `buffer` defaults to `Buffer.alloc(16384)`,
++++     * `offset` defaults to `0`,
++++     * `length` defaults to `buffer.byteLength`, `- offset` as of Node 17.6.0
++++     * `position` defaults to `null`
++++     * @since v12.17.0, 13.11.0
++++     */
++++    export function read<TBuffer extends NodeJS.ArrayBufferView>(
++++        fd: number,
++++        options: ReadAsyncOptions<TBuffer>,
++++        callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void,
++++    ): void;
++++    export function read(
++++        fd: number,
++++        callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => void,
++++    ): void;
++++    export namespace read {
++++        /**
++++         * @param fd A file descriptor.
++++         * @param buffer The buffer that the data will be written to.
++++         * @param offset The offset in the buffer at which to start writing.
++++         * @param length The number of bytes to read.
++++         * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position.
++++         */
++++        function __promisify__<TBuffer extends NodeJS.ArrayBufferView>(
++++            fd: number,
++++            buffer: TBuffer,
++++            offset: number,
++++            length: number,
++++            position: number | null,
++++        ): Promise<{
++++            bytesRead: number;
++++            buffer: TBuffer;
++++        }>;
++++        function __promisify__<TBuffer extends NodeJS.ArrayBufferView>(
++++            fd: number,
++++            options: ReadAsyncOptions<TBuffer>,
++++        ): Promise<{
++++            bytesRead: number;
++++            buffer: TBuffer;
++++        }>;
++++        function __promisify__(fd: number): Promise<{
++++            bytesRead: number;
++++            buffer: NodeJS.ArrayBufferView;
++++        }>;
++++    }
++++    /**
++++     * Returns the number of `bytesRead`.
++++     *
++++     * For detailed information, see the documentation of the asynchronous version of
++++     * this API: {@link read}.
++++     * @since v0.1.21
++++     * @param [position='null']
++++     */
++++    export function readSync(
++++        fd: number,
++++        buffer: NodeJS.ArrayBufferView,
++++        offset: number,
++++        length: number,
++++        position: ReadPosition | null,
++++    ): number;
++++    /**
++++     * Similar to the above `fs.readSync` function, this version takes an optional `options` object.
++++     * If no `options` object is specified, it will default with the above values.
++++     */
++++    export function readSync(fd: number, buffer: NodeJS.ArrayBufferView, opts?: ReadSyncOptions): number;
++++    /**
++++     * Asynchronously reads the entire contents of a file.
++++     *
++++     * ```js
++++     * import { readFile } from 'node:fs';
++++     *
++++     * readFile('/etc/passwd', (err, data) => {
++++     *   if (err) throw err;
++++     *   console.log(data);
++++     * });
++++     * ```
++++     *
++++     * The callback is passed two arguments `(err, data)`, where `data` is the
++++     * contents of the file.
++++     *
++++     * If no encoding is specified, then the raw buffer is returned.
++++     *
++++     * If `options` is a string, then it specifies the encoding:
++++     *
++++     * ```js
++++     * import { readFile } from 'node:fs';
++++     *
++++     * readFile('/etc/passwd', 'utf8', callback);
++++     * ```
++++     *
++++     * When the path is a directory, the behavior of `fs.readFile()` and {@link readFileSync} is platform-specific. On macOS, Linux, and Windows, an
++++     * error will be returned. On FreeBSD, a representation of the directory's contents
++++     * will be returned.
++++     *
++++     * ```js
++++     * import { readFile } from 'node:fs';
++++     *
++++     * // macOS, Linux, and Windows
++++     * readFile('<directory>', (err, data) => {
++++     *   // => [Error: EISDIR: illegal operation on a directory, read <directory>]
++++     * });
++++     *
++++     * //  FreeBSD
++++     * readFile('<directory>', (err, data) => {
++++     *   // => null, <data>
++++     * });
++++     * ```
++++     *
++++     * It is possible to abort an ongoing request using an `AbortSignal`. If a
++++     * request is aborted the callback is called with an `AbortError`:
++++     *
++++     * ```js
++++     * import { readFile } from 'node:fs';
++++     *
++++     * const controller = new AbortController();
++++     * const signal = controller.signal;
++++     * readFile(fileInfo[0].name, { signal }, (err, buf) => {
++++     *   // ...
++++     * });
++++     * // When you want to abort the request
++++     * controller.abort();
++++     * ```
++++     *
++++     * The `fs.readFile()` function buffers the entire file. To minimize memory costs,
++++     * when possible prefer streaming via `fs.createReadStream()`.
++++     *
++++     * Aborting an ongoing request does not abort individual operating
++++     * system requests but rather the internal buffering `fs.readFile` performs.
++++     * @since v0.1.29
++++     * @param path filename or file descriptor
++++     */
++++    export function readFile(
++++        path: PathOrFileDescriptor,
++++        options:
++++            | ({
++++                encoding?: null | undefined;
++++                flag?: string | undefined;
++++            } & Abortable)
++++            | undefined
++++            | null,
++++        callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void,
++++    ): void;
++++    /**
++++     * Asynchronously reads the entire contents of a file.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
++++     * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
++++     * If a flag is not provided, it defaults to `'r'`.
++++     */
++++    export function readFile(
++++        path: PathOrFileDescriptor,
++++        options:
++++            | ({
++++                encoding: BufferEncoding;
++++                flag?: string | undefined;
++++            } & Abortable)
++++            | BufferEncoding,
++++        callback: (err: NodeJS.ErrnoException | null, data: string) => void,
++++    ): void;
++++    /**
++++     * Asynchronously reads the entire contents of a file.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
++++     * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
++++     * If a flag is not provided, it defaults to `'r'`.
++++     */
++++    export function readFile(
++++        path: PathOrFileDescriptor,
++++        options:
++++            | (ObjectEncodingOptions & {
++++                flag?: string | undefined;
++++            } & Abortable)
++++            | BufferEncoding
++++            | undefined
++++            | null,
++++        callback: (err: NodeJS.ErrnoException | null, data: string | Buffer) => void,
++++    ): void;
++++    /**
++++     * Asynchronously reads the entire contents of a file.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
++++     */
++++    export function readFile(
++++        path: PathOrFileDescriptor,
++++        callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void,
++++    ): void;
++++    export namespace readFile {
++++        /**
++++         * Asynchronously reads the entire contents of a file.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
++++         * @param options An object that may contain an optional flag.
++++         * If a flag is not provided, it defaults to `'r'`.
++++         */
++++        function __promisify__(
++++            path: PathOrFileDescriptor,
++++            options?: {
++++                encoding?: null | undefined;
++++                flag?: string | undefined;
++++            } | null,
++++        ): Promise<Buffer>;
++++        /**
++++         * Asynchronously reads the entire contents of a file.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * URL support is _experimental_.
++++         * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
++++         * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
++++         * If a flag is not provided, it defaults to `'r'`.
++++         */
++++        function __promisify__(
++++            path: PathOrFileDescriptor,
++++            options:
++++                | {
++++                    encoding: BufferEncoding;
++++                    flag?: string | undefined;
++++                }
++++                | BufferEncoding,
++++        ): Promise<string>;
++++        /**
++++         * Asynchronously reads the entire contents of a file.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * URL support is _experimental_.
++++         * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
++++         * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
++++         * If a flag is not provided, it defaults to `'r'`.
++++         */
++++        function __promisify__(
++++            path: PathOrFileDescriptor,
++++            options?:
++++                | (ObjectEncodingOptions & {
++++                    flag?: string | undefined;
++++                })
++++                | BufferEncoding
++++                | null,
++++        ): Promise<string | Buffer>;
++++    }
++++    /**
++++     * Returns the contents of the `path`.
++++     *
++++     * For detailed information, see the documentation of the asynchronous version of
++++     * this API: {@link readFile}.
++++     *
++++     * If the `encoding` option is specified then this function returns a
++++     * string. Otherwise it returns a buffer.
++++     *
++++     * Similar to {@link readFile}, when the path is a directory, the behavior of `fs.readFileSync()` is platform-specific.
++++     *
++++     * ```js
++++     * import { readFileSync } from 'node:fs';
++++     *
++++     * // macOS, Linux, and Windows
++++     * readFileSync('<directory>');
++++     * // => [Error: EISDIR: illegal operation on a directory, read <directory>]
++++     *
++++     * //  FreeBSD
++++     * readFileSync('<directory>'); // => <data>
++++     * ```
++++     * @since v0.1.8
++++     * @param path filename or file descriptor
++++     */
++++    export function readFileSync(
++++        path: PathOrFileDescriptor,
++++        options?: {
++++            encoding?: null | undefined;
++++            flag?: string | undefined;
++++        } | null,
++++    ): Buffer;
++++    /**
++++     * Synchronously reads the entire contents of a file.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
++++     * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
++++     * If a flag is not provided, it defaults to `'r'`.
++++     */
++++    export function readFileSync(
++++        path: PathOrFileDescriptor,
++++        options:
++++            | {
++++                encoding: BufferEncoding;
++++                flag?: string | undefined;
++++            }
++++            | BufferEncoding,
++++    ): string;
++++    /**
++++     * Synchronously reads the entire contents of a file.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
++++     * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
++++     * If a flag is not provided, it defaults to `'r'`.
++++     */
++++    export function readFileSync(
++++        path: PathOrFileDescriptor,
++++        options?:
++++            | (ObjectEncodingOptions & {
++++                flag?: string | undefined;
++++            })
++++            | BufferEncoding
++++            | null,
++++    ): string | Buffer;
++++    export type WriteFileOptions =
++++        | (
++++            & ObjectEncodingOptions
++++            & Abortable
++++            & {
++++                mode?: Mode | undefined;
++++                flag?: string | undefined;
++++                flush?: boolean | undefined;
++++            }
++++        )
++++        | BufferEncoding
++++        | null;
++++    /**
++++     * When `file` is a filename, asynchronously writes data to the file, replacing the
++++     * file if it already exists. `data` can be a string or a buffer.
++++     *
++++     * When `file` is a file descriptor, the behavior is similar to calling `fs.write()` directly (which is recommended). See the notes below on using
++++     * a file descriptor.
++++     *
++++     * The `encoding` option is ignored if `data` is a buffer.
++++     *
++++     * The `mode` option only affects the newly created file. See {@link open} for more details.
++++     *
++++     * ```js
++++     * import { writeFile } from 'node:fs';
++++     * import { Buffer } from 'node:buffer';
++++     *
++++     * const data = new Uint8Array(Buffer.from('Hello Node.js'));
++++     * writeFile('message.txt', data, (err) => {
++++     *   if (err) throw err;
++++     *   console.log('The file has been saved!');
++++     * });
++++     * ```
++++     *
++++     * If `options` is a string, then it specifies the encoding:
++++     *
++++     * ```js
++++     * import { writeFile } from 'node:fs';
++++     *
++++     * writeFile('message.txt', 'Hello Node.js', 'utf8', callback);
++++     * ```
++++     *
++++     * It is unsafe to use `fs.writeFile()` multiple times on the same file without
++++     * waiting for the callback. For this scenario, {@link createWriteStream} is
++++     * recommended.
++++     *
++++     * Similarly to `fs.readFile` \- `fs.writeFile` is a convenience method that
++++     * performs multiple `write` calls internally to write the buffer passed to it.
++++     * For performance sensitive code consider using {@link createWriteStream}.
++++     *
++++     * It is possible to use an `AbortSignal` to cancel an `fs.writeFile()`.
++++     * Cancelation is "best effort", and some amount of data is likely still
++++     * to be written.
++++     *
++++     * ```js
++++     * import { writeFile } from 'node:fs';
++++     * import { Buffer } from 'node:buffer';
++++     *
++++     * const controller = new AbortController();
++++     * const { signal } = controller;
++++     * const data = new Uint8Array(Buffer.from('Hello Node.js'));
++++     * writeFile('message.txt', data, { signal }, (err) => {
++++     *   // When a request is aborted - the callback is called with an AbortError
++++     * });
++++     * // When the request should be aborted
++++     * controller.abort();
++++     * ```
++++     *
++++     * Aborting an ongoing request does not abort individual operating
++++     * system requests but rather the internal buffering `fs.writeFile` performs.
++++     * @since v0.1.29
++++     * @param file filename or file descriptor
++++     */
++++    export function writeFile(
++++        file: PathOrFileDescriptor,
++++        data: string | NodeJS.ArrayBufferView,
++++        options: WriteFileOptions,
++++        callback: NoParamCallback,
++++    ): void;
++++    /**
++++     * Asynchronously writes data to a file, replacing the file if it already exists.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
++++     * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
++++     */
++++    export function writeFile(
++++        path: PathOrFileDescriptor,
++++        data: string | NodeJS.ArrayBufferView,
++++        callback: NoParamCallback,
++++    ): void;
++++    export namespace writeFile {
++++        /**
++++         * Asynchronously writes data to a file, replacing the file if it already exists.
++++         * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * URL support is _experimental_.
++++         * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
++++         * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
++++         * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag.
++++         * If `encoding` is not supplied, the default of `'utf8'` is used.
++++         * If `mode` is not supplied, the default of `0o666` is used.
++++         * If `mode` is a string, it is parsed as an octal integer.
++++         * If `flag` is not supplied, the default of `'w'` is used.
++++         */
++++        function __promisify__(
++++            path: PathOrFileDescriptor,
++++            data: string | NodeJS.ArrayBufferView,
++++            options?: WriteFileOptions,
++++        ): Promise<void>;
++++    }
++++    /**
++++     * Returns `undefined`.
++++     *
++++     * The `mode` option only affects the newly created file. See {@link open} for more details.
++++     *
++++     * For detailed information, see the documentation of the asynchronous version of
++++     * this API: {@link writeFile}.
++++     * @since v0.1.29
++++     * @param file filename or file descriptor
++++     */
++++    export function writeFileSync(
++++        file: PathOrFileDescriptor,
++++        data: string | NodeJS.ArrayBufferView,
++++        options?: WriteFileOptions,
++++    ): void;
++++    /**
++++     * Asynchronously append data to a file, creating the file if it does not yet
++++     * exist. `data` can be a string or a `Buffer`.
++++     *
++++     * The `mode` option only affects the newly created file. See {@link open} for more details.
++++     *
++++     * ```js
++++     * import { appendFile } from 'node:fs';
++++     *
++++     * appendFile('message.txt', 'data to append', (err) => {
++++     *   if (err) throw err;
++++     *   console.log('The "data to append" was appended to file!');
++++     * });
++++     * ```
++++     *
++++     * If `options` is a string, then it specifies the encoding:
++++     *
++++     * ```js
++++     * import { appendFile } from 'node:fs';
++++     *
++++     * appendFile('message.txt', 'data to append', 'utf8', callback);
++++     * ```
++++     *
++++     * The `path` may be specified as a numeric file descriptor that has been opened
++++     * for appending (using `fs.open()` or `fs.openSync()`). The file descriptor will
++++     * not be closed automatically.
++++     *
++++     * ```js
++++     * import { open, close, appendFile } from 'node:fs';
++++     *
++++     * function closeFd(fd) {
++++     *   close(fd, (err) => {
++++     *     if (err) throw err;
++++     *   });
++++     * }
++++     *
++++     * open('message.txt', 'a', (err, fd) => {
++++     *   if (err) throw err;
++++     *
++++     *   try {
++++     *     appendFile(fd, 'data to append', 'utf8', (err) => {
++++     *       closeFd(fd);
++++     *       if (err) throw err;
++++     *     });
++++     *   } catch (err) {
++++     *     closeFd(fd);
++++     *     throw err;
++++     *   }
++++     * });
++++     * ```
++++     * @since v0.6.7
++++     * @param path filename or file descriptor
++++     */
++++    export function appendFile(
++++        path: PathOrFileDescriptor,
++++        data: string | Uint8Array,
++++        options: WriteFileOptions,
++++        callback: NoParamCallback,
++++    ): void;
++++    /**
++++     * Asynchronously append data to a file, creating the file if it does not exist.
++++     * @param file A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
++++     * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
++++     */
++++    export function appendFile(file: PathOrFileDescriptor, data: string | Uint8Array, callback: NoParamCallback): void;
++++    export namespace appendFile {
++++        /**
++++         * Asynchronously append data to a file, creating the file if it does not exist.
++++         * @param file A path to a file. If a URL is provided, it must use the `file:` protocol.
++++         * URL support is _experimental_.
++++         * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
++++         * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
++++         * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag.
++++         * If `encoding` is not supplied, the default of `'utf8'` is used.
++++         * If `mode` is not supplied, the default of `0o666` is used.
++++         * If `mode` is a string, it is parsed as an octal integer.
++++         * If `flag` is not supplied, the default of `'a'` is used.
++++         */
++++        function __promisify__(
++++            file: PathOrFileDescriptor,
++++            data: string | Uint8Array,
++++            options?: WriteFileOptions,
++++        ): Promise<void>;
++++    }
++++    /**
++++     * Synchronously append data to a file, creating the file if it does not yet
++++     * exist. `data` can be a string or a `Buffer`.
++++     *
++++     * The `mode` option only affects the newly created file. See {@link open} for more details.
++++     *
++++     * ```js
++++     * import { appendFileSync } from 'node:fs';
++++     *
++++     * try {
++++     *   appendFileSync('message.txt', 'data to append');
++++     *   console.log('The "data to append" was appended to file!');
++++     * } catch (err) {
++++     *   // Handle the error
++++     * }
++++     * ```
++++     *
++++     * If `options` is a string, then it specifies the encoding:
++++     *
++++     * ```js
++++     * import { appendFileSync } from 'node:fs';
++++     *
++++     * appendFileSync('message.txt', 'data to append', 'utf8');
++++     * ```
++++     *
++++     * The `path` may be specified as a numeric file descriptor that has been opened
++++     * for appending (using `fs.open()` or `fs.openSync()`). The file descriptor will
++++     * not be closed automatically.
++++     *
++++     * ```js
++++     * import { openSync, closeSync, appendFileSync } from 'node:fs';
++++     *
++++     * let fd;
++++     *
++++     * try {
++++     *   fd = openSync('message.txt', 'a');
++++     *   appendFileSync(fd, 'data to append', 'utf8');
++++     * } catch (err) {
++++     *   // Handle the error
++++     * } finally {
++++     *   if (fd !== undefined)
++++     *     closeSync(fd);
++++     * }
++++     * ```
++++     * @since v0.6.7
++++     * @param path filename or file descriptor
++++     */
++++    export function appendFileSync(
++++        path: PathOrFileDescriptor,
++++        data: string | Uint8Array,
++++        options?: WriteFileOptions,
++++    ): void;
++++    /**
++++     * Watch for changes on `filename`. The callback `listener` will be called each
++++     * time the file is accessed.
++++     *
++++     * The `options` argument may be omitted. If provided, it should be an object. The `options` object may contain a boolean named `persistent` that indicates
++++     * whether the process should continue to run as long as files are being watched.
++++     * The `options` object may specify an `interval` property indicating how often the
++++     * target should be polled in milliseconds.
++++     *
++++     * The `listener` gets two arguments the current stat object and the previous
++++     * stat object:
++++     *
++++     * ```js
++++     * import { watchFile } from 'fs';
++++     *
++++     * watchFile('message.text', (curr, prev) => {
++++     *   console.log(`the current mtime is: ${curr.mtime}`);
++++     *   console.log(`the previous mtime was: ${prev.mtime}`);
++++     * });
++++     * ```
++++     *
++++     * These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`,
++++     * the numeric values in these objects are specified as `BigInt`s.
++++     *
++++     * To be notified when the file was modified, not just accessed, it is necessary
++++     * to compare `curr.mtimeMs` and `prev.mtimeMs`.
++++     *
++++     * When an `fs.watchFile` operation results in an `ENOENT` error, it
++++     * will invoke the listener once, with all the fields zeroed (or, for dates, the
++++     * Unix Epoch). If the file is created later on, the listener will be called
++++     * again, with the latest stat objects. This is a change in functionality since
++++     * v0.10.
++++     *
++++     * Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible.
++++     *
++++     * When a file being watched by `fs.watchFile()` disappears and reappears,
++++     * then the contents of `previous` in the second callback event (the file's
++++     * reappearance) will be the same as the contents of `previous` in the first
++++     * callback event (its disappearance).
++++     *
++++     * This happens when:
++++     *
++++     * * the file is deleted, followed by a restore
++++     * * the file is renamed and then renamed a second time back to its original name
++++     * @since v0.1.31
++++     */
++++    export interface WatchFileOptions {
++++        bigint?: boolean | undefined;
++++        persistent?: boolean | undefined;
++++        interval?: number | undefined;
++++    }
++++    /**
++++     * Watch for changes on `filename`. The callback `listener` will be called each
++++     * time the file is accessed.
++++     *
++++     * The `options` argument may be omitted. If provided, it should be an object. The `options` object may contain a boolean named `persistent` that indicates
++++     * whether the process should continue to run as long as files are being watched.
++++     * The `options` object may specify an `interval` property indicating how often the
++++     * target should be polled in milliseconds.
++++     *
++++     * The `listener` gets two arguments the current stat object and the previous
++++     * stat object:
++++     *
++++     * ```js
++++     * import { watchFile } from 'node:fs';
++++     *
++++     * watchFile('message.text', (curr, prev) => {
++++     *   console.log(`the current mtime is: ${curr.mtime}`);
++++     *   console.log(`the previous mtime was: ${prev.mtime}`);
++++     * });
++++     * ```
++++     *
++++     * These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`,
++++     * the numeric values in these objects are specified as `BigInt`s.
++++     *
++++     * To be notified when the file was modified, not just accessed, it is necessary
++++     * to compare `curr.mtimeMs` and `prev.mtimeMs`.
++++     *
++++     * When an `fs.watchFile` operation results in an `ENOENT` error, it
++++     * will invoke the listener once, with all the fields zeroed (or, for dates, the
++++     * Unix Epoch). If the file is created later on, the listener will be called
++++     * again, with the latest stat objects. This is a change in functionality since
++++     * v0.10.
++++     *
++++     * Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible.
++++     *
++++     * When a file being watched by `fs.watchFile()` disappears and reappears,
++++     * then the contents of `previous` in the second callback event (the file's
++++     * reappearance) will be the same as the contents of `previous` in the first
++++     * callback event (its disappearance).
++++     *
++++     * This happens when:
++++     *
++++     * * the file is deleted, followed by a restore
++++     * * the file is renamed and then renamed a second time back to its original name
++++     * @since v0.1.31
++++     */
++++    export function watchFile(
++++        filename: PathLike,
++++        options:
++++            | (WatchFileOptions & {
++++                bigint?: false | undefined;
++++            })
++++            | undefined,
++++        listener: StatsListener,
++++    ): StatWatcher;
++++    export function watchFile(
++++        filename: PathLike,
++++        options:
++++            | (WatchFileOptions & {
++++                bigint: true;
++++            })
++++            | undefined,
++++        listener: BigIntStatsListener,
++++    ): StatWatcher;
++++    /**
++++     * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed.
++++     * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
++++     */
++++    export function watchFile(filename: PathLike, listener: StatsListener): StatWatcher;
++++    /**
++++     * Stop watching for changes on `filename`. If `listener` is specified, only that
++++     * particular listener is removed. Otherwise, _all_ listeners are removed,
++++     * effectively stopping watching of `filename`.
++++     *
++++     * Calling `fs.unwatchFile()` with a filename that is not being watched is a
++++     * no-op, not an error.
++++     *
++++     * Using {@link watch} is more efficient than `fs.watchFile()` and `fs.unwatchFile()`. `fs.watch()` should be used instead of `fs.watchFile()` and `fs.unwatchFile()` when possible.
++++     * @since v0.1.31
++++     * @param listener Optional, a listener previously attached using `fs.watchFile()`
++++     */
++++    export function unwatchFile(filename: PathLike, listener?: StatsListener): void;
++++    export function unwatchFile(filename: PathLike, listener?: BigIntStatsListener): void;
++++    export interface WatchOptions extends Abortable {
++++        encoding?: BufferEncoding | "buffer" | undefined;
++++        persistent?: boolean | undefined;
++++        recursive?: boolean | undefined;
++++    }
++++    export type WatchEventType = "rename" | "change";
++++    export type WatchListener<T> = (event: WatchEventType, filename: T | null) => void;
++++    export type StatsListener = (curr: Stats, prev: Stats) => void;
++++    export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void;
++++    /**
++++     * Watch for changes on `filename`, where `filename` is either a file or a
++++     * directory.
++++     *
++++     * The second argument is optional. If `options` is provided as a string, it
++++     * specifies the `encoding`. Otherwise `options` should be passed as an object.
++++     *
++++     * The listener callback gets two arguments `(eventType, filename)`. `eventType`is either `'rename'` or `'change'`, and `filename` is the name of the file
++++     * which triggered the event.
++++     *
++++     * On most platforms, `'rename'` is emitted whenever a filename appears or
++++     * disappears in the directory.
++++     *
++++     * The listener callback is attached to the `'change'` event fired by `fs.FSWatcher`, but it is not the same thing as the `'change'` value of `eventType`.
++++     *
++++     * If a `signal` is passed, aborting the corresponding AbortController will close
++++     * the returned `fs.FSWatcher`.
++++     * @since v0.5.10
++++     * @param listener
++++     */
++++    export function watch(
++++        filename: PathLike,
++++        options:
++++            | (WatchOptions & {
++++                encoding: "buffer";
++++            })
++++            | "buffer",
++++        listener?: WatchListener<Buffer>,
++++    ): FSWatcher;
++++    /**
++++     * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
++++     * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
++++     * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
++++     * If `encoding` is not supplied, the default of `'utf8'` is used.
++++     * If `persistent` is not supplied, the default of `true` is used.
++++     * If `recursive` is not supplied, the default of `false` is used.
++++     */
++++    export function watch(
++++        filename: PathLike,
++++        options?: WatchOptions | BufferEncoding | null,
++++        listener?: WatchListener<string>,
++++    ): FSWatcher;
++++    /**
++++     * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
++++     * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
++++     * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
++++     * If `encoding` is not supplied, the default of `'utf8'` is used.
++++     * If `persistent` is not supplied, the default of `true` is used.
++++     * If `recursive` is not supplied, the default of `false` is used.
++++     */
++++    export function watch(
++++        filename: PathLike,
++++        options: WatchOptions | string,
++++        listener?: WatchListener<string | Buffer>,
++++    ): FSWatcher;
++++    /**
++++     * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
++++     * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
++++     */
++++    export function watch(filename: PathLike, listener?: WatchListener<string>): FSWatcher;
++++    /**
++++     * Test whether or not the given path exists by checking with the file system.
++++     * Then call the `callback` argument with either true or false:
++++     *
++++     * ```js
++++     * import { exists } from 'node:fs';
++++     *
++++     * exists('/etc/passwd', (e) => {
++++     *   console.log(e ? 'it exists' : 'no passwd!');
++++     * });
++++     * ```
++++     *
++++     * **The parameters for this callback are not consistent with other Node.js**
++++     * **callbacks.** Normally, the first parameter to a Node.js callback is an `err` parameter, optionally followed by other parameters. The `fs.exists()` callback
++++     * has only one boolean parameter. This is one reason `fs.access()` is recommended
++++     * instead of `fs.exists()`.
++++     *
++++     * Using `fs.exists()` to check for the existence of a file before calling `fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended. Doing
++++     * so introduces a race condition, since other processes may change the file's
++++     * state between the two calls. Instead, user code should open/read/write the
++++     * file directly and handle the error raised if the file does not exist.
++++     *
++++     * **write (NOT RECOMMENDED)**
++++     *
++++     * ```js
++++     * import { exists, open, close } from 'node:fs';
++++     *
++++     * exists('myfile', (e) => {
++++     *   if (e) {
++++     *     console.error('myfile already exists');
++++     *   } else {
++++     *     open('myfile', 'wx', (err, fd) => {
++++     *       if (err) throw err;
++++     *
++++     *       try {
++++     *         writeMyData(fd);
++++     *       } finally {
++++     *         close(fd, (err) => {
++++     *           if (err) throw err;
++++     *         });
++++     *       }
++++     *     });
++++     *   }
++++     * });
++++     * ```
++++     *
++++     * **write (RECOMMENDED)**
++++     *
++++     * ```js
++++     * import { open, close } from 'node:fs';
++++     * open('myfile', 'wx', (err, fd) => {
++++     *   if (err) {
++++     *     if (err.code === 'EEXIST') {
++++     *       console.error('myfile already exists');
++++     *       return;
++++     *     }
++++     *
++++     *     throw err;
++++     *   }
++++     *
++++     *   try {
++++     *     writeMyData(fd);
++++     *   } finally {
++++     *     close(fd, (err) => {
++++     *       if (err) throw err;
++++     *     });
++++     *   }
++++     * });
++++     * ```
++++     *
++++     * **read (NOT RECOMMENDED)**
++++     *
++++     * ```js
++++     * import { open, close, exists } from 'node:fs';
++++     *
++++     * exists('myfile', (e) => {
++++     *   if (e) {
++++     *     open('myfile', 'r', (err, fd) => {
++++     *       if (err) throw err;
++++     *
++++     *       try {
++++     *         readMyData(fd);
++++     *       } finally {
++++     *         close(fd, (err) => {
++++     *           if (err) throw err;
++++     *         });
++++     *       }
++++     *     });
++++     *   } else {
++++     *     console.error('myfile does not exist');
++++     *   }
++++     * });
++++     * ```
++++     *
++++     * **read (RECOMMENDED)**
++++     *
++++     * ```js
++++     * import { open, close } from 'node:fs';
++++     *
++++     * open('myfile', 'r', (err, fd) => {
++++     *   if (err) {
++++     *     if (err.code === 'ENOENT') {
++++     *       console.error('myfile does not exist');
++++     *       return;
++++     *     }
++++     *
++++     *     throw err;
++++     *   }
++++     *
++++     *   try {
++++     *     readMyData(fd);
++++     *   } finally {
++++     *     close(fd, (err) => {
++++     *       if (err) throw err;
++++     *     });
++++     *   }
++++     * });
++++     * ```
++++     *
++++     * The "not recommended" examples above check for existence and then use the
++++     * file; the "recommended" examples are better because they use the file directly
++++     * and handle the error, if any.
++++     *
++++     * In general, check for the existence of a file only if the file won't be
++++     * used directly, for example when its existence is a signal from another
++++     * process.
++++     * @since v0.0.2
++++     * @deprecated Since v1.0.0 - Use {@link stat} or {@link access} instead.
++++     */
++++    export function exists(path: PathLike, callback: (exists: boolean) => void): void;
++++    /** @deprecated */
++++    export namespace exists {
++++        /**
++++         * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
++++         * URL support is _experimental_.
++++         */
++++        function __promisify__(path: PathLike): Promise<boolean>;
++++    }
++++    /**
++++     * Returns `true` if the path exists, `false` otherwise.
++++     *
++++     * For detailed information, see the documentation of the asynchronous version of
++++     * this API: {@link exists}.
++++     *
++++     * `fs.exists()` is deprecated, but `fs.existsSync()` is not. The `callback` parameter to `fs.exists()` accepts parameters that are inconsistent with other
++++     * Node.js callbacks. `fs.existsSync()` does not use a callback.
++++     *
++++     * ```js
++++     * import { existsSync } from 'node:fs';
++++     *
++++     * if (existsSync('/etc/passwd'))
++++     *   console.log('The path exists.');
++++     * ```
++++     * @since v0.1.21
++++     */
++++    export function existsSync(path: PathLike): boolean;
++++    export namespace constants {
++++        // File Access Constants
++++        /** Constant for fs.access(). File is visible to the calling process. */
++++        const F_OK: number;
++++        /** Constant for fs.access(). File can be read by the calling process. */
++++        const R_OK: number;
++++        /** Constant for fs.access(). File can be written by the calling process. */
++++        const W_OK: number;
++++        /** Constant for fs.access(). File can be executed by the calling process. */
++++        const X_OK: number;
++++        // File Copy Constants
++++        /** Constant for fs.copyFile. Flag indicating the destination file should not be overwritten if it already exists. */
++++        const COPYFILE_EXCL: number;
++++        /**
++++         * Constant for fs.copyFile. copy operation will attempt to create a copy-on-write reflink.
++++         * If the underlying platform does not support copy-on-write, then a fallback copy mechanism is used.
++++         */
++++        const COPYFILE_FICLONE: number;
++++        /**
++++         * Constant for fs.copyFile. Copy operation will attempt to create a copy-on-write reflink.
++++         * If the underlying platform does not support copy-on-write, then the operation will fail with an error.
++++         */
++++        const COPYFILE_FICLONE_FORCE: number;
++++        // File Open Constants
++++        /** Constant for fs.open(). Flag indicating to open a file for read-only access. */
++++        const O_RDONLY: number;
++++        /** Constant for fs.open(). Flag indicating to open a file for write-only access. */
++++        const O_WRONLY: number;
++++        /** Constant for fs.open(). Flag indicating to open a file for read-write access. */
++++        const O_RDWR: number;
++++        /** Constant for fs.open(). Flag indicating to create the file if it does not already exist. */
++++        const O_CREAT: number;
++++        /** Constant for fs.open(). Flag indicating that opening a file should fail if the O_CREAT flag is set and the file already exists. */
++++        const O_EXCL: number;
++++        /**
++++         * Constant for fs.open(). Flag indicating that if path identifies a terminal device,
++++         * opening the path shall not cause that terminal to become the controlling terminal for the process
++++         * (if the process does not already have one).
++++         */
++++        const O_NOCTTY: number;
++++        /** Constant for fs.open(). Flag indicating that if the file exists and is a regular file, and the file is opened successfully for write access, its length shall be truncated to zero. */
++++        const O_TRUNC: number;
++++        /** Constant for fs.open(). Flag indicating that data will be appended to the end of the file. */
++++        const O_APPEND: number;
++++        /** Constant for fs.open(). Flag indicating that the open should fail if the path is not a directory. */
++++        const O_DIRECTORY: number;
++++        /**
++++         * constant for fs.open().
++++         * Flag indicating reading accesses to the file system will no longer result in
++++         * an update to the atime information associated with the file.
++++         * This flag is available on Linux operating systems only.
++++         */
++++        const O_NOATIME: number;
++++        /** Constant for fs.open(). Flag indicating that the open should fail if the path is a symbolic link. */
++++        const O_NOFOLLOW: number;
++++        /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O. */
++++        const O_SYNC: number;
++++        /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O with write operations waiting for data integrity. */
++++        const O_DSYNC: number;
++++        /** Constant for fs.open(). Flag indicating to open the symbolic link itself rather than the resource it is pointing to. */
++++        const O_SYMLINK: number;
++++        /** Constant for fs.open(). When set, an attempt will be made to minimize caching effects of file I/O. */
++++        const O_DIRECT: number;
++++        /** Constant for fs.open(). Flag indicating to open the file in nonblocking mode when possible. */
++++        const O_NONBLOCK: number;
++++        // File Type Constants
++++        /** Constant for fs.Stats mode property for determining a file's type. Bit mask used to extract the file type code. */
++++        const S_IFMT: number;
++++        /** Constant for fs.Stats mode property for determining a file's type. File type constant for a regular file. */
++++        const S_IFREG: number;
++++        /** Constant for fs.Stats mode property for determining a file's type. File type constant for a directory. */
++++        const S_IFDIR: number;
++++        /** Constant for fs.Stats mode property for determining a file's type. File type constant for a character-oriented device file. */
++++        const S_IFCHR: number;
++++        /** Constant for fs.Stats mode property for determining a file's type. File type constant for a block-oriented device file. */
++++        const S_IFBLK: number;
++++        /** Constant for fs.Stats mode property for determining a file's type. File type constant for a FIFO/pipe. */
++++        const S_IFIFO: number;
++++        /** Constant for fs.Stats mode property for determining a file's type. File type constant for a symbolic link. */
++++        const S_IFLNK: number;
++++        /** Constant for fs.Stats mode property for determining a file's type. File type constant for a socket. */
++++        const S_IFSOCK: number;
++++        // File Mode Constants
++++        /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by owner. */
++++        const S_IRWXU: number;
++++        /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by owner. */
++++        const S_IRUSR: number;
++++        /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by owner. */
++++        const S_IWUSR: number;
++++        /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by owner. */
++++        const S_IXUSR: number;
++++        /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by group. */
++++        const S_IRWXG: number;
++++        /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by group. */
++++        const S_IRGRP: number;
++++        /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by group. */
++++        const S_IWGRP: number;
++++        /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by group. */
++++        const S_IXGRP: number;
++++        /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by others. */
++++        const S_IRWXO: number;
++++        /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by others. */
++++        const S_IROTH: number;
++++        /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by others. */
++++        const S_IWOTH: number;
++++        /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by others. */
++++        const S_IXOTH: number;
++++        /**
++++         * When set, a memory file mapping is used to access the file. This flag
++++         * is available on Windows operating systems only. On other operating systems,
++++         * this flag is ignored.
++++         */
++++        const UV_FS_O_FILEMAP: number;
++++    }
++++    /**
++++     * Tests a user's permissions for the file or directory specified by `path`.
++++     * The `mode` argument is an optional integer that specifies the accessibility
++++     * checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK`
++++     * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for
++++     * possible values of `mode`.
++++     *
++++     * The final argument, `callback`, is a callback function that is invoked with
++++     * a possible error argument. If any of the accessibility checks fail, the error
++++     * argument will be an `Error` object. The following examples check if `package.json` exists, and if it is readable or writable.
++++     *
++++     * ```js
++++     * import { access, constants } from 'node:fs';
++++     *
++++     * const file = 'package.json';
++++     *
++++     * // Check if the file exists in the current directory.
++++     * access(file, constants.F_OK, (err) => {
++++     *   console.log(`${file} ${err ? 'does not exist' : 'exists'}`);
++++     * });
++++     *
++++     * // Check if the file is readable.
++++     * access(file, constants.R_OK, (err) => {
++++     *   console.log(`${file} ${err ? 'is not readable' : 'is readable'}`);
++++     * });
++++     *
++++     * // Check if the file is writable.
++++     * access(file, constants.W_OK, (err) => {
++++     *   console.log(`${file} ${err ? 'is not writable' : 'is writable'}`);
++++     * });
++++     *
++++     * // Check if the file is readable and writable.
++++     * access(file, constants.R_OK | constants.W_OK, (err) => {
++++     *   console.log(`${file} ${err ? 'is not' : 'is'} readable and writable`);
++++     * });
++++     * ```
++++     *
++++     * Do not use `fs.access()` to check for the accessibility of a file before calling `fs.open()`, `fs.readFile()`, or `fs.writeFile()`. Doing
++++     * so introduces a race condition, since other processes may change the file's
++++     * state between the two calls. Instead, user code should open/read/write the
++++     * file directly and handle the error raised if the file is not accessible.
++++     *
++++     * **write (NOT RECOMMENDED)**
++++     *
++++     * ```js
++++     * import { access, open, close } from 'node:fs';
++++     *
++++     * access('myfile', (err) => {
++++     *   if (!err) {
++++     *     console.error('myfile already exists');
++++     *     return;
++++     *   }
++++     *
++++     *   open('myfile', 'wx', (err, fd) => {
++++     *     if (err) throw err;
++++     *
++++     *     try {
++++     *       writeMyData(fd);
++++     *     } finally {
++++     *       close(fd, (err) => {
++++     *         if (err) throw err;
++++     *       });
++++     *     }
++++     *   });
++++     * });
++++     * ```
++++     *
++++     * **write (RECOMMENDED)**
++++     *
++++     * ```js
++++     * import { open, close } from 'node:fs';
++++     *
++++     * open('myfile', 'wx', (err, fd) => {
++++     *   if (err) {
++++     *     if (err.code === 'EEXIST') {
++++     *       console.error('myfile already exists');
++++     *       return;
++++     *     }
++++     *
++++     *     throw err;
++++     *   }
++++     *
++++     *   try {
++++     *     writeMyData(fd);
++++     *   } finally {
++++     *     close(fd, (err) => {
++++     *       if (err) throw err;
++++     *     });
++++     *   }
++++     * });
++++     * ```
++++     *
++++     * **read (NOT RECOMMENDED)**
++++     *
++++     * ```js
++++     * import { access, open, close } from 'node:fs';
++++     * access('myfile', (err) => {
++++     *   if (err) {
++++     *     if (err.code === 'ENOENT') {
++++     *       console.error('myfile does not exist');
++++     *       return;
++++     *     }
++++     *
++++     *     throw err;
++++     *   }
++++     *
++++     *   open('myfile', 'r', (err, fd) => {
++++     *     if (err) throw err;
++++     *
++++     *     try {
++++     *       readMyData(fd);
++++     *     } finally {
++++     *       close(fd, (err) => {
++++     *         if (err) throw err;
++++     *       });
++++     *     }
++++     *   });
++++     * });
++++     * ```
++++     *
++++     * **read (RECOMMENDED)**
++++     *
++++     * ```js
++++     * import { open, close } from 'node:fs';
++++     *
++++     * open('myfile', 'r', (err, fd) => {
++++     *   if (err) {
++++     *     if (err.code === 'ENOENT') {
++++     *       console.error('myfile does not exist');
++++     *       return;
++++     *     }
++++     *
++++     *     throw err;
++++     *   }
++++     *
++++     *   try {
++++     *     readMyData(fd);
++++     *   } finally {
++++     *     close(fd, (err) => {
++++     *       if (err) throw err;
++++     *     });
++++     *   }
++++     * });
++++     * ```
++++     *
++++     * The "not recommended" examples above check for accessibility and then use the
++++     * file; the "recommended" examples are better because they use the file directly
++++     * and handle the error, if any.
++++     *
++++     * In general, check for the accessibility of a file only if the file will not be
++++     * used directly, for example when its accessibility is a signal from another
++++     * process.
++++     *
++++     * On Windows, access-control policies (ACLs) on a directory may limit access to
++++     * a file or directory. The `fs.access()` function, however, does not check the
++++     * ACL and therefore may report that a path is accessible even if the ACL restricts
++++     * the user from reading or writing to it.
++++     * @since v0.11.15
++++     * @param [mode=fs.constants.F_OK]
++++     */
++++    export function access(path: PathLike, mode: number | undefined, callback: NoParamCallback): void;
++++    /**
++++     * Asynchronously tests a user's permissions for the file specified by path.
++++     * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
++++     */
++++    export function access(path: PathLike, callback: NoParamCallback): void;
++++    export namespace access {
++++        /**
++++         * Asynchronously tests a user's permissions for the file specified by path.
++++         * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
++++         * URL support is _experimental_.
++++         */
++++        function __promisify__(path: PathLike, mode?: number): Promise<void>;
++++    }
++++    /**
++++     * Synchronously tests a user's permissions for the file or directory specified
++++     * by `path`. The `mode` argument is an optional integer that specifies the
++++     * accessibility checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and
++++     * `fs.constants.X_OK` (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for
++++     * possible values of `mode`.
++++     *
++++     * If any of the accessibility checks fail, an `Error` will be thrown. Otherwise,
++++     * the method will return `undefined`.
++++     *
++++     * ```js
++++     * import { accessSync, constants } from 'node:fs';
++++     *
++++     * try {
++++     *   accessSync('etc/passwd', constants.R_OK | constants.W_OK);
++++     *   console.log('can read/write');
++++     * } catch (err) {
++++     *   console.error('no access!');
++++     * }
++++     * ```
++++     * @since v0.11.15
++++     * @param [mode=fs.constants.F_OK]
++++     */
++++    export function accessSync(path: PathLike, mode?: number): void;
++++    interface StreamOptions {
++++        flags?: string | undefined;
++++        encoding?: BufferEncoding | undefined;
++++        fd?: number | promises.FileHandle | undefined;
++++        mode?: number | undefined;
++++        autoClose?: boolean | undefined;
++++        emitClose?: boolean | undefined;
++++        start?: number | undefined;
++++        signal?: AbortSignal | null | undefined;
++++        highWaterMark?: number | undefined;
++++    }
++++    interface FSImplementation {
++++        open?: (...args: any[]) => any;
++++        close?: (...args: any[]) => any;
++++    }
++++    interface CreateReadStreamFSImplementation extends FSImplementation {
++++        read: (...args: any[]) => any;
++++    }
++++    interface CreateWriteStreamFSImplementation extends FSImplementation {
++++        write: (...args: any[]) => any;
++++        writev?: (...args: any[]) => any;
++++    }
++++    interface ReadStreamOptions extends StreamOptions {
++++        fs?: CreateReadStreamFSImplementation | null | undefined;
++++        end?: number | undefined;
++++    }
++++    interface WriteStreamOptions extends StreamOptions {
++++        fs?: CreateWriteStreamFSImplementation | null | undefined;
++++        flush?: boolean | undefined;
++++    }
++++    /**
++++     * Unlike the 16 KiB default `highWaterMark` for a `stream.Readable`, the stream
++++     * returned by this method has a default `highWaterMark` of 64 KiB.
++++     *
++++     * `options` can include `start` and `end` values to read a range of bytes from
++++     * the file instead of the entire file. Both `start` and `end` are inclusive and
++++     * start counting at 0, allowed values are in the
++++     * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `fd` is specified and `start` is
++++     * omitted or `undefined`, `fs.createReadStream()` reads sequentially from the
++++     * current file position. The `encoding` can be any one of those accepted by `Buffer`.
++++     *
++++     * If `fd` is specified, `ReadStream` will ignore the `path` argument and will use
++++     * the specified file descriptor. This means that no `'open'` event will be
++++     * emitted. `fd` should be blocking; non-blocking `fd`s should be passed to `net.Socket`.
++++     *
++++     * If `fd` points to a character device that only supports blocking reads
++++     * (such as keyboard or sound card), read operations do not finish until data is
++++     * available. This can prevent the process from exiting and the stream from
++++     * closing naturally.
++++     *
++++     * By default, the stream will emit a `'close'` event after it has been
++++     * destroyed.  Set the `emitClose` option to `false` to change this behavior.
++++     *
++++     * By providing the `fs` option, it is possible to override the corresponding `fs` implementations for `open`, `read`, and `close`. When providing the `fs` option,
++++     * an override for `read` is required. If no `fd` is provided, an override for `open` is also required. If `autoClose` is `true`, an override for `close` is
++++     * also required.
++++     *
++++     * ```js
++++     * import { createReadStream } from 'node:fs';
++++     *
++++     * // Create a stream from some character device.
++++     * const stream = createReadStream('/dev/input/event0');
++++     * setTimeout(() => {
++++     *   stream.close(); // This may not close the stream.
++++     *   // Artificially marking end-of-stream, as if the underlying resource had
++++     *   // indicated end-of-file by itself, allows the stream to close.
++++     *   // This does not cancel pending read operations, and if there is such an
++++     *   // operation, the process may still not be able to exit successfully
++++     *   // until it finishes.
++++     *   stream.push(null);
++++     *   stream.read(0);
++++     * }, 100);
++++     * ```
++++     *
++++     * If `autoClose` is false, then the file descriptor won't be closed, even if
++++     * there's an error. It is the application's responsibility to close it and make
++++     * sure there's no file descriptor leak. If `autoClose` is set to true (default
++++     * behavior), on `'error'` or `'end'` the file descriptor will be closed
++++     * automatically.
++++     *
++++     * `mode` sets the file mode (permission and sticky bits), but only if the
++++     * file was created.
++++     *
++++     * An example to read the last 10 bytes of a file which is 100 bytes long:
++++     *
++++     * ```js
++++     * import { createReadStream } from 'node:fs';
++++     *
++++     * createReadStream('sample.txt', { start: 90, end: 99 });
++++     * ```
++++     *
++++     * If `options` is a string, then it specifies the encoding.
++++     * @since v0.1.31
++++     */
++++    export function createReadStream(path: PathLike, options?: BufferEncoding | ReadStreamOptions): ReadStream;
++++    /**
++++     * `options` may also include a `start` option to allow writing data at some
++++     * position past the beginning of the file, allowed values are in the
++++     * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than
++++     * replacing it may require the `flags` option to be set to `r+` rather than the
++++     * default `w`. The `encoding` can be any one of those accepted by `Buffer`.
++++     *
++++     * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false,
++++     * then the file descriptor won't be closed, even if there's an error.
++++     * It is the application's responsibility to close it and make sure there's no
++++     * file descriptor leak.
++++     *
++++     * By default, the stream will emit a `'close'` event after it has been
++++     * destroyed.  Set the `emitClose` option to `false` to change this behavior.
++++     *
++++     * By providing the `fs` option it is possible to override the corresponding `fs` implementations for `open`, `write`, `writev`, and `close`. Overriding `write()` without `writev()` can reduce
++++     * performance as some optimizations (`_writev()`)
++++     * will be disabled. When providing the `fs` option, overrides for at least one of `write` and `writev` are required. If no `fd` option is supplied, an override
++++     * for `open` is also required. If `autoClose` is `true`, an override for `close` is also required.
++++     *
++++     * Like `fs.ReadStream`, if `fd` is specified, `fs.WriteStream` will ignore the `path` argument and will use the specified file descriptor. This means that no `'open'` event will be
++++     * emitted. `fd` should be blocking; non-blocking `fd`s
++++     * should be passed to `net.Socket`.
++++     *
++++     * If `options` is a string, then it specifies the encoding.
++++     * @since v0.1.31
++++     */
++++    export function createWriteStream(path: PathLike, options?: BufferEncoding | WriteStreamOptions): WriteStream;
++++    /**
++++     * Forces all currently queued I/O operations associated with the file to the
++++     * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. No arguments other
++++     * than a possible
++++     * exception are given to the completion callback.
++++     * @since v0.1.96
++++     */
++++    export function fdatasync(fd: number, callback: NoParamCallback): void;
++++    export namespace fdatasync {
++++        /**
++++         * Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device.
++++         * @param fd A file descriptor.
++++         */
++++        function __promisify__(fd: number): Promise<void>;
++++    }
++++    /**
++++     * Forces all currently queued I/O operations associated with the file to the
++++     * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. Returns `undefined`.
++++     * @since v0.1.96
++++     */
++++    export function fdatasyncSync(fd: number): void;
++++    /**
++++     * Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it
++++     * already exists. No arguments other than a possible exception are given to the
++++     * callback function. Node.js makes no guarantees about the atomicity of the copy
++++     * operation. If an error occurs after the destination file has been opened for
++++     * writing, Node.js will attempt to remove the destination.
++++     *
++++     * `mode` is an optional integer that specifies the behavior
++++     * of the copy operation. It is possible to create a mask consisting of the bitwise
++++     * OR of two or more values (e.g.`fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`).
++++     *
++++     * * `fs.constants.COPYFILE_EXCL`: The copy operation will fail if `dest` already
++++     * exists.
++++     * * `fs.constants.COPYFILE_FICLONE`: The copy operation will attempt to create a
++++     * copy-on-write reflink. If the platform does not support copy-on-write, then a
++++     * fallback copy mechanism is used.
++++     * * `fs.constants.COPYFILE_FICLONE_FORCE`: The copy operation will attempt to
++++     * create a copy-on-write reflink. If the platform does not support
++++     * copy-on-write, then the operation will fail.
++++     *
++++     * ```js
++++     * import { copyFile, constants } from 'node:fs';
++++     *
++++     * function callback(err) {
++++     *   if (err) throw err;
++++     *   console.log('source.txt was copied to destination.txt');
++++     * }
++++     *
++++     * // destination.txt will be created or overwritten by default.
++++     * copyFile('source.txt', 'destination.txt', callback);
++++     *
++++     * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists.
++++     * copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL, callback);
++++     * ```
++++     * @since v8.5.0
++++     * @param src source filename to copy
++++     * @param dest destination filename of the copy operation
++++     * @param [mode=0] modifiers for copy operation.
++++     */
++++    export function copyFile(src: PathLike, dest: PathLike, callback: NoParamCallback): void;
++++    export function copyFile(src: PathLike, dest: PathLike, mode: number, callback: NoParamCallback): void;
++++    export namespace copyFile {
++++        function __promisify__(src: PathLike, dst: PathLike, mode?: number): Promise<void>;
++++    }
++++    /**
++++     * Synchronously copies `src` to `dest`. By default, `dest` is overwritten if it
++++     * already exists. Returns `undefined`. Node.js makes no guarantees about the
++++     * atomicity of the copy operation. If an error occurs after the destination file
++++     * has been opened for writing, Node.js will attempt to remove the destination.
++++     *
++++     * `mode` is an optional integer that specifies the behavior
++++     * of the copy operation. It is possible to create a mask consisting of the bitwise
++++     * OR of two or more values (e.g.`fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`).
++++     *
++++     * * `fs.constants.COPYFILE_EXCL`: The copy operation will fail if `dest` already
++++     * exists.
++++     * * `fs.constants.COPYFILE_FICLONE`: The copy operation will attempt to create a
++++     * copy-on-write reflink. If the platform does not support copy-on-write, then a
++++     * fallback copy mechanism is used.
++++     * * `fs.constants.COPYFILE_FICLONE_FORCE`: The copy operation will attempt to
++++     * create a copy-on-write reflink. If the platform does not support
++++     * copy-on-write, then the operation will fail.
++++     *
++++     * ```js
++++     * import { copyFileSync, constants } from 'node:fs';
++++     *
++++     * // destination.txt will be created or overwritten by default.
++++     * copyFileSync('source.txt', 'destination.txt');
++++     * console.log('source.txt was copied to destination.txt');
++++     *
++++     * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists.
++++     * copyFileSync('source.txt', 'destination.txt', constants.COPYFILE_EXCL);
++++     * ```
++++     * @since v8.5.0
++++     * @param src source filename to copy
++++     * @param dest destination filename of the copy operation
++++     * @param [mode=0] modifiers for copy operation.
++++     */
++++    export function copyFileSync(src: PathLike, dest: PathLike, mode?: number): void;
++++    /**
++++     * Write an array of `ArrayBufferView`s to the file specified by `fd` using `writev()`.
++++     *
++++     * `position` is the offset from the beginning of the file where this data
++++     * should be written. If `typeof position !== 'number'`, the data will be written
++++     * at the current position.
++++     *
++++     * The callback will be given three arguments: `err`, `bytesWritten`, and `buffers`. `bytesWritten` is how many bytes were written from `buffers`.
++++     *
++++     * If this method is `util.promisify()` ed, it returns a promise for an `Object` with `bytesWritten` and `buffers` properties.
++++     *
++++     * It is unsafe to use `fs.writev()` multiple times on the same file without
++++     * waiting for the callback. For this scenario, use {@link createWriteStream}.
++++     *
++++     * On Linux, positional writes don't work when the file is opened in append mode.
++++     * The kernel ignores the position argument and always appends the data to
++++     * the end of the file.
++++     * @since v12.9.0
++++     * @param [position='null']
++++     */
++++    export function writev(
++++        fd: number,
++++        buffers: readonly NodeJS.ArrayBufferView[],
++++        cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
++++    ): void;
++++    export function writev(
++++        fd: number,
++++        buffers: readonly NodeJS.ArrayBufferView[],
++++        position: number,
++++        cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
++++    ): void;
++++    export interface WriteVResult {
++++        bytesWritten: number;
++++        buffers: NodeJS.ArrayBufferView[];
++++    }
++++    export namespace writev {
++++        function __promisify__(
++++            fd: number,
++++            buffers: readonly NodeJS.ArrayBufferView[],
++++            position?: number,
++++        ): Promise<WriteVResult>;
++++    }
++++    /**
++++     * For detailed information, see the documentation of the asynchronous version of
++++     * this API: {@link writev}.
++++     * @since v12.9.0
++++     * @param [position='null']
++++     * @return The number of bytes written.
++++     */
++++    export function writevSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number;
++++    /**
++++     * Read from a file specified by `fd` and write to an array of `ArrayBufferView`s
++++     * using `readv()`.
++++     *
++++     * `position` is the offset from the beginning of the file from where data
++++     * should be read. If `typeof position !== 'number'`, the data will be read
++++     * from the current position.
++++     *
++++     * The callback will be given three arguments: `err`, `bytesRead`, and `buffers`. `bytesRead` is how many bytes were read from the file.
++++     *
++++     * If this method is invoked as its `util.promisify()` ed version, it returns
++++     * a promise for an `Object` with `bytesRead` and `buffers` properties.
++++     * @since v13.13.0, v12.17.0
++++     * @param [position='null']
++++     */
++++    export function readv(
++++        fd: number,
++++        buffers: readonly NodeJS.ArrayBufferView[],
++++        cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void,
++++    ): void;
++++    export function readv(
++++        fd: number,
++++        buffers: readonly NodeJS.ArrayBufferView[],
++++        position: number,
++++        cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void,
++++    ): void;
++++    export interface ReadVResult {
++++        bytesRead: number;
++++        buffers: NodeJS.ArrayBufferView[];
++++    }
++++    export namespace readv {
++++        function __promisify__(
++++            fd: number,
++++            buffers: readonly NodeJS.ArrayBufferView[],
++++            position?: number,
++++        ): Promise<ReadVResult>;
++++    }
++++    /**
++++     * For detailed information, see the documentation of the asynchronous version of
++++     * this API: {@link readv}.
++++     * @since v13.13.0, v12.17.0
++++     * @param [position='null']
++++     * @return The number of bytes read.
++++     */
++++    export function readvSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number;
++++
++++    export interface OpenAsBlobOptions {
++++        /**
++++         * An optional mime type for the blob.
++++         *
++++         * @default 'undefined'
++++         */
++++        type?: string | undefined;
++++    }
++++
++++    /**
++++     * Returns a `Blob` whose data is backed by the given file.
++++     *
++++     * The file must not be modified after the `Blob` is created. Any modifications
++++     * will cause reading the `Blob` data to fail with a `DOMException` error.
++++     * Synchronous stat operations on the file when the `Blob` is created, and before
++++     * each read in order to detect whether the file data has been modified on disk.
++++     *
++++     * ```js
++++     * import { openAsBlob } from 'node:fs';
++++     *
++++     * const blob = await openAsBlob('the.file.txt');
++++     * const ab = await blob.arrayBuffer();
++++     * blob.stream();
++++     * ```
++++     * @since v19.8.0
++++     * @experimental
++++     */
++++    export function openAsBlob(path: PathLike, options?: OpenAsBlobOptions): Promise<Blob>;
++++
++++    export interface OpenDirOptions {
++++        /**
++++         * @default 'utf8'
++++         */
++++        encoding?: BufferEncoding | undefined;
++++        /**
++++         * Number of directory entries that are buffered
++++         * internally when reading from the directory. Higher values lead to better
++++         * performance but higher memory usage.
++++         * @default 32
++++         */
++++        bufferSize?: number | undefined;
++++        /**
++++         * @default false
++++         */
++++        recursive?: boolean;
++++    }
++++    /**
++++     * Synchronously open a directory. See [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html).
++++     *
++++     * Creates an `fs.Dir`, which contains all further functions for reading from
++++     * and cleaning up the directory.
++++     *
++++     * The `encoding` option sets the encoding for the `path` while opening the
++++     * directory and subsequent read operations.
++++     * @since v12.12.0
++++     */
++++    export function opendirSync(path: PathLike, options?: OpenDirOptions): Dir;
++++    /**
++++     * Asynchronously open a directory. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for
++++     * more details.
++++     *
++++     * Creates an `fs.Dir`, which contains all further functions for reading from
++++     * and cleaning up the directory.
++++     *
++++     * The `encoding` option sets the encoding for the `path` while opening the
++++     * directory and subsequent read operations.
++++     * @since v12.12.0
++++     */
++++    export function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
++++    export function opendir(
++++        path: PathLike,
++++        options: OpenDirOptions,
++++        cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void,
++++    ): void;
++++    export namespace opendir {
++++        function __promisify__(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
++++    }
++++    export interface BigIntStats extends StatsBase<bigint> {
++++        atimeNs: bigint;
++++        mtimeNs: bigint;
++++        ctimeNs: bigint;
++++        birthtimeNs: bigint;
++++    }
++++    export interface BigIntOptions {
++++        bigint: true;
++++    }
++++    export interface StatOptions {
++++        bigint?: boolean | undefined;
++++    }
++++    export interface StatSyncOptions extends StatOptions {
++++        throwIfNoEntry?: boolean | undefined;
++++    }
++++    interface CopyOptionsBase {
++++        /**
++++         * Dereference symlinks
++++         * @default false
++++         */
++++        dereference?: boolean;
++++        /**
++++         * When `force` is `false`, and the destination
++++         * exists, throw an error.
++++         * @default false
++++         */
++++        errorOnExist?: boolean;
++++        /**
++++         * Overwrite existing file or directory. _The copy
++++         * operation will ignore errors if you set this to false and the destination
++++         * exists. Use the `errorOnExist` option to change this behavior.
++++         * @default true
++++         */
++++        force?: boolean;
++++        /**
++++         * Modifiers for copy operation. See `mode` flag of {@link copyFileSync()}
++++         */
++++        mode?: number;
++++        /**
++++         * When `true` timestamps from `src` will
++++         * be preserved.
++++         * @default false
++++         */
++++        preserveTimestamps?: boolean;
++++        /**
++++         * Copy directories recursively.
++++         * @default false
++++         */
++++        recursive?: boolean;
++++        /**
++++         * When true, path resolution for symlinks will be skipped
++++         * @default false
++++         */
++++        verbatimSymlinks?: boolean;
++++    }
++++    export interface CopyOptions extends CopyOptionsBase {
++++        /**
++++         * Function to filter copied files/directories. Return
++++         * `true` to copy the item, `false` to ignore it.
++++         */
++++        filter?(source: string, destination: string): boolean | Promise<boolean>;
++++    }
++++    export interface CopySyncOptions extends CopyOptionsBase {
++++        /**
++++         * Function to filter copied files/directories. Return
++++         * `true` to copy the item, `false` to ignore it.
++++         */
++++        filter?(source: string, destination: string): boolean;
++++    }
++++    /**
++++     * Asynchronously copies the entire directory structure from `src` to `dest`,
++++     * including subdirectories and files.
++++     *
++++     * When copying a directory to another directory, globs are not supported and
++++     * behavior is similar to `cp dir1/ dir2/`.
++++     * @since v16.7.0
++++     * @experimental
++++     * @param src source path to copy.
++++     * @param dest destination path to copy to.
++++     */
++++    export function cp(
++++        source: string | URL,
++++        destination: string | URL,
++++        callback: (err: NodeJS.ErrnoException | null) => void,
++++    ): void;
++++    export function cp(
++++        source: string | URL,
++++        destination: string | URL,
++++        opts: CopyOptions,
++++        callback: (err: NodeJS.ErrnoException | null) => void,
++++    ): void;
++++    /**
++++     * Synchronously copies the entire directory structure from `src` to `dest`,
++++     * including subdirectories and files.
++++     *
++++     * When copying a directory to another directory, globs are not supported and
++++     * behavior is similar to `cp dir1/ dir2/`.
++++     * @since v16.7.0
++++     * @experimental
++++     * @param src source path to copy.
++++     * @param dest destination path to copy to.
++++     */
++++    export function cpSync(source: string | URL, destination: string | URL, opts?: CopySyncOptions): void;
++++}
++++declare module "node:fs" {
++++    export * from "fs";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..d4bacb962241f89165093e6924bd377dd09ac7a8
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1245 @@@@@
++++/**
++++ * The `fs/promises` API provides asynchronous file system methods that return
++++ * promises.
++++ *
++++ * The promise APIs use the underlying Node.js threadpool to perform file
++++ * system operations off the event loop thread. These operations are not
++++ * synchronized or threadsafe. Care must be taken when performing multiple
++++ * concurrent modifications on the same file or data corruption may occur.
++++ * @since v10.0.0
++++ */
++++declare module "fs/promises" {
++++    import { Abortable } from "node:events";
++++    import { Stream } from "node:stream";
++++    import { ReadableStream } from "node:stream/web";
++++    import {
++++        BigIntStats,
++++        BigIntStatsFs,
++++        BufferEncodingOption,
++++        constants as fsConstants,
++++        CopyOptions,
++++        Dir,
++++        Dirent,
++++        MakeDirectoryOptions,
++++        Mode,
++++        ObjectEncodingOptions,
++++        OpenDirOptions,
++++        OpenMode,
++++        PathLike,
++++        ReadStream,
++++        ReadVResult,
++++        RmDirOptions,
++++        RmOptions,
++++        StatFsOptions,
++++        StatOptions,
++++        Stats,
++++        StatsFs,
++++        TimeLike,
++++        WatchEventType,
++++        WatchOptions,
++++        WriteStream,
++++        WriteVResult,
++++    } from "node:fs";
++++    import { Interface as ReadlineInterface } from "node:readline";
++++    interface FileChangeInfo<T extends string | Buffer> {
++++        eventType: WatchEventType;
++++        filename: T | null;
++++    }
++++    interface FlagAndOpenMode {
++++        mode?: Mode | undefined;
++++        flag?: OpenMode | undefined;
++++    }
++++    interface FileReadResult<T extends NodeJS.ArrayBufferView> {
++++        bytesRead: number;
++++        buffer: T;
++++    }
++++    interface FileReadOptions<T extends NodeJS.ArrayBufferView = Buffer> {
++++        /**
++++         * @default `Buffer.alloc(0xffff)`
++++         */
++++        buffer?: T;
++++        /**
++++         * @default 0
++++         */
++++        offset?: number | null;
++++        /**
++++         * @default `buffer.byteLength`
++++         */
++++        length?: number | null;
++++        position?: number | null;
++++    }
++++    interface CreateReadStreamOptions {
++++        encoding?: BufferEncoding | null | undefined;
++++        autoClose?: boolean | undefined;
++++        emitClose?: boolean | undefined;
++++        start?: number | undefined;
++++        end?: number | undefined;
++++        highWaterMark?: number | undefined;
++++    }
++++    interface CreateWriteStreamOptions {
++++        encoding?: BufferEncoding | null | undefined;
++++        autoClose?: boolean | undefined;
++++        emitClose?: boolean | undefined;
++++        start?: number | undefined;
++++        highWaterMark?: number | undefined;
++++        flush?: boolean | undefined;
++++    }
++++    interface ReadableWebStreamOptions {
++++        /**
++++         * Whether to open a normal or a `'bytes'` stream.
++++         * @since v20.0.0
++++         */
++++        type?: "bytes" | undefined;
++++    }
++++    // TODO: Add `EventEmitter` close
++++    interface FileHandle {
++++        /**
++++         * The numeric file descriptor managed by the {FileHandle} object.
++++         * @since v10.0.0
++++         */
++++        readonly fd: number;
++++        /**
++++         * Alias of `filehandle.writeFile()`.
++++         *
++++         * When operating on file handles, the mode cannot be changed from what it was set
++++         * to with `fsPromises.open()`. Therefore, this is equivalent to `filehandle.writeFile()`.
++++         * @since v10.0.0
++++         * @return Fulfills with `undefined` upon success.
++++         */
++++        appendFile(
++++            data: string | Uint8Array,
++++            options?:
++++                | (ObjectEncodingOptions & FlagAndOpenMode & { flush?: boolean | undefined })
++++                | BufferEncoding
++++                | null,
++++        ): Promise<void>;
++++        /**
++++         * Changes the ownership of the file. A wrapper for [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html).
++++         * @since v10.0.0
++++         * @param uid The file's new owner's user id.
++++         * @param gid The file's new group's group id.
++++         * @return Fulfills with `undefined` upon success.
++++         */
++++        chown(uid: number, gid: number): Promise<void>;
++++        /**
++++         * Modifies the permissions on the file. See [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html).
++++         * @since v10.0.0
++++         * @param mode the file mode bit mask.
++++         * @return Fulfills with `undefined` upon success.
++++         */
++++        chmod(mode: Mode): Promise<void>;
++++        /**
++++         * Unlike the 16 KiB default `highWaterMark` for a `stream.Readable`, the stream
++++         * returned by this method has a default `highWaterMark` of 64 KiB.
++++         *
++++         * `options` can include `start` and `end` values to read a range of bytes from
++++         * the file instead of the entire file. Both `start` and `end` are inclusive and
++++         * start counting at 0, allowed values are in the
++++         * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `start` is
++++         * omitted or `undefined`, `filehandle.createReadStream()` reads sequentially from
++++         * the current file position. The `encoding` can be any one of those accepted by `Buffer`.
++++         *
++++         * If the `FileHandle` points to a character device that only supports blocking
++++         * reads (such as keyboard or sound card), read operations do not finish until data
++++         * is available. This can prevent the process from exiting and the stream from
++++         * closing naturally.
++++         *
++++         * By default, the stream will emit a `'close'` event after it has been
++++         * destroyed.  Set the `emitClose` option to `false` to change this behavior.
++++         *
++++         * ```js
++++         * import { open } from 'node:fs/promises';
++++         *
++++         * const fd = await open('/dev/input/event0');
++++         * // Create a stream from some character device.
++++         * const stream = fd.createReadStream();
++++         * setTimeout(() => {
++++         *   stream.close(); // This may not close the stream.
++++         *   // Artificially marking end-of-stream, as if the underlying resource had
++++         *   // indicated end-of-file by itself, allows the stream to close.
++++         *   // This does not cancel pending read operations, and if there is such an
++++         *   // operation, the process may still not be able to exit successfully
++++         *   // until it finishes.
++++         *   stream.push(null);
++++         *   stream.read(0);
++++         * }, 100);
++++         * ```
++++         *
++++         * If `autoClose` is false, then the file descriptor won't be closed, even if
++++         * there's an error. It is the application's responsibility to close it and make
++++         * sure there's no file descriptor leak. If `autoClose` is set to true (default
++++         * behavior), on `'error'` or `'end'` the file descriptor will be closed
++++         * automatically.
++++         *
++++         * An example to read the last 10 bytes of a file which is 100 bytes long:
++++         *
++++         * ```js
++++         * import { open } from 'node:fs/promises';
++++         *
++++         * const fd = await open('sample.txt');
++++         * fd.createReadStream({ start: 90, end: 99 });
++++         * ```
++++         * @since v16.11.0
++++         */
++++        createReadStream(options?: CreateReadStreamOptions): ReadStream;
++++        /**
++++         * `options` may also include a `start` option to allow writing data at some
++++         * position past the beginning of the file, allowed values are in the
++++         * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than
++++         * replacing it may require the `flags` `open` option to be set to `r+` rather than
++++         * the default `r`. The `encoding` can be any one of those accepted by `Buffer`.
++++         *
++++         * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false,
++++         * then the file descriptor won't be closed, even if there's an error.
++++         * It is the application's responsibility to close it and make sure there's no
++++         * file descriptor leak.
++++         *
++++         * By default, the stream will emit a `'close'` event after it has been
++++         * destroyed.  Set the `emitClose` option to `false` to change this behavior.
++++         * @since v16.11.0
++++         */
++++        createWriteStream(options?: CreateWriteStreamOptions): WriteStream;
++++        /**
++++         * Forces all currently queued I/O operations associated with the file to the
++++         * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details.
++++         *
++++         * Unlike `filehandle.sync` this method does not flush modified metadata.
++++         * @since v10.0.0
++++         * @return Fulfills with `undefined` upon success.
++++         */
++++        datasync(): Promise<void>;
++++        /**
++++         * Request that all data for the open file descriptor is flushed to the storage
++++         * device. The specific implementation is operating system and device specific.
++++         * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail.
++++         * @since v10.0.0
++++         * @return Fulfills with `undefined` upon success.
++++         */
++++        sync(): Promise<void>;
++++        /**
++++         * Reads data from the file and stores that in the given buffer.
++++         *
++++         * If the file is not modified concurrently, the end-of-file is reached when the
++++         * number of bytes read is zero.
++++         * @since v10.0.0
++++         * @param buffer A buffer that will be filled with the file data read.
++++         * @param offset The location in the buffer at which to start filling.
++++         * @param length The number of bytes to read.
++++         * @param position The location where to begin reading data from the file. If `null`, data will be read from the current file position, and the position will be updated. If `position` is an
++++         * integer, the current file position will remain unchanged.
++++         * @return Fulfills upon success with an object with two properties:
++++         */
++++        read<T extends NodeJS.ArrayBufferView>(
++++            buffer: T,
++++            offset?: number | null,
++++            length?: number | null,
++++            position?: number | null,
++++        ): Promise<FileReadResult<T>>;
++++        read<T extends NodeJS.ArrayBufferView = Buffer>(options?: FileReadOptions<T>): Promise<FileReadResult<T>>;
++++        /**
++++         * Returns a `ReadableStream` that may be used to read the files data.
++++         *
++++         * An error will be thrown if this method is called more than once or is called
++++         * after the `FileHandle` is closed or closing.
++++         *
++++         * ```js
++++         * import {
++++         *   open,
++++         * } from 'node:fs/promises';
++++         *
++++         * const file = await open('./some/file/to/read');
++++         *
++++         * for await (const chunk of file.readableWebStream())
++++         *   console.log(chunk);
++++         *
++++         * await file.close();
++++         * ```
++++         *
++++         * While the `ReadableStream` will read the file to completion, it will not
++++         * close the `FileHandle` automatically. User code must still call the`fileHandle.close()` method.
++++         * @since v17.0.0
++++         * @experimental
++++         */
++++        readableWebStream(options?: ReadableWebStreamOptions): ReadableStream;
++++        /**
++++         * Asynchronously reads the entire contents of a file.
++++         *
++++         * If `options` is a string, then it specifies the `encoding`.
++++         *
++++         * The `FileHandle` has to support reading.
++++         *
++++         * If one or more `filehandle.read()` calls are made on a file handle and then a `filehandle.readFile()` call is made, the data will be read from the current
++++         * position till the end of the file. It doesn't always read from the beginning
++++         * of the file.
++++         * @since v10.0.0
++++         * @return Fulfills upon a successful read with the contents of the file. If no encoding is specified (using `options.encoding`), the data is returned as a {Buffer} object. Otherwise, the
++++         * data will be a string.
++++         */
++++        readFile(
++++            options?: {
++++                encoding?: null | undefined;
++++                flag?: OpenMode | undefined;
++++            } | null,
++++        ): Promise<Buffer>;
++++        /**
++++         * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically.
++++         * The `FileHandle` must have been opened for reading.
++++         * @param options An object that may contain an optional flag.
++++         * If a flag is not provided, it defaults to `'r'`.
++++         */
++++        readFile(
++++            options:
++++                | {
++++                    encoding: BufferEncoding;
++++                    flag?: OpenMode | undefined;
++++                }
++++                | BufferEncoding,
++++        ): Promise<string>;
++++        /**
++++         * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically.
++++         * The `FileHandle` must have been opened for reading.
++++         * @param options An object that may contain an optional flag.
++++         * If a flag is not provided, it defaults to `'r'`.
++++         */
++++        readFile(
++++            options?:
++++                | (ObjectEncodingOptions & {
++++                    flag?: OpenMode | undefined;
++++                })
++++                | BufferEncoding
++++                | null,
++++        ): Promise<string | Buffer>;
++++        /**
++++         * Convenience method to create a `readline` interface and stream over the file.
++++         * See `filehandle.createReadStream()` for the options.
++++         *
++++         * ```js
++++         * import { open } from 'node:fs/promises';
++++         *
++++         * const file = await open('./some/file/to/read');
++++         *
++++         * for await (const line of file.readLines()) {
++++         *   console.log(line);
++++         * }
++++         * ```
++++         * @since v18.11.0
++++         */
++++        readLines(options?: CreateReadStreamOptions): ReadlineInterface;
++++        /**
++++         * @since v10.0.0
++++         * @return Fulfills with an {fs.Stats} for the file.
++++         */
++++        stat(
++++            opts?: StatOptions & {
++++                bigint?: false | undefined;
++++            },
++++        ): Promise<Stats>;
++++        stat(
++++            opts: StatOptions & {
++++                bigint: true;
++++            },
++++        ): Promise<BigIntStats>;
++++        stat(opts?: StatOptions): Promise<Stats | BigIntStats>;
++++        /**
++++         * Truncates the file.
++++         *
++++         * If the file was larger than `len` bytes, only the first `len` bytes will be
++++         * retained in the file.
++++         *
++++         * The following example retains only the first four bytes of the file:
++++         *
++++         * ```js
++++         * import { open } from 'node:fs/promises';
++++         *
++++         * let filehandle = null;
++++         * try {
++++         *   filehandle = await open('temp.txt', 'r+');
++++         *   await filehandle.truncate(4);
++++         * } finally {
++++         *   await filehandle?.close();
++++         * }
++++         * ```
++++         *
++++         * If the file previously was shorter than `len` bytes, it is extended, and the
++++         * extended part is filled with null bytes (`'\0'`):
++++         *
++++         * If `len` is negative then `0` will be used.
++++         * @since v10.0.0
++++         * @param [len=0]
++++         * @return Fulfills with `undefined` upon success.
++++         */
++++        truncate(len?: number): Promise<void>;
++++        /**
++++         * Change the file system timestamps of the object referenced by the `FileHandle` then fulfills the promise with no arguments upon success.
++++         * @since v10.0.0
++++         */
++++        utimes(atime: TimeLike, mtime: TimeLike): Promise<void>;
++++        /**
++++         * Asynchronously writes data to a file, replacing the file if it already exists. `data` can be a string, a buffer, an
++++         * [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface), or an
++++         * [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object.
++++         * The promise is fulfilled with no arguments upon success.
++++         *
++++         * If `options` is a string, then it specifies the `encoding`.
++++         *
++++         * The `FileHandle` has to support writing.
++++         *
++++         * It is unsafe to use `filehandle.writeFile()` multiple times on the same file
++++         * without waiting for the promise to be fulfilled (or rejected).
++++         *
++++         * If one or more `filehandle.write()` calls are made on a file handle and then a`filehandle.writeFile()` call is made, the data will be written from the
++++         * current position till the end of the file. It doesn't always write from the
++++         * beginning of the file.
++++         * @since v10.0.0
++++         */
++++        writeFile(
++++            data: string | Uint8Array,
++++            options?:
++++                | (ObjectEncodingOptions & FlagAndOpenMode & Abortable & { flush?: boolean | undefined })
++++                | BufferEncoding
++++                | null,
++++        ): Promise<void>;
++++        /**
++++         * Write `buffer` to the file.
++++         *
++++         * The promise is fulfilled with an object containing two properties:
++++         *
++++         * It is unsafe to use `filehandle.write()` multiple times on the same file
++++         * without waiting for the promise to be fulfilled (or rejected). For this
++++         * scenario, use `filehandle.createWriteStream()`.
++++         *
++++         * On Linux, positional writes do not work when the file is opened in append mode.
++++         * The kernel ignores the position argument and always appends the data to
++++         * the end of the file.
++++         * @since v10.0.0
++++         * @param offset The start position from within `buffer` where the data to write begins.
++++         * @param [length=buffer.byteLength - offset] The number of bytes from `buffer` to write.
++++         * @param [position='null'] The offset from the beginning of the file where the data from `buffer` should be written. If `position` is not a `number`, the data will be written at the current
++++         * position. See the POSIX pwrite(2) documentation for more detail.
++++         */
++++        write<TBuffer extends Uint8Array>(
++++            buffer: TBuffer,
++++            offset?: number | null,
++++            length?: number | null,
++++            position?: number | null,
++++        ): Promise<{
++++            bytesWritten: number;
++++            buffer: TBuffer;
++++        }>;
++++        write(
++++            data: string,
++++            position?: number | null,
++++            encoding?: BufferEncoding | null,
++++        ): Promise<{
++++            bytesWritten: number;
++++            buffer: string;
++++        }>;
++++        /**
++++         * Write an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s to the file.
++++         *
++++         * The promise is fulfilled with an object containing a two properties:
++++         *
++++         * It is unsafe to call `writev()` multiple times on the same file without waiting
++++         * for the promise to be fulfilled (or rejected).
++++         *
++++         * On Linux, positional writes don't work when the file is opened in append mode.
++++         * The kernel ignores the position argument and always appends the data to
++++         * the end of the file.
++++         * @since v12.9.0
++++         * @param [position='null'] The offset from the beginning of the file where the data from `buffers` should be written. If `position` is not a `number`, the data will be written at the current
++++         * position.
++++         */
++++        writev(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise<WriteVResult>;
++++        /**
++++         * Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s
++++         * @since v13.13.0, v12.17.0
++++         * @param [position='null'] The offset from the beginning of the file where the data should be read from. If `position` is not a `number`, the data will be read from the current position.
++++         * @return Fulfills upon success an object containing two properties:
++++         */
++++        readv(buffers: readonly NodeJS.ArrayBufferView[], position?: number): Promise<ReadVResult>;
++++        /**
++++         * Closes the file handle after waiting for any pending operation on the handle to
++++         * complete.
++++         *
++++         * ```js
++++         * import { open } from 'node:fs/promises';
++++         *
++++         * let filehandle;
++++         * try {
++++         *   filehandle = await open('thefile.txt', 'r');
++++         * } finally {
++++         *   await filehandle?.close();
++++         * }
++++         * ```
++++         * @since v10.0.0
++++         * @return Fulfills with `undefined` upon success.
++++         */
++++        close(): Promise<void>;
++++        /**
++++         * An alias for {@link FileHandle.close()}.
++++         * @since v20.4.0
++++         */
++++        [Symbol.asyncDispose](): Promise<void>;
++++    }
++++    const constants: typeof fsConstants;
++++    /**
++++     * Tests a user's permissions for the file or directory specified by `path`.
++++     * The `mode` argument is an optional integer that specifies the accessibility
++++     * checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK`
++++     * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for
++++     * possible values of `mode`.
++++     *
++++     * If the accessibility check is successful, the promise is fulfilled with no
++++     * value. If any of the accessibility checks fail, the promise is rejected
++++     * with an [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object. The following example checks if the file`/etc/passwd` can be read and
++++     * written by the current process.
++++     *
++++     * ```js
++++     * import { access, constants } from 'node:fs/promises';
++++     *
++++     * try {
++++     *   await access('/etc/passwd', constants.R_OK | constants.W_OK);
++++     *   console.log('can access');
++++     * } catch {
++++     *   console.error('cannot access');
++++     * }
++++     * ```
++++     *
++++     * Using `fsPromises.access()` to check for the accessibility of a file before
++++     * calling `fsPromises.open()` is not recommended. Doing so introduces a race
++++     * condition, since other processes may change the file's state between the two
++++     * calls. Instead, user code should open/read/write the file directly and handle
++++     * the error raised if the file is not accessible.
++++     * @since v10.0.0
++++     * @param [mode=fs.constants.F_OK]
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function access(path: PathLike, mode?: number): Promise<void>;
++++    /**
++++     * Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it
++++     * already exists.
++++     *
++++     * No guarantees are made about the atomicity of the copy operation. If an
++++     * error occurs after the destination file has been opened for writing, an attempt
++++     * will be made to remove the destination.
++++     *
++++     * ```js
++++     * import { copyFile, constants } from 'node:fs/promises';
++++     *
++++     * try {
++++     *   await copyFile('source.txt', 'destination.txt');
++++     *   console.log('source.txt was copied to destination.txt');
++++     * } catch {
++++     *   console.error('The file could not be copied');
++++     * }
++++     *
++++     * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists.
++++     * try {
++++     *   await copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL);
++++     *   console.log('source.txt was copied to destination.txt');
++++     * } catch {
++++     *   console.error('The file could not be copied');
++++     * }
++++     * ```
++++     * @since v10.0.0
++++     * @param src source filename to copy
++++     * @param dest destination filename of the copy operation
++++     * @param [mode=0] Optional modifiers that specify the behavior of the copy operation. It is possible to create a mask consisting of the bitwise OR of two or more values (e.g.
++++     * `fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`)
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function copyFile(src: PathLike, dest: PathLike, mode?: number): Promise<void>;
++++    /**
++++     * Opens a `FileHandle`.
++++     *
++++     * Refer to the POSIX [`open(2)`](http://man7.org/linux/man-pages/man2/open.2.html) documentation for more detail.
++++     *
++++     * Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented
++++     * by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains
++++     * a colon, Node.js will open a file system stream, as described by [this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams).
++++     * @since v10.0.0
++++     * @param [flags='r'] See `support of file system `flags``.
++++     * @param [mode=0o666] Sets the file mode (permission and sticky bits) if the file is created.
++++     * @return Fulfills with a {FileHandle} object.
++++     */
++++    function open(path: PathLike, flags?: string | number, mode?: Mode): Promise<FileHandle>;
++++    /**
++++     * Renames `oldPath` to `newPath`.
++++     * @since v10.0.0
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function rename(oldPath: PathLike, newPath: PathLike): Promise<void>;
++++    /**
++++     * Truncates (shortens or extends the length) of the content at `path` to `len` bytes.
++++     * @since v10.0.0
++++     * @param [len=0]
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function truncate(path: PathLike, len?: number): Promise<void>;
++++    /**
++++     * Removes the directory identified by `path`.
++++     *
++++     * Using `fsPromises.rmdir()` on a file (not a directory) results in the
++++     * promise being rejected with an `ENOENT` error on Windows and an `ENOTDIR` error on POSIX.
++++     *
++++     * To get a behavior similar to the `rm -rf` Unix command, use `fsPromises.rm()` with options `{ recursive: true, force: true }`.
++++     * @since v10.0.0
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function rmdir(path: PathLike, options?: RmDirOptions): Promise<void>;
++++    /**
++++     * Removes files and directories (modeled on the standard POSIX `rm` utility).
++++     * @since v14.14.0
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function rm(path: PathLike, options?: RmOptions): Promise<void>;
++++    /**
++++     * Asynchronously creates a directory.
++++     *
++++     * The optional `options` argument can be an integer specifying `mode` (permission
++++     * and sticky bits), or an object with a `mode` property and a `recursive` property indicating whether parent directories should be created. Calling `fsPromises.mkdir()` when `path` is a directory
++++     * that exists results in a
++++     * rejection only when `recursive` is false.
++++     *
++++     * ```js
++++     * import { mkdir } from 'node:fs/promises';
++++     *
++++     * try {
++++     *   const projectFolder = new URL('./test/project/', import.meta.url);
++++     *   const createDir = await mkdir(projectFolder, { recursive: true });
++++     *
++++     *   console.log(`created ${createDir}`);
++++     * } catch (err) {
++++     *   console.error(err.message);
++++     * }
++++     * ```
++++     * @since v10.0.0
++++     * @return Upon success, fulfills with `undefined` if `recursive` is `false`, or the first directory path created if `recursive` is `true`.
++++     */
++++    function mkdir(
++++        path: PathLike,
++++        options: MakeDirectoryOptions & {
++++            recursive: true;
++++        },
++++    ): Promise<string | undefined>;
++++    /**
++++     * Asynchronous mkdir(2) - create a directory.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
++++     * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
++++     */
++++    function mkdir(
++++        path: PathLike,
++++        options?:
++++            | Mode
++++            | (MakeDirectoryOptions & {
++++                recursive?: false | undefined;
++++            })
++++            | null,
++++    ): Promise<void>;
++++    /**
++++     * Asynchronous mkdir(2) - create a directory.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
++++     * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
++++     */
++++    function mkdir(path: PathLike, options?: Mode | MakeDirectoryOptions | null): Promise<string | undefined>;
++++    /**
++++     * Reads the contents of a directory.
++++     *
++++     * The optional `options` argument can be a string specifying an encoding, or an
++++     * object with an `encoding` property specifying the character encoding to use for
++++     * the filenames. If the `encoding` is set to `'buffer'`, the filenames returned
++++     * will be passed as `Buffer` objects.
++++     *
++++     * If `options.withFileTypes` is set to `true`, the returned array will contain `fs.Dirent` objects.
++++     *
++++     * ```js
++++     * import { readdir } from 'node:fs/promises';
++++     *
++++     * try {
++++     *   const files = await readdir(path);
++++     *   for (const file of files)
++++     *     console.log(file);
++++     * } catch (err) {
++++     *   console.error(err);
++++     * }
++++     * ```
++++     * @since v10.0.0
++++     * @return Fulfills with an array of the names of the files in the directory excluding `'.'` and `'..'`.
++++     */
++++    function readdir(
++++        path: PathLike,
++++        options?:
++++            | (ObjectEncodingOptions & {
++++                withFileTypes?: false | undefined;
++++                recursive?: boolean | undefined;
++++            })
++++            | BufferEncoding
++++            | null,
++++    ): Promise<string[]>;
++++    /**
++++     * Asynchronous readdir(3) - read a directory.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    function readdir(
++++        path: PathLike,
++++        options:
++++            | {
++++                encoding: "buffer";
++++                withFileTypes?: false | undefined;
++++                recursive?: boolean | undefined;
++++            }
++++            | "buffer",
++++    ): Promise<Buffer[]>;
++++    /**
++++     * Asynchronous readdir(3) - read a directory.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    function readdir(
++++        path: PathLike,
++++        options?:
++++            | (ObjectEncodingOptions & {
++++                withFileTypes?: false | undefined;
++++                recursive?: boolean | undefined;
++++            })
++++            | BufferEncoding
++++            | null,
++++    ): Promise<string[] | Buffer[]>;
++++    /**
++++     * Asynchronous readdir(3) - read a directory.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options If called with `withFileTypes: true` the result data will be an array of Dirent.
++++     */
++++    function readdir(
++++        path: PathLike,
++++        options: ObjectEncodingOptions & {
++++            withFileTypes: true;
++++            recursive?: boolean | undefined;
++++        },
++++    ): Promise<Dirent[]>;
++++    /**
++++     * Reads the contents of the symbolic link referred to by `path`. See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more detail. The promise is
++++     * fulfilled with the`linkString` upon success.
++++     *
++++     * The optional `options` argument can be a string specifying an encoding, or an
++++     * object with an `encoding` property specifying the character encoding to use for
++++     * the link path returned. If the `encoding` is set to `'buffer'`, the link path
++++     * returned will be passed as a `Buffer` object.
++++     * @since v10.0.0
++++     * @return Fulfills with the `linkString` upon success.
++++     */
++++    function readlink(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise<string>;
++++    /**
++++     * Asynchronous readlink(2) - read value of a symbolic link.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    function readlink(path: PathLike, options: BufferEncodingOption): Promise<Buffer>;
++++    /**
++++     * Asynchronous readlink(2) - read value of a symbolic link.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    function readlink(path: PathLike, options?: ObjectEncodingOptions | string | null): Promise<string | Buffer>;
++++    /**
++++     * Creates a symbolic link.
++++     *
++++     * The `type` argument is only used on Windows platforms and can be one of `'dir'`, `'file'`, or `'junction'`. If the `type` argument is not a string, Node.js will
++++     * autodetect `target` type and use `'file'` or `'dir'`. If the `target` does not
++++     * exist, `'file'` will be used. Windows junction points require the destination
++++     * path to be absolute. When using `'junction'`, the `target` argument will
++++     * automatically be normalized to absolute path. Junction points on NTFS volumes
++++     * can only point to directories.
++++     * @since v10.0.0
++++     * @param [type='null']
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function symlink(target: PathLike, path: PathLike, type?: string | null): Promise<void>;
++++    /**
++++     * Equivalent to `fsPromises.stat()` unless `path` refers to a symbolic link,
++++     * in which case the link itself is stat-ed, not the file that it refers to.
++++     * Refer to the POSIX [`lstat(2)`](http://man7.org/linux/man-pages/man2/lstat.2.html) document for more detail.
++++     * @since v10.0.0
++++     * @return Fulfills with the {fs.Stats} object for the given symbolic link `path`.
++++     */
++++    function lstat(
++++        path: PathLike,
++++        opts?: StatOptions & {
++++            bigint?: false | undefined;
++++        },
++++    ): Promise<Stats>;
++++    function lstat(
++++        path: PathLike,
++++        opts: StatOptions & {
++++            bigint: true;
++++        },
++++    ): Promise<BigIntStats>;
++++    function lstat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats>;
++++    /**
++++     * @since v10.0.0
++++     * @return Fulfills with the {fs.Stats} object for the given `path`.
++++     */
++++    function stat(
++++        path: PathLike,
++++        opts?: StatOptions & {
++++            bigint?: false | undefined;
++++        },
++++    ): Promise<Stats>;
++++    function stat(
++++        path: PathLike,
++++        opts: StatOptions & {
++++            bigint: true;
++++        },
++++    ): Promise<BigIntStats>;
++++    function stat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats>;
++++    /**
++++     * @since v19.6.0, v18.15.0
++++     * @return Fulfills with the {fs.StatFs} object for the given `path`.
++++     */
++++    function statfs(
++++        path: PathLike,
++++        opts?: StatFsOptions & {
++++            bigint?: false | undefined;
++++        },
++++    ): Promise<StatsFs>;
++++    function statfs(
++++        path: PathLike,
++++        opts: StatFsOptions & {
++++            bigint: true;
++++        },
++++    ): Promise<BigIntStatsFs>;
++++    function statfs(path: PathLike, opts?: StatFsOptions): Promise<StatsFs | BigIntStatsFs>;
++++    /**
++++     * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail.
++++     * @since v10.0.0
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function link(existingPath: PathLike, newPath: PathLike): Promise<void>;
++++    /**
++++     * If `path` refers to a symbolic link, then the link is removed without affecting
++++     * the file or directory to which that link refers. If the `path` refers to a file
++++     * path that is not a symbolic link, the file is deleted. See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html) documentation for more detail.
++++     * @since v10.0.0
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function unlink(path: PathLike): Promise<void>;
++++    /**
++++     * Changes the permissions of a file.
++++     * @since v10.0.0
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function chmod(path: PathLike, mode: Mode): Promise<void>;
++++    /**
++++     * Changes the permissions on a symbolic link.
++++     *
++++     * This method is only implemented on macOS.
++++     * @deprecated Since v10.0.0
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function lchmod(path: PathLike, mode: Mode): Promise<void>;
++++    /**
++++     * Changes the ownership on a symbolic link.
++++     * @since v10.0.0
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function lchown(path: PathLike, uid: number, gid: number): Promise<void>;
++++    /**
++++     * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`, with the difference that if the path refers to a
++++     * symbolic link, then the link is not dereferenced: instead, the timestamps of
++++     * the symbolic link itself are changed.
++++     * @since v14.5.0, v12.19.0
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function lutimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise<void>;
++++    /**
++++     * Changes the ownership of a file.
++++     * @since v10.0.0
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function chown(path: PathLike, uid: number, gid: number): Promise<void>;
++++    /**
++++     * Change the file system timestamps of the object referenced by `path`.
++++     *
++++     * The `atime` and `mtime` arguments follow these rules:
++++     *
++++     * * Values can be either numbers representing Unix epoch time, `Date`s, or a
++++     * numeric string like `'123456789.0'`.
++++     * * If the value can not be converted to a number, or is `NaN`, `Infinity`, or `-Infinity`, an `Error` will be thrown.
++++     * @since v10.0.0
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise<void>;
++++    /**
++++     * Determines the actual location of `path` using the same semantics as the `fs.realpath.native()` function.
++++     *
++++     * Only paths that can be converted to UTF8 strings are supported.
++++     *
++++     * The optional `options` argument can be a string specifying an encoding, or an
++++     * object with an `encoding` property specifying the character encoding to use for
++++     * the path. If the `encoding` is set to `'buffer'`, the path returned will be
++++     * passed as a `Buffer` object.
++++     *
++++     * On Linux, when Node.js is linked against musl libc, the procfs file system must
++++     * be mounted on `/proc` in order for this function to work. Glibc does not have
++++     * this restriction.
++++     * @since v10.0.0
++++     * @return Fulfills with the resolved path upon success.
++++     */
++++    function realpath(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise<string>;
++++    /**
++++     * Asynchronous realpath(3) - return the canonicalized absolute pathname.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    function realpath(path: PathLike, options: BufferEncodingOption): Promise<Buffer>;
++++    /**
++++     * Asynchronous realpath(3) - return the canonicalized absolute pathname.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    function realpath(
++++        path: PathLike,
++++        options?: ObjectEncodingOptions | BufferEncoding | null,
++++    ): Promise<string | Buffer>;
++++    /**
++++     * Creates a unique temporary directory. A unique directory name is generated by
++++     * appending six random characters to the end of the provided `prefix`. Due to
++++     * platform inconsistencies, avoid trailing `X` characters in `prefix`. Some
++++     * platforms, notably the BSDs, can return more than six random characters, and
++++     * replace trailing `X` characters in `prefix` with random characters.
++++     *
++++     * The optional `options` argument can be a string specifying an encoding, or an
++++     * object with an `encoding` property specifying the character encoding to use.
++++     *
++++     * ```js
++++     * import { mkdtemp } from 'node:fs/promises';
++++     * import { join } from 'node:path';
++++     * import { tmpdir } from 'node:os';
++++     *
++++     * try {
++++     *   await mkdtemp(join(tmpdir(), 'foo-'));
++++     * } catch (err) {
++++     *   console.error(err);
++++     * }
++++     * ```
++++     *
++++     * The `fsPromises.mkdtemp()` method will append the six randomly selected
++++     * characters directly to the `prefix` string. For instance, given a directory `/tmp`, if the intention is to create a temporary directory _within_ `/tmp`, the `prefix` must end with a trailing
++++     * platform-specific path separator
++++     * (`import { sep } from 'node:node:path'`).
++++     * @since v10.0.0
++++     * @return Fulfills with a string containing the file system path of the newly created temporary directory.
++++     */
++++    function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise<string>;
++++    /**
++++     * Asynchronously creates a unique temporary directory.
++++     * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    function mkdtemp(prefix: string, options: BufferEncodingOption): Promise<Buffer>;
++++    /**
++++     * Asynchronously creates a unique temporary directory.
++++     * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory.
++++     * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
++++     */
++++    function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise<string | Buffer>;
++++    /**
++++     * Asynchronously writes data to a file, replacing the file if it already exists. `data` can be a string, a buffer, an
++++     * [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface), or an
++++     * [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object.
++++     *
++++     * The `encoding` option is ignored if `data` is a buffer.
++++     *
++++     * If `options` is a string, then it specifies the encoding.
++++     *
++++     * The `mode` option only affects the newly created file. See `fs.open()` for more details.
++++     *
++++     * Any specified `FileHandle` has to support writing.
++++     *
++++     * It is unsafe to use `fsPromises.writeFile()` multiple times on the same file
++++     * without waiting for the promise to be settled.
++++     *
++++     * Similarly to `fsPromises.readFile` \- `fsPromises.writeFile` is a convenience
++++     * method that performs multiple `write` calls internally to write the buffer
++++     * passed to it. For performance sensitive code consider using `fs.createWriteStream()` or `filehandle.createWriteStream()`.
++++     *
++++     * It is possible to use an `AbortSignal` to cancel an `fsPromises.writeFile()`.
++++     * Cancelation is "best effort", and some amount of data is likely still
++++     * to be written.
++++     *
++++     * ```js
++++     * import { writeFile } from 'node:fs/promises';
++++     * import { Buffer } from 'node:buffer';
++++     *
++++     * try {
++++     *   const controller = new AbortController();
++++     *   const { signal } = controller;
++++     *   const data = new Uint8Array(Buffer.from('Hello Node.js'));
++++     *   const promise = writeFile('message.txt', data, { signal });
++++     *
++++     *   // Abort the request before the promise settles.
++++     *   controller.abort();
++++     *
++++     *   await promise;
++++     * } catch (err) {
++++     *   // When a request is aborted - err is an AbortError
++++     *   console.error(err);
++++     * }
++++     * ```
++++     *
++++     * Aborting an ongoing request does not abort individual operating
++++     * system requests but rather the internal buffering `fs.writeFile` performs.
++++     * @since v10.0.0
++++     * @param file filename or `FileHandle`
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function writeFile(
++++        file: PathLike | FileHandle,
++++        data:
++++            | string
++++            | NodeJS.ArrayBufferView
++++            | Iterable<string | NodeJS.ArrayBufferView>
++++            | AsyncIterable<string | NodeJS.ArrayBufferView>
++++            | Stream,
++++        options?:
++++            | (ObjectEncodingOptions & {
++++                mode?: Mode | undefined;
++++                flag?: OpenMode | undefined;
++++                /**
++++                 * If all data is successfully written to the file, and `flush`
++++                 * is `true`, `filehandle.sync()` is used to flush the data.
++++                 * @default false
++++                 */
++++                flush?: boolean | undefined;
++++            } & Abortable)
++++            | BufferEncoding
++++            | null,
++++    ): Promise<void>;
++++    /**
++++     * Asynchronously append data to a file, creating the file if it does not yet
++++     * exist. `data` can be a string or a `Buffer`.
++++     *
++++     * If `options` is a string, then it specifies the `encoding`.
++++     *
++++     * The `mode` option only affects the newly created file. See `fs.open()` for more details.
++++     *
++++     * The `path` may be specified as a `FileHandle` that has been opened
++++     * for appending (using `fsPromises.open()`).
++++     * @since v10.0.0
++++     * @param path filename or {FileHandle}
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function appendFile(
++++        path: PathLike | FileHandle,
++++        data: string | Uint8Array,
++++        options?: (ObjectEncodingOptions & FlagAndOpenMode & { flush?: boolean | undefined }) | BufferEncoding | null,
++++    ): Promise<void>;
++++    /**
++++     * Asynchronously reads the entire contents of a file.
++++     *
++++     * If no encoding is specified (using `options.encoding`), the data is returned
++++     * as a `Buffer` object. Otherwise, the data will be a string.
++++     *
++++     * If `options` is a string, then it specifies the encoding.
++++     *
++++     * When the `path` is a directory, the behavior of `fsPromises.readFile()` is
++++     * platform-specific. On macOS, Linux, and Windows, the promise will be rejected
++++     * with an error. On FreeBSD, a representation of the directory's contents will be
++++     * returned.
++++     *
++++     * An example of reading a `package.json` file located in the same directory of the
++++     * running code:
++++     *
++++     * ```js
++++     * import { readFile } from 'node:fs/promises';
++++     * try {
++++     *   const filePath = new URL('./package.json', import.meta.url);
++++     *   const contents = await readFile(filePath, { encoding: 'utf8' });
++++     *   console.log(contents);
++++     * } catch (err) {
++++     *   console.error(err.message);
++++     * }
++++     * ```
++++     *
++++     * It is possible to abort an ongoing `readFile` using an `AbortSignal`. If a
++++     * request is aborted the promise returned is rejected with an `AbortError`:
++++     *
++++     * ```js
++++     * import { readFile } from 'node:fs/promises';
++++     *
++++     * try {
++++     *   const controller = new AbortController();
++++     *   const { signal } = controller;
++++     *   const promise = readFile(fileName, { signal });
++++     *
++++     *   // Abort the request before the promise settles.
++++     *   controller.abort();
++++     *
++++     *   await promise;
++++     * } catch (err) {
++++     *   // When a request is aborted - err is an AbortError
++++     *   console.error(err);
++++     * }
++++     * ```
++++     *
++++     * Aborting an ongoing request does not abort individual operating
++++     * system requests but rather the internal buffering `fs.readFile` performs.
++++     *
++++     * Any specified `FileHandle` has to support reading.
++++     * @since v10.0.0
++++     * @param path filename or `FileHandle`
++++     * @return Fulfills with the contents of the file.
++++     */
++++    function readFile(
++++        path: PathLike | FileHandle,
++++        options?:
++++            | ({
++++                encoding?: null | undefined;
++++                flag?: OpenMode | undefined;
++++            } & Abortable)
++++            | null,
++++    ): Promise<Buffer>;
++++    /**
++++     * Asynchronously reads the entire contents of a file.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically.
++++     * @param options An object that may contain an optional flag.
++++     * If a flag is not provided, it defaults to `'r'`.
++++     */
++++    function readFile(
++++        path: PathLike | FileHandle,
++++        options:
++++            | ({
++++                encoding: BufferEncoding;
++++                flag?: OpenMode | undefined;
++++            } & Abortable)
++++            | BufferEncoding,
++++    ): Promise<string>;
++++    /**
++++     * Asynchronously reads the entire contents of a file.
++++     * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
++++     * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically.
++++     * @param options An object that may contain an optional flag.
++++     * If a flag is not provided, it defaults to `'r'`.
++++     */
++++    function readFile(
++++        path: PathLike | FileHandle,
++++        options?:
++++            | (
++++                & ObjectEncodingOptions
++++                & Abortable
++++                & {
++++                    flag?: OpenMode | undefined;
++++                }
++++            )
++++            | BufferEncoding
++++            | null,
++++    ): Promise<string | Buffer>;
++++    /**
++++     * Asynchronously open a directory for iterative scanning. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for more detail.
++++     *
++++     * Creates an `fs.Dir`, which contains all further functions for reading from
++++     * and cleaning up the directory.
++++     *
++++     * The `encoding` option sets the encoding for the `path` while opening the
++++     * directory and subsequent read operations.
++++     *
++++     * Example using async iteration:
++++     *
++++     * ```js
++++     * import { opendir } from 'node:fs/promises';
++++     *
++++     * try {
++++     *   const dir = await opendir('./');
++++     *   for await (const dirent of dir)
++++     *     console.log(dirent.name);
++++     * } catch (err) {
++++     *   console.error(err);
++++     * }
++++     * ```
++++     *
++++     * When using the async iterator, the `fs.Dir` object will be automatically
++++     * closed after the iterator exits.
++++     * @since v12.12.0
++++     * @return Fulfills with an {fs.Dir}.
++++     */
++++    function opendir(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
++++    /**
++++     * Returns an async iterator that watches for changes on `filename`, where `filename`is either a file or a directory.
++++     *
++++     * ```js
++++     * import { watch } from 'node:fs/promises';
++++     *
++++     * const ac = new AbortController();
++++     * const { signal } = ac;
++++     * setTimeout(() => ac.abort(), 10000);
++++     *
++++     * (async () => {
++++     *   try {
++++     *     const watcher = watch(__filename, { signal });
++++     *     for await (const event of watcher)
++++     *       console.log(event);
++++     *   } catch (err) {
++++     *     if (err.name === 'AbortError')
++++     *       return;
++++     *     throw err;
++++     *   }
++++     * })();
++++     * ```
++++     *
++++     * On most platforms, `'rename'` is emitted whenever a filename appears or
++++     * disappears in the directory.
++++     *
++++     * All the `caveats` for `fs.watch()` also apply to `fsPromises.watch()`.
++++     * @since v15.9.0, v14.18.0
++++     * @return of objects with the properties:
++++     */
++++    function watch(
++++        filename: PathLike,
++++        options:
++++            | (WatchOptions & {
++++                encoding: "buffer";
++++            })
++++            | "buffer",
++++    ): AsyncIterable<FileChangeInfo<Buffer>>;
++++    /**
++++     * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
++++     * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
++++     * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
++++     * If `encoding` is not supplied, the default of `'utf8'` is used.
++++     * If `persistent` is not supplied, the default of `true` is used.
++++     * If `recursive` is not supplied, the default of `false` is used.
++++     */
++++    function watch(filename: PathLike, options?: WatchOptions | BufferEncoding): AsyncIterable<FileChangeInfo<string>>;
++++    /**
++++     * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
++++     * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
++++     * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
++++     * If `encoding` is not supplied, the default of `'utf8'` is used.
++++     * If `persistent` is not supplied, the default of `true` is used.
++++     * If `recursive` is not supplied, the default of `false` is used.
++++     */
++++    function watch(
++++        filename: PathLike,
++++        options: WatchOptions | string,
++++    ): AsyncIterable<FileChangeInfo<string>> | AsyncIterable<FileChangeInfo<Buffer>>;
++++    /**
++++     * Asynchronously copies the entire directory structure from `src` to `dest`,
++++     * including subdirectories and files.
++++     *
++++     * When copying a directory to another directory, globs are not supported and
++++     * behavior is similar to `cp dir1/ dir2/`.
++++     * @since v16.7.0
++++     * @experimental
++++     * @param src source path to copy.
++++     * @param dest destination path to copy to.
++++     * @return Fulfills with `undefined` upon success.
++++     */
++++    function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise<void>;
++++}
++++declare module "node:fs/promises" {
++++    export * from "fs/promises";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..97e8a6231d0b4f86acebba7a48a697dd016421c9
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,468 @@@@@
++++export {}; // Make this a module
++++
++++// #region Fetch and friends
++++// Conditional type aliases, used at the end of this file.
++++// Will either be empty if lib-dom is included, or the undici version otherwise.
++++type _Request = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Request;
++++type _Response = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Response;
++++type _FormData = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").FormData;
++++type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers;
++++type _MessageEvent = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").MessageEvent;
++++type _RequestInit = typeof globalThis extends { onmessage: any } ? {}
++++    : import("undici-types").RequestInit;
++++type _ResponseInit = typeof globalThis extends { onmessage: any } ? {}
++++    : import("undici-types").ResponseInit;
++++// #endregion Fetch and friends
++++
++++// #region DOMException
++++type _DOMException = typeof globalThis extends { onmessage: any } ? {} : NodeDOMException;
++++interface NodeDOMException extends Error {
++++    /**
++++     * @deprecated
++++     *
++++     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
++++     */
++++    readonly code: number;
++++    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */
++++    readonly message: string;
++++    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */
++++    readonly name: string;
++++    readonly INDEX_SIZE_ERR: 1;
++++    readonly DOMSTRING_SIZE_ERR: 2;
++++    readonly HIERARCHY_REQUEST_ERR: 3;
++++    readonly WRONG_DOCUMENT_ERR: 4;
++++    readonly INVALID_CHARACTER_ERR: 5;
++++    readonly NO_DATA_ALLOWED_ERR: 6;
++++    readonly NO_MODIFICATION_ALLOWED_ERR: 7;
++++    readonly NOT_FOUND_ERR: 8;
++++    readonly NOT_SUPPORTED_ERR: 9;
++++    readonly INUSE_ATTRIBUTE_ERR: 10;
++++    readonly INVALID_STATE_ERR: 11;
++++    readonly SYNTAX_ERR: 12;
++++    readonly INVALID_MODIFICATION_ERR: 13;
++++    readonly NAMESPACE_ERR: 14;
++++    readonly INVALID_ACCESS_ERR: 15;
++++    readonly VALIDATION_ERR: 16;
++++    readonly TYPE_MISMATCH_ERR: 17;
++++    readonly SECURITY_ERR: 18;
++++    readonly NETWORK_ERR: 19;
++++    readonly ABORT_ERR: 20;
++++    readonly URL_MISMATCH_ERR: 21;
++++    readonly QUOTA_EXCEEDED_ERR: 22;
++++    readonly TIMEOUT_ERR: 23;
++++    readonly INVALID_NODE_TYPE_ERR: 24;
++++    readonly DATA_CLONE_ERR: 25;
++++}
++++interface NodeDOMExceptionConstructor {
++++    prototype: DOMException;
++++    new(message?: string, nameOrOptions?: string | { name?: string; cause?: unknown }): DOMException;
++++    readonly INDEX_SIZE_ERR: 1;
++++    readonly DOMSTRING_SIZE_ERR: 2;
++++    readonly HIERARCHY_REQUEST_ERR: 3;
++++    readonly WRONG_DOCUMENT_ERR: 4;
++++    readonly INVALID_CHARACTER_ERR: 5;
++++    readonly NO_DATA_ALLOWED_ERR: 6;
++++    readonly NO_MODIFICATION_ALLOWED_ERR: 7;
++++    readonly NOT_FOUND_ERR: 8;
++++    readonly NOT_SUPPORTED_ERR: 9;
++++    readonly INUSE_ATTRIBUTE_ERR: 10;
++++    readonly INVALID_STATE_ERR: 11;
++++    readonly SYNTAX_ERR: 12;
++++    readonly INVALID_MODIFICATION_ERR: 13;
++++    readonly NAMESPACE_ERR: 14;
++++    readonly INVALID_ACCESS_ERR: 15;
++++    readonly VALIDATION_ERR: 16;
++++    readonly TYPE_MISMATCH_ERR: 17;
++++    readonly SECURITY_ERR: 18;
++++    readonly NETWORK_ERR: 19;
++++    readonly ABORT_ERR: 20;
++++    readonly URL_MISMATCH_ERR: 21;
++++    readonly QUOTA_EXCEEDED_ERR: 22;
++++    readonly TIMEOUT_ERR: 23;
++++    readonly INVALID_NODE_TYPE_ERR: 24;
++++    readonly DATA_CLONE_ERR: 25;
++++}
++++// #endregion DOMException
++++
++++declare global {
++++    // Declare "static" methods in Error
++++    interface ErrorConstructor {
++++        /** Create .stack property on a target object */
++++        captureStackTrace(targetObject: object, constructorOpt?: Function): void;
++++
++++        /**
++++         * Optional override for formatting stack traces
++++         *
++++         * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
++++         */
++++        prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
++++
++++        stackTraceLimit: number;
++++    }
++++
++++    /*-----------------------------------------------*
++++    *                                               *
++++    *                   GLOBAL                      *
++++    *                                               *
++++    ------------------------------------------------*/
++++
++++    // For backwards compability
++++    interface NodeRequire extends NodeJS.Require {}
++++    interface RequireResolve extends NodeJS.RequireResolve {}
++++    interface NodeModule extends NodeJS.Module {}
++++
++++    var global: typeof globalThis;
++++
++++    var process: NodeJS.Process;
++++    var console: Console;
++++
++++    var __filename: string;
++++    var __dirname: string;
++++
++++    var require: NodeRequire;
++++    var module: NodeModule;
++++
++++    // Same as module.exports
++++    var exports: any;
++++
++++    interface GCFunction {
++++        (options: {
++++            execution?: "sync";
++++            type?: "major" | "minor";
++++        }): void;
++++        (options: {
++++            execution: "async";
++++            type?: "major" | "minor";
++++        }): Promise<void>;
++++        (options?: boolean): void;
++++    }
++++
++++    /**
++++     * Only available if `--expose-gc` is passed to the process.
++++     */
++++    var gc: undefined | GCFunction;
++++
++++    // #region borrowed
++++    // from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
++++    /** A controller object that allows you to abort one or more DOM requests as and when desired. */
++++    interface AbortController {
++++        /**
++++         * Returns the AbortSignal object associated with this object.
++++         */
++++
++++        readonly signal: AbortSignal;
++++        /**
++++         * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
++++         */
++++        abort(reason?: any): void;
++++    }
++++
++++    /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
++++    interface AbortSignal extends EventTarget {
++++        /**
++++         * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
++++         */
++++        readonly aborted: boolean;
++++        readonly reason: any;
++++        onabort: null | ((this: AbortSignal, event: Event) => any);
++++        throwIfAborted(): void;
++++    }
++++
++++    var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
++++        : {
++++            prototype: AbortController;
++++            new(): AbortController;
++++        };
++++
++++    var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
++++        : {
++++            prototype: AbortSignal;
++++            new(): AbortSignal;
++++            abort(reason?: any): AbortSignal;
++++            timeout(milliseconds: number): AbortSignal;
++++            any(signals: AbortSignal[]): AbortSignal;
++++        };
++++    // #endregion borrowed
++++
++++    /**
++++     * @since v17.0.0
++++     *
++++     * Creates a deep clone of an object.
++++     */
++++    function structuredClone<T>(
++++        value: T,
++++        transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> },
++++    ): T;
++++
++++    // #region DOMException
++++    /**
++++     * @since v17.0.0
++++     * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
++++     *
++++     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
++++     */
++++    interface DOMException extends _DOMException {}
++++
++++    /**
++++     * @since v17.0.0
++++     *
++++     * The WHATWG `DOMException` class. See [DOMException](https://developer.mozilla.org/docs/Web/API/DOMException) for more details.
++++     */
++++    var DOMException: typeof globalThis extends { onmessage: any; DOMException: infer T } ? T
++++        : NodeDOMExceptionConstructor;
++++    // #endregion DOMException
++++
++++    /*----------------------------------------------*
++++    *                                               *
++++    *               GLOBAL INTERFACES               *
++++    *                                               *
++++    *-----------------------------------------------*/
++++    namespace NodeJS {
++++        interface CallSite {
++++            /**
++++             * Value of "this"
++++             */
++++            getThis(): unknown;
++++
++++            /**
++++             * Type of "this" as a string.
++++             * This is the name of the function stored in the constructor field of
++++             * "this", if available.  Otherwise the object's [[Class]] internal
++++             * property.
++++             */
++++            getTypeName(): string | null;
++++
++++            /**
++++             * Current function
++++             */
++++            getFunction(): Function | undefined;
++++
++++            /**
++++             * Name of the current function, typically its name property.
++++             * If a name property is not available an attempt will be made to try
++++             * to infer a name from the function's context.
++++             */
++++            getFunctionName(): string | null;
++++
++++            /**
++++             * Name of the property [of "this" or one of its prototypes] that holds
++++             * the current function
++++             */
++++            getMethodName(): string | null;
++++
++++            /**
++++             * Name of the script [if this function was defined in a script]
++++             */
++++            getFileName(): string | undefined;
++++
++++            /**
++++             * Current line number [if this function was defined in a script]
++++             */
++++            getLineNumber(): number | null;
++++
++++            /**
++++             * Current column number [if this function was defined in a script]
++++             */
++++            getColumnNumber(): number | null;
++++
++++            /**
++++             * A call site object representing the location where eval was called
++++             * [if this function was created using a call to eval]
++++             */
++++            getEvalOrigin(): string | undefined;
++++
++++            /**
++++             * Is this a toplevel invocation, that is, is "this" the global object?
++++             */
++++            isToplevel(): boolean;
++++
++++            /**
++++             * Does this call take place in code defined by a call to eval?
++++             */
++++            isEval(): boolean;
++++
++++            /**
++++             * Is this call in native V8 code?
++++             */
++++            isNative(): boolean;
++++
++++            /**
++++             * Is this a constructor call?
++++             */
++++            isConstructor(): boolean;
++++
++++            /**
++++             * is this an async call (i.e. await, Promise.all(), or Promise.any())?
++++             */
++++            isAsync(): boolean;
++++
++++            /**
++++             * is this an async call to Promise.all()?
++++             */
++++            isPromiseAll(): boolean;
++++
++++            /**
++++             * returns the index of the promise element that was followed in
++++             * Promise.all() or Promise.any() for async stack traces, or null
++++             * if the CallSite is not an async
++++             */
++++            getPromiseIndex(): number | null;
++++
++++            getScriptNameOrSourceURL(): string;
++++            getScriptHash(): string;
++++
++++            getEnclosingColumnNumber(): number;
++++            getEnclosingLineNumber(): number;
++++            getPosition(): number;
++++
++++            toString(): string;
++++        }
++++
++++        interface ErrnoException extends Error {
++++            errno?: number | undefined;
++++            code?: string | undefined;
++++            path?: string | undefined;
++++            syscall?: string | undefined;
++++        }
++++
++++        interface ReadableStream extends EventEmitter {
++++            readable: boolean;
++++            read(size?: number): string | Buffer;
++++            setEncoding(encoding: BufferEncoding): this;
++++            pause(): this;
++++            resume(): this;
++++            isPaused(): boolean;
++++            pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
++++            unpipe(destination?: WritableStream): this;
++++            unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
++++            wrap(oldStream: ReadableStream): this;
++++            [Symbol.asyncIterator](): NodeJS.AsyncIterator<string | Buffer>;
++++        }
++++
++++        interface WritableStream extends EventEmitter {
++++            writable: boolean;
++++            write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
++++            write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
++++            end(cb?: () => void): this;
++++            end(data: string | Uint8Array, cb?: () => void): this;
++++            end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
++++        }
++++
++++        interface ReadWriteStream extends ReadableStream, WritableStream {}
++++
++++        interface RefCounted {
++++            ref(): this;
++++            unref(): this;
++++        }
++++
++++        interface Require {
++++            (id: string): any;
++++            resolve: RequireResolve;
++++            cache: Dict<NodeModule>;
++++            /**
++++             * @deprecated
++++             */
++++            extensions: RequireExtensions;
++++            main: Module | undefined;
++++        }
++++
++++        interface RequireResolve {
++++            (id: string, options?: { paths?: string[] | undefined }): string;
++++            paths(request: string): string[] | null;
++++        }
++++
++++        interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {
++++            ".js": (m: Module, filename: string) => any;
++++            ".json": (m: Module, filename: string) => any;
++++            ".node": (m: Module, filename: string) => any;
++++        }
++++        interface Module {
++++            /**
++++             * `true` if the module is running during the Node.js preload
++++             */
++++            isPreloading: boolean;
++++            exports: any;
++++            require: Require;
++++            id: string;
++++            filename: string;
++++            loaded: boolean;
++++            /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
++++            parent: Module | null | undefined;
++++            children: Module[];
++++            /**
++++             * @since v11.14.0
++++             *
++++             * The directory name of the module. This is usually the same as the path.dirname() of the module.id.
++++             */
++++            path: string;
++++            paths: string[];
++++        }
++++
++++        interface Dict<T> {
++++            [key: string]: T | undefined;
++++        }
++++
++++        interface ReadOnlyDict<T> {
++++            readonly [key: string]: T | undefined;
++++        }
++++
++++        /** An iterable iterator returned by the Node.js API. */
++++        // Default TReturn/TNext in v20 is `any`, for compatibility with the previously-used IterableIterator.
++++        interface Iterator<T, TReturn = any, TNext = any> extends IteratorObject<T, TReturn, TNext> {
++++            [Symbol.iterator](): NodeJS.Iterator<T, TReturn, TNext>;
++++        }
++++
++++        /** An async iterable iterator returned by the Node.js API. */
++++        // Default TReturn/TNext in v20 is `any`, for compatibility with the previously-used AsyncIterableIterator.
++++        interface AsyncIterator<T, TReturn = any, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {
++++            [Symbol.asyncIterator](): NodeJS.AsyncIterator<T, TReturn, TNext>;
++++        }
++++    }
++++
++++    interface RequestInit extends _RequestInit {}
++++
++++    function fetch(
++++        input: string | URL | globalThis.Request,
++++        init?: RequestInit,
++++    ): Promise<Response>;
++++
++++    interface Request extends _Request {}
++++    var Request: typeof globalThis extends {
++++        onmessage: any;
++++        Request: infer T;
++++    } ? T
++++        : typeof import("undici-types").Request;
++++
++++    interface ResponseInit extends _ResponseInit {}
++++
++++    interface Response extends _Response {}
++++    var Response: typeof globalThis extends {
++++        onmessage: any;
++++        Response: infer T;
++++    } ? T
++++        : typeof import("undici-types").Response;
++++
++++    interface FormData extends _FormData {}
++++    var FormData: typeof globalThis extends {
++++        onmessage: any;
++++        FormData: infer T;
++++    } ? T
++++        : typeof import("undici-types").FormData;
++++
++++    interface Headers extends _Headers {}
++++    var Headers: typeof globalThis extends {
++++        onmessage: any;
++++        Headers: infer T;
++++    } ? T
++++        : typeof import("undici-types").Headers;
++++
++++    interface MessageEvent extends _MessageEvent {}
++++    /**
++++     * @since v15.0.0
++++     */
++++    var MessageEvent: typeof globalThis extends {
++++        onmessage: any;
++++        MessageEvent: infer T;
++++    } ? T
++++        : typeof import("undici-types").MessageEvent;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..0c7280c3d8a9a65543da4d2625cf2ce2fbf501e4
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,21 @@@@@
++++export {}; // Make this a module
++++
++++declare global {
++++    namespace NodeJS {
++++        type TypedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> =
++++            | Uint8Array<TArrayBuffer>
++++            | Uint8ClampedArray<TArrayBuffer>
++++            | Uint16Array<TArrayBuffer>
++++            | Uint32Array<TArrayBuffer>
++++            | Int8Array<TArrayBuffer>
++++            | Int16Array<TArrayBuffer>
++++            | Int32Array<TArrayBuffer>
++++            | BigUint64Array<TArrayBuffer>
++++            | BigInt64Array<TArrayBuffer>
++++            | Float32Array<TArrayBuffer>
++++            | Float64Array<TArrayBuffer>;
++++        type ArrayBufferView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> =
++++            | TypedArray<TArrayBuffer>
++++            | DataView<TArrayBuffer>;
++++    }
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..2c427af45f821c96b84f846902cfe513e5a5ff45
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1944 @@@@@
++++/**
++++ * To use the HTTP server and client one must import the `node:http` module.
++++ *
++++ * The HTTP interfaces in Node.js are designed to support many features
++++ * of the protocol which have been traditionally difficult to use.
++++ * In particular, large, possibly chunk-encoded, messages. The interface is
++++ * careful to never buffer entire requests or responses, so the
++++ * user is able to stream data.
++++ *
++++ * HTTP message headers are represented by an object like this:
++++ *
++++ * ```json
++++ * { "content-length": "123",
++++ *   "content-type": "text/plain",
++++ *   "connection": "keep-alive",
++++ *   "host": "example.com",
++++ *   "accept": "*" }
++++ * ```
++++ *
++++ * Keys are lowercased. Values are not modified.
++++ *
++++ * In order to support the full spectrum of possible HTTP applications, the Node.js
++++ * HTTP API is very low-level. It deals with stream handling and message
++++ * parsing only. It parses a message into headers and body but it does not
++++ * parse the actual headers or the body.
++++ *
++++ * See `message.headers` for details on how duplicate headers are handled.
++++ *
++++ * The raw headers as they were received are retained in the `rawHeaders` property, which is an array of `[key, value, key2, value2, ...]`. For
++++ * example, the previous message header object might have a `rawHeaders` list like the following:
++++ *
++++ * ```js
++++ * [ 'ConTent-Length', '123456',
++++ *   'content-LENGTH', '123',
++++ *   'content-type', 'text/plain',
++++ *   'CONNECTION', 'keep-alive',
++++ *   'Host', 'example.com',
++++ *   'accepT', '*' ]
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/http.js)
++++ */
++++declare module "http" {
++++    import * as stream from "node:stream";
++++    import { URL } from "node:url";
++++    import { LookupOptions } from "node:dns";
++++    import { EventEmitter } from "node:events";
++++    import { LookupFunction, Server as NetServer, Socket, TcpSocketConnectOpts } from "node:net";
++++    // incoming headers will never contain number
++++    interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
++++        accept?: string | undefined;
++++        "accept-language"?: string | undefined;
++++        "accept-patch"?: string | undefined;
++++        "accept-ranges"?: string | undefined;
++++        "access-control-allow-credentials"?: string | undefined;
++++        "access-control-allow-headers"?: string | undefined;
++++        "access-control-allow-methods"?: string | undefined;
++++        "access-control-allow-origin"?: string | undefined;
++++        "access-control-expose-headers"?: string | undefined;
++++        "access-control-max-age"?: string | undefined;
++++        "access-control-request-headers"?: string | undefined;
++++        "access-control-request-method"?: string | undefined;
++++        age?: string | undefined;
++++        allow?: string | undefined;
++++        "alt-svc"?: string | undefined;
++++        authorization?: string | undefined;
++++        "cache-control"?: string | undefined;
++++        connection?: string | undefined;
++++        "content-disposition"?: string | undefined;
++++        "content-encoding"?: string | undefined;
++++        "content-language"?: string | undefined;
++++        "content-length"?: string | undefined;
++++        "content-location"?: string | undefined;
++++        "content-range"?: string | undefined;
++++        "content-type"?: string | undefined;
++++        cookie?: string | undefined;
++++        date?: string | undefined;
++++        etag?: string | undefined;
++++        expect?: string | undefined;
++++        expires?: string | undefined;
++++        forwarded?: string | undefined;
++++        from?: string | undefined;
++++        host?: string | undefined;
++++        "if-match"?: string | undefined;
++++        "if-modified-since"?: string | undefined;
++++        "if-none-match"?: string | undefined;
++++        "if-unmodified-since"?: string | undefined;
++++        "last-modified"?: string | undefined;
++++        location?: string | undefined;
++++        origin?: string | undefined;
++++        pragma?: string | undefined;
++++        "proxy-authenticate"?: string | undefined;
++++        "proxy-authorization"?: string | undefined;
++++        "public-key-pins"?: string | undefined;
++++        range?: string | undefined;
++++        referer?: string | undefined;
++++        "retry-after"?: string | undefined;
++++        "sec-websocket-accept"?: string | undefined;
++++        "sec-websocket-extensions"?: string | undefined;
++++        "sec-websocket-key"?: string | undefined;
++++        "sec-websocket-protocol"?: string | undefined;
++++        "sec-websocket-version"?: string | undefined;
++++        "set-cookie"?: string[] | undefined;
++++        "strict-transport-security"?: string | undefined;
++++        tk?: string | undefined;
++++        trailer?: string | undefined;
++++        "transfer-encoding"?: string | undefined;
++++        upgrade?: string | undefined;
++++        "user-agent"?: string | undefined;
++++        vary?: string | undefined;
++++        via?: string | undefined;
++++        warning?: string | undefined;
++++        "www-authenticate"?: string | undefined;
++++    }
++++    // outgoing headers allows numbers (as they are converted internally to strings)
++++    type OutgoingHttpHeader = number | string | string[];
++++    interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {
++++        accept?: string | string[] | undefined;
++++        "accept-charset"?: string | string[] | undefined;
++++        "accept-encoding"?: string | string[] | undefined;
++++        "accept-language"?: string | string[] | undefined;
++++        "accept-ranges"?: string | undefined;
++++        "access-control-allow-credentials"?: string | undefined;
++++        "access-control-allow-headers"?: string | undefined;
++++        "access-control-allow-methods"?: string | undefined;
++++        "access-control-allow-origin"?: string | undefined;
++++        "access-control-expose-headers"?: string | undefined;
++++        "access-control-max-age"?: string | undefined;
++++        "access-control-request-headers"?: string | undefined;
++++        "access-control-request-method"?: string | undefined;
++++        age?: string | undefined;
++++        allow?: string | undefined;
++++        authorization?: string | undefined;
++++        "cache-control"?: string | undefined;
++++        "cdn-cache-control"?: string | undefined;
++++        connection?: string | string[] | undefined;
++++        "content-disposition"?: string | undefined;
++++        "content-encoding"?: string | undefined;
++++        "content-language"?: string | undefined;
++++        "content-length"?: string | number | undefined;
++++        "content-location"?: string | undefined;
++++        "content-range"?: string | undefined;
++++        "content-security-policy"?: string | undefined;
++++        "content-security-policy-report-only"?: string | undefined;
++++        cookie?: string | string[] | undefined;
++++        dav?: string | string[] | undefined;
++++        dnt?: string | undefined;
++++        date?: string | undefined;
++++        etag?: string | undefined;
++++        expect?: string | undefined;
++++        expires?: string | undefined;
++++        forwarded?: string | undefined;
++++        from?: string | undefined;
++++        host?: string | undefined;
++++        "if-match"?: string | undefined;
++++        "if-modified-since"?: string | undefined;
++++        "if-none-match"?: string | undefined;
++++        "if-range"?: string | undefined;
++++        "if-unmodified-since"?: string | undefined;
++++        "last-modified"?: string | undefined;
++++        link?: string | string[] | undefined;
++++        location?: string | undefined;
++++        "max-forwards"?: string | undefined;
++++        origin?: string | undefined;
++++        prgama?: string | string[] | undefined;
++++        "proxy-authenticate"?: string | string[] | undefined;
++++        "proxy-authorization"?: string | undefined;
++++        "public-key-pins"?: string | undefined;
++++        "public-key-pins-report-only"?: string | undefined;
++++        range?: string | undefined;
++++        referer?: string | undefined;
++++        "referrer-policy"?: string | undefined;
++++        refresh?: string | undefined;
++++        "retry-after"?: string | undefined;
++++        "sec-websocket-accept"?: string | undefined;
++++        "sec-websocket-extensions"?: string | string[] | undefined;
++++        "sec-websocket-key"?: string | undefined;
++++        "sec-websocket-protocol"?: string | string[] | undefined;
++++        "sec-websocket-version"?: string | undefined;
++++        server?: string | undefined;
++++        "set-cookie"?: string | string[] | undefined;
++++        "strict-transport-security"?: string | undefined;
++++        te?: string | undefined;
++++        trailer?: string | undefined;
++++        "transfer-encoding"?: string | undefined;
++++        "user-agent"?: string | undefined;
++++        upgrade?: string | undefined;
++++        "upgrade-insecure-requests"?: string | undefined;
++++        vary?: string | undefined;
++++        via?: string | string[] | undefined;
++++        warning?: string | undefined;
++++        "www-authenticate"?: string | string[] | undefined;
++++        "x-content-type-options"?: string | undefined;
++++        "x-dns-prefetch-control"?: string | undefined;
++++        "x-frame-options"?: string | undefined;
++++        "x-xss-protection"?: string | undefined;
++++    }
++++    interface ClientRequestArgs {
++++        _defaultAgent?: Agent | undefined;
++++        agent?: Agent | boolean | undefined;
++++        auth?: string | null | undefined;
++++        createConnection?:
++++            | ((
++++                options: ClientRequestArgs,
++++                oncreate: (err: Error | null, socket: stream.Duplex) => void,
++++            ) => stream.Duplex | null | undefined)
++++            | undefined;
++++        defaultPort?: number | string | undefined;
++++        family?: number | undefined;
++++        headers?: OutgoingHttpHeaders | undefined;
++++        hints?: LookupOptions["hints"];
++++        host?: string | null | undefined;
++++        hostname?: string | null | undefined;
++++        insecureHTTPParser?: boolean | undefined;
++++        localAddress?: string | undefined;
++++        localPort?: number | undefined;
++++        lookup?: LookupFunction | undefined;
++++        /**
++++         * @default 16384
++++         */
++++        maxHeaderSize?: number | undefined;
++++        method?: string | undefined;
++++        path?: string | null | undefined;
++++        port?: number | string | null | undefined;
++++        protocol?: string | null | undefined;
++++        setHost?: boolean | undefined;
++++        signal?: AbortSignal | undefined;
++++        socketPath?: string | undefined;
++++        timeout?: number | undefined;
++++        uniqueHeaders?: Array<string | string[]> | undefined;
++++        joinDuplicateHeaders?: boolean;
++++    }
++++    interface ServerOptions<
++++        Request extends typeof IncomingMessage = typeof IncomingMessage,
++++        Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
++++    > {
++++        /**
++++         * Specifies the `IncomingMessage` class to be used. Useful for extending the original `IncomingMessage`.
++++         */
++++        IncomingMessage?: Request | undefined;
++++        /**
++++         * Specifies the `ServerResponse` class to be used. Useful for extending the original `ServerResponse`.
++++         */
++++        ServerResponse?: Response | undefined;
++++        /**
++++         * Sets the timeout value in milliseconds for receiving the entire request from the client.
++++         * @see Server.requestTimeout for more information.
++++         * @default 300000
++++         * @since v18.0.0
++++         */
++++        requestTimeout?: number | undefined;
++++        /**
++++         * It joins the field line values of multiple headers in a request with `, ` instead of discarding the duplicates.
++++         * @default false
++++         * @since v18.14.0
++++         */
++++        joinDuplicateHeaders?: boolean;
++++        /**
++++         * The number of milliseconds of inactivity a server needs to wait for additional incoming data,
++++         * after it has finished writing the last response, before a socket will be destroyed.
++++         * @see Server.keepAliveTimeout for more information.
++++         * @default 5000
++++         * @since v18.0.0
++++         */
++++        keepAliveTimeout?: number | undefined;
++++        /**
++++         * Sets the interval value in milliseconds to check for request and headers timeout in incomplete requests.
++++         * @default 30000
++++         */
++++        connectionsCheckingInterval?: number | undefined;
++++        /**
++++         * Optionally overrides all `socket`s' `readableHighWaterMark` and `writableHighWaterMark`.
++++         * This affects `highWaterMark` property of both `IncomingMessage` and `ServerResponse`.
++++         * Default: @see stream.getDefaultHighWaterMark().
++++         * @since v20.1.0
++++         */
++++        highWaterMark?: number | undefined;
++++        /**
++++         * Use an insecure HTTP parser that accepts invalid HTTP headers when `true`.
++++         * Using the insecure parser should be avoided.
++++         * See --insecure-http-parser for more information.
++++         * @default false
++++         */
++++        insecureHTTPParser?: boolean | undefined;
++++        /**
++++         * Optionally overrides the value of `--max-http-header-size` for requests received by
++++         * this server, i.e. the maximum length of request headers in bytes.
++++         * @default 16384
++++         * @since v13.3.0
++++         */
++++        maxHeaderSize?: number | undefined;
++++        /**
++++         * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received.
++++         * @default true
++++         * @since v16.5.0
++++         */
++++        noDelay?: boolean | undefined;
++++        /**
++++         * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received,
++++         * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`.
++++         * @default false
++++         * @since v16.5.0
++++         */
++++        keepAlive?: boolean | undefined;
++++        /**
++++         * If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket.
++++         * @default 0
++++         * @since v16.5.0
++++         */
++++        keepAliveInitialDelay?: number | undefined;
++++        /**
++++         * A list of response headers that should be sent only once.
++++         * If the header's value is an array, the items will be joined using `; `.
++++         */
++++        uniqueHeaders?: Array<string | string[]> | undefined;
++++    }
++++    type RequestListener<
++++        Request extends typeof IncomingMessage = typeof IncomingMessage,
++++        Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
++++    > = (req: InstanceType<Request>, res: InstanceType<Response> & { req: InstanceType<Request> }) => void;
++++    /**
++++     * @since v0.1.17
++++     */
++++    class Server<
++++        Request extends typeof IncomingMessage = typeof IncomingMessage,
++++        Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
++++    > extends NetServer {
++++        constructor(requestListener?: RequestListener<Request, Response>);
++++        constructor(options: ServerOptions<Request, Response>, requestListener?: RequestListener<Request, Response>);
++++        /**
++++         * Sets the timeout value for sockets, and emits a `'timeout'` event on
++++         * the Server object, passing the socket as an argument, if a timeout
++++         * occurs.
++++         *
++++         * If there is a `'timeout'` event listener on the Server object, then it
++++         * will be called with the timed-out socket as an argument.
++++         *
++++         * By default, the Server does not timeout sockets. However, if a callback
++++         * is assigned to the Server's `'timeout'` event, timeouts must be handled
++++         * explicitly.
++++         * @since v0.9.12
++++         * @param [msecs=0 (no timeout)]
++++         */
++++        setTimeout(msecs?: number, callback?: () => void): this;
++++        setTimeout(callback: () => void): this;
++++        /**
++++         * Limits maximum incoming headers count. If set to 0, no limit will be applied.
++++         * @since v0.7.0
++++         */
++++        maxHeadersCount: number | null;
++++        /**
++++         * The maximum number of requests socket can handle
++++         * before closing keep alive connection.
++++         *
++++         * A value of `0` will disable the limit.
++++         *
++++         * When the limit is reached it will set the `Connection` header value to `close`,
++++         * but will not actually close the connection, subsequent requests sent
++++         * after the limit is reached will get `503 Service Unavailable` as a response.
++++         * @since v16.10.0
++++         */
++++        maxRequestsPerSocket: number | null;
++++        /**
++++         * The number of milliseconds of inactivity before a socket is presumed
++++         * to have timed out.
++++         *
++++         * A value of `0` will disable the timeout behavior on incoming connections.
++++         *
++++         * The socket timeout logic is set up on connection, so changing this
++++         * value only affects new connections to the server, not any existing connections.
++++         * @since v0.9.12
++++         */
++++        timeout: number;
++++        /**
++++         * Limit the amount of time the parser will wait to receive the complete HTTP
++++         * headers.
++++         *
++++         * If the timeout expires, the server responds with status 408 without
++++         * forwarding the request to the request listener and then closes the connection.
++++         *
++++         * It must be set to a non-zero value (e.g. 120 seconds) to protect against
++++         * potential Denial-of-Service attacks in case the server is deployed without a
++++         * reverse proxy in front.
++++         * @since v11.3.0, v10.14.0
++++         */
++++        headersTimeout: number;
++++        /**
++++         * The number of milliseconds of inactivity a server needs to wait for additional
++++         * incoming data, after it has finished writing the last response, before a socket
++++         * will be destroyed. If the server receives new data before the keep-alive
++++         * timeout has fired, it will reset the regular inactivity timeout, i.e., `server.timeout`.
++++         *
++++         * A value of `0` will disable the keep-alive timeout behavior on incoming
++++         * connections.
++++         * A value of `0` makes the http server behave similarly to Node.js versions prior
++++         * to 8.0.0, which did not have a keep-alive timeout.
++++         *
++++         * The socket timeout logic is set up on connection, so changing this value only
++++         * affects new connections to the server, not any existing connections.
++++         * @since v8.0.0
++++         */
++++        keepAliveTimeout: number;
++++        /**
++++         * Sets the timeout value in milliseconds for receiving the entire request from
++++         * the client.
++++         *
++++         * If the timeout expires, the server responds with status 408 without
++++         * forwarding the request to the request listener and then closes the connection.
++++         *
++++         * It must be set to a non-zero value (e.g. 120 seconds) to protect against
++++         * potential Denial-of-Service attacks in case the server is deployed without a
++++         * reverse proxy in front.
++++         * @since v14.11.0
++++         */
++++        requestTimeout: number;
++++        /**
++++         * Closes all connections connected to this server.
++++         * @since v18.2.0
++++         */
++++        closeAllConnections(): void;
++++        /**
++++         * Closes all connections connected to this server which are not sending a request
++++         * or waiting for a response.
++++         * @since v18.2.0
++++         */
++++        closeIdleConnections(): void;
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "connection", listener: (socket: Socket) => void): this;
++++        addListener(event: "error", listener: (err: Error) => void): this;
++++        addListener(event: "listening", listener: () => void): this;
++++        addListener(event: "checkContinue", listener: RequestListener<Request, Response>): this;
++++        addListener(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
++++        addListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
++++        addListener(
++++            event: "connect",
++++            listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
++++        ): this;
++++        addListener(event: "dropRequest", listener: (req: InstanceType<Request>, socket: stream.Duplex) => void): this;
++++        addListener(event: "request", listener: RequestListener<Request, Response>): this;
++++        addListener(
++++            event: "upgrade",
++++            listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
++++        ): this;
++++        emit(event: string, ...args: any[]): boolean;
++++        emit(event: "close"): boolean;
++++        emit(event: "connection", socket: Socket): boolean;
++++        emit(event: "error", err: Error): boolean;
++++        emit(event: "listening"): boolean;
++++        emit(
++++            event: "checkContinue",
++++            req: InstanceType<Request>,
++++            res: InstanceType<Response> & { req: InstanceType<Request> },
++++        ): boolean;
++++        emit(
++++            event: "checkExpectation",
++++            req: InstanceType<Request>,
++++            res: InstanceType<Response> & { req: InstanceType<Request> },
++++        ): boolean;
++++        emit(event: "clientError", err: Error, socket: stream.Duplex): boolean;
++++        emit(event: "connect", req: InstanceType<Request>, socket: stream.Duplex, head: Buffer): boolean;
++++        emit(event: "dropRequest", req: InstanceType<Request>, socket: stream.Duplex): boolean;
++++        emit(
++++            event: "request",
++++            req: InstanceType<Request>,
++++            res: InstanceType<Response> & { req: InstanceType<Request> },
++++        ): boolean;
++++        emit(event: "upgrade", req: InstanceType<Request>, socket: stream.Duplex, head: Buffer): boolean;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "connection", listener: (socket: Socket) => void): this;
++++        on(event: "error", listener: (err: Error) => void): this;
++++        on(event: "listening", listener: () => void): this;
++++        on(event: "checkContinue", listener: RequestListener<Request, Response>): this;
++++        on(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
++++        on(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
++++        on(event: "connect", listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void): this;
++++        on(event: "dropRequest", listener: (req: InstanceType<Request>, socket: stream.Duplex) => void): this;
++++        on(event: "request", listener: RequestListener<Request, Response>): this;
++++        on(event: "upgrade", listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "connection", listener: (socket: Socket) => void): this;
++++        once(event: "error", listener: (err: Error) => void): this;
++++        once(event: "listening", listener: () => void): this;
++++        once(event: "checkContinue", listener: RequestListener<Request, Response>): this;
++++        once(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
++++        once(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
++++        once(
++++            event: "connect",
++++            listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
++++        ): this;
++++        once(event: "dropRequest", listener: (req: InstanceType<Request>, socket: stream.Duplex) => void): this;
++++        once(event: "request", listener: RequestListener<Request, Response>): this;
++++        once(
++++            event: "upgrade",
++++            listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
++++        ): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "connection", listener: (socket: Socket) => void): this;
++++        prependListener(event: "error", listener: (err: Error) => void): this;
++++        prependListener(event: "listening", listener: () => void): this;
++++        prependListener(event: "checkContinue", listener: RequestListener<Request, Response>): this;
++++        prependListener(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
++++        prependListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
++++        prependListener(
++++            event: "connect",
++++            listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
++++        ): this;
++++        prependListener(
++++            event: "dropRequest",
++++            listener: (req: InstanceType<Request>, socket: stream.Duplex) => void,
++++        ): this;
++++        prependListener(event: "request", listener: RequestListener<Request, Response>): this;
++++        prependListener(
++++            event: "upgrade",
++++            listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
++++        ): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "connection", listener: (socket: Socket) => void): this;
++++        prependOnceListener(event: "error", listener: (err: Error) => void): this;
++++        prependOnceListener(event: "listening", listener: () => void): this;
++++        prependOnceListener(event: "checkContinue", listener: RequestListener<Request, Response>): this;
++++        prependOnceListener(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
++++        prependOnceListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
++++        prependOnceListener(
++++            event: "connect",
++++            listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
++++        ): this;
++++        prependOnceListener(
++++            event: "dropRequest",
++++            listener: (req: InstanceType<Request>, socket: stream.Duplex) => void,
++++        ): this;
++++        prependOnceListener(event: "request", listener: RequestListener<Request, Response>): this;
++++        prependOnceListener(
++++            event: "upgrade",
++++            listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
++++        ): this;
++++    }
++++    /**
++++     * This class serves as the parent class of {@link ClientRequest} and {@link ServerResponse}. It is an abstract outgoing message from
++++     * the perspective of the participants of an HTTP transaction.
++++     * @since v0.1.17
++++     */
++++    class OutgoingMessage<Request extends IncomingMessage = IncomingMessage> extends stream.Writable {
++++        readonly req: Request;
++++        chunkedEncoding: boolean;
++++        shouldKeepAlive: boolean;
++++        useChunkedEncodingByDefault: boolean;
++++        sendDate: boolean;
++++        /**
++++         * @deprecated Use `writableEnded` instead.
++++         */
++++        finished: boolean;
++++        /**
++++         * Read-only. `true` if the headers were sent, otherwise `false`.
++++         * @since v0.9.3
++++         */
++++        readonly headersSent: boolean;
++++        /**
++++         * Alias of `outgoingMessage.socket`.
++++         * @since v0.3.0
++++         * @deprecated Since v15.12.0,v14.17.1 - Use `socket` instead.
++++         */
++++        readonly connection: Socket | null;
++++        /**
++++         * Reference to the underlying socket. Usually, users will not want to access
++++         * this property.
++++         *
++++         * After calling `outgoingMessage.end()`, this property will be nulled.
++++         * @since v0.3.0
++++         */
++++        readonly socket: Socket | null;
++++        constructor();
++++        /**
++++         * Once a socket is associated with the message and is connected, `socket.setTimeout()` will be called with `msecs` as the first parameter.
++++         * @since v0.9.12
++++         * @param callback Optional function to be called when a timeout occurs. Same as binding to the `timeout` event.
++++         */
++++        setTimeout(msecs: number, callback?: () => void): this;
++++        /**
++++         * Sets a single header value. If the header already exists in the to-be-sent
++++         * headers, its value will be replaced. Use an array of strings to send multiple
++++         * headers with the same name.
++++         * @since v0.4.0
++++         * @param name Header name
++++         * @param value Header value
++++         */
++++        setHeader(name: string, value: number | string | readonly string[]): this;
++++        /**
++++         * Sets multiple header values for implicit headers. headers must be an instance of
++++         * `Headers` or `Map`, if a header already exists in the to-be-sent headers, its
++++         * value will be replaced.
++++         *
++++         * ```js
++++         * const headers = new Headers({ foo: 'bar' });
++++         * outgoingMessage.setHeaders(headers);
++++         * ```
++++         *
++++         * or
++++         *
++++         * ```js
++++         * const headers = new Map([['foo', 'bar']]);
++++         * outgoingMessage.setHeaders(headers);
++++         * ```
++++         *
++++         * When headers have been set with `outgoingMessage.setHeaders()`, they will be
++++         * merged with any headers passed to `response.writeHead()`, with the headers passed
++++         * to `response.writeHead()` given precedence.
++++         *
++++         * ```js
++++         * // Returns content-type = text/plain
++++         * const server = http.createServer((req, res) => {
++++         *   const headers = new Headers({ 'Content-Type': 'text/html' });
++++         *   res.setHeaders(headers);
++++         *   res.writeHead(200, { 'Content-Type': 'text/plain' });
++++         *   res.end('ok');
++++         * });
++++         * ```
++++         *
++++         * @since v19.6.0, v18.15.0
++++         * @param name Header name
++++         * @param value Header value
++++         */
++++        setHeaders(headers: Headers | Map<string, number | string | readonly string[]>): this;
++++        /**
++++         * Append a single header value to the header object.
++++         *
++++         * If the value is an array, this is equivalent to calling this method multiple
++++         * times.
++++         *
++++         * If there were no previous values for the header, this is equivalent to calling `outgoingMessage.setHeader(name, value)`.
++++         *
++++         * Depending of the value of `options.uniqueHeaders` when the client request or the
++++         * server were created, this will end up in the header being sent multiple times or
++++         * a single time with values joined using `; `.
++++         * @since v18.3.0, v16.17.0
++++         * @param name Header name
++++         * @param value Header value
++++         */
++++        appendHeader(name: string, value: string | readonly string[]): this;
++++        /**
++++         * Gets the value of the HTTP header with the given name. If that header is not
++++         * set, the returned value will be `undefined`.
++++         * @since v0.4.0
++++         * @param name Name of header
++++         */
++++        getHeader(name: string): number | string | string[] | undefined;
++++        /**
++++         * Returns a shallow copy of the current outgoing headers. Since a shallow
++++         * copy is used, array values may be mutated without additional calls to
++++         * various header-related HTTP module methods. The keys of the returned
++++         * object are the header names and the values are the respective header
++++         * values. All header names are lowercase.
++++         *
++++         * The object returned by the `outgoingMessage.getHeaders()` method does
++++         * not prototypically inherit from the JavaScript `Object`. This means that
++++         * typical `Object` methods such as `obj.toString()`, `obj.hasOwnProperty()`,
++++         * and others are not defined and will not work.
++++         *
++++         * ```js
++++         * outgoingMessage.setHeader('Foo', 'bar');
++++         * outgoingMessage.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']);
++++         *
++++         * const headers = outgoingMessage.getHeaders();
++++         * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] }
++++         * ```
++++         * @since v7.7.0
++++         */
++++        getHeaders(): OutgoingHttpHeaders;
++++        /**
++++         * Returns an array containing the unique names of the current outgoing headers.
++++         * All names are lowercase.
++++         * @since v7.7.0
++++         */
++++        getHeaderNames(): string[];
++++        /**
++++         * Returns `true` if the header identified by `name` is currently set in the
++++         * outgoing headers. The header name is case-insensitive.
++++         *
++++         * ```js
++++         * const hasContentType = outgoingMessage.hasHeader('content-type');
++++         * ```
++++         * @since v7.7.0
++++         */
++++        hasHeader(name: string): boolean;
++++        /**
++++         * Removes a header that is queued for implicit sending.
++++         *
++++         * ```js
++++         * outgoingMessage.removeHeader('Content-Encoding');
++++         * ```
++++         * @since v0.4.0
++++         * @param name Header name
++++         */
++++        removeHeader(name: string): void;
++++        /**
++++         * Adds HTTP trailers (headers but at the end of the message) to the message.
++++         *
++++         * Trailers will **only** be emitted if the message is chunked encoded. If not,
++++         * the trailers will be silently discarded.
++++         *
++++         * HTTP requires the `Trailer` header to be sent to emit trailers,
++++         * with a list of header field names in its value, e.g.
++++         *
++++         * ```js
++++         * message.writeHead(200, { 'Content-Type': 'text/plain',
++++         *                          'Trailer': 'Content-MD5' });
++++         * message.write(fileData);
++++         * message.addTrailers({ 'Content-MD5': '7895bf4b8828b55ceaf47747b4bca667' });
++++         * message.end();
++++         * ```
++++         *
++++         * Attempting to set a header field name or value that contains invalid characters
++++         * will result in a `TypeError` being thrown.
++++         * @since v0.3.0
++++         */
++++        addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void;
++++        /**
++++         * Flushes the message headers.
++++         *
++++         * For efficiency reason, Node.js normally buffers the message headers
++++         * until `outgoingMessage.end()` is called or the first chunk of message data
++++         * is written. It then tries to pack the headers and data into a single TCP
++++         * packet.
++++         *
++++         * It is usually desired (it saves a TCP round-trip), but not when the first
++++         * data is not sent until possibly much later. `outgoingMessage.flushHeaders()` bypasses the optimization and kickstarts the message.
++++         * @since v1.6.0
++++         */
++++        flushHeaders(): void;
++++    }
++++    /**
++++     * This object is created internally by an HTTP server, not by the user. It is
++++     * passed as the second parameter to the `'request'` event.
++++     * @since v0.1.17
++++     */
++++    class ServerResponse<Request extends IncomingMessage = IncomingMessage> extends OutgoingMessage<Request> {
++++        /**
++++         * When using implicit headers (not calling `response.writeHead()` explicitly),
++++         * this property controls the status code that will be sent to the client when
++++         * the headers get flushed.
++++         *
++++         * ```js
++++         * response.statusCode = 404;
++++         * ```
++++         *
++++         * After response header was sent to the client, this property indicates the
++++         * status code which was sent out.
++++         * @since v0.4.0
++++         */
++++        statusCode: number;
++++        /**
++++         * When using implicit headers (not calling `response.writeHead()` explicitly),
++++         * this property controls the status message that will be sent to the client when
++++         * the headers get flushed. If this is left as `undefined` then the standard
++++         * message for the status code will be used.
++++         *
++++         * ```js
++++         * response.statusMessage = 'Not found';
++++         * ```
++++         *
++++         * After response header was sent to the client, this property indicates the
++++         * status message which was sent out.
++++         * @since v0.11.8
++++         */
++++        statusMessage: string;
++++        /**
++++         * If set to `true`, Node.js will check whether the `Content-Length` header value and the size of the body, in bytes, are equal.
++++         * Mismatching the `Content-Length` header value will result
++++         * in an `Error` being thrown, identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`.
++++         * @since v18.10.0, v16.18.0
++++         */
++++        strictContentLength: boolean;
++++        constructor(req: Request);
++++        assignSocket(socket: Socket): void;
++++        detachSocket(socket: Socket): void;
++++        /**
++++         * Sends an HTTP/1.1 100 Continue message to the client, indicating that
++++         * the request body should be sent. See the `'checkContinue'` event on `Server`.
++++         * @since v0.3.0
++++         */
++++        writeContinue(callback?: () => void): void;
++++        /**
++++         * Sends an HTTP/1.1 103 Early Hints message to the client with a Link header,
++++         * indicating that the user agent can preload/preconnect the linked resources.
++++         * The `hints` is an object containing the values of headers to be sent with
++++         * early hints message. The optional `callback` argument will be called when
++++         * the response message has been written.
++++         *
++++         * **Example**
++++         *
++++         * ```js
++++         * const earlyHintsLink = '</styles.css>; rel=preload; as=style';
++++         * response.writeEarlyHints({
++++         *   'link': earlyHintsLink,
++++         * });
++++         *
++++         * const earlyHintsLinks = [
++++         *   '</styles.css>; rel=preload; as=style',
++++         *   '</scripts.js>; rel=preload; as=script',
++++         * ];
++++         * response.writeEarlyHints({
++++         *   'link': earlyHintsLinks,
++++         *   'x-trace-id': 'id for diagnostics',
++++         * });
++++         *
++++         * const earlyHintsCallback = () => console.log('early hints message sent');
++++         * response.writeEarlyHints({
++++         *   'link': earlyHintsLinks,
++++         * }, earlyHintsCallback);
++++         * ```
++++         * @since v18.11.0
++++         * @param hints An object containing the values of headers
++++         * @param callback Will be called when the response message has been written
++++         */
++++        writeEarlyHints(hints: Record<string, string | string[]>, callback?: () => void): void;
++++        /**
++++         * Sends a response header to the request. The status code is a 3-digit HTTP
++++         * status code, like `404`. The last argument, `headers`, are the response headers.
++++         * Optionally one can give a human-readable `statusMessage` as the second
++++         * argument.
++++         *
++++         * `headers` may be an `Array` where the keys and values are in the same list.
++++         * It is _not_ a list of tuples. So, the even-numbered offsets are key values,
++++         * and the odd-numbered offsets are the associated values. The array is in the same
++++         * format as `request.rawHeaders`.
++++         *
++++         * Returns a reference to the `ServerResponse`, so that calls can be chained.
++++         *
++++         * ```js
++++         * const body = 'hello world';
++++         * response
++++         *   .writeHead(200, {
++++         *     'Content-Length': Buffer.byteLength(body),
++++         *     'Content-Type': 'text/plain',
++++         *   })
++++         *   .end(body);
++++         * ```
++++         *
++++         * This method must only be called once on a message and it must
++++         * be called before `response.end()` is called.
++++         *
++++         * If `response.write()` or `response.end()` are called before calling
++++         * this, the implicit/mutable headers will be calculated and call this function.
++++         *
++++         * When headers have been set with `response.setHeader()`, they will be merged
++++         * with any headers passed to `response.writeHead()`, with the headers passed
++++         * to `response.writeHead()` given precedence.
++++         *
++++         * If this method is called and `response.setHeader()` has not been called,
++++         * it will directly write the supplied header values onto the network channel
++++         * without caching internally, and the `response.getHeader()` on the header
++++         * will not yield the expected result. If progressive population of headers is
++++         * desired with potential future retrieval and modification, use `response.setHeader()` instead.
++++         *
++++         * ```js
++++         * // Returns content-type = text/plain
++++         * const server = http.createServer((req, res) => {
++++         *   res.setHeader('Content-Type', 'text/html');
++++         *   res.setHeader('X-Foo', 'bar');
++++         *   res.writeHead(200, { 'Content-Type': 'text/plain' });
++++         *   res.end('ok');
++++         * });
++++         * ```
++++         *
++++         * `Content-Length` is read in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes. Node.js
++++         * will check whether `Content-Length` and the length of the body which has
++++         * been transmitted are equal or not.
++++         *
++++         * Attempting to set a header field name or value that contains invalid characters
++++         * will result in a \[`Error`\]\[\] being thrown.
++++         * @since v0.1.30
++++         */
++++        writeHead(
++++            statusCode: number,
++++            statusMessage?: string,
++++            headers?: OutgoingHttpHeaders | OutgoingHttpHeader[],
++++        ): this;
++++        writeHead(statusCode: number, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this;
++++        /**
++++         * Sends a HTTP/1.1 102 Processing message to the client, indicating that
++++         * the request body should be sent.
++++         * @since v10.0.0
++++         */
++++        writeProcessing(): void;
++++    }
++++    interface InformationEvent {
++++        statusCode: number;
++++        statusMessage: string;
++++        httpVersion: string;
++++        httpVersionMajor: number;
++++        httpVersionMinor: number;
++++        headers: IncomingHttpHeaders;
++++        rawHeaders: string[];
++++    }
++++    /**
++++     * This object is created internally and returned from {@link request}. It
++++     * represents an _in-progress_ request whose header has already been queued. The
++++     * header is still mutable using the `setHeader(name, value)`, `getHeader(name)`, `removeHeader(name)` API. The actual header will
++++     * be sent along with the first data chunk or when calling `request.end()`.
++++     *
++++     * To get the response, add a listener for `'response'` to the request object. `'response'` will be emitted from the request object when the response
++++     * headers have been received. The `'response'` event is executed with one
++++     * argument which is an instance of {@link IncomingMessage}.
++++     *
++++     * During the `'response'` event, one can add listeners to the
++++     * response object; particularly to listen for the `'data'` event.
++++     *
++++     * If no `'response'` handler is added, then the response will be
++++     * entirely discarded. However, if a `'response'` event handler is added,
++++     * then the data from the response object **must** be consumed, either by
++++     * calling `response.read()` whenever there is a `'readable'` event, or
++++     * by adding a `'data'` handler, or by calling the `.resume()` method.
++++     * Until the data is consumed, the `'end'` event will not fire. Also, until
++++     * the data is read it will consume memory that can eventually lead to a
++++     * 'process out of memory' error.
++++     *
++++     * For backward compatibility, `res` will only emit `'error'` if there is an `'error'` listener registered.
++++     *
++++     * Set `Content-Length` header to limit the response body size.
++++     * If `response.strictContentLength` is set to `true`, mismatching the `Content-Length` header value will result in an `Error` being thrown,
++++     * identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`.
++++     *
++++     * `Content-Length` value should be in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes.
++++     * @since v0.1.17
++++     */
++++    class ClientRequest extends OutgoingMessage {
++++        /**
++++         * The `request.aborted` property will be `true` if the request has
++++         * been aborted.
++++         * @since v0.11.14
++++         * @deprecated Since v17.0.0, v16.12.0 - Check `destroyed` instead.
++++         */
++++        aborted: boolean;
++++        /**
++++         * The request host.
++++         * @since v14.5.0, v12.19.0
++++         */
++++        host: string;
++++        /**
++++         * The request protocol.
++++         * @since v14.5.0, v12.19.0
++++         */
++++        protocol: string;
++++        /**
++++         * When sending request through a keep-alive enabled agent, the underlying socket
++++         * might be reused. But if server closes connection at unfortunate time, client
++++         * may run into a 'ECONNRESET' error.
++++         *
++++         * ```js
++++         * import http from 'node:http';
++++         *
++++         * // Server has a 5 seconds keep-alive timeout by default
++++         * http
++++         *   .createServer((req, res) => {
++++         *     res.write('hello\n');
++++         *     res.end();
++++         *   })
++++         *   .listen(3000);
++++         *
++++         * setInterval(() => {
++++         *   // Adapting a keep-alive agent
++++         *   http.get('http://localhost:3000', { agent }, (res) => {
++++         *     res.on('data', (data) => {
++++         *       // Do nothing
++++         *     });
++++         *   });
++++         * }, 5000); // Sending request on 5s interval so it's easy to hit idle timeout
++++         * ```
++++         *
++++         * By marking a request whether it reused socket or not, we can do
++++         * automatic error retry base on it.
++++         *
++++         * ```js
++++         * import http from 'node:http';
++++         * const agent = new http.Agent({ keepAlive: true });
++++         *
++++         * function retriableRequest() {
++++         *   const req = http
++++         *     .get('http://localhost:3000', { agent }, (res) => {
++++         *       // ...
++++         *     })
++++         *     .on('error', (err) => {
++++         *       // Check if retry is needed
++++         *       if (req.reusedSocket &#x26;&#x26; err.code === 'ECONNRESET') {
++++         *         retriableRequest();
++++         *       }
++++         *     });
++++         * }
++++         *
++++         * retriableRequest();
++++         * ```
++++         * @since v13.0.0, v12.16.0
++++         */
++++        reusedSocket: boolean;
++++        /**
++++         * Limits maximum response headers count. If set to 0, no limit will be applied.
++++         */
++++        maxHeadersCount: number;
++++        constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
++++        /**
++++         * The request method.
++++         * @since v0.1.97
++++         */
++++        method: string;
++++        /**
++++         * The request path.
++++         * @since v0.4.0
++++         */
++++        path: string;
++++        /**
++++         * Marks the request as aborting. Calling this will cause remaining data
++++         * in the response to be dropped and the socket to be destroyed.
++++         * @since v0.3.8
++++         * @deprecated Since v14.1.0,v13.14.0 - Use `destroy` instead.
++++         */
++++        abort(): void;
++++        onSocket(socket: Socket): void;
++++        /**
++++         * Once a socket is assigned to this request and is connected `socket.setTimeout()` will be called.
++++         * @since v0.5.9
++++         * @param timeout Milliseconds before a request times out.
++++         * @param callback Optional function to be called when a timeout occurs. Same as binding to the `'timeout'` event.
++++         */
++++        setTimeout(timeout: number, callback?: () => void): this;
++++        /**
++++         * Once a socket is assigned to this request and is connected `socket.setNoDelay()` will be called.
++++         * @since v0.5.9
++++         */
++++        setNoDelay(noDelay?: boolean): void;
++++        /**
++++         * Once a socket is assigned to this request and is connected `socket.setKeepAlive()` will be called.
++++         * @since v0.5.9
++++         */
++++        setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
++++        /**
++++         * Returns an array containing the unique names of the current outgoing raw
++++         * headers. Header names are returned with their exact casing being set.
++++         *
++++         * ```js
++++         * request.setHeader('Foo', 'bar');
++++         * request.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']);
++++         *
++++         * const headerNames = request.getRawHeaderNames();
++++         * // headerNames === ['Foo', 'Set-Cookie']
++++         * ```
++++         * @since v15.13.0, v14.17.0
++++         */
++++        getRawHeaderNames(): string[];
++++        /**
++++         * @deprecated
++++         */
++++        addListener(event: "abort", listener: () => void): this;
++++        addListener(
++++            event: "connect",
++++            listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
++++        ): this;
++++        addListener(event: "continue", listener: () => void): this;
++++        addListener(event: "information", listener: (info: InformationEvent) => void): this;
++++        addListener(event: "response", listener: (response: IncomingMessage) => void): this;
++++        addListener(event: "socket", listener: (socket: Socket) => void): this;
++++        addListener(event: "timeout", listener: () => void): this;
++++        addListener(
++++            event: "upgrade",
++++            listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
++++        ): this;
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "drain", listener: () => void): this;
++++        addListener(event: "error", listener: (err: Error) => void): this;
++++        addListener(event: "finish", listener: () => void): this;
++++        addListener(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        addListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        /**
++++         * @deprecated
++++         */
++++        on(event: "abort", listener: () => void): this;
++++        on(event: "connect", listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
++++        on(event: "continue", listener: () => void): this;
++++        on(event: "information", listener: (info: InformationEvent) => void): this;
++++        on(event: "response", listener: (response: IncomingMessage) => void): this;
++++        on(event: "socket", listener: (socket: Socket) => void): this;
++++        on(event: "timeout", listener: () => void): this;
++++        on(event: "upgrade", listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "drain", listener: () => void): this;
++++        on(event: "error", listener: (err: Error) => void): this;
++++        on(event: "finish", listener: () => void): this;
++++        on(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        on(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        on(event: string | symbol, listener: (...args: any[]) => void): this;
++++        /**
++++         * @deprecated
++++         */
++++        once(event: "abort", listener: () => void): this;
++++        once(event: "connect", listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
++++        once(event: "continue", listener: () => void): this;
++++        once(event: "information", listener: (info: InformationEvent) => void): this;
++++        once(event: "response", listener: (response: IncomingMessage) => void): this;
++++        once(event: "socket", listener: (socket: Socket) => void): this;
++++        once(event: "timeout", listener: () => void): this;
++++        once(event: "upgrade", listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "drain", listener: () => void): this;
++++        once(event: "error", listener: (err: Error) => void): this;
++++        once(event: "finish", listener: () => void): this;
++++        once(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        once(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        once(event: string | symbol, listener: (...args: any[]) => void): this;
++++        /**
++++         * @deprecated
++++         */
++++        prependListener(event: "abort", listener: () => void): this;
++++        prependListener(
++++            event: "connect",
++++            listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
++++        ): this;
++++        prependListener(event: "continue", listener: () => void): this;
++++        prependListener(event: "information", listener: (info: InformationEvent) => void): this;
++++        prependListener(event: "response", listener: (response: IncomingMessage) => void): this;
++++        prependListener(event: "socket", listener: (socket: Socket) => void): this;
++++        prependListener(event: "timeout", listener: () => void): this;
++++        prependListener(
++++            event: "upgrade",
++++            listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
++++        ): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "drain", listener: () => void): this;
++++        prependListener(event: "error", listener: (err: Error) => void): this;
++++        prependListener(event: "finish", listener: () => void): this;
++++        prependListener(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        /**
++++         * @deprecated
++++         */
++++        prependOnceListener(event: "abort", listener: () => void): this;
++++        prependOnceListener(
++++            event: "connect",
++++            listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
++++        ): this;
++++        prependOnceListener(event: "continue", listener: () => void): this;
++++        prependOnceListener(event: "information", listener: (info: InformationEvent) => void): this;
++++        prependOnceListener(event: "response", listener: (response: IncomingMessage) => void): this;
++++        prependOnceListener(event: "socket", listener: (socket: Socket) => void): this;
++++        prependOnceListener(event: "timeout", listener: () => void): this;
++++        prependOnceListener(
++++            event: "upgrade",
++++            listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
++++        ): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "drain", listener: () => void): this;
++++        prependOnceListener(event: "error", listener: (err: Error) => void): this;
++++        prependOnceListener(event: "finish", listener: () => void): this;
++++        prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++    }
++++    /**
++++     * An `IncomingMessage` object is created by {@link Server} or {@link ClientRequest} and passed as the first argument to the `'request'` and `'response'` event respectively. It may be used to
++++     * access response
++++     * status, headers, and data.
++++     *
++++     * Different from its `socket` value which is a subclass of `stream.Duplex`, the `IncomingMessage` itself extends `stream.Readable` and is created separately to
++++     * parse and emit the incoming HTTP headers and payload, as the underlying socket
++++     * may be reused multiple times in case of keep-alive.
++++     * @since v0.1.17
++++     */
++++    class IncomingMessage extends stream.Readable {
++++        constructor(socket: Socket);
++++        /**
++++         * The `message.aborted` property will be `true` if the request has
++++         * been aborted.
++++         * @since v10.1.0
++++         * @deprecated Since v17.0.0,v16.12.0 - Check `message.destroyed` from <a href="stream.html#class-streamreadable" class="type">stream.Readable</a>.
++++         */
++++        aborted: boolean;
++++        /**
++++         * In case of server request, the HTTP version sent by the client. In the case of
++++         * client response, the HTTP version of the connected-to server.
++++         * Probably either `'1.1'` or `'1.0'`.
++++         *
++++         * Also `message.httpVersionMajor` is the first integer and `message.httpVersionMinor` is the second.
++++         * @since v0.1.1
++++         */
++++        httpVersion: string;
++++        httpVersionMajor: number;
++++        httpVersionMinor: number;
++++        /**
++++         * The `message.complete` property will be `true` if a complete HTTP message has
++++         * been received and successfully parsed.
++++         *
++++         * This property is particularly useful as a means of determining if a client or
++++         * server fully transmitted a message before a connection was terminated:
++++         *
++++         * ```js
++++         * const req = http.request({
++++         *   host: '127.0.0.1',
++++         *   port: 8080,
++++         *   method: 'POST',
++++         * }, (res) => {
++++         *   res.resume();
++++         *   res.on('end', () => {
++++         *     if (!res.complete)
++++         *       console.error(
++++         *         'The connection was terminated while the message was still being sent');
++++         *   });
++++         * });
++++         * ```
++++         * @since v0.3.0
++++         */
++++        complete: boolean;
++++        /**
++++         * Alias for `message.socket`.
++++         * @since v0.1.90
++++         * @deprecated Since v16.0.0 - Use `socket`.
++++         */
++++        connection: Socket;
++++        /**
++++         * The `net.Socket` object associated with the connection.
++++         *
++++         * With HTTPS support, use `request.socket.getPeerCertificate()` to obtain the
++++         * client's authentication details.
++++         *
++++         * This property is guaranteed to be an instance of the `net.Socket` class,
++++         * a subclass of `stream.Duplex`, unless the user specified a socket
++++         * type other than `net.Socket` or internally nulled.
++++         * @since v0.3.0
++++         */
++++        socket: Socket;
++++        /**
++++         * The request/response headers object.
++++         *
++++         * Key-value pairs of header names and values. Header names are lower-cased.
++++         *
++++         * ```js
++++         * // Prints something like:
++++         * //
++++         * // { 'user-agent': 'curl/7.22.0',
++++         * //   host: '127.0.0.1:8000',
++++         * //   accept: '*' }
++++         * console.log(request.headers);
++++         * ```
++++         *
++++         * Duplicates in raw headers are handled in the following ways, depending on the
++++         * header name:
++++         *
++++         * * Duplicates of `age`, `authorization`, `content-length`, `content-type`, `etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`,
++++         * `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`, or `user-agent` are discarded.
++++         * To allow duplicate values of the headers listed above to be joined,
++++         * use the option `joinDuplicateHeaders` in {@link request} and {@link createServer}. See RFC 9110 Section 5.3 for more
++++         * information.
++++         * * `set-cookie` is always an array. Duplicates are added to the array.
++++         * * For duplicate `cookie` headers, the values are joined together with `; `.
++++         * * For all other headers, the values are joined together with `, `.
++++         * @since v0.1.5
++++         */
++++        headers: IncomingHttpHeaders;
++++        /**
++++         * Similar to `message.headers`, but there is no join logic and the values are
++++         * always arrays of strings, even for headers received just once.
++++         *
++++         * ```js
++++         * // Prints something like:
++++         * //
++++         * // { 'user-agent': ['curl/7.22.0'],
++++         * //   host: ['127.0.0.1:8000'],
++++         * //   accept: ['*'] }
++++         * console.log(request.headersDistinct);
++++         * ```
++++         * @since v18.3.0, v16.17.0
++++         */
++++        headersDistinct: NodeJS.Dict<string[]>;
++++        /**
++++         * The raw request/response headers list exactly as they were received.
++++         *
++++         * The keys and values are in the same list. It is _not_ a
++++         * list of tuples. So, the even-numbered offsets are key values, and the
++++         * odd-numbered offsets are the associated values.
++++         *
++++         * Header names are not lowercased, and duplicates are not merged.
++++         *
++++         * ```js
++++         * // Prints something like:
++++         * //
++++         * // [ 'user-agent',
++++         * //   'this is invalid because there can be only one',
++++         * //   'User-Agent',
++++         * //   'curl/7.22.0',
++++         * //   'Host',
++++         * //   '127.0.0.1:8000',
++++         * //   'ACCEPT',
++++         * //   '*' ]
++++         * console.log(request.rawHeaders);
++++         * ```
++++         * @since v0.11.6
++++         */
++++        rawHeaders: string[];
++++        /**
++++         * The request/response trailers object. Only populated at the `'end'` event.
++++         * @since v0.3.0
++++         */
++++        trailers: NodeJS.Dict<string>;
++++        /**
++++         * Similar to `message.trailers`, but there is no join logic and the values are
++++         * always arrays of strings, even for headers received just once.
++++         * Only populated at the `'end'` event.
++++         * @since v18.3.0, v16.17.0
++++         */
++++        trailersDistinct: NodeJS.Dict<string[]>;
++++        /**
++++         * The raw request/response trailer keys and values exactly as they were
++++         * received. Only populated at the `'end'` event.
++++         * @since v0.11.6
++++         */
++++        rawTrailers: string[];
++++        /**
++++         * Calls `message.socket.setTimeout(msecs, callback)`.
++++         * @since v0.5.9
++++         */
++++        setTimeout(msecs: number, callback?: () => void): this;
++++        /**
++++         * **Only valid for request obtained from {@link Server}.**
++++         *
++++         * The request method as a string. Read only. Examples: `'GET'`, `'DELETE'`.
++++         * @since v0.1.1
++++         */
++++        method?: string | undefined;
++++        /**
++++         * **Only valid for request obtained from {@link Server}.**
++++         *
++++         * Request URL string. This contains only the URL that is present in the actual
++++         * HTTP request. Take the following request:
++++         *
++++         * ```http
++++         * GET /status?name=ryan HTTP/1.1
++++         * Accept: text/plain
++++         * ```
++++         *
++++         * To parse the URL into its parts:
++++         *
++++         * ```js
++++         * new URL(`http://${process.env.HOST ?? 'localhost'}${request.url}`);
++++         * ```
++++         *
++++         * When `request.url` is `'/status?name=ryan'` and `process.env.HOST` is undefined:
++++         *
++++         * ```console
++++         * $ node
++++         * > new URL(`http://${process.env.HOST ?? 'localhost'}${request.url}`);
++++         * URL {
++++         *   href: 'http://localhost/status?name=ryan',
++++         *   origin: 'http://localhost',
++++         *   protocol: 'http:',
++++         *   username: '',
++++         *   password: '',
++++         *   host: 'localhost',
++++         *   hostname: 'localhost',
++++         *   port: '',
++++         *   pathname: '/status',
++++         *   search: '?name=ryan',
++++         *   searchParams: URLSearchParams { 'name' => 'ryan' },
++++         *   hash: ''
++++         * }
++++         * ```
++++         *
++++         * Ensure that you set `process.env.HOST` to the server's host name, or consider replacing this part entirely. If using `req.headers.host`, ensure proper
++++         * validation is used, as clients may specify a custom `Host` header.
++++         * @since v0.1.90
++++         */
++++        url?: string | undefined;
++++        /**
++++         * **Only valid for response obtained from {@link ClientRequest}.**
++++         *
++++         * The 3-digit HTTP response status code. E.G. `404`.
++++         * @since v0.1.1
++++         */
++++        statusCode?: number | undefined;
++++        /**
++++         * **Only valid for response obtained from {@link ClientRequest}.**
++++         *
++++         * The HTTP response status message (reason phrase). E.G. `OK` or `Internal Server Error`.
++++         * @since v0.11.10
++++         */
++++        statusMessage?: string | undefined;
++++        /**
++++         * Calls `destroy()` on the socket that received the `IncomingMessage`. If `error` is provided, an `'error'` event is emitted on the socket and `error` is passed
++++         * as an argument to any listeners on the event.
++++         * @since v0.3.0
++++         */
++++        destroy(error?: Error): this;
++++    }
++++    interface AgentOptions extends Partial<TcpSocketConnectOpts> {
++++        /**
++++         * Keep sockets around in a pool to be used by other requests in the future. Default = false
++++         */
++++        keepAlive?: boolean | undefined;
++++        /**
++++         * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000.
++++         * Only relevant if keepAlive is set to true.
++++         */
++++        keepAliveMsecs?: number | undefined;
++++        /**
++++         * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity
++++         */
++++        maxSockets?: number | undefined;
++++        /**
++++         * Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity.
++++         */
++++        maxTotalSockets?: number | undefined;
++++        /**
++++         * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256.
++++         */
++++        maxFreeSockets?: number | undefined;
++++        /**
++++         * Socket timeout in milliseconds. This will set the timeout after the socket is connected.
++++         */
++++        timeout?: number | undefined;
++++        /**
++++         * Scheduling strategy to apply when picking the next free socket to use.
++++         * @default `lifo`
++++         */
++++        scheduling?: "fifo" | "lifo" | undefined;
++++    }
++++    /**
++++     * An `Agent` is responsible for managing connection persistence
++++     * and reuse for HTTP clients. It maintains a queue of pending requests
++++     * for a given host and port, reusing a single socket connection for each
++++     * until the queue is empty, at which time the socket is either destroyed
++++     * or put into a pool where it is kept to be used again for requests to the
++++     * same host and port. Whether it is destroyed or pooled depends on the `keepAlive` `option`.
++++     *
++++     * Pooled connections have TCP Keep-Alive enabled for them, but servers may
++++     * still close idle connections, in which case they will be removed from the
++++     * pool and a new connection will be made when a new HTTP request is made for
++++     * that host and port. Servers may also refuse to allow multiple requests
++++     * over the same connection, in which case the connection will have to be
++++     * remade for every request and cannot be pooled. The `Agent` will still make
++++     * the requests to that server, but each one will occur over a new connection.
++++     *
++++     * When a connection is closed by the client or the server, it is removed
++++     * from the pool. Any unused sockets in the pool will be unrefed so as not
++++     * to keep the Node.js process running when there are no outstanding requests.
++++     * (see `socket.unref()`).
++++     *
++++     * It is good practice, to `destroy()` an `Agent` instance when it is no
++++     * longer in use, because unused sockets consume OS resources.
++++     *
++++     * Sockets are removed from an agent when the socket emits either
++++     * a `'close'` event or an `'agentRemove'` event. When intending to keep one
++++     * HTTP request open for a long time without keeping it in the agent, something
++++     * like the following may be done:
++++     *
++++     * ```js
++++     * http.get(options, (res) => {
++++     *   // Do stuff
++++     * }).on('socket', (socket) => {
++++     *   socket.emit('agentRemove');
++++     * });
++++     * ```
++++     *
++++     * An agent may also be used for an individual request. By providing `{agent: false}` as an option to the `http.get()` or `http.request()` functions, a one-time use `Agent` with default options
++++     * will be used
++++     * for the client connection.
++++     *
++++     * `agent:false`:
++++     *
++++     * ```js
++++     * http.get({
++++     *   hostname: 'localhost',
++++     *   port: 80,
++++     *   path: '/',
++++     *   agent: false,  // Create a new agent just for this one request
++++     * }, (res) => {
++++     *   // Do stuff with response
++++     * });
++++     * ```
++++     *
++++     * `options` in [`socket.connect()`](https://nodejs.org/docs/latest-v20.x/api/net.html#socketconnectoptions-connectlistener) are also supported.
++++     *
++++     * To configure any of them, a custom {@link Agent} instance must be created.
++++     *
++++     * ```js
++++     * import http from 'node:http';
++++     * const keepAliveAgent = new http.Agent({ keepAlive: true });
++++     * options.agent = keepAliveAgent;
++++     * http.request(options, onResponseCallback)
++++     * ```
++++     * @since v0.3.4
++++     */
++++    class Agent extends EventEmitter {
++++        /**
++++         * By default set to 256. For agents with `keepAlive` enabled, this
++++         * sets the maximum number of sockets that will be left open in the free
++++         * state.
++++         * @since v0.11.7
++++         */
++++        maxFreeSockets: number;
++++        /**
++++         * By default set to `Infinity`. Determines how many concurrent sockets the agent
++++         * can have open per origin. Origin is the returned value of `agent.getName()`.
++++         * @since v0.3.6
++++         */
++++        maxSockets: number;
++++        /**
++++         * By default set to `Infinity`. Determines how many concurrent sockets the agent
++++         * can have open. Unlike `maxSockets`, this parameter applies across all origins.
++++         * @since v14.5.0, v12.19.0
++++         */
++++        maxTotalSockets: number;
++++        /**
++++         * An object which contains arrays of sockets currently awaiting use by
++++         * the agent when `keepAlive` is enabled. Do not modify.
++++         *
++++         * Sockets in the `freeSockets` list will be automatically destroyed and
++++         * removed from the array on `'timeout'`.
++++         * @since v0.11.4
++++         */
++++        readonly freeSockets: NodeJS.ReadOnlyDict<Socket[]>;
++++        /**
++++         * An object which contains arrays of sockets currently in use by the
++++         * agent. Do not modify.
++++         * @since v0.3.6
++++         */
++++        readonly sockets: NodeJS.ReadOnlyDict<Socket[]>;
++++        /**
++++         * An object which contains queues of requests that have not yet been assigned to
++++         * sockets. Do not modify.
++++         * @since v0.5.9
++++         */
++++        readonly requests: NodeJS.ReadOnlyDict<IncomingMessage[]>;
++++        constructor(opts?: AgentOptions);
++++        /**
++++         * Destroy any sockets that are currently in use by the agent.
++++         *
++++         * It is usually not necessary to do this. However, if using an
++++         * agent with `keepAlive` enabled, then it is best to explicitly shut down
++++         * the agent when it is no longer needed. Otherwise,
++++         * sockets might stay open for quite a long time before the server
++++         * terminates them.
++++         * @since v0.11.4
++++         */
++++        destroy(): void;
++++    }
++++    const METHODS: string[];
++++    const STATUS_CODES: {
++++        [errorCode: number]: string | undefined;
++++        [errorCode: string]: string | undefined;
++++    };
++++    /**
++++     * Returns a new instance of {@link Server}.
++++     *
++++     * The `requestListener` is a function which is automatically
++++     * added to the `'request'` event.
++++     *
++++     * ```js
++++     * import http from 'node:http';
++++     *
++++     * // Create a local server to receive data from
++++     * const server = http.createServer((req, res) => {
++++     *   res.writeHead(200, { 'Content-Type': 'application/json' });
++++     *   res.end(JSON.stringify({
++++     *     data: 'Hello World!',
++++     *   }));
++++     * });
++++     *
++++     * server.listen(8000);
++++     * ```
++++     *
++++     * ```js
++++     * import http from 'node:http';
++++     *
++++     * // Create a local server to receive data from
++++     * const server = http.createServer();
++++     *
++++     * // Listen to the request event
++++     * server.on('request', (request, res) => {
++++     *   res.writeHead(200, { 'Content-Type': 'application/json' });
++++     *   res.end(JSON.stringify({
++++     *     data: 'Hello World!',
++++     *   }));
++++     * });
++++     *
++++     * server.listen(8000);
++++     * ```
++++     * @since v0.1.13
++++     */
++++    function createServer<
++++        Request extends typeof IncomingMessage = typeof IncomingMessage,
++++        Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
++++    >(requestListener?: RequestListener<Request, Response>): Server<Request, Response>;
++++    function createServer<
++++        Request extends typeof IncomingMessage = typeof IncomingMessage,
++++        Response extends typeof ServerResponse<InstanceType<Request>> = typeof ServerResponse,
++++    >(
++++        options: ServerOptions<Request, Response>,
++++        requestListener?: RequestListener<Request, Response>,
++++    ): Server<Request, Response>;
++++    // although RequestOptions are passed as ClientRequestArgs to ClientRequest directly,
++++    // create interface RequestOptions would make the naming more clear to developers
++++    interface RequestOptions extends ClientRequestArgs {}
++++    /**
++++     * `options` in `socket.connect()` are also supported.
++++     *
++++     * Node.js maintains several connections per server to make HTTP requests.
++++     * This function allows one to transparently issue requests.
++++     *
++++     * `url` can be a string or a `URL` object. If `url` is a
++++     * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
++++     *
++++     * If both `url` and `options` are specified, the objects are merged, with the `options` properties taking precedence.
++++     *
++++     * The optional `callback` parameter will be added as a one-time listener for
++++     * the `'response'` event.
++++     *
++++     * `http.request()` returns an instance of the {@link ClientRequest} class. The `ClientRequest` instance is a writable stream. If one needs to
++++     * upload a file with a POST request, then write to the `ClientRequest` object.
++++     *
++++     * ```js
++++     * import http from 'node:http';
++++     * import { Buffer } from 'node:buffer';
++++     *
++++     * const postData = JSON.stringify({
++++     *   'msg': 'Hello World!',
++++     * });
++++     *
++++     * const options = {
++++     *   hostname: 'www.google.com',
++++     *   port: 80,
++++     *   path: '/upload',
++++     *   method: 'POST',
++++     *   headers: {
++++     *     'Content-Type': 'application/json',
++++     *     'Content-Length': Buffer.byteLength(postData),
++++     *   },
++++     * };
++++     *
++++     * const req = http.request(options, (res) => {
++++     *   console.log(`STATUS: ${res.statusCode}`);
++++     *   console.log(`HEADERS: ${JSON.stringify(res.headers)}`);
++++     *   res.setEncoding('utf8');
++++     *   res.on('data', (chunk) => {
++++     *     console.log(`BODY: ${chunk}`);
++++     *   });
++++     *   res.on('end', () => {
++++     *     console.log('No more data in response.');
++++     *   });
++++     * });
++++     *
++++     * req.on('error', (e) => {
++++     *   console.error(`problem with request: ${e.message}`);
++++     * });
++++     *
++++     * // Write data to request body
++++     * req.write(postData);
++++     * req.end();
++++     * ```
++++     *
++++     * In the example `req.end()` was called. With `http.request()` one
++++     * must always call `req.end()` to signify the end of the request -
++++     * even if there is no data being written to the request body.
++++     *
++++     * If any error is encountered during the request (be that with DNS resolution,
++++     * TCP level errors, or actual HTTP parse errors) an `'error'` event is emitted
++++     * on the returned request object. As with all `'error'` events, if no listeners
++++     * are registered the error will be thrown.
++++     *
++++     * There are a few special headers that should be noted.
++++     *
++++     * * Sending a 'Connection: keep-alive' will notify Node.js that the connection to
++++     * the server should be persisted until the next request.
++++     * * Sending a 'Content-Length' header will disable the default chunked encoding.
++++     * * Sending an 'Expect' header will immediately send the request headers.
++++     * Usually, when sending 'Expect: 100-continue', both a timeout and a listener
++++     * for the `'continue'` event should be set. See RFC 2616 Section 8.2.3 for more
++++     * information.
++++     * * Sending an Authorization header will override using the `auth` option
++++     * to compute basic authentication.
++++     *
++++     * Example using a `URL` as `options`:
++++     *
++++     * ```js
++++     * const options = new URL('http://abc:xyz@example.com');
++++     *
++++     * const req = http.request(options, (res) => {
++++     *   // ...
++++     * });
++++     * ```
++++     *
++++     * In a successful request, the following events will be emitted in the following
++++     * order:
++++     *
++++     * * `'socket'`
++++     * * `'response'`
++++     *    * `'data'` any number of times, on the `res` object
++++     *    (`'data'` will not be emitted at all if the response body is empty, for
++++     *    instance, in most redirects)
++++     *    * `'end'` on the `res` object
++++     * * `'close'`
++++     *
++++     * In the case of a connection error, the following events will be emitted:
++++     *
++++     * * `'socket'`
++++     * * `'error'`
++++     * * `'close'`
++++     *
++++     * In the case of a premature connection close before the response is received,
++++     * the following events will be emitted in the following order:
++++     *
++++     * * `'socket'`
++++     * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`
++++     * * `'close'`
++++     *
++++     * In the case of a premature connection close after the response is received,
++++     * the following events will be emitted in the following order:
++++     *
++++     * * `'socket'`
++++     * * `'response'`
++++     *    * `'data'` any number of times, on the `res` object
++++     * * (connection closed here)
++++     * * `'aborted'` on the `res` object
++++     * * `'close'`
++++     * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`
++++     * * `'close'` on the `res` object
++++     *
++++     * If `req.destroy()` is called before a socket is assigned, the following
++++     * events will be emitted in the following order:
++++     *
++++     * * (`req.destroy()` called here)
++++     * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called
++++     * * `'close'`
++++     *
++++     * If `req.destroy()` is called before the connection succeeds, the following
++++     * events will be emitted in the following order:
++++     *
++++     * * `'socket'`
++++     * * (`req.destroy()` called here)
++++     * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called
++++     * * `'close'`
++++     *
++++     * If `req.destroy()` is called after the response is received, the following
++++     * events will be emitted in the following order:
++++     *
++++     * * `'socket'`
++++     * * `'response'`
++++     *    * `'data'` any number of times, on the `res` object
++++     * * (`req.destroy()` called here)
++++     * * `'aborted'` on the `res` object
++++     * * `'close'`
++++     * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called
++++     * * `'close'` on the `res` object
++++     *
++++     * If `req.abort()` is called before a socket is assigned, the following
++++     * events will be emitted in the following order:
++++     *
++++     * * (`req.abort()` called here)
++++     * * `'abort'`
++++     * * `'close'`
++++     *
++++     * If `req.abort()` is called before the connection succeeds, the following
++++     * events will be emitted in the following order:
++++     *
++++     * * `'socket'`
++++     * * (`req.abort()` called here)
++++     * * `'abort'`
++++     * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`
++++     * * `'close'`
++++     *
++++     * If `req.abort()` is called after the response is received, the following
++++     * events will be emitted in the following order:
++++     *
++++     * * `'socket'`
++++     * * `'response'`
++++     *    * `'data'` any number of times, on the `res` object
++++     * * (`req.abort()` called here)
++++     * * `'abort'`
++++     * * `'aborted'` on the `res` object
++++     * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`.
++++     * * `'close'`
++++     * * `'close'` on the `res` object
++++     *
++++     * Setting the `timeout` option or using the `setTimeout()` function will
++++     * not abort the request or do anything besides add a `'timeout'` event.
++++     *
++++     * Passing an `AbortSignal` and then calling `abort()` on the corresponding `AbortController` will behave the same way as calling `.destroy()` on the
++++     * request. Specifically, the `'error'` event will be emitted with an error with
++++     * the message `'AbortError: The operation was aborted'`, the code `'ABORT_ERR'` and the `cause`, if one was provided.
++++     * @since v0.3.6
++++     */
++++    function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
++++    function request(
++++        url: string | URL,
++++        options: RequestOptions,
++++        callback?: (res: IncomingMessage) => void,
++++    ): ClientRequest;
++++    /**
++++     * Since most requests are GET requests without bodies, Node.js provides this
++++     * convenience method. The only difference between this method and {@link request} is that it sets the method to GET by default and calls `req.end()` automatically. The callback must take care to
++++     * consume the response
++++     * data for reasons stated in {@link ClientRequest} section.
++++     *
++++     * The `callback` is invoked with a single argument that is an instance of {@link IncomingMessage}.
++++     *
++++     * JSON fetching example:
++++     *
++++     * ```js
++++     * http.get('http://localhost:8000/', (res) => {
++++     *   const { statusCode } = res;
++++     *   const contentType = res.headers['content-type'];
++++     *
++++     *   let error;
++++     *   // Any 2xx status code signals a successful response but
++++     *   // here we're only checking for 200.
++++     *   if (statusCode !== 200) {
++++     *     error = new Error('Request Failed.\n' +
++++     *                       `Status Code: ${statusCode}`);
++++     *   } else if (!/^application\/json/.test(contentType)) {
++++     *     error = new Error('Invalid content-type.\n' +
++++     *                       `Expected application/json but received ${contentType}`);
++++     *   }
++++     *   if (error) {
++++     *     console.error(error.message);
++++     *     // Consume response data to free up memory
++++     *     res.resume();
++++     *     return;
++++     *   }
++++     *
++++     *   res.setEncoding('utf8');
++++     *   let rawData = '';
++++     *   res.on('data', (chunk) => { rawData += chunk; });
++++     *   res.on('end', () => {
++++     *     try {
++++     *       const parsedData = JSON.parse(rawData);
++++     *       console.log(parsedData);
++++     *     } catch (e) {
++++     *       console.error(e.message);
++++     *     }
++++     *   });
++++     * }).on('error', (e) => {
++++     *   console.error(`Got error: ${e.message}`);
++++     * });
++++     *
++++     * // Create a local server to receive data from
++++     * const server = http.createServer((req, res) => {
++++     *   res.writeHead(200, { 'Content-Type': 'application/json' });
++++     *   res.end(JSON.stringify({
++++     *     data: 'Hello World!',
++++     *   }));
++++     * });
++++     *
++++     * server.listen(8000);
++++     * ```
++++     * @since v0.3.6
++++     * @param options Accepts the same `options` as {@link request}, with the method set to GET by default.
++++     */
++++    function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
++++    function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
++++    /**
++++     * Performs the low-level validations on the provided `name` that are done when `res.setHeader(name, value)` is called.
++++     *
++++     * Passing illegal value as `name` will result in a `TypeError` being thrown,
++++     * identified by `code: 'ERR_INVALID_HTTP_TOKEN'`.
++++     *
++++     * It is not necessary to use this method before passing headers to an HTTP request
++++     * or response. The HTTP module will automatically validate such headers.
++++     *
++++     * Example:
++++     *
++++     * ```js
++++     * import { validateHeaderName } from 'node:http';
++++     *
++++     * try {
++++     *   validateHeaderName('');
++++     * } catch (err) {
++++     *   console.error(err instanceof TypeError); // --> true
++++     *   console.error(err.code); // --> 'ERR_INVALID_HTTP_TOKEN'
++++     *   console.error(err.message); // --> 'Header name must be a valid HTTP token [""]'
++++     * }
++++     * ```
++++     * @since v14.3.0
++++     * @param [label='Header name'] Label for error message.
++++     */
++++    function validateHeaderName(name: string): void;
++++    /**
++++     * Performs the low-level validations on the provided `value` that are done when `res.setHeader(name, value)` is called.
++++     *
++++     * Passing illegal value as `value` will result in a `TypeError` being thrown.
++++     *
++++     * * Undefined value error is identified by `code: 'ERR_HTTP_INVALID_HEADER_VALUE'`.
++++     * * Invalid value character error is identified by `code: 'ERR_INVALID_CHAR'`.
++++     *
++++     * It is not necessary to use this method before passing headers to an HTTP request
++++     * or response. The HTTP module will automatically validate such headers.
++++     *
++++     * Examples:
++++     *
++++     * ```js
++++     * import { validateHeaderValue } from 'node:http';
++++     *
++++     * try {
++++     *   validateHeaderValue('x-my-header', undefined);
++++     * } catch (err) {
++++     *   console.error(err instanceof TypeError); // --> true
++++     *   console.error(err.code === 'ERR_HTTP_INVALID_HEADER_VALUE'); // --> true
++++     *   console.error(err.message); // --> 'Invalid value "undefined" for header "x-my-header"'
++++     * }
++++     *
++++     * try {
++++     *   validateHeaderValue('x-my-header', 'oʊmɪɡə');
++++     * } catch (err) {
++++     *   console.error(err instanceof TypeError); // --> true
++++     *   console.error(err.code === 'ERR_INVALID_CHAR'); // --> true
++++     *   console.error(err.message); // --> 'Invalid character in header content ["x-my-header"]'
++++     * }
++++     * ```
++++     * @since v14.3.0
++++     * @param name Header name
++++     * @param value Header value
++++     */
++++    function validateHeaderValue(name: string, value: string): void;
++++    /**
++++     * Set the maximum number of idle HTTP parsers.
++++     * @since v18.8.0, v16.18.0
++++     * @param [max=1000]
++++     */
++++    function setMaxIdleHTTPParsers(max: number): void;
++++    /**
++++     * Global instance of `Agent` which is used as the default for all HTTP client
++++     * requests. Diverges from a default `Agent` configuration by having `keepAlive`
++++     * enabled and a `timeout` of 5 seconds.
++++     * @since v0.5.9
++++     */
++++    let globalAgent: Agent;
++++    /**
++++     * Read-only property specifying the maximum allowed size of HTTP headers in bytes.
++++     * Defaults to 16KB. Configurable using the `--max-http-header-size` CLI option.
++++     */
++++    const maxHeaderSize: number;
++++}
++++declare module "node:http" {
++++    export * from "http";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..8b050036b25176fe83bfcd858fd4cb804e0ea364
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,2555 @@@@@
++++/**
++++ * The `node:http2` module provides an implementation of the [HTTP/2](https://tools.ietf.org/html/rfc7540) protocol.
++++ * It can be accessed using:
++++ *
++++ * ```js
++++ * import http2 from 'node:http2';
++++ * ```
++++ * @since v8.4.0
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/http2.js)
++++ */
++++declare module "http2" {
++++    import EventEmitter = require("node:events");
++++    import * as fs from "node:fs";
++++    import * as net from "node:net";
++++    import * as stream from "node:stream";
++++    import * as tls from "node:tls";
++++    import * as url from "node:url";
++++    import {
++++        IncomingHttpHeaders as Http1IncomingHttpHeaders,
++++        IncomingMessage,
++++        OutgoingHttpHeaders,
++++        ServerResponse,
++++    } from "node:http";
++++    export { OutgoingHttpHeaders } from "node:http";
++++    export interface IncomingHttpStatusHeader {
++++        ":status"?: number | undefined;
++++    }
++++    export interface IncomingHttpHeaders extends Http1IncomingHttpHeaders {
++++        ":path"?: string | undefined;
++++        ":method"?: string | undefined;
++++        ":authority"?: string | undefined;
++++        ":scheme"?: string | undefined;
++++    }
++++    // Http2Stream
++++    export interface StreamPriorityOptions {
++++        exclusive?: boolean | undefined;
++++        parent?: number | undefined;
++++        weight?: number | undefined;
++++        silent?: boolean | undefined;
++++    }
++++    export interface StreamState {
++++        localWindowSize?: number | undefined;
++++        state?: number | undefined;
++++        localClose?: number | undefined;
++++        remoteClose?: number | undefined;
++++        sumDependencyWeight?: number | undefined;
++++        weight?: number | undefined;
++++    }
++++    export interface ServerStreamResponseOptions {
++++        endStream?: boolean | undefined;
++++        waitForTrailers?: boolean | undefined;
++++    }
++++    export interface StatOptions {
++++        offset: number;
++++        length: number;
++++    }
++++    export interface ServerStreamFileResponseOptions {
++++        // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
++++        statCheck?(stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions): void | boolean;
++++        waitForTrailers?: boolean | undefined;
++++        offset?: number | undefined;
++++        length?: number | undefined;
++++    }
++++    export interface ServerStreamFileResponseOptionsWithError extends ServerStreamFileResponseOptions {
++++        onError?(err: NodeJS.ErrnoException): void;
++++    }
++++    export interface Http2Stream extends stream.Duplex {
++++        /**
++++         * Set to `true` if the `Http2Stream` instance was aborted abnormally. When set,
++++         * the `'aborted'` event will have been emitted.
++++         * @since v8.4.0
++++         */
++++        readonly aborted: boolean;
++++        /**
++++         * This property shows the number of characters currently buffered to be written.
++++         * See `net.Socket.bufferSize` for details.
++++         * @since v11.2.0, v10.16.0
++++         */
++++        readonly bufferSize: number;
++++        /**
++++         * Set to `true` if the `Http2Stream` instance has been closed.
++++         * @since v9.4.0
++++         */
++++        readonly closed: boolean;
++++        /**
++++         * Set to `true` if the `Http2Stream` instance has been destroyed and is no longer
++++         * usable.
++++         * @since v8.4.0
++++         */
++++        readonly destroyed: boolean;
++++        /**
++++         * Set to `true` if the `END_STREAM` flag was set in the request or response
++++         * HEADERS frame received, indicating that no additional data should be received
++++         * and the readable side of the `Http2Stream` will be closed.
++++         * @since v10.11.0
++++         */
++++        readonly endAfterHeaders: boolean;
++++        /**
++++         * The numeric stream identifier of this `Http2Stream` instance. Set to `undefined` if the stream identifier has not yet been assigned.
++++         * @since v8.4.0
++++         */
++++        readonly id?: number | undefined;
++++        /**
++++         * Set to `true` if the `Http2Stream` instance has not yet been assigned a
++++         * numeric stream identifier.
++++         * @since v9.4.0
++++         */
++++        readonly pending: boolean;
++++        /**
++++         * Set to the `RST_STREAM` `error code` reported when the `Http2Stream` is
++++         * destroyed after either receiving an `RST_STREAM` frame from the connected peer,
++++         * calling `http2stream.close()`, or `http2stream.destroy()`. Will be `undefined` if the `Http2Stream` has not been closed.
++++         * @since v8.4.0
++++         */
++++        readonly rstCode: number;
++++        /**
++++         * An object containing the outbound headers sent for this `Http2Stream`.
++++         * @since v9.5.0
++++         */
++++        readonly sentHeaders: OutgoingHttpHeaders;
++++        /**
++++         * An array of objects containing the outbound informational (additional) headers
++++         * sent for this `Http2Stream`.
++++         * @since v9.5.0
++++         */
++++        readonly sentInfoHeaders?: OutgoingHttpHeaders[] | undefined;
++++        /**
++++         * An object containing the outbound trailers sent for this `HttpStream`.
++++         * @since v9.5.0
++++         */
++++        readonly sentTrailers?: OutgoingHttpHeaders | undefined;
++++        /**
++++         * A reference to the `Http2Session` instance that owns this `Http2Stream`. The
++++         * value will be `undefined` after the `Http2Stream` instance is destroyed.
++++         * @since v8.4.0
++++         */
++++        readonly session: Http2Session | undefined;
++++        /**
++++         * Provides miscellaneous information about the current state of the `Http2Stream`.
++++         *
++++         * A current state of this `Http2Stream`.
++++         * @since v8.4.0
++++         */
++++        readonly state: StreamState;
++++        /**
++++         * Closes the `Http2Stream` instance by sending an `RST_STREAM` frame to the
++++         * connected HTTP/2 peer.
++++         * @since v8.4.0
++++         * @param [code=http2.constants.NGHTTP2_NO_ERROR] Unsigned 32-bit integer identifying the error code.
++++         * @param callback An optional function registered to listen for the `'close'` event.
++++         */
++++        close(code?: number, callback?: () => void): void;
++++        /**
++++         * Updates the priority for this `Http2Stream` instance.
++++         * @since v8.4.0
++++         */
++++        priority(options: StreamPriorityOptions): void;
++++        /**
++++         * ```js
++++         * import http2 from 'node:http2';
++++         * const client = http2.connect('http://example.org:8000');
++++         * const { NGHTTP2_CANCEL } = http2.constants;
++++         * const req = client.request({ ':path': '/' });
++++         *
++++         * // Cancel the stream if there's no activity after 5 seconds
++++         * req.setTimeout(5000, () => req.close(NGHTTP2_CANCEL));
++++         * ```
++++         * @since v8.4.0
++++         */
++++        setTimeout(msecs: number, callback?: () => void): void;
++++        /**
++++         * Sends a trailing `HEADERS` frame to the connected HTTP/2 peer. This method
++++         * will cause the `Http2Stream` to be immediately closed and must only be
++++         * called after the `'wantTrailers'` event has been emitted. When sending a
++++         * request or sending a response, the `options.waitForTrailers` option must be set
++++         * in order to keep the `Http2Stream` open after the final `DATA` frame so that
++++         * trailers can be sent.
++++         *
++++         * ```js
++++         * import http2 from 'node:http2';
++++         * const server = http2.createServer();
++++         * server.on('stream', (stream) => {
++++         *   stream.respond(undefined, { waitForTrailers: true });
++++         *   stream.on('wantTrailers', () => {
++++         *     stream.sendTrailers({ xyz: 'abc' });
++++         *   });
++++         *   stream.end('Hello World');
++++         * });
++++         * ```
++++         *
++++         * The HTTP/1 specification forbids trailers from containing HTTP/2 pseudo-header
++++         * fields (e.g. `':method'`, `':path'`, etc).
++++         * @since v10.0.0
++++         */
++++        sendTrailers(headers: OutgoingHttpHeaders): void;
++++        addListener(event: "aborted", listener: () => void): this;
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "data", listener: (chunk: Buffer | string) => void): this;
++++        addListener(event: "drain", listener: () => void): this;
++++        addListener(event: "end", listener: () => void): this;
++++        addListener(event: "error", listener: (err: Error) => void): this;
++++        addListener(event: "finish", listener: () => void): this;
++++        addListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this;
++++        addListener(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        addListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        addListener(event: "streamClosed", listener: (code: number) => void): this;
++++        addListener(event: "timeout", listener: () => void): this;
++++        addListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this;
++++        addListener(event: "wantTrailers", listener: () => void): this;
++++        addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        emit(event: "aborted"): boolean;
++++        emit(event: "close"): boolean;
++++        emit(event: "data", chunk: Buffer | string): boolean;
++++        emit(event: "drain"): boolean;
++++        emit(event: "end"): boolean;
++++        emit(event: "error", err: Error): boolean;
++++        emit(event: "finish"): boolean;
++++        emit(event: "frameError", frameType: number, errorCode: number): boolean;
++++        emit(event: "pipe", src: stream.Readable): boolean;
++++        emit(event: "unpipe", src: stream.Readable): boolean;
++++        emit(event: "streamClosed", code: number): boolean;
++++        emit(event: "timeout"): boolean;
++++        emit(event: "trailers", trailers: IncomingHttpHeaders, flags: number): boolean;
++++        emit(event: "wantTrailers"): boolean;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        on(event: "aborted", listener: () => void): this;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "data", listener: (chunk: Buffer | string) => void): this;
++++        on(event: "drain", listener: () => void): this;
++++        on(event: "end", listener: () => void): this;
++++        on(event: "error", listener: (err: Error) => void): this;
++++        on(event: "finish", listener: () => void): this;
++++        on(event: "frameError", listener: (frameType: number, errorCode: number) => void): this;
++++        on(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        on(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        on(event: "streamClosed", listener: (code: number) => void): this;
++++        on(event: "timeout", listener: () => void): this;
++++        on(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this;
++++        on(event: "wantTrailers", listener: () => void): this;
++++        on(event: string | symbol, listener: (...args: any[]) => void): this;
++++        once(event: "aborted", listener: () => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "data", listener: (chunk: Buffer | string) => void): this;
++++        once(event: "drain", listener: () => void): this;
++++        once(event: "end", listener: () => void): this;
++++        once(event: "error", listener: (err: Error) => void): this;
++++        once(event: "finish", listener: () => void): this;
++++        once(event: "frameError", listener: (frameType: number, errorCode: number) => void): this;
++++        once(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        once(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        once(event: "streamClosed", listener: (code: number) => void): this;
++++        once(event: "timeout", listener: () => void): this;
++++        once(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this;
++++        once(event: "wantTrailers", listener: () => void): this;
++++        once(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependListener(event: "aborted", listener: () => void): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "data", listener: (chunk: Buffer | string) => void): this;
++++        prependListener(event: "drain", listener: () => void): this;
++++        prependListener(event: "end", listener: () => void): this;
++++        prependListener(event: "error", listener: (err: Error) => void): this;
++++        prependListener(event: "finish", listener: () => void): this;
++++        prependListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this;
++++        prependListener(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        prependListener(event: "streamClosed", listener: (code: number) => void): this;
++++        prependListener(event: "timeout", listener: () => void): this;
++++        prependListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this;
++++        prependListener(event: "wantTrailers", listener: () => void): this;
++++        prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "aborted", listener: () => void): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "data", listener: (chunk: Buffer | string) => void): this;
++++        prependOnceListener(event: "drain", listener: () => void): this;
++++        prependOnceListener(event: "end", listener: () => void): this;
++++        prependOnceListener(event: "error", listener: (err: Error) => void): this;
++++        prependOnceListener(event: "finish", listener: () => void): this;
++++        prependOnceListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this;
++++        prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        prependOnceListener(event: "streamClosed", listener: (code: number) => void): this;
++++        prependOnceListener(event: "timeout", listener: () => void): this;
++++        prependOnceListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this;
++++        prependOnceListener(event: "wantTrailers", listener: () => void): this;
++++        prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++    }
++++    export interface ClientHttp2Stream extends Http2Stream {
++++        addListener(event: "continue", listener: () => {}): this;
++++        addListener(
++++            event: "headers",
++++            listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void,
++++        ): this;
++++        addListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
++++        addListener(
++++            event: "response",
++++            listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void,
++++        ): this;
++++        addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        emit(event: "continue"): boolean;
++++        emit(event: "headers", headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean;
++++        emit(event: "push", headers: IncomingHttpHeaders, flags: number): boolean;
++++        emit(event: "response", headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        on(event: "continue", listener: () => {}): this;
++++        on(
++++            event: "headers",
++++            listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void,
++++        ): this;
++++        on(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
++++        on(
++++            event: "response",
++++            listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void,
++++        ): this;
++++        on(event: string | symbol, listener: (...args: any[]) => void): this;
++++        once(event: "continue", listener: () => {}): this;
++++        once(
++++            event: "headers",
++++            listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void,
++++        ): this;
++++        once(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
++++        once(
++++            event: "response",
++++            listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void,
++++        ): this;
++++        once(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependListener(event: "continue", listener: () => {}): this;
++++        prependListener(
++++            event: "headers",
++++            listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void,
++++        ): this;
++++        prependListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
++++        prependListener(
++++            event: "response",
++++            listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void,
++++        ): this;
++++        prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "continue", listener: () => {}): this;
++++        prependOnceListener(
++++            event: "headers",
++++            listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void,
++++        ): this;
++++        prependOnceListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
++++        prependOnceListener(
++++            event: "response",
++++            listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void,
++++        ): this;
++++        prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++    }
++++    export interface ServerHttp2Stream extends Http2Stream {
++++        /**
++++         * True if headers were sent, false otherwise (read-only).
++++         * @since v8.4.0
++++         */
++++        readonly headersSent: boolean;
++++        /**
++++         * Read-only property mapped to the `SETTINGS_ENABLE_PUSH` flag of the remote
++++         * client's most recent `SETTINGS` frame. Will be `true` if the remote peer
++++         * accepts push streams, `false` otherwise. Settings are the same for every `Http2Stream` in the same `Http2Session`.
++++         * @since v8.4.0
++++         */
++++        readonly pushAllowed: boolean;
++++        /**
++++         * Sends an additional informational `HEADERS` frame to the connected HTTP/2 peer.
++++         * @since v8.4.0
++++         */
++++        additionalHeaders(headers: OutgoingHttpHeaders): void;
++++        /**
++++         * Initiates a push stream. The callback is invoked with the new `Http2Stream` instance created for the push stream passed as the second argument, or an `Error` passed as the first argument.
++++         *
++++         * ```js
++++         * import http2 from 'node:http2';
++++         * const server = http2.createServer();
++++         * server.on('stream', (stream) => {
++++         *   stream.respond({ ':status': 200 });
++++         *   stream.pushStream({ ':path': '/' }, (err, pushStream, headers) => {
++++         *     if (err) throw err;
++++         *     pushStream.respond({ ':status': 200 });
++++         *     pushStream.end('some pushed data');
++++         *   });
++++         *   stream.end('some data');
++++         * });
++++         * ```
++++         *
++++         * Setting the weight of a push stream is not allowed in the `HEADERS` frame. Pass
++++         * a `weight` value to `http2stream.priority` with the `silent` option set to `true` to enable server-side bandwidth balancing between concurrent streams.
++++         *
++++         * Calling `http2stream.pushStream()` from within a pushed stream is not permitted
++++         * and will throw an error.
++++         * @since v8.4.0
++++         * @param callback Callback that is called once the push stream has been initiated.
++++         */
++++        pushStream(
++++            headers: OutgoingHttpHeaders,
++++            callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void,
++++        ): void;
++++        pushStream(
++++            headers: OutgoingHttpHeaders,
++++            options?: StreamPriorityOptions,
++++            callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void,
++++        ): void;
++++        /**
++++         * ```js
++++         * import http2 from 'node:http2';
++++         * const server = http2.createServer();
++++         * server.on('stream', (stream) => {
++++         *   stream.respond({ ':status': 200 });
++++         *   stream.end('some data');
++++         * });
++++         * ```
++++         *
++++         * Initiates a response. When the `options.waitForTrailers` option is set, the `'wantTrailers'` event
++++         * will be emitted immediately after queuing the last chunk of payload data to be sent.
++++         * The `http2stream.sendTrailers()` method can then be used to send trailing header fields to the peer.
++++         *
++++         * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically
++++         * close when the final `DATA` frame is transmitted. User code must call either `http2stream.sendTrailers()` or `http2stream.close()` to close the `Http2Stream`.
++++         *
++++         * ```js
++++         * import http2 from 'node:http2';
++++         * const server = http2.createServer();
++++         * server.on('stream', (stream) => {
++++         *   stream.respond({ ':status': 200 }, { waitForTrailers: true });
++++         *   stream.on('wantTrailers', () => {
++++         *     stream.sendTrailers({ ABC: 'some value to send' });
++++         *   });
++++         *   stream.end('some data');
++++         * });
++++         * ```
++++         * @since v8.4.0
++++         */
++++        respond(headers?: OutgoingHttpHeaders, options?: ServerStreamResponseOptions): void;
++++        /**
++++         * Initiates a response whose data is read from the given file descriptor. No
++++         * validation is performed on the given file descriptor. If an error occurs while
++++         * attempting to read data using the file descriptor, the `Http2Stream` will be
++++         * closed using an `RST_STREAM` frame using the standard `INTERNAL_ERROR` code.
++++         *
++++         * When used, the `Http2Stream` object's `Duplex` interface will be closed
++++         * automatically.
++++         *
++++         * ```js
++++         * import http2 from 'node:http2';
++++         * import fs from 'node:fs';
++++         *
++++         * const server = http2.createServer();
++++         * server.on('stream', (stream) => {
++++         *   const fd = fs.openSync('/some/file', 'r');
++++         *
++++         *   const stat = fs.fstatSync(fd);
++++         *   const headers = {
++++         *     'content-length': stat.size,
++++         *     'last-modified': stat.mtime.toUTCString(),
++++         *     'content-type': 'text/plain; charset=utf-8',
++++         *   };
++++         *   stream.respondWithFD(fd, headers);
++++         *   stream.on('close', () => fs.closeSync(fd));
++++         * });
++++         * ```
++++         *
++++         * The optional `options.statCheck` function may be specified to give user code
++++         * an opportunity to set additional content headers based on the `fs.Stat` details
++++         * of the given fd. If the `statCheck` function is provided, the `http2stream.respondWithFD()` method will
++++         * perform an `fs.fstat()` call to collect details on the provided file descriptor.
++++         *
++++         * The `offset` and `length` options may be used to limit the response to a
++++         * specific range subset. This can be used, for instance, to support HTTP Range
++++         * requests.
++++         *
++++         * The file descriptor or `FileHandle` is not closed when the stream is closed,
++++         * so it will need to be closed manually once it is no longer needed.
++++         * Using the same file descriptor concurrently for multiple streams
++++         * is not supported and may result in data loss. Re-using a file descriptor
++++         * after a stream has finished is supported.
++++         *
++++         * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event
++++         * will be emitted immediately after queuing the last chunk of payload data to be
++++         * sent. The `http2stream.sendTrailers()` method can then be used to sent trailing
++++         * header fields to the peer.
++++         *
++++         * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically
++++         * close when the final `DATA` frame is transmitted. User code _must_ call either `http2stream.sendTrailers()`
++++         * or `http2stream.close()` to close the `Http2Stream`.
++++         *
++++         * ```js
++++         * import http2 from 'node:http2';
++++         * import fs from 'node:fs';
++++         *
++++         * const server = http2.createServer();
++++         * server.on('stream', (stream) => {
++++         *   const fd = fs.openSync('/some/file', 'r');
++++         *
++++         *   const stat = fs.fstatSync(fd);
++++         *   const headers = {
++++         *     'content-length': stat.size,
++++         *     'last-modified': stat.mtime.toUTCString(),
++++         *     'content-type': 'text/plain; charset=utf-8',
++++         *   };
++++         *   stream.respondWithFD(fd, headers, { waitForTrailers: true });
++++         *   stream.on('wantTrailers', () => {
++++         *     stream.sendTrailers({ ABC: 'some value to send' });
++++         *   });
++++         *
++++         *   stream.on('close', () => fs.closeSync(fd));
++++         * });
++++         * ```
++++         * @since v8.4.0
++++         * @param fd A readable file descriptor.
++++         */
++++        respondWithFD(
++++            fd: number | fs.promises.FileHandle,
++++            headers?: OutgoingHttpHeaders,
++++            options?: ServerStreamFileResponseOptions,
++++        ): void;
++++        /**
++++         * Sends a regular file as the response. The `path` must specify a regular file
++++         * or an `'error'` event will be emitted on the `Http2Stream` object.
++++         *
++++         * When used, the `Http2Stream` object's `Duplex` interface will be closed
++++         * automatically.
++++         *
++++         * The optional `options.statCheck` function may be specified to give user code
++++         * an opportunity to set additional content headers based on the `fs.Stat` details
++++         * of the given file:
++++         *
++++         * If an error occurs while attempting to read the file data, the `Http2Stream` will be closed using an
++++         * `RST_STREAM` frame using the standard `INTERNAL_ERROR` code.
++++         * If the `onError` callback is defined, then it will be called. Otherwise, the stream will be destroyed.
++++         *
++++         * Example using a file path:
++++         *
++++         * ```js
++++         * import http2 from 'node:http2';
++++         * const server = http2.createServer();
++++         * server.on('stream', (stream) => {
++++         *   function statCheck(stat, headers) {
++++         *     headers['last-modified'] = stat.mtime.toUTCString();
++++         *   }
++++         *
++++         *   function onError(err) {
++++         *     // stream.respond() can throw if the stream has been destroyed by
++++         *     // the other side.
++++         *     try {
++++         *       if (err.code === 'ENOENT') {
++++         *         stream.respond({ ':status': 404 });
++++         *       } else {
++++         *         stream.respond({ ':status': 500 });
++++         *       }
++++         *     } catch (err) {
++++         *       // Perform actual error handling.
++++         *       console.error(err);
++++         *     }
++++         *     stream.end();
++++         *   }
++++         *
++++         *   stream.respondWithFile('/some/file',
++++         *                          { 'content-type': 'text/plain; charset=utf-8' },
++++         *                          { statCheck, onError });
++++         * });
++++         * ```
++++         *
++++         * The `options.statCheck` function may also be used to cancel the send operation
++++         * by returning `false`. For instance, a conditional request may check the stat
++++         * results to determine if the file has been modified to return an appropriate `304` response:
++++         *
++++         * ```js
++++         * import http2 from 'node:http2';
++++         * const server = http2.createServer();
++++         * server.on('stream', (stream) => {
++++         *   function statCheck(stat, headers) {
++++         *     // Check the stat here...
++++         *     stream.respond({ ':status': 304 });
++++         *     return false; // Cancel the send operation
++++         *   }
++++         *   stream.respondWithFile('/some/file',
++++         *                          { 'content-type': 'text/plain; charset=utf-8' },
++++         *                          { statCheck });
++++         * });
++++         * ```
++++         *
++++         * The `content-length` header field will be automatically set.
++++         *
++++         * The `offset` and `length` options may be used to limit the response to a
++++         * specific range subset. This can be used, for instance, to support HTTP Range
++++         * requests.
++++         *
++++         * The `options.onError` function may also be used to handle all the errors
++++         * that could happen before the delivery of the file is initiated. The
++++         * default behavior is to destroy the stream.
++++         *
++++         * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event
++++         * will be emitted immediately after queuing the last chunk of payload data to be
++++         * sent. The `http2stream.sendTrailers()` method can then be used to sent trailing
++++         * header fields to the peer.
++++         *
++++         * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically
++++         * close when the final `DATA` frame is transmitted. User code must call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`.
++++         *
++++         * ```js
++++         * import http2 from 'node:http2';
++++         * const server = http2.createServer();
++++         * server.on('stream', (stream) => {
++++         *   stream.respondWithFile('/some/file',
++++         *                          { 'content-type': 'text/plain; charset=utf-8' },
++++         *                          { waitForTrailers: true });
++++         *   stream.on('wantTrailers', () => {
++++         *     stream.sendTrailers({ ABC: 'some value to send' });
++++         *   });
++++         * });
++++         * ```
++++         * @since v8.4.0
++++         */
++++        respondWithFile(
++++            path: string,
++++            headers?: OutgoingHttpHeaders,
++++            options?: ServerStreamFileResponseOptionsWithError,
++++        ): void;
++++    }
++++    // Http2Session
++++    export interface Settings {
++++        headerTableSize?: number | undefined;
++++        enablePush?: boolean | undefined;
++++        initialWindowSize?: number | undefined;
++++        maxFrameSize?: number | undefined;
++++        maxConcurrentStreams?: number | undefined;
++++        maxHeaderListSize?: number | undefined;
++++        enableConnectProtocol?: boolean | undefined;
++++    }
++++    export interface ClientSessionRequestOptions {
++++        endStream?: boolean | undefined;
++++        exclusive?: boolean | undefined;
++++        parent?: number | undefined;
++++        weight?: number | undefined;
++++        waitForTrailers?: boolean | undefined;
++++        signal?: AbortSignal | undefined;
++++    }
++++    export interface SessionState {
++++        effectiveLocalWindowSize?: number | undefined;
++++        effectiveRecvDataLength?: number | undefined;
++++        nextStreamID?: number | undefined;
++++        localWindowSize?: number | undefined;
++++        lastProcStreamID?: number | undefined;
++++        remoteWindowSize?: number | undefined;
++++        outboundQueueSize?: number | undefined;
++++        deflateDynamicTableSize?: number | undefined;
++++        inflateDynamicTableSize?: number | undefined;
++++    }
++++    export interface Http2Session extends EventEmitter {
++++        /**
++++         * Value will be `undefined` if the `Http2Session` is not yet connected to a
++++         * socket, `h2c` if the `Http2Session` is not connected to a `TLSSocket`, or
++++         * will return the value of the connected `TLSSocket`'s own `alpnProtocol` property.
++++         * @since v9.4.0
++++         */
++++        readonly alpnProtocol?: string | undefined;
++++        /**
++++         * Will be `true` if this `Http2Session` instance has been closed, otherwise `false`.
++++         * @since v9.4.0
++++         */
++++        readonly closed: boolean;
++++        /**
++++         * Will be `true` if this `Http2Session` instance is still connecting, will be set
++++         * to `false` before emitting `connect` event and/or calling the `http2.connect` callback.
++++         * @since v10.0.0
++++         */
++++        readonly connecting: boolean;
++++        /**
++++         * Will be `true` if this `Http2Session` instance has been destroyed and must no
++++         * longer be used, otherwise `false`.
++++         * @since v8.4.0
++++         */
++++        readonly destroyed: boolean;
++++        /**
++++         * Value is `undefined` if the `Http2Session` session socket has not yet been
++++         * connected, `true` if the `Http2Session` is connected with a `TLSSocket`,
++++         * and `false` if the `Http2Session` is connected to any other kind of socket
++++         * or stream.
++++         * @since v9.4.0
++++         */
++++        readonly encrypted?: boolean | undefined;
++++        /**
++++         * A prototype-less object describing the current local settings of this `Http2Session`.
++++         * The local settings are local to _this_`Http2Session` instance.
++++         * @since v8.4.0
++++         */
++++        readonly localSettings: Settings;
++++        /**
++++         * If the `Http2Session` is connected to a `TLSSocket`, the `originSet` property
++++         * will return an `Array` of origins for which the `Http2Session` may be
++++         * considered authoritative.
++++         *
++++         * The `originSet` property is only available when using a secure TLS connection.
++++         * @since v9.4.0
++++         */
++++        readonly originSet?: string[] | undefined;
++++        /**
++++         * Indicates whether the `Http2Session` is currently waiting for acknowledgment of
++++         * a sent `SETTINGS` frame. Will be `true` after calling the `http2session.settings()` method.
++++         * Will be `false` once all sent `SETTINGS` frames have been acknowledged.
++++         * @since v8.4.0
++++         */
++++        readonly pendingSettingsAck: boolean;
++++        /**
++++         * A prototype-less object describing the current remote settings of this`Http2Session`.
++++         * The remote settings are set by the _connected_ HTTP/2 peer.
++++         * @since v8.4.0
++++         */
++++        readonly remoteSettings: Settings;
++++        /**
++++         * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but
++++         * limits available methods to ones safe to use with HTTP/2.
++++         *
++++         * `destroy`, `emit`, `end`, `pause`, `read`, `resume`, and `write` will throw
++++         * an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for more information.
++++         *
++++         * `setTimeout` method will be called on this `Http2Session`.
++++         *
++++         * All other interactions will be routed directly to the socket.
++++         * @since v8.4.0
++++         */
++++        readonly socket: net.Socket | tls.TLSSocket;
++++        /**
++++         * Provides miscellaneous information about the current state of the`Http2Session`.
++++         *
++++         * An object describing the current status of this `Http2Session`.
++++         * @since v8.4.0
++++         */
++++        readonly state: SessionState;
++++        /**
++++         * The `http2session.type` will be equal to `http2.constants.NGHTTP2_SESSION_SERVER` if this `Http2Session` instance is a
++++         * server, and `http2.constants.NGHTTP2_SESSION_CLIENT` if the instance is a
++++         * client.
++++         * @since v8.4.0
++++         */
++++        readonly type: number;
++++        /**
++++         * Gracefully closes the `Http2Session`, allowing any existing streams to
++++         * complete on their own and preventing new `Http2Stream` instances from being
++++         * created. Once closed, `http2session.destroy()`_might_ be called if there
++++         * are no open `Http2Stream` instances.
++++         *
++++         * If specified, the `callback` function is registered as a handler for the`'close'` event.
++++         * @since v9.4.0
++++         */
++++        close(callback?: () => void): void;
++++        /**
++++         * Immediately terminates the `Http2Session` and the associated `net.Socket` or `tls.TLSSocket`.
++++         *
++++         * Once destroyed, the `Http2Session` will emit the `'close'` event. If `error` is not undefined, an `'error'` event will be emitted immediately before the `'close'` event.
++++         *
++++         * If there are any remaining open `Http2Streams` associated with the `Http2Session`, those will also be destroyed.
++++         * @since v8.4.0
++++         * @param error An `Error` object if the `Http2Session` is being destroyed due to an error.
++++         * @param code The HTTP/2 error code to send in the final `GOAWAY` frame. If unspecified, and `error` is not undefined, the default is `INTERNAL_ERROR`, otherwise defaults to `NO_ERROR`.
++++         */
++++        destroy(error?: Error, code?: number): void;
++++        /**
++++         * Transmits a `GOAWAY` frame to the connected peer _without_ shutting down the`Http2Session`.
++++         * @since v9.4.0
++++         * @param code An HTTP/2 error code
++++         * @param lastStreamID The numeric ID of the last processed `Http2Stream`
++++         * @param opaqueData A `TypedArray` or `DataView` instance containing additional data to be carried within the `GOAWAY` frame.
++++         */
++++        goaway(code?: number, lastStreamID?: number, opaqueData?: NodeJS.ArrayBufferView): void;
++++        /**
++++         * Sends a `PING` frame to the connected HTTP/2 peer. A `callback` function must
++++         * be provided. The method will return `true` if the `PING` was sent, `false` otherwise.
++++         *
++++         * The maximum number of outstanding (unacknowledged) pings is determined by the `maxOutstandingPings` configuration option. The default maximum is 10.
++++         *
++++         * If provided, the `payload` must be a `Buffer`, `TypedArray`, or `DataView` containing 8 bytes of data that will be transmitted with the `PING` and
++++         * returned with the ping acknowledgment.
++++         *
++++         * The callback will be invoked with three arguments: an error argument that will
++++         * be `null` if the `PING` was successfully acknowledged, a `duration` argument
++++         * that reports the number of milliseconds elapsed since the ping was sent and the
++++         * acknowledgment was received, and a `Buffer` containing the 8-byte `PING` payload.
++++         *
++++         * ```js
++++         * session.ping(Buffer.from('abcdefgh'), (err, duration, payload) => {
++++         *   if (!err) {
++++         *     console.log(`Ping acknowledged in ${duration} milliseconds`);
++++         *     console.log(`With payload '${payload.toString()}'`);
++++         *   }
++++         * });
++++         * ```
++++         *
++++         * If the `payload` argument is not specified, the default payload will be the
++++         * 64-bit timestamp (little endian) marking the start of the `PING` duration.
++++         * @since v8.9.3
++++         * @param payload Optional ping payload.
++++         */
++++        ping(callback: (err: Error | null, duration: number, payload: Buffer) => void): boolean;
++++        ping(
++++            payload: NodeJS.ArrayBufferView,
++++            callback: (err: Error | null, duration: number, payload: Buffer) => void,
++++        ): boolean;
++++        /**
++++         * Calls `ref()` on this `Http2Session` instance's underlying `net.Socket`.
++++         * @since v9.4.0
++++         */
++++        ref(): void;
++++        /**
++++         * Sets the local endpoint's window size.
++++         * The `windowSize` is the total window size to set, not
++++         * the delta.
++++         *
++++         * ```js
++++         * import http2 from 'node:http2';
++++         *
++++         * const server = http2.createServer();
++++         * const expectedWindowSize = 2 ** 20;
++++         * server.on('connect', (session) => {
++++         *
++++         *   // Set local window size to be 2 ** 20
++++         *   session.setLocalWindowSize(expectedWindowSize);
++++         * });
++++         * ```
++++         * @since v15.3.0, v14.18.0
++++         */
++++        setLocalWindowSize(windowSize: number): void;
++++        /**
++++         * Used to set a callback function that is called when there is no activity on
++++         * the `Http2Session` after `msecs` milliseconds. The given `callback` is
++++         * registered as a listener on the `'timeout'` event.
++++         * @since v8.4.0
++++         */
++++        setTimeout(msecs: number, callback?: () => void): void;
++++        /**
++++         * Updates the current local settings for this `Http2Session` and sends a new `SETTINGS` frame to the connected HTTP/2 peer.
++++         *
++++         * Once called, the `http2session.pendingSettingsAck` property will be `true` while the session is waiting for the remote peer to acknowledge the new
++++         * settings.
++++         *
++++         * The new settings will not become effective until the `SETTINGS` acknowledgment
++++         * is received and the `'localSettings'` event is emitted. It is possible to send
++++         * multiple `SETTINGS` frames while acknowledgment is still pending.
++++         * @since v8.4.0
++++         * @param callback Callback that is called once the session is connected or right away if the session is already connected.
++++         */
++++        settings(
++++            settings: Settings,
++++            callback?: (err: Error | null, settings: Settings, duration: number) => void,
++++        ): void;
++++        /**
++++         * Calls `unref()` on this `Http2Session`instance's underlying `net.Socket`.
++++         * @since v9.4.0
++++         */
++++        unref(): void;
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "error", listener: (err: Error) => void): this;
++++        addListener(
++++            event: "frameError",
++++            listener: (frameType: number, errorCode: number, streamID: number) => void,
++++        ): this;
++++        addListener(
++++            event: "goaway",
++++            listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void,
++++        ): this;
++++        addListener(event: "localSettings", listener: (settings: Settings) => void): this;
++++        addListener(event: "ping", listener: () => void): this;
++++        addListener(event: "remoteSettings", listener: (settings: Settings) => void): this;
++++        addListener(event: "timeout", listener: () => void): this;
++++        addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        emit(event: "close"): boolean;
++++        emit(event: "error", err: Error): boolean;
++++        emit(event: "frameError", frameType: number, errorCode: number, streamID: number): boolean;
++++        emit(event: "goaway", errorCode: number, lastStreamID: number, opaqueData?: Buffer): boolean;
++++        emit(event: "localSettings", settings: Settings): boolean;
++++        emit(event: "ping"): boolean;
++++        emit(event: "remoteSettings", settings: Settings): boolean;
++++        emit(event: "timeout"): boolean;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "error", listener: (err: Error) => void): this;
++++        on(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this;
++++        on(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void): this;
++++        on(event: "localSettings", listener: (settings: Settings) => void): this;
++++        on(event: "ping", listener: () => void): this;
++++        on(event: "remoteSettings", listener: (settings: Settings) => void): this;
++++        on(event: "timeout", listener: () => void): this;
++++        on(event: string | symbol, listener: (...args: any[]) => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "error", listener: (err: Error) => void): this;
++++        once(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this;
++++        once(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void): this;
++++        once(event: "localSettings", listener: (settings: Settings) => void): this;
++++        once(event: "ping", listener: () => void): this;
++++        once(event: "remoteSettings", listener: (settings: Settings) => void): this;
++++        once(event: "timeout", listener: () => void): this;
++++        once(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "error", listener: (err: Error) => void): this;
++++        prependListener(
++++            event: "frameError",
++++            listener: (frameType: number, errorCode: number, streamID: number) => void,
++++        ): this;
++++        prependListener(
++++            event: "goaway",
++++            listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void,
++++        ): this;
++++        prependListener(event: "localSettings", listener: (settings: Settings) => void): this;
++++        prependListener(event: "ping", listener: () => void): this;
++++        prependListener(event: "remoteSettings", listener: (settings: Settings) => void): this;
++++        prependListener(event: "timeout", listener: () => void): this;
++++        prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "error", listener: (err: Error) => void): this;
++++        prependOnceListener(
++++            event: "frameError",
++++            listener: (frameType: number, errorCode: number, streamID: number) => void,
++++        ): this;
++++        prependOnceListener(
++++            event: "goaway",
++++            listener: (errorCode: number, lastStreamID: number, opaqueData?: Buffer) => void,
++++        ): this;
++++        prependOnceListener(event: "localSettings", listener: (settings: Settings) => void): this;
++++        prependOnceListener(event: "ping", listener: () => void): this;
++++        prependOnceListener(event: "remoteSettings", listener: (settings: Settings) => void): this;
++++        prependOnceListener(event: "timeout", listener: () => void): this;
++++        prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++    }
++++    export interface ClientHttp2Session extends Http2Session {
++++        /**
++++         * For HTTP/2 Client `Http2Session` instances only, the `http2session.request()` creates and returns an `Http2Stream` instance that can be used to send an
++++         * HTTP/2 request to the connected server.
++++         *
++++         * When a `ClientHttp2Session` is first created, the socket may not yet be
++++         * connected. if `clienthttp2session.request()` is called during this time, the
++++         * actual request will be deferred until the socket is ready to go.
++++         * If the `session` is closed before the actual request be executed, an `ERR_HTTP2_GOAWAY_SESSION` is thrown.
++++         *
++++         * This method is only available if `http2session.type` is equal to `http2.constants.NGHTTP2_SESSION_CLIENT`.
++++         *
++++         * ```js
++++         * import http2 from 'node:http2';
++++         * const clientSession = http2.connect('https://localhost:1234');
++++         * const {
++++         *   HTTP2_HEADER_PATH,
++++         *   HTTP2_HEADER_STATUS,
++++         * } = http2.constants;
++++         *
++++         * const req = clientSession.request({ [HTTP2_HEADER_PATH]: '/' });
++++         * req.on('response', (headers) => {
++++         *   console.log(headers[HTTP2_HEADER_STATUS]);
++++         *   req.on('data', (chunk) => { // ..  });
++++         *   req.on('end', () => { // ..  });
++++         * });
++++         * ```
++++         *
++++         * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event
++++         * is emitted immediately after queuing the last chunk of payload data to be sent.
++++         * The `http2stream.sendTrailers()` method can then be called to send trailing
++++         * headers to the peer.
++++         *
++++         * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically
++++         * close when the final `DATA` frame is transmitted. User code must call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`.
++++         *
++++         * When `options.signal` is set with an `AbortSignal` and then `abort` on the
++++         * corresponding `AbortController` is called, the request will emit an `'error'`event with an `AbortError` error.
++++         *
++++         * The `:method` and `:path` pseudo-headers are not specified within `headers`,
++++         * they respectively default to:
++++         *
++++         * * `:method` \= `'GET'`
++++         * * `:path` \= `/`
++++         * @since v8.4.0
++++         */
++++        request(headers?: OutgoingHttpHeaders, options?: ClientSessionRequestOptions): ClientHttp2Stream;
++++        addListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
++++        addListener(event: "origin", listener: (origins: string[]) => void): this;
++++        addListener(
++++            event: "connect",
++++            listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void,
++++        ): this;
++++        addListener(
++++            event: "stream",
++++            listener: (
++++                stream: ClientHttp2Stream,
++++                headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
++++                flags: number,
++++            ) => void,
++++        ): this;
++++        addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        emit(event: "altsvc", alt: string, origin: string, stream: number): boolean;
++++        emit(event: "origin", origins: readonly string[]): boolean;
++++        emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean;
++++        emit(
++++            event: "stream",
++++            stream: ClientHttp2Stream,
++++            headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
++++            flags: number,
++++        ): boolean;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        on(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
++++        on(event: "origin", listener: (origins: string[]) => void): this;
++++        on(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this;
++++        on(
++++            event: "stream",
++++            listener: (
++++                stream: ClientHttp2Stream,
++++                headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
++++                flags: number,
++++            ) => void,
++++        ): this;
++++        on(event: string | symbol, listener: (...args: any[]) => void): this;
++++        once(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
++++        once(event: "origin", listener: (origins: string[]) => void): this;
++++        once(
++++            event: "connect",
++++            listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void,
++++        ): this;
++++        once(
++++            event: "stream",
++++            listener: (
++++                stream: ClientHttp2Stream,
++++                headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
++++                flags: number,
++++            ) => void,
++++        ): this;
++++        once(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
++++        prependListener(event: "origin", listener: (origins: string[]) => void): this;
++++        prependListener(
++++            event: "connect",
++++            listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void,
++++        ): this;
++++        prependListener(
++++            event: "stream",
++++            listener: (
++++                stream: ClientHttp2Stream,
++++                headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
++++                flags: number,
++++            ) => void,
++++        ): this;
++++        prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
++++        prependOnceListener(event: "origin", listener: (origins: string[]) => void): this;
++++        prependOnceListener(
++++            event: "connect",
++++            listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void,
++++        ): this;
++++        prependOnceListener(
++++            event: "stream",
++++            listener: (
++++                stream: ClientHttp2Stream,
++++                headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
++++                flags: number,
++++            ) => void,
++++        ): this;
++++        prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++    }
++++    export interface AlternativeServiceOptions {
++++        origin: number | string | url.URL;
++++    }
++++    export interface ServerHttp2Session<
++++        Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
++++        Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
++++        Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
++++        Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
++++    > extends Http2Session {
++++        readonly server:
++++            | Http2Server<Http1Request, Http1Response, Http2Request, Http2Response>
++++            | Http2SecureServer<Http1Request, Http1Response, Http2Request, Http2Response>;
++++        /**
++++         * Submits an `ALTSVC` frame (as defined by [RFC 7838](https://tools.ietf.org/html/rfc7838)) to the connected client.
++++         *
++++         * ```js
++++         * import http2 from 'node:http2';
++++         *
++++         * const server = http2.createServer();
++++         * server.on('session', (session) => {
++++         *   // Set altsvc for origin https://example.org:80
++++         *   session.altsvc('h2=":8000"', 'https://example.org:80');
++++         * });
++++         *
++++         * server.on('stream', (stream) => {
++++         *   // Set altsvc for a specific stream
++++         *   stream.session.altsvc('h2=":8000"', stream.id);
++++         * });
++++         * ```
++++         *
++++         * Sending an `ALTSVC` frame with a specific stream ID indicates that the alternate
++++         * service is associated with the origin of the given `Http2Stream`.
++++         *
++++         * The `alt` and origin string _must_ contain only ASCII bytes and are
++++         * strictly interpreted as a sequence of ASCII bytes. The special value `'clear'`may be passed to clear any previously set alternative service for a given
++++         * domain.
++++         *
++++         * When a string is passed for the `originOrStream` argument, it will be parsed as
++++         * a URL and the origin will be derived. For instance, the origin for the
++++         * HTTP URL `'https://example.org/foo/bar'` is the ASCII string`'https://example.org'`. An error will be thrown if either the given string
++++         * cannot be parsed as a URL or if a valid origin cannot be derived.
++++         *
++++         * A `URL` object, or any object with an `origin` property, may be passed as`originOrStream`, in which case the value of the `origin` property will be
++++         * used. The value of the `origin` property _must_ be a properly serialized
++++         * ASCII origin.
++++         * @since v9.4.0
++++         * @param alt A description of the alternative service configuration as defined by `RFC 7838`.
++++         * @param originOrStream Either a URL string specifying the origin (or an `Object` with an `origin` property) or the numeric identifier of an active `Http2Stream` as given by the
++++         * `http2stream.id` property.
++++         */
++++        altsvc(alt: string, originOrStream: number | string | url.URL | AlternativeServiceOptions): void;
++++        /**
++++         * Submits an `ORIGIN` frame (as defined by [RFC 8336](https://tools.ietf.org/html/rfc8336)) to the connected client
++++         * to advertise the set of origins for which the server is capable of providing
++++         * authoritative responses.
++++         *
++++         * ```js
++++         * import http2 from 'node:http2';
++++         * const options = getSecureOptionsSomehow();
++++         * const server = http2.createSecureServer(options);
++++         * server.on('stream', (stream) => {
++++         *   stream.respond();
++++         *   stream.end('ok');
++++         * });
++++         * server.on('session', (session) => {
++++         *   session.origin('https://example.com', 'https://example.org');
++++         * });
++++         * ```
++++         *
++++         * When a string is passed as an `origin`, it will be parsed as a URL and the
++++         * origin will be derived. For instance, the origin for the HTTP URL `'https://example.org/foo/bar'` is the ASCII string` 'https://example.org'`. An error will be thrown if either the given
++++         * string
++++         * cannot be parsed as a URL or if a valid origin cannot be derived.
++++         *
++++         * A `URL` object, or any object with an `origin` property, may be passed as
++++         * an `origin`, in which case the value of the `origin` property will be
++++         * used. The value of the `origin` property _must_ be a properly serialized
++++         * ASCII origin.
++++         *
++++         * Alternatively, the `origins` option may be used when creating a new HTTP/2
++++         * server using the `http2.createSecureServer()` method:
++++         *
++++         * ```js
++++         * import http2 from 'node:http2';
++++         * const options = getSecureOptionsSomehow();
++++         * options.origins = ['https://example.com', 'https://example.org'];
++++         * const server = http2.createSecureServer(options);
++++         * server.on('stream', (stream) => {
++++         *   stream.respond();
++++         *   stream.end('ok');
++++         * });
++++         * ```
++++         * @since v10.12.0
++++         * @param origins One or more URL Strings passed as separate arguments.
++++         */
++++        origin(
++++            ...origins: Array<
++++                | string
++++                | url.URL
++++                | {
++++                    origin: string;
++++                }
++++            >
++++        ): void;
++++        addListener(
++++            event: "connect",
++++            listener: (
++++                session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
++++                socket: net.Socket | tls.TLSSocket,
++++            ) => void,
++++        ): this;
++++        addListener(
++++            event: "stream",
++++            listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
++++        ): this;
++++        addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        emit(
++++            event: "connect",
++++            session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
++++            socket: net.Socket | tls.TLSSocket,
++++        ): boolean;
++++        emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        on(
++++            event: "connect",
++++            listener: (
++++                session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
++++                socket: net.Socket | tls.TLSSocket,
++++            ) => void,
++++        ): this;
++++        on(
++++            event: "stream",
++++            listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
++++        ): this;
++++        on(event: string | symbol, listener: (...args: any[]) => void): this;
++++        once(
++++            event: "connect",
++++            listener: (
++++                session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
++++                socket: net.Socket | tls.TLSSocket,
++++            ) => void,
++++        ): this;
++++        once(
++++            event: "stream",
++++            listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
++++        ): this;
++++        once(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependListener(
++++            event: "connect",
++++            listener: (
++++                session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
++++                socket: net.Socket | tls.TLSSocket,
++++            ) => void,
++++        ): this;
++++        prependListener(
++++            event: "stream",
++++            listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
++++        ): this;
++++        prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependOnceListener(
++++            event: "connect",
++++            listener: (
++++                session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
++++                socket: net.Socket | tls.TLSSocket,
++++            ) => void,
++++        ): this;
++++        prependOnceListener(
++++            event: "stream",
++++            listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
++++        ): this;
++++        prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++    }
++++    // Http2Server
++++    export interface SessionOptions {
++++        maxDeflateDynamicTableSize?: number | undefined;
++++        maxSessionMemory?: number | undefined;
++++        maxHeaderListPairs?: number | undefined;
++++        maxOutstandingPings?: number | undefined;
++++        maxSendHeaderBlockLength?: number | undefined;
++++        paddingStrategy?: number | undefined;
++++        peerMaxConcurrentStreams?: number | undefined;
++++        settings?: Settings | undefined;
++++        remoteCustomSettings?: number[] | undefined;
++++        /**
++++         * Specifies a timeout in milliseconds that
++++         * a server should wait when an [`'unknownProtocol'`][] is emitted. If the
++++         * socket has not been destroyed by that time the server will destroy it.
++++         * @default 100000
++++         */
++++        unknownProtocolTimeout?: number | undefined;
++++        selectPadding?(frameLen: number, maxFrameLen: number): number;
++++    }
++++    export interface ClientSessionOptions extends SessionOptions {
++++        maxReservedRemoteStreams?: number | undefined;
++++        createConnection?: ((authority: url.URL, option: SessionOptions) => stream.Duplex) | undefined;
++++        protocol?: "http:" | "https:" | undefined;
++++    }
++++    export interface ServerSessionOptions<
++++        Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
++++        Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
++++        Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
++++        Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
++++    > extends SessionOptions {
++++        Http1IncomingMessage?: Http1Request | undefined;
++++        Http1ServerResponse?: Http1Response | undefined;
++++        Http2ServerRequest?: Http2Request | undefined;
++++        Http2ServerResponse?: Http2Response | undefined;
++++    }
++++    export interface SecureClientSessionOptions extends ClientSessionOptions, tls.ConnectionOptions {}
++++    export interface SecureServerSessionOptions<
++++        Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
++++        Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
++++        Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
++++        Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
++++    > extends ServerSessionOptions<Http1Request, Http1Response, Http2Request, Http2Response>, tls.TlsOptions {}
++++    export interface ServerOptions<
++++        Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
++++        Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
++++        Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
++++        Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
++++    > extends ServerSessionOptions<Http1Request, Http1Response, Http2Request, Http2Response> {}
++++    export interface SecureServerOptions<
++++        Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
++++        Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
++++        Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
++++        Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
++++    > extends SecureServerSessionOptions<Http1Request, Http1Response, Http2Request, Http2Response> {
++++        allowHTTP1?: boolean | undefined;
++++        origins?: string[] | undefined;
++++    }
++++    interface HTTP2ServerCommon {
++++        setTimeout(msec?: number, callback?: () => void): this;
++++        /**
++++         * Throws ERR_HTTP2_INVALID_SETTING_VALUE for invalid settings values.
++++         * Throws ERR_INVALID_ARG_TYPE for invalid settings argument.
++++         */
++++        updateSettings(settings: Settings): void;
++++    }
++++    export interface Http2Server<
++++        Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
++++        Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
++++        Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
++++        Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
++++    > extends net.Server, HTTP2ServerCommon {
++++        addListener(
++++            event: "checkContinue",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        addListener(
++++            event: "request",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        addListener(
++++            event: "session",
++++            listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
++++        ): this;
++++        addListener(event: "sessionError", listener: (err: Error) => void): this;
++++        addListener(
++++            event: "stream",
++++            listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
++++        ): this;
++++        addListener(event: "timeout", listener: () => void): this;
++++        addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        emit(
++++            event: "checkContinue",
++++            request: InstanceType<Http2Request>,
++++            response: InstanceType<Http2Response>,
++++        ): boolean;
++++        emit(event: "request", request: InstanceType<Http2Request>, response: InstanceType<Http2Response>): boolean;
++++        emit(
++++            event: "session",
++++            session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
++++        ): boolean;
++++        emit(event: "sessionError", err: Error): boolean;
++++        emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean;
++++        emit(event: "timeout"): boolean;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        on(
++++            event: "checkContinue",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        on(
++++            event: "request",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        on(
++++            event: "session",
++++            listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
++++        ): this;
++++        on(event: "sessionError", listener: (err: Error) => void): this;
++++        on(
++++            event: "stream",
++++            listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
++++        ): this;
++++        on(event: "timeout", listener: () => void): this;
++++        on(event: string | symbol, listener: (...args: any[]) => void): this;
++++        once(
++++            event: "checkContinue",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        once(
++++            event: "request",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        once(
++++            event: "session",
++++            listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
++++        ): this;
++++        once(event: "sessionError", listener: (err: Error) => void): this;
++++        once(
++++            event: "stream",
++++            listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
++++        ): this;
++++        once(event: "timeout", listener: () => void): this;
++++        once(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependListener(
++++            event: "checkContinue",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        prependListener(
++++            event: "request",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        prependListener(
++++            event: "session",
++++            listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
++++        ): this;
++++        prependListener(event: "sessionError", listener: (err: Error) => void): this;
++++        prependListener(
++++            event: "stream",
++++            listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
++++        ): this;
++++        prependListener(event: "timeout", listener: () => void): this;
++++        prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependOnceListener(
++++            event: "checkContinue",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        prependOnceListener(
++++            event: "request",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        prependOnceListener(
++++            event: "session",
++++            listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
++++        ): this;
++++        prependOnceListener(event: "sessionError", listener: (err: Error) => void): this;
++++        prependOnceListener(
++++            event: "stream",
++++            listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
++++        ): this;
++++        prependOnceListener(event: "timeout", listener: () => void): this;
++++        prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++    }
++++    export interface Http2SecureServer<
++++        Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
++++        Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
++++        Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
++++        Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
++++    > extends tls.Server, HTTP2ServerCommon {
++++        addListener(
++++            event: "checkContinue",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        addListener(
++++            event: "request",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        addListener(
++++            event: "session",
++++            listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
++++        ): this;
++++        addListener(event: "sessionError", listener: (err: Error) => void): this;
++++        addListener(
++++            event: "stream",
++++            listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
++++        ): this;
++++        addListener(event: "timeout", listener: () => void): this;
++++        addListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this;
++++        addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        emit(
++++            event: "checkContinue",
++++            request: InstanceType<Http2Request>,
++++            response: InstanceType<Http2Response>,
++++        ): boolean;
++++        emit(event: "request", request: InstanceType<Http2Request>, response: InstanceType<Http2Response>): boolean;
++++        emit(
++++            event: "session",
++++            session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
++++        ): boolean;
++++        emit(event: "sessionError", err: Error): boolean;
++++        emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean;
++++        emit(event: "timeout"): boolean;
++++        emit(event: "unknownProtocol", socket: tls.TLSSocket): boolean;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        on(
++++            event: "checkContinue",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        on(
++++            event: "request",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        on(
++++            event: "session",
++++            listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
++++        ): this;
++++        on(event: "sessionError", listener: (err: Error) => void): this;
++++        on(
++++            event: "stream",
++++            listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
++++        ): this;
++++        on(event: "timeout", listener: () => void): this;
++++        on(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this;
++++        on(event: string | symbol, listener: (...args: any[]) => void): this;
++++        once(
++++            event: "checkContinue",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        once(
++++            event: "request",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        once(
++++            event: "session",
++++            listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
++++        ): this;
++++        once(event: "sessionError", listener: (err: Error) => void): this;
++++        once(
++++            event: "stream",
++++            listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
++++        ): this;
++++        once(event: "timeout", listener: () => void): this;
++++        once(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this;
++++        once(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependListener(
++++            event: "checkContinue",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        prependListener(
++++            event: "request",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        prependListener(
++++            event: "session",
++++            listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
++++        ): this;
++++        prependListener(event: "sessionError", listener: (err: Error) => void): this;
++++        prependListener(
++++            event: "stream",
++++            listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
++++        ): this;
++++        prependListener(event: "timeout", listener: () => void): this;
++++        prependListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this;
++++        prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependOnceListener(
++++            event: "checkContinue",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        prependOnceListener(
++++            event: "request",
++++            listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++        ): this;
++++        prependOnceListener(
++++            event: "session",
++++            listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
++++        ): this;
++++        prependOnceListener(event: "sessionError", listener: (err: Error) => void): this;
++++        prependOnceListener(
++++            event: "stream",
++++            listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
++++        ): this;
++++        prependOnceListener(event: "timeout", listener: () => void): this;
++++        prependOnceListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this;
++++        prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++    }
++++    /**
++++     * A `Http2ServerRequest` object is created by {@link Server} or {@link SecureServer} and passed as the first argument to the `'request'` event. It may be used to access a request status,
++++     * headers, and
++++     * data.
++++     * @since v8.4.0
++++     */
++++    export class Http2ServerRequest extends stream.Readable {
++++        constructor(
++++            stream: ServerHttp2Stream,
++++            headers: IncomingHttpHeaders,
++++            options: stream.ReadableOptions,
++++            rawHeaders: readonly string[],
++++        );
++++        /**
++++         * The `request.aborted` property will be `true` if the request has
++++         * been aborted.
++++         * @since v10.1.0
++++         */
++++        readonly aborted: boolean;
++++        /**
++++         * The request authority pseudo header field. Because HTTP/2 allows requests
++++         * to set either `:authority` or `host`, this value is derived from `req.headers[':authority']` if present. Otherwise, it is derived from `req.headers['host']`.
++++         * @since v8.4.0
++++         */
++++        readonly authority: string;
++++        /**
++++         * See `request.socket`.
++++         * @since v8.4.0
++++         * @deprecated Since v13.0.0 - Use `socket`.
++++         */
++++        readonly connection: net.Socket | tls.TLSSocket;
++++        /**
++++         * The `request.complete` property will be `true` if the request has
++++         * been completed, aborted, or destroyed.
++++         * @since v12.10.0
++++         */
++++        readonly complete: boolean;
++++        /**
++++         * The request/response headers object.
++++         *
++++         * Key-value pairs of header names and values. Header names are lower-cased.
++++         *
++++         * ```js
++++         * // Prints something like:
++++         * //
++++         * // { 'user-agent': 'curl/7.22.0',
++++         * //   host: '127.0.0.1:8000',
++++         * //   accept: '*' }
++++         * console.log(request.headers);
++++         * ```
++++         *
++++         * See `HTTP/2 Headers Object`.
++++         *
++++         * In HTTP/2, the request path, host name, protocol, and method are represented as
++++         * special headers prefixed with the `:` character (e.g. `':path'`). These special
++++         * headers will be included in the `request.headers` object. Care must be taken not
++++         * to inadvertently modify these special headers or errors may occur. For instance,
++++         * removing all headers from the request will cause errors to occur:
++++         *
++++         * ```js
++++         * removeAllHeaders(request.headers);
++++         * assert(request.url);   // Fails because the :path header has been removed
++++         * ```
++++         * @since v8.4.0
++++         */
++++        readonly headers: IncomingHttpHeaders;
++++        /**
++++         * In case of server request, the HTTP version sent by the client. In the case of
++++         * client response, the HTTP version of the connected-to server. Returns `'2.0'`.
++++         *
++++         * Also `message.httpVersionMajor` is the first integer and `message.httpVersionMinor` is the second.
++++         * @since v8.4.0
++++         */
++++        readonly httpVersion: string;
++++        readonly httpVersionMinor: number;
++++        readonly httpVersionMajor: number;
++++        /**
++++         * The request method as a string. Read-only. Examples: `'GET'`, `'DELETE'`.
++++         * @since v8.4.0
++++         */
++++        readonly method: string;
++++        /**
++++         * The raw request/response headers list exactly as they were received.
++++         *
++++         * The keys and values are in the same list. It is _not_ a
++++         * list of tuples. So, the even-numbered offsets are key values, and the
++++         * odd-numbered offsets are the associated values.
++++         *
++++         * Header names are not lowercased, and duplicates are not merged.
++++         *
++++         * ```js
++++         * // Prints something like:
++++         * //
++++         * // [ 'user-agent',
++++         * //   'this is invalid because there can be only one',
++++         * //   'User-Agent',
++++         * //   'curl/7.22.0',
++++         * //   'Host',
++++         * //   '127.0.0.1:8000',
++++         * //   'ACCEPT',
++++         * //   '*' ]
++++         * console.log(request.rawHeaders);
++++         * ```
++++         * @since v8.4.0
++++         */
++++        readonly rawHeaders: string[];
++++        /**
++++         * The raw request/response trailer keys and values exactly as they were
++++         * received. Only populated at the `'end'` event.
++++         * @since v8.4.0
++++         */
++++        readonly rawTrailers: string[];
++++        /**
++++         * The request scheme pseudo header field indicating the scheme
++++         * portion of the target URL.
++++         * @since v8.4.0
++++         */
++++        readonly scheme: string;
++++        /**
++++         * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but
++++         * applies getters, setters, and methods based on HTTP/2 logic.
++++         *
++++         * `destroyed`, `readable`, and `writable` properties will be retrieved from and
++++         * set on `request.stream`.
++++         *
++++         * `destroy`, `emit`, `end`, `on` and `once` methods will be called on `request.stream`.
++++         *
++++         * `setTimeout` method will be called on `request.stream.session`.
++++         *
++++         * `pause`, `read`, `resume`, and `write` will throw an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for
++++         * more information.
++++         *
++++         * All other interactions will be routed directly to the socket. With TLS support,
++++         * use `request.socket.getPeerCertificate()` to obtain the client's
++++         * authentication details.
++++         * @since v8.4.0
++++         */
++++        readonly socket: net.Socket | tls.TLSSocket;
++++        /**
++++         * The `Http2Stream` object backing the request.
++++         * @since v8.4.0
++++         */
++++        readonly stream: ServerHttp2Stream;
++++        /**
++++         * The request/response trailers object. Only populated at the `'end'` event.
++++         * @since v8.4.0
++++         */
++++        readonly trailers: IncomingHttpHeaders;
++++        /**
++++         * Request URL string. This contains only the URL that is present in the actual
++++         * HTTP request. If the request is:
++++         *
++++         * ```http
++++         * GET /status?name=ryan HTTP/1.1
++++         * Accept: text/plain
++++         * ```
++++         *
++++         * Then `request.url` will be:
++++         *
++++         * ```js
++++         * '/status?name=ryan'
++++         * ```
++++         *
++++         * To parse the url into its parts, `new URL()` can be used:
++++         *
++++         * ```console
++++         * $ node
++++         * > new URL('/status?name=ryan', 'http://example.com')
++++         * URL {
++++         *   href: 'http://example.com/status?name=ryan',
++++         *   origin: 'http://example.com',
++++         *   protocol: 'http:',
++++         *   username: '',
++++         *   password: '',
++++         *   host: 'example.com',
++++         *   hostname: 'example.com',
++++         *   port: '',
++++         *   pathname: '/status',
++++         *   search: '?name=ryan',
++++         *   searchParams: URLSearchParams { 'name' => 'ryan' },
++++         *   hash: ''
++++         * }
++++         * ```
++++         * @since v8.4.0
++++         */
++++        url: string;
++++        /**
++++         * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is
++++         * provided, then it is added as a listener on the `'timeout'` event on
++++         * the response object.
++++         *
++++         * If no `'timeout'` listener is added to the request, the response, or
++++         * the server, then `Http2Stream`s are destroyed when they time out. If a
++++         * handler is assigned to the request, the response, or the server's `'timeout'`events, timed out sockets must be handled explicitly.
++++         * @since v8.4.0
++++         */
++++        setTimeout(msecs: number, callback?: () => void): void;
++++        read(size?: number): Buffer | string | null;
++++        addListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this;
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "data", listener: (chunk: Buffer | string) => void): this;
++++        addListener(event: "end", listener: () => void): this;
++++        addListener(event: "readable", listener: () => void): this;
++++        addListener(event: "error", listener: (err: Error) => void): this;
++++        addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        emit(event: "aborted", hadError: boolean, code: number): boolean;
++++        emit(event: "close"): boolean;
++++        emit(event: "data", chunk: Buffer | string): boolean;
++++        emit(event: "end"): boolean;
++++        emit(event: "readable"): boolean;
++++        emit(event: "error", err: Error): boolean;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        on(event: "aborted", listener: (hadError: boolean, code: number) => void): this;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "data", listener: (chunk: Buffer | string) => void): this;
++++        on(event: "end", listener: () => void): this;
++++        on(event: "readable", listener: () => void): this;
++++        on(event: "error", listener: (err: Error) => void): this;
++++        on(event: string | symbol, listener: (...args: any[]) => void): this;
++++        once(event: "aborted", listener: (hadError: boolean, code: number) => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "data", listener: (chunk: Buffer | string) => void): this;
++++        once(event: "end", listener: () => void): this;
++++        once(event: "readable", listener: () => void): this;
++++        once(event: "error", listener: (err: Error) => void): this;
++++        once(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "data", listener: (chunk: Buffer | string) => void): this;
++++        prependListener(event: "end", listener: () => void): this;
++++        prependListener(event: "readable", listener: () => void): this;
++++        prependListener(event: "error", listener: (err: Error) => void): this;
++++        prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "data", listener: (chunk: Buffer | string) => void): this;
++++        prependOnceListener(event: "end", listener: () => void): this;
++++        prependOnceListener(event: "readable", listener: () => void): this;
++++        prependOnceListener(event: "error", listener: (err: Error) => void): this;
++++        prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++    }
++++    /**
++++     * This object is created internally by an HTTP server, not by the user. It is
++++     * passed as the second parameter to the `'request'` event.
++++     * @since v8.4.0
++++     */
++++    export class Http2ServerResponse<Request extends Http2ServerRequest = Http2ServerRequest> extends stream.Writable {
++++        constructor(stream: ServerHttp2Stream);
++++        /**
++++         * See `response.socket`.
++++         * @since v8.4.0
++++         * @deprecated Since v13.0.0 - Use `socket`.
++++         */
++++        readonly connection: net.Socket | tls.TLSSocket;
++++        /**
++++         * Append a single header value to the header object.
++++         *
++++         * If the value is an array, this is equivalent to calling this method multiple times.
++++         *
++++         * If there were no previous values for the header, this is equivalent to calling {@link setHeader}.
++++         *
++++         * Attempting to set a header field name or value that contains invalid characters will result in a
++++         * [TypeError](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-typeerror) being thrown.
++++         *
++++         * ```js
++++         * // Returns headers including "set-cookie: a" and "set-cookie: b"
++++         * const server = http2.createServer((req, res) => {
++++         *   res.setHeader('set-cookie', 'a');
++++         *   res.appendHeader('set-cookie', 'b');
++++         *   res.writeHead(200);
++++         *   res.end('ok');
++++         * });
++++         * ```
++++         * @since v20.12.0
++++         */
++++        appendHeader(name: string, value: string | string[]): void;
++++        /**
++++         * Boolean value that indicates whether the response has completed. Starts
++++         * as `false`. After `response.end()` executes, the value will be `true`.
++++         * @since v8.4.0
++++         * @deprecated Since v13.4.0,v12.16.0 - Use `writableEnded`.
++++         */
++++        readonly finished: boolean;
++++        /**
++++         * True if headers were sent, false otherwise (read-only).
++++         * @since v8.4.0
++++         */
++++        readonly headersSent: boolean;
++++        /**
++++         * A reference to the original HTTP2 `request` object.
++++         * @since v15.7.0
++++         */
++++        readonly req: Request;
++++        /**
++++         * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but
++++         * applies getters, setters, and methods based on HTTP/2 logic.
++++         *
++++         * `destroyed`, `readable`, and `writable` properties will be retrieved from and
++++         * set on `response.stream`.
++++         *
++++         * `destroy`, `emit`, `end`, `on` and `once` methods will be called on `response.stream`.
++++         *
++++         * `setTimeout` method will be called on `response.stream.session`.
++++         *
++++         * `pause`, `read`, `resume`, and `write` will throw an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for
++++         * more information.
++++         *
++++         * All other interactions will be routed directly to the socket.
++++         *
++++         * ```js
++++         * import http2 from 'node:http2';
++++         * const server = http2.createServer((req, res) => {
++++         *   const ip = req.socket.remoteAddress;
++++         *   const port = req.socket.remotePort;
++++         *   res.end(`Your IP address is ${ip} and your source port is ${port}.`);
++++         * }).listen(3000);
++++         * ```
++++         * @since v8.4.0
++++         */
++++        readonly socket: net.Socket | tls.TLSSocket;
++++        /**
++++         * The `Http2Stream` object backing the response.
++++         * @since v8.4.0
++++         */
++++        readonly stream: ServerHttp2Stream;
++++        /**
++++         * When true, the Date header will be automatically generated and sent in
++++         * the response if it is not already present in the headers. Defaults to true.
++++         *
++++         * This should only be disabled for testing; HTTP requires the Date header
++++         * in responses.
++++         * @since v8.4.0
++++         */
++++        sendDate: boolean;
++++        /**
++++         * When using implicit headers (not calling `response.writeHead()` explicitly),
++++         * this property controls the status code that will be sent to the client when
++++         * the headers get flushed.
++++         *
++++         * ```js
++++         * response.statusCode = 404;
++++         * ```
++++         *
++++         * After response header was sent to the client, this property indicates the
++++         * status code which was sent out.
++++         * @since v8.4.0
++++         */
++++        statusCode: number;
++++        /**
++++         * Status message is not supported by HTTP/2 (RFC 7540 8.1.2.4). It returns
++++         * an empty string.
++++         * @since v8.4.0
++++         */
++++        statusMessage: "";
++++        /**
++++         * This method adds HTTP trailing headers (a header but at the end of the
++++         * message) to the response.
++++         *
++++         * Attempting to set a header field name or value that contains invalid characters
++++         * will result in a `TypeError` being thrown.
++++         * @since v8.4.0
++++         */
++++        addTrailers(trailers: OutgoingHttpHeaders): void;
++++        /**
++++         * This method signals to the server that all of the response headers and body
++++         * have been sent; that server should consider this message complete.
++++         * The method, `response.end()`, MUST be called on each response.
++++         *
++++         * If `data` is specified, it is equivalent to calling `response.write(data, encoding)` followed by `response.end(callback)`.
++++         *
++++         * If `callback` is specified, it will be called when the response stream
++++         * is finished.
++++         * @since v8.4.0
++++         */
++++        end(callback?: () => void): this;
++++        end(data: string | Uint8Array, callback?: () => void): this;
++++        end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): this;
++++        /**
++++         * Reads out a header that has already been queued but not sent to the client.
++++         * The name is case-insensitive.
++++         *
++++         * ```js
++++         * const contentType = response.getHeader('content-type');
++++         * ```
++++         * @since v8.4.0
++++         */
++++        getHeader(name: string): string;
++++        /**
++++         * Returns an array containing the unique names of the current outgoing headers.
++++         * All header names are lowercase.
++++         *
++++         * ```js
++++         * response.setHeader('Foo', 'bar');
++++         * response.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']);
++++         *
++++         * const headerNames = response.getHeaderNames();
++++         * // headerNames === ['foo', 'set-cookie']
++++         * ```
++++         * @since v8.4.0
++++         */
++++        getHeaderNames(): string[];
++++        /**
++++         * Returns a shallow copy of the current outgoing headers. Since a shallow copy
++++         * is used, array values may be mutated without additional calls to various
++++         * header-related http module methods. The keys of the returned object are the
++++         * header names and the values are the respective header values. All header names
++++         * are lowercase.
++++         *
++++         * The object returned by the `response.getHeaders()` method _does not_ prototypically inherit from the JavaScript `Object`. This means that typical `Object` methods such as `obj.toString()`,
++++         * `obj.hasOwnProperty()`, and others
++++         * are not defined and _will not work_.
++++         *
++++         * ```js
++++         * response.setHeader('Foo', 'bar');
++++         * response.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']);
++++         *
++++         * const headers = response.getHeaders();
++++         * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] }
++++         * ```
++++         * @since v8.4.0
++++         */
++++        getHeaders(): OutgoingHttpHeaders;
++++        /**
++++         * Returns `true` if the header identified by `name` is currently set in the
++++         * outgoing headers. The header name matching is case-insensitive.
++++         *
++++         * ```js
++++         * const hasContentType = response.hasHeader('content-type');
++++         * ```
++++         * @since v8.4.0
++++         */
++++        hasHeader(name: string): boolean;
++++        /**
++++         * Removes a header that has been queued for implicit sending.
++++         *
++++         * ```js
++++         * response.removeHeader('Content-Encoding');
++++         * ```
++++         * @since v8.4.0
++++         */
++++        removeHeader(name: string): void;
++++        /**
++++         * Sets a single header value for implicit headers. If this header already exists
++++         * in the to-be-sent headers, its value will be replaced. Use an array of strings
++++         * here to send multiple headers with the same name.
++++         *
++++         * ```js
++++         * response.setHeader('Content-Type', 'text/html; charset=utf-8');
++++         * ```
++++         *
++++         * or
++++         *
++++         * ```js
++++         * response.setHeader('Set-Cookie', ['type=ninja', 'language=javascript']);
++++         * ```
++++         *
++++         * Attempting to set a header field name or value that contains invalid characters
++++         * will result in a `TypeError` being thrown.
++++         *
++++         * When headers have been set with `response.setHeader()`, they will be merged
++++         * with any headers passed to `response.writeHead()`, with the headers passed
++++         * to `response.writeHead()` given precedence.
++++         *
++++         * ```js
++++         * // Returns content-type = text/plain
++++         * const server = http2.createServer((req, res) => {
++++         *   res.setHeader('Content-Type', 'text/html; charset=utf-8');
++++         *   res.setHeader('X-Foo', 'bar');
++++         *   res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' });
++++         *   res.end('ok');
++++         * });
++++         * ```
++++         * @since v8.4.0
++++         */
++++        setHeader(name: string, value: number | string | readonly string[]): void;
++++        /**
++++         * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is
++++         * provided, then it is added as a listener on the `'timeout'` event on
++++         * the response object.
++++         *
++++         * If no `'timeout'` listener is added to the request, the response, or
++++         * the server, then `Http2Stream` s are destroyed when they time out. If a
++++         * handler is assigned to the request, the response, or the server's `'timeout'` events, timed out sockets must be handled explicitly.
++++         * @since v8.4.0
++++         */
++++        setTimeout(msecs: number, callback?: () => void): void;
++++        /**
++++         * If this method is called and `response.writeHead()` has not been called,
++++         * it will switch to implicit header mode and flush the implicit headers.
++++         *
++++         * This sends a chunk of the response body. This method may
++++         * be called multiple times to provide successive parts of the body.
++++         *
++++         * In the `node:http` module, the response body is omitted when the
++++         * request is a HEAD request. Similarly, the `204` and `304` responses _must not_ include a message body.
++++         *
++++         * `chunk` can be a string or a buffer. If `chunk` is a string,
++++         * the second parameter specifies how to encode it into a byte stream.
++++         * By default the `encoding` is `'utf8'`. `callback` will be called when this chunk
++++         * of data is flushed.
++++         *
++++         * This is the raw HTTP body and has nothing to do with higher-level multi-part
++++         * body encodings that may be used.
++++         *
++++         * The first time `response.write()` is called, it will send the buffered
++++         * header information and the first chunk of the body to the client. The second
++++         * time `response.write()` is called, Node.js assumes data will be streamed,
++++         * and sends the new data separately. That is, the response is buffered up to the
++++         * first chunk of the body.
++++         *
++++         * Returns `true` if the entire data was flushed successfully to the kernel
++++         * buffer. Returns `false` if all or part of the data was queued in user memory.`'drain'` will be emitted when the buffer is free again.
++++         * @since v8.4.0
++++         */
++++        write(chunk: string | Uint8Array, callback?: (err: Error) => void): boolean;
++++        write(chunk: string | Uint8Array, encoding: BufferEncoding, callback?: (err: Error) => void): boolean;
++++        /**
++++         * Sends a status `100 Continue` to the client, indicating that the request body
++++         * should be sent. See the `'checkContinue'` event on `Http2Server` and `Http2SecureServer`.
++++         * @since v8.4.0
++++         */
++++        writeContinue(): void;
++++        /**
++++         * Sends a status `103 Early Hints` to the client with a Link header,
++++         * indicating that the user agent can preload/preconnect the linked resources.
++++         * The `hints` is an object containing the values of headers to be sent with
++++         * early hints message.
++++         *
++++         * **Example**
++++         *
++++         * ```js
++++         * const earlyHintsLink = '</styles.css>; rel=preload; as=style';
++++         * response.writeEarlyHints({
++++         *   'link': earlyHintsLink,
++++         * });
++++         *
++++         * const earlyHintsLinks = [
++++         *   '</styles.css>; rel=preload; as=style',
++++         *   '</scripts.js>; rel=preload; as=script',
++++         * ];
++++         * response.writeEarlyHints({
++++         *   'link': earlyHintsLinks,
++++         * });
++++         * ```
++++         * @since v18.11.0
++++         */
++++        writeEarlyHints(hints: Record<string, string | string[]>): void;
++++        /**
++++         * Sends a response header to the request. The status code is a 3-digit HTTP
++++         * status code, like `404`. The last argument, `headers`, are the response headers.
++++         *
++++         * Returns a reference to the `Http2ServerResponse`, so that calls can be chained.
++++         *
++++         * For compatibility with `HTTP/1`, a human-readable `statusMessage` may be
++++         * passed as the second argument. However, because the `statusMessage` has no
++++         * meaning within HTTP/2, the argument will have no effect and a process warning
++++         * will be emitted.
++++         *
++++         * ```js
++++         * const body = 'hello world';
++++         * response.writeHead(200, {
++++         *   'Content-Length': Buffer.byteLength(body),
++++         *   'Content-Type': 'text/plain; charset=utf-8',
++++         * });
++++         * ```
++++         *
++++         * `Content-Length` is given in bytes not characters. The`Buffer.byteLength()` API may be used to determine the number of bytes in a
++++         * given encoding. On outbound messages, Node.js does not check if Content-Length
++++         * and the length of the body being transmitted are equal or not. However, when
++++         * receiving messages, Node.js will automatically reject messages when the `Content-Length` does not match the actual payload size.
++++         *
++++         * This method may be called at most one time on a message before `response.end()` is called.
++++         *
++++         * If `response.write()` or `response.end()` are called before calling
++++         * this, the implicit/mutable headers will be calculated and call this function.
++++         *
++++         * When headers have been set with `response.setHeader()`, they will be merged
++++         * with any headers passed to `response.writeHead()`, with the headers passed
++++         * to `response.writeHead()` given precedence.
++++         *
++++         * ```js
++++         * // Returns content-type = text/plain
++++         * const server = http2.createServer((req, res) => {
++++         *   res.setHeader('Content-Type', 'text/html; charset=utf-8');
++++         *   res.setHeader('X-Foo', 'bar');
++++         *   res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' });
++++         *   res.end('ok');
++++         * });
++++         * ```
++++         *
++++         * Attempting to set a header field name or value that contains invalid characters
++++         * will result in a `TypeError` being thrown.
++++         * @since v8.4.0
++++         */
++++        writeHead(statusCode: number, headers?: OutgoingHttpHeaders): this;
++++        writeHead(statusCode: number, statusMessage: string, headers?: OutgoingHttpHeaders): this;
++++        /**
++++         * Call `http2stream.pushStream()` with the given headers, and wrap the
++++         * given `Http2Stream` on a newly created `Http2ServerResponse` as the callback
++++         * parameter if successful. When `Http2ServerRequest` is closed, the callback is
++++         * called with an error `ERR_HTTP2_INVALID_STREAM`.
++++         * @since v8.4.0
++++         * @param headers An object describing the headers
++++         * @param callback Called once `http2stream.pushStream()` is finished, or either when the attempt to create the pushed `Http2Stream` has failed or has been rejected, or the state of
++++         * `Http2ServerRequest` is closed prior to calling the `http2stream.pushStream()` method
++++         */
++++        createPushResponse(
++++            headers: OutgoingHttpHeaders,
++++            callback: (err: Error | null, res: Http2ServerResponse) => void,
++++        ): void;
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "drain", listener: () => void): this;
++++        addListener(event: "error", listener: (error: Error) => void): this;
++++        addListener(event: "finish", listener: () => void): this;
++++        addListener(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        addListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        emit(event: "close"): boolean;
++++        emit(event: "drain"): boolean;
++++        emit(event: "error", error: Error): boolean;
++++        emit(event: "finish"): boolean;
++++        emit(event: "pipe", src: stream.Readable): boolean;
++++        emit(event: "unpipe", src: stream.Readable): boolean;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "drain", listener: () => void): this;
++++        on(event: "error", listener: (error: Error) => void): this;
++++        on(event: "finish", listener: () => void): this;
++++        on(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        on(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        on(event: string | symbol, listener: (...args: any[]) => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "drain", listener: () => void): this;
++++        once(event: "error", listener: (error: Error) => void): this;
++++        once(event: "finish", listener: () => void): this;
++++        once(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        once(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        once(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "drain", listener: () => void): this;
++++        prependListener(event: "error", listener: (error: Error) => void): this;
++++        prependListener(event: "finish", listener: () => void): this;
++++        prependListener(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "drain", listener: () => void): this;
++++        prependOnceListener(event: "error", listener: (error: Error) => void): this;
++++        prependOnceListener(event: "finish", listener: () => void): this;
++++        prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this;
++++        prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
++++        prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++    }
++++    export namespace constants {
++++        const NGHTTP2_SESSION_SERVER: number;
++++        const NGHTTP2_SESSION_CLIENT: number;
++++        const NGHTTP2_STREAM_STATE_IDLE: number;
++++        const NGHTTP2_STREAM_STATE_OPEN: number;
++++        const NGHTTP2_STREAM_STATE_RESERVED_LOCAL: number;
++++        const NGHTTP2_STREAM_STATE_RESERVED_REMOTE: number;
++++        const NGHTTP2_STREAM_STATE_HALF_CLOSED_LOCAL: number;
++++        const NGHTTP2_STREAM_STATE_HALF_CLOSED_REMOTE: number;
++++        const NGHTTP2_STREAM_STATE_CLOSED: number;
++++        const NGHTTP2_NO_ERROR: number;
++++        const NGHTTP2_PROTOCOL_ERROR: number;
++++        const NGHTTP2_INTERNAL_ERROR: number;
++++        const NGHTTP2_FLOW_CONTROL_ERROR: number;
++++        const NGHTTP2_SETTINGS_TIMEOUT: number;
++++        const NGHTTP2_STREAM_CLOSED: number;
++++        const NGHTTP2_FRAME_SIZE_ERROR: number;
++++        const NGHTTP2_REFUSED_STREAM: number;
++++        const NGHTTP2_CANCEL: number;
++++        const NGHTTP2_COMPRESSION_ERROR: number;
++++        const NGHTTP2_CONNECT_ERROR: number;
++++        const NGHTTP2_ENHANCE_YOUR_CALM: number;
++++        const NGHTTP2_INADEQUATE_SECURITY: number;
++++        const NGHTTP2_HTTP_1_1_REQUIRED: number;
++++        const NGHTTP2_ERR_FRAME_SIZE_ERROR: number;
++++        const NGHTTP2_FLAG_NONE: number;
++++        const NGHTTP2_FLAG_END_STREAM: number;
++++        const NGHTTP2_FLAG_END_HEADERS: number;
++++        const NGHTTP2_FLAG_ACK: number;
++++        const NGHTTP2_FLAG_PADDED: number;
++++        const NGHTTP2_FLAG_PRIORITY: number;
++++        const DEFAULT_SETTINGS_HEADER_TABLE_SIZE: number;
++++        const DEFAULT_SETTINGS_ENABLE_PUSH: number;
++++        const DEFAULT_SETTINGS_INITIAL_WINDOW_SIZE: number;
++++        const DEFAULT_SETTINGS_MAX_FRAME_SIZE: number;
++++        const MAX_MAX_FRAME_SIZE: number;
++++        const MIN_MAX_FRAME_SIZE: number;
++++        const MAX_INITIAL_WINDOW_SIZE: number;
++++        const NGHTTP2_DEFAULT_WEIGHT: number;
++++        const NGHTTP2_SETTINGS_HEADER_TABLE_SIZE: number;
++++        const NGHTTP2_SETTINGS_ENABLE_PUSH: number;
++++        const NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS: number;
++++        const NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE: number;
++++        const NGHTTP2_SETTINGS_MAX_FRAME_SIZE: number;
++++        const NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE: number;
++++        const PADDING_STRATEGY_NONE: number;
++++        const PADDING_STRATEGY_MAX: number;
++++        const PADDING_STRATEGY_CALLBACK: number;
++++        const HTTP2_HEADER_STATUS: string;
++++        const HTTP2_HEADER_METHOD: string;
++++        const HTTP2_HEADER_AUTHORITY: string;
++++        const HTTP2_HEADER_SCHEME: string;
++++        const HTTP2_HEADER_PATH: string;
++++        const HTTP2_HEADER_ACCEPT_CHARSET: string;
++++        const HTTP2_HEADER_ACCEPT_ENCODING: string;
++++        const HTTP2_HEADER_ACCEPT_LANGUAGE: string;
++++        const HTTP2_HEADER_ACCEPT_RANGES: string;
++++        const HTTP2_HEADER_ACCEPT: string;
++++        const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_CREDENTIALS: string;
++++        const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_HEADERS: string;
++++        const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_METHODS: string;
++++        const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN: string;
++++        const HTTP2_HEADER_ACCESS_CONTROL_EXPOSE_HEADERS: string;
++++        const HTTP2_HEADER_ACCESS_CONTROL_REQUEST_HEADERS: string;
++++        const HTTP2_HEADER_ACCESS_CONTROL_REQUEST_METHOD: string;
++++        const HTTP2_HEADER_AGE: string;
++++        const HTTP2_HEADER_ALLOW: string;
++++        const HTTP2_HEADER_AUTHORIZATION: string;
++++        const HTTP2_HEADER_CACHE_CONTROL: string;
++++        const HTTP2_HEADER_CONNECTION: string;
++++        const HTTP2_HEADER_CONTENT_DISPOSITION: string;
++++        const HTTP2_HEADER_CONTENT_ENCODING: string;
++++        const HTTP2_HEADER_CONTENT_LANGUAGE: string;
++++        const HTTP2_HEADER_CONTENT_LENGTH: string;
++++        const HTTP2_HEADER_CONTENT_LOCATION: string;
++++        const HTTP2_HEADER_CONTENT_MD5: string;
++++        const HTTP2_HEADER_CONTENT_RANGE: string;
++++        const HTTP2_HEADER_CONTENT_TYPE: string;
++++        const HTTP2_HEADER_COOKIE: string;
++++        const HTTP2_HEADER_DATE: string;
++++        const HTTP2_HEADER_ETAG: string;
++++        const HTTP2_HEADER_EXPECT: string;
++++        const HTTP2_HEADER_EXPIRES: string;
++++        const HTTP2_HEADER_FROM: string;
++++        const HTTP2_HEADER_HOST: string;
++++        const HTTP2_HEADER_IF_MATCH: string;
++++        const HTTP2_HEADER_IF_MODIFIED_SINCE: string;
++++        const HTTP2_HEADER_IF_NONE_MATCH: string;
++++        const HTTP2_HEADER_IF_RANGE: string;
++++        const HTTP2_HEADER_IF_UNMODIFIED_SINCE: string;
++++        const HTTP2_HEADER_LAST_MODIFIED: string;
++++        const HTTP2_HEADER_LINK: string;
++++        const HTTP2_HEADER_LOCATION: string;
++++        const HTTP2_HEADER_MAX_FORWARDS: string;
++++        const HTTP2_HEADER_PREFER: string;
++++        const HTTP2_HEADER_PROXY_AUTHENTICATE: string;
++++        const HTTP2_HEADER_PROXY_AUTHORIZATION: string;
++++        const HTTP2_HEADER_RANGE: string;
++++        const HTTP2_HEADER_REFERER: string;
++++        const HTTP2_HEADER_REFRESH: string;
++++        const HTTP2_HEADER_RETRY_AFTER: string;
++++        const HTTP2_HEADER_SERVER: string;
++++        const HTTP2_HEADER_SET_COOKIE: string;
++++        const HTTP2_HEADER_STRICT_TRANSPORT_SECURITY: string;
++++        const HTTP2_HEADER_TRANSFER_ENCODING: string;
++++        const HTTP2_HEADER_TE: string;
++++        const HTTP2_HEADER_UPGRADE: string;
++++        const HTTP2_HEADER_USER_AGENT: string;
++++        const HTTP2_HEADER_VARY: string;
++++        const HTTP2_HEADER_VIA: string;
++++        const HTTP2_HEADER_WWW_AUTHENTICATE: string;
++++        const HTTP2_HEADER_HTTP2_SETTINGS: string;
++++        const HTTP2_HEADER_KEEP_ALIVE: string;
++++        const HTTP2_HEADER_PROXY_CONNECTION: string;
++++        const HTTP2_METHOD_ACL: string;
++++        const HTTP2_METHOD_BASELINE_CONTROL: string;
++++        const HTTP2_METHOD_BIND: string;
++++        const HTTP2_METHOD_CHECKIN: string;
++++        const HTTP2_METHOD_CHECKOUT: string;
++++        const HTTP2_METHOD_CONNECT: string;
++++        const HTTP2_METHOD_COPY: string;
++++        const HTTP2_METHOD_DELETE: string;
++++        const HTTP2_METHOD_GET: string;
++++        const HTTP2_METHOD_HEAD: string;
++++        const HTTP2_METHOD_LABEL: string;
++++        const HTTP2_METHOD_LINK: string;
++++        const HTTP2_METHOD_LOCK: string;
++++        const HTTP2_METHOD_MERGE: string;
++++        const HTTP2_METHOD_MKACTIVITY: string;
++++        const HTTP2_METHOD_MKCALENDAR: string;
++++        const HTTP2_METHOD_MKCOL: string;
++++        const HTTP2_METHOD_MKREDIRECTREF: string;
++++        const HTTP2_METHOD_MKWORKSPACE: string;
++++        const HTTP2_METHOD_MOVE: string;
++++        const HTTP2_METHOD_OPTIONS: string;
++++        const HTTP2_METHOD_ORDERPATCH: string;
++++        const HTTP2_METHOD_PATCH: string;
++++        const HTTP2_METHOD_POST: string;
++++        const HTTP2_METHOD_PRI: string;
++++        const HTTP2_METHOD_PROPFIND: string;
++++        const HTTP2_METHOD_PROPPATCH: string;
++++        const HTTP2_METHOD_PUT: string;
++++        const HTTP2_METHOD_REBIND: string;
++++        const HTTP2_METHOD_REPORT: string;
++++        const HTTP2_METHOD_SEARCH: string;
++++        const HTTP2_METHOD_TRACE: string;
++++        const HTTP2_METHOD_UNBIND: string;
++++        const HTTP2_METHOD_UNCHECKOUT: string;
++++        const HTTP2_METHOD_UNLINK: string;
++++        const HTTP2_METHOD_UNLOCK: string;
++++        const HTTP2_METHOD_UPDATE: string;
++++        const HTTP2_METHOD_UPDATEREDIRECTREF: string;
++++        const HTTP2_METHOD_VERSION_CONTROL: string;
++++        const HTTP_STATUS_CONTINUE: number;
++++        const HTTP_STATUS_SWITCHING_PROTOCOLS: number;
++++        const HTTP_STATUS_PROCESSING: number;
++++        const HTTP_STATUS_OK: number;
++++        const HTTP_STATUS_CREATED: number;
++++        const HTTP_STATUS_ACCEPTED: number;
++++        const HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION: number;
++++        const HTTP_STATUS_NO_CONTENT: number;
++++        const HTTP_STATUS_RESET_CONTENT: number;
++++        const HTTP_STATUS_PARTIAL_CONTENT: number;
++++        const HTTP_STATUS_MULTI_STATUS: number;
++++        const HTTP_STATUS_ALREADY_REPORTED: number;
++++        const HTTP_STATUS_IM_USED: number;
++++        const HTTP_STATUS_MULTIPLE_CHOICES: number;
++++        const HTTP_STATUS_MOVED_PERMANENTLY: number;
++++        const HTTP_STATUS_FOUND: number;
++++        const HTTP_STATUS_SEE_OTHER: number;
++++        const HTTP_STATUS_NOT_MODIFIED: number;
++++        const HTTP_STATUS_USE_PROXY: number;
++++        const HTTP_STATUS_TEMPORARY_REDIRECT: number;
++++        const HTTP_STATUS_PERMANENT_REDIRECT: number;
++++        const HTTP_STATUS_BAD_REQUEST: number;
++++        const HTTP_STATUS_UNAUTHORIZED: number;
++++        const HTTP_STATUS_PAYMENT_REQUIRED: number;
++++        const HTTP_STATUS_FORBIDDEN: number;
++++        const HTTP_STATUS_NOT_FOUND: number;
++++        const HTTP_STATUS_METHOD_NOT_ALLOWED: number;
++++        const HTTP_STATUS_NOT_ACCEPTABLE: number;
++++        const HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED: number;
++++        const HTTP_STATUS_REQUEST_TIMEOUT: number;
++++        const HTTP_STATUS_CONFLICT: number;
++++        const HTTP_STATUS_GONE: number;
++++        const HTTP_STATUS_LENGTH_REQUIRED: number;
++++        const HTTP_STATUS_PRECONDITION_FAILED: number;
++++        const HTTP_STATUS_PAYLOAD_TOO_LARGE: number;
++++        const HTTP_STATUS_URI_TOO_LONG: number;
++++        const HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE: number;
++++        const HTTP_STATUS_RANGE_NOT_SATISFIABLE: number;
++++        const HTTP_STATUS_EXPECTATION_FAILED: number;
++++        const HTTP_STATUS_TEAPOT: number;
++++        const HTTP_STATUS_MISDIRECTED_REQUEST: number;
++++        const HTTP_STATUS_UNPROCESSABLE_ENTITY: number;
++++        const HTTP_STATUS_LOCKED: number;
++++        const HTTP_STATUS_FAILED_DEPENDENCY: number;
++++        const HTTP_STATUS_UNORDERED_COLLECTION: number;
++++        const HTTP_STATUS_UPGRADE_REQUIRED: number;
++++        const HTTP_STATUS_PRECONDITION_REQUIRED: number;
++++        const HTTP_STATUS_TOO_MANY_REQUESTS: number;
++++        const HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE: number;
++++        const HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS: number;
++++        const HTTP_STATUS_INTERNAL_SERVER_ERROR: number;
++++        const HTTP_STATUS_NOT_IMPLEMENTED: number;
++++        const HTTP_STATUS_BAD_GATEWAY: number;
++++        const HTTP_STATUS_SERVICE_UNAVAILABLE: number;
++++        const HTTP_STATUS_GATEWAY_TIMEOUT: number;
++++        const HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED: number;
++++        const HTTP_STATUS_VARIANT_ALSO_NEGOTIATES: number;
++++        const HTTP_STATUS_INSUFFICIENT_STORAGE: number;
++++        const HTTP_STATUS_LOOP_DETECTED: number;
++++        const HTTP_STATUS_BANDWIDTH_LIMIT_EXCEEDED: number;
++++        const HTTP_STATUS_NOT_EXTENDED: number;
++++        const HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED: number;
++++    }
++++    /**
++++     * This symbol can be set as a property on the HTTP/2 headers object with
++++     * an array value in order to provide a list of headers considered sensitive.
++++     */
++++    export const sensitiveHeaders: symbol;
++++    /**
++++     * Returns an object containing the default settings for an `Http2Session` instance. This method returns a new object instance every time it is called
++++     * so instances returned may be safely modified for use.
++++     * @since v8.4.0
++++     */
++++    export function getDefaultSettings(): Settings;
++++    /**
++++     * Returns a `Buffer` instance containing serialized representation of the given
++++     * HTTP/2 settings as specified in the [HTTP/2](https://tools.ietf.org/html/rfc7540) specification. This is intended
++++     * for use with the `HTTP2-Settings` header field.
++++     *
++++     * ```js
++++     * import http2 from 'node:http2';
++++     *
++++     * const packed = http2.getPackedSettings({ enablePush: false });
++++     *
++++     * console.log(packed.toString('base64'));
++++     * // Prints: AAIAAAAA
++++     * ```
++++     * @since v8.4.0
++++     */
++++    export function getPackedSettings(settings: Settings): Buffer;
++++    /**
++++     * Returns a `HTTP/2 Settings Object` containing the deserialized settings from
++++     * the given `Buffer` as generated by `http2.getPackedSettings()`.
++++     * @since v8.4.0
++++     * @param buf The packed settings.
++++     */
++++    export function getUnpackedSettings(buf: Uint8Array): Settings;
++++    /**
++++     * Returns a `net.Server` instance that creates and manages `Http2Session` instances.
++++     *
++++     * Since there are no browsers known that support [unencrypted HTTP/2](https://http2.github.io/faq/#does-http2-require-encryption), the use of {@link createSecureServer} is necessary when
++++     * communicating
++++     * with browser clients.
++++     *
++++     * ```js
++++     * import http2 from 'node:http2';
++++     *
++++     * // Create an unencrypted HTTP/2 server.
++++     * // Since there are no browsers known that support
++++     * // unencrypted HTTP/2, the use of `http2.createSecureServer()`
++++     * // is necessary when communicating with browser clients.
++++     * const server = http2.createServer();
++++     *
++++     * server.on('stream', (stream, headers) => {
++++     *   stream.respond({
++++     *     'content-type': 'text/html; charset=utf-8',
++++     *     ':status': 200,
++++     *   });
++++     *   stream.end('<h1>Hello World</h1>');
++++     * });
++++     *
++++     * server.listen(8000);
++++     * ```
++++     * @since v8.4.0
++++     * @param onRequestHandler See `Compatibility API`
++++     */
++++    export function createServer(
++++        onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void,
++++    ): Http2Server;
++++    export function createServer<
++++        Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
++++        Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
++++        Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
++++        Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
++++    >(
++++        options: ServerOptions<Http1Request, Http1Response, Http2Request, Http2Response>,
++++        onRequestHandler?: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++    ): Http2Server<Http1Request, Http1Response, Http2Request, Http2Response>;
++++    /**
++++     * Returns a `tls.Server` instance that creates and manages `Http2Session` instances.
++++     *
++++     * ```js
++++     * import http2 from 'node:http2';
++++     * import fs from 'node:fs';
++++     *
++++     * const options = {
++++     *   key: fs.readFileSync('server-key.pem'),
++++     *   cert: fs.readFileSync('server-cert.pem'),
++++     * };
++++     *
++++     * // Create a secure HTTP/2 server
++++     * const server = http2.createSecureServer(options);
++++     *
++++     * server.on('stream', (stream, headers) => {
++++     *   stream.respond({
++++     *     'content-type': 'text/html; charset=utf-8',
++++     *     ':status': 200,
++++     *   });
++++     *   stream.end('<h1>Hello World</h1>');
++++     * });
++++     *
++++     * server.listen(8443);
++++     * ```
++++     * @since v8.4.0
++++     * @param onRequestHandler See `Compatibility API`
++++     */
++++    export function createSecureServer(
++++        onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void,
++++    ): Http2SecureServer;
++++    export function createSecureServer<
++++        Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
++++        Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
++++        Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
++++        Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
++++    >(
++++        options: SecureServerOptions<Http1Request, Http1Response, Http2Request, Http2Response>,
++++        onRequestHandler?: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
++++    ): Http2SecureServer<Http1Request, Http1Response, Http2Request, Http2Response>;
++++    /**
++++     * Returns a `ClientHttp2Session` instance.
++++     *
++++     * ```js
++++     * import http2 from 'node:http2';
++++     * const client = http2.connect('https://localhost:1234');
++++     *
++++     * // Use the client
++++     *
++++     * client.close();
++++     * ```
++++     * @since v8.4.0
++++     * @param authority The remote HTTP/2 server to connect to. This must be in the form of a minimal, valid URL with the `http://` or `https://` prefix, host name, and IP port (if a non-default port
++++     * is used). Userinfo (user ID and password), path, querystring, and fragment details in the URL will be ignored.
++++     * @param listener Will be registered as a one-time listener of the {@link 'connect'} event.
++++     */
++++    export function connect(
++++        authority: string | url.URL,
++++        listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void,
++++    ): ClientHttp2Session;
++++    export function connect(
++++        authority: string | url.URL,
++++        options?: ClientSessionOptions | SecureClientSessionOptions,
++++        listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void,
++++    ): ClientHttp2Session;
++++    /**
++++     * Create an HTTP/2 server session from an existing socket.
++++     * @param socket A Duplex Stream
++++     * @param options Any `{@link createServer}` options can be provided.
++++     * @since v20.12.0
++++     */
++++    export function performServerHandshake<
++++        Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
++++        Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
++++        Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
++++        Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
++++    >(
++++        socket: stream.Duplex,
++++        options?: ServerOptions<Http1Request, Http1Response, Http2Request, Http2Response>,
++++    ): ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>;
++++}
++++declare module "node:http2" {
++++    export * from "http2";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..bd7d94575fde2a925243909fb04b261de1e89b0a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,544 @@@@@
++++/**
++++ * HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a
++++ * separate module.
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/https.js)
++++ */
++++declare module "https" {
++++    import { Duplex } from "node:stream";
++++    import * as tls from "node:tls";
++++    import * as http from "node:http";
++++    import { URL } from "node:url";
++++    type ServerOptions<
++++        Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
++++        Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
++++    > = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions<Request, Response>;
++++    type RequestOptions =
++++        & http.RequestOptions
++++        & tls.SecureContextOptions
++++        & {
++++            checkServerIdentity?: typeof tls.checkServerIdentity | undefined;
++++            rejectUnauthorized?: boolean | undefined; // Defaults to true
++++            servername?: string | undefined; // SNI TLS Extension
++++        };
++++    interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
++++        rejectUnauthorized?: boolean | undefined;
++++        maxCachedSessions?: number | undefined;
++++    }
++++    /**
++++     * An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information.
++++     * @since v0.4.5
++++     */
++++    class Agent extends http.Agent {
++++        constructor(options?: AgentOptions);
++++        options: AgentOptions;
++++    }
++++    interface Server<
++++        Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
++++        Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
++++    > extends http.Server<Request, Response> {}
++++    /**
++++     * See `http.Server` for more information.
++++     * @since v0.3.4
++++     */
++++    class Server<
++++        Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
++++        Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
++++    > extends tls.Server {
++++        constructor(requestListener?: http.RequestListener<Request, Response>);
++++        constructor(
++++            options: ServerOptions<Request, Response>,
++++            requestListener?: http.RequestListener<Request, Response>,
++++        );
++++        /**
++++         * Closes all connections connected to this server.
++++         * @since v18.2.0
++++         */
++++        closeAllConnections(): void;
++++        /**
++++         * Closes all connections connected to this server which are not sending a request or waiting for a response.
++++         * @since v18.2.0
++++         */
++++        closeIdleConnections(): void;
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        addListener(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
++++        addListener(
++++            event: "newSession",
++++            listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
++++        ): this;
++++        addListener(
++++            event: "OCSPRequest",
++++            listener: (
++++                certificate: Buffer,
++++                issuer: Buffer,
++++                callback: (err: Error | null, resp: Buffer) => void,
++++            ) => void,
++++        ): this;
++++        addListener(
++++            event: "resumeSession",
++++            listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
++++        ): this;
++++        addListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
++++        addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "connection", listener: (socket: Duplex) => void): this;
++++        addListener(event: "error", listener: (err: Error) => void): this;
++++        addListener(event: "listening", listener: () => void): this;
++++        addListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
++++        addListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
++++        addListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
++++        addListener(
++++            event: "connect",
++++            listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
++++        ): this;
++++        addListener(event: "request", listener: http.RequestListener<Request, Response>): this;
++++        addListener(
++++            event: "upgrade",
++++            listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
++++        ): this;
++++        emit(event: string, ...args: any[]): boolean;
++++        emit(event: "keylog", line: Buffer, tlsSocket: tls.TLSSocket): boolean;
++++        emit(
++++            event: "newSession",
++++            sessionId: Buffer,
++++            sessionData: Buffer,
++++            callback: (err: Error, resp: Buffer) => void,
++++        ): boolean;
++++        emit(
++++            event: "OCSPRequest",
++++            certificate: Buffer,
++++            issuer: Buffer,
++++            callback: (err: Error | null, resp: Buffer) => void,
++++        ): boolean;
++++        emit(event: "resumeSession", sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean;
++++        emit(event: "secureConnection", tlsSocket: tls.TLSSocket): boolean;
++++        emit(event: "tlsClientError", err: Error, tlsSocket: tls.TLSSocket): boolean;
++++        emit(event: "close"): boolean;
++++        emit(event: "connection", socket: Duplex): boolean;
++++        emit(event: "error", err: Error): boolean;
++++        emit(event: "listening"): boolean;
++++        emit(
++++            event: "checkContinue",
++++            req: InstanceType<Request>,
++++            res: InstanceType<Response>,
++++        ): boolean;
++++        emit(
++++            event: "checkExpectation",
++++            req: InstanceType<Request>,
++++            res: InstanceType<Response>,
++++        ): boolean;
++++        emit(event: "clientError", err: Error, socket: Duplex): boolean;
++++        emit(event: "connect", req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
++++        emit(
++++            event: "request",
++++            req: InstanceType<Request>,
++++            res: InstanceType<Response>,
++++        ): boolean;
++++        emit(event: "upgrade", req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        on(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
++++        on(
++++            event: "newSession",
++++            listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
++++        ): this;
++++        on(
++++            event: "OCSPRequest",
++++            listener: (
++++                certificate: Buffer,
++++                issuer: Buffer,
++++                callback: (err: Error | null, resp: Buffer) => void,
++++            ) => void,
++++        ): this;
++++        on(
++++            event: "resumeSession",
++++            listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
++++        ): this;
++++        on(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
++++        on(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "connection", listener: (socket: Duplex) => void): this;
++++        on(event: "error", listener: (err: Error) => void): this;
++++        on(event: "listening", listener: () => void): this;
++++        on(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
++++        on(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
++++        on(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
++++        on(event: "connect", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
++++        on(event: "request", listener: http.RequestListener<Request, Response>): this;
++++        on(event: "upgrade", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        once(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
++++        once(
++++            event: "newSession",
++++            listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
++++        ): this;
++++        once(
++++            event: "OCSPRequest",
++++            listener: (
++++                certificate: Buffer,
++++                issuer: Buffer,
++++                callback: (err: Error | null, resp: Buffer) => void,
++++            ) => void,
++++        ): this;
++++        once(
++++            event: "resumeSession",
++++            listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
++++        ): this;
++++        once(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
++++        once(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "connection", listener: (socket: Duplex) => void): this;
++++        once(event: "error", listener: (err: Error) => void): this;
++++        once(event: "listening", listener: () => void): this;
++++        once(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
++++        once(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
++++        once(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
++++        once(event: "connect", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
++++        once(event: "request", listener: http.RequestListener<Request, Response>): this;
++++        once(event: "upgrade", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        prependListener(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
++++        prependListener(
++++            event: "newSession",
++++            listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
++++        ): this;
++++        prependListener(
++++            event: "OCSPRequest",
++++            listener: (
++++                certificate: Buffer,
++++                issuer: Buffer,
++++                callback: (err: Error | null, resp: Buffer) => void,
++++            ) => void,
++++        ): this;
++++        prependListener(
++++            event: "resumeSession",
++++            listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
++++        ): this;
++++        prependListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
++++        prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "connection", listener: (socket: Duplex) => void): this;
++++        prependListener(event: "error", listener: (err: Error) => void): this;
++++        prependListener(event: "listening", listener: () => void): this;
++++        prependListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
++++        prependListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
++++        prependListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
++++        prependListener(
++++            event: "connect",
++++            listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
++++        ): this;
++++        prependListener(event: "request", listener: http.RequestListener<Request, Response>): this;
++++        prependListener(
++++            event: "upgrade",
++++            listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
++++        ): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
++++        prependOnceListener(
++++            event: "newSession",
++++            listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
++++        ): this;
++++        prependOnceListener(
++++            event: "OCSPRequest",
++++            listener: (
++++                certificate: Buffer,
++++                issuer: Buffer,
++++                callback: (err: Error | null, resp: Buffer) => void,
++++            ) => void,
++++        ): this;
++++        prependOnceListener(
++++            event: "resumeSession",
++++            listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
++++        ): this;
++++        prependOnceListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
++++        prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "connection", listener: (socket: Duplex) => void): this;
++++        prependOnceListener(event: "error", listener: (err: Error) => void): this;
++++        prependOnceListener(event: "listening", listener: () => void): this;
++++        prependOnceListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
++++        prependOnceListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
++++        prependOnceListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
++++        prependOnceListener(
++++            event: "connect",
++++            listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
++++        ): this;
++++        prependOnceListener(event: "request", listener: http.RequestListener<Request, Response>): this;
++++        prependOnceListener(
++++            event: "upgrade",
++++            listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
++++        ): this;
++++    }
++++    /**
++++     * ```js
++++     * // curl -k https://localhost:8000/
++++     * import https from 'node:https';
++++     * import fs from 'node:fs';
++++     *
++++     * const options = {
++++     *   key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
++++     *   cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
++++     * };
++++     *
++++     * https.createServer(options, (req, res) => {
++++     *   res.writeHead(200);
++++     *   res.end('hello world\n');
++++     * }).listen(8000);
++++     * ```
++++     *
++++     * Or
++++     *
++++     * ```js
++++     * import https from 'node:https';
++++     * import fs from 'node:fs';
++++     *
++++     * const options = {
++++     *   pfx: fs.readFileSync('test/fixtures/test_cert.pfx'),
++++     *   passphrase: 'sample',
++++     * };
++++     *
++++     * https.createServer(options, (req, res) => {
++++     *   res.writeHead(200);
++++     *   res.end('hello world\n');
++++     * }).listen(8000);
++++     * ```
++++     * @since v0.3.4
++++     * @param options Accepts `options` from `createServer`, `createSecureContext` and `createServer`.
++++     * @param requestListener A listener to be added to the `'request'` event.
++++     */
++++    function createServer<
++++        Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
++++        Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
++++    >(requestListener?: http.RequestListener<Request, Response>): Server<Request, Response>;
++++    function createServer<
++++        Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
++++        Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
++++    >(
++++        options: ServerOptions<Request, Response>,
++++        requestListener?: http.RequestListener<Request, Response>,
++++    ): Server<Request, Response>;
++++    /**
++++     * Makes a request to a secure web server.
++++     *
++++     * The following additional `options` from `tls.connect()` are also accepted: `ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`, `honorCipherOrder`, `key`, `passphrase`,
++++     * `pfx`, `rejectUnauthorized`, `secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`, `highWaterMark`.
++++     *
++++     * `options` can be an object, a string, or a `URL` object. If `options` is a
++++     * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
++++     *
++++     * `https.request()` returns an instance of the `http.ClientRequest` class. The `ClientRequest` instance is a writable stream. If one needs to
++++     * upload a file with a POST request, then write to the `ClientRequest` object.
++++     *
++++     * ```js
++++     * import https from 'node:https';
++++     *
++++     * const options = {
++++     *   hostname: 'encrypted.google.com',
++++     *   port: 443,
++++     *   path: '/',
++++     *   method: 'GET',
++++     * };
++++     *
++++     * const req = https.request(options, (res) => {
++++     *   console.log('statusCode:', res.statusCode);
++++     *   console.log('headers:', res.headers);
++++     *
++++     *   res.on('data', (d) => {
++++     *     process.stdout.write(d);
++++     *   });
++++     * });
++++     *
++++     * req.on('error', (e) => {
++++     *   console.error(e);
++++     * });
++++     * req.end();
++++     * ```
++++     *
++++     * Example using options from `tls.connect()`:
++++     *
++++     * ```js
++++     * const options = {
++++     *   hostname: 'encrypted.google.com',
++++     *   port: 443,
++++     *   path: '/',
++++     *   method: 'GET',
++++     *   key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
++++     *   cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
++++     * };
++++     * options.agent = new https.Agent(options);
++++     *
++++     * const req = https.request(options, (res) => {
++++     *   // ...
++++     * });
++++     * ```
++++     *
++++     * Alternatively, opt out of connection pooling by not using an `Agent`.
++++     *
++++     * ```js
++++     * const options = {
++++     *   hostname: 'encrypted.google.com',
++++     *   port: 443,
++++     *   path: '/',
++++     *   method: 'GET',
++++     *   key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
++++     *   cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
++++     *   agent: false,
++++     * };
++++     *
++++     * const req = https.request(options, (res) => {
++++     *   // ...
++++     * });
++++     * ```
++++     *
++++     * Example using a `URL` as `options`:
++++     *
++++     * ```js
++++     * const options = new URL('https://abc:xyz@example.com');
++++     *
++++     * const req = https.request(options, (res) => {
++++     *   // ...
++++     * });
++++     * ```
++++     *
++++     * Example pinning on certificate fingerprint, or the public key (similar to`pin-sha256`):
++++     *
++++     * ```js
++++     * import tls from 'node:tls';
++++     * import https from 'node:https';
++++     * import crypto from 'node:crypto';
++++     *
++++     * function sha256(s) {
++++     *   return crypto.createHash('sha256').update(s).digest('base64');
++++     * }
++++     * const options = {
++++     *   hostname: 'github.com',
++++     *   port: 443,
++++     *   path: '/',
++++     *   method: 'GET',
++++     *   checkServerIdentity: function(host, cert) {
++++     *     // Make sure the certificate is issued to the host we are connected to
++++     *     const err = tls.checkServerIdentity(host, cert);
++++     *     if (err) {
++++     *       return err;
++++     *     }
++++     *
++++     *     // Pin the public key, similar to HPKP pin-sha256 pinning
++++     *     const pubkey256 = 'pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU=';
++++     *     if (sha256(cert.pubkey) !== pubkey256) {
++++     *       const msg = 'Certificate verification error: ' +
++++     *         `The public key of '${cert.subject.CN}' ` +
++++     *         'does not match our pinned fingerprint';
++++     *       return new Error(msg);
++++     *     }
++++     *
++++     *     // Pin the exact certificate, rather than the pub key
++++     *     const cert256 = '25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:' +
++++     *       'D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16';
++++     *     if (cert.fingerprint256 !== cert256) {
++++     *       const msg = 'Certificate verification error: ' +
++++     *         `The certificate of '${cert.subject.CN}' ` +
++++     *         'does not match our pinned fingerprint';
++++     *       return new Error(msg);
++++     *     }
++++     *
++++     *     // This loop is informational only.
++++     *     // Print the certificate and public key fingerprints of all certs in the
++++     *     // chain. Its common to pin the public key of the issuer on the public
++++     *     // internet, while pinning the public key of the service in sensitive
++++     *     // environments.
++++     *     do {
++++     *       console.log('Subject Common Name:', cert.subject.CN);
++++     *       console.log('  Certificate SHA256 fingerprint:', cert.fingerprint256);
++++     *
++++     *       hash = crypto.createHash('sha256');
++++     *       console.log('  Public key ping-sha256:', sha256(cert.pubkey));
++++     *
++++     *       lastprint256 = cert.fingerprint256;
++++     *       cert = cert.issuerCertificate;
++++     *     } while (cert.fingerprint256 !== lastprint256);
++++     *
++++     *   },
++++     * };
++++     *
++++     * options.agent = new https.Agent(options);
++++     * const req = https.request(options, (res) => {
++++     *   console.log('All OK. Server matched our pinned cert or public key');
++++     *   console.log('statusCode:', res.statusCode);
++++     *   // Print the HPKP values
++++     *   console.log('headers:', res.headers['public-key-pins']);
++++     *
++++     *   res.on('data', (d) => {});
++++     * });
++++     *
++++     * req.on('error', (e) => {
++++     *   console.error(e.message);
++++     * });
++++     * req.end();
++++     * ```
++++     *
++++     * Outputs for example:
++++     *
++++     * ```text
++++     * Subject Common Name: github.com
++++     *   Certificate SHA256 fingerprint: 25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16
++++     *   Public key ping-sha256: pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU=
++++     * Subject Common Name: DigiCert SHA2 Extended Validation Server CA
++++     *   Certificate SHA256 fingerprint: 40:3E:06:2A:26:53:05:91:13:28:5B:AF:80:A0:D4:AE:42:2C:84:8C:9F:78:FA:D0:1F:C9:4B:C5:B8:7F:EF:1A
++++     *   Public key ping-sha256: RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=
++++     * Subject Common Name: DigiCert High Assurance EV Root CA
++++     *   Certificate SHA256 fingerprint: 74:31:E5:F4:C3:C1:CE:46:90:77:4F:0B:61:E0:54:40:88:3B:A9:A0:1E:D0:0B:A6:AB:D7:80:6E:D3:B1:18:CF
++++     *   Public key ping-sha256: WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18=
++++     * All OK. Server matched our pinned cert or public key
++++     * statusCode: 200
++++     * headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=";
++++     * pin-sha256="k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws="; pin-sha256="K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q="; pin-sha256="IQBnNBEiFuhj+8x6X8XLgh01V9Ic5/V3IRQLNFFc7v4=";
++++     * pin-sha256="iie1VXtL7HzAMF+/PVPR9xzT80kQxdZeJ+zduCB3uj0="; pin-sha256="LvRiGEjRqfzurezaWuj8Wie2gyHMrW5Q06LspMnox7A="; includeSubDomains
++++     * ```
++++     * @since v0.3.6
++++     * @param options Accepts all `options` from `request`, with some differences in default values:
++++     */
++++    function request(
++++        options: RequestOptions | string | URL,
++++        callback?: (res: http.IncomingMessage) => void,
++++    ): http.ClientRequest;
++++    function request(
++++        url: string | URL,
++++        options: RequestOptions,
++++        callback?: (res: http.IncomingMessage) => void,
++++    ): http.ClientRequest;
++++    /**
++++     * Like `http.get()` but for HTTPS.
++++     *
++++     * `options` can be an object, a string, or a `URL` object. If `options` is a
++++     * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
++++     *
++++     * ```js
++++     * import https from 'node:https';
++++     *
++++     * https.get('https://encrypted.google.com/', (res) => {
++++     *   console.log('statusCode:', res.statusCode);
++++     *   console.log('headers:', res.headers);
++++     *
++++     *   res.on('data', (d) => {
++++     *     process.stdout.write(d);
++++     *   });
++++     *
++++     * }).on('error', (e) => {
++++     *   console.error(e);
++++     * });
++++     * ```
++++     * @since v0.3.6
++++     * @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`.
++++     */
++++    function get(
++++        options: RequestOptions | string | URL,
++++        callback?: (res: http.IncomingMessage) => void,
++++    ): http.ClientRequest;
++++    function get(
++++        url: string | URL,
++++        options: RequestOptions,
++++        callback?: (res: http.IncomingMessage) => void,
++++    ): http.ClientRequest;
++++    let globalAgent: Agent;
++++}
++++declare module "node:https" {
++++    export * from "https";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..0649eb54150dffc5907104a0ba6195521728a0ad
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,91 @@@@@
++++/**
++++ * License for programmatically and manually incorporated
++++ * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
++++ *
++++ * Copyright Node.js contributors. All rights reserved.
++++ * Permission is hereby granted, free of charge, to any person obtaining a copy
++++ * of this software and associated documentation files (the "Software"), to
++++ * deal in the Software without restriction, including without limitation the
++++ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
++++ * sell copies of the Software, and to permit persons to whom the Software is
++++ * furnished to do so, subject to the following conditions:
++++ *
++++ * The above copyright notice and this permission notice shall be included in
++++ * all copies or substantial portions of the Software.
++++ *
++++ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++++ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++++ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
++++ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
++++ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
++++ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
++++ * IN THE SOFTWARE.
++++ */
++++
++++// NOTE: These definitions support Node.js and TypeScript 5.7+.
++++
++++// Reference required TypeScript libs:
++++/// <reference lib="es2020" />
++++
++++// TypeScript backwards-compatibility definitions:
++++/// <reference path="compatibility/index.d.ts" />
++++
++++// Definitions specific to TypeScript 5.7+:
++++/// <reference path="globals.typedarray.d.ts" />
++++/// <reference path="buffer.buffer.d.ts" />
++++
++++// Definitions for Node.js modules that are not specific to any version of TypeScript:
++++/// <reference path="globals.d.ts" />
++++/// <reference path="assert.d.ts" />
++++/// <reference path="assert/strict.d.ts" />
++++/// <reference path="async_hooks.d.ts" />
++++/// <reference path="buffer.d.ts" />
++++/// <reference path="child_process.d.ts" />
++++/// <reference path="cluster.d.ts" />
++++/// <reference path="console.d.ts" />
++++/// <reference path="constants.d.ts" />
++++/// <reference path="crypto.d.ts" />
++++/// <reference path="dgram.d.ts" />
++++/// <reference path="diagnostics_channel.d.ts" />
++++/// <reference path="dns.d.ts" />
++++/// <reference path="dns/promises.d.ts" />
++++/// <reference path="dns/promises.d.ts" />
++++/// <reference path="domain.d.ts" />
++++/// <reference path="dom-events.d.ts" />
++++/// <reference path="events.d.ts" />
++++/// <reference path="fs.d.ts" />
++++/// <reference path="fs/promises.d.ts" />
++++/// <reference path="http.d.ts" />
++++/// <reference path="http2.d.ts" />
++++/// <reference path="https.d.ts" />
++++/// <reference path="inspector.d.ts" />
++++/// <reference path="module.d.ts" />
++++/// <reference path="net.d.ts" />
++++/// <reference path="os.d.ts" />
++++/// <reference path="path.d.ts" />
++++/// <reference path="perf_hooks.d.ts" />
++++/// <reference path="process.d.ts" />
++++/// <reference path="punycode.d.ts" />
++++/// <reference path="querystring.d.ts" />
++++/// <reference path="readline.d.ts" />
++++/// <reference path="readline/promises.d.ts" />
++++/// <reference path="repl.d.ts" />
++++/// <reference path="sea.d.ts" />
++++/// <reference path="stream.d.ts" />
++++/// <reference path="stream/promises.d.ts" />
++++/// <reference path="stream/consumers.d.ts" />
++++/// <reference path="stream/web.d.ts" />
++++/// <reference path="string_decoder.d.ts" />
++++/// <reference path="test.d.ts" />
++++/// <reference path="timers.d.ts" />
++++/// <reference path="timers/promises.d.ts" />
++++/// <reference path="tls.d.ts" />
++++/// <reference path="trace_events.d.ts" />
++++/// <reference path="tty.d.ts" />
++++/// <reference path="url.d.ts" />
++++/// <reference path="util.d.ts" />
++++/// <reference path="v8.d.ts" />
++++/// <reference path="vm.d.ts" />
++++/// <reference path="wasi.d.ts" />
++++/// <reference path="worker_threads.d.ts" />
++++/// <reference path="zlib.d.ts" />
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..079ab8e009aaa2c89c66763f1899e7ffc196997f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,3696 @@@@@
++++// These definitions are automatically generated by the generate-inspector script.
++++// Do not edit this file directly.
++++// See scripts/generate-inspector/README.md for information on how to update the protocol definitions.
++++// Changes to the module itself should be added to the generator template (scripts/generate-inspector/inspector.d.ts.template).
++++
++++/**
++++ * The `node:inspector` module provides an API for interacting with the V8
++++ * inspector.
++++ * @see [source](https://github.com/nodejs/node/blob/v20.x/lib/inspector.js)
++++ */
++++declare module 'inspector' {
++++    import EventEmitter = require('node:events');
++++
++++    interface InspectorNotification<T> {
++++        method: string;
++++        params: T;
++++    }
++++
++++    namespace Schema {
++++        /**
++++         * Description of the protocol domain.
++++         */
++++        interface Domain {
++++            /**
++++             * Domain name.
++++             */
++++            name: string;
++++            /**
++++             * Domain version.
++++             */
++++            version: string;
++++        }
++++        interface GetDomainsReturnType {
++++            /**
++++             * List of supported domains.
++++             */
++++            domains: Domain[];
++++        }
++++    }
++++    namespace Runtime {
++++        /**
++++         * Unique script identifier.
++++         */
++++        type ScriptId = string;
++++        /**
++++         * Unique object identifier.
++++         */
++++        type RemoteObjectId = string;
++++        /**
++++         * Primitive value which cannot be JSON-stringified.
++++         */
++++        type UnserializableValue = string;
++++        /**
++++         * Mirror object referencing original JavaScript object.
++++         */
++++        interface RemoteObject {
++++            /**
++++             * Object type.
++++             */
++++            type: string;
++++            /**
++++             * Object subtype hint. Specified for <code>object</code> type values only.
++++             */
++++            subtype?: string | undefined;
++++            /**
++++             * Object class (constructor) name. Specified for <code>object</code> type values only.
++++             */
++++            className?: string | undefined;
++++            /**
++++             * Remote object value in case of primitive values or JSON values (if it was requested).
++++             */
++++            value?: any;
++++            /**
++++             * Primitive value which can not be JSON-stringified does not have <code>value</code>, but gets this property.
++++             */
++++            unserializableValue?: UnserializableValue | undefined;
++++            /**
++++             * String representation of the object.
++++             */
++++            description?: string | undefined;
++++            /**
++++             * Unique object identifier (for non-primitive values).
++++             */
++++            objectId?: RemoteObjectId | undefined;
++++            /**
++++             * Preview containing abbreviated property values. Specified for <code>object</code> type values only.
++++             * @experimental
++++             */
++++            preview?: ObjectPreview | undefined;
++++            /**
++++             * @experimental
++++             */
++++            customPreview?: CustomPreview | undefined;
++++        }
++++        /**
++++         * @experimental
++++         */
++++        interface CustomPreview {
++++            header: string;
++++            hasBody: boolean;
++++            formatterObjectId: RemoteObjectId;
++++            bindRemoteObjectFunctionId: RemoteObjectId;
++++            configObjectId?: RemoteObjectId | undefined;
++++        }
++++        /**
++++         * Object containing abbreviated remote object value.
++++         * @experimental
++++         */
++++        interface ObjectPreview {
++++            /**
++++             * Object type.
++++             */
++++            type: string;
++++            /**
++++             * Object subtype hint. Specified for <code>object</code> type values only.
++++             */
++++            subtype?: string | undefined;
++++            /**
++++             * String representation of the object.
++++             */
++++            description?: string | undefined;
++++            /**
++++             * True iff some of the properties or entries of the original object did not fit.
++++             */
++++            overflow: boolean;
++++            /**
++++             * List of the properties.
++++             */
++++            properties: PropertyPreview[];
++++            /**
++++             * List of the entries. Specified for <code>map</code> and <code>set</code> subtype values only.
++++             */
++++            entries?: EntryPreview[] | undefined;
++++        }
++++        /**
++++         * @experimental
++++         */
++++        interface PropertyPreview {
++++            /**
++++             * Property name.
++++             */
++++            name: string;
++++            /**
++++             * Object type. Accessor means that the property itself is an accessor property.
++++             */
++++            type: string;
++++            /**
++++             * User-friendly property value string.
++++             */
++++            value?: string | undefined;
++++            /**
++++             * Nested value preview.
++++             */
++++            valuePreview?: ObjectPreview | undefined;
++++            /**
++++             * Object subtype hint. Specified for <code>object</code> type values only.
++++             */
++++            subtype?: string | undefined;
++++        }
++++        /**
++++         * @experimental
++++         */
++++        interface EntryPreview {
++++            /**
++++             * Preview of the key. Specified for map-like collection entries.
++++             */
++++            key?: ObjectPreview | undefined;
++++            /**
++++             * Preview of the value.
++++             */
++++            value: ObjectPreview;
++++        }
++++        /**
++++         * Object property descriptor.
++++         */
++++        interface PropertyDescriptor {
++++            /**
++++             * Property name or symbol description.
++++             */
++++            name: string;
++++            /**
++++             * The value associated with the property.
++++             */
++++            value?: RemoteObject | undefined;
++++            /**
++++             * True if the value associated with the property may be changed (data descriptors only).
++++             */
++++            writable?: boolean | undefined;
++++            /**
++++             * A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only).
++++             */
++++            get?: RemoteObject | undefined;
++++            /**
++++             * A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only).
++++             */
++++            set?: RemoteObject | undefined;
++++            /**
++++             * True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
++++             */
++++            configurable: boolean;
++++            /**
++++             * True if this property shows up during enumeration of the properties on the corresponding object.
++++             */
++++            enumerable: boolean;
++++            /**
++++             * True if the result was thrown during the evaluation.
++++             */
++++            wasThrown?: boolean | undefined;
++++            /**
++++             * True if the property is owned for the object.
++++             */
++++            isOwn?: boolean | undefined;
++++            /**
++++             * Property symbol object, if the property is of the <code>symbol</code> type.
++++             */
++++            symbol?: RemoteObject | undefined;
++++        }
++++        /**
++++         * Object internal property descriptor. This property isn't normally visible in JavaScript code.
++++         */
++++        interface InternalPropertyDescriptor {
++++            /**
++++             * Conventional property name.
++++             */
++++            name: string;
++++            /**
++++             * The value associated with the property.
++++             */
++++            value?: RemoteObject | undefined;
++++        }
++++        /**
++++         * Represents function call argument. Either remote object id <code>objectId</code>, primitive <code>value</code>, unserializable primitive value or neither of (for undefined) them should be specified.
++++         */
++++        interface CallArgument {
++++            /**
++++             * Primitive value or serializable javascript object.
++++             */
++++            value?: any;
++++            /**
++++             * Primitive value which can not be JSON-stringified.
++++             */
++++            unserializableValue?: UnserializableValue | undefined;
++++            /**
++++             * Remote object handle.
++++             */
++++            objectId?: RemoteObjectId | undefined;
++++        }
++++        /**
++++         * Id of an execution context.
++++         */
++++        type ExecutionContextId = number;
++++        /**
++++         * Description of an isolated world.
++++         */
++++        interface ExecutionContextDescription {
++++            /**
++++             * Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.
++++             */
++++            id: ExecutionContextId;
++++            /**
++++             * Execution context origin.
++++             */
++++            origin: string;
++++            /**
++++             * Human readable name describing given context.
++++             */
++++            name: string;
++++            /**
++++             * Embedder-specific auxiliary data.
++++             */
++++            auxData?: {} | undefined;
++++        }
++++        /**
++++         * Detailed information about exception (or error) that was thrown during script compilation or execution.
++++         */
++++        interface ExceptionDetails {
++++            /**
++++             * Exception id.
++++             */
++++            exceptionId: number;
++++            /**
++++             * Exception text, which should be used together with exception object when available.
++++             */
++++            text: string;
++++            /**
++++             * Line number of the exception location (0-based).
++++             */
++++            lineNumber: number;
++++            /**
++++             * Column number of the exception location (0-based).
++++             */
++++            columnNumber: number;
++++            /**
++++             * Script ID of the exception location.
++++             */
++++            scriptId?: ScriptId | undefined;
++++            /**
++++             * URL of the exception location, to be used when the script was not reported.
++++             */
++++            url?: string | undefined;
++++            /**
++++             * JavaScript stack trace if available.
++++             */
++++            stackTrace?: StackTrace | undefined;
++++            /**
++++             * Exception object if available.
++++             */
++++            exception?: RemoteObject | undefined;
++++            /**
++++             * Identifier of the context where exception happened.
++++             */
++++            executionContextId?: ExecutionContextId | undefined;
++++        }
++++        /**
++++         * Number of milliseconds since epoch.
++++         */
++++        type Timestamp = number;
++++        /**
++++         * Stack entry for runtime errors and assertions.
++++         */
++++        interface CallFrame {
++++            /**
++++             * JavaScript function name.
++++             */
++++            functionName: string;
++++            /**
++++             * JavaScript script id.
++++             */
++++            scriptId: ScriptId;
++++            /**
++++             * JavaScript script name or url.
++++             */
++++            url: string;
++++            /**
++++             * JavaScript script line number (0-based).
++++             */
++++            lineNumber: number;
++++            /**
++++             * JavaScript script column number (0-based).
++++             */
++++            columnNumber: number;
++++        }
++++        /**
++++         * Call frames for assertions or error messages.
++++         */
++++        interface StackTrace {
++++            /**
++++             * String label of this stack trace. For async traces this may be a name of the function that initiated the async call.
++++             */
++++            description?: string | undefined;
++++            /**
++++             * JavaScript function name.
++++             */
++++            callFrames: CallFrame[];
++++            /**
++++             * Asynchronous JavaScript stack trace that preceded this stack, if available.
++++             */
++++            parent?: StackTrace | undefined;
++++            /**
++++             * Asynchronous JavaScript stack trace that preceded this stack, if available.
++++             * @experimental
++++             */
++++            parentId?: StackTraceId | undefined;
++++        }
++++        /**
++++         * Unique identifier of current debugger.
++++         * @experimental
++++         */
++++        type UniqueDebuggerId = string;
++++        /**
++++         * If <code>debuggerId</code> is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See <code>Runtime.StackTrace</code> and <code>Debugger.paused</code> for usages.
++++         * @experimental
++++         */
++++        interface StackTraceId {
++++            id: string;
++++            debuggerId?: UniqueDebuggerId | undefined;
++++        }
++++        interface EvaluateParameterType {
++++            /**
++++             * Expression to evaluate.
++++             */
++++            expression: string;
++++            /**
++++             * Symbolic group name that can be used to release multiple objects.
++++             */
++++            objectGroup?: string | undefined;
++++            /**
++++             * Determines whether Command Line API should be available during the evaluation.
++++             */
++++            includeCommandLineAPI?: boolean | undefined;
++++            /**
++++             * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
++++             */
++++            silent?: boolean | undefined;
++++            /**
++++             * Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
++++             */
++++            contextId?: ExecutionContextId | undefined;
++++            /**
++++             * Whether the result is expected to be a JSON object that should be sent by value.
++++             */
++++            returnByValue?: boolean | undefined;
++++            /**
++++             * Whether preview should be generated for the result.
++++             * @experimental
++++             */
++++            generatePreview?: boolean | undefined;
++++            /**
++++             * Whether execution should be treated as initiated by user in the UI.
++++             */
++++            userGesture?: boolean | undefined;
++++            /**
++++             * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
++++             */
++++            awaitPromise?: boolean | undefined;
++++        }
++++        interface AwaitPromiseParameterType {
++++            /**
++++             * Identifier of the promise.
++++             */
++++            promiseObjectId: RemoteObjectId;
++++            /**
++++             * Whether the result is expected to be a JSON object that should be sent by value.
++++             */
++++            returnByValue?: boolean | undefined;
++++            /**
++++             * Whether preview should be generated for the result.
++++             */
++++            generatePreview?: boolean | undefined;
++++        }
++++        interface CallFunctionOnParameterType {
++++            /**
++++             * Declaration of the function to call.
++++             */
++++            functionDeclaration: string;
++++            /**
++++             * Identifier of the object to call function on. Either objectId or executionContextId should be specified.
++++             */
++++            objectId?: RemoteObjectId | undefined;
++++            /**
++++             * Call arguments. All call arguments must belong to the same JavaScript world as the target object.
++++             */
++++            arguments?: CallArgument[] | undefined;
++++            /**
++++             * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
++++             */
++++            silent?: boolean | undefined;
++++            /**
++++             * Whether the result is expected to be a JSON object which should be sent by value.
++++             */
++++            returnByValue?: boolean | undefined;
++++            /**
++++             * Whether preview should be generated for the result.
++++             * @experimental
++++             */
++++            generatePreview?: boolean | undefined;
++++            /**
++++             * Whether execution should be treated as initiated by user in the UI.
++++             */
++++            userGesture?: boolean | undefined;
++++            /**
++++             * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
++++             */
++++            awaitPromise?: boolean | undefined;
++++            /**
++++             * Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.
++++             */
++++            executionContextId?: ExecutionContextId | undefined;
++++            /**
++++             * Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.
++++             */
++++            objectGroup?: string | undefined;
++++        }
++++        interface GetPropertiesParameterType {
++++            /**
++++             * Identifier of the object to return properties for.
++++             */
++++            objectId: RemoteObjectId;
++++            /**
++++             * If true, returns properties belonging only to the element itself, not to its prototype chain.
++++             */
++++            ownProperties?: boolean | undefined;
++++            /**
++++             * If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.
++++             * @experimental
++++             */
++++            accessorPropertiesOnly?: boolean | undefined;
++++            /**
++++             * Whether preview should be generated for the results.
++++             * @experimental
++++             */
++++            generatePreview?: boolean | undefined;
++++        }
++++        interface ReleaseObjectParameterType {
++++            /**
++++             * Identifier of the object to release.
++++             */
++++            objectId: RemoteObjectId;
++++        }
++++        interface ReleaseObjectGroupParameterType {
++++            /**
++++             * Symbolic object group name.
++++             */
++++            objectGroup: string;
++++        }
++++        interface SetCustomObjectFormatterEnabledParameterType {
++++            enabled: boolean;
++++        }
++++        interface CompileScriptParameterType {
++++            /**
++++             * Expression to compile.
++++             */
++++            expression: string;
++++            /**
++++             * Source url to be set for the script.
++++             */
++++            sourceURL: string;
++++            /**
++++             * Specifies whether the compiled script should be persisted.
++++             */
++++            persistScript: boolean;
++++            /**
++++             * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
++++             */
++++            executionContextId?: ExecutionContextId | undefined;
++++        }
++++        interface RunScriptParameterType {
++++            /**
++++             * Id of the script to run.
++++             */
++++            scriptId: ScriptId;
++++            /**
++++             * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
++++             */
++++            executionContextId?: ExecutionContextId | undefined;
++++            /**
++++             * Symbolic group name that can be used to release multiple objects.
++++             */
++++            objectGroup?: string | undefined;
++++            /**
++++             * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
++++             */
++++            silent?: boolean | undefined;
++++            /**
++++             * Determines whether Command Line API should be available during the evaluation.
++++             */
++++            includeCommandLineAPI?: boolean | undefined;
++++            /**
++++             * Whether the result is expected to be a JSON object which should be sent by value.
++++             */
++++            returnByValue?: boolean | undefined;
++++            /**
++++             * Whether preview should be generated for the result.
++++             */
++++            generatePreview?: boolean | undefined;
++++            /**
++++             * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
++++             */
++++            awaitPromise?: boolean | undefined;
++++        }
++++        interface QueryObjectsParameterType {
++++            /**
++++             * Identifier of the prototype to return objects for.
++++             */
++++            prototypeObjectId: RemoteObjectId;
++++        }
++++        interface GlobalLexicalScopeNamesParameterType {
++++            /**
++++             * Specifies in which execution context to lookup global scope variables.
++++             */
++++            executionContextId?: ExecutionContextId | undefined;
++++        }
++++        interface EvaluateReturnType {
++++            /**
++++             * Evaluation result.
++++             */
++++            result: RemoteObject;
++++            /**
++++             * Exception details.
++++             */
++++            exceptionDetails?: ExceptionDetails | undefined;
++++        }
++++        interface AwaitPromiseReturnType {
++++            /**
++++             * Promise result. Will contain rejected value if promise was rejected.
++++             */
++++            result: RemoteObject;
++++            /**
++++             * Exception details if stack strace is available.
++++             */
++++            exceptionDetails?: ExceptionDetails | undefined;
++++        }
++++        interface CallFunctionOnReturnType {
++++            /**
++++             * Call result.
++++             */
++++            result: RemoteObject;
++++            /**
++++             * Exception details.
++++             */
++++            exceptionDetails?: ExceptionDetails | undefined;
++++        }
++++        interface GetPropertiesReturnType {
++++            /**
++++             * Object properties.
++++             */
++++            result: PropertyDescriptor[];
++++            /**
++++             * Internal object properties (only of the element itself).
++++             */
++++            internalProperties?: InternalPropertyDescriptor[] | undefined;
++++            /**
++++             * Exception details.
++++             */
++++            exceptionDetails?: ExceptionDetails | undefined;
++++        }
++++        interface CompileScriptReturnType {
++++            /**
++++             * Id of the script.
++++             */
++++            scriptId?: ScriptId | undefined;
++++            /**
++++             * Exception details.
++++             */
++++            exceptionDetails?: ExceptionDetails | undefined;
++++        }
++++        interface RunScriptReturnType {
++++            /**
++++             * Run result.
++++             */
++++            result: RemoteObject;
++++            /**
++++             * Exception details.
++++             */
++++            exceptionDetails?: ExceptionDetails | undefined;
++++        }
++++        interface QueryObjectsReturnType {
++++            /**
++++             * Array with objects.
++++             */
++++            objects: RemoteObject;
++++        }
++++        interface GlobalLexicalScopeNamesReturnType {
++++            names: string[];
++++        }
++++        interface ExecutionContextCreatedEventDataType {
++++            /**
++++             * A newly created execution context.
++++             */
++++            context: ExecutionContextDescription;
++++        }
++++        interface ExecutionContextDestroyedEventDataType {
++++            /**
++++             * Id of the destroyed context
++++             */
++++            executionContextId: ExecutionContextId;
++++        }
++++        interface ExceptionThrownEventDataType {
++++            /**
++++             * Timestamp of the exception.
++++             */
++++            timestamp: Timestamp;
++++            exceptionDetails: ExceptionDetails;
++++        }
++++        interface ExceptionRevokedEventDataType {
++++            /**
++++             * Reason describing why exception was revoked.
++++             */
++++            reason: string;
++++            /**
++++             * The id of revoked exception, as reported in <code>exceptionThrown</code>.
++++             */
++++            exceptionId: number;
++++        }
++++        interface ConsoleAPICalledEventDataType {
++++            /**
++++             * Type of the call.
++++             */
++++            type: string;
++++            /**
++++             * Call arguments.
++++             */
++++            args: RemoteObject[];
++++            /**
++++             * Identifier of the context where the call was made.
++++             */
++++            executionContextId: ExecutionContextId;
++++            /**
++++             * Call timestamp.
++++             */
++++            timestamp: Timestamp;
++++            /**
++++             * Stack trace captured when the call was made.
++++             */
++++            stackTrace?: StackTrace | undefined;
++++            /**
++++             * Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.
++++             * @experimental
++++             */
++++            context?: string | undefined;
++++        }
++++        interface InspectRequestedEventDataType {
++++            object: RemoteObject;
++++            hints: {};
++++        }
++++    }
++++    namespace Debugger {
++++        /**
++++         * Breakpoint identifier.
++++         */
++++        type BreakpointId = string;
++++        /**
++++         * Call frame identifier.
++++         */
++++        type CallFrameId = string;
++++        /**
++++         * Location in the source code.
++++         */
++++        interface Location {
++++            /**
++++             * Script identifier as reported in the <code>Debugger.scriptParsed</code>.
++++             */
++++            scriptId: Runtime.ScriptId;
++++            /**
++++             * Line number in the script (0-based).
++++             */
++++            lineNumber: number;
++++            /**
++++             * Column number in the script (0-based).
++++             */
++++            columnNumber?: number | undefined;
++++        }
++++        /**
++++         * Location in the source code.
++++         * @experimental
++++         */
++++        interface ScriptPosition {
++++            lineNumber: number;
++++            columnNumber: number;
++++        }
++++        /**
++++         * JavaScript call frame. Array of call frames form the call stack.
++++         */
++++        interface CallFrame {
++++            /**
++++             * Call frame identifier. This identifier is only valid while the virtual machine is paused.
++++             */
++++            callFrameId: CallFrameId;
++++            /**
++++             * Name of the JavaScript function called on this call frame.
++++             */
++++            functionName: string;
++++            /**
++++             * Location in the source code.
++++             */
++++            functionLocation?: Location | undefined;
++++            /**
++++             * Location in the source code.
++++             */
++++            location: Location;
++++            /**
++++             * JavaScript script name or url.
++++             */
++++            url: string;
++++            /**
++++             * Scope chain for this call frame.
++++             */
++++            scopeChain: Scope[];
++++            /**
++++             * <code>this</code> object for this call frame.
++++             */
++++            this: Runtime.RemoteObject;
++++            /**
++++             * The value being returned, if the function is at return point.
++++             */
++++            returnValue?: Runtime.RemoteObject | undefined;
++++        }
++++        /**
++++         * Scope description.
++++         */
++++        interface Scope {
++++            /**
++++             * Scope type.
++++             */
++++            type: string;
++++            /**
++++             * Object representing the scope. For <code>global</code> and <code>with</code> scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
++++             */
++++            object: Runtime.RemoteObject;
++++            name?: string | undefined;
++++            /**
++++             * Location in the source code where scope starts
++++             */
++++            startLocation?: Location | undefined;
++++            /**
++++             * Location in the source code where scope ends
++++             */
++++            endLocation?: Location | undefined;
++++        }
++++        /**
++++         * Search match for resource.
++++         */
++++        interface SearchMatch {
++++            /**
++++             * Line number in resource content.
++++             */
++++            lineNumber: number;
++++            /**
++++             * Line with match content.
++++             */
++++            lineContent: string;
++++        }
++++        interface BreakLocation {
++++            /**
++++             * Script identifier as reported in the <code>Debugger.scriptParsed</code>.
++++             */
++++            scriptId: Runtime.ScriptId;
++++            /**
++++             * Line number in the script (0-based).
++++             */
++++            lineNumber: number;
++++            /**
++++             * Column number in the script (0-based).
++++             */
++++            columnNumber?: number | undefined;
++++            type?: string | undefined;
++++        }
++++        interface SetBreakpointsActiveParameterType {
++++            /**
++++             * New value for breakpoints active state.
++++             */
++++            active: boolean;
++++        }
++++        interface SetSkipAllPausesParameterType {
++++            /**
++++             * New value for skip pauses state.
++++             */
++++            skip: boolean;
++++        }
++++        interface SetBreakpointByUrlParameterType {
++++            /**
++++             * Line number to set breakpoint at.
++++             */
++++            lineNumber: number;
++++            /**
++++             * URL of the resources to set breakpoint on.
++++             */
++++            url?: string | undefined;
++++            /**
++++             * Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified.
++++             */
++++            urlRegex?: string | undefined;
++++            /**
++++             * Script hash of the resources to set breakpoint on.
++++             */
++++            scriptHash?: string | undefined;
++++            /**
++++             * Offset in the line to set breakpoint at.
++++             */
++++            columnNumber?: number | undefined;
++++            /**
++++             * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
++++             */
++++            condition?: string | undefined;
++++        }
++++        interface SetBreakpointParameterType {
++++            /**
++++             * Location to set breakpoint in.
++++             */
++++            location: Location;
++++            /**
++++             * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
++++             */
++++            condition?: string | undefined;
++++        }
++++        interface RemoveBreakpointParameterType {
++++            breakpointId: BreakpointId;
++++        }
++++        interface GetPossibleBreakpointsParameterType {
++++            /**
++++             * Start of range to search possible breakpoint locations in.
++++             */
++++            start: Location;
++++            /**
++++             * End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range.
++++             */
++++            end?: Location | undefined;
++++            /**
++++             * Only consider locations which are in the same (non-nested) function as start.
++++             */
++++            restrictToFunction?: boolean | undefined;
++++        }
++++        interface ContinueToLocationParameterType {
++++            /**
++++             * Location to continue to.
++++             */
++++            location: Location;
++++            targetCallFrames?: string | undefined;
++++        }
++++        interface PauseOnAsyncCallParameterType {
++++            /**
++++             * Debugger will pause when async call with given stack trace is started.
++++             */
++++            parentStackTraceId: Runtime.StackTraceId;
++++        }
++++        interface StepIntoParameterType {
++++            /**
++++             * Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause.
++++             * @experimental
++++             */
++++            breakOnAsyncCall?: boolean | undefined;
++++        }
++++        interface GetStackTraceParameterType {
++++            stackTraceId: Runtime.StackTraceId;
++++        }
++++        interface SearchInContentParameterType {
++++            /**
++++             * Id of the script to search in.
++++             */
++++            scriptId: Runtime.ScriptId;
++++            /**
++++             * String to search for.
++++             */
++++            query: string;
++++            /**
++++             * If true, search is case sensitive.
++++             */
++++            caseSensitive?: boolean | undefined;
++++            /**
++++             * If true, treats string parameter as regex.
++++             */
++++            isRegex?: boolean | undefined;
++++        }
++++        interface SetScriptSourceParameterType {
++++            /**
++++             * Id of the script to edit.
++++             */
++++            scriptId: Runtime.ScriptId;
++++            /**
++++             * New content of the script.
++++             */
++++            scriptSource: string;
++++            /**
++++             *  If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.
++++             */
++++            dryRun?: boolean | undefined;
++++        }
++++        interface RestartFrameParameterType {
++++            /**
++++             * Call frame identifier to evaluate on.
++++             */
++++            callFrameId: CallFrameId;
++++        }
++++        interface GetScriptSourceParameterType {
++++            /**
++++             * Id of the script to get source for.
++++             */
++++            scriptId: Runtime.ScriptId;
++++        }
++++        interface SetPauseOnExceptionsParameterType {
++++            /**
++++             * Pause on exceptions mode.
++++             */
++++            state: string;
++++        }
++++        interface EvaluateOnCallFrameParameterType {
++++            /**
++++             * Call frame identifier to evaluate on.
++++             */
++++            callFrameId: CallFrameId;
++++            /**
++++             * Expression to evaluate.
++++             */
++++            expression: string;
++++            /**
++++             * String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>).
++++             */
++++            objectGroup?: string | undefined;
++++            /**
++++             * Specifies whether command line API should be available to the evaluated expression, defaults to false.
++++             */
++++            includeCommandLineAPI?: boolean | undefined;
++++            /**
++++             * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
++++             */
++++            silent?: boolean | undefined;
++++            /**
++++             * Whether the result is expected to be a JSON object that should be sent by value.
++++             */
++++            returnByValue?: boolean | undefined;
++++            /**
++++             * Whether preview should be generated for the result.
++++             * @experimental
++++             */
++++            generatePreview?: boolean | undefined;
++++            /**
++++             * Whether to throw an exception if side effect cannot be ruled out during evaluation.
++++             */
++++            throwOnSideEffect?: boolean | undefined;
++++        }
++++        interface SetVariableValueParameterType {
++++            /**
++++             * 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually.
++++             */
++++            scopeNumber: number;
++++            /**
++++             * Variable name.
++++             */
++++            variableName: string;
++++            /**
++++             * New variable value.
++++             */
++++            newValue: Runtime.CallArgument;
++++            /**
++++             * Id of callframe that holds variable.
++++             */
++++            callFrameId: CallFrameId;
++++        }
++++        interface SetReturnValueParameterType {
++++            /**
++++             * New return value.
++++             */
++++            newValue: Runtime.CallArgument;
++++        }
++++        interface SetAsyncCallStackDepthParameterType {
++++            /**
++++             * Maximum depth of async call stacks. Setting to <code>0</code> will effectively disable collecting async call stacks (default).
++++             */
++++            maxDepth: number;
++++        }
++++        interface SetBlackboxPatternsParameterType {
++++            /**
++++             * Array of regexps that will be used to check script url for blackbox state.
++++             */
++++            patterns: string[];
++++        }
++++        interface SetBlackboxedRangesParameterType {
++++            /**
++++             * Id of the script.
++++             */
++++            scriptId: Runtime.ScriptId;
++++            positions: ScriptPosition[];
++++        }
++++        interface EnableReturnType {
++++            /**
++++             * Unique identifier of the debugger.
++++             * @experimental
++++             */
++++            debuggerId: Runtime.UniqueDebuggerId;
++++        }
++++        interface SetBreakpointByUrlReturnType {
++++            /**
++++             * Id of the created breakpoint for further reference.
++++             */
++++            breakpointId: BreakpointId;
++++            /**
++++             * List of the locations this breakpoint resolved into upon addition.
++++             */
++++            locations: Location[];
++++        }
++++        interface SetBreakpointReturnType {
++++            /**
++++             * Id of the created breakpoint for further reference.
++++             */
++++            breakpointId: BreakpointId;
++++            /**
++++             * Location this breakpoint resolved into.
++++             */
++++            actualLocation: Location;
++++        }
++++        interface GetPossibleBreakpointsReturnType {
++++            /**
++++             * List of the possible breakpoint locations.
++++             */
++++            locations: BreakLocation[];
++++        }
++++        interface GetStackTraceReturnType {
++++            stackTrace: Runtime.StackTrace;
++++        }
++++        interface SearchInContentReturnType {
++++            /**
++++             * List of search matches.
++++             */
++++            result: SearchMatch[];
++++        }
++++        interface SetScriptSourceReturnType {
++++            /**
++++             * New stack trace in case editing has happened while VM was stopped.
++++             */
++++            callFrames?: CallFrame[] | undefined;
++++            /**
++++             * Whether current call stack  was modified after applying the changes.
++++             */
++++            stackChanged?: boolean | undefined;
++++            /**
++++             * Async stack trace, if any.
++++             */
++++            asyncStackTrace?: Runtime.StackTrace | undefined;
++++            /**
++++             * Async stack trace, if any.
++++             * @experimental
++++             */
++++            asyncStackTraceId?: Runtime.StackTraceId | undefined;
++++            /**
++++             * Exception details if any.
++++             */
++++            exceptionDetails?: Runtime.ExceptionDetails | undefined;
++++        }
++++        interface RestartFrameReturnType {
++++            /**
++++             * New stack trace.
++++             */
++++            callFrames: CallFrame[];
++++            /**
++++             * Async stack trace, if any.
++++             */
++++            asyncStackTrace?: Runtime.StackTrace | undefined;
++++            /**
++++             * Async stack trace, if any.
++++             * @experimental
++++             */
++++            asyncStackTraceId?: Runtime.StackTraceId | undefined;
++++        }
++++        interface GetScriptSourceReturnType {
++++            /**
++++             * Script source.
++++             */
++++            scriptSource: string;
++++        }
++++        interface EvaluateOnCallFrameReturnType {
++++            /**
++++             * Object wrapper for the evaluation result.
++++             */
++++            result: Runtime.RemoteObject;
++++            /**
++++             * Exception details.
++++             */
++++            exceptionDetails?: Runtime.ExceptionDetails | undefined;
++++        }
++++        interface ScriptParsedEventDataType {
++++            /**
++++             * Identifier of the script parsed.
++++             */
++++            scriptId: Runtime.ScriptId;
++++            /**
++++             * URL or name of the script parsed (if any).
++++             */
++++            url: string;
++++            /**
++++             * Line offset of the script within the resource with given URL (for script tags).
++++             */
++++            startLine: number;
++++            /**
++++             * Column offset of the script within the resource with given URL.
++++             */
++++            startColumn: number;
++++            /**
++++             * Last line of the script.
++++             */
++++            endLine: number;
++++            /**
++++             * Length of the last line of the script.
++++             */
++++            endColumn: number;
++++            /**
++++             * Specifies script creation context.
++++             */
++++            executionContextId: Runtime.ExecutionContextId;
++++            /**
++++             * Content hash of the script.
++++             */
++++            hash: string;
++++            /**
++++             * Embedder-specific auxiliary data.
++++             */
++++            executionContextAuxData?: {} | undefined;
++++            /**
++++             * True, if this script is generated as a result of the live edit operation.
++++             * @experimental
++++             */
++++            isLiveEdit?: boolean | undefined;
++++            /**
++++             * URL of source map associated with script (if any).
++++             */
++++            sourceMapURL?: string | undefined;
++++            /**
++++             * True, if this script has sourceURL.
++++             */
++++            hasSourceURL?: boolean | undefined;
++++            /**
++++             * True, if this script is ES6 module.
++++             */
++++            isModule?: boolean | undefined;
++++            /**
++++             * This script length.
++++             */
++++            length?: number | undefined;
++++            /**
++++             * JavaScript top stack frame of where the script parsed event was triggered if available.
++++             * @experimental
++++             */
++++            stackTrace?: Runtime.StackTrace | undefined;
++++        }
++++        interface ScriptFailedToParseEventDataType {
++++            /**
++++             * Identifier of the script parsed.
++++             */
++++            scriptId: Runtime.ScriptId;
++++            /**
++++             * URL or name of the script parsed (if any).
++++             */
++++            url: string;
++++            /**
++++             * Line offset of the script within the resource with given URL (for script tags).
++++             */
++++            startLine: number;
++++            /**
++++             * Column offset of the script within the resource with given URL.
++++             */
++++            startColumn: number;
++++            /**
++++             * Last line of the script.
++++             */
++++            endLine: number;
++++            /**
++++             * Length of the last line of the script.
++++             */
++++            endColumn: number;
++++            /**
++++             * Specifies script creation context.
++++             */
++++            executionContextId: Runtime.ExecutionContextId;
++++            /**
++++             * Content hash of the script.
++++             */
++++            hash: string;
++++            /**
++++             * Embedder-specific auxiliary data.
++++             */
++++            executionContextAuxData?: {} | undefined;
++++            /**
++++             * URL of source map associated with script (if any).
++++             */
++++            sourceMapURL?: string | undefined;
++++            /**
++++             * True, if this script has sourceURL.
++++             */
++++            hasSourceURL?: boolean | undefined;
++++            /**
++++             * True, if this script is ES6 module.
++++             */
++++            isModule?: boolean | undefined;
++++            /**
++++             * This script length.
++++             */
++++            length?: number | undefined;
++++            /**
++++             * JavaScript top stack frame of where the script parsed event was triggered if available.
++++             * @experimental
++++             */
++++            stackTrace?: Runtime.StackTrace | undefined;
++++        }
++++        interface BreakpointResolvedEventDataType {
++++            /**
++++             * Breakpoint unique identifier.
++++             */
++++            breakpointId: BreakpointId;
++++            /**
++++             * Actual breakpoint location.
++++             */
++++            location: Location;
++++        }
++++        interface PausedEventDataType {
++++            /**
++++             * Call stack the virtual machine stopped on.
++++             */
++++            callFrames: CallFrame[];
++++            /**
++++             * Pause reason.
++++             */
++++            reason: string;
++++            /**
++++             * Object containing break-specific auxiliary properties.
++++             */
++++            data?: {} | undefined;
++++            /**
++++             * Hit breakpoints IDs
++++             */
++++            hitBreakpoints?: string[] | undefined;
++++            /**
++++             * Async stack trace, if any.
++++             */
++++            asyncStackTrace?: Runtime.StackTrace | undefined;
++++            /**
++++             * Async stack trace, if any.
++++             * @experimental
++++             */
++++            asyncStackTraceId?: Runtime.StackTraceId | undefined;
++++            /**
++++             * Just scheduled async call will have this stack trace as parent stack during async execution. This field is available only after <code>Debugger.stepInto</code> call with <code>breakOnAsynCall</code> flag.
++++             * @experimental
++++             */
++++            asyncCallStackTraceId?: Runtime.StackTraceId | undefined;
++++        }
++++    }
++++    namespace Console {
++++        /**
++++         * Console message.
++++         */
++++        interface ConsoleMessage {
++++            /**
++++             * Message source.
++++             */
++++            source: string;
++++            /**
++++             * Message severity.
++++             */
++++            level: string;
++++            /**
++++             * Message text.
++++             */
++++            text: string;
++++            /**
++++             * URL of the message origin.
++++             */
++++            url?: string | undefined;
++++            /**
++++             * Line number in the resource that generated this message (1-based).
++++             */
++++            line?: number | undefined;
++++            /**
++++             * Column number in the resource that generated this message (1-based).
++++             */
++++            column?: number | undefined;
++++        }
++++        interface MessageAddedEventDataType {
++++            /**
++++             * Console message that has been added.
++++             */
++++            message: ConsoleMessage;
++++        }
++++    }
++++    namespace Profiler {
++++        /**
++++         * Profile node. Holds callsite information, execution statistics and child nodes.
++++         */
++++        interface ProfileNode {
++++            /**
++++             * Unique id of the node.
++++             */
++++            id: number;
++++            /**
++++             * Function location.
++++             */
++++            callFrame: Runtime.CallFrame;
++++            /**
++++             * Number of samples where this node was on top of the call stack.
++++             */
++++            hitCount?: number | undefined;
++++            /**
++++             * Child node ids.
++++             */
++++            children?: number[] | undefined;
++++            /**
++++             * The reason of being not optimized. The function may be deoptimized or marked as don't optimize.
++++             */
++++            deoptReason?: string | undefined;
++++            /**
++++             * An array of source position ticks.
++++             */
++++            positionTicks?: PositionTickInfo[] | undefined;
++++        }
++++        /**
++++         * Profile.
++++         */
++++        interface Profile {
++++            /**
++++             * The list of profile nodes. First item is the root node.
++++             */
++++            nodes: ProfileNode[];
++++            /**
++++             * Profiling start timestamp in microseconds.
++++             */
++++            startTime: number;
++++            /**
++++             * Profiling end timestamp in microseconds.
++++             */
++++            endTime: number;
++++            /**
++++             * Ids of samples top nodes.
++++             */
++++            samples?: number[] | undefined;
++++            /**
++++             * Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.
++++             */
++++            timeDeltas?: number[] | undefined;
++++        }
++++        /**
++++         * Specifies a number of samples attributed to a certain source position.
++++         */
++++        interface PositionTickInfo {
++++            /**
++++             * Source line number (1-based).
++++             */
++++            line: number;
++++            /**
++++             * Number of samples attributed to the source line.
++++             */
++++            ticks: number;
++++        }
++++        /**
++++         * Coverage data for a source range.
++++         */
++++        interface CoverageRange {
++++            /**
++++             * JavaScript script source offset for the range start.
++++             */
++++            startOffset: number;
++++            /**
++++             * JavaScript script source offset for the range end.
++++             */
++++            endOffset: number;
++++            /**
++++             * Collected execution count of the source range.
++++             */
++++            count: number;
++++        }
++++        /**
++++         * Coverage data for a JavaScript function.
++++         */
++++        interface FunctionCoverage {
++++            /**
++++             * JavaScript function name.
++++             */
++++            functionName: string;
++++            /**
++++             * Source ranges inside the function with coverage data.
++++             */
++++            ranges: CoverageRange[];
++++            /**
++++             * Whether coverage data for this function has block granularity.
++++             */
++++            isBlockCoverage: boolean;
++++        }
++++        /**
++++         * Coverage data for a JavaScript script.
++++         */
++++        interface ScriptCoverage {
++++            /**
++++             * JavaScript script id.
++++             */
++++            scriptId: Runtime.ScriptId;
++++            /**
++++             * JavaScript script name or url.
++++             */
++++            url: string;
++++            /**
++++             * Functions contained in the script that has coverage data.
++++             */
++++            functions: FunctionCoverage[];
++++        }
++++        interface SetSamplingIntervalParameterType {
++++            /**
++++             * New sampling interval in microseconds.
++++             */
++++            interval: number;
++++        }
++++        interface StartPreciseCoverageParameterType {
++++            /**
++++             * Collect accurate call counts beyond simple 'covered' or 'not covered'.
++++             */
++++            callCount?: boolean | undefined;
++++            /**
++++             * Collect block-based coverage.
++++             */
++++            detailed?: boolean | undefined;
++++        }
++++        interface StopReturnType {
++++            /**
++++             * Recorded profile.
++++             */
++++            profile: Profile;
++++        }
++++        interface TakePreciseCoverageReturnType {
++++            /**
++++             * Coverage data for the current isolate.
++++             */
++++            result: ScriptCoverage[];
++++        }
++++        interface GetBestEffortCoverageReturnType {
++++            /**
++++             * Coverage data for the current isolate.
++++             */
++++            result: ScriptCoverage[];
++++        }
++++        interface ConsoleProfileStartedEventDataType {
++++            id: string;
++++            /**
++++             * Location of console.profile().
++++             */
++++            location: Debugger.Location;
++++            /**
++++             * Profile title passed as an argument to console.profile().
++++             */
++++            title?: string | undefined;
++++        }
++++        interface ConsoleProfileFinishedEventDataType {
++++            id: string;
++++            /**
++++             * Location of console.profileEnd().
++++             */
++++            location: Debugger.Location;
++++            profile: Profile;
++++            /**
++++             * Profile title passed as an argument to console.profile().
++++             */
++++            title?: string | undefined;
++++        }
++++    }
++++    namespace HeapProfiler {
++++        /**
++++         * Heap snapshot object id.
++++         */
++++        type HeapSnapshotObjectId = string;
++++        /**
++++         * Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
++++         */
++++        interface SamplingHeapProfileNode {
++++            /**
++++             * Function location.
++++             */
++++            callFrame: Runtime.CallFrame;
++++            /**
++++             * Allocations size in bytes for the node excluding children.
++++             */
++++            selfSize: number;
++++            /**
++++             * Child nodes.
++++             */
++++            children: SamplingHeapProfileNode[];
++++        }
++++        /**
++++         * Profile.
++++         */
++++        interface SamplingHeapProfile {
++++            head: SamplingHeapProfileNode;
++++        }
++++        interface StartTrackingHeapObjectsParameterType {
++++            trackAllocations?: boolean | undefined;
++++        }
++++        interface StopTrackingHeapObjectsParameterType {
++++            /**
++++             * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.
++++             */
++++            reportProgress?: boolean | undefined;
++++        }
++++        interface TakeHeapSnapshotParameterType {
++++            /**
++++             * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
++++             */
++++            reportProgress?: boolean | undefined;
++++        }
++++        interface GetObjectByHeapObjectIdParameterType {
++++            objectId: HeapSnapshotObjectId;
++++            /**
++++             * Symbolic group name that can be used to release multiple objects.
++++             */
++++            objectGroup?: string | undefined;
++++        }
++++        interface AddInspectedHeapObjectParameterType {
++++            /**
++++             * Heap snapshot object id to be accessible by means of $x command line API.
++++             */
++++            heapObjectId: HeapSnapshotObjectId;
++++        }
++++        interface GetHeapObjectIdParameterType {
++++            /**
++++             * Identifier of the object to get heap object id for.
++++             */
++++            objectId: Runtime.RemoteObjectId;
++++        }
++++        interface StartSamplingParameterType {
++++            /**
++++             * Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.
++++             */
++++            samplingInterval?: number | undefined;
++++        }
++++        interface GetObjectByHeapObjectIdReturnType {
++++            /**
++++             * Evaluation result.
++++             */
++++            result: Runtime.RemoteObject;
++++        }
++++        interface GetHeapObjectIdReturnType {
++++            /**
++++             * Id of the heap snapshot object corresponding to the passed remote object id.
++++             */
++++            heapSnapshotObjectId: HeapSnapshotObjectId;
++++        }
++++        interface StopSamplingReturnType {
++++            /**
++++             * Recorded sampling heap profile.
++++             */
++++            profile: SamplingHeapProfile;
++++        }
++++        interface GetSamplingProfileReturnType {
++++            /**
++++             * Return the sampling profile being collected.
++++             */
++++            profile: SamplingHeapProfile;
++++        }
++++        interface AddHeapSnapshotChunkEventDataType {
++++            chunk: string;
++++        }
++++        interface ReportHeapSnapshotProgressEventDataType {
++++            done: number;
++++            total: number;
++++            finished?: boolean | undefined;
++++        }
++++        interface LastSeenObjectIdEventDataType {
++++            lastSeenObjectId: number;
++++            timestamp: number;
++++        }
++++        interface HeapStatsUpdateEventDataType {
++++            /**
++++             * An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment.
++++             */
++++            statsUpdate: number[];
++++        }
++++    }
++++    namespace NodeTracing {
++++        interface TraceConfig {
++++            /**
++++             * Controls how the trace buffer stores data.
++++             */
++++            recordMode?: string | undefined;
++++            /**
++++             * Included category filters.
++++             */
++++            includedCategories: string[];
++++        }
++++        interface StartParameterType {
++++            traceConfig: TraceConfig;
++++        }
++++        interface GetCategoriesReturnType {
++++            /**
++++             * A list of supported tracing categories.
++++             */
++++            categories: string[];
++++        }
++++        interface DataCollectedEventDataType {
++++            value: Array<{}>;
++++        }
++++    }
++++    namespace NodeWorker {
++++        type WorkerID = string;
++++        /**
++++         * Unique identifier of attached debugging session.
++++         */
++++        type SessionID = string;
++++        interface WorkerInfo {
++++            workerId: WorkerID;
++++            type: string;
++++            title: string;
++++            url: string;
++++        }
++++        interface SendMessageToWorkerParameterType {
++++            message: string;
++++            /**
++++             * Identifier of the session.
++++             */
++++            sessionId: SessionID;
++++        }
++++        interface EnableParameterType {
++++            /**
++++             * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger`
++++             * message to run them.
++++             */
++++            waitForDebuggerOnStart: boolean;
++++        }
++++        interface DetachParameterType {
++++            sessionId: SessionID;
++++        }
++++        interface AttachedToWorkerEventDataType {
++++            /**
++++             * Identifier assigned to the session used to send/receive messages.
++++             */
++++            sessionId: SessionID;
++++            workerInfo: WorkerInfo;
++++            waitingForDebugger: boolean;
++++        }
++++        interface DetachedFromWorkerEventDataType {
++++            /**
++++             * Detached session identifier.
++++             */
++++            sessionId: SessionID;
++++        }
++++        interface ReceivedMessageFromWorkerEventDataType {
++++            /**
++++             * Identifier of a session which sends a message.
++++             */
++++            sessionId: SessionID;
++++            message: string;
++++        }
++++    }
++++    namespace NodeRuntime {
++++        interface NotifyWhenWaitingForDisconnectParameterType {
++++            enabled: boolean;
++++        }
++++    }
++++
++++    /**
++++     * The `inspector.Session` is used for dispatching messages to the V8 inspector
++++     * back-end and receiving message responses and notifications.
++++     */
++++    class Session extends EventEmitter {
++++        /**
++++         * Create a new instance of the inspector.Session class.
++++         * The inspector session needs to be connected through `session.connect()` before the messages can be dispatched to the inspector backend.
++++         */
++++        constructor();
++++
++++        /**
++++         * Connects a session to the inspector back-end.
++++         */
++++        connect(): void;
++++
++++        /**
++++         * Connects a session to the inspector back-end.
++++         * An exception will be thrown if this API was not called on a Worker thread.
++++         * @since v12.11.0
++++         */
++++        connectToMainThread(): void;
++++
++++        /**
++++         * Immediately close the session. All pending message callbacks will be called with an error.
++++         * `session.connect()` will need to be called to be able to send messages again.
++++         * Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints.
++++         */
++++        disconnect(): void;
++++
++++        /**
++++         * Posts a message to the inspector back-end. `callback` will be notified when
++++         * a response is received. `callback` is a function that accepts two optional
++++         * arguments: error and message-specific result.
++++         *
++++         * ```js
++++         * session.post('Runtime.evaluate', { expression: '2 + 2' },
++++         *              (error, { result }) => console.log(result));
++++         * // Output: { type: 'number', value: 4, description: '4' }
++++         * ```
++++         *
++++         * The latest version of the V8 inspector protocol is published on the
++++         * [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/).
++++         *
++++         * Node.js inspector supports all the Chrome DevTools Protocol domains declared
++++         * by V8. Chrome DevTools Protocol domain provides an interface for interacting
++++         * with one of the runtime agents used to inspect the application state and listen
++++         * to the run-time events.
++++         */
++++        post(method: string, callback?: (err: Error | null, params?: object) => void): void;
++++        post(method: string, params?: object, callback?: (err: Error | null, params?: object) => void): void;
++++        /**
++++         * Returns supported domains.
++++         */
++++        post(method: 'Schema.getDomains', callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void;
++++        /**
++++         * Evaluates expression on global object.
++++         */
++++        post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
++++        post(method: 'Runtime.evaluate', callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
++++        /**
++++         * Add handler to promise with given promise object id.
++++         */
++++        post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
++++        post(method: 'Runtime.awaitPromise', callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
++++        /**
++++         * Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
++++         */
++++        post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
++++        post(method: 'Runtime.callFunctionOn', callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
++++        /**
++++         * Returns properties of a given object. Object group of the result is inherited from the target object.
++++         */
++++        post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
++++        post(method: 'Runtime.getProperties', callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
++++        /**
++++         * Releases remote object with given id.
++++         */
++++        post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Runtime.releaseObject', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Releases all remote objects that belong to a given group.
++++         */
++++        post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Runtime.releaseObjectGroup', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Tells inspected instance to run if it was waiting for debugger to attach.
++++         */
++++        post(method: 'Runtime.runIfWaitingForDebugger', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context.
++++         */
++++        post(method: 'Runtime.enable', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Disables reporting of execution contexts creation.
++++         */
++++        post(method: 'Runtime.disable', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Discards collected exceptions and console API calls.
++++         */
++++        post(method: 'Runtime.discardConsoleEntries', callback?: (err: Error | null) => void): void;
++++        /**
++++         * @experimental
++++         */
++++        post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Runtime.setCustomObjectFormatterEnabled', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Compiles expression.
++++         */
++++        post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
++++        post(method: 'Runtime.compileScript', callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
++++        /**
++++         * Runs script with given id in a given context.
++++         */
++++        post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
++++        post(method: 'Runtime.runScript', callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
++++        post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
++++        post(method: 'Runtime.queryObjects', callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
++++        /**
++++         * Returns all let, const and class variables from global scope.
++++         */
++++        post(
++++            method: 'Runtime.globalLexicalScopeNames',
++++            params?: Runtime.GlobalLexicalScopeNamesParameterType,
++++            callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void
++++        ): void;
++++        post(method: 'Runtime.globalLexicalScopeNames', callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void;
++++        /**
++++         * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
++++         */
++++        post(method: 'Debugger.enable', callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void;
++++        /**
++++         * Disables debugger for given page.
++++         */
++++        post(method: 'Debugger.disable', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Activates / deactivates all breakpoints on the page.
++++         */
++++        post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Debugger.setBreakpointsActive', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
++++         */
++++        post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Debugger.setSkipAllPauses', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads.
++++         */
++++        post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
++++        post(method: 'Debugger.setBreakpointByUrl', callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
++++        /**
++++         * Sets JavaScript breakpoint at a given location.
++++         */
++++        post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
++++        post(method: 'Debugger.setBreakpoint', callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
++++        /**
++++         * Removes JavaScript breakpoint.
++++         */
++++        post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Debugger.removeBreakpoint', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
++++         */
++++        post(
++++            method: 'Debugger.getPossibleBreakpoints',
++++            params?: Debugger.GetPossibleBreakpointsParameterType,
++++            callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void
++++        ): void;
++++        post(method: 'Debugger.getPossibleBreakpoints', callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void;
++++        /**
++++         * Continues execution until specific location is reached.
++++         */
++++        post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Debugger.continueToLocation', callback?: (err: Error | null) => void): void;
++++        /**
++++         * @experimental
++++         */
++++        post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Debugger.pauseOnAsyncCall', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Steps over the statement.
++++         */
++++        post(method: 'Debugger.stepOver', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Steps into the function call.
++++         */
++++        post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Debugger.stepInto', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Steps out of the function call.
++++         */
++++        post(method: 'Debugger.stepOut', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Stops on the next JavaScript statement.
++++         */
++++        post(method: 'Debugger.pause', callback?: (err: Error | null) => void): void;
++++        /**
++++         * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called.
++++         * @experimental
++++         */
++++        post(method: 'Debugger.scheduleStepIntoAsync', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Resumes JavaScript execution.
++++         */
++++        post(method: 'Debugger.resume', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Returns stack trace with given <code>stackTraceId</code>.
++++         * @experimental
++++         */
++++        post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
++++        post(method: 'Debugger.getStackTrace', callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
++++        /**
++++         * Searches for given string in script content.
++++         */
++++        post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
++++        post(method: 'Debugger.searchInContent', callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
++++        /**
++++         * Edits JavaScript source live.
++++         */
++++        post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
++++        post(method: 'Debugger.setScriptSource', callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
++++        /**
++++         * Restarts particular call frame from the beginning.
++++         */
++++        post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
++++        post(method: 'Debugger.restartFrame', callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
++++        /**
++++         * Returns source for the script with given id.
++++         */
++++        post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
++++        post(method: 'Debugger.getScriptSource', callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
++++        /**
++++         * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>.
++++         */
++++        post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Debugger.setPauseOnExceptions', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Evaluates expression on a given call frame.
++++         */
++++        post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
++++        post(method: 'Debugger.evaluateOnCallFrame', callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
++++        /**
++++         * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
++++         */
++++        post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Debugger.setVariableValue', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Changes return value in top frame. Available only at return break position.
++++         * @experimental
++++         */
++++        post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Debugger.setReturnValue', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Enables or disables async call stacks tracking.
++++         */
++++        post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Debugger.setAsyncCallStackDepth', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
++++         * @experimental
++++         */
++++        post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Debugger.setBlackboxPatterns', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted.
++++         * @experimental
++++         */
++++        post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Debugger.setBlackboxedRanges', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification.
++++         */
++++        post(method: 'Console.enable', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Disables console domain, prevents further console messages from being reported to the client.
++++         */
++++        post(method: 'Console.disable', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Does nothing.
++++         */
++++        post(method: 'Console.clearMessages', callback?: (err: Error | null) => void): void;
++++        post(method: 'Profiler.enable', callback?: (err: Error | null) => void): void;
++++        post(method: 'Profiler.disable', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
++++         */
++++        post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Profiler.setSamplingInterval', callback?: (err: Error | null) => void): void;
++++        post(method: 'Profiler.start', callback?: (err: Error | null) => void): void;
++++        post(method: 'Profiler.stop', callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void;
++++        /**
++++         * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.
++++         */
++++        post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'Profiler.startPreciseCoverage', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
++++         */
++++        post(method: 'Profiler.stopPreciseCoverage', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
++++         */
++++        post(method: 'Profiler.takePreciseCoverage', callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void;
++++        /**
++++         * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
++++         */
++++        post(method: 'Profiler.getBestEffortCoverage', callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void;
++++        post(method: 'HeapProfiler.enable', callback?: (err: Error | null) => void): void;
++++        post(method: 'HeapProfiler.disable', callback?: (err: Error | null) => void): void;
++++        post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'HeapProfiler.startTrackingHeapObjects', callback?: (err: Error | null) => void): void;
++++        post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'HeapProfiler.stopTrackingHeapObjects', callback?: (err: Error | null) => void): void;
++++        post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'HeapProfiler.takeHeapSnapshot', callback?: (err: Error | null) => void): void;
++++        post(method: 'HeapProfiler.collectGarbage', callback?: (err: Error | null) => void): void;
++++        post(
++++            method: 'HeapProfiler.getObjectByHeapObjectId',
++++            params?: HeapProfiler.GetObjectByHeapObjectIdParameterType,
++++            callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void
++++        ): void;
++++        post(method: 'HeapProfiler.getObjectByHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void;
++++        /**
++++         * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
++++         */
++++        post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'HeapProfiler.addInspectedHeapObject', callback?: (err: Error | null) => void): void;
++++        post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
++++        post(method: 'HeapProfiler.getHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
++++        post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'HeapProfiler.startSampling', callback?: (err: Error | null) => void): void;
++++        post(method: 'HeapProfiler.stopSampling', callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
++++        post(method: 'HeapProfiler.getSamplingProfile', callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
++++        /**
++++         * Gets supported tracing categories.
++++         */
++++        post(method: 'NodeTracing.getCategories', callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
++++        /**
++++         * Start trace events collection.
++++         */
++++        post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'NodeTracing.start', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Stop trace events collection. Remaining collected events will be sent as a sequence of
++++         * dataCollected events followed by tracingComplete event.
++++         */
++++        post(method: 'NodeTracing.stop', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Sends protocol message over session with given id.
++++         */
++++        post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'NodeWorker.sendMessageToWorker', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Instructs the inspector to attach to running workers. Will also attach to new workers
++++         * as they start
++++         */
++++        post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'NodeWorker.enable', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Detaches from all running workers and disables attaching to new workers as they are started.
++++         */
++++        post(method: 'NodeWorker.disable', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Detached from the worker with given sessionId.
++++         */
++++        post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'NodeWorker.detach', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`.
++++         */
++++        post(method: 'NodeRuntime.enable', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Disable NodeRuntime events
++++         */
++++        post(method: 'NodeRuntime.disable', callback?: (err: Error | null) => void): void;
++++        /**
++++         * Enable the `NodeRuntime.waitingForDisconnect`.
++++         */
++++        post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void;
++++        post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', callback?: (err: Error | null) => void): void;
++++
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        /**
++++         * Emitted when any notification from the V8 Inspector is received.
++++         */
++++        addListener(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
++++        /**
++++         * Issued when new execution context is created.
++++         */
++++        addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
++++        /**
++++         * Issued when execution context is destroyed.
++++         */
++++        addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
++++        /**
++++         * Issued when all executionContexts were cleared in browser
++++         */
++++        addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
++++        /**
++++         * Issued when exception was thrown and unhandled.
++++         */
++++        addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
++++        /**
++++         * Issued when unhandled exception was revoked.
++++         */
++++        addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
++++        /**
++++         * Issued when console API was called.
++++         */
++++        addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
++++        /**
++++         * Issued when object should be inspected (for example, as a result of inspect() command line API call).
++++         */
++++        addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
++++         */
++++        addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine fails to parse the script.
++++         */
++++        addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
++++        /**
++++         * Fired when breakpoint is resolved to an actual script and location.
++++         */
++++        addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
++++         */
++++        addListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine resumed execution.
++++         */
++++        addListener(event: 'Debugger.resumed', listener: () => void): this;
++++        /**
++++         * Issued when new console message is added.
++++         */
++++        addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
++++        /**
++++         * Sent when new profile recording is started using console.profile() call.
++++         */
++++        addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
++++        addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
++++        addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
++++        addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
++++        addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
++++         */
++++        addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend may send update for one or more fragments
++++         */
++++        addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
++++        /**
++++         * Contains an bucket of collected trace events.
++++         */
++++        addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
++++        /**
++++         * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
++++         * delivered via dataCollected events.
++++         */
++++        addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
++++        /**
++++         * Issued when attached to a worker.
++++         */
++++        addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
++++        /**
++++         * Issued when detached from the worker.
++++         */
++++        addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
++++        /**
++++         * Notifies about a new protocol message received from the session
++++         * (session ID is provided in attachedToWorker notification).
++++         */
++++        addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
++++        /**
++++         * This event is fired instead of `Runtime.executionContextDestroyed` when
++++         * enabled.
++++         * It is fired when the Node process finished all code execution and is
++++         * waiting for all frontends to disconnect.
++++         */
++++        addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
++++        /**
++++         * This event is fired when the runtime is waiting for the debugger. For
++++         * example, when inspector.waitingForDebugger is called
++++         */
++++        addListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        emit(event: 'inspectorNotification', message: InspectorNotification<object>): boolean;
++++        emit(event: 'Runtime.executionContextCreated', message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
++++        emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
++++        emit(event: 'Runtime.executionContextsCleared'): boolean;
++++        emit(event: 'Runtime.exceptionThrown', message: InspectorNotification<Runtime.ExceptionThrownEventDataType>): boolean;
++++        emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>): boolean;
++++        emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>): boolean;
++++        emit(event: 'Runtime.inspectRequested', message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
++++        emit(event: 'Debugger.scriptParsed', message: InspectorNotification<Debugger.ScriptParsedEventDataType>): boolean;
++++        emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>): boolean;
++++        emit(event: 'Debugger.breakpointResolved', message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>): boolean;
++++        emit(event: 'Debugger.paused', message: InspectorNotification<Debugger.PausedEventDataType>): boolean;
++++        emit(event: 'Debugger.resumed'): boolean;
++++        emit(event: 'Console.messageAdded', message: InspectorNotification<Console.MessageAddedEventDataType>): boolean;
++++        emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>): boolean;
++++        emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>): boolean;
++++        emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>): boolean;
++++        emit(event: 'HeapProfiler.resetProfiles'): boolean;
++++        emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
++++        emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
++++        emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
++++        emit(event: 'NodeTracing.dataCollected', message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
++++        emit(event: 'NodeTracing.tracingComplete'): boolean;
++++        emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
++++        emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
++++        emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
++++        emit(event: 'NodeRuntime.waitingForDisconnect'): boolean;
++++        emit(event: 'NodeRuntime.waitingForDebugger'): boolean;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        /**
++++         * Emitted when any notification from the V8 Inspector is received.
++++         */
++++        on(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
++++        /**
++++         * Issued when new execution context is created.
++++         */
++++        on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
++++        /**
++++         * Issued when execution context is destroyed.
++++         */
++++        on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
++++        /**
++++         * Issued when all executionContexts were cleared in browser
++++         */
++++        on(event: 'Runtime.executionContextsCleared', listener: () => void): this;
++++        /**
++++         * Issued when exception was thrown and unhandled.
++++         */
++++        on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
++++        /**
++++         * Issued when unhandled exception was revoked.
++++         */
++++        on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
++++        /**
++++         * Issued when console API was called.
++++         */
++++        on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
++++        /**
++++         * Issued when object should be inspected (for example, as a result of inspect() command line API call).
++++         */
++++        on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
++++         */
++++        on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine fails to parse the script.
++++         */
++++        on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
++++        /**
++++         * Fired when breakpoint is resolved to an actual script and location.
++++         */
++++        on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
++++         */
++++        on(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine resumed execution.
++++         */
++++        on(event: 'Debugger.resumed', listener: () => void): this;
++++        /**
++++         * Issued when new console message is added.
++++         */
++++        on(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
++++        /**
++++         * Sent when new profile recording is started using console.profile() call.
++++         */
++++        on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
++++        on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
++++        on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
++++        on(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
++++        on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
++++         */
++++        on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend may send update for one or more fragments
++++         */
++++        on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
++++        /**
++++         * Contains an bucket of collected trace events.
++++         */
++++        on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
++++        /**
++++         * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
++++         * delivered via dataCollected events.
++++         */
++++        on(event: 'NodeTracing.tracingComplete', listener: () => void): this;
++++        /**
++++         * Issued when attached to a worker.
++++         */
++++        on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
++++        /**
++++         * Issued when detached from the worker.
++++         */
++++        on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
++++        /**
++++         * Notifies about a new protocol message received from the session
++++         * (session ID is provided in attachedToWorker notification).
++++         */
++++        on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
++++        /**
++++         * This event is fired instead of `Runtime.executionContextDestroyed` when
++++         * enabled.
++++         * It is fired when the Node process finished all code execution and is
++++         * waiting for all frontends to disconnect.
++++         */
++++        on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
++++        /**
++++         * This event is fired when the runtime is waiting for the debugger. For
++++         * example, when inspector.waitingForDebugger is called
++++         */
++++        on(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        /**
++++         * Emitted when any notification from the V8 Inspector is received.
++++         */
++++        once(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
++++        /**
++++         * Issued when new execution context is created.
++++         */
++++        once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
++++        /**
++++         * Issued when execution context is destroyed.
++++         */
++++        once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
++++        /**
++++         * Issued when all executionContexts were cleared in browser
++++         */
++++        once(event: 'Runtime.executionContextsCleared', listener: () => void): this;
++++        /**
++++         * Issued when exception was thrown and unhandled.
++++         */
++++        once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
++++        /**
++++         * Issued when unhandled exception was revoked.
++++         */
++++        once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
++++        /**
++++         * Issued when console API was called.
++++         */
++++        once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
++++        /**
++++         * Issued when object should be inspected (for example, as a result of inspect() command line API call).
++++         */
++++        once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
++++         */
++++        once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine fails to parse the script.
++++         */
++++        once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
++++        /**
++++         * Fired when breakpoint is resolved to an actual script and location.
++++         */
++++        once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
++++         */
++++        once(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine resumed execution.
++++         */
++++        once(event: 'Debugger.resumed', listener: () => void): this;
++++        /**
++++         * Issued when new console message is added.
++++         */
++++        once(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
++++        /**
++++         * Sent when new profile recording is started using console.profile() call.
++++         */
++++        once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
++++        once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
++++        once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
++++        once(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
++++        once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
++++         */
++++        once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend may send update for one or more fragments
++++         */
++++        once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
++++        /**
++++         * Contains an bucket of collected trace events.
++++         */
++++        once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
++++        /**
++++         * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
++++         * delivered via dataCollected events.
++++         */
++++        once(event: 'NodeTracing.tracingComplete', listener: () => void): this;
++++        /**
++++         * Issued when attached to a worker.
++++         */
++++        once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
++++        /**
++++         * Issued when detached from the worker.
++++         */
++++        once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
++++        /**
++++         * Notifies about a new protocol message received from the session
++++         * (session ID is provided in attachedToWorker notification).
++++         */
++++        once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
++++        /**
++++         * This event is fired instead of `Runtime.executionContextDestroyed` when
++++         * enabled.
++++         * It is fired when the Node process finished all code execution and is
++++         * waiting for all frontends to disconnect.
++++         */
++++        once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
++++        /**
++++         * This event is fired when the runtime is waiting for the debugger. For
++++         * example, when inspector.waitingForDebugger is called
++++         */
++++        once(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        /**
++++         * Emitted when any notification from the V8 Inspector is received.
++++         */
++++        prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
++++        /**
++++         * Issued when new execution context is created.
++++         */
++++        prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
++++        /**
++++         * Issued when execution context is destroyed.
++++         */
++++        prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
++++        /**
++++         * Issued when all executionContexts were cleared in browser
++++         */
++++        prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
++++        /**
++++         * Issued when exception was thrown and unhandled.
++++         */
++++        prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
++++        /**
++++         * Issued when unhandled exception was revoked.
++++         */
++++        prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
++++        /**
++++         * Issued when console API was called.
++++         */
++++        prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
++++        /**
++++         * Issued when object should be inspected (for example, as a result of inspect() command line API call).
++++         */
++++        prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
++++         */
++++        prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine fails to parse the script.
++++         */
++++        prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
++++        /**
++++         * Fired when breakpoint is resolved to an actual script and location.
++++         */
++++        prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
++++         */
++++        prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine resumed execution.
++++         */
++++        prependListener(event: 'Debugger.resumed', listener: () => void): this;
++++        /**
++++         * Issued when new console message is added.
++++         */
++++        prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
++++        /**
++++         * Sent when new profile recording is started using console.profile() call.
++++         */
++++        prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
++++        prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
++++        prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
++++        prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
++++        prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
++++         */
++++        prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend may send update for one or more fragments
++++         */
++++        prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
++++        /**
++++         * Contains an bucket of collected trace events.
++++         */
++++        prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
++++        /**
++++         * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
++++         * delivered via dataCollected events.
++++         */
++++        prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
++++        /**
++++         * Issued when attached to a worker.
++++         */
++++        prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
++++        /**
++++         * Issued when detached from the worker.
++++         */
++++        prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
++++        /**
++++         * Notifies about a new protocol message received from the session
++++         * (session ID is provided in attachedToWorker notification).
++++         */
++++        prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
++++        /**
++++         * This event is fired instead of `Runtime.executionContextDestroyed` when
++++         * enabled.
++++         * It is fired when the Node process finished all code execution and is
++++         * waiting for all frontends to disconnect.
++++         */
++++        prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
++++        /**
++++         * This event is fired when the runtime is waiting for the debugger. For
++++         * example, when inspector.waitingForDebugger is called
++++         */
++++        prependListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++        /**
++++         * Emitted when any notification from the V8 Inspector is received.
++++         */
++++        prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
++++        /**
++++         * Issued when new execution context is created.
++++         */
++++        prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
++++        /**
++++         * Issued when execution context is destroyed.
++++         */
++++        prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
++++        /**
++++         * Issued when all executionContexts were cleared in browser
++++         */
++++        prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
++++        /**
++++         * Issued when exception was thrown and unhandled.
++++         */
++++        prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
++++        /**
++++         * Issued when unhandled exception was revoked.
++++         */
++++        prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
++++        /**
++++         * Issued when console API was called.
++++         */
++++        prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
++++        /**
++++         * Issued when object should be inspected (for example, as a result of inspect() command line API call).
++++         */
++++        prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
++++         */
++++        prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine fails to parse the script.
++++         */
++++        prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
++++        /**
++++         * Fired when breakpoint is resolved to an actual script and location.
++++         */
++++        prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
++++         */
++++        prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine resumed execution.
++++         */
++++        prependOnceListener(event: 'Debugger.resumed', listener: () => void): this;
++++        /**
++++         * Issued when new console message is added.
++++         */
++++        prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
++++        /**
++++         * Sent when new profile recording is started using console.profile() call.
++++         */
++++        prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
++++        prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
++++        prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
++++        prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
++++        prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
++++         */
++++        prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend may send update for one or more fragments
++++         */
++++        prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
++++        /**
++++         * Contains an bucket of collected trace events.
++++         */
++++        prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
++++        /**
++++         * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
++++         * delivered via dataCollected events.
++++         */
++++        prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
++++        /**
++++         * Issued when attached to a worker.
++++         */
++++        prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
++++        /**
++++         * Issued when detached from the worker.
++++         */
++++        prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
++++        /**
++++         * Notifies about a new protocol message received from the session
++++         * (session ID is provided in attachedToWorker notification).
++++         */
++++        prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
++++        /**
++++         * This event is fired instead of `Runtime.executionContextDestroyed` when
++++         * enabled.
++++         * It is fired when the Node process finished all code execution and is
++++         * waiting for all frontends to disconnect.
++++         */
++++        prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
++++        /**
++++         * This event is fired when the runtime is waiting for the debugger. For
++++         * example, when inspector.waitingForDebugger is called
++++         */
++++        prependOnceListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
++++    }
++++
++++    /**
++++     * Activate inspector on host and port. Equivalent to `node --inspect=[[host:]port]`, but can be done programmatically after node has
++++     * started.
++++     *
++++     * If wait is `true`, will block until a client has connected to the inspect port
++++     * and flow control has been passed to the debugger client.
++++     *
++++     * See the [security warning](https://nodejs.org/docs/latest-v20.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure)
++++     * regarding the `host` parameter usage.
++++     * @param port Port to listen on for inspector connections. Defaults to what was specified on the CLI.
++++     * @param host Host to listen on for inspector connections. Defaults to what was specified on the CLI.
++++     * @param wait Block until a client has connected. Defaults to what was specified on the CLI.
++++     * @returns Disposable that calls `inspector.close()`.
++++     */
++++    function open(port?: number, host?: string, wait?: boolean): Disposable;
++++
++++    /**
++++     * Deactivate the inspector. Blocks until there are no active connections.
++++     */
++++    function close(): void;
++++
++++    /**
++++     * Return the URL of the active inspector, or `undefined` if there is none.
++++     *
++++     * ```console
++++     * $ node --inspect -p 'inspector.url()'
++++     * Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
++++     * For help, see: https://nodejs.org/en/docs/inspector
++++     * ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
++++     *
++++     * $ node --inspect=localhost:3000 -p 'inspector.url()'
++++     * Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
++++     * For help, see: https://nodejs.org/en/docs/inspector
++++     * ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
++++     *
++++     * $ node -p 'inspector.url()'
++++     * undefined
++++     * ```
++++     */
++++    function url(): string | undefined;
++++
++++    /**
++++     * Blocks until a client (existing or connected later) has sent `Runtime.runIfWaitingForDebugger` command.
++++     *
++++     * An exception will be thrown if there is no active inspector.
++++     * @since v12.7.0
++++     */
++++    function waitForDebugger(): void;
++++
++++    // These methods are exposed by the V8 inspector console API (inspector/v8-console.h).
++++    // The method signatures differ from those of the Node.js console, and are deliberately
++++    // typed permissively.
++++    interface InspectorConsole {
++++        debug(...data: any[]): void;
++++        error(...data: any[]): void;
++++        info(...data: any[]): void;
++++        log(...data: any[]): void;
++++        warn(...data: any[]): void;
++++        dir(...data: any[]): void;
++++        dirxml(...data: any[]): void;
++++        table(...data: any[]): void;
++++        trace(...data: any[]): void;
++++        group(...data: any[]): void;
++++        groupCollapsed(...data: any[]): void;
++++        groupEnd(...data: any[]): void;
++++        clear(...data: any[]): void;
++++        count(label?: any): void;
++++        countReset(label?: any): void;
++++        assert(value?: any, ...data: any[]): void;
++++        profile(label?: any): void;
++++        profileEnd(label?: any): void;
++++        time(label?: any): void;
++++        timeLog(label?: any): void;
++++        timeStamp(label?: any): void;
++++    }
++++
++++    /**
++++     * An object to send messages to the remote inspector console.
++++     * @since v11.0.0
++++     */
++++    const console: InspectorConsole;
++++}
++++
++++/**
++++ * The `node:inspector` module provides an API for interacting with the V8
++++ * inspector.
++++ */
++++declare module 'node:inspector' {
++++    export * from 'inspector';
++++}
++++
++++/**
++++ * The `node:inspector/promises` module provides an API for interacting with the V8
++++ * inspector.
++++ * @see [source](https://github.com/nodejs/node/blob/v20.x/lib/inspector/promises.js)
++++ * @since v19.0.0
++++ */
++++declare module 'inspector/promises' {
++++    import EventEmitter = require('node:events');
++++    import {
++++        open,
++++        close,
++++        url,
++++        waitForDebugger,
++++        console,
++++        InspectorNotification,
++++        Schema,
++++        Runtime,
++++        Debugger,
++++        Console,
++++        Profiler,
++++        HeapProfiler,
++++        NodeTracing,
++++        NodeWorker,
++++        NodeRuntime,
++++    } from 'inspector';
++++
++++    /**
++++     * The `inspector.Session` is used for dispatching messages to the V8 inspector
++++     * back-end and receiving message responses and notifications.
++++     * @since v19.0.0
++++     */
++++    class Session extends EventEmitter {
++++        /**
++++         * Create a new instance of the `inspector.Session` class.
++++         * The inspector session needs to be connected through `session.connect()` before the messages can be dispatched to the inspector backend.
++++         */
++++        constructor();
++++
++++        /**
++++         * Connects a session to the inspector back-end.
++++         */
++++        connect(): void;
++++
++++        /**
++++         * Connects a session to the inspector back-end.
++++         * An exception will be thrown if this API was not called on a Worker thread.
++++         */
++++        connectToMainThread(): void;
++++
++++        /**
++++         * Immediately close the session. All pending message callbacks will be called with an error.
++++         * `session.connect()` will need to be called to be able to send messages again.
++++         * Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints.
++++         */
++++        disconnect(): void;
++++
++++        /**
++++         * Posts a message to the inspector back-end.
++++         *
++++         * ```js
++++         * import { Session } from 'node:inspector/promises';
++++         * try {
++++         *   const session = new Session();
++++         *   session.connect();
++++         *   const result = await session.post('Runtime.evaluate', { expression: '2 + 2' });
++++         *   console.log(result);
++++         * } catch (error) {
++++         *   console.error(error);
++++         * }
++++         * // Output: { result: { type: 'number', value: 4, description: '4' } }
++++         * ```
++++         *
++++         * The latest version of the V8 inspector protocol is published on the
++++         * [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/).
++++         *
++++         * Node.js inspector supports all the Chrome DevTools Protocol domains declared
++++         * by V8. Chrome DevTools Protocol domain provides an interface for interacting
++++         * with one of the runtime agents used to inspect the application state and listen
++++         * to the run-time events.
++++         */
++++        post(method: string, params?: object): Promise<void>;
++++        /**
++++         * Returns supported domains.
++++         */
++++        post(method: 'Schema.getDomains'): Promise<Schema.GetDomainsReturnType>;
++++        /**
++++         * Evaluates expression on global object.
++++         */
++++        post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType): Promise<Runtime.EvaluateReturnType>;
++++        /**
++++         * Add handler to promise with given promise object id.
++++         */
++++        post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType): Promise<Runtime.AwaitPromiseReturnType>;
++++        /**
++++         * Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
++++         */
++++        post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType): Promise<Runtime.CallFunctionOnReturnType>;
++++        /**
++++         * Returns properties of a given object. Object group of the result is inherited from the target object.
++++         */
++++        post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType): Promise<Runtime.GetPropertiesReturnType>;
++++        /**
++++         * Releases remote object with given id.
++++         */
++++        post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType): Promise<void>;
++++        /**
++++         * Releases all remote objects that belong to a given group.
++++         */
++++        post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType): Promise<void>;
++++        /**
++++         * Tells inspected instance to run if it was waiting for debugger to attach.
++++         */
++++        post(method: 'Runtime.runIfWaitingForDebugger'): Promise<void>;
++++        /**
++++         * Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context.
++++         */
++++        post(method: 'Runtime.enable'): Promise<void>;
++++        /**
++++         * Disables reporting of execution contexts creation.
++++         */
++++        post(method: 'Runtime.disable'): Promise<void>;
++++        /**
++++         * Discards collected exceptions and console API calls.
++++         */
++++        post(method: 'Runtime.discardConsoleEntries'): Promise<void>;
++++        /**
++++         * @experimental
++++         */
++++        post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType): Promise<void>;
++++        /**
++++         * Compiles expression.
++++         */
++++        post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType): Promise<Runtime.CompileScriptReturnType>;
++++        /**
++++         * Runs script with given id in a given context.
++++         */
++++        post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType): Promise<Runtime.RunScriptReturnType>;
++++        post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType): Promise<Runtime.QueryObjectsReturnType>;
++++        /**
++++         * Returns all let, const and class variables from global scope.
++++         */
++++        post(method: 'Runtime.globalLexicalScopeNames', params?: Runtime.GlobalLexicalScopeNamesParameterType): Promise<Runtime.GlobalLexicalScopeNamesReturnType>;
++++        /**
++++         * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
++++         */
++++        post(method: 'Debugger.enable'): Promise<Debugger.EnableReturnType>;
++++        /**
++++         * Disables debugger for given page.
++++         */
++++        post(method: 'Debugger.disable'): Promise<void>;
++++        /**
++++         * Activates / deactivates all breakpoints on the page.
++++         */
++++        post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType): Promise<void>;
++++        /**
++++         * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
++++         */
++++        post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType): Promise<void>;
++++        /**
++++         * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads.
++++         */
++++        post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType): Promise<Debugger.SetBreakpointByUrlReturnType>;
++++        /**
++++         * Sets JavaScript breakpoint at a given location.
++++         */
++++        post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType): Promise<Debugger.SetBreakpointReturnType>;
++++        /**
++++         * Removes JavaScript breakpoint.
++++         */
++++        post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType): Promise<void>;
++++        /**
++++         * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
++++         */
++++        post(method: 'Debugger.getPossibleBreakpoints', params?: Debugger.GetPossibleBreakpointsParameterType): Promise<Debugger.GetPossibleBreakpointsReturnType>;
++++        /**
++++         * Continues execution until specific location is reached.
++++         */
++++        post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType): Promise<void>;
++++        /**
++++         * @experimental
++++         */
++++        post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType): Promise<void>;
++++        /**
++++         * Steps over the statement.
++++         */
++++        post(method: 'Debugger.stepOver'): Promise<void>;
++++        /**
++++         * Steps into the function call.
++++         */
++++        post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType): Promise<void>;
++++        /**
++++         * Steps out of the function call.
++++         */
++++        post(method: 'Debugger.stepOut'): Promise<void>;
++++        /**
++++         * Stops on the next JavaScript statement.
++++         */
++++        post(method: 'Debugger.pause'): Promise<void>;
++++        /**
++++         * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called.
++++         * @experimental
++++         */
++++        post(method: 'Debugger.scheduleStepIntoAsync'): Promise<void>;
++++        /**
++++         * Resumes JavaScript execution.
++++         */
++++        post(method: 'Debugger.resume'): Promise<void>;
++++        /**
++++         * Returns stack trace with given <code>stackTraceId</code>.
++++         * @experimental
++++         */
++++        post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType): Promise<Debugger.GetStackTraceReturnType>;
++++        /**
++++         * Searches for given string in script content.
++++         */
++++        post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType): Promise<Debugger.SearchInContentReturnType>;
++++        /**
++++         * Edits JavaScript source live.
++++         */
++++        post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType): Promise<Debugger.SetScriptSourceReturnType>;
++++        /**
++++         * Restarts particular call frame from the beginning.
++++         */
++++        post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType): Promise<Debugger.RestartFrameReturnType>;
++++        /**
++++         * Returns source for the script with given id.
++++         */
++++        post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType): Promise<Debugger.GetScriptSourceReturnType>;
++++        /**
++++         * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>.
++++         */
++++        post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType): Promise<void>;
++++        /**
++++         * Evaluates expression on a given call frame.
++++         */
++++        post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType): Promise<Debugger.EvaluateOnCallFrameReturnType>;
++++        /**
++++         * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
++++         */
++++        post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType): Promise<void>;
++++        /**
++++         * Changes return value in top frame. Available only at return break position.
++++         * @experimental
++++         */
++++        post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType): Promise<void>;
++++        /**
++++         * Enables or disables async call stacks tracking.
++++         */
++++        post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType): Promise<void>;
++++        /**
++++         * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
++++         * @experimental
++++         */
++++        post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType): Promise<void>;
++++        /**
++++         * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted.
++++         * @experimental
++++         */
++++        post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType): Promise<void>;
++++        /**
++++         * Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification.
++++         */
++++        post(method: 'Console.enable'): Promise<void>;
++++        /**
++++         * Disables console domain, prevents further console messages from being reported to the client.
++++         */
++++        post(method: 'Console.disable'): Promise<void>;
++++        /**
++++         * Does nothing.
++++         */
++++        post(method: 'Console.clearMessages'): Promise<void>;
++++        post(method: 'Profiler.enable'): Promise<void>;
++++        post(method: 'Profiler.disable'): Promise<void>;
++++        /**
++++         * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
++++         */
++++        post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType): Promise<void>;
++++        post(method: 'Profiler.start'): Promise<void>;
++++        post(method: 'Profiler.stop'): Promise<Profiler.StopReturnType>;
++++        /**
++++         * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.
++++         */
++++        post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType): Promise<void>;
++++        /**
++++         * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
++++         */
++++        post(method: 'Profiler.stopPreciseCoverage'): Promise<void>;
++++        /**
++++         * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
++++         */
++++        post(method: 'Profiler.takePreciseCoverage'): Promise<Profiler.TakePreciseCoverageReturnType>;
++++        /**
++++         * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
++++         */
++++        post(method: 'Profiler.getBestEffortCoverage'): Promise<Profiler.GetBestEffortCoverageReturnType>;
++++        post(method: 'HeapProfiler.enable'): Promise<void>;
++++        post(method: 'HeapProfiler.disable'): Promise<void>;
++++        post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType): Promise<void>;
++++        post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType): Promise<void>;
++++        post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType): Promise<void>;
++++        post(method: 'HeapProfiler.collectGarbage'): Promise<void>;
++++        post(method: 'HeapProfiler.getObjectByHeapObjectId', params?: HeapProfiler.GetObjectByHeapObjectIdParameterType): Promise<HeapProfiler.GetObjectByHeapObjectIdReturnType>;
++++        /**
++++         * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
++++         */
++++        post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType): Promise<void>;
++++        post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType): Promise<HeapProfiler.GetHeapObjectIdReturnType>;
++++        post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType): Promise<void>;
++++        post(method: 'HeapProfiler.stopSampling'): Promise<HeapProfiler.StopSamplingReturnType>;
++++        post(method: 'HeapProfiler.getSamplingProfile'): Promise<HeapProfiler.GetSamplingProfileReturnType>;
++++        /**
++++         * Gets supported tracing categories.
++++         */
++++        post(method: 'NodeTracing.getCategories'): Promise<NodeTracing.GetCategoriesReturnType>;
++++        /**
++++         * Start trace events collection.
++++         */
++++        post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType): Promise<void>;
++++        /**
++++         * Stop trace events collection. Remaining collected events will be sent as a sequence of
++++         * dataCollected events followed by tracingComplete event.
++++         */
++++        post(method: 'NodeTracing.stop'): Promise<void>;
++++        /**
++++         * Sends protocol message over session with given id.
++++         */
++++        post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType): Promise<void>;
++++        /**
++++         * Instructs the inspector to attach to running workers. Will also attach to new workers
++++         * as they start
++++         */
++++        post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType): Promise<void>;
++++        /**
++++         * Detaches from all running workers and disables attaching to new workers as they are started.
++++         */
++++        post(method: 'NodeWorker.disable'): Promise<void>;
++++        /**
++++         * Detached from the worker with given sessionId.
++++         */
++++        post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType): Promise<void>;
++++        /**
++++         * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`.
++++         */
++++        post(method: 'NodeRuntime.enable'): Promise<void>;
++++        /**
++++         * Disable NodeRuntime events
++++         */
++++        post(method: 'NodeRuntime.disable'): Promise<void>;
++++        /**
++++         * Enable the `NodeRuntime.waitingForDisconnect`.
++++         */
++++        post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType): Promise<void>;
++++
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        /**
++++         * Emitted when any notification from the V8 Inspector is received.
++++         */
++++        addListener(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
++++        /**
++++         * Issued when new execution context is created.
++++         */
++++        addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
++++        /**
++++         * Issued when execution context is destroyed.
++++         */
++++        addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
++++        /**
++++         * Issued when all executionContexts were cleared in browser
++++         */
++++        addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
++++        /**
++++         * Issued when exception was thrown and unhandled.
++++         */
++++        addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
++++        /**
++++         * Issued when unhandled exception was revoked.
++++         */
++++        addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
++++        /**
++++         * Issued when console API was called.
++++         */
++++        addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
++++        /**
++++         * Issued when object should be inspected (for example, as a result of inspect() command line API call).
++++         */
++++        addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
++++         */
++++        addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine fails to parse the script.
++++         */
++++        addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
++++        /**
++++         * Fired when breakpoint is resolved to an actual script and location.
++++         */
++++        addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
++++         */
++++        addListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine resumed execution.
++++         */
++++        addListener(event: 'Debugger.resumed', listener: () => void): this;
++++        /**
++++         * Issued when new console message is added.
++++         */
++++        addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
++++        /**
++++         * Sent when new profile recording is started using console.profile() call.
++++         */
++++        addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
++++        addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
++++        addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
++++        addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
++++        addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
++++         */
++++        addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend may send update for one or more fragments
++++         */
++++        addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
++++        /**
++++         * Contains an bucket of collected trace events.
++++         */
++++        addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
++++        /**
++++         * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
++++         * delivered via dataCollected events.
++++         */
++++        addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
++++        /**
++++         * Issued when attached to a worker.
++++         */
++++        addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
++++        /**
++++         * Issued when detached from the worker.
++++         */
++++        addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
++++        /**
++++         * Notifies about a new protocol message received from the session
++++         * (session ID is provided in attachedToWorker notification).
++++         */
++++        addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
++++        /**
++++         * This event is fired instead of `Runtime.executionContextDestroyed` when
++++         * enabled.
++++         * It is fired when the Node process finished all code execution and is
++++         * waiting for all frontends to disconnect.
++++         */
++++        addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
++++        /**
++++         * This event is fired when the runtime is waiting for the debugger. For
++++         * example, when inspector.waitingForDebugger is called
++++         */
++++        addListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        emit(event: 'inspectorNotification', message: InspectorNotification<object>): boolean;
++++        emit(event: 'Runtime.executionContextCreated', message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
++++        emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
++++        emit(event: 'Runtime.executionContextsCleared'): boolean;
++++        emit(event: 'Runtime.exceptionThrown', message: InspectorNotification<Runtime.ExceptionThrownEventDataType>): boolean;
++++        emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>): boolean;
++++        emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>): boolean;
++++        emit(event: 'Runtime.inspectRequested', message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
++++        emit(event: 'Debugger.scriptParsed', message: InspectorNotification<Debugger.ScriptParsedEventDataType>): boolean;
++++        emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>): boolean;
++++        emit(event: 'Debugger.breakpointResolved', message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>): boolean;
++++        emit(event: 'Debugger.paused', message: InspectorNotification<Debugger.PausedEventDataType>): boolean;
++++        emit(event: 'Debugger.resumed'): boolean;
++++        emit(event: 'Console.messageAdded', message: InspectorNotification<Console.MessageAddedEventDataType>): boolean;
++++        emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>): boolean;
++++        emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>): boolean;
++++        emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>): boolean;
++++        emit(event: 'HeapProfiler.resetProfiles'): boolean;
++++        emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
++++        emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
++++        emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
++++        emit(event: 'NodeTracing.dataCollected', message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
++++        emit(event: 'NodeTracing.tracingComplete'): boolean;
++++        emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
++++        emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
++++        emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
++++        emit(event: 'NodeRuntime.waitingForDisconnect'): boolean;
++++        emit(event: 'NodeRuntime.waitingForDebugger'): boolean;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        /**
++++         * Emitted when any notification from the V8 Inspector is received.
++++         */
++++        on(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
++++        /**
++++         * Issued when new execution context is created.
++++         */
++++        on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
++++        /**
++++         * Issued when execution context is destroyed.
++++         */
++++        on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
++++        /**
++++         * Issued when all executionContexts were cleared in browser
++++         */
++++        on(event: 'Runtime.executionContextsCleared', listener: () => void): this;
++++        /**
++++         * Issued when exception was thrown and unhandled.
++++         */
++++        on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
++++        /**
++++         * Issued when unhandled exception was revoked.
++++         */
++++        on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
++++        /**
++++         * Issued when console API was called.
++++         */
++++        on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
++++        /**
++++         * Issued when object should be inspected (for example, as a result of inspect() command line API call).
++++         */
++++        on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
++++         */
++++        on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine fails to parse the script.
++++         */
++++        on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
++++        /**
++++         * Fired when breakpoint is resolved to an actual script and location.
++++         */
++++        on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
++++         */
++++        on(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine resumed execution.
++++         */
++++        on(event: 'Debugger.resumed', listener: () => void): this;
++++        /**
++++         * Issued when new console message is added.
++++         */
++++        on(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
++++        /**
++++         * Sent when new profile recording is started using console.profile() call.
++++         */
++++        on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
++++        on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
++++        on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
++++        on(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
++++        on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
++++         */
++++        on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend may send update for one or more fragments
++++         */
++++        on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
++++        /**
++++         * Contains an bucket of collected trace events.
++++         */
++++        on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
++++        /**
++++         * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
++++         * delivered via dataCollected events.
++++         */
++++        on(event: 'NodeTracing.tracingComplete', listener: () => void): this;
++++        /**
++++         * Issued when attached to a worker.
++++         */
++++        on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
++++        /**
++++         * Issued when detached from the worker.
++++         */
++++        on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
++++        /**
++++         * Notifies about a new protocol message received from the session
++++         * (session ID is provided in attachedToWorker notification).
++++         */
++++        on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
++++        /**
++++         * This event is fired instead of `Runtime.executionContextDestroyed` when
++++         * enabled.
++++         * It is fired when the Node process finished all code execution and is
++++         * waiting for all frontends to disconnect.
++++         */
++++        on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
++++        /**
++++         * This event is fired when the runtime is waiting for the debugger. For
++++         * example, when inspector.waitingForDebugger is called
++++         */
++++        on(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        /**
++++         * Emitted when any notification from the V8 Inspector is received.
++++         */
++++        once(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
++++        /**
++++         * Issued when new execution context is created.
++++         */
++++        once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
++++        /**
++++         * Issued when execution context is destroyed.
++++         */
++++        once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
++++        /**
++++         * Issued when all executionContexts were cleared in browser
++++         */
++++        once(event: 'Runtime.executionContextsCleared', listener: () => void): this;
++++        /**
++++         * Issued when exception was thrown and unhandled.
++++         */
++++        once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
++++        /**
++++         * Issued when unhandled exception was revoked.
++++         */
++++        once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
++++        /**
++++         * Issued when console API was called.
++++         */
++++        once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
++++        /**
++++         * Issued when object should be inspected (for example, as a result of inspect() command line API call).
++++         */
++++        once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
++++         */
++++        once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine fails to parse the script.
++++         */
++++        once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
++++        /**
++++         * Fired when breakpoint is resolved to an actual script and location.
++++         */
++++        once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
++++         */
++++        once(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine resumed execution.
++++         */
++++        once(event: 'Debugger.resumed', listener: () => void): this;
++++        /**
++++         * Issued when new console message is added.
++++         */
++++        once(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
++++        /**
++++         * Sent when new profile recording is started using console.profile() call.
++++         */
++++        once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
++++        once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
++++        once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
++++        once(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
++++        once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
++++         */
++++        once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend may send update for one or more fragments
++++         */
++++        once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
++++        /**
++++         * Contains an bucket of collected trace events.
++++         */
++++        once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
++++        /**
++++         * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
++++         * delivered via dataCollected events.
++++         */
++++        once(event: 'NodeTracing.tracingComplete', listener: () => void): this;
++++        /**
++++         * Issued when attached to a worker.
++++         */
++++        once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
++++        /**
++++         * Issued when detached from the worker.
++++         */
++++        once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
++++        /**
++++         * Notifies about a new protocol message received from the session
++++         * (session ID is provided in attachedToWorker notification).
++++         */
++++        once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
++++        /**
++++         * This event is fired instead of `Runtime.executionContextDestroyed` when
++++         * enabled.
++++         * It is fired when the Node process finished all code execution and is
++++         * waiting for all frontends to disconnect.
++++         */
++++        once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
++++        /**
++++         * This event is fired when the runtime is waiting for the debugger. For
++++         * example, when inspector.waitingForDebugger is called
++++         */
++++        once(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        /**
++++         * Emitted when any notification from the V8 Inspector is received.
++++         */
++++        prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
++++        /**
++++         * Issued when new execution context is created.
++++         */
++++        prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
++++        /**
++++         * Issued when execution context is destroyed.
++++         */
++++        prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
++++        /**
++++         * Issued when all executionContexts were cleared in browser
++++         */
++++        prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
++++        /**
++++         * Issued when exception was thrown and unhandled.
++++         */
++++        prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
++++        /**
++++         * Issued when unhandled exception was revoked.
++++         */
++++        prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
++++        /**
++++         * Issued when console API was called.
++++         */
++++        prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
++++        /**
++++         * Issued when object should be inspected (for example, as a result of inspect() command line API call).
++++         */
++++        prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
++++         */
++++        prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine fails to parse the script.
++++         */
++++        prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
++++        /**
++++         * Fired when breakpoint is resolved to an actual script and location.
++++         */
++++        prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
++++         */
++++        prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine resumed execution.
++++         */
++++        prependListener(event: 'Debugger.resumed', listener: () => void): this;
++++        /**
++++         * Issued when new console message is added.
++++         */
++++        prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
++++        /**
++++         * Sent when new profile recording is started using console.profile() call.
++++         */
++++        prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
++++        prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
++++        prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
++++        prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
++++        prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
++++         */
++++        prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend may send update for one or more fragments
++++         */
++++        prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
++++        /**
++++         * Contains an bucket of collected trace events.
++++         */
++++        prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
++++        /**
++++         * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
++++         * delivered via dataCollected events.
++++         */
++++        prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
++++        /**
++++         * Issued when attached to a worker.
++++         */
++++        prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
++++        /**
++++         * Issued when detached from the worker.
++++         */
++++        prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
++++        /**
++++         * Notifies about a new protocol message received from the session
++++         * (session ID is provided in attachedToWorker notification).
++++         */
++++        prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
++++        /**
++++         * This event is fired instead of `Runtime.executionContextDestroyed` when
++++         * enabled.
++++         * It is fired when the Node process finished all code execution and is
++++         * waiting for all frontends to disconnect.
++++         */
++++        prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
++++        /**
++++         * This event is fired when the runtime is waiting for the debugger. For
++++         * example, when inspector.waitingForDebugger is called
++++         */
++++        prependListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++        /**
++++         * Emitted when any notification from the V8 Inspector is received.
++++         */
++++        prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification<object>) => void): this;
++++        /**
++++         * Issued when new execution context is created.
++++         */
++++        prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
++++        /**
++++         * Issued when execution context is destroyed.
++++         */
++++        prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
++++        /**
++++         * Issued when all executionContexts were cleared in browser
++++         */
++++        prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
++++        /**
++++         * Issued when exception was thrown and unhandled.
++++         */
++++        prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
++++        /**
++++         * Issued when unhandled exception was revoked.
++++         */
++++        prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
++++        /**
++++         * Issued when console API was called.
++++         */
++++        prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
++++        /**
++++         * Issued when object should be inspected (for example, as a result of inspect() command line API call).
++++         */
++++        prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
++++         */
++++        prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
++++        /**
++++         * Fired when virtual machine fails to parse the script.
++++         */
++++        prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
++++        /**
++++         * Fired when breakpoint is resolved to an actual script and location.
++++         */
++++        prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
++++         */
++++        prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
++++        /**
++++         * Fired when the virtual machine resumed execution.
++++         */
++++        prependOnceListener(event: 'Debugger.resumed', listener: () => void): this;
++++        /**
++++         * Issued when new console message is added.
++++         */
++++        prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
++++        /**
++++         * Sent when new profile recording is started using console.profile() call.
++++         */
++++        prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
++++        prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
++++        prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
++++        prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
++++        prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
++++         */
++++        prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
++++        /**
++++         * If heap objects tracking has been started then backend may send update for one or more fragments
++++         */
++++        prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
++++        /**
++++         * Contains an bucket of collected trace events.
++++         */
++++        prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
++++        /**
++++         * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
++++         * delivered via dataCollected events.
++++         */
++++        prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
++++        /**
++++         * Issued when attached to a worker.
++++         */
++++        prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
++++        /**
++++         * Issued when detached from the worker.
++++         */
++++        prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
++++        /**
++++         * Notifies about a new protocol message received from the session
++++         * (session ID is provided in attachedToWorker notification).
++++         */
++++        prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
++++        /**
++++         * This event is fired instead of `Runtime.executionContextDestroyed` when
++++         * enabled.
++++         * It is fired when the Node process finished all code execution and is
++++         * waiting for all frontends to disconnect.
++++         */
++++        prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
++++        /**
++++         * This event is fired when the runtime is waiting for the debugger. For
++++         * example, when inspector.waitingForDebugger is called
++++         */
++++        prependOnceListener(event: 'NodeRuntime.waitingForDebugger', listener: () => void): this;
++++    }
++++
++++    export {
++++        Session,
++++        open,
++++        close,
++++        url,
++++        waitForDebugger,
++++        console,
++++        InspectorNotification,
++++        Schema,
++++        Runtime,
++++        Debugger,
++++        Console,
++++        Profiler,
++++        HeapProfiler,
++++        NodeTracing,
++++        NodeWorker,
++++        NodeRuntime,
++++    };
++++}
++++
++++/**
++++ * The `node:inspector/promises` module provides an API for interacting with the V8
++++ * inspector.
++++ * @since v19.0.0
++++ */
++++declare module 'node:inspector/promises' {
++++    export * from 'inspector/promises';
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3b40061a67ccb5a65071d29a3a8d7134d8851158
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,315 @@@@@
++++/**
++++ * @since v0.3.7
++++ * @experimental
++++ */
++++declare module "module" {
++++    import { URL } from "node:url";
++++    import { MessagePort } from "node:worker_threads";
++++    namespace Module {
++++        /**
++++         * The `module.syncBuiltinESMExports()` method updates all the live bindings for
++++         * builtin `ES Modules` to match the properties of the `CommonJS` exports. It
++++         * does not add or remove exported names from the `ES Modules`.
++++         *
++++         * ```js
++++         * import fs from 'node:fs';
++++         * import assert from 'node:assert';
++++         * import { syncBuiltinESMExports } from 'node:module';
++++         *
++++         * fs.readFile = newAPI;
++++         *
++++         * delete fs.readFileSync;
++++         *
++++         * function newAPI() {
++++         *   // ...
++++         * }
++++         *
++++         * fs.newAPI = newAPI;
++++         *
++++         * syncBuiltinESMExports();
++++         *
++++         * import('node:fs').then((esmFS) => {
++++         *   // It syncs the existing readFile property with the new value
++++         *   assert.strictEqual(esmFS.readFile, newAPI);
++++         *   // readFileSync has been deleted from the required fs
++++         *   assert.strictEqual('readFileSync' in fs, false);
++++         *   // syncBuiltinESMExports() does not remove readFileSync from esmFS
++++         *   assert.strictEqual('readFileSync' in esmFS, true);
++++         *   // syncBuiltinESMExports() does not add names
++++         *   assert.strictEqual(esmFS.newAPI, undefined);
++++         * });
++++         * ```
++++         * @since v12.12.0
++++         */
++++        function syncBuiltinESMExports(): void;
++++        /**
++++         * `path` is the resolved path for the file for which a corresponding source map
++++         * should be fetched.
++++         * @since v13.7.0, v12.17.0
++++         * @return Returns `module.SourceMap` if a source map is found, `undefined` otherwise.
++++         */
++++        function findSourceMap(path: string, error?: Error): SourceMap;
++++        interface SourceMapPayload {
++++            file: string;
++++            version: number;
++++            sources: string[];
++++            sourcesContent: string[];
++++            names: string[];
++++            mappings: string;
++++            sourceRoot: string;
++++        }
++++        interface SourceMapping {
++++            generatedLine: number;
++++            generatedColumn: number;
++++            originalSource: string;
++++            originalLine: number;
++++            originalColumn: number;
++++        }
++++        interface SourceOrigin {
++++            /**
++++             * The name of the range in the source map, if one was provided
++++             */
++++            name?: string;
++++            /**
++++             * The file name of the original source, as reported in the SourceMap
++++             */
++++            fileName: string;
++++            /**
++++             * The 1-indexed lineNumber of the corresponding call site in the original source
++++             */
++++            lineNumber: number;
++++            /**
++++             * The 1-indexed columnNumber of the corresponding call site in the original source
++++             */
++++            columnNumber: number;
++++        }
++++        /**
++++         * @since v13.7.0, v12.17.0
++++         */
++++        class SourceMap {
++++            /**
++++             * Getter for the payload used to construct the `SourceMap` instance.
++++             */
++++            readonly payload: SourceMapPayload;
++++            constructor(payload: SourceMapPayload);
++++            /**
++++             * Given a line offset and column offset in the generated source
++++             * file, returns an object representing the SourceMap range in the
++++             * original file if found, or an empty object if not.
++++             *
++++             * The object returned contains the following keys:
++++             *
++++             * The returned value represents the raw range as it appears in the
++++             * SourceMap, based on zero-indexed offsets, _not_ 1-indexed line and
++++             * column numbers as they appear in Error messages and CallSite
++++             * objects.
++++             *
++++             * To get the corresponding 1-indexed line and column numbers from a
++++             * lineNumber and columnNumber as they are reported by Error stacks
++++             * and CallSite objects, use `sourceMap.findOrigin(lineNumber, columnNumber)`
++++             * @param lineOffset The zero-indexed line number offset in the generated source
++++             * @param columnOffset The zero-indexed column number offset in the generated source
++++             */
++++            findEntry(lineOffset: number, columnOffset: number): SourceMapping;
++++            /**
++++             * Given a 1-indexed `lineNumber` and `columnNumber` from a call site in the generated source,
++++             * find the corresponding call site location in the original source.
++++             *
++++             * If the `lineNumber` and `columnNumber` provided are not found in any source map,
++++             * then an empty object is returned.
++++             * @param lineNumber The 1-indexed line number of the call site in the generated source
++++             * @param columnNumber The 1-indexed column number of the call site in the generated source
++++             */
++++            findOrigin(lineNumber: number, columnNumber: number): SourceOrigin | {};
++++        }
++++        /** @deprecated Use `ImportAttributes` instead */
++++        interface ImportAssertions extends ImportAttributes {}
++++        interface ImportAttributes extends NodeJS.Dict<string> {
++++            type?: string | undefined;
++++        }
++++        type ModuleFormat = "builtin" | "commonjs" | "json" | "module" | "wasm";
++++        type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray;
++++        interface GlobalPreloadContext {
++++            port: MessagePort;
++++        }
++++        /**
++++         * @deprecated This hook will be removed in a future version.
++++         * Use `initialize` instead. When a loader has an `initialize` export, `globalPreload` will be ignored.
++++         *
++++         * Sometimes it might be necessary to run some code inside of the same global scope that the application runs in.
++++         * This hook allows the return of a string that is run as a sloppy-mode script on startup.
++++         *
++++         * @param context Information to assist the preload code
++++         * @return Code to run before application startup
++++         */
++++        type GlobalPreloadHook = (context: GlobalPreloadContext) => string;
++++        /**
++++         * The `initialize` hook provides a way to define a custom function that runs in the hooks thread
++++         * when the hooks module is initialized. Initialization happens when the hooks module is registered via `register`.
++++         *
++++         * This hook can receive data from a `register` invocation, including ports and other transferrable objects.
++++         * The return value of `initialize` can be a `Promise`, in which case it will be awaited before the main application thread execution resumes.
++++         */
++++        type InitializeHook<Data = any> = (data: Data) => void | Promise<void>;
++++        interface ResolveHookContext {
++++            /**
++++             * Export conditions of the relevant `package.json`
++++             */
++++            conditions: string[];
++++            /**
++++             * @deprecated Use `importAttributes` instead
++++             */
++++            importAssertions: ImportAttributes;
++++            /**
++++             *  An object whose key-value pairs represent the assertions for the module to import
++++             */
++++            importAttributes: ImportAttributes;
++++            /**
++++             * The module importing this one, or undefined if this is the Node.js entry point
++++             */
++++            parentURL: string | undefined;
++++        }
++++        interface ResolveFnOutput {
++++            /**
++++             * A hint to the load hook (it might be ignored)
++++             */
++++            format?: ModuleFormat | null | undefined;
++++            /**
++++             * @deprecated Use `importAttributes` instead
++++             */
++++            importAssertions?: ImportAttributes | undefined;
++++            /**
++++             * The import attributes to use when caching the module (optional; if excluded the input will be used)
++++             */
++++            importAttributes?: ImportAttributes | undefined;
++++            /**
++++             * A signal that this hook intends to terminate the chain of `resolve` hooks.
++++             * @default false
++++             */
++++            shortCircuit?: boolean | undefined;
++++            /**
++++             * The absolute URL to which this input resolves
++++             */
++++            url: string;
++++        }
++++        /**
++++         * The `resolve` hook chain is responsible for resolving file URL for a given module specifier and parent URL, and optionally its format (such as `'module'`) as a hint to the `load` hook.
++++         * If a format is specified, the load hook is ultimately responsible for providing the final `format` value (and it is free to ignore the hint provided by `resolve`);
++++         * if `resolve` provides a format, a custom `load` hook is required even if only to pass the value to the Node.js default `load` hook.
++++         *
++++         * @param specifier The specified URL path of the module to be resolved
++++         * @param context
++++         * @param nextResolve The subsequent `resolve` hook in the chain, or the Node.js default `resolve` hook after the last user-supplied resolve hook
++++         */
++++        type ResolveHook = (
++++            specifier: string,
++++            context: ResolveHookContext,
++++            nextResolve: (
++++                specifier: string,
++++                context?: ResolveHookContext,
++++            ) => ResolveFnOutput | Promise<ResolveFnOutput>,
++++        ) => ResolveFnOutput | Promise<ResolveFnOutput>;
++++        interface LoadHookContext {
++++            /**
++++             * Export conditions of the relevant `package.json`
++++             */
++++            conditions: string[];
++++            /**
++++             * The format optionally supplied by the `resolve` hook chain
++++             */
++++            format: ModuleFormat;
++++            /**
++++             * @deprecated Use `importAttributes` instead
++++             */
++++            importAssertions: ImportAttributes;
++++            /**
++++             *  An object whose key-value pairs represent the assertions for the module to import
++++             */
++++            importAttributes: ImportAttributes;
++++        }
++++        interface LoadFnOutput {
++++            format: ModuleFormat;
++++            /**
++++             * A signal that this hook intends to terminate the chain of `resolve` hooks.
++++             * @default false
++++             */
++++            shortCircuit?: boolean | undefined;
++++            /**
++++             * The source for Node.js to evaluate
++++             */
++++            source?: ModuleSource;
++++        }
++++        /**
++++         * The `load` hook provides a way to define a custom method of determining how a URL should be interpreted, retrieved, and parsed.
++++         * It is also in charge of validating the import assertion.
++++         *
++++         * @param url The URL/path of the module to be loaded
++++         * @param context Metadata about the module
++++         * @param nextLoad The subsequent `load` hook in the chain, or the Node.js default `load` hook after the last user-supplied `load` hook
++++         */
++++        type LoadHook = (
++++            url: string,
++++            context: LoadHookContext,
++++            nextLoad: (url: string, context?: LoadHookContext) => LoadFnOutput | Promise<LoadFnOutput>,
++++        ) => LoadFnOutput | Promise<LoadFnOutput>;
++++    }
++++    interface RegisterOptions<Data> {
++++        parentURL: string | URL;
++++        data?: Data | undefined;
++++        transferList?: any[] | undefined;
++++    }
++++    interface Module extends NodeModule {}
++++    class Module {
++++        static runMain(): void;
++++        static wrap(code: string): string;
++++        static createRequire(path: string | URL): NodeRequire;
++++        static builtinModules: string[];
++++        static isBuiltin(moduleName: string): boolean;
++++        static Module: typeof Module;
++++        static register<Data = any>(
++++            specifier: string | URL,
++++            parentURL?: string | URL,
++++            options?: RegisterOptions<Data>,
++++        ): void;
++++        static register<Data = any>(specifier: string | URL, options?: RegisterOptions<Data>): void;
++++        constructor(id: string, parent?: Module);
++++    }
++++    global {
++++        interface ImportMeta {
++++            /**
++++             * The directory name of the current module. This is the same as the `path.dirname()` of the `import.meta.filename`.
++++             * **Caveat:** only present on `file:` modules.
++++             */
++++            dirname: string;
++++            /**
++++             * The full absolute path and filename of the current module, with symlinks resolved.
++++             * This is the same as the `url.fileURLToPath()` of the `import.meta.url`.
++++             * **Caveat:** only local modules support this property. Modules not using the `file:` protocol will not provide it.
++++             */
++++            filename: string;
++++            /**
++++             * The absolute `file:` URL of the module.
++++             */
++++            url: string;
++++            /**
++++             * Provides a module-relative resolution function scoped to each module, returning
++++             * the URL string.
++++             *
++++             * Second `parent` parameter is only used when the `--experimental-import-meta-resolve`
++++             * command flag enabled.
++++             *
++++             * @since v20.6.0
++++             *
++++             * @param specifier The module specifier to resolve relative to `parent`.
++++             * @param parent The absolute parent module URL to resolve from.
++++             * @returns The absolute (`file:`) URL string for the resolved module.
++++             */
++++            resolve(specifier: string, parent?: string | URL | undefined): string;
++++        }
++++    }
++++    export = Module;
++++}
++++declare module "node:module" {
++++    import module = require("module");
++++    export = module;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5202222adf9600d5da01573f7a5dfd9fef5c475a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1005 @@@@@
++++/**
++++ * > Stability: 2 - Stable
++++ *
++++ * The `node:net` module provides an asynchronous network API for creating stream-based
++++ * TCP or `IPC` servers ({@link createServer}) and clients
++++ * ({@link createConnection}).
++++ *
++++ * It can be accessed using:
++++ *
++++ * ```js
++++ * import net from 'node:net';
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/net.js)
++++ */
++++declare module "net" {
++++    import * as stream from "node:stream";
++++    import { Abortable, EventEmitter } from "node:events";
++++    import * as dns from "node:dns";
++++    type LookupFunction = (
++++        hostname: string,
++++        options: dns.LookupOptions,
++++        callback: (err: NodeJS.ErrnoException | null, address: string | dns.LookupAddress[], family?: number) => void,
++++    ) => void;
++++    interface AddressInfo {
++++        address: string;
++++        family: string;
++++        port: number;
++++    }
++++    interface SocketConstructorOpts {
++++        fd?: number | undefined;
++++        allowHalfOpen?: boolean | undefined;
++++        readable?: boolean | undefined;
++++        writable?: boolean | undefined;
++++        signal?: AbortSignal;
++++    }
++++    interface OnReadOpts {
++++        buffer: Uint8Array | (() => Uint8Array);
++++        /**
++++         * This function is called for every chunk of incoming data.
++++         * Two arguments are passed to it: the number of bytes written to buffer and a reference to buffer.
++++         * Return false from this function to implicitly pause() the socket.
++++         */
++++        callback(bytesWritten: number, buf: Uint8Array): boolean;
++++    }
++++    interface ConnectOpts {
++++        /**
++++         * If specified, incoming data is stored in a single buffer and passed to the supplied callback when data arrives on the socket.
++++         * Note: this will cause the streaming functionality to not provide any data, however events like 'error', 'end', and 'close' will
++++         * still be emitted as normal and methods like pause() and resume() will also behave as expected.
++++         */
++++        onread?: OnReadOpts | undefined;
++++    }
++++    interface TcpSocketConnectOpts extends ConnectOpts {
++++        port: number;
++++        host?: string | undefined;
++++        localAddress?: string | undefined;
++++        localPort?: number | undefined;
++++        hints?: number | undefined;
++++        family?: number | undefined;
++++        lookup?: LookupFunction | undefined;
++++        noDelay?: boolean | undefined;
++++        keepAlive?: boolean | undefined;
++++        keepAliveInitialDelay?: number | undefined;
++++        /**
++++         * @since v18.13.0
++++         */
++++        autoSelectFamily?: boolean | undefined;
++++        /**
++++         * @since v18.13.0
++++         */
++++        autoSelectFamilyAttemptTimeout?: number | undefined;
++++    }
++++    interface IpcSocketConnectOpts extends ConnectOpts {
++++        path: string;
++++    }
++++    type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts;
++++    type SocketReadyState = "opening" | "open" | "readOnly" | "writeOnly" | "closed";
++++    /**
++++     * This class is an abstraction of a TCP socket or a streaming `IPC` endpoint
++++     * (uses named pipes on Windows, and Unix domain sockets otherwise). It is also
++++     * an `EventEmitter`.
++++     *
++++     * A `net.Socket` can be created by the user and used directly to interact with
++++     * a server. For example, it is returned by {@link createConnection},
++++     * so the user can use it to talk to the server.
++++     *
++++     * It can also be created by Node.js and passed to the user when a connection
++++     * is received. For example, it is passed to the listeners of a `'connection'` event emitted on a {@link Server}, so the user can use
++++     * it to interact with the client.
++++     * @since v0.3.4
++++     */
++++    class Socket extends stream.Duplex {
++++        constructor(options?: SocketConstructorOpts);
++++        /**
++++         * Destroys the socket after all data is written. If the `finish` event was already emitted the socket is destroyed immediately.
++++         * If the socket is still writable it implicitly calls `socket.end()`.
++++         * @since v0.3.4
++++         */
++++        destroySoon(): void;
++++        /**
++++         * Sends data on the socket. The second parameter specifies the encoding in the
++++         * case of a string. It defaults to UTF8 encoding.
++++         *
++++         * Returns `true` if the entire data was flushed successfully to the kernel
++++         * buffer. Returns `false` if all or part of the data was queued in user memory.`'drain'` will be emitted when the buffer is again free.
++++         *
++++         * The optional `callback` parameter will be executed when the data is finally
++++         * written out, which may not be immediately.
++++         *
++++         * See `Writable` stream `write()` method for more
++++         * information.
++++         * @since v0.1.90
++++         * @param [encoding='utf8'] Only used when data is `string`.
++++         */
++++        write(buffer: Uint8Array | string, cb?: (err?: Error) => void): boolean;
++++        write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error) => void): boolean;
++++        /**
++++         * Initiate a connection on a given socket.
++++         *
++++         * Possible signatures:
++++         *
++++         * * `socket.connect(options[, connectListener])`
++++         * * `socket.connect(path[, connectListener])` for `IPC` connections.
++++         * * `socket.connect(port[, host][, connectListener])` for TCP connections.
++++         * * Returns: `net.Socket` The socket itself.
++++         *
++++         * This function is asynchronous. When the connection is established, the `'connect'` event will be emitted. If there is a problem connecting,
++++         * instead of a `'connect'` event, an `'error'` event will be emitted with
++++         * the error passed to the `'error'` listener.
++++         * The last parameter `connectListener`, if supplied, will be added as a listener
++++         * for the `'connect'` event **once**.
++++         *
++++         * This function should only be used for reconnecting a socket after`'close'` has been emitted or otherwise it may lead to undefined
++++         * behavior.
++++         */
++++        connect(options: SocketConnectOpts, connectionListener?: () => void): this;
++++        connect(port: number, host: string, connectionListener?: () => void): this;
++++        connect(port: number, connectionListener?: () => void): this;
++++        connect(path: string, connectionListener?: () => void): this;
++++        /**
++++         * Set the encoding for the socket as a `Readable Stream`. See `readable.setEncoding()` for more information.
++++         * @since v0.1.90
++++         * @return The socket itself.
++++         */
++++        setEncoding(encoding?: BufferEncoding): this;
++++        /**
++++         * Pauses the reading of data. That is, `'data'` events will not be emitted.
++++         * Useful to throttle back an upload.
++++         * @return The socket itself.
++++         */
++++        pause(): this;
++++        /**
++++         * Close the TCP connection by sending an RST packet and destroy the stream.
++++         * If this TCP socket is in connecting status, it will send an RST packet and destroy this TCP socket once it is connected.
++++         * Otherwise, it will call `socket.destroy` with an `ERR_SOCKET_CLOSED` Error.
++++         * If this is not a TCP socket (for example, a pipe), calling this method will immediately throw an `ERR_INVALID_HANDLE_TYPE` Error.
++++         * @since v18.3.0, v16.17.0
++++         */
++++        resetAndDestroy(): this;
++++        /**
++++         * Resumes reading after a call to `socket.pause()`.
++++         * @return The socket itself.
++++         */
++++        resume(): this;
++++        /**
++++         * Sets the socket to timeout after `timeout` milliseconds of inactivity on
++++         * the socket. By default `net.Socket` do not have a timeout.
++++         *
++++         * When an idle timeout is triggered the socket will receive a `'timeout'` event but the connection will not be severed. The user must manually call `socket.end()` or `socket.destroy()` to
++++         * end the connection.
++++         *
++++         * ```js
++++         * socket.setTimeout(3000);
++++         * socket.on('timeout', () => {
++++         *   console.log('socket timeout');
++++         *   socket.end();
++++         * });
++++         * ```
++++         *
++++         * If `timeout` is 0, then the existing idle timeout is disabled.
++++         *
++++         * The optional `callback` parameter will be added as a one-time listener for the `'timeout'` event.
++++         * @since v0.1.90
++++         * @return The socket itself.
++++         */
++++        setTimeout(timeout: number, callback?: () => void): this;
++++        /**
++++         * Enable/disable the use of Nagle's algorithm.
++++         *
++++         * When a TCP connection is created, it will have Nagle's algorithm enabled.
++++         *
++++         * Nagle's algorithm delays data before it is sent via the network. It attempts
++++         * to optimize throughput at the expense of latency.
++++         *
++++         * Passing `true` for `noDelay` or not passing an argument will disable Nagle's
++++         * algorithm for the socket. Passing `false` for `noDelay` will enable Nagle's
++++         * algorithm.
++++         * @since v0.1.90
++++         * @param [noDelay=true]
++++         * @return The socket itself.
++++         */
++++        setNoDelay(noDelay?: boolean): this;
++++        /**
++++         * Enable/disable keep-alive functionality, and optionally set the initial
++++         * delay before the first keepalive probe is sent on an idle socket.
++++         *
++++         * Set `initialDelay` (in milliseconds) to set the delay between the last
++++         * data packet received and the first keepalive probe. Setting `0` for`initialDelay` will leave the value unchanged from the default
++++         * (or previous) setting.
++++         *
++++         * Enabling the keep-alive functionality will set the following socket options:
++++         *
++++         * * `SO_KEEPALIVE=1`
++++         * * `TCP_KEEPIDLE=initialDelay`
++++         * * `TCP_KEEPCNT=10`
++++         * * `TCP_KEEPINTVL=1`
++++         * @since v0.1.92
++++         * @param [enable=false]
++++         * @param [initialDelay=0]
++++         * @return The socket itself.
++++         */
++++        setKeepAlive(enable?: boolean, initialDelay?: number): this;
++++        /**
++++         * Returns the bound `address`, the address `family` name and `port` of the
++++         * socket as reported by the operating system:`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }`
++++         * @since v0.1.90
++++         */
++++        address(): AddressInfo | {};
++++        /**
++++         * Calling `unref()` on a socket will allow the program to exit if this is the only
++++         * active socket in the event system. If the socket is already `unref`ed calling`unref()` again will have no effect.
++++         * @since v0.9.1
++++         * @return The socket itself.
++++         */
++++        unref(): this;
++++        /**
++++         * Opposite of `unref()`, calling `ref()` on a previously `unref`ed socket will _not_ let the program exit if it's the only socket left (the default behavior).
++++         * If the socket is `ref`ed calling `ref` again will have no effect.
++++         * @since v0.9.1
++++         * @return The socket itself.
++++         */
++++        ref(): this;
++++        /**
++++         * This property is only present if the family autoselection algorithm is enabled in `socket.connect(options)`
++++         * and it is an array of the addresses that have been attempted.
++++         *
++++         * Each address is a string in the form of `$IP:$PORT`.
++++         * If the connection was successful, then the last address is the one that the socket is currently connected to.
++++         * @since v19.4.0
++++         */
++++        readonly autoSelectFamilyAttemptedAddresses: string[];
++++        /**
++++         * This property shows the number of characters buffered for writing. The buffer
++++         * may contain strings whose length after encoding is not yet known. So this number
++++         * is only an approximation of the number of bytes in the buffer.
++++         *
++++         * `net.Socket` has the property that `socket.write()` always works. This is to
++++         * help users get up and running quickly. The computer cannot always keep up
++++         * with the amount of data that is written to a socket. The network connection
++++         * simply might be too slow. Node.js will internally queue up the data written to a
++++         * socket and send it out over the wire when it is possible.
++++         *
++++         * The consequence of this internal buffering is that memory may grow.
++++         * Users who experience large or growing `bufferSize` should attempt to
++++         * "throttle" the data flows in their program with `socket.pause()` and `socket.resume()`.
++++         * @since v0.3.8
++++         * @deprecated Since v14.6.0 - Use `writableLength` instead.
++++         */
++++        readonly bufferSize: number;
++++        /**
++++         * The amount of received bytes.
++++         * @since v0.5.3
++++         */
++++        readonly bytesRead: number;
++++        /**
++++         * The amount of bytes sent.
++++         * @since v0.5.3
++++         */
++++        readonly bytesWritten: number;
++++        /**
++++         * If `true`, `socket.connect(options[, connectListener])` was
++++         * called and has not yet finished. It will stay `true` until the socket becomes
++++         * connected, then it is set to `false` and the `'connect'` event is emitted. Note
++++         * that the `socket.connect(options[, connectListener])` callback is a listener for the `'connect'` event.
++++         * @since v6.1.0
++++         */
++++        readonly connecting: boolean;
++++        /**
++++         * This is `true` if the socket is not connected yet, either because `.connect()`has not yet been called or because it is still in the process of connecting
++++         * (see `socket.connecting`).
++++         * @since v11.2.0, v10.16.0
++++         */
++++        readonly pending: boolean;
++++        /**
++++         * See `writable.destroyed` for further details.
++++         */
++++        readonly destroyed: boolean;
++++        /**
++++         * The string representation of the local IP address the remote client is
++++         * connecting on. For example, in a server listening on `'0.0.0.0'`, if a client
++++         * connects on `'192.168.1.1'`, the value of `socket.localAddress` would be`'192.168.1.1'`.
++++         * @since v0.9.6
++++         */
++++        readonly localAddress?: string;
++++        /**
++++         * The numeric representation of the local port. For example, `80` or `21`.
++++         * @since v0.9.6
++++         */
++++        readonly localPort?: number;
++++        /**
++++         * The string representation of the local IP family. `'IPv4'` or `'IPv6'`.
++++         * @since v18.8.0, v16.18.0
++++         */
++++        readonly localFamily?: string;
++++        /**
++++         * This property represents the state of the connection as a string.
++++         *
++++         * * If the stream is connecting `socket.readyState` is `opening`.
++++         * * If the stream is readable and writable, it is `open`.
++++         * * If the stream is readable and not writable, it is `readOnly`.
++++         * * If the stream is not readable and writable, it is `writeOnly`.
++++         * @since v0.5.0
++++         */
++++        readonly readyState: SocketReadyState;
++++        /**
++++         * The string representation of the remote IP address. For example,`'74.125.127.100'` or `'2001:4860:a005::68'`. Value may be `undefined` if
++++         * the socket is destroyed (for example, if the client disconnected).
++++         * @since v0.5.10
++++         */
++++        readonly remoteAddress?: string | undefined;
++++        /**
++++         * The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. Value may be `undefined` if
++++         * the socket is destroyed (for example, if the client disconnected).
++++         * @since v0.11.14
++++         */
++++        readonly remoteFamily?: string | undefined;
++++        /**
++++         * The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if
++++         * the socket is destroyed (for example, if the client disconnected).
++++         * @since v0.5.10
++++         */
++++        readonly remotePort?: number | undefined;
++++        /**
++++         * The socket timeout in milliseconds as set by `socket.setTimeout()`.
++++         * It is `undefined` if a timeout has not been set.
++++         * @since v10.7.0
++++         */
++++        readonly timeout?: number | undefined;
++++        /**
++++         * Half-closes the socket. i.e., it sends a FIN packet. It is possible the
++++         * server will still send some data.
++++         *
++++         * See `writable.end()` for further details.
++++         * @since v0.1.90
++++         * @param [encoding='utf8'] Only used when data is `string`.
++++         * @param callback Optional callback for when the socket is finished.
++++         * @return The socket itself.
++++         */
++++        end(callback?: () => void): this;
++++        end(buffer: Uint8Array | string, callback?: () => void): this;
++++        end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this;
++++        /**
++++         * events.EventEmitter
++++         *   1. close
++++         *   2. connect
++++         *   3. connectionAttempt
++++         *   4. connectionAttemptFailed
++++         *   5. connectionAttemptTimeout
++++         *   6. data
++++         *   7. drain
++++         *   8. end
++++         *   9. error
++++         *   10. lookup
++++         *   11. ready
++++         *   12. timeout
++++         */
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        addListener(event: "close", listener: (hadError: boolean) => void): this;
++++        addListener(event: "connect", listener: () => void): this;
++++        addListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
++++        addListener(
++++            event: "connectionAttemptFailed",
++++            listener: (ip: string, port: number, family: number) => void,
++++        ): this;
++++        addListener(
++++            event: "connectionAttemptTimeout",
++++            listener: (ip: string, port: number, family: number) => void,
++++        ): this;
++++        addListener(event: "data", listener: (data: Buffer) => void): this;
++++        addListener(event: "drain", listener: () => void): this;
++++        addListener(event: "end", listener: () => void): this;
++++        addListener(event: "error", listener: (err: Error) => void): this;
++++        addListener(
++++            event: "lookup",
++++            listener: (err: Error, address: string, family: string | number, host: string) => void,
++++        ): this;
++++        addListener(event: "ready", listener: () => void): this;
++++        addListener(event: "timeout", listener: () => void): this;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        emit(event: "close", hadError: boolean): boolean;
++++        emit(event: "connect"): boolean;
++++        emit(event: "connectionAttempt", ip: string, port: number, family: number): boolean;
++++        emit(event: "connectionAttemptFailed", ip: string, port: number, family: number): boolean;
++++        emit(event: "connectionAttemptTimeout", ip: string, port: number, family: number): boolean;
++++        emit(event: "data", data: Buffer): boolean;
++++        emit(event: "drain"): boolean;
++++        emit(event: "end"): boolean;
++++        emit(event: "error", err: Error): boolean;
++++        emit(event: "lookup", err: Error, address: string, family: string | number, host: string): boolean;
++++        emit(event: "ready"): boolean;
++++        emit(event: "timeout"): boolean;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        on(event: "close", listener: (hadError: boolean) => void): this;
++++        on(event: "connect", listener: () => void): this;
++++        on(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
++++        on(event: "connectionAttemptFailed", listener: (ip: string, port: number, family: number) => void): this;
++++        on(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this;
++++        on(event: "data", listener: (data: Buffer) => void): this;
++++        on(event: "drain", listener: () => void): this;
++++        on(event: "end", listener: () => void): this;
++++        on(event: "error", listener: (err: Error) => void): this;
++++        on(
++++            event: "lookup",
++++            listener: (err: Error, address: string, family: string | number, host: string) => void,
++++        ): this;
++++        on(event: "ready", listener: () => void): this;
++++        on(event: "timeout", listener: () => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        once(event: "close", listener: (hadError: boolean) => void): this;
++++        once(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
++++        once(event: "connectionAttemptFailed", listener: (ip: string, port: number, family: number) => void): this;
++++        once(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this;
++++        once(event: "connect", listener: () => void): this;
++++        once(event: "data", listener: (data: Buffer) => void): this;
++++        once(event: "drain", listener: () => void): this;
++++        once(event: "end", listener: () => void): this;
++++        once(event: "error", listener: (err: Error) => void): this;
++++        once(
++++            event: "lookup",
++++            listener: (err: Error, address: string, family: string | number, host: string) => void,
++++        ): this;
++++        once(event: "ready", listener: () => void): this;
++++        once(event: "timeout", listener: () => void): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        prependListener(event: "close", listener: (hadError: boolean) => void): this;
++++        prependListener(event: "connect", listener: () => void): this;
++++        prependListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
++++        prependListener(
++++            event: "connectionAttemptFailed",
++++            listener: (ip: string, port: number, family: number) => void,
++++        ): this;
++++        prependListener(
++++            event: "connectionAttemptTimeout",
++++            listener: (ip: string, port: number, family: number) => void,
++++        ): this;
++++        prependListener(event: "data", listener: (data: Buffer) => void): this;
++++        prependListener(event: "drain", listener: () => void): this;
++++        prependListener(event: "end", listener: () => void): this;
++++        prependListener(event: "error", listener: (err: Error) => void): this;
++++        prependListener(
++++            event: "lookup",
++++            listener: (err: Error, address: string, family: string | number, host: string) => void,
++++        ): this;
++++        prependListener(event: "ready", listener: () => void): this;
++++        prependListener(event: "timeout", listener: () => void): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "close", listener: (hadError: boolean) => void): this;
++++        prependOnceListener(event: "connect", listener: () => void): this;
++++        prependOnceListener(
++++            event: "connectionAttempt",
++++            listener: (ip: string, port: number, family: number) => void,
++++        ): this;
++++        prependOnceListener(
++++            event: "connectionAttemptFailed",
++++            listener: (ip: string, port: number, family: number) => void,
++++        ): this;
++++        prependOnceListener(
++++            event: "connectionAttemptTimeout",
++++            listener: (ip: string, port: number, family: number) => void,
++++        ): this;
++++        prependOnceListener(event: "data", listener: (data: Buffer) => void): this;
++++        prependOnceListener(event: "drain", listener: () => void): this;
++++        prependOnceListener(event: "end", listener: () => void): this;
++++        prependOnceListener(event: "error", listener: (err: Error) => void): this;
++++        prependOnceListener(
++++            event: "lookup",
++++            listener: (err: Error, address: string, family: string | number, host: string) => void,
++++        ): this;
++++        prependOnceListener(event: "ready", listener: () => void): this;
++++        prependOnceListener(event: "timeout", listener: () => void): this;
++++    }
++++    interface ListenOptions extends Abortable {
++++        port?: number | undefined;
++++        host?: string | undefined;
++++        backlog?: number | undefined;
++++        path?: string | undefined;
++++        exclusive?: boolean | undefined;
++++        readableAll?: boolean | undefined;
++++        writableAll?: boolean | undefined;
++++        /**
++++         * @default false
++++         */
++++        ipv6Only?: boolean | undefined;
++++    }
++++    interface ServerOpts {
++++        /**
++++         * Indicates whether half-opened TCP connections are allowed.
++++         * @default false
++++         */
++++        allowHalfOpen?: boolean | undefined;
++++        /**
++++         * Indicates whether the socket should be paused on incoming connections.
++++         * @default false
++++         */
++++        pauseOnConnect?: boolean | undefined;
++++        /**
++++         * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received.
++++         * @default false
++++         * @since v16.5.0
++++         */
++++        noDelay?: boolean | undefined;
++++        /**
++++         * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received,
++++         * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`.
++++         * @default false
++++         * @since v16.5.0
++++         */
++++        keepAlive?: boolean | undefined;
++++        /**
++++         * If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket.
++++         * @default 0
++++         * @since v16.5.0
++++         */
++++        keepAliveInitialDelay?: number | undefined;
++++        /**
++++         * Optionally overrides all `net.Socket`s' `readableHighWaterMark` and `writableHighWaterMark`.
++++         * @default See [stream.getDefaultHighWaterMark()](https://nodejs.org/docs/latest-v20.x/api/stream.html#streamgetdefaulthighwatermarkobjectmode).
++++         * @since v18.17.0, v20.1.0
++++         */
++++        highWaterMark?: number | undefined;
++++    }
++++    interface DropArgument {
++++        localAddress?: string;
++++        localPort?: number;
++++        localFamily?: string;
++++        remoteAddress?: string;
++++        remotePort?: number;
++++        remoteFamily?: string;
++++    }
++++    /**
++++     * This class is used to create a TCP or `IPC` server.
++++     * @since v0.1.90
++++     */
++++    class Server extends EventEmitter {
++++        constructor(connectionListener?: (socket: Socket) => void);
++++        constructor(options?: ServerOpts, connectionListener?: (socket: Socket) => void);
++++        /**
++++         * Start a server listening for connections. A `net.Server` can be a TCP or
++++         * an `IPC` server depending on what it listens to.
++++         *
++++         * Possible signatures:
++++         *
++++         * * `server.listen(handle[, backlog][, callback])`
++++         * * `server.listen(options[, callback])`
++++         * * `server.listen(path[, backlog][, callback])` for `IPC` servers
++++         * * `server.listen([port[, host[, backlog]]][, callback])` for TCP servers
++++         *
++++         * This function is asynchronous. When the server starts listening, the `'listening'` event will be emitted. The last parameter `callback`will be added as a listener for the `'listening'`
++++         * event.
++++         *
++++         * All `listen()` methods can take a `backlog` parameter to specify the maximum
++++         * length of the queue of pending connections. The actual length will be determined
++++         * by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn` on Linux. The default value of this parameter is 511 (not 512).
++++         *
++++         * All {@link Socket} are set to `SO_REUSEADDR` (see [`socket(7)`](https://man7.org/linux/man-pages/man7/socket.7.html) for
++++         * details).
++++         *
++++         * The `server.listen()` method can be called again if and only if there was an
++++         * error during the first `server.listen()` call or `server.close()` has been
++++         * called. Otherwise, an `ERR_SERVER_ALREADY_LISTEN` error will be thrown.
++++         *
++++         * One of the most common errors raised when listening is `EADDRINUSE`.
++++         * This happens when another server is already listening on the requested`port`/`path`/`handle`. One way to handle this would be to retry
++++         * after a certain amount of time:
++++         *
++++         * ```js
++++         * server.on('error', (e) => {
++++         *   if (e.code === 'EADDRINUSE') {
++++         *     console.error('Address in use, retrying...');
++++         *     setTimeout(() => {
++++         *       server.close();
++++         *       server.listen(PORT, HOST);
++++         *     }, 1000);
++++         *   }
++++         * });
++++         * ```
++++         */
++++        listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): this;
++++        listen(port?: number, hostname?: string, listeningListener?: () => void): this;
++++        listen(port?: number, backlog?: number, listeningListener?: () => void): this;
++++        listen(port?: number, listeningListener?: () => void): this;
++++        listen(path: string, backlog?: number, listeningListener?: () => void): this;
++++        listen(path: string, listeningListener?: () => void): this;
++++        listen(options: ListenOptions, listeningListener?: () => void): this;
++++        listen(handle: any, backlog?: number, listeningListener?: () => void): this;
++++        listen(handle: any, listeningListener?: () => void): this;
++++        /**
++++         * Stops the server from accepting new connections and keeps existing
++++         * connections. This function is asynchronous, the server is finally closed
++++         * when all connections are ended and the server emits a `'close'` event.
++++         * The optional `callback` will be called once the `'close'` event occurs. Unlike
++++         * that event, it will be called with an `Error` as its only argument if the server
++++         * was not open when it was closed.
++++         * @since v0.1.90
++++         * @param callback Called when the server is closed.
++++         */
++++        close(callback?: (err?: Error) => void): this;
++++        /**
++++         * Returns the bound `address`, the address `family` name, and `port` of the server
++++         * as reported by the operating system if listening on an IP socket
++++         * (useful to find which port was assigned when getting an OS-assigned address):`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }`.
++++         *
++++         * For a server listening on a pipe or Unix domain socket, the name is returned
++++         * as a string.
++++         *
++++         * ```js
++++         * const server = net.createServer((socket) => {
++++         *   socket.end('goodbye\n');
++++         * }).on('error', (err) => {
++++         *   // Handle errors here.
++++         *   throw err;
++++         * });
++++         *
++++         * // Grab an arbitrary unused port.
++++         * server.listen(() => {
++++         *   console.log('opened server on', server.address());
++++         * });
++++         * ```
++++         *
++++         * `server.address()` returns `null` before the `'listening'` event has been
++++         * emitted or after calling `server.close()`.
++++         * @since v0.1.90
++++         */
++++        address(): AddressInfo | string | null;
++++        /**
++++         * Asynchronously get the number of concurrent connections on the server. Works
++++         * when sockets were sent to forks.
++++         *
++++         * Callback should take two arguments `err` and `count`.
++++         * @since v0.9.7
++++         */
++++        getConnections(cb: (error: Error | null, count: number) => void): void;
++++        /**
++++         * Opposite of `unref()`, calling `ref()` on a previously `unref`ed server will _not_ let the program exit if it's the only server left (the default behavior).
++++         * If the server is `ref`ed calling `ref()` again will have no effect.
++++         * @since v0.9.1
++++         */
++++        ref(): this;
++++        /**
++++         * Calling `unref()` on a server will allow the program to exit if this is the only
++++         * active server in the event system. If the server is already `unref`ed calling`unref()` again will have no effect.
++++         * @since v0.9.1
++++         */
++++        unref(): this;
++++        /**
++++         * Set this property to reject connections when the server's connection count gets
++++         * high.
++++         *
++++         * It is not recommended to use this option once a socket has been sent to a child
++++         * with `child_process.fork()`.
++++         * @since v0.2.0
++++         */
++++        maxConnections: number;
++++        connections: number;
++++        /**
++++         * Indicates whether or not the server is listening for connections.
++++         * @since v5.7.0
++++         */
++++        readonly listening: boolean;
++++        /**
++++         * events.EventEmitter
++++         *   1. close
++++         *   2. connection
++++         *   3. error
++++         *   4. listening
++++         *   5. drop
++++         */
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "connection", listener: (socket: Socket) => void): this;
++++        addListener(event: "error", listener: (err: Error) => void): this;
++++        addListener(event: "listening", listener: () => void): this;
++++        addListener(event: "drop", listener: (data?: DropArgument) => void): this;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        emit(event: "close"): boolean;
++++        emit(event: "connection", socket: Socket): boolean;
++++        emit(event: "error", err: Error): boolean;
++++        emit(event: "listening"): boolean;
++++        emit(event: "drop", data?: DropArgument): boolean;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "connection", listener: (socket: Socket) => void): this;
++++        on(event: "error", listener: (err: Error) => void): this;
++++        on(event: "listening", listener: () => void): this;
++++        on(event: "drop", listener: (data?: DropArgument) => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "connection", listener: (socket: Socket) => void): this;
++++        once(event: "error", listener: (err: Error) => void): this;
++++        once(event: "listening", listener: () => void): this;
++++        once(event: "drop", listener: (data?: DropArgument) => void): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "connection", listener: (socket: Socket) => void): this;
++++        prependListener(event: "error", listener: (err: Error) => void): this;
++++        prependListener(event: "listening", listener: () => void): this;
++++        prependListener(event: "drop", listener: (data?: DropArgument) => void): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "connection", listener: (socket: Socket) => void): this;
++++        prependOnceListener(event: "error", listener: (err: Error) => void): this;
++++        prependOnceListener(event: "listening", listener: () => void): this;
++++        prependOnceListener(event: "drop", listener: (data?: DropArgument) => void): this;
++++        /**
++++         * Calls {@link Server.close()} and returns a promise that fulfills when the server has closed.
++++         * @since v20.5.0
++++         */
++++        [Symbol.asyncDispose](): Promise<void>;
++++    }
++++    type IPVersion = "ipv4" | "ipv6";
++++    /**
++++     * The `BlockList` object can be used with some network APIs to specify rules for
++++     * disabling inbound or outbound access to specific IP addresses, IP ranges, or
++++     * IP subnets.
++++     * @since v15.0.0, v14.18.0
++++     */
++++    class BlockList {
++++        /**
++++         * Adds a rule to block the given IP address.
++++         * @since v15.0.0, v14.18.0
++++         * @param address An IPv4 or IPv6 address.
++++         * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`.
++++         */
++++        addAddress(address: string, type?: IPVersion): void;
++++        addAddress(address: SocketAddress): void;
++++        /**
++++         * Adds a rule to block a range of IP addresses from `start` (inclusive) to`end` (inclusive).
++++         * @since v15.0.0, v14.18.0
++++         * @param start The starting IPv4 or IPv6 address in the range.
++++         * @param end The ending IPv4 or IPv6 address in the range.
++++         * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`.
++++         */
++++        addRange(start: string, end: string, type?: IPVersion): void;
++++        addRange(start: SocketAddress, end: SocketAddress): void;
++++        /**
++++         * Adds a rule to block a range of IP addresses specified as a subnet mask.
++++         * @since v15.0.0, v14.18.0
++++         * @param net The network IPv4 or IPv6 address.
++++         * @param prefix The number of CIDR prefix bits. For IPv4, this must be a value between `0` and `32`. For IPv6, this must be between `0` and `128`.
++++         * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`.
++++         */
++++        addSubnet(net: SocketAddress, prefix: number): void;
++++        addSubnet(net: string, prefix: number, type?: IPVersion): void;
++++        /**
++++         * Returns `true` if the given IP address matches any of the rules added to the`BlockList`.
++++         *
++++         * ```js
++++         * const blockList = new net.BlockList();
++++         * blockList.addAddress('123.123.123.123');
++++         * blockList.addRange('10.0.0.1', '10.0.0.10');
++++         * blockList.addSubnet('8592:757c:efae:4e45::', 64, 'ipv6');
++++         *
++++         * console.log(blockList.check('123.123.123.123'));  // Prints: true
++++         * console.log(blockList.check('10.0.0.3'));  // Prints: true
++++         * console.log(blockList.check('222.111.111.222'));  // Prints: false
++++         *
++++         * // IPv6 notation for IPv4 addresses works:
++++         * console.log(blockList.check('::ffff:7b7b:7b7b', 'ipv6')); // Prints: true
++++         * console.log(blockList.check('::ffff:123.123.123.123', 'ipv6')); // Prints: true
++++         * ```
++++         * @since v15.0.0, v14.18.0
++++         * @param address The IP address to check
++++         * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`.
++++         */
++++        check(address: SocketAddress): boolean;
++++        check(address: string, type?: IPVersion): boolean;
++++        /**
++++         * The list of rules added to the blocklist.
++++         * @since v15.0.0, v14.18.0
++++         */
++++        rules: readonly string[];
++++    }
++++    interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts {
++++        timeout?: number | undefined;
++++    }
++++    interface IpcNetConnectOpts extends IpcSocketConnectOpts, SocketConstructorOpts {
++++        timeout?: number | undefined;
++++    }
++++    type NetConnectOpts = TcpNetConnectOpts | IpcNetConnectOpts;
++++    /**
++++     * Creates a new TCP or `IPC` server.
++++     *
++++     * If `allowHalfOpen` is set to `true`, when the other end of the socket
++++     * signals the end of transmission, the server will only send back the end of
++++     * transmission when `socket.end()` is explicitly called. For example, in the
++++     * context of TCP, when a FIN packed is received, a FIN packed is sent
++++     * back only when `socket.end()` is explicitly called. Until then the
++++     * connection is half-closed (non-readable but still writable). See `'end'` event and [RFC 1122](https://tools.ietf.org/html/rfc1122) (section 4.2.2.13) for more information.
++++     *
++++     * If `pauseOnConnect` is set to `true`, then the socket associated with each
++++     * incoming connection will be paused, and no data will be read from its handle.
++++     * This allows connections to be passed between processes without any data being
++++     * read by the original process. To begin reading data from a paused socket, call `socket.resume()`.
++++     *
++++     * The server can be a TCP server or an `IPC` server, depending on what it `listen()` to.
++++     *
++++     * Here is an example of a TCP echo server which listens for connections
++++     * on port 8124:
++++     *
++++     * ```js
++++     * import net from 'node:net';
++++     * const server = net.createServer((c) => {
++++     *   // 'connection' listener.
++++     *   console.log('client connected');
++++     *   c.on('end', () => {
++++     *     console.log('client disconnected');
++++     *   });
++++     *   c.write('hello\r\n');
++++     *   c.pipe(c);
++++     * });
++++     * server.on('error', (err) => {
++++     *   throw err;
++++     * });
++++     * server.listen(8124, () => {
++++     *   console.log('server bound');
++++     * });
++++     * ```
++++     *
++++     * Test this by using `telnet`:
++++     *
++++     * ```bash
++++     * telnet localhost 8124
++++     * ```
++++     *
++++     * To listen on the socket `/tmp/echo.sock`:
++++     *
++++     * ```js
++++     * server.listen('/tmp/echo.sock', () => {
++++     *   console.log('server bound');
++++     * });
++++     * ```
++++     *
++++     * Use `nc` to connect to a Unix domain socket server:
++++     *
++++     * ```bash
++++     * nc -U /tmp/echo.sock
++++     * ```
++++     * @since v0.5.0
++++     * @param connectionListener Automatically set as a listener for the {@link 'connection'} event.
++++     */
++++    function createServer(connectionListener?: (socket: Socket) => void): Server;
++++    function createServer(options?: ServerOpts, connectionListener?: (socket: Socket) => void): Server;
++++    /**
++++     * Aliases to {@link createConnection}.
++++     *
++++     * Possible signatures:
++++     *
++++     * * {@link connect}
++++     * * {@link connect} for `IPC` connections.
++++     * * {@link connect} for TCP connections.
++++     */
++++    function connect(options: NetConnectOpts, connectionListener?: () => void): Socket;
++++    function connect(port: number, host?: string, connectionListener?: () => void): Socket;
++++    function connect(path: string, connectionListener?: () => void): Socket;
++++    /**
++++     * A factory function, which creates a new {@link Socket},
++++     * immediately initiates connection with `socket.connect()`,
++++     * then returns the `net.Socket` that starts the connection.
++++     *
++++     * When the connection is established, a `'connect'` event will be emitted
++++     * on the returned socket. The last parameter `connectListener`, if supplied,
++++     * will be added as a listener for the `'connect'` event **once**.
++++     *
++++     * Possible signatures:
++++     *
++++     * * {@link createConnection}
++++     * * {@link createConnection} for `IPC` connections.
++++     * * {@link createConnection} for TCP connections.
++++     *
++++     * The {@link connect} function is an alias to this function.
++++     */
++++    function createConnection(options: NetConnectOpts, connectionListener?: () => void): Socket;
++++    function createConnection(port: number, host?: string, connectionListener?: () => void): Socket;
++++    function createConnection(path: string, connectionListener?: () => void): Socket;
++++    /**
++++     * Gets the current default value of the `autoSelectFamily` option of `socket.connect(options)`.
++++     * The initial default value is `true`, unless the command line option`--no-network-family-autoselection` is provided.
++++     * @since v19.4.0
++++     */
++++    function getDefaultAutoSelectFamily(): boolean;
++++    /**
++++     * Sets the default value of the `autoSelectFamily` option of `socket.connect(options)`.
++++     * @since v19.4.0
++++     */
++++    function setDefaultAutoSelectFamily(value: boolean): void;
++++    /**
++++     * Gets the current default value of the `autoSelectFamilyAttemptTimeout` option of `socket.connect(options)`.
++++     * The initial default value is `250` or the value specified via the command line option `--network-family-autoselection-attempt-timeout`.
++++     * @returns The current default value of the `autoSelectFamilyAttemptTimeout` option.
++++     * @since v19.8.0, v18.8.0
++++     */
++++    function getDefaultAutoSelectFamilyAttemptTimeout(): number;
++++    /**
++++     * Sets the default value of the `autoSelectFamilyAttemptTimeout` option of `socket.connect(options)`.
++++     * @param value The new default value, which must be a positive number. If the number is less than `10`, the value `10` is used instead. The initial default value is `250` or the value specified via the command line
++++     * option `--network-family-autoselection-attempt-timeout`.
++++     * @since v19.8.0, v18.8.0
++++     */
++++    function setDefaultAutoSelectFamilyAttemptTimeout(value: number): void;
++++    /**
++++     * Returns `6` if `input` is an IPv6 address. Returns `4` if `input` is an IPv4
++++     * address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no leading zeroes. Otherwise, returns`0`.
++++     *
++++     * ```js
++++     * net.isIP('::1'); // returns 6
++++     * net.isIP('127.0.0.1'); // returns 4
++++     * net.isIP('127.000.000.001'); // returns 0
++++     * net.isIP('127.0.0.1/24'); // returns 0
++++     * net.isIP('fhqwhgads'); // returns 0
++++     * ```
++++     * @since v0.3.0
++++     */
++++    function isIP(input: string): number;
++++    /**
++++     * Returns `true` if `input` is an IPv4 address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no
++++     * leading zeroes. Otherwise, returns `false`.
++++     *
++++     * ```js
++++     * net.isIPv4('127.0.0.1'); // returns true
++++     * net.isIPv4('127.000.000.001'); // returns false
++++     * net.isIPv4('127.0.0.1/24'); // returns false
++++     * net.isIPv4('fhqwhgads'); // returns false
++++     * ```
++++     * @since v0.3.0
++++     */
++++    function isIPv4(input: string): boolean;
++++    /**
++++     * Returns `true` if `input` is an IPv6 address. Otherwise, returns `false`.
++++     *
++++     * ```js
++++     * net.isIPv6('::1'); // returns true
++++     * net.isIPv6('fhqwhgads'); // returns false
++++     * ```
++++     * @since v0.3.0
++++     */
++++    function isIPv6(input: string): boolean;
++++    interface SocketAddressInitOptions {
++++        /**
++++         * The network address as either an IPv4 or IPv6 string.
++++         * @default 127.0.0.1
++++         */
++++        address?: string | undefined;
++++        /**
++++         * @default `'ipv4'`
++++         */
++++        family?: IPVersion | undefined;
++++        /**
++++         * An IPv6 flow-label used only if `family` is `'ipv6'`.
++++         * @default 0
++++         */
++++        flowlabel?: number | undefined;
++++        /**
++++         * An IP port.
++++         * @default 0
++++         */
++++        port?: number | undefined;
++++    }
++++    /**
++++     * @since v15.14.0, v14.18.0
++++     */
++++    class SocketAddress {
++++        constructor(options: SocketAddressInitOptions);
++++        /**
++++         * Either \`'ipv4'\` or \`'ipv6'\`.
++++         * @since v15.14.0, v14.18.0
++++         */
++++        readonly address: string;
++++        /**
++++         * Either \`'ipv4'\` or \`'ipv6'\`.
++++         * @since v15.14.0, v14.18.0
++++         */
++++        readonly family: IPVersion;
++++        /**
++++         * @since v15.14.0, v14.18.0
++++         */
++++        readonly port: number;
++++        /**
++++         * @since v15.14.0, v14.18.0
++++         */
++++        readonly flowlabel: number;
++++    }
++++}
++++declare module "node:net" {
++++    export * from "net";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..ed2d55c7b9cf69f635079a58b62a58e58be821a6
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,495 @@@@@
++++/**
++++ * The `node:os` module provides operating system-related utility methods and
++++ * properties. It can be accessed using:
++++ *
++++ * ```js
++++ * import os from 'node:os';
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/os.js)
++++ */
++++declare module "os" {
++++    interface CpuInfo {
++++        model: string;
++++        speed: number;
++++        times: {
++++            /** The number of milliseconds the CPU has spent in user mode. */
++++            user: number;
++++            /** The number of milliseconds the CPU has spent in nice mode. */
++++            nice: number;
++++            /** The number of milliseconds the CPU has spent in sys mode. */
++++            sys: number;
++++            /** The number of milliseconds the CPU has spent in idle mode. */
++++            idle: number;
++++            /** The number of milliseconds the CPU has spent in irq mode. */
++++            irq: number;
++++        };
++++    }
++++    interface NetworkInterfaceBase {
++++        address: string;
++++        netmask: string;
++++        mac: string;
++++        internal: boolean;
++++        cidr: string | null;
++++    }
++++    interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase {
++++        family: "IPv4";
++++        scopeid?: undefined;
++++    }
++++    interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase {
++++        family: "IPv6";
++++        scopeid: number;
++++    }
++++    interface UserInfo<T> {
++++        username: T;
++++        uid: number;
++++        gid: number;
++++        shell: T | null;
++++        homedir: T;
++++    }
++++    type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6;
++++    /**
++++     * Returns the host name of the operating system as a string.
++++     * @since v0.3.3
++++     */
++++    function hostname(): string;
++++    /**
++++     * Returns an array containing the 1, 5, and 15 minute load averages.
++++     *
++++     * The load average is a measure of system activity calculated by the operating
++++     * system and expressed as a fractional number.
++++     *
++++     * The load average is a Unix-specific concept. On Windows, the return value is
++++     * always `[0, 0, 0]`.
++++     * @since v0.3.3
++++     */
++++    function loadavg(): number[];
++++    /**
++++     * Returns the system uptime in number of seconds.
++++     * @since v0.3.3
++++     */
++++    function uptime(): number;
++++    /**
++++     * Returns the amount of free system memory in bytes as an integer.
++++     * @since v0.3.3
++++     */
++++    function freemem(): number;
++++    /**
++++     * Returns the total amount of system memory in bytes as an integer.
++++     * @since v0.3.3
++++     */
++++    function totalmem(): number;
++++    /**
++++     * Returns an array of objects containing information about each logical CPU core.
++++     * The array will be empty if no CPU information is available, such as if the `/proc` file system is unavailable.
++++     *
++++     * The properties included on each object include:
++++     *
++++     * ```js
++++     * [
++++     *   {
++++     *     model: 'Intel(R) Core(TM) i7 CPU         860  @ 2.80GHz',
++++     *     speed: 2926,
++++     *     times: {
++++     *       user: 252020,
++++     *       nice: 0,
++++     *       sys: 30340,
++++     *       idle: 1070356870,
++++     *       irq: 0,
++++     *     },
++++     *   },
++++     *   {
++++     *     model: 'Intel(R) Core(TM) i7 CPU         860  @ 2.80GHz',
++++     *     speed: 2926,
++++     *     times: {
++++     *       user: 306960,
++++     *       nice: 0,
++++     *       sys: 26980,
++++     *       idle: 1071569080,
++++     *       irq: 0,
++++     *     },
++++     *   },
++++     *   {
++++     *     model: 'Intel(R) Core(TM) i7 CPU         860  @ 2.80GHz',
++++     *     speed: 2926,
++++     *     times: {
++++     *       user: 248450,
++++     *       nice: 0,
++++     *       sys: 21750,
++++     *       idle: 1070919370,
++++     *       irq: 0,
++++     *     },
++++     *   },
++++     *   {
++++     *     model: 'Intel(R) Core(TM) i7 CPU         860  @ 2.80GHz',
++++     *     speed: 2926,
++++     *     times: {
++++     *       user: 256880,
++++     *       nice: 0,
++++     *       sys: 19430,
++++     *       idle: 1070905480,
++++     *       irq: 20,
++++     *     },
++++     *   },
++++     * ]
++++     * ```
++++     *
++++     * `nice` values are POSIX-only. On Windows, the `nice` values of all processors
++++     * are always 0.
++++     *
++++     * `os.cpus().length` should not be used to calculate the amount of parallelism
++++     * available to an application. Use {@link availableParallelism} for this purpose.
++++     * @since v0.3.3
++++     */
++++    function cpus(): CpuInfo[];
++++    /**
++++     * Returns an estimate of the default amount of parallelism a program should use.
++++     * Always returns a value greater than zero.
++++     *
++++     * This function is a small wrapper about libuv's [`uv_available_parallelism()`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_available_parallelism).
++++     * @since v19.4.0, v18.14.0
++++     */
++++    function availableParallelism(): number;
++++    /**
++++     * Returns the operating system name as returned by [`uname(3)`](https://linux.die.net/man/3/uname). For example, it
++++     * returns `'Linux'` on Linux, `'Darwin'` on macOS, and `'Windows_NT'` on Windows.
++++     *
++++     * See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for additional information
++++     * about the output of running [`uname(3)`](https://linux.die.net/man/3/uname) on various operating systems.
++++     * @since v0.3.3
++++     */
++++    function type(): string;
++++    /**
++++     * Returns the operating system as a string.
++++     *
++++     * On POSIX systems, the operating system release is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `GetVersionExW()` is used. See
++++     * [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information.
++++     * @since v0.3.3
++++     */
++++    function release(): string;
++++    /**
++++     * Returns an object containing network interfaces that have been assigned a
++++     * network address.
++++     *
++++     * Each key on the returned object identifies a network interface. The associated
++++     * value is an array of objects that each describe an assigned network address.
++++     *
++++     * The properties available on the assigned network address object include:
++++     *
++++     * ```js
++++     * {
++++     *   lo: [
++++     *     {
++++     *       address: '127.0.0.1',
++++     *       netmask: '255.0.0.0',
++++     *       family: 'IPv4',
++++     *       mac: '00:00:00:00:00:00',
++++     *       internal: true,
++++     *       cidr: '127.0.0.1/8'
++++     *     },
++++     *     {
++++     *       address: '::1',
++++     *       netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',
++++     *       family: 'IPv6',
++++     *       mac: '00:00:00:00:00:00',
++++     *       scopeid: 0,
++++     *       internal: true,
++++     *       cidr: '::1/128'
++++     *     }
++++     *   ],
++++     *   eth0: [
++++     *     {
++++     *       address: '192.168.1.108',
++++     *       netmask: '255.255.255.0',
++++     *       family: 'IPv4',
++++     *       mac: '01:02:03:0a:0b:0c',
++++     *       internal: false,
++++     *       cidr: '192.168.1.108/24'
++++     *     },
++++     *     {
++++     *       address: 'fe80::a00:27ff:fe4e:66a1',
++++     *       netmask: 'ffff:ffff:ffff:ffff::',
++++     *       family: 'IPv6',
++++     *       mac: '01:02:03:0a:0b:0c',
++++     *       scopeid: 1,
++++     *       internal: false,
++++     *       cidr: 'fe80::a00:27ff:fe4e:66a1/64'
++++     *     }
++++     *   ]
++++     * }
++++     * ```
++++     * @since v0.6.0
++++     */
++++    function networkInterfaces(): NodeJS.Dict<NetworkInterfaceInfo[]>;
++++    /**
++++     * Returns the string path of the current user's home directory.
++++     *
++++     * On POSIX, it uses the `$HOME` environment variable if defined. Otherwise it
++++     * uses the [effective UID](https://en.wikipedia.org/wiki/User_identifier#Effective_user_ID) to look up the user's home directory.
++++     *
++++     * On Windows, it uses the `USERPROFILE` environment variable if defined.
++++     * Otherwise it uses the path to the profile directory of the current user.
++++     * @since v2.3.0
++++     */
++++    function homedir(): string;
++++    /**
++++     * Returns information about the currently effective user. On POSIX platforms,
++++     * this is typically a subset of the password file. The returned object includes
++++     * the `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and `gid` fields are `-1`, and `shell` is `null`.
++++     *
++++     * The value of `homedir` returned by `os.userInfo()` is provided by the operating
++++     * system. This differs from the result of `os.homedir()`, which queries
++++     * environment variables for the home directory before falling back to the
++++     * operating system response.
++++     *
++++     * Throws a [`SystemError`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-systemerror) if a user has no `username` or `homedir`.
++++     * @since v6.0.0
++++     */
++++    function userInfo(options: { encoding: "buffer" }): UserInfo<Buffer>;
++++    function userInfo(options?: { encoding: BufferEncoding }): UserInfo<string>;
++++    type SignalConstants = {
++++        [key in NodeJS.Signals]: number;
++++    };
++++    namespace constants {
++++        const UV_UDP_REUSEADDR: number;
++++        namespace signals {}
++++        const signals: SignalConstants;
++++        namespace errno {
++++            const E2BIG: number;
++++            const EACCES: number;
++++            const EADDRINUSE: number;
++++            const EADDRNOTAVAIL: number;
++++            const EAFNOSUPPORT: number;
++++            const EAGAIN: number;
++++            const EALREADY: number;
++++            const EBADF: number;
++++            const EBADMSG: number;
++++            const EBUSY: number;
++++            const ECANCELED: number;
++++            const ECHILD: number;
++++            const ECONNABORTED: number;
++++            const ECONNREFUSED: number;
++++            const ECONNRESET: number;
++++            const EDEADLK: number;
++++            const EDESTADDRREQ: number;
++++            const EDOM: number;
++++            const EDQUOT: number;
++++            const EEXIST: number;
++++            const EFAULT: number;
++++            const EFBIG: number;
++++            const EHOSTUNREACH: number;
++++            const EIDRM: number;
++++            const EILSEQ: number;
++++            const EINPROGRESS: number;
++++            const EINTR: number;
++++            const EINVAL: number;
++++            const EIO: number;
++++            const EISCONN: number;
++++            const EISDIR: number;
++++            const ELOOP: number;
++++            const EMFILE: number;
++++            const EMLINK: number;
++++            const EMSGSIZE: number;
++++            const EMULTIHOP: number;
++++            const ENAMETOOLONG: number;
++++            const ENETDOWN: number;
++++            const ENETRESET: number;
++++            const ENETUNREACH: number;
++++            const ENFILE: number;
++++            const ENOBUFS: number;
++++            const ENODATA: number;
++++            const ENODEV: number;
++++            const ENOENT: number;
++++            const ENOEXEC: number;
++++            const ENOLCK: number;
++++            const ENOLINK: number;
++++            const ENOMEM: number;
++++            const ENOMSG: number;
++++            const ENOPROTOOPT: number;
++++            const ENOSPC: number;
++++            const ENOSR: number;
++++            const ENOSTR: number;
++++            const ENOSYS: number;
++++            const ENOTCONN: number;
++++            const ENOTDIR: number;
++++            const ENOTEMPTY: number;
++++            const ENOTSOCK: number;
++++            const ENOTSUP: number;
++++            const ENOTTY: number;
++++            const ENXIO: number;
++++            const EOPNOTSUPP: number;
++++            const EOVERFLOW: number;
++++            const EPERM: number;
++++            const EPIPE: number;
++++            const EPROTO: number;
++++            const EPROTONOSUPPORT: number;
++++            const EPROTOTYPE: number;
++++            const ERANGE: number;
++++            const EROFS: number;
++++            const ESPIPE: number;
++++            const ESRCH: number;
++++            const ESTALE: number;
++++            const ETIME: number;
++++            const ETIMEDOUT: number;
++++            const ETXTBSY: number;
++++            const EWOULDBLOCK: number;
++++            const EXDEV: number;
++++            const WSAEINTR: number;
++++            const WSAEBADF: number;
++++            const WSAEACCES: number;
++++            const WSAEFAULT: number;
++++            const WSAEINVAL: number;
++++            const WSAEMFILE: number;
++++            const WSAEWOULDBLOCK: number;
++++            const WSAEINPROGRESS: number;
++++            const WSAEALREADY: number;
++++            const WSAENOTSOCK: number;
++++            const WSAEDESTADDRREQ: number;
++++            const WSAEMSGSIZE: number;
++++            const WSAEPROTOTYPE: number;
++++            const WSAENOPROTOOPT: number;
++++            const WSAEPROTONOSUPPORT: number;
++++            const WSAESOCKTNOSUPPORT: number;
++++            const WSAEOPNOTSUPP: number;
++++            const WSAEPFNOSUPPORT: number;
++++            const WSAEAFNOSUPPORT: number;
++++            const WSAEADDRINUSE: number;
++++            const WSAEADDRNOTAVAIL: number;
++++            const WSAENETDOWN: number;
++++            const WSAENETUNREACH: number;
++++            const WSAENETRESET: number;
++++            const WSAECONNABORTED: number;
++++            const WSAECONNRESET: number;
++++            const WSAENOBUFS: number;
++++            const WSAEISCONN: number;
++++            const WSAENOTCONN: number;
++++            const WSAESHUTDOWN: number;
++++            const WSAETOOMANYREFS: number;
++++            const WSAETIMEDOUT: number;
++++            const WSAECONNREFUSED: number;
++++            const WSAELOOP: number;
++++            const WSAENAMETOOLONG: number;
++++            const WSAEHOSTDOWN: number;
++++            const WSAEHOSTUNREACH: number;
++++            const WSAENOTEMPTY: number;
++++            const WSAEPROCLIM: number;
++++            const WSAEUSERS: number;
++++            const WSAEDQUOT: number;
++++            const WSAESTALE: number;
++++            const WSAEREMOTE: number;
++++            const WSASYSNOTREADY: number;
++++            const WSAVERNOTSUPPORTED: number;
++++            const WSANOTINITIALISED: number;
++++            const WSAEDISCON: number;
++++            const WSAENOMORE: number;
++++            const WSAECANCELLED: number;
++++            const WSAEINVALIDPROCTABLE: number;
++++            const WSAEINVALIDPROVIDER: number;
++++            const WSAEPROVIDERFAILEDINIT: number;
++++            const WSASYSCALLFAILURE: number;
++++            const WSASERVICE_NOT_FOUND: number;
++++            const WSATYPE_NOT_FOUND: number;
++++            const WSA_E_NO_MORE: number;
++++            const WSA_E_CANCELLED: number;
++++            const WSAEREFUSED: number;
++++        }
++++        namespace dlopen {
++++            const RTLD_LAZY: number;
++++            const RTLD_NOW: number;
++++            const RTLD_GLOBAL: number;
++++            const RTLD_LOCAL: number;
++++            const RTLD_DEEPBIND: number;
++++        }
++++        namespace priority {
++++            const PRIORITY_LOW: number;
++++            const PRIORITY_BELOW_NORMAL: number;
++++            const PRIORITY_NORMAL: number;
++++            const PRIORITY_ABOVE_NORMAL: number;
++++            const PRIORITY_HIGH: number;
++++            const PRIORITY_HIGHEST: number;
++++        }
++++    }
++++    const devNull: string;
++++    /**
++++     * The operating system-specific end-of-line marker.
++++     * * `\n` on POSIX
++++     * * `\r\n` on Windows
++++     */
++++    const EOL: string;
++++    /**
++++     * Returns the operating system CPU architecture for which the Node.js binary was
++++     * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`,
++++     * and `'x64'`.
++++     *
++++     * The return value is equivalent to [process.arch](https://nodejs.org/docs/latest-v20.x/api/process.html#processarch).
++++     * @since v0.5.0
++++     */
++++    function arch(): string;
++++    /**
++++     * Returns a string identifying the kernel version.
++++     *
++++     * On POSIX systems, the operating system release is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not
++++     * available, `GetVersionExW()` will be used. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information.
++++     * @since v13.11.0, v12.17.0
++++     */
++++    function version(): string;
++++    /**
++++     * Returns a string identifying the operating system platform for which
++++     * the Node.js binary was compiled. The value is set at compile time.
++++     * Possible values are `'aix'`, `'darwin'`, `'freebsd'`, `'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`.
++++     *
++++     * The return value is equivalent to `process.platform`.
++++     *
++++     * The value `'android'` may also be returned if Node.js is built on the Android
++++     * operating system. [Android support is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os).
++++     * @since v0.5.0
++++     */
++++    function platform(): NodeJS.Platform;
++++    /**
++++     * Returns the machine type as a string, such as `arm`, `arm64`, `aarch64`, `mips`, `mips64`, `ppc64`, `ppc64le`, `s390`, `s390x`, `i386`, `i686`, `x86_64`.
++++     *
++++     * On POSIX systems, the machine type is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not
++++     * available, `GetVersionExW()` will be used. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information.
++++     * @since v18.9.0, v16.18.0
++++     */
++++    function machine(): string;
++++    /**
++++     * Returns the operating system's default directory for temporary files as a
++++     * string.
++++     * @since v0.9.9
++++     */
++++    function tmpdir(): string;
++++    /**
++++     * Returns a string identifying the endianness of the CPU for which the Node.js
++++     * binary was compiled.
++++     *
++++     * Possible values are `'BE'` for big endian and `'LE'` for little endian.
++++     * @since v0.9.4
++++     */
++++    function endianness(): "BE" | "LE";
++++    /**
++++     * Returns the scheduling priority for the process specified by `pid`. If `pid` is
++++     * not provided or is `0`, the priority of the current process is returned.
++++     * @since v10.10.0
++++     * @param [pid=0] The process ID to retrieve scheduling priority for.
++++     */
++++    function getPriority(pid?: number): number;
++++    /**
++++     * Attempts to set the scheduling priority for the process specified by `pid`. If `pid` is not provided or is `0`, the process ID of the current process is used.
++++     *
++++     * The `priority` input must be an integer between `-20` (high priority) and `19` (low priority). Due to differences between Unix priority levels and Windows
++++     * priority classes, `priority` is mapped to one of six priority constants in `os.constants.priority`. When retrieving a process priority level, this range
++++     * mapping may cause the return value to be slightly different on Windows. To avoid
++++     * confusion, set `priority` to one of the priority constants.
++++     *
++++     * On Windows, setting priority to `PRIORITY_HIGHEST` requires elevated user
++++     * privileges. Otherwise the set priority will be silently reduced to `PRIORITY_HIGH`.
++++     * @since v10.10.0
++++     * @param [pid=0] The process ID to set scheduling priority for.
++++     * @param priority The scheduling priority to assign to the process.
++++     */
++++    function setPriority(priority: number): void;
++++    function setPriority(pid: number, priority: number): void;
++++}
++++declare module "node:os" {
++++    export * from "os";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..72e3c15b74004febd1b4a9ba240bacd47c62cc3b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,225 @@@@@
++++{
++++    "name": "@types/node",
++++    "version": "20.17.6",
++++    "description": "TypeScript definitions for node",
++++    "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
++++    "license": "MIT",
++++    "contributors": [
++++        {
++++            "name": "Microsoft TypeScript",
++++            "githubUsername": "Microsoft",
++++            "url": "https://github.com/Microsoft"
++++        },
++++        {
++++            "name": "Alberto Schiabel",
++++            "githubUsername": "jkomyno",
++++            "url": "https://github.com/jkomyno"
++++        },
++++        {
++++            "name": "Alvis HT Tang",
++++            "githubUsername": "alvis",
++++            "url": "https://github.com/alvis"
++++        },
++++        {
++++            "name": "Andrew Makarov",
++++            "githubUsername": "r3nya",
++++            "url": "https://github.com/r3nya"
++++        },
++++        {
++++            "name": "Benjamin Toueg",
++++            "githubUsername": "btoueg",
++++            "url": "https://github.com/btoueg"
++++        },
++++        {
++++            "name": "Chigozirim C.",
++++            "githubUsername": "smac89",
++++            "url": "https://github.com/smac89"
++++        },
++++        {
++++            "name": "David Junger",
++++            "githubUsername": "touffy",
++++            "url": "https://github.com/touffy"
++++        },
++++        {
++++            "name": "Deividas Bakanas",
++++            "githubUsername": "DeividasBakanas",
++++            "url": "https://github.com/DeividasBakanas"
++++        },
++++        {
++++            "name": "Eugene Y. Q. Shen",
++++            "githubUsername": "eyqs",
++++            "url": "https://github.com/eyqs"
++++        },
++++        {
++++            "name": "Hannes Magnusson",
++++            "githubUsername": "Hannes-Magnusson-CK",
++++            "url": "https://github.com/Hannes-Magnusson-CK"
++++        },
++++        {
++++            "name": "Huw",
++++            "githubUsername": "hoo29",
++++            "url": "https://github.com/hoo29"
++++        },
++++        {
++++            "name": "Kelvin Jin",
++++            "githubUsername": "kjin",
++++            "url": "https://github.com/kjin"
++++        },
++++        {
++++            "name": "Klaus Meinhardt",
++++            "githubUsername": "ajafff",
++++            "url": "https://github.com/ajafff"
++++        },
++++        {
++++            "name": "Lishude",
++++            "githubUsername": "islishude",
++++            "url": "https://github.com/islishude"
++++        },
++++        {
++++            "name": "Mariusz Wiktorczyk",
++++            "githubUsername": "mwiktorczyk",
++++            "url": "https://github.com/mwiktorczyk"
++++        },
++++        {
++++            "name": "Mohsen Azimi",
++++            "githubUsername": "mohsen1",
++++            "url": "https://github.com/mohsen1"
++++        },
++++        {
++++            "name": "Nikita Galkin",
++++            "githubUsername": "galkin",
++++            "url": "https://github.com/galkin"
++++        },
++++        {
++++            "name": "Parambir Singh",
++++            "githubUsername": "parambirs",
++++            "url": "https://github.com/parambirs"
++++        },
++++        {
++++            "name": "Sebastian Silbermann",
++++            "githubUsername": "eps1lon",
++++            "url": "https://github.com/eps1lon"
++++        },
++++        {
++++            "name": "Thomas den Hollander",
++++            "githubUsername": "ThomasdenH",
++++            "url": "https://github.com/ThomasdenH"
++++        },
++++        {
++++            "name": "Wilco Bakker",
++++            "githubUsername": "WilcoBakker",
++++            "url": "https://github.com/WilcoBakker"
++++        },
++++        {
++++            "name": "wwwy3y3",
++++            "githubUsername": "wwwy3y3",
++++            "url": "https://github.com/wwwy3y3"
++++        },
++++        {
++++            "name": "Samuel Ainsworth",
++++            "githubUsername": "samuela",
++++            "url": "https://github.com/samuela"
++++        },
++++        {
++++            "name": "Kyle Uehlein",
++++            "githubUsername": "kuehlein",
++++            "url": "https://github.com/kuehlein"
++++        },
++++        {
++++            "name": "Thanik Bhongbhibhat",
++++            "githubUsername": "bhongy",
++++            "url": "https://github.com/bhongy"
++++        },
++++        {
++++            "name": "Marcin Kopacz",
++++            "githubUsername": "chyzwar",
++++            "url": "https://github.com/chyzwar"
++++        },
++++        {
++++            "name": "Trivikram Kamat",
++++            "githubUsername": "trivikr",
++++            "url": "https://github.com/trivikr"
++++        },
++++        {
++++            "name": "Junxiao Shi",
++++            "githubUsername": "yoursunny",
++++            "url": "https://github.com/yoursunny"
++++        },
++++        {
++++            "name": "Ilia Baryshnikov",
++++            "githubUsername": "qwelias",
++++            "url": "https://github.com/qwelias"
++++        },
++++        {
++++            "name": "ExE Boss",
++++            "githubUsername": "ExE-Boss",
++++            "url": "https://github.com/ExE-Boss"
++++        },
++++        {
++++            "name": "Piotr Błażejewicz",
++++            "githubUsername": "peterblazejewicz",
++++            "url": "https://github.com/peterblazejewicz"
++++        },
++++        {
++++            "name": "Anna Henningsen",
++++            "githubUsername": "addaleax",
++++            "url": "https://github.com/addaleax"
++++        },
++++        {
++++            "name": "Victor Perin",
++++            "githubUsername": "victorperin",
++++            "url": "https://github.com/victorperin"
++++        },
++++        {
++++            "name": "Yongsheng Zhang",
++++            "githubUsername": "ZYSzys",
++++            "url": "https://github.com/ZYSzys"
++++        },
++++        {
++++            "name": "NodeJS Contributors",
++++            "githubUsername": "NodeJS",
++++            "url": "https://github.com/NodeJS"
++++        },
++++        {
++++            "name": "Linus Unnebäck",
++++            "githubUsername": "LinusU",
++++            "url": "https://github.com/LinusU"
++++        },
++++        {
++++            "name": "wafuwafu13",
++++            "githubUsername": "wafuwafu13",
++++            "url": "https://github.com/wafuwafu13"
++++        },
++++        {
++++            "name": "Matteo Collina",
++++            "githubUsername": "mcollina",
++++            "url": "https://github.com/mcollina"
++++        },
++++        {
++++            "name": "Dmitry Semigradsky",
++++            "githubUsername": "Semigradsky",
++++            "url": "https://github.com/Semigradsky"
++++        }
++++    ],
++++    "main": "",
++++    "types": "index.d.ts",
++++    "typesVersions": {
++++        "<=5.6": {
++++            "*": [
++++                "ts5.6/*"
++++            ]
++++        }
++++    },
++++    "repository": {
++++        "type": "git",
++++        "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
++++        "directory": "types/node"
++++    },
++++    "scripts": {},
++++    "dependencies": {
++++        "undici-types": "~6.19.2"
++++    },
++++    "peerDependencies": {},
++++    "typesPublisherContentHash": "e945f5f992cda0b183de7a341748f9671f16e3ff888f00547c222f8ff2fcba76",
++++    "typeScriptVersion": "4.8"
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7bdc7c5f1acca2da74a2801aab0a6eba677281d2
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,200 @@@@@
++++declare module "path/posix" {
++++    import path = require("path");
++++    export = path;
++++}
++++declare module "path/win32" {
++++    import path = require("path");
++++    export = path;
++++}
++++/**
++++ * The `node:path` module provides utilities for working with file and directory
++++ * paths. It can be accessed using:
++++ *
++++ * ```js
++++ * import path from 'node:path';
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/path.js)
++++ */
++++declare module "path" {
++++    namespace path {
++++        /**
++++         * A parsed path object generated by path.parse() or consumed by path.format().
++++         */
++++        interface ParsedPath {
++++            /**
++++             * The root of the path such as '/' or 'c:\'
++++             */
++++            root: string;
++++            /**
++++             * The full directory path such as '/home/user/dir' or 'c:\path\dir'
++++             */
++++            dir: string;
++++            /**
++++             * The file name including extension (if any) such as 'index.html'
++++             */
++++            base: string;
++++            /**
++++             * The file extension (if any) such as '.html'
++++             */
++++            ext: string;
++++            /**
++++             * The file name without extension (if any) such as 'index'
++++             */
++++            name: string;
++++        }
++++        interface FormatInputPathObject {
++++            /**
++++             * The root of the path such as '/' or 'c:\'
++++             */
++++            root?: string | undefined;
++++            /**
++++             * The full directory path such as '/home/user/dir' or 'c:\path\dir'
++++             */
++++            dir?: string | undefined;
++++            /**
++++             * The file name including extension (if any) such as 'index.html'
++++             */
++++            base?: string | undefined;
++++            /**
++++             * The file extension (if any) such as '.html'
++++             */
++++            ext?: string | undefined;
++++            /**
++++             * The file name without extension (if any) such as 'index'
++++             */
++++            name?: string | undefined;
++++        }
++++        interface PlatformPath {
++++            /**
++++             * Normalize a string path, reducing '..' and '.' parts.
++++             * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used.
++++             *
++++             * @param path string path to normalize.
++++             * @throws {TypeError} if `path` is not a string.
++++             */
++++            normalize(path: string): string;
++++            /**
++++             * Join all arguments together and normalize the resulting path.
++++             *
++++             * @param paths paths to join.
++++             * @throws {TypeError} if any of the path segments is not a string.
++++             */
++++            join(...paths: string[]): string;
++++            /**
++++             * The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
++++             *
++++             * Starting from leftmost {from} parameter, resolves {to} to an absolute path.
++++             *
++++             * If {to} isn't already absolute, {from} arguments are prepended in right to left order,
++++             * until an absolute path is found. If after using all {from} paths still no absolute path is found,
++++             * the current working directory is used as well. The resulting path is normalized,
++++             * and trailing slashes are removed unless the path gets resolved to the root directory.
++++             *
++++             * @param paths A sequence of paths or path segments.
++++             * @throws {TypeError} if any of the arguments is not a string.
++++             */
++++            resolve(...paths: string[]): string;
++++            /**
++++             * The `path.matchesGlob()` method determines if `path` matches the `pattern`.
++++             * @param path The path to glob-match against.
++++             * @param pattern The glob to check the path against.
++++             * @returns Whether or not the `path` matched the `pattern`.
++++             * @throws {TypeError} if `path` or `pattern` are not strings.
++++             * @since v20.17.0
++++             */
++++            matchesGlob(path: string, pattern: string): boolean;
++++            /**
++++             * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.
++++             *
++++             * If the given {path} is a zero-length string, `false` will be returned.
++++             *
++++             * @param path path to test.
++++             * @throws {TypeError} if `path` is not a string.
++++             */
++++            isAbsolute(path: string): boolean;
++++            /**
++++             * Solve the relative path from {from} to {to} based on the current working directory.
++++             * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve.
++++             *
++++             * @throws {TypeError} if either `from` or `to` is not a string.
++++             */
++++            relative(from: string, to: string): string;
++++            /**
++++             * Return the directory name of a path. Similar to the Unix dirname command.
++++             *
++++             * @param path the path to evaluate.
++++             * @throws {TypeError} if `path` is not a string.
++++             */
++++            dirname(path: string): string;
++++            /**
++++             * Return the last portion of a path. Similar to the Unix basename command.
++++             * Often used to extract the file name from a fully qualified path.
++++             *
++++             * @param path the path to evaluate.
++++             * @param suffix optionally, an extension to remove from the result.
++++             * @throws {TypeError} if `path` is not a string or if `ext` is given and is not a string.
++++             */
++++            basename(path: string, suffix?: string): string;
++++            /**
++++             * Return the extension of the path, from the last '.' to end of string in the last portion of the path.
++++             * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string.
++++             *
++++             * @param path the path to evaluate.
++++             * @throws {TypeError} if `path` is not a string.
++++             */
++++            extname(path: string): string;
++++            /**
++++             * The platform-specific file separator. '\\' or '/'.
++++             */
++++            readonly sep: "\\" | "/";
++++            /**
++++             * The platform-specific file delimiter. ';' or ':'.
++++             */
++++            readonly delimiter: ";" | ":";
++++            /**
++++             * Returns an object from a path string - the opposite of format().
++++             *
++++             * @param path path to evaluate.
++++             * @throws {TypeError} if `path` is not a string.
++++             */
++++            parse(path: string): ParsedPath;
++++            /**
++++             * Returns a path string from an object - the opposite of parse().
++++             *
++++             * @param pathObject path to evaluate.
++++             */
++++            format(pathObject: FormatInputPathObject): string;
++++            /**
++++             * On Windows systems only, returns an equivalent namespace-prefixed path for the given path.
++++             * If path is not a string, path will be returned without modifications.
++++             * This method is meaningful only on Windows system.
++++             * On POSIX systems, the method is non-operational and always returns path without modifications.
++++             */
++++            toNamespacedPath(path: string): string;
++++            /**
++++             * Posix specific pathing.
++++             * Same as parent object on posix.
++++             */
++++            readonly posix: PlatformPath;
++++            /**
++++             * Windows specific pathing.
++++             * Same as parent object on windows
++++             */
++++            readonly win32: PlatformPath;
++++        }
++++    }
++++    const path: path.PlatformPath;
++++    export = path;
++++}
++++declare module "node:path" {
++++    import path = require("path");
++++    export = path;
++++}
++++declare module "node:path/posix" {
++++    import path = require("path/posix");
++++    export = path;
++++}
++++declare module "node:path/win32" {
++++    import path = require("path/win32");
++++    export = path;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..081e9374451a7dafff2cd468bfe0d650c778c42b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,934 @@@@@
++++/**
++++ * This module provides an implementation of a subset of the W3C [Web Performance APIs](https://w3c.github.io/perf-timing-primer/) as well as additional APIs for
++++ * Node.js-specific performance measurements.
++++ *
++++ * Node.js supports the following [Web Performance APIs](https://w3c.github.io/perf-timing-primer/):
++++ *
++++ * * [High Resolution Time](https://www.w3.org/TR/hr-time-2)
++++ * * [Performance Timeline](https://w3c.github.io/performance-timeline/)
++++ * * [User Timing](https://www.w3.org/TR/user-timing/)
++++ * * [Resource Timing](https://www.w3.org/TR/resource-timing-2/)
++++ *
++++ * ```js
++++ * import { PerformanceObserver, performance } from 'node:perf_hooks';
++++ *
++++ * const obs = new PerformanceObserver((items) => {
++++ *   console.log(items.getEntries()[0].duration);
++++ *   performance.clearMarks();
++++ * });
++++ * obs.observe({ type: 'measure' });
++++ * performance.measure('Start to Now');
++++ *
++++ * performance.mark('A');
++++ * doSomeLongRunningProcess(() => {
++++ *   performance.measure('A to Now', 'A');
++++ *
++++ *   performance.mark('B');
++++ *   performance.measure('A to B', 'A', 'B');
++++ * });
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/perf_hooks.js)
++++ */
++++declare module "perf_hooks" {
++++    import { AsyncResource } from "node:async_hooks";
++++    type EntryType =
++++        | "dns" // Node.js only
++++        | "function" // Node.js only
++++        | "gc" // Node.js only
++++        | "http2" // Node.js only
++++        | "http" // Node.js only
++++        | "mark" // available on the Web
++++        | "measure" // available on the Web
++++        | "net" // Node.js only
++++        | "node" // Node.js only
++++        | "resource"; // available on the Web
++++    interface NodeGCPerformanceDetail {
++++        /**
++++         * When `performanceEntry.entryType` is equal to 'gc', the `performance.kind` property identifies
++++         * the type of garbage collection operation that occurred.
++++         * See perf_hooks.constants for valid values.
++++         */
++++        readonly kind?: number | undefined;
++++        /**
++++         * When `performanceEntry.entryType` is equal to 'gc', the `performance.flags`
++++         * property contains additional information about garbage collection operation.
++++         * See perf_hooks.constants for valid values.
++++         */
++++        readonly flags?: number | undefined;
++++    }
++++    /**
++++     * The constructor of this class is not exposed to users directly.
++++     * @since v8.5.0
++++     */
++++    class PerformanceEntry {
++++        protected constructor();
++++        /**
++++         * The total number of milliseconds elapsed for this entry. This value will not
++++         * be meaningful for all Performance Entry types.
++++         * @since v8.5.0
++++         */
++++        readonly duration: number;
++++        /**
++++         * The name of the performance entry.
++++         * @since v8.5.0
++++         */
++++        readonly name: string;
++++        /**
++++         * The high resolution millisecond timestamp marking the starting time of the
++++         * Performance Entry.
++++         * @since v8.5.0
++++         */
++++        readonly startTime: number;
++++        /**
++++         * The type of the performance entry. It may be one of:
++++         *
++++         * * `'node'` (Node.js only)
++++         * * `'mark'` (available on the Web)
++++         * * `'measure'` (available on the Web)
++++         * * `'gc'` (Node.js only)
++++         * * `'function'` (Node.js only)
++++         * * `'http2'` (Node.js only)
++++         * * `'http'` (Node.js only)
++++         * @since v8.5.0
++++         */
++++        readonly entryType: EntryType;
++++        /**
++++         * Additional detail specific to the `entryType`.
++++         * @since v16.0.0
++++         */
++++        readonly detail?: NodeGCPerformanceDetail | unknown | undefined; // TODO: Narrow this based on entry type.
++++        toJSON(): any;
++++    }
++++    /**
++++     * Exposes marks created via the `Performance.mark()` method.
++++     * @since v18.2.0, v16.17.0
++++     */
++++    class PerformanceMark extends PerformanceEntry {
++++        readonly duration: 0;
++++        readonly entryType: "mark";
++++    }
++++    /**
++++     * Exposes measures created via the `Performance.measure()` method.
++++     *
++++     * The constructor of this class is not exposed to users directly.
++++     * @since v18.2.0, v16.17.0
++++     */
++++    class PerformanceMeasure extends PerformanceEntry {
++++        readonly entryType: "measure";
++++    }
++++    /**
++++     * _This property is an extension by Node.js. It is not available in Web browsers._
++++     *
++++     * Provides timing details for Node.js itself. The constructor of this class
++++     * is not exposed to users.
++++     * @since v8.5.0
++++     */
++++    class PerformanceNodeTiming extends PerformanceEntry {
++++        /**
++++         * The high resolution millisecond timestamp at which the Node.js process
++++         * completed bootstrapping. If bootstrapping has not yet finished, the property
++++         * has the value of -1.
++++         * @since v8.5.0
++++         */
++++        readonly bootstrapComplete: number;
++++        /**
++++         * The high resolution millisecond timestamp at which the Node.js environment was
++++         * initialized.
++++         * @since v8.5.0
++++         */
++++        readonly environment: number;
++++        /**
++++         * The high resolution millisecond timestamp of the amount of time the event loop
++++         * has been idle within the event loop's event provider (e.g. `epoll_wait`). This
++++         * does not take CPU usage into consideration. If the event loop has not yet
++++         * started (e.g., in the first tick of the main script), the property has the
++++         * value of 0.
++++         * @since v14.10.0, v12.19.0
++++         */
++++        readonly idleTime: number;
++++        /**
++++         * The high resolution millisecond timestamp at which the Node.js event loop
++++         * exited. If the event loop has not yet exited, the property has the value of -1\.
++++         * It can only have a value of not -1 in a handler of the `'exit'` event.
++++         * @since v8.5.0
++++         */
++++        readonly loopExit: number;
++++        /**
++++         * The high resolution millisecond timestamp at which the Node.js event loop
++++         * started. If the event loop has not yet started (e.g., in the first tick of the
++++         * main script), the property has the value of -1.
++++         * @since v8.5.0
++++         */
++++        readonly loopStart: number;
++++        /**
++++         * The high resolution millisecond timestamp at which the Node.js process was initialized.
++++         * @since v8.5.0
++++         */
++++        readonly nodeStart: number;
++++        /**
++++         * The high resolution millisecond timestamp at which the V8 platform was
++++         * initialized.
++++         * @since v8.5.0
++++         */
++++        readonly v8Start: number;
++++    }
++++    interface EventLoopUtilization {
++++        idle: number;
++++        active: number;
++++        utilization: number;
++++    }
++++    /**
++++     * @param utilization1 The result of a previous call to `eventLoopUtilization()`.
++++     * @param utilization2 The result of a previous call to `eventLoopUtilization()` prior to `utilization1`.
++++     */
++++    type EventLoopUtilityFunction = (
++++        utilization1?: EventLoopUtilization,
++++        utilization2?: EventLoopUtilization,
++++    ) => EventLoopUtilization;
++++    interface MarkOptions {
++++        /**
++++         * Additional optional detail to include with the mark.
++++         */
++++        detail?: unknown | undefined;
++++        /**
++++         * An optional timestamp to be used as the mark time.
++++         * @default `performance.now()`
++++         */
++++        startTime?: number | undefined;
++++    }
++++    interface MeasureOptions {
++++        /**
++++         * Additional optional detail to include with the mark.
++++         */
++++        detail?: unknown | undefined;
++++        /**
++++         * Duration between start and end times.
++++         */
++++        duration?: number | undefined;
++++        /**
++++         * Timestamp to be used as the end time, or a string identifying a previously recorded mark.
++++         */
++++        end?: number | string | undefined;
++++        /**
++++         * Timestamp to be used as the start time, or a string identifying a previously recorded mark.
++++         */
++++        start?: number | string | undefined;
++++    }
++++    interface TimerifyOptions {
++++        /**
++++         * A histogram object created using `perf_hooks.createHistogram()` that will record runtime
++++         * durations in nanoseconds.
++++         */
++++        histogram?: RecordableHistogram | undefined;
++++    }
++++    interface Performance {
++++        /**
++++         * If `name` is not provided, removes all `PerformanceMark` objects from the Performance Timeline.
++++         * If `name` is provided, removes only the named mark.
++++         * @since v8.5.0
++++         */
++++        clearMarks(name?: string): void;
++++        /**
++++         * If `name` is not provided, removes all `PerformanceMeasure` objects from the Performance Timeline.
++++         * If `name` is provided, removes only the named measure.
++++         * @since v16.7.0
++++         */
++++        clearMeasures(name?: string): void;
++++        /**
++++         * If `name` is not provided, removes all `PerformanceResourceTiming` objects from the Resource Timeline.
++++         * If `name` is provided, removes only the named resource.
++++         * @since v18.2.0, v16.17.0
++++         */
++++        clearResourceTimings(name?: string): void;
++++        /**
++++         * eventLoopUtilization is similar to CPU utilization except that it is calculated using high precision wall-clock time.
++++         * It represents the percentage of time the event loop has spent outside the event loop's event provider (e.g. epoll_wait).
++++         * No other CPU idle time is taken into consideration.
++++         */
++++        eventLoopUtilization: EventLoopUtilityFunction;
++++        /**
++++         * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime`.
++++         * If you are only interested in performance entries of certain types or that have certain names, see
++++         * `performance.getEntriesByType()` and `performance.getEntriesByName()`.
++++         * @since v16.7.0
++++         */
++++        getEntries(): PerformanceEntry[];
++++        /**
++++         * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime`
++++         * whose `performanceEntry.name` is equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to `type`.
++++         * @param name
++++         * @param type
++++         * @since v16.7.0
++++         */
++++        getEntriesByName(name: string, type?: EntryType): PerformanceEntry[];
++++        /**
++++         * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime`
++++         * whose `performanceEntry.entryType` is equal to `type`.
++++         * @param type
++++         * @since v16.7.0
++++         */
++++        getEntriesByType(type: EntryType): PerformanceEntry[];
++++        /**
++++         * Creates a new `PerformanceMark` entry in the Performance Timeline.
++++         * A `PerformanceMark` is a subclass of `PerformanceEntry` whose `performanceEntry.entryType` is always `'mark'`,
++++         * and whose `performanceEntry.duration` is always `0`.
++++         * Performance marks are used to mark specific significant moments in the Performance Timeline.
++++         *
++++         * The created `PerformanceMark` entry is put in the global Performance Timeline and can be queried with
++++         * `performance.getEntries`, `performance.getEntriesByName`, and `performance.getEntriesByType`. When the observation is
++++         * performed, the entries should be cleared from the global Performance Timeline manually with `performance.clearMarks`.
++++         * @param name
++++         */
++++        mark(name: string, options?: MarkOptions): PerformanceMark;
++++        /**
++++         * Creates a new `PerformanceResourceTiming` entry in the Resource Timeline.
++++         * A `PerformanceResourceTiming` is a subclass of `PerformanceEntry` whose `performanceEntry.entryType` is always `'resource'`.
++++         * Performance resources are used to mark moments in the Resource Timeline.
++++         * @param timingInfo [Fetch Timing Info](https://fetch.spec.whatwg.org/#fetch-timing-info)
++++         * @param requestedUrl The resource url
++++         * @param initiatorType The initiator name, e.g: 'fetch'
++++         * @param global
++++         * @param cacheMode The cache mode must be an empty string ('') or 'local'
++++         * @since v18.2.0, v16.17.0
++++         */
++++        markResourceTiming(
++++            timingInfo: object,
++++            requestedUrl: string,
++++            initiatorType: string,
++++            global: object,
++++            cacheMode: "" | "local",
++++        ): PerformanceResourceTiming;
++++        /**
++++         * Creates a new PerformanceMeasure entry in the Performance Timeline.
++++         * A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure',
++++         * and whose performanceEntry.duration measures the number of milliseconds elapsed since startMark and endMark.
++++         *
++++         * The startMark argument may identify any existing PerformanceMark in the the Performance Timeline, or may identify
++++         * any of the timestamp properties provided by the PerformanceNodeTiming class. If the named startMark does not exist,
++++         * then startMark is set to timeOrigin by default.
++++         *
++++         * The endMark argument must identify any existing PerformanceMark in the the Performance Timeline or any of the timestamp
++++         * properties provided by the PerformanceNodeTiming class. If the named endMark does not exist, an error will be thrown.
++++         * @param name
++++         * @param startMark
++++         * @param endMark
++++         * @return The PerformanceMeasure entry that was created
++++         */
++++        measure(name: string, startMark?: string, endMark?: string): PerformanceMeasure;
++++        measure(name: string, options: MeasureOptions): PerformanceMeasure;
++++        /**
++++         * _This property is an extension by Node.js. It is not available in Web browsers._
++++         *
++++         * An instance of the `PerformanceNodeTiming` class that provides performance metrics for specific Node.js operational milestones.
++++         * @since v8.5.0
++++         */
++++        readonly nodeTiming: PerformanceNodeTiming;
++++        /**
++++         * Returns the current high resolution millisecond timestamp, where 0 represents the start of the current `node` process.
++++         * @since v8.5.0
++++         */
++++        now(): number;
++++        /**
++++         * Sets the global performance resource timing buffer size to the specified number of "resource" type performance entry objects.
++++         *
++++         * By default the max buffer size is set to 250.
++++         * @since v18.8.0
++++         */
++++        setResourceTimingBufferSize(maxSize: number): void;
++++        /**
++++         * The [`timeOrigin`](https://w3c.github.io/hr-time/#dom-performance-timeorigin) specifies the high resolution millisecond timestamp
++++         * at which the current `node` process began, measured in Unix time.
++++         * @since v8.5.0
++++         */
++++        readonly timeOrigin: number;
++++        /**
++++         * _This property is an extension by Node.js. It is not available in Web browsers._
++++         *
++++         * Wraps a function within a new function that measures the running time of the wrapped function.
++++         * A `PerformanceObserver` must be subscribed to the `'function'` event type in order for the timing details to be accessed.
++++         *
++++         * ```js
++++         * import {
++++         *   performance,
++++         *   PerformanceObserver,
++++         * } from 'node:perf_hooks';
++++         *
++++         * function someFunction() {
++++         *   console.log('hello world');
++++         * }
++++         *
++++         * const wrapped = performance.timerify(someFunction);
++++         *
++++         * const obs = new PerformanceObserver((list) => {
++++         *   console.log(list.getEntries()[0].duration);
++++         *
++++         *   performance.clearMarks();
++++         *   performance.clearMeasures();
++++         *   obs.disconnect();
++++         * });
++++         * obs.observe({ entryTypes: ['function'] });
++++         *
++++         * // A performance timeline entry will be created
++++         * wrapped();
++++         * ```
++++         *
++++         * If the wrapped function returns a promise, a finally handler will be attached to the promise and the duration will be reported
++++         * once the finally handler is invoked.
++++         * @param fn
++++         */
++++        timerify<T extends (...params: any[]) => any>(fn: T, options?: TimerifyOptions): T;
++++        /**
++++         * An object which is JSON representation of the performance object. It is similar to
++++         * [`window.performance.toJSON`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/toJSON) in browsers.
++++         * @since v16.1.0
++++         */
++++        toJSON(): any;
++++    }
++++    class PerformanceObserverEntryList {
++++        /**
++++         * Returns a list of `PerformanceEntry` objects in chronological order
++++         * with respect to `performanceEntry.startTime`.
++++         *
++++         * ```js
++++         * import {
++++         *   performance,
++++         *   PerformanceObserver,
++++         * } from 'node:perf_hooks';
++++         *
++++         * const obs = new PerformanceObserver((perfObserverList, observer) => {
++++         *   console.log(perfObserverList.getEntries());
++++         *
++++         *    * [
++++         *    *   PerformanceEntry {
++++         *    *     name: 'test',
++++         *    *     entryType: 'mark',
++++         *    *     startTime: 81.465639,
++++         *    *     duration: 0,
++++         *    *     detail: null
++++         *    *   },
++++         *    *   PerformanceEntry {
++++         *    *     name: 'meow',
++++         *    *     entryType: 'mark',
++++         *    *     startTime: 81.860064,
++++         *    *     duration: 0,
++++         *    *     detail: null
++++         *    *   }
++++         *    * ]
++++         *
++++         *   performance.clearMarks();
++++         *   performance.clearMeasures();
++++         *   observer.disconnect();
++++         * });
++++         * obs.observe({ type: 'mark' });
++++         *
++++         * performance.mark('test');
++++         * performance.mark('meow');
++++         * ```
++++         * @since v8.5.0
++++         */
++++        getEntries(): PerformanceEntry[];
++++        /**
++++         * Returns a list of `PerformanceEntry` objects in chronological order
++++         * with respect to `performanceEntry.startTime` whose `performanceEntry.name` is
++++         * equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to`type`.
++++         *
++++         * ```js
++++         * import {
++++         *   performance,
++++         *   PerformanceObserver,
++++         * } from 'node:perf_hooks';
++++         *
++++         * const obs = new PerformanceObserver((perfObserverList, observer) => {
++++         *   console.log(perfObserverList.getEntriesByName('meow'));
++++         *
++++         *    * [
++++         *    *   PerformanceEntry {
++++         *    *     name: 'meow',
++++         *    *     entryType: 'mark',
++++         *    *     startTime: 98.545991,
++++         *    *     duration: 0,
++++         *    *     detail: null
++++         *    *   }
++++         *    * ]
++++         *
++++         *   console.log(perfObserverList.getEntriesByName('nope')); // []
++++         *
++++         *   console.log(perfObserverList.getEntriesByName('test', 'mark'));
++++         *
++++         *    * [
++++         *    *   PerformanceEntry {
++++         *    *     name: 'test',
++++         *    *     entryType: 'mark',
++++         *    *     startTime: 63.518931,
++++         *    *     duration: 0,
++++         *    *     detail: null
++++         *    *   }
++++         *    * ]
++++         *
++++         *   console.log(perfObserverList.getEntriesByName('test', 'measure')); // []
++++         *
++++         *   performance.clearMarks();
++++         *   performance.clearMeasures();
++++         *   observer.disconnect();
++++         * });
++++         * obs.observe({ entryTypes: ['mark', 'measure'] });
++++         *
++++         * performance.mark('test');
++++         * performance.mark('meow');
++++         * ```
++++         * @since v8.5.0
++++         */
++++        getEntriesByName(name: string, type?: EntryType): PerformanceEntry[];
++++        /**
++++         * Returns a list of `PerformanceEntry` objects in chronological order
++++         * with respect to `performanceEntry.startTime` whose `performanceEntry.entryType` is equal to `type`.
++++         *
++++         * ```js
++++         * import {
++++         *   performance,
++++         *   PerformanceObserver,
++++         * } from 'node:perf_hooks';
++++         *
++++         * const obs = new PerformanceObserver((perfObserverList, observer) => {
++++         *   console.log(perfObserverList.getEntriesByType('mark'));
++++         *
++++         *    * [
++++         *    *   PerformanceEntry {
++++         *    *     name: 'test',
++++         *    *     entryType: 'mark',
++++         *    *     startTime: 55.897834,
++++         *    *     duration: 0,
++++         *    *     detail: null
++++         *    *   },
++++         *    *   PerformanceEntry {
++++         *    *     name: 'meow',
++++         *    *     entryType: 'mark',
++++         *    *     startTime: 56.350146,
++++         *    *     duration: 0,
++++         *    *     detail: null
++++         *    *   }
++++         *    * ]
++++         *
++++         *   performance.clearMarks();
++++         *   performance.clearMeasures();
++++         *   observer.disconnect();
++++         * });
++++         * obs.observe({ type: 'mark' });
++++         *
++++         * performance.mark('test');
++++         * performance.mark('meow');
++++         * ```
++++         * @since v8.5.0
++++         */
++++        getEntriesByType(type: EntryType): PerformanceEntry[];
++++    }
++++    type PerformanceObserverCallback = (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void;
++++    /**
++++     * @since v8.5.0
++++     */
++++    class PerformanceObserver extends AsyncResource {
++++        constructor(callback: PerformanceObserverCallback);
++++        /**
++++         * Disconnects the `PerformanceObserver` instance from all notifications.
++++         * @since v8.5.0
++++         */
++++        disconnect(): void;
++++        /**
++++         * Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes` or `options.type`:
++++         *
++++         * ```js
++++         * import {
++++         *   performance,
++++         *   PerformanceObserver,
++++         * } from 'node:perf_hooks';
++++         *
++++         * const obs = new PerformanceObserver((list, observer) => {
++++         *   // Called once asynchronously. `list` contains three items.
++++         * });
++++         * obs.observe({ type: 'mark' });
++++         *
++++         * for (let n = 0; n < 3; n++)
++++         *   performance.mark(`test${n}`);
++++         * ```
++++         * @since v8.5.0
++++         */
++++        observe(
++++            options:
++++                | {
++++                    entryTypes: readonly EntryType[];
++++                    buffered?: boolean | undefined;
++++                }
++++                | {
++++                    type: EntryType;
++++                    buffered?: boolean | undefined;
++++                },
++++        ): void;
++++    }
++++    /**
++++     * Provides detailed network timing data regarding the loading of an application's resources.
++++     *
++++     * The constructor of this class is not exposed to users directly.
++++     * @since v18.2.0, v16.17.0
++++     */
++++    class PerformanceResourceTiming extends PerformanceEntry {
++++        readonly entryType: "resource";
++++        protected constructor();
++++        /**
++++         * The high resolution millisecond timestamp at immediately before dispatching the `fetch`
++++         * request. If the resource is not intercepted by a worker the property will always return 0.
++++         * @since v18.2.0, v16.17.0
++++         */
++++        readonly workerStart: number;
++++        /**
++++         * The high resolution millisecond timestamp that represents the start time of the fetch which
++++         * initiates the redirect.
++++         * @since v18.2.0, v16.17.0
++++         */
++++        readonly redirectStart: number;
++++        /**
++++         * The high resolution millisecond timestamp that will be created immediately after receiving
++++         * the last byte of the response of the last redirect.
++++         * @since v18.2.0, v16.17.0
++++         */
++++        readonly redirectEnd: number;
++++        /**
++++         * The high resolution millisecond timestamp immediately before the Node.js starts to fetch the resource.
++++         * @since v18.2.0, v16.17.0
++++         */
++++        readonly fetchStart: number;
++++        /**
++++         * The high resolution millisecond timestamp immediately before the Node.js starts the domain name lookup
++++         * for the resource.
++++         * @since v18.2.0, v16.17.0
++++         */
++++        readonly domainLookupStart: number;
++++        /**
++++         * The high resolution millisecond timestamp representing the time immediately after the Node.js finished
++++         * the domain name lookup for the resource.
++++         * @since v18.2.0, v16.17.0
++++         */
++++        readonly domainLookupEnd: number;
++++        /**
++++         * The high resolution millisecond timestamp representing the time immediately before Node.js starts to
++++         * establish the connection to the server to retrieve the resource.
++++         * @since v18.2.0, v16.17.0
++++         */
++++        readonly connectStart: number;
++++        /**
++++         * The high resolution millisecond timestamp representing the time immediately after Node.js finishes
++++         * establishing the connection to the server to retrieve the resource.
++++         * @since v18.2.0, v16.17.0
++++         */
++++        readonly connectEnd: number;
++++        /**
++++         * The high resolution millisecond timestamp representing the time immediately before Node.js starts the
++++         * handshake process to secure the current connection.
++++         * @since v18.2.0, v16.17.0
++++         */
++++        readonly secureConnectionStart: number;
++++        /**
++++         * The high resolution millisecond timestamp representing the time immediately before Node.js receives the
++++         * first byte of the response from the server.
++++         * @since v18.2.0, v16.17.0
++++         */
++++        readonly requestStart: number;
++++        /**
++++         * The high resolution millisecond timestamp representing the time immediately after Node.js receives the
++++         * last byte of the resource or immediately before the transport connection is closed, whichever comes first.
++++         * @since v18.2.0, v16.17.0
++++         */
++++        readonly responseEnd: number;
++++        /**
++++         * A number representing the size (in octets) of the fetched resource. The size includes the response header
++++         * fields plus the response payload body.
++++         * @since v18.2.0, v16.17.0
++++         */
++++        readonly transferSize: number;
++++        /**
++++         * A number representing the size (in octets) received from the fetch (HTTP or cache), of the payload body, before
++++         * removing any applied content-codings.
++++         * @since v18.2.0, v16.17.0
++++         */
++++        readonly encodedBodySize: number;
++++        /**
++++         * A number representing the size (in octets) received from the fetch (HTTP or cache), of the message body, after
++++         * removing any applied content-codings.
++++         * @since v18.2.0, v16.17.0
++++         */
++++        readonly decodedBodySize: number;
++++        /**
++++         * Returns a `object` that is the JSON representation of the `PerformanceResourceTiming` object
++++         * @since v18.2.0, v16.17.0
++++         */
++++        toJSON(): any;
++++    }
++++    namespace constants {
++++        const NODE_PERFORMANCE_GC_MAJOR: number;
++++        const NODE_PERFORMANCE_GC_MINOR: number;
++++        const NODE_PERFORMANCE_GC_INCREMENTAL: number;
++++        const NODE_PERFORMANCE_GC_WEAKCB: number;
++++        const NODE_PERFORMANCE_GC_FLAGS_NO: number;
++++        const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number;
++++        const NODE_PERFORMANCE_GC_FLAGS_FORCED: number;
++++        const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number;
++++        const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number;
++++        const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number;
++++        const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number;
++++    }
++++    const performance: Performance;
++++    interface EventLoopMonitorOptions {
++++        /**
++++         * The sampling rate in milliseconds.
++++         * Must be greater than zero.
++++         * @default 10
++++         */
++++        resolution?: number | undefined;
++++    }
++++    interface Histogram {
++++        /**
++++         * The number of samples recorded by the histogram.
++++         * @since v17.4.0, v16.14.0
++++         */
++++        readonly count: number;
++++        /**
++++         * The number of samples recorded by the histogram.
++++         * v17.4.0, v16.14.0
++++         */
++++        readonly countBigInt: bigint;
++++        /**
++++         * The number of times the event loop delay exceeded the maximum 1 hour event
++++         * loop delay threshold.
++++         * @since v11.10.0
++++         */
++++        readonly exceeds: number;
++++        /**
++++         * The number of times the event loop delay exceeded the maximum 1 hour event loop delay threshold.
++++         * @since v17.4.0, v16.14.0
++++         */
++++        readonly exceedsBigInt: bigint;
++++        /**
++++         * The maximum recorded event loop delay.
++++         * @since v11.10.0
++++         */
++++        readonly max: number;
++++        /**
++++         * The maximum recorded event loop delay.
++++         * v17.4.0, v16.14.0
++++         */
++++        readonly maxBigInt: number;
++++        /**
++++         * The mean of the recorded event loop delays.
++++         * @since v11.10.0
++++         */
++++        readonly mean: number;
++++        /**
++++         * The minimum recorded event loop delay.
++++         * @since v11.10.0
++++         */
++++        readonly min: number;
++++        /**
++++         * The minimum recorded event loop delay.
++++         * v17.4.0, v16.14.0
++++         */
++++        readonly minBigInt: bigint;
++++        /**
++++         * Returns the value at the given percentile.
++++         * @since v11.10.0
++++         * @param percentile A percentile value in the range (0, 100].
++++         */
++++        percentile(percentile: number): number;
++++        /**
++++         * Returns the value at the given percentile.
++++         * @since v17.4.0, v16.14.0
++++         * @param percentile A percentile value in the range (0, 100].
++++         */
++++        percentileBigInt(percentile: number): bigint;
++++        /**
++++         * Returns a `Map` object detailing the accumulated percentile distribution.
++++         * @since v11.10.0
++++         */
++++        readonly percentiles: Map<number, number>;
++++        /**
++++         * Returns a `Map` object detailing the accumulated percentile distribution.
++++         * @since v17.4.0, v16.14.0
++++         */
++++        readonly percentilesBigInt: Map<bigint, bigint>;
++++        /**
++++         * Resets the collected histogram data.
++++         * @since v11.10.0
++++         */
++++        reset(): void;
++++        /**
++++         * The standard deviation of the recorded event loop delays.
++++         * @since v11.10.0
++++         */
++++        readonly stddev: number;
++++    }
++++    interface IntervalHistogram extends Histogram {
++++        /**
++++         * Enables the update interval timer. Returns `true` if the timer was
++++         * started, `false` if it was already started.
++++         * @since v11.10.0
++++         */
++++        enable(): boolean;
++++        /**
++++         * Disables the update interval timer. Returns `true` if the timer was
++++         * stopped, `false` if it was already stopped.
++++         * @since v11.10.0
++++         */
++++        disable(): boolean;
++++    }
++++    interface RecordableHistogram extends Histogram {
++++        /**
++++         * @since v15.9.0, v14.18.0
++++         * @param val The amount to record in the histogram.
++++         */
++++        record(val: number | bigint): void;
++++        /**
++++         * Calculates the amount of time (in nanoseconds) that has passed since the
++++         * previous call to `recordDelta()` and records that amount in the histogram.
++++         * @since v15.9.0, v14.18.0
++++         */
++++        recordDelta(): void;
++++        /**
++++         * Adds the values from `other` to this histogram.
++++         * @since v17.4.0, v16.14.0
++++         */
++++        add(other: RecordableHistogram): void;
++++    }
++++    /**
++++     * _This property is an extension by Node.js. It is not available in Web browsers._
++++     *
++++     * Creates an `IntervalHistogram` object that samples and reports the event loop
++++     * delay over time. The delays will be reported in nanoseconds.
++++     *
++++     * Using a timer to detect approximate event loop delay works because the
++++     * execution of timers is tied specifically to the lifecycle of the libuv
++++     * event loop. That is, a delay in the loop will cause a delay in the execution
++++     * of the timer, and those delays are specifically what this API is intended to
++++     * detect.
++++     *
++++     * ```js
++++     * import { monitorEventLoopDelay } from 'node:perf_hooks';
++++     * const h = monitorEventLoopDelay({ resolution: 20 });
++++     * h.enable();
++++     * // Do something.
++++     * h.disable();
++++     * console.log(h.min);
++++     * console.log(h.max);
++++     * console.log(h.mean);
++++     * console.log(h.stddev);
++++     * console.log(h.percentiles);
++++     * console.log(h.percentile(50));
++++     * console.log(h.percentile(99));
++++     * ```
++++     * @since v11.10.0
++++     */
++++    function monitorEventLoopDelay(options?: EventLoopMonitorOptions): IntervalHistogram;
++++    interface CreateHistogramOptions {
++++        /**
++++         * The minimum recordable value. Must be an integer value greater than 0.
++++         * @default 1
++++         */
++++        min?: number | bigint | undefined;
++++        /**
++++         * The maximum recordable value. Must be an integer value greater than min.
++++         * @default Number.MAX_SAFE_INTEGER
++++         */
++++        max?: number | bigint | undefined;
++++        /**
++++         * The number of accuracy digits. Must be a number between 1 and 5.
++++         * @default 3
++++         */
++++        figures?: number | undefined;
++++    }
++++    /**
++++     * Returns a `RecordableHistogram`.
++++     * @since v15.9.0, v14.18.0
++++     */
++++    function createHistogram(options?: CreateHistogramOptions): RecordableHistogram;
++++    import {
++++        performance as _performance,
++++        PerformanceEntry as _PerformanceEntry,
++++        PerformanceMark as _PerformanceMark,
++++        PerformanceMeasure as _PerformanceMeasure,
++++        PerformanceObserver as _PerformanceObserver,
++++        PerformanceObserverEntryList as _PerformanceObserverEntryList,
++++        PerformanceResourceTiming as _PerformanceResourceTiming,
++++    } from "perf_hooks";
++++    global {
++++        /**
++++         * `PerformanceEntry` is a global reference for `import { PerformanceEntry } from 'node:node:perf_hooks'`
++++         * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceentry
++++         * @since v19.0.0
++++         */
++++        var PerformanceEntry: typeof globalThis extends {
++++            onmessage: any;
++++            PerformanceEntry: infer T;
++++        } ? T
++++            : typeof _PerformanceEntry;
++++        /**
++++         * `PerformanceMark` is a global reference for `import { PerformanceMark } from 'node:node:perf_hooks'`
++++         * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performancemark
++++         * @since v19.0.0
++++         */
++++        var PerformanceMark: typeof globalThis extends {
++++            onmessage: any;
++++            PerformanceMark: infer T;
++++        } ? T
++++            : typeof _PerformanceMark;
++++        /**
++++         * `PerformanceMeasure` is a global reference for `import { PerformanceMeasure } from 'node:node:perf_hooks'`
++++         * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performancemeasure
++++         * @since v19.0.0
++++         */
++++        var PerformanceMeasure: typeof globalThis extends {
++++            onmessage: any;
++++            PerformanceMeasure: infer T;
++++        } ? T
++++            : typeof _PerformanceMeasure;
++++        /**
++++         * `PerformanceObserver` is a global reference for `import { PerformanceObserver } from 'node:node:perf_hooks'`
++++         * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceobserver
++++         * @since v19.0.0
++++         */
++++        var PerformanceObserver: typeof globalThis extends {
++++            onmessage: any;
++++            PerformanceObserver: infer T;
++++        } ? T
++++            : typeof _PerformanceObserver;
++++        /**
++++         * `PerformanceObserverEntryList` is a global reference for `import { PerformanceObserverEntryList } from 'node:node:perf_hooks'`
++++         * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceobserverentrylist
++++         * @since v19.0.0
++++         */
++++        var PerformanceObserverEntryList: typeof globalThis extends {
++++            onmessage: any;
++++            PerformanceObserverEntryList: infer T;
++++        } ? T
++++            : typeof _PerformanceObserverEntryList;
++++        /**
++++         * `PerformanceResourceTiming` is a global reference for `import { PerformanceResourceTiming } from 'node:node:perf_hooks'`
++++         * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceresourcetiming
++++         * @since v19.0.0
++++         */
++++        var PerformanceResourceTiming: typeof globalThis extends {
++++            onmessage: any;
++++            PerformanceResourceTiming: infer T;
++++        } ? T
++++            : typeof _PerformanceResourceTiming;
++++        /**
++++         * `performance` is a global reference for `import { performance } from 'node:node:perf_hooks'`
++++         * @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performance
++++         * @since v16.0.0
++++         */
++++        var performance: typeof globalThis extends {
++++            onmessage: any;
++++            performance: infer T;
++++        } ? T
++++            : typeof _performance;
++++    }
++++}
++++declare module "node:perf_hooks" {
++++    export * from "perf_hooks";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..67a479d5ecd8cf2545b467153d3bd00a1fd9e1dd
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1879 @@@@@
++++declare module "process" {
++++    import * as tty from "node:tty";
++++    import { Worker } from "node:worker_threads";
++++
++++    interface BuiltInModule {
++++        "assert": typeof import("assert");
++++        "node:assert": typeof import("node:assert");
++++        "assert/strict": typeof import("assert/strict");
++++        "node:assert/strict": typeof import("node:assert/strict");
++++        "async_hooks": typeof import("async_hooks");
++++        "node:async_hooks": typeof import("node:async_hooks");
++++        "buffer": typeof import("buffer");
++++        "node:buffer": typeof import("node:buffer");
++++        "child_process": typeof import("child_process");
++++        "node:child_process": typeof import("node:child_process");
++++        "cluster": typeof import("cluster");
++++        "node:cluster": typeof import("node:cluster");
++++        "console": typeof import("console");
++++        "node:console": typeof import("node:console");
++++        "constants": typeof import("constants");
++++        "node:constants": typeof import("node:constants");
++++        "crypto": typeof import("crypto");
++++        "node:crypto": typeof import("node:crypto");
++++        "dgram": typeof import("dgram");
++++        "node:dgram": typeof import("node:dgram");
++++        "diagnostics_channel": typeof import("diagnostics_channel");
++++        "node:diagnostics_channel": typeof import("node:diagnostics_channel");
++++        "dns": typeof import("dns");
++++        "node:dns": typeof import("node:dns");
++++        "dns/promises": typeof import("dns/promises");
++++        "node:dns/promises": typeof import("node:dns/promises");
++++        "domain": typeof import("domain");
++++        "node:domain": typeof import("node:domain");
++++        "events": typeof import("events");
++++        "node:events": typeof import("node:events");
++++        "fs": typeof import("fs");
++++        "node:fs": typeof import("node:fs");
++++        "fs/promises": typeof import("fs/promises");
++++        "node:fs/promises": typeof import("node:fs/promises");
++++        "http": typeof import("http");
++++        "node:http": typeof import("node:http");
++++        "http2": typeof import("http2");
++++        "node:http2": typeof import("node:http2");
++++        "https": typeof import("https");
++++        "node:https": typeof import("node:https");
++++        "inspector": typeof import("inspector");
++++        "node:inspector": typeof import("node:inspector");
++++        "inspector/promises": typeof import("inspector/promises");
++++        "node:inspector/promises": typeof import("node:inspector/promises");
++++        "module": typeof import("module");
++++        "node:module": typeof import("node:module");
++++        "net": typeof import("net");
++++        "node:net": typeof import("node:net");
++++        "os": typeof import("os");
++++        "node:os": typeof import("node:os");
++++        "path": typeof import("path");
++++        "node:path": typeof import("node:path");
++++        "path/posix": typeof import("path/posix");
++++        "node:path/posix": typeof import("node:path/posix");
++++        "path/win32": typeof import("path/win32");
++++        "node:path/win32": typeof import("node:path/win32");
++++        "perf_hooks": typeof import("perf_hooks");
++++        "node:perf_hooks": typeof import("node:perf_hooks");
++++        "process": typeof import("process");
++++        "node:process": typeof import("node:process");
++++        "punycode": typeof import("punycode");
++++        "node:punycode": typeof import("node:punycode");
++++        "querystring": typeof import("querystring");
++++        "node:querystring": typeof import("node:querystring");
++++        "readline": typeof import("readline");
++++        "node:readline": typeof import("node:readline");
++++        "readline/promises": typeof import("readline/promises");
++++        "node:readline/promises": typeof import("node:readline/promises");
++++        "repl": typeof import("repl");
++++        "node:repl": typeof import("node:repl");
++++        "node:sea": typeof import("node:sea");
++++        "stream": typeof import("stream");
++++        "node:stream": typeof import("node:stream");
++++        "stream/consumers": typeof import("stream/consumers");
++++        "node:stream/consumers": typeof import("node:stream/consumers");
++++        "stream/promises": typeof import("stream/promises");
++++        "node:stream/promises": typeof import("node:stream/promises");
++++        "stream/web": typeof import("stream/web");
++++        "node:stream/web": typeof import("node:stream/web");
++++        "string_decoder": typeof import("string_decoder");
++++        "node:string_decoder": typeof import("node:string_decoder");
++++        "node:test": typeof import("node:test");
++++        "node:test/reporters": typeof import("node:test/reporters");
++++        "timers": typeof import("timers");
++++        "node:timers": typeof import("node:timers");
++++        "timers/promises": typeof import("timers/promises");
++++        "node:timers/promises": typeof import("node:timers/promises");
++++        "tls": typeof import("tls");
++++        "node:tls": typeof import("node:tls");
++++        "trace_events": typeof import("trace_events");
++++        "node:trace_events": typeof import("node:trace_events");
++++        "tty": typeof import("tty");
++++        "node:tty": typeof import("node:tty");
++++        "url": typeof import("url");
++++        "node:url": typeof import("node:url");
++++        "util": typeof import("util");
++++        "node:util": typeof import("node:util");
++++        "sys": typeof import("util");
++++        "node:sys": typeof import("node:util");
++++        "util/types": typeof import("util/types");
++++        "node:util/types": typeof import("node:util/types");
++++        "v8": typeof import("v8");
++++        "node:v8": typeof import("node:v8");
++++        "vm": typeof import("vm");
++++        "node:vm": typeof import("node:vm");
++++        "wasi": typeof import("wasi");
++++        "node:wasi": typeof import("node:wasi");
++++        "worker_threads": typeof import("worker_threads");
++++        "node:worker_threads": typeof import("node:worker_threads");
++++        "zlib": typeof import("zlib");
++++        "node:zlib": typeof import("node:zlib");
++++    }
++++
++++    global {
++++        var process: NodeJS.Process;
++++        namespace NodeJS {
++++            // this namespace merge is here because these are specifically used
++++            // as the type for process.stdin, process.stdout, and process.stderr.
++++            // they can't live in tty.d.ts because we need to disambiguate the imported name.
++++            interface ReadStream extends tty.ReadStream {}
++++            interface WriteStream extends tty.WriteStream {}
++++            interface MemoryUsageFn {
++++                /**
++++                 * The `process.memoryUsage()` method iterate over each page to gather informations about memory
++++                 * usage which can be slow depending on the program memory allocations.
++++                 */
++++                (): MemoryUsage;
++++                /**
++++                 * method returns an integer representing the Resident Set Size (RSS) in bytes.
++++                 */
++++                rss(): number;
++++            }
++++            interface MemoryUsage {
++++                /**
++++                 * Resident Set Size, is the amount of space occupied in the main memory device (that is a subset of the total allocated memory) for the
++++                 * process, including all C++ and JavaScript objects and code.
++++                 */
++++                rss: number;
++++                /**
++++                 * Refers to V8's memory usage.
++++                 */
++++                heapTotal: number;
++++                /**
++++                 * Refers to V8's memory usage.
++++                 */
++++                heapUsed: number;
++++                external: number;
++++                /**
++++                 * Refers to memory allocated for `ArrayBuffer`s and `SharedArrayBuffer`s, including all Node.js Buffers. This is also included
++++                 * in the external value. When Node.js is used as an embedded library, this value may be `0` because allocations for `ArrayBuffer`s
++++                 * may not be tracked in that case.
++++                 */
++++                arrayBuffers: number;
++++            }
++++            interface CpuUsage {
++++                user: number;
++++                system: number;
++++            }
++++            interface ProcessRelease {
++++                name: string;
++++                sourceUrl?: string | undefined;
++++                headersUrl?: string | undefined;
++++                libUrl?: string | undefined;
++++                lts?: string | undefined;
++++            }
++++            interface ProcessVersions extends Dict<string> {
++++                http_parser: string;
++++                node: string;
++++                v8: string;
++++                ares: string;
++++                uv: string;
++++                zlib: string;
++++                modules: string;
++++                openssl: string;
++++            }
++++            type Platform =
++++                | "aix"
++++                | "android"
++++                | "darwin"
++++                | "freebsd"
++++                | "haiku"
++++                | "linux"
++++                | "openbsd"
++++                | "sunos"
++++                | "win32"
++++                | "cygwin"
++++                | "netbsd";
++++            type Architecture =
++++                | "arm"
++++                | "arm64"
++++                | "ia32"
++++                | "loong64"
++++                | "mips"
++++                | "mipsel"
++++                | "ppc"
++++                | "ppc64"
++++                | "riscv64"
++++                | "s390"
++++                | "s390x"
++++                | "x64";
++++            type Signals =
++++                | "SIGABRT"
++++                | "SIGALRM"
++++                | "SIGBUS"
++++                | "SIGCHLD"
++++                | "SIGCONT"
++++                | "SIGFPE"
++++                | "SIGHUP"
++++                | "SIGILL"
++++                | "SIGINT"
++++                | "SIGIO"
++++                | "SIGIOT"
++++                | "SIGKILL"
++++                | "SIGPIPE"
++++                | "SIGPOLL"
++++                | "SIGPROF"
++++                | "SIGPWR"
++++                | "SIGQUIT"
++++                | "SIGSEGV"
++++                | "SIGSTKFLT"
++++                | "SIGSTOP"
++++                | "SIGSYS"
++++                | "SIGTERM"
++++                | "SIGTRAP"
++++                | "SIGTSTP"
++++                | "SIGTTIN"
++++                | "SIGTTOU"
++++                | "SIGUNUSED"
++++                | "SIGURG"
++++                | "SIGUSR1"
++++                | "SIGUSR2"
++++                | "SIGVTALRM"
++++                | "SIGWINCH"
++++                | "SIGXCPU"
++++                | "SIGXFSZ"
++++                | "SIGBREAK"
++++                | "SIGLOST"
++++                | "SIGINFO";
++++            type UncaughtExceptionOrigin = "uncaughtException" | "unhandledRejection";
++++            type MultipleResolveType = "resolve" | "reject";
++++            type BeforeExitListener = (code: number) => void;
++++            type DisconnectListener = () => void;
++++            type ExitListener = (code: number) => void;
++++            type RejectionHandledListener = (promise: Promise<unknown>) => void;
++++            type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void;
++++            /**
++++             * Most of the time the unhandledRejection will be an Error, but this should not be relied upon
++++             * as *anything* can be thrown/rejected, it is therefore unsafe to assume that the value is an Error.
++++             */
++++            type UnhandledRejectionListener = (reason: unknown, promise: Promise<unknown>) => void;
++++            type WarningListener = (warning: Error) => void;
++++            type MessageListener = (message: unknown, sendHandle: unknown) => void;
++++            type SignalsListener = (signal: Signals) => void;
++++            type MultipleResolveListener = (
++++                type: MultipleResolveType,
++++                promise: Promise<unknown>,
++++                value: unknown,
++++            ) => void;
++++            type WorkerListener = (worker: Worker) => void;
++++            interface Socket extends ReadWriteStream {
++++                isTTY?: true | undefined;
++++            }
++++            // Alias for compatibility
++++            interface ProcessEnv extends Dict<string> {
++++                /**
++++                 * Can be used to change the default timezone at runtime
++++                 */
++++                TZ?: string;
++++            }
++++            interface HRTime {
++++                (time?: [number, number]): [number, number];
++++                /**
++++                 * The `bigint` version of the `{@link hrtime()}` method returning the current high-resolution real time in nanoseconds as a `bigint`.
++++                 *
++++                 * Unlike `{@link hrtime()}`, it does not support an additional time argument since the difference can just be computed directly by subtraction of the two `bigint`s.
++++                 * ```js
++++                 * import { hrtime } from 'node:process';
++++                 *
++++                 * const start = hrtime.bigint();
++++                 * // 191051479007711n
++++                 *
++++                 * setTimeout(() => {
++++                 *   const end = hrtime.bigint();
++++                 *   // 191052633396993n
++++                 *
++++                 *   console.log(`Benchmark took ${end - start} nanoseconds`);
++++                 *   // Benchmark took 1154389282 nanoseconds
++++                 * }, 1000);
++++                 * ```
++++                 */
++++                bigint(): bigint;
++++            }
++++            interface ProcessPermission {
++++                /**
++++                 * Verifies that the process is able to access the given scope and reference.
++++                 * If no reference is provided, a global scope is assumed, for instance, `process.permission.has('fs.read')`
++++                 * will check if the process has ALL file system read permissions.
++++                 *
++++                 * The reference has a meaning based on the provided scope. For example, the reference when the scope is File System means files and folders.
++++                 *
++++                 * The available scopes are:
++++                 *
++++                 * * `fs` - All File System
++++                 * * `fs.read` - File System read operations
++++                 * * `fs.write` - File System write operations
++++                 * * `child` - Child process spawning operations
++++                 * * `worker` - Worker thread spawning operation
++++                 *
++++                 * ```js
++++                 * // Check if the process has permission to read the README file
++++                 * process.permission.has('fs.read', './README.md');
++++                 * // Check if the process has read permission operations
++++                 * process.permission.has('fs.read');
++++                 * ```
++++                 * @since v20.0.0
++++                 */
++++                has(scope: string, reference?: string): boolean;
++++            }
++++            interface ProcessReport {
++++                /**
++++                 * Write reports in a compact format, single-line JSON, more easily consumable by log processing systems
++++                 * than the default multi-line format designed for human consumption.
++++                 * @since v13.12.0, v12.17.0
++++                 */
++++                compact: boolean;
++++                /**
++++                 * Directory where the report is written.
++++                 * The default value is the empty string, indicating that reports are written to the current
++++                 * working directory of the Node.js process.
++++                 */
++++                directory: string;
++++                /**
++++                 * Filename where the report is written. If set to the empty string, the output filename will be comprised
++++                 * of a timestamp, PID, and sequence number. The default value is the empty string.
++++                 */
++++                filename: string;
++++                /**
++++                 * Returns a JavaScript Object representation of a diagnostic report for the running process.
++++                 * The report's JavaScript stack trace is taken from `err`, if present.
++++                 */
++++                getReport(err?: Error): object;
++++                /**
++++                 * If true, a diagnostic report is generated on fatal errors,
++++                 * such as out of memory errors or failed C++ assertions.
++++                 * @default false
++++                 */
++++                reportOnFatalError: boolean;
++++                /**
++++                 * If true, a diagnostic report is generated when the process
++++                 * receives the signal specified by process.report.signal.
++++                 * @default false
++++                 */
++++                reportOnSignal: boolean;
++++                /**
++++                 * If true, a diagnostic report is generated on uncaught exception.
++++                 * @default false
++++                 */
++++                reportOnUncaughtException: boolean;
++++                /**
++++                 * The signal used to trigger the creation of a diagnostic report.
++++                 * @default 'SIGUSR2'
++++                 */
++++                signal: Signals;
++++                /**
++++                 * Writes a diagnostic report to a file. If filename is not provided, the default filename
++++                 * includes the date, time, PID, and a sequence number.
++++                 * The report's JavaScript stack trace is taken from `err`, if present.
++++                 *
++++                 * If the value of filename is set to `'stdout'` or `'stderr'`, the report is written
++++                 * to the stdout or stderr of the process respectively.
++++                 * @param fileName Name of the file where the report is written.
++++                 * This should be a relative path, that will be appended to the directory specified in
++++                 * `process.report.directory`, or the current working directory of the Node.js process,
++++                 * if unspecified.
++++                 * @param err A custom error used for reporting the JavaScript stack.
++++                 * @return Filename of the generated report.
++++                 */
++++                writeReport(fileName?: string, err?: Error): string;
++++                writeReport(err?: Error): string;
++++            }
++++            interface ResourceUsage {
++++                fsRead: number;
++++                fsWrite: number;
++++                involuntaryContextSwitches: number;
++++                ipcReceived: number;
++++                ipcSent: number;
++++                majorPageFault: number;
++++                maxRSS: number;
++++                minorPageFault: number;
++++                sharedMemorySize: number;
++++                signalsCount: number;
++++                swappedOut: number;
++++                systemCPUTime: number;
++++                unsharedDataSize: number;
++++                unsharedStackSize: number;
++++                userCPUTime: number;
++++                voluntaryContextSwitches: number;
++++            }
++++            interface EmitWarningOptions {
++++                /**
++++                 * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
++++                 *
++++                 * @default 'Warning'
++++                 */
++++                type?: string | undefined;
++++                /**
++++                 * A unique identifier for the warning instance being emitted.
++++                 */
++++                code?: string | undefined;
++++                /**
++++                 * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
++++                 *
++++                 * @default process.emitWarning
++++                 */
++++                ctor?: Function | undefined;
++++                /**
++++                 * Additional text to include with the error.
++++                 */
++++                detail?: string | undefined;
++++            }
++++            interface ProcessConfig {
++++                readonly target_defaults: {
++++                    readonly cflags: any[];
++++                    readonly default_configuration: string;
++++                    readonly defines: string[];
++++                    readonly include_dirs: string[];
++++                    readonly libraries: string[];
++++                };
++++                readonly variables: {
++++                    readonly clang: number;
++++                    readonly host_arch: string;
++++                    readonly node_install_npm: boolean;
++++                    readonly node_install_waf: boolean;
++++                    readonly node_prefix: string;
++++                    readonly node_shared_openssl: boolean;
++++                    readonly node_shared_v8: boolean;
++++                    readonly node_shared_zlib: boolean;
++++                    readonly node_use_dtrace: boolean;
++++                    readonly node_use_etw: boolean;
++++                    readonly node_use_openssl: boolean;
++++                    readonly target_arch: string;
++++                    readonly v8_no_strict_aliasing: number;
++++                    readonly v8_use_snapshot: boolean;
++++                    readonly visibility: string;
++++                };
++++            }
++++            interface Process extends EventEmitter {
++++                /**
++++                 * The `process.stdout` property returns a stream connected to`stdout` (fd `1`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `1` refers to a file, in which case it is
++++                 * a `Writable` stream.
++++                 *
++++                 * For example, to copy `process.stdin` to `process.stdout`:
++++                 *
++++                 * ```js
++++                 * import { stdin, stdout } from 'node:process';
++++                 *
++++                 * stdin.pipe(stdout);
++++                 * ```
++++                 *
++++                 * `process.stdout` differs from other Node.js streams in important ways. See `note on process I/O` for more information.
++++                 */
++++                stdout: WriteStream & {
++++                    fd: 1;
++++                };
++++                /**
++++                 * The `process.stderr` property returns a stream connected to`stderr` (fd `2`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `2` refers to a file, in which case it is
++++                 * a `Writable` stream.
++++                 *
++++                 * `process.stderr` differs from other Node.js streams in important ways. See `note on process I/O` for more information.
++++                 */
++++                stderr: WriteStream & {
++++                    fd: 2;
++++                };
++++                /**
++++                 * The `process.stdin` property returns a stream connected to`stdin` (fd `0`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `0` refers to a file, in which case it is
++++                 * a `Readable` stream.
++++                 *
++++                 * For details of how to read from `stdin` see `readable.read()`.
++++                 *
++++                 * As a `Duplex` stream, `process.stdin` can also be used in "old" mode that
++++                 * is compatible with scripts written for Node.js prior to v0.10\.
++++                 * For more information see `Stream compatibility`.
++++                 *
++++                 * In "old" streams mode the `stdin` stream is paused by default, so one
++++                 * must call `process.stdin.resume()` to read from it. Note also that calling `process.stdin.resume()` itself would switch stream to "old" mode.
++++                 */
++++                stdin: ReadStream & {
++++                    fd: 0;
++++                };
++++                /**
++++                 * The `process.argv` property returns an array containing the command-line
++++                 * arguments passed when the Node.js process was launched. The first element will
++++                 * be {@link execPath}. See `process.argv0` if access to the original value
++++                 * of `argv[0]` is needed. The second element will be the path to the JavaScript
++++                 * file being executed. The remaining elements will be any additional command-line
++++                 * arguments.
++++                 *
++++                 * For example, assuming the following script for `process-args.js`:
++++                 *
++++                 * ```js
++++                 * import { argv } from 'node:process';
++++                 *
++++                 * // print process.argv
++++                 * argv.forEach((val, index) => {
++++                 *   console.log(`${index}: ${val}`);
++++                 * });
++++                 * ```
++++                 *
++++                 * Launching the Node.js process as:
++++                 *
++++                 * ```bash
++++                 * node process-args.js one two=three four
++++                 * ```
++++                 *
++++                 * Would generate the output:
++++                 *
++++                 * ```text
++++                 * 0: /usr/local/bin/node
++++                 * 1: /Users/mjr/work/node/process-args.js
++++                 * 2: one
++++                 * 3: two=three
++++                 * 4: four
++++                 * ```
++++                 * @since v0.1.27
++++                 */
++++                argv: string[];
++++                /**
++++                 * The `process.argv0` property stores a read-only copy of the original value of`argv[0]` passed when Node.js starts.
++++                 *
++++                 * ```console
++++                 * $ bash -c 'exec -a customArgv0 ./node'
++++                 * > process.argv[0]
++++                 * '/Volumes/code/external/node/out/Release/node'
++++                 * > process.argv0
++++                 * 'customArgv0'
++++                 * ```
++++                 * @since v6.4.0
++++                 */
++++                argv0: string;
++++                /**
++++                 * The `process.execArgv` property returns the set of Node.js-specific command-line
++++                 * options passed when the Node.js process was launched. These options do not
++++                 * appear in the array returned by the {@link argv} property, and do not
++++                 * include the Node.js executable, the name of the script, or any options following
++++                 * the script name. These options are useful in order to spawn child processes with
++++                 * the same execution environment as the parent.
++++                 *
++++                 * ```bash
++++                 * node --icu-data-dir=./foo --require ./bar.js script.js --version
++++                 * ```
++++                 *
++++                 * Results in `process.execArgv`:
++++                 *
++++                 * ```js
++++                 * ["--icu-data-dir=./foo", "--require", "./bar.js"]
++++                 * ```
++++                 *
++++                 * And `process.argv`:
++++                 *
++++                 * ```js
++++                 * ['/usr/local/bin/node', 'script.js', '--version']
++++                 * ```
++++                 *
++++                 * Refer to `Worker constructor` for the detailed behavior of worker
++++                 * threads with this property.
++++                 * @since v0.7.7
++++                 */
++++                execArgv: string[];
++++                /**
++++                 * The `process.execPath` property returns the absolute pathname of the executable
++++                 * that started the Node.js process. Symbolic links, if any, are resolved.
++++                 *
++++                 * ```js
++++                 * '/usr/local/bin/node'
++++                 * ```
++++                 * @since v0.1.100
++++                 */
++++                execPath: string;
++++                /**
++++                 * The `process.abort()` method causes the Node.js process to exit immediately and
++++                 * generate a core file.
++++                 *
++++                 * This feature is not available in `Worker` threads.
++++                 * @since v0.7.0
++++                 */
++++                abort(): never;
++++                /**
++++                 * The `process.chdir()` method changes the current working directory of the
++++                 * Node.js process or throws an exception if doing so fails (for instance, if
++++                 * the specified `directory` does not exist).
++++                 *
++++                 * ```js
++++                 * import { chdir, cwd } from 'node:process';
++++                 *
++++                 * console.log(`Starting directory: ${cwd()}`);
++++                 * try {
++++                 *   chdir('/tmp');
++++                 *   console.log(`New directory: ${cwd()}`);
++++                 * } catch (err) {
++++                 *   console.error(`chdir: ${err}`);
++++                 * }
++++                 * ```
++++                 *
++++                 * This feature is not available in `Worker` threads.
++++                 * @since v0.1.17
++++                 */
++++                chdir(directory: string): void;
++++                /**
++++                 * The `process.cwd()` method returns the current working directory of the Node.js
++++                 * process.
++++                 *
++++                 * ```js
++++                 * import { cwd } from 'node:process';
++++                 *
++++                 * console.log(`Current directory: ${cwd()}`);
++++                 * ```
++++                 * @since v0.1.8
++++                 */
++++                cwd(): string;
++++                /**
++++                 * The port used by the Node.js debugger when enabled.
++++                 *
++++                 * ```js
++++                 * import process from 'node:process';
++++                 *
++++                 * process.debugPort = 5858;
++++                 * ```
++++                 * @since v0.7.2
++++                 */
++++                debugPort: number;
++++                /**
++++                 * The `process.dlopen()` method allows dynamically loading shared objects. It is primarily used by `require()` to load C++ Addons, and
++++                 * should not be used directly, except in special cases. In other words, `require()` should be preferred over `process.dlopen()`
++++                 * unless there are specific reasons such as custom dlopen flags or loading from ES modules.
++++                 *
++++                 * The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-v20.x/api/os.html#dlopen-constants)`
++++                 * documentation for details.
++++                 *
++++                 * An important requirement when calling `process.dlopen()` is that the `module` instance must be passed. Functions exported by the C++ Addon
++++                 * are then accessible via `module.exports`.
++++                 *
++++                 * The example below shows how to load a C++ Addon, named `local.node`, that exports a `foo` function. All the symbols are loaded before the call returns, by passing the `RTLD_NOW` constant.
++++                 * In this example the constant is assumed to be available.
++++                 *
++++                 * ```js
++++                 * import { dlopen } from 'node:process';
++++                 * import { constants } from 'node:os';
++++                 * import { fileURLToPath } from 'node:url';
++++                 *
++++                 * const module = { exports: {} };
++++                 * dlopen(module, fileURLToPath(new URL('local.node', import.meta.url)),
++++                 *        constants.dlopen.RTLD_NOW);
++++                 * module.exports.foo();
++++                 * ```
++++                 */
++++                dlopen(module: object, filename: string, flags?: number): void;
++++                /**
++++                 * The `process.emitWarning()` method can be used to emit custom or application
++++                 * specific process warnings. These can be listened for by adding a handler to the `'warning'` event.
++++                 *
++++                 * ```js
++++                 * import { emitWarning } from 'node:process';
++++                 *
++++                 * // Emit a warning using a string.
++++                 * emitWarning('Something happened!');
++++                 * // Emits: (node: 56338) Warning: Something happened!
++++                 * ```
++++                 *
++++                 * ```js
++++                 * import { emitWarning } from 'node:process';
++++                 *
++++                 * // Emit a warning using a string and a type.
++++                 * emitWarning('Something Happened!', 'CustomWarning');
++++                 * // Emits: (node:56338) CustomWarning: Something Happened!
++++                 * ```
++++                 *
++++                 * ```js
++++                 * import { emitWarning } from 'node:process';
++++                 *
++++                 * emitWarning('Something happened!', 'CustomWarning', 'WARN001');
++++                 * // Emits: (node:56338) [WARN001] CustomWarning: Something happened!
++++                 * ```js
++++                 *
++++                 * In each of the previous examples, an `Error` object is generated internally by `process.emitWarning()` and passed through to the `'warning'` handler.
++++                 *
++++                 * ```js
++++                 * import process from 'node:process';
++++                 *
++++                 * process.on('warning', (warning) => {
++++                 *   console.warn(warning.name);    // 'Warning'
++++                 *   console.warn(warning.message); // 'Something happened!'
++++                 *   console.warn(warning.code);    // 'MY_WARNING'
++++                 *   console.warn(warning.stack);   // Stack trace
++++                 *   console.warn(warning.detail);  // 'This is some additional information'
++++                 * });
++++                 * ```
++++                 *
++++                 * If `warning` is passed as an `Error` object, it will be passed through to the `'warning'` event handler
++++                 * unmodified (and the optional `type`, `code` and `ctor` arguments will be ignored):
++++                 *
++++                 * ```js
++++                 * import { emitWarning } from 'node:process';
++++                 *
++++                 * // Emit a warning using an Error object.
++++                 * const myWarning = new Error('Something happened!');
++++                 * // Use the Error name property to specify the type name
++++                 * myWarning.name = 'CustomWarning';
++++                 * myWarning.code = 'WARN001';
++++                 *
++++                 * emitWarning(myWarning);
++++                 * // Emits: (node:56338) [WARN001] CustomWarning: Something happened!
++++                 * ```
++++                 *
++++                 * A `TypeError` is thrown if `warning` is anything other than a string or `Error` object.
++++                 *
++++                 * While process warnings use `Error` objects, the process warning mechanism is not a replacement for normal error handling mechanisms.
++++                 *
++++                 * The following additional handling is implemented if the warning `type` is `'DeprecationWarning'`:
++++                 * * If the `--throw-deprecation` command-line flag is used, the deprecation warning is thrown as an exception rather than being emitted as an event.
++++                 * * If the `--no-deprecation` command-line flag is used, the deprecation warning is suppressed.
++++                 * * If the `--trace-deprecation` command-line flag is used, the deprecation warning is printed to `stderr` along with the full stack trace.
++++                 * @since v8.0.0
++++                 * @param warning The warning to emit.
++++                 */
++++                emitWarning(warning: string | Error, ctor?: Function): void;
++++                emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
++++                emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
++++                emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
++++                /**
++++                 * The `process.env` property returns an object containing the user environment.
++++                 * See [`environ(7)`](http://man7.org/linux/man-pages/man7/environ.7.html).
++++                 *
++++                 * An example of this object looks like:
++++                 *
++++                 * ```js
++++                 * {
++++                 *   TERM: 'xterm-256color',
++++                 *   SHELL: '/usr/local/bin/bash',
++++                 *   USER: 'maciej',
++++                 *   PATH: '~/.bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin',
++++                 *   PWD: '/Users/maciej',
++++                 *   EDITOR: 'vim',
++++                 *   SHLVL: '1',
++++                 *   HOME: '/Users/maciej',
++++                 *   LOGNAME: 'maciej',
++++                 *   _: '/usr/local/bin/node'
++++                 * }
++++                 * ```
++++                 *
++++                 * It is possible to modify this object, but such modifications will not be
++++                 * reflected outside the Node.js process, or (unless explicitly requested)
++++                 * to other `Worker` threads.
++++                 * In other words, the following example would not work:
++++                 *
++++                 * ```bash
++++                 * node -e 'process.env.foo = "bar"' &#x26;&#x26; echo $foo
++++                 * ```
++++                 *
++++                 * While the following will:
++++                 *
++++                 * ```js
++++                 * import { env } from 'node:process';
++++                 *
++++                 * env.foo = 'bar';
++++                 * console.log(env.foo);
++++                 * ```
++++                 *
++++                 * Assigning a property on `process.env` will implicitly convert the value
++++                 * to a string. **This behavior is deprecated.** Future versions of Node.js may
++++                 * throw an error when the value is not a string, number, or boolean.
++++                 *
++++                 * ```js
++++                 * import { env } from 'node:process';
++++                 *
++++                 * env.test = null;
++++                 * console.log(env.test);
++++                 * // => 'null'
++++                 * env.test = undefined;
++++                 * console.log(env.test);
++++                 * // => 'undefined'
++++                 * ```
++++                 *
++++                 * Use `delete` to delete a property from `process.env`.
++++                 *
++++                 * ```js
++++                 * import { env } from 'node:process';
++++                 *
++++                 * env.TEST = 1;
++++                 * delete env.TEST;
++++                 * console.log(env.TEST);
++++                 * // => undefined
++++                 * ```
++++                 *
++++                 * On Windows operating systems, environment variables are case-insensitive.
++++                 *
++++                 * ```js
++++                 * import { env } from 'node:process';
++++                 *
++++                 * env.TEST = 1;
++++                 * console.log(env.test);
++++                 * // => 1
++++                 * ```
++++                 *
++++                 * Unless explicitly specified when creating a `Worker` instance,
++++                 * each `Worker` thread has its own copy of `process.env`, based on its
++++                 * parent thread's `process.env`, or whatever was specified as the `env` option
++++                 * to the `Worker` constructor. Changes to `process.env` will not be visible
++++                 * across `Worker` threads, and only the main thread can make changes that
++++                 * are visible to the operating system or to native add-ons. On Windows, a copy of `process.env` on a `Worker` instance operates in a case-sensitive manner
++++                 * unlike the main thread.
++++                 * @since v0.1.27
++++                 */
++++                env: ProcessEnv;
++++                /**
++++                 * The `process.exit()` method instructs Node.js to terminate the process
++++                 * synchronously with an exit status of `code`. If `code` is omitted, exit uses
++++                 * either the 'success' code `0` or the value of `process.exitCode` if it has been
++++                 * set. Node.js will not terminate until all the `'exit'` event listeners are
++++                 * called.
++++                 *
++++                 * To exit with a 'failure' code:
++++                 *
++++                 * ```js
++++                 * import { exit } from 'node:process';
++++                 *
++++                 * exit(1);
++++                 * ```
++++                 *
++++                 * The shell that executed Node.js should see the exit code as `1`.
++++                 *
++++                 * Calling `process.exit()` will force the process to exit as quickly as possible
++++                 * even if there are still asynchronous operations pending that have not yet
++++                 * completed fully, including I/O operations to `process.stdout` and `process.stderr`.
++++                 *
++++                 * In most situations, it is not actually necessary to call `process.exit()` explicitly. The Node.js process will exit on its own _if there is no additional_
++++                 * _work pending_ in the event loop. The `process.exitCode` property can be set to
++++                 * tell the process which exit code to use when the process exits gracefully.
++++                 *
++++                 * For instance, the following example illustrates a _misuse_ of the `process.exit()` method that could lead to data printed to stdout being
++++                 * truncated and lost:
++++                 *
++++                 * ```js
++++                 * import { exit } from 'node:process';
++++                 *
++++                 * // This is an example of what *not* to do:
++++                 * if (someConditionNotMet()) {
++++                 *   printUsageToStdout();
++++                 *   exit(1);
++++                 * }
++++                 * ```
++++                 *
++++                 * The reason this is problematic is because writes to `process.stdout` in Node.js
++++                 * are sometimes _asynchronous_ and may occur over multiple ticks of the Node.js
++++                 * event loop. Calling `process.exit()`, however, forces the process to exit _before_ those additional writes to `stdout` can be performed.
++++                 *
++++                 * Rather than calling `process.exit()` directly, the code _should_ set the `process.exitCode` and allow the process to exit naturally by avoiding
++++                 * scheduling any additional work for the event loop:
++++                 *
++++                 * ```js
++++                 * import process from 'node:process';
++++                 *
++++                 * // How to properly set the exit code while letting
++++                 * // the process exit gracefully.
++++                 * if (someConditionNotMet()) {
++++                 *   printUsageToStdout();
++++                 *   process.exitCode = 1;
++++                 * }
++++                 * ```
++++                 *
++++                 * If it is necessary to terminate the Node.js process due to an error condition,
++++                 * throwing an _uncaught_ error and allowing the process to terminate accordingly
++++                 * is safer than calling `process.exit()`.
++++                 *
++++                 * In `Worker` threads, this function stops the current thread rather
++++                 * than the current process.
++++                 * @since v0.1.13
++++                 * @param [code=0] The exit code. For string type, only integer strings (e.g.,'1') are allowed.
++++                 */
++++                exit(code?: number | string | null | undefined): never;
++++                /**
++++                 * A number which will be the process exit code, when the process either
++++                 * exits gracefully, or is exited via {@link exit} without specifying
++++                 * a code.
++++                 *
++++                 * Specifying a code to {@link exit} will override any
++++                 * previous setting of `process.exitCode`.
++++                 * @default undefined
++++                 * @since v0.11.8
++++                 */
++++                exitCode?: number | string | number | undefined;
++++                /**
++++                 * The `process.getActiveResourcesInfo()` method returns an array of strings containing
++++                 * the types of the active resources that are currently keeping the event loop alive.
++++                 *
++++                 * ```js
++++                 * import { getActiveResourcesInfo } from 'node:process';
++++                 * import { setTimeout } from 'node:timers';
++++
++++                 * console.log('Before:', getActiveResourcesInfo());
++++                 * setTimeout(() => {}, 1000);
++++                 * console.log('After:', getActiveResourcesInfo());
++++                 * // Prints:
++++                 * //   Before: [ 'TTYWrap', 'TTYWrap', 'TTYWrap' ]
++++                 * //   After: [ 'TTYWrap', 'TTYWrap', 'TTYWrap', 'Timeout' ]
++++                 * ```
++++                 * @since v17.3.0, v16.14.0
++++                 */
++++                getActiveResourcesInfo(): string[];
++++                /**
++++                 * Provides a way to load built-in modules in a globally available function.
++++                 * @param id ID of the built-in module being requested.
++++                 * @since v20.16.0
++++                 */
++++                getBuiltinModule<ID extends keyof BuiltInModule>(id: ID): BuiltInModule[ID];
++++                getBuiltinModule(id: string): object | undefined;
++++                /**
++++                 * The `process.getgid()` method returns the numerical group identity of the
++++                 * process. (See [`getgid(2)`](http://man7.org/linux/man-pages/man2/getgid.2.html).)
++++                 *
++++                 * ```js
++++                 * import process from 'node:process';
++++                 *
++++                 * if (process.getgid) {
++++                 *   console.log(`Current gid: ${process.getgid()}`);
++++                 * }
++++                 * ```
++++                 *
++++                 * This function is only available on POSIX platforms (i.e. not Windows or
++++                 * Android).
++++                 * @since v0.1.31
++++                 */
++++                getgid?: () => number;
++++                /**
++++                 * The `process.setgid()` method sets the group identity of the process. (See [`setgid(2)`](http://man7.org/linux/man-pages/man2/setgid.2.html).) The `id` can be passed as either a
++++                 * numeric ID or a group name
++++                 * string. If a group name is specified, this method blocks while resolving the
++++                 * associated numeric ID.
++++                 *
++++                 * ```js
++++                 * import process from 'node:process';
++++                 *
++++                 * if (process.getgid &#x26;&#x26; process.setgid) {
++++                 *   console.log(`Current gid: ${process.getgid()}`);
++++                 *   try {
++++                 *     process.setgid(501);
++++                 *     console.log(`New gid: ${process.getgid()}`);
++++                 *   } catch (err) {
++++                 *     console.log(`Failed to set gid: ${err}`);
++++                 *   }
++++                 * }
++++                 * ```
++++                 *
++++                 * This function is only available on POSIX platforms (i.e. not Windows or
++++                 * Android).
++++                 * This feature is not available in `Worker` threads.
++++                 * @since v0.1.31
++++                 * @param id The group name or ID
++++                 */
++++                setgid?: (id: number | string) => void;
++++                /**
++++                 * The `process.getuid()` method returns the numeric user identity of the process.
++++                 * (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).)
++++                 *
++++                 * ```js
++++                 * import process from 'node:process';
++++                 *
++++                 * if (process.getuid) {
++++                 *   console.log(`Current uid: ${process.getuid()}`);
++++                 * }
++++                 * ```
++++                 *
++++                 * This function is only available on POSIX platforms (i.e. not Windows or
++++                 * Android).
++++                 * @since v0.1.28
++++                 */
++++                getuid?: () => number;
++++                /**
++++                 * The `process.setuid(id)` method sets the user identity of the process. (See [`setuid(2)`](http://man7.org/linux/man-pages/man2/setuid.2.html).) The `id` can be passed as either a
++++                 * numeric ID or a username string.
++++                 * If a username is specified, the method blocks while resolving the associated
++++                 * numeric ID.
++++                 *
++++                 * ```js
++++                 * import process from 'node:process';
++++                 *
++++                 * if (process.getuid &#x26;&#x26; process.setuid) {
++++                 *   console.log(`Current uid: ${process.getuid()}`);
++++                 *   try {
++++                 *     process.setuid(501);
++++                 *     console.log(`New uid: ${process.getuid()}`);
++++                 *   } catch (err) {
++++                 *     console.log(`Failed to set uid: ${err}`);
++++                 *   }
++++                 * }
++++                 * ```
++++                 *
++++                 * This function is only available on POSIX platforms (i.e. not Windows or
++++                 * Android).
++++                 * This feature is not available in `Worker` threads.
++++                 * @since v0.1.28
++++                 */
++++                setuid?: (id: number | string) => void;
++++                /**
++++                 * The `process.geteuid()` method returns the numerical effective user identity of
++++                 * the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).)
++++                 *
++++                 * ```js
++++                 * import process from 'node:process';
++++                 *
++++                 * if (process.geteuid) {
++++                 *   console.log(`Current uid: ${process.geteuid()}`);
++++                 * }
++++                 * ```
++++                 *
++++                 * This function is only available on POSIX platforms (i.e. not Windows or
++++                 * Android).
++++                 * @since v2.0.0
++++                 */
++++                geteuid?: () => number;
++++                /**
++++                 * The `process.seteuid()` method sets the effective user identity of the process.
++++                 * (See [`seteuid(2)`](http://man7.org/linux/man-pages/man2/seteuid.2.html).) The `id` can be passed as either a numeric ID or a username
++++                 * string. If a username is specified, the method blocks while resolving the
++++                 * associated numeric ID.
++++                 *
++++                 * ```js
++++                 * import process from 'node:process';
++++                 *
++++                 * if (process.geteuid &#x26;&#x26; process.seteuid) {
++++                 *   console.log(`Current uid: ${process.geteuid()}`);
++++                 *   try {
++++                 *     process.seteuid(501);
++++                 *     console.log(`New uid: ${process.geteuid()}`);
++++                 *   } catch (err) {
++++                 *     console.log(`Failed to set uid: ${err}`);
++++                 *   }
++++                 * }
++++                 * ```
++++                 *
++++                 * This function is only available on POSIX platforms (i.e. not Windows or
++++                 * Android).
++++                 * This feature is not available in `Worker` threads.
++++                 * @since v2.0.0
++++                 * @param id A user name or ID
++++                 */
++++                seteuid?: (id: number | string) => void;
++++                /**
++++                 * The `process.getegid()` method returns the numerical effective group identity
++++                 * of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).)
++++                 *
++++                 * ```js
++++                 * import process from 'node:process';
++++                 *
++++                 * if (process.getegid) {
++++                 *   console.log(`Current gid: ${process.getegid()}`);
++++                 * }
++++                 * ```
++++                 *
++++                 * This function is only available on POSIX platforms (i.e. not Windows or
++++                 * Android).
++++                 * @since v2.0.0
++++                 */
++++                getegid?: () => number;
++++                /**
++++                 * The `process.setegid()` method sets the effective group identity of the process.
++++                 * (See [`setegid(2)`](http://man7.org/linux/man-pages/man2/setegid.2.html).) The `id` can be passed as either a numeric ID or a group
++++                 * name string. If a group name is specified, this method blocks while resolving
++++                 * the associated a numeric ID.
++++                 *
++++                 * ```js
++++                 * import process from 'node:process';
++++                 *
++++                 * if (process.getegid &#x26;&#x26; process.setegid) {
++++                 *   console.log(`Current gid: ${process.getegid()}`);
++++                 *   try {
++++                 *     process.setegid(501);
++++                 *     console.log(`New gid: ${process.getegid()}`);
++++                 *   } catch (err) {
++++                 *     console.log(`Failed to set gid: ${err}`);
++++                 *   }
++++                 * }
++++                 * ```
++++                 *
++++                 * This function is only available on POSIX platforms (i.e. not Windows or
++++                 * Android).
++++                 * This feature is not available in `Worker` threads.
++++                 * @since v2.0.0
++++                 * @param id A group name or ID
++++                 */
++++                setegid?: (id: number | string) => void;
++++                /**
++++                 * The `process.getgroups()` method returns an array with the supplementary group
++++                 * IDs. POSIX leaves it unspecified if the effective group ID is included but
++++                 * Node.js ensures it always is.
++++                 *
++++                 * ```js
++++                 * import process from 'node:process';
++++                 *
++++                 * if (process.getgroups) {
++++                 *   console.log(process.getgroups()); // [ 16, 21, 297 ]
++++                 * }
++++                 * ```
++++                 *
++++                 * This function is only available on POSIX platforms (i.e. not Windows or
++++                 * Android).
++++                 * @since v0.9.4
++++                 */
++++                getgroups?: () => number[];
++++                /**
++++                 * The `process.setgroups()` method sets the supplementary group IDs for the
++++                 * Node.js process. This is a privileged operation that requires the Node.js
++++                 * process to have `root` or the `CAP_SETGID` capability.
++++                 *
++++                 * The `groups` array can contain numeric group IDs, group names, or both.
++++                 *
++++                 * ```js
++++                 * import process from 'node:process';
++++                 *
++++                 * if (process.getgroups &#x26;&#x26; process.setgroups) {
++++                 *   try {
++++                 *     process.setgroups([501]);
++++                 *     console.log(process.getgroups()); // new groups
++++                 *   } catch (err) {
++++                 *     console.log(`Failed to set groups: ${err}`);
++++                 *   }
++++                 * }
++++                 * ```
++++                 *
++++                 * This function is only available on POSIX platforms (i.e. not Windows or
++++                 * Android).
++++                 * This feature is not available in `Worker` threads.
++++                 * @since v0.9.4
++++                 */
++++                setgroups?: (groups: ReadonlyArray<string | number>) => void;
++++                /**
++++                 * The `process.setUncaughtExceptionCaptureCallback()` function sets a function
++++                 * that will be invoked when an uncaught exception occurs, which will receive the
++++                 * exception value itself as its first argument.
++++                 *
++++                 * If such a function is set, the `'uncaughtException'` event will
++++                 * not be emitted. If `--abort-on-uncaught-exception` was passed from the
++++                 * command line or set through `v8.setFlagsFromString()`, the process will
++++                 * not abort. Actions configured to take place on exceptions such as report
++++                 * generations will be affected too
++++                 *
++++                 * To unset the capture function, `process.setUncaughtExceptionCaptureCallback(null)` may be used. Calling this
++++                 * method with a non-`null` argument while another capture function is set will
++++                 * throw an error.
++++                 *
++++                 * Using this function is mutually exclusive with using the deprecated `domain` built-in module.
++++                 * @since v9.3.0
++++                 */
++++                setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void;
++++                /**
++++                 * Indicates whether a callback has been set using {@link setUncaughtExceptionCaptureCallback}.
++++                 * @since v9.3.0
++++                 */
++++                hasUncaughtExceptionCaptureCallback(): boolean;
++++                /**
++++                 * The `process.sourceMapsEnabled` property returns whether the [Source Map v3](https://sourcemaps.info/spec.html) support for stack traces is enabled.
++++                 * @since v20.7.0
++++                 * @experimental
++++                 */
++++                readonly sourceMapsEnabled: boolean;
++++                /**
++++                 * This function enables or disables the [Source Map v3](https://sourcemaps.info/spec.html) support for
++++                 * stack traces.
++++                 *
++++                 * It provides same features as launching Node.js process with commandline options `--enable-source-maps`.
++++                 *
++++                 * Only source maps in JavaScript files that are loaded after source maps has been
++++                 * enabled will be parsed and loaded.
++++                 * @since v16.6.0, v14.18.0
++++                 * @experimental
++++                 */
++++                setSourceMapsEnabled(value: boolean): void;
++++                /**
++++                 * The `process.version` property contains the Node.js version string.
++++                 *
++++                 * ```js
++++                 * import { version } from 'node:process';
++++                 *
++++                 * console.log(`Version: ${version}`);
++++                 * // Version: v14.8.0
++++                 * ```
++++                 *
++++                 * To get the version string without the prepended _v_, use`process.versions.node`.
++++                 * @since v0.1.3
++++                 */
++++                readonly version: string;
++++                /**
++++                 * The `process.versions` property returns an object listing the version strings of
++++                 * Node.js and its dependencies. `process.versions.modules` indicates the current
++++                 * ABI version, which is increased whenever a C++ API changes. Node.js will refuse
++++                 * to load modules that were compiled against a different module ABI version.
++++                 *
++++                 * ```js
++++                 * import { versions } from 'node:process';
++++                 *
++++                 * console.log(versions);
++++                 * ```
++++                 *
++++                 * Will generate an object similar to:
++++                 *
++++                 * ```console
++++                 * { node: '20.2.0',
++++                 *   acorn: '8.8.2',
++++                 *   ada: '2.4.0',
++++                 *   ares: '1.19.0',
++++                 *   base64: '0.5.0',
++++                 *   brotli: '1.0.9',
++++                 *   cjs_module_lexer: '1.2.2',
++++                 *   cldr: '43.0',
++++                 *   icu: '73.1',
++++                 *   llhttp: '8.1.0',
++++                 *   modules: '115',
++++                 *   napi: '8',
++++                 *   nghttp2: '1.52.0',
++++                 *   nghttp3: '0.7.0',
++++                 *   ngtcp2: '0.8.1',
++++                 *   openssl: '3.0.8+quic',
++++                 *   simdutf: '3.2.9',
++++                 *   tz: '2023c',
++++                 *   undici: '5.22.0',
++++                 *   unicode: '15.0',
++++                 *   uv: '1.44.2',
++++                 *   uvwasi: '0.0.16',
++++                 *   v8: '11.3.244.8-node.9',
++++                 *   zlib: '1.2.13' }
++++                 * ```
++++                 * @since v0.2.0
++++                 */
++++                readonly versions: ProcessVersions;
++++                /**
++++                 * The `process.config` property returns a frozen `Object` containing the
++++                 * JavaScript representation of the configure options used to compile the current
++++                 * Node.js executable. This is the same as the `config.gypi` file that was produced
++++                 * when running the `./configure` script.
++++                 *
++++                 * An example of the possible output looks like:
++++                 *
++++                 * ```js
++++                 * {
++++                 *   target_defaults:
++++                 *    { cflags: [],
++++                 *      default_configuration: 'Release',
++++                 *      defines: [],
++++                 *      include_dirs: [],
++++                 *      libraries: [] },
++++                 *   variables:
++++                 *    {
++++                 *      host_arch: 'x64',
++++                 *      napi_build_version: 5,
++++                 *      node_install_npm: 'true',
++++                 *      node_prefix: '',
++++                 *      node_shared_cares: 'false',
++++                 *      node_shared_http_parser: 'false',
++++                 *      node_shared_libuv: 'false',
++++                 *      node_shared_zlib: 'false',
++++                 *      node_use_openssl: 'true',
++++                 *      node_shared_openssl: 'false',
++++                 *      strict_aliasing: 'true',
++++                 *      target_arch: 'x64',
++++                 *      v8_use_snapshot: 1
++++                 *    }
++++                 * }
++++                 * ```
++++                 * @since v0.7.7
++++                 */
++++                readonly config: ProcessConfig;
++++                /**
++++                 * The `process.kill()` method sends the `signal` to the process identified by`pid`.
++++                 *
++++                 * Signal names are strings such as `'SIGINT'` or `'SIGHUP'`. See `Signal Events` and [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for more information.
++++                 *
++++                 * This method will throw an error if the target `pid` does not exist. As a special
++++                 * case, a signal of `0` can be used to test for the existence of a process.
++++                 * Windows platforms will throw an error if the `pid` is used to kill a process
++++                 * group.
++++                 *
++++                 * Even though the name of this function is `process.kill()`, it is really just a
++++                 * signal sender, like the `kill` system call. The signal sent may do something
++++                 * other than kill the target process.
++++                 *
++++                 * ```js
++++                 * import process, { kill } from 'node:process';
++++                 *
++++                 * process.on('SIGHUP', () => {
++++                 *   console.log('Got SIGHUP signal.');
++++                 * });
++++                 *
++++                 * setTimeout(() => {
++++                 *   console.log('Exiting.');
++++                 *   process.exit(0);
++++                 * }, 100);
++++                 *
++++                 * kill(process.pid, 'SIGHUP');
++++                 * ```
++++                 *
++++                 * When `SIGUSR1` is received by a Node.js process, Node.js will start the
++++                 * debugger. See `Signal Events`.
++++                 * @since v0.0.6
++++                 * @param pid A process ID
++++                 * @param [signal='SIGTERM'] The signal to send, either as a string or number.
++++                 */
++++                kill(pid: number, signal?: string | number): true;
++++                /**
++++                 * Loads the environment configuration from a `.env` file into `process.env`. If
++++                 * the file is not found, error will be thrown.
++++                 *
++++                 * To load a specific .env file by specifying its path, use the following code:
++++                 *
++++                 * ```js
++++                 * import { loadEnvFile } from 'node:process';
++++                 *
++++                 * loadEnvFile('./development.env')
++++                 * ```
++++                 * @since v20.12.0
++++                 * @param path The path to the .env file
++++                 */
++++                loadEnvFile(path?: string | URL | Buffer): void;
++++                /**
++++                 * The `process.pid` property returns the PID of the process.
++++                 *
++++                 * ```js
++++                 * import { pid } from 'node:process';
++++                 *
++++                 * console.log(`This process is pid ${pid}`);
++++                 * ```
++++                 * @since v0.1.15
++++                 */
++++                readonly pid: number;
++++                /**
++++                 * The `process.ppid` property returns the PID of the parent of the
++++                 * current process.
++++                 *
++++                 * ```js
++++                 * import { ppid } from 'node:process';
++++                 *
++++                 * console.log(`The parent process is pid ${ppid}`);
++++                 * ```
++++                 * @since v9.2.0, v8.10.0, v6.13.0
++++                 */
++++                readonly ppid: number;
++++                /**
++++                 * The `process.title` property returns the current process title (i.e. returns
++++                 * the current value of `ps`). Assigning a new value to `process.title` modifies
++++                 * the current value of `ps`.
++++                 *
++++                 * When a new value is assigned, different platforms will impose different maximum
++++                 * length restrictions on the title. Usually such restrictions are quite limited.
++++                 * For instance, on Linux and macOS, `process.title` is limited to the size of the
++++                 * binary name plus the length of the command-line arguments because setting the `process.title` overwrites the `argv` memory of the process. Node.js v0.8
++++                 * allowed for longer process title strings by also overwriting the `environ` memory but that was potentially insecure and confusing in some (rather obscure)
++++                 * cases.
++++                 *
++++                 * Assigning a value to `process.title` might not result in an accurate label
++++                 * within process manager applications such as macOS Activity Monitor or Windows
++++                 * Services Manager.
++++                 * @since v0.1.104
++++                 */
++++                title: string;
++++                /**
++++                 * The operating system CPU architecture for which the Node.js binary was compiled.
++++                 * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, and `'x64'`.
++++                 *
++++                 * ```js
++++                 * import { arch } from 'node:process';
++++                 *
++++                 * console.log(`This processor architecture is ${arch}`);
++++                 * ```
++++                 * @since v0.5.0
++++                 */
++++                readonly arch: Architecture;
++++                /**
++++                 * The `process.platform` property returns a string identifying the operating
++++                 * system platform for which the Node.js binary was compiled.
++++                 *
++++                 * Currently possible values are:
++++                 *
++++                 * * `'aix'`
++++                 * * `'darwin'`
++++                 * * `'freebsd'`
++++                 * * `'linux'`
++++                 * * `'openbsd'`
++++                 * * `'sunos'`
++++                 * * `'win32'`
++++                 *
++++                 * ```js
++++                 * import { platform } from 'node:process';
++++                 *
++++                 * console.log(`This platform is ${platform}`);
++++                 * ```
++++                 *
++++                 * The value `'android'` may also be returned if the Node.js is built on the
++++                 * Android operating system. However, Android support in Node.js [is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os).
++++                 * @since v0.1.16
++++                 */
++++                readonly platform: Platform;
++++                /**
++++                 * The `process.mainModule` property provides an alternative way of retrieving `require.main`. The difference is that if the main module changes at
++++                 * runtime, `require.main` may still refer to the original main module in
++++                 * modules that were required before the change occurred. Generally, it's
++++                 * safe to assume that the two refer to the same module.
++++                 *
++++                 * As with `require.main`, `process.mainModule` will be `undefined` if there
++++                 * is no entry script.
++++                 * @since v0.1.17
++++                 * @deprecated Since v14.0.0 - Use `main` instead.
++++                 */
++++                mainModule?: Module | undefined;
++++                memoryUsage: MemoryUsageFn;
++++                /**
++++                 * Gets the amount of memory available to the process (in bytes) based on
++++                 * limits imposed by the OS. If there is no such constraint, or the constraint
++++                 * is unknown, `0` is returned.
++++                 *
++++                 * See [`uv_get_constrained_memory`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_get_constrained_memory) for more
++++                 * information.
++++                 * @since v19.6.0, v18.15.0
++++                 * @experimental
++++                 */
++++                constrainedMemory(): number;
++++                /**
++++                 * Gets the amount of free memory that is still available to the process (in bytes).
++++                 * See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v20.x/api/process.html#processavailablememory) for more information.
++++                 * @experimental
++++                 * @since v20.13.0
++++                 */
++++                availableMemory(): number;
++++                /**
++++                 * The `process.cpuUsage()` method returns the user and system CPU time usage of
++++                 * the current process, in an object with properties `user` and `system`, whose
++++                 * values are microsecond values (millionth of a second). These values measure time
++++                 * spent in user and system code respectively, and may end up being greater than
++++                 * actual elapsed time if multiple CPU cores are performing work for this process.
++++                 *
++++                 * The result of a previous call to `process.cpuUsage()` can be passed as the
++++                 * argument to the function, to get a diff reading.
++++                 *
++++                 * ```js
++++                 * import { cpuUsage } from 'node:process';
++++                 *
++++                 * const startUsage = cpuUsage();
++++                 * // { user: 38579, system: 6986 }
++++                 *
++++                 * // spin the CPU for 500 milliseconds
++++                 * const now = Date.now();
++++                 * while (Date.now() - now < 500);
++++                 *
++++                 * console.log(cpuUsage(startUsage));
++++                 * // { user: 514883, system: 11226 }
++++                 * ```
++++                 * @since v6.1.0
++++                 * @param previousValue A previous return value from calling `process.cpuUsage()`
++++                 */
++++                cpuUsage(previousValue?: CpuUsage): CpuUsage;
++++                /**
++++                 * `process.nextTick()` adds `callback` to the "next tick queue". This queue is
++++                 * fully drained after the current operation on the JavaScript stack runs to
++++                 * completion and before the event loop is allowed to continue. It's possible to
++++                 * create an infinite loop if one were to recursively call `process.nextTick()`.
++++                 * See the [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#process-nexttick) guide for more background.
++++                 *
++++                 * ```js
++++                 * import { nextTick } from 'node:process';
++++                 *
++++                 * console.log('start');
++++                 * nextTick(() => {
++++                 *   console.log('nextTick callback');
++++                 * });
++++                 * console.log('scheduled');
++++                 * // Output:
++++                 * // start
++++                 * // scheduled
++++                 * // nextTick callback
++++                 * ```
++++                 *
++++                 * This is important when developing APIs in order to give users the opportunity
++++                 * to assign event handlers _after_ an object has been constructed but before any
++++                 * I/O has occurred:
++++                 *
++++                 * ```js
++++                 * import { nextTick } from 'node:process';
++++                 *
++++                 * function MyThing(options) {
++++                 *   this.setupOptions(options);
++++                 *
++++                 *   nextTick(() => {
++++                 *     this.startDoingStuff();
++++                 *   });
++++                 * }
++++                 *
++++                 * const thing = new MyThing();
++++                 * thing.getReadyForStuff();
++++                 *
++++                 * // thing.startDoingStuff() gets called now, not before.
++++                 * ```
++++                 *
++++                 * It is very important for APIs to be either 100% synchronous or 100%
++++                 * asynchronous. Consider this example:
++++                 *
++++                 * ```js
++++                 * // WARNING!  DO NOT USE!  BAD UNSAFE HAZARD!
++++                 * function maybeSync(arg, cb) {
++++                 *   if (arg) {
++++                 *     cb();
++++                 *     return;
++++                 *   }
++++                 *
++++                 *   fs.stat('file', cb);
++++                 * }
++++                 * ```
++++                 *
++++                 * This API is hazardous because in the following case:
++++                 *
++++                 * ```js
++++                 * const maybeTrue = Math.random() > 0.5;
++++                 *
++++                 * maybeSync(maybeTrue, () => {
++++                 *   foo();
++++                 * });
++++                 *
++++                 * bar();
++++                 * ```
++++                 *
++++                 * It is not clear whether `foo()` or `bar()` will be called first.
++++                 *
++++                 * The following approach is much better:
++++                 *
++++                 * ```js
++++                 * import { nextTick } from 'node:process';
++++                 *
++++                 * function definitelyAsync(arg, cb) {
++++                 *   if (arg) {
++++                 *     nextTick(cb);
++++                 *     return;
++++                 *   }
++++                 *
++++                 *   fs.stat('file', cb);
++++                 * }
++++                 * ```
++++                 * @since v0.1.26
++++                 * @param args Additional arguments to pass when invoking the `callback`
++++                 */
++++                nextTick(callback: Function, ...args: any[]): void;
++++                /**
++++                 * This API is available through the [--experimental-permission](https://nodejs.org/api/cli.html#--experimental-permission) flag.
++++                 *
++++                 * `process.permission` is an object whose methods are used to manage permissions for the current process.
++++                 * Additional documentation is available in the [Permission Model](https://nodejs.org/api/permissions.html#permission-model).
++++                 * @since v20.0.0
++++                 */
++++                permission: ProcessPermission;
++++                /**
++++                 * The `process.release` property returns an `Object` containing metadata related
++++                 * to the current release, including URLs for the source tarball and headers-only
++++                 * tarball.
++++                 *
++++                 * `process.release` contains the following properties:
++++                 *
++++                 * ```js
++++                 * {
++++                 *   name: 'node',
++++                 *   lts: 'Hydrogen',
++++                 *   sourceUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0.tar.gz',
++++                 *   headersUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0-headers.tar.gz',
++++                 *   libUrl: 'https://nodejs.org/download/release/v18.12.0/win-x64/node.lib'
++++                 * }
++++                 * ```
++++                 *
++++                 * In custom builds from non-release versions of the source tree, only the `name` property may be present. The additional properties should not be
++++                 * relied upon to exist.
++++                 * @since v3.0.0
++++                 */
++++                readonly release: ProcessRelease;
++++                features: {
++++                    inspector: boolean;
++++                    debug: boolean;
++++                    uv: boolean;
++++                    ipv6: boolean;
++++                    tls_alpn: boolean;
++++                    tls_sni: boolean;
++++                    tls_ocsp: boolean;
++++                    tls: boolean;
++++                };
++++                /**
++++                 * `process.umask()` returns the Node.js process's file mode creation mask. Child
++++                 * processes inherit the mask from the parent process.
++++                 * @since v0.1.19
++++                 * @deprecated Calling `process.umask()` with no argument causes the process-wide umask to be written twice. This introduces a race condition between threads, and is a potential
++++                 * security vulnerability. There is no safe, cross-platform alternative API.
++++                 */
++++                umask(): number;
++++                /**
++++                 * Can only be set if not in worker thread.
++++                 */
++++                umask(mask: string | number): number;
++++                /**
++++                 * The `process.uptime()` method returns the number of seconds the current Node.js
++++                 * process has been running.
++++                 *
++++                 * The return value includes fractions of a second. Use `Math.floor()` to get whole
++++                 * seconds.
++++                 * @since v0.5.0
++++                 */
++++                uptime(): number;
++++                hrtime: HRTime;
++++                /**
++++                 * If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel.
++++                 * If no IPC channel exists, this property is undefined.
++++                 * @since v7.1.0
++++                 */
++++                channel?: {
++++                    /**
++++                     * This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
++++                     * @since v7.1.0
++++                     */
++++                    ref(): void;
++++                    /**
++++                     * This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
++++                     * @since v7.1.0
++++                     */
++++                    unref(): void;
++++                };
++++                /**
++++                 * If Node.js is spawned with an IPC channel, the `process.send()` method can be
++++                 * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
++++                 *
++++                 * If Node.js was not spawned with an IPC channel, `process.send` will be `undefined`.
++++                 *
++++                 * The message goes through serialization and parsing. The resulting message might
++++                 * not be the same as what is originally sent.
++++                 * @since v0.5.9
++++                 * @param options used to parameterize the sending of certain types of handles. `options` supports the following properties:
++++                 */
++++                send?(
++++                    message: any,
++++                    sendHandle?: any,
++++                    options?: {
++++                        keepOpen?: boolean | undefined;
++++                    },
++++                    callback?: (error: Error | null) => void,
++++                ): boolean;
++++                /**
++++                 * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.disconnect()` method will close the
++++                 * IPC channel to the parent process, allowing the child process to exit gracefully
++++                 * once there are no other connections keeping it alive.
++++                 *
++++                 * The effect of calling `process.disconnect()` is the same as calling `ChildProcess.disconnect()` from the parent process.
++++                 *
++++                 * If the Node.js process was not spawned with an IPC channel, `process.disconnect()` will be `undefined`.
++++                 * @since v0.7.2
++++                 */
++++                disconnect(): void;
++++                /**
++++                 * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.connected` property will return `true` so long as the IPC
++++                 * channel is connected and will return `false` after `process.disconnect()` is called.
++++                 *
++++                 * Once `process.connected` is `false`, it is no longer possible to send messages
++++                 * over the IPC channel using `process.send()`.
++++                 * @since v0.7.2
++++                 */
++++                connected: boolean;
++++                /**
++++                 * The `process.allowedNodeEnvironmentFlags` property is a special,
++++                 * read-only `Set` of flags allowable within the `NODE_OPTIONS` environment variable.
++++                 *
++++                 * `process.allowedNodeEnvironmentFlags` extends `Set`, but overrides `Set.prototype.has` to recognize several different possible flag
++++                 * representations. `process.allowedNodeEnvironmentFlags.has()` will
++++                 * return `true` in the following cases:
++++                 *
++++                 * * Flags may omit leading single (`-`) or double (`--`) dashes; e.g., `inspect-brk` for `--inspect-brk`, or `r` for `-r`.
++++                 * * Flags passed through to V8 (as listed in `--v8-options`) may replace
++++                 * one or more _non-leading_ dashes for an underscore, or vice-versa;
++++                 * e.g., `--perf_basic_prof`, `--perf-basic-prof`, `--perf_basic-prof`,
++++                 * etc.
++++                 * * Flags may contain one or more equals (`=`) characters; all
++++                 * characters after and including the first equals will be ignored;
++++                 * e.g., `--stack-trace-limit=100`.
++++                 * * Flags _must_ be allowable within `NODE_OPTIONS`.
++++                 *
++++                 * When iterating over `process.allowedNodeEnvironmentFlags`, flags will
++++                 * appear only _once_; each will begin with one or more dashes. Flags
++++                 * passed through to V8 will contain underscores instead of non-leading
++++                 * dashes:
++++                 *
++++                 * ```js
++++                 * import { allowedNodeEnvironmentFlags } from 'node:process';
++++                 *
++++                 * allowedNodeEnvironmentFlags.forEach((flag) => {
++++                 *   // -r
++++                 *   // --inspect-brk
++++                 *   // --abort_on_uncaught_exception
++++                 *   // ...
++++                 * });
++++                 * ```
++++                 *
++++                 * The methods `add()`, `clear()`, and `delete()` of`process.allowedNodeEnvironmentFlags` do nothing, and will fail
++++                 * silently.
++++                 *
++++                 * If Node.js was compiled _without_ `NODE_OPTIONS` support (shown in {@link config}), `process.allowedNodeEnvironmentFlags` will
++++                 * contain what _would have_ been allowable.
++++                 * @since v10.10.0
++++                 */
++++                allowedNodeEnvironmentFlags: ReadonlySet<string>;
++++                /**
++++                 * `process.report` is an object whose methods are used to generate diagnostic reports for the current process.
++++                 * Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v20.x/api/report.html).
++++                 * @since v11.8.0
++++                 */
++++                report: ProcessReport;
++++                /**
++++                 * ```js
++++                 * import { resourceUsage } from 'node:process';
++++                 *
++++                 * console.log(resourceUsage());
++++                 * /*
++++                 *   Will output:
++++                 *   {
++++                 *     userCPUTime: 82872,
++++                 *     systemCPUTime: 4143,
++++                 *     maxRSS: 33164,
++++                 *     sharedMemorySize: 0,
++++                 *     unsharedDataSize: 0,
++++                 *     unsharedStackSize: 0,
++++                 *     minorPageFault: 2469,
++++                 *     majorPageFault: 0,
++++                 *     swappedOut: 0,
++++                 *     fsRead: 0,
++++                 *     fsWrite: 8,
++++                 *     ipcSent: 0,
++++                 *     ipcReceived: 0,
++++                 *     signalsCount: 0,
++++                 *     voluntaryContextSwitches: 79,
++++                 *     involuntaryContextSwitches: 1
++++                 *   }
++++                 *
++++                 * ```
++++                 * @since v12.6.0
++++                 * @return the resource usage for the current process. All of these values come from the `uv_getrusage` call which returns a [`uv_rusage_t` struct][uv_rusage_t].
++++                 */
++++                resourceUsage(): ResourceUsage;
++++                /**
++++                 * The initial value of `process.throwDeprecation` indicates whether the `--throw-deprecation` flag is set on the current Node.js process. `process.throwDeprecation`
++++                 * is mutable, so whether or not deprecation warnings result in errors may be altered at runtime. See the documentation for the 'warning' event and the emitWarning()
++++                 * method for more information.
++++                 *
++++                 * ```bash
++++                 * $ node --throw-deprecation -p "process.throwDeprecation"
++++                 * true
++++                 * $ node -p "process.throwDeprecation"
++++                 * undefined
++++                 * $ node
++++                 * > process.emitWarning('test', 'DeprecationWarning');
++++                 * undefined
++++                 * > (node:26598) DeprecationWarning: test
++++                 * > process.throwDeprecation = true;
++++                 * true
++++                 * > process.emitWarning('test', 'DeprecationWarning');
++++                 * Thrown:
++++                 * [DeprecationWarning: test] { name: 'DeprecationWarning' }
++++                 * ```
++++                 * @since v0.9.12
++++                 */
++++                throwDeprecation: boolean;
++++                /**
++++                 * The `process.traceDeprecation` property indicates whether the `--trace-deprecation` flag is set on the current Node.js process. See the
++++                 * documentation for the `'warning' event` and the `emitWarning() method` for more information about this
++++                 * flag's behavior.
++++                 * @since v0.8.0
++++                 */
++++                traceDeprecation: boolean;
++++                /* EventEmitter */
++++                addListener(event: "beforeExit", listener: BeforeExitListener): this;
++++                addListener(event: "disconnect", listener: DisconnectListener): this;
++++                addListener(event: "exit", listener: ExitListener): this;
++++                addListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
++++                addListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
++++                addListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
++++                addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
++++                addListener(event: "warning", listener: WarningListener): this;
++++                addListener(event: "message", listener: MessageListener): this;
++++                addListener(event: Signals, listener: SignalsListener): this;
++++                addListener(event: "multipleResolves", listener: MultipleResolveListener): this;
++++                addListener(event: "worker", listener: WorkerListener): this;
++++                emit(event: "beforeExit", code: number): boolean;
++++                emit(event: "disconnect"): boolean;
++++                emit(event: "exit", code: number): boolean;
++++                emit(event: "rejectionHandled", promise: Promise<unknown>): boolean;
++++                emit(event: "uncaughtException", error: Error): boolean;
++++                emit(event: "uncaughtExceptionMonitor", error: Error): boolean;
++++                emit(event: "unhandledRejection", reason: unknown, promise: Promise<unknown>): boolean;
++++                emit(event: "warning", warning: Error): boolean;
++++                emit(event: "message", message: unknown, sendHandle: unknown): this;
++++                emit(event: Signals, signal?: Signals): boolean;
++++                emit(
++++                    event: "multipleResolves",
++++                    type: MultipleResolveType,
++++                    promise: Promise<unknown>,
++++                    value: unknown,
++++                ): this;
++++                emit(event: "worker", listener: WorkerListener): this;
++++                on(event: "beforeExit", listener: BeforeExitListener): this;
++++                on(event: "disconnect", listener: DisconnectListener): this;
++++                on(event: "exit", listener: ExitListener): this;
++++                on(event: "rejectionHandled", listener: RejectionHandledListener): this;
++++                on(event: "uncaughtException", listener: UncaughtExceptionListener): this;
++++                on(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
++++                on(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
++++                on(event: "warning", listener: WarningListener): this;
++++                on(event: "message", listener: MessageListener): this;
++++                on(event: Signals, listener: SignalsListener): this;
++++                on(event: "multipleResolves", listener: MultipleResolveListener): this;
++++                on(event: "worker", listener: WorkerListener): this;
++++                on(event: string | symbol, listener: (...args: any[]) => void): this;
++++                once(event: "beforeExit", listener: BeforeExitListener): this;
++++                once(event: "disconnect", listener: DisconnectListener): this;
++++                once(event: "exit", listener: ExitListener): this;
++++                once(event: "rejectionHandled", listener: RejectionHandledListener): this;
++++                once(event: "uncaughtException", listener: UncaughtExceptionListener): this;
++++                once(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
++++                once(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
++++                once(event: "warning", listener: WarningListener): this;
++++                once(event: "message", listener: MessageListener): this;
++++                once(event: Signals, listener: SignalsListener): this;
++++                once(event: "multipleResolves", listener: MultipleResolveListener): this;
++++                once(event: "worker", listener: WorkerListener): this;
++++                once(event: string | symbol, listener: (...args: any[]) => void): this;
++++                prependListener(event: "beforeExit", listener: BeforeExitListener): this;
++++                prependListener(event: "disconnect", listener: DisconnectListener): this;
++++                prependListener(event: "exit", listener: ExitListener): this;
++++                prependListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
++++                prependListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
++++                prependListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
++++                prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
++++                prependListener(event: "warning", listener: WarningListener): this;
++++                prependListener(event: "message", listener: MessageListener): this;
++++                prependListener(event: Signals, listener: SignalsListener): this;
++++                prependListener(event: "multipleResolves", listener: MultipleResolveListener): this;
++++                prependListener(event: "worker", listener: WorkerListener): this;
++++                prependOnceListener(event: "beforeExit", listener: BeforeExitListener): this;
++++                prependOnceListener(event: "disconnect", listener: DisconnectListener): this;
++++                prependOnceListener(event: "exit", listener: ExitListener): this;
++++                prependOnceListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
++++                prependOnceListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
++++                prependOnceListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
++++                prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
++++                prependOnceListener(event: "warning", listener: WarningListener): this;
++++                prependOnceListener(event: "message", listener: MessageListener): this;
++++                prependOnceListener(event: Signals, listener: SignalsListener): this;
++++                prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this;
++++                prependOnceListener(event: "worker", listener: WorkerListener): this;
++++                listeners(event: "beforeExit"): BeforeExitListener[];
++++                listeners(event: "disconnect"): DisconnectListener[];
++++                listeners(event: "exit"): ExitListener[];
++++                listeners(event: "rejectionHandled"): RejectionHandledListener[];
++++                listeners(event: "uncaughtException"): UncaughtExceptionListener[];
++++                listeners(event: "uncaughtExceptionMonitor"): UncaughtExceptionListener[];
++++                listeners(event: "unhandledRejection"): UnhandledRejectionListener[];
++++                listeners(event: "warning"): WarningListener[];
++++                listeners(event: "message"): MessageListener[];
++++                listeners(event: Signals): SignalsListener[];
++++                listeners(event: "multipleResolves"): MultipleResolveListener[];
++++                listeners(event: "worker"): WorkerListener[];
++++            }
++++        }
++++    }
++++    export = process;
++++}
++++declare module "node:process" {
++++    import process = require("process");
++++    export = process;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..394d611230311283fdab410c4e7ac047a88dc16f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,117 @@@@@
++++/**
++++ * **The version of the punycode module bundled in Node.js is being deprecated. **In a future major version of Node.js this module will be removed. Users
++++ * currently depending on the `punycode` module should switch to using the
++++ * userland-provided [Punycode.js](https://github.com/bestiejs/punycode.js) module instead. For punycode-based URL
++++ * encoding, see `url.domainToASCII` or, more generally, the `WHATWG URL API`.
++++ *
++++ * The `punycode` module is a bundled version of the [Punycode.js](https://github.com/bestiejs/punycode.js) module. It
++++ * can be accessed using:
++++ *
++++ * ```js
++++ * import punycode from 'node:punycode';
++++ * ```
++++ *
++++ * [Punycode](https://tools.ietf.org/html/rfc3492) is a character encoding scheme defined by RFC 3492 that is
++++ * primarily intended for use in Internationalized Domain Names. Because host
++++ * names in URLs are limited to ASCII characters only, Domain Names that contain
++++ * non-ASCII characters must be converted into ASCII using the Punycode scheme.
++++ * For instance, the Japanese character that translates into the English word, `'example'` is `'例'`. The Internationalized Domain Name, `'例.com'` (equivalent
++++ * to `'example.com'`) is represented by Punycode as the ASCII string `'xn--fsq.com'`.
++++ *
++++ * The `punycode` module provides a simple implementation of the Punycode standard.
++++ *
++++ * The `punycode` module is a third-party dependency used by Node.js and
++++ * made available to developers as a convenience. Fixes or other modifications to
++++ * the module must be directed to the [Punycode.js](https://github.com/bestiejs/punycode.js) project.
++++ * @deprecated Since v7.0.0 - Deprecated
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/punycode.js)
++++ */
++++declare module "punycode" {
++++    /**
++++     * The `punycode.decode()` method converts a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only
++++     * characters to the equivalent string of Unicode codepoints.
++++     *
++++     * ```js
++++     * punycode.decode('maana-pta'); // 'mañana'
++++     * punycode.decode('--dqo34k'); // '☃-⌘'
++++     * ```
++++     * @since v0.5.1
++++     */
++++    function decode(string: string): string;
++++    /**
++++     * The `punycode.encode()` method converts a string of Unicode codepoints to a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only characters.
++++     *
++++     * ```js
++++     * punycode.encode('mañana'); // 'maana-pta'
++++     * punycode.encode('☃-⌘'); // '--dqo34k'
++++     * ```
++++     * @since v0.5.1
++++     */
++++    function encode(string: string): string;
++++    /**
++++     * The `punycode.toUnicode()` method converts a string representing a domain name
++++     * containing [Punycode](https://tools.ietf.org/html/rfc3492) encoded characters into Unicode. Only the [Punycode](https://tools.ietf.org/html/rfc3492) encoded parts of the domain name are be
++++     * converted.
++++     *
++++     * ```js
++++     * // decode domain names
++++     * punycode.toUnicode('xn--maana-pta.com'); // 'mañana.com'
++++     * punycode.toUnicode('xn----dqo34k.com');  // '☃-⌘.com'
++++     * punycode.toUnicode('example.com');       // 'example.com'
++++     * ```
++++     * @since v0.6.1
++++     */
++++    function toUnicode(domain: string): string;
++++    /**
++++     * The `punycode.toASCII()` method converts a Unicode string representing an
++++     * Internationalized Domain Name to [Punycode](https://tools.ietf.org/html/rfc3492). Only the non-ASCII parts of the
++++     * domain name will be converted. Calling `punycode.toASCII()` on a string that
++++     * already only contains ASCII characters will have no effect.
++++     *
++++     * ```js
++++     * // encode domain names
++++     * punycode.toASCII('mañana.com');  // 'xn--maana-pta.com'
++++     * punycode.toASCII('☃-⌘.com');   // 'xn----dqo34k.com'
++++     * punycode.toASCII('example.com'); // 'example.com'
++++     * ```
++++     * @since v0.6.1
++++     */
++++    function toASCII(domain: string): string;
++++    /**
++++     * @deprecated since v7.0.0
++++     * The version of the punycode module bundled in Node.js is being deprecated.
++++     * In a future major version of Node.js this module will be removed.
++++     * Users currently depending on the punycode module should switch to using
++++     * the userland-provided Punycode.js module instead.
++++     */
++++    const ucs2: ucs2;
++++    interface ucs2 {
++++        /**
++++         * @deprecated since v7.0.0
++++         * The version of the punycode module bundled in Node.js is being deprecated.
++++         * In a future major version of Node.js this module will be removed.
++++         * Users currently depending on the punycode module should switch to using
++++         * the userland-provided Punycode.js module instead.
++++         */
++++        decode(string: string): number[];
++++        /**
++++         * @deprecated since v7.0.0
++++         * The version of the punycode module bundled in Node.js is being deprecated.
++++         * In a future major version of Node.js this module will be removed.
++++         * Users currently depending on the punycode module should switch to using
++++         * the userland-provided Punycode.js module instead.
++++         */
++++        encode(codePoints: readonly number[]): string;
++++    }
++++    /**
++++     * @deprecated since v7.0.0
++++     * The version of the punycode module bundled in Node.js is being deprecated.
++++     * In a future major version of Node.js this module will be removed.
++++     * Users currently depending on the punycode module should switch to using
++++     * the userland-provided Punycode.js module instead.
++++     */
++++    const version: string;
++++}
++++declare module "node:punycode" {
++++    export * from "punycode";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..592033c396a15c7a9556246856d3e6277048fff8
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,153 @@@@@
++++/**
++++ * The `node:querystring` module provides utilities for parsing and formatting URL
++++ * query strings. It can be accessed using:
++++ *
++++ * ```js
++++ * import querystring from 'node:querystring';
++++ * ```
++++ *
++++ * `querystring` is more performant than `URLSearchParams` but is not a
++++ * standardized API. Use `URLSearchParams` when performance is not critical or
++++ * when compatibility with browser code is desirable.
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/querystring.js)
++++ */
++++declare module "querystring" {
++++    interface StringifyOptions {
++++        /**
++++         * The function to use when converting URL-unsafe characters to percent-encoding in the query string.
++++         * @default `querystring.escape()`
++++         */
++++        encodeURIComponent?: ((str: string) => string) | undefined;
++++    }
++++    interface ParseOptions {
++++        /**
++++         * Specifies the maximum number of keys to parse. Specify `0` to remove key counting limitations.
++++         * @default 1000
++++         */
++++        maxKeys?: number | undefined;
++++        /**
++++         * The function to use when decoding percent-encoded characters in the query string.
++++         * @default `querystring.unescape()`
++++         */
++++        decodeURIComponent?: ((str: string) => string) | undefined;
++++    }
++++    interface ParsedUrlQuery extends NodeJS.Dict<string | string[]> {}
++++    interface ParsedUrlQueryInput extends
++++        NodeJS.Dict<
++++            | string
++++            | number
++++            | boolean
++++            | readonly string[]
++++            | readonly number[]
++++            | readonly boolean[]
++++            | null
++++        >
++++    {}
++++    /**
++++     * The `querystring.stringify()` method produces a URL query string from a
++++     * given `obj` by iterating through the object's "own properties".
++++     *
++++     * It serializes the following types of values passed in `obj`: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) |
++++     * [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) |
++++     * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) |
++++     * [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) |
++++     * [string\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) |
++++     * [number\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) |
++++     * [bigint\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) |
++++     * [boolean\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) The numeric values must be finite. Any other input values will be coerced to
++++     * empty strings.
++++     *
++++     * ```js
++++     * querystring.stringify({ foo: 'bar', baz: ['qux', 'quux'], corge: '' });
++++     * // Returns 'foo=bar&#x26;baz=qux&#x26;baz=quux&#x26;corge='
++++     *
++++     * querystring.stringify({ foo: 'bar', baz: 'qux' }, ';', ':');
++++     * // Returns 'foo:bar;baz:qux'
++++     * ```
++++     *
++++     * By default, characters requiring percent-encoding within the query string will
++++     * be encoded as UTF-8\. If an alternative encoding is required, then an alternative `encodeURIComponent` option will need to be specified:
++++     *
++++     * ```js
++++     * // Assuming gbkEncodeURIComponent function already exists,
++++     *
++++     * querystring.stringify({ w: '中文', foo: 'bar' }, null, null,
++++     *                       { encodeURIComponent: gbkEncodeURIComponent });
++++     * ```
++++     * @since v0.1.25
++++     * @param obj The object to serialize into a URL query string
++++     * @param [sep='&'] The substring used to delimit key and value pairs in the query string.
++++     * @param [eq='='] . The substring used to delimit keys and values in the query string.
++++     */
++++    function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string;
++++    /**
++++     * The `querystring.parse()` method parses a URL query string (`str`) into a
++++     * collection of key and value pairs.
++++     *
++++     * For example, the query string `'foo=bar&#x26;abc=xyz&#x26;abc=123'` is parsed into:
++++     *
++++     * ```json
++++     * {
++++     *   "foo": "bar",
++++     *   "abc": ["xyz", "123"]
++++     * }
++++     * ```
++++     *
++++     * The object returned by the `querystring.parse()` method _does not_ prototypically inherit from the JavaScript `Object`. This means that typical `Object` methods such as `obj.toString()`,
++++     * `obj.hasOwnProperty()`, and others
++++     * are not defined and _will not work_.
++++     *
++++     * By default, percent-encoded characters within the query string will be assumed
++++     * to use UTF-8 encoding. If an alternative character encoding is used, then an
++++     * alternative `decodeURIComponent` option will need to be specified:
++++     *
++++     * ```js
++++     * // Assuming gbkDecodeURIComponent function already exists...
++++     *
++++     * querystring.parse('w=%D6%D0%CE%C4&#x26;foo=bar', null, null,
++++     *                   { decodeURIComponent: gbkDecodeURIComponent });
++++     * ```
++++     * @since v0.1.25
++++     * @param str The URL query string to parse
++++     * @param [sep='&'] The substring used to delimit key and value pairs in the query string.
++++     * @param [eq='='] The substring used to delimit keys and values in the query string.
++++     */
++++    function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery;
++++    /**
++++     * The querystring.encode() function is an alias for querystring.stringify().
++++     */
++++    const encode: typeof stringify;
++++    /**
++++     * The querystring.decode() function is an alias for querystring.parse().
++++     */
++++    const decode: typeof parse;
++++    /**
++++     * The `querystring.escape()` method performs URL percent-encoding on the given `str` in a manner that is optimized for the specific requirements of URL
++++     * query strings.
++++     *
++++     * The `querystring.escape()` method is used by `querystring.stringify()` and is
++++     * generally not expected to be used directly. It is exported primarily to allow
++++     * application code to provide a replacement percent-encoding implementation if
++++     * necessary by assigning `querystring.escape` to an alternative function.
++++     * @since v0.1.25
++++     */
++++    function escape(str: string): string;
++++    /**
++++     * The `querystring.unescape()` method performs decoding of URL percent-encoded
++++     * characters on the given `str`.
++++     *
++++     * The `querystring.unescape()` method is used by `querystring.parse()` and is
++++     * generally not expected to be used directly. It is exported primarily to allow
++++     * application code to provide a replacement decoding implementation if
++++     * necessary by assigning `querystring.unescape` to an alternative function.
++++     *
++++     * By default, the `querystring.unescape()` method will attempt to use the
++++     * JavaScript built-in `decodeURIComponent()` method to decode. If that fails,
++++     * a safer equivalent that does not throw on malformed URLs will be used.
++++     * @since v0.1.25
++++     */
++++    function unescape(str: string): string;
++++}
++++declare module "node:querystring" {
++++    export * from "querystring";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1504c26dd96bac90cc983df7fe5a5128fec896b9
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,589 @@@@@
++++/**
++++ * The `node:readline` module provides an interface for reading data from a [Readable](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream
++++ * (such as [`process.stdin`](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/process.html#processstdin)) one line at a time.
++++ *
++++ * To use the promise-based APIs:
++++ *
++++ * ```js
++++ * import * as readline from 'node:readline/promises';
++++ * ```
++++ *
++++ * To use the callback and sync APIs:
++++ *
++++ * ```js
++++ * import * as readline from 'node:readline';
++++ * ```
++++ *
++++ * The following simple example illustrates the basic use of the `node:readline` module.
++++ *
++++ * ```js
++++ * import * as readline from 'node:readline/promises';
++++ * import { stdin as input, stdout as output } from 'node:process';
++++ *
++++ * const rl = readline.createInterface({ input, output });
++++ *
++++ * const answer = await rl.question('What do you think of Node.js? ');
++++ *
++++ * console.log(`Thank you for your valuable feedback: ${answer}`);
++++ *
++++ * rl.close();
++++ * ```
++++ *
++++ * Once this code is invoked, the Node.js application will not terminate until the `readline.Interface` is closed because the interface waits for data to be
++++ * received on the `input` stream.
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/readline.js)
++++ */
++++declare module "readline" {
++++    import { Abortable, EventEmitter } from "node:events";
++++    import * as promises from "node:readline/promises";
++++    export { promises };
++++    export interface Key {
++++        sequence?: string | undefined;
++++        name?: string | undefined;
++++        ctrl?: boolean | undefined;
++++        meta?: boolean | undefined;
++++        shift?: boolean | undefined;
++++    }
++++    /**
++++     * Instances of the `readline.Interface` class are constructed using the `readline.createInterface()` method. Every instance is associated with a
++++     * single `input` [Readable](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream and a single `output` [Writable](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/stream.html#writable-streams) stream.
++++     * The `output` stream is used to print prompts for user input that arrives on,
++++     * and is read from, the `input` stream.
++++     * @since v0.1.104
++++     */
++++    export class Interface extends EventEmitter {
++++        readonly terminal: boolean;
++++        /**
++++         * The current input data being processed by node.
++++         *
++++         * This can be used when collecting input from a TTY stream to retrieve the
++++         * current value that has been processed thus far, prior to the `line` event
++++         * being emitted. Once the `line` event has been emitted, this property will
++++         * be an empty string.
++++         *
++++         * Be aware that modifying the value during the instance runtime may have
++++         * unintended consequences if `rl.cursor` is not also controlled.
++++         *
++++         * **If not using a TTY stream for input, use the `'line'` event.**
++++         *
++++         * One possible use case would be as follows:
++++         *
++++         * ```js
++++         * const values = ['lorem ipsum', 'dolor sit amet'];
++++         * const rl = readline.createInterface(process.stdin);
++++         * const showResults = debounce(() => {
++++         *   console.log(
++++         *     '\n',
++++         *     values.filter((val) => val.startsWith(rl.line)).join(' '),
++++         *   );
++++         * }, 300);
++++         * process.stdin.on('keypress', (c, k) => {
++++         *   showResults();
++++         * });
++++         * ```
++++         * @since v0.1.98
++++         */
++++        readonly line: string;
++++        /**
++++         * The cursor position relative to `rl.line`.
++++         *
++++         * This will track where the current cursor lands in the input string, when
++++         * reading input from a TTY stream. The position of cursor determines the
++++         * portion of the input string that will be modified as input is processed,
++++         * as well as the column where the terminal caret will be rendered.
++++         * @since v0.1.98
++++         */
++++        readonly cursor: number;
++++        /**
++++         * NOTE: According to the documentation:
++++         *
++++         * > Instances of the `readline.Interface` class are constructed using the
++++         * > `readline.createInterface()` method.
++++         *
++++         * @see https://nodejs.org/docs/latest-v20.x/api/readline.html#class-interfaceconstructor
++++         */
++++        protected constructor(
++++            input: NodeJS.ReadableStream,
++++            output?: NodeJS.WritableStream,
++++            completer?: Completer | AsyncCompleter,
++++            terminal?: boolean,
++++        );
++++        /**
++++         * NOTE: According to the documentation:
++++         *
++++         * > Instances of the `readline.Interface` class are constructed using the
++++         * > `readline.createInterface()` method.
++++         *
++++         * @see https://nodejs.org/docs/latest-v20.x/api/readline.html#class-interfaceconstructor
++++         */
++++        protected constructor(options: ReadLineOptions);
++++        /**
++++         * The `rl.getPrompt()` method returns the current prompt used by `rl.prompt()`.
++++         * @since v15.3.0, v14.17.0
++++         * @return the current prompt string
++++         */
++++        getPrompt(): string;
++++        /**
++++         * The `rl.setPrompt()` method sets the prompt that will be written to `output` whenever `rl.prompt()` is called.
++++         * @since v0.1.98
++++         */
++++        setPrompt(prompt: string): void;
++++        /**
++++         * The `rl.prompt()` method writes the `Interface` instances configured`prompt` to a new line in `output` in order to provide a user with a new
++++         * location at which to provide input.
++++         *
++++         * When called, `rl.prompt()` will resume the `input` stream if it has been
++++         * paused.
++++         *
++++         * If the `Interface` was created with `output` set to `null` or `undefined` the prompt is not written.
++++         * @since v0.1.98
++++         * @param preserveCursor If `true`, prevents the cursor placement from being reset to `0`.
++++         */
++++        prompt(preserveCursor?: boolean): void;
++++        /**
++++         * The `rl.question()` method displays the `query` by writing it to the `output`,
++++         * waits for user input to be provided on `input`, then invokes the `callback` function passing the provided input as the first argument.
++++         *
++++         * When called, `rl.question()` will resume the `input` stream if it has been
++++         * paused.
++++         *
++++         * If the `Interface` was created with `output` set to `null` or `undefined` the `query` is not written.
++++         *
++++         * The `callback` function passed to `rl.question()` does not follow the typical
++++         * pattern of accepting an `Error` object or `null` as the first argument.
++++         * The `callback` is called with the provided answer as the only argument.
++++         *
++++         * An error will be thrown if calling `rl.question()` after `rl.close()`.
++++         *
++++         * Example usage:
++++         *
++++         * ```js
++++         * rl.question('What is your favorite food? ', (answer) => {
++++         *   console.log(`Oh, so your favorite food is ${answer}`);
++++         * });
++++         * ```
++++         *
++++         * Using an `AbortController` to cancel a question.
++++         *
++++         * ```js
++++         * const ac = new AbortController();
++++         * const signal = ac.signal;
++++         *
++++         * rl.question('What is your favorite food? ', { signal }, (answer) => {
++++         *   console.log(`Oh, so your favorite food is ${answer}`);
++++         * });
++++         *
++++         * signal.addEventListener('abort', () => {
++++         *   console.log('The food question timed out');
++++         * }, { once: true });
++++         *
++++         * setTimeout(() => ac.abort(), 10000);
++++         * ```
++++         * @since v0.3.3
++++         * @param query A statement or query to write to `output`, prepended to the prompt.
++++         * @param callback A callback function that is invoked with the user's input in response to the `query`.
++++         */
++++        question(query: string, callback: (answer: string) => void): void;
++++        question(query: string, options: Abortable, callback: (answer: string) => void): void;
++++        /**
++++         * The `rl.pause()` method pauses the `input` stream, allowing it to be resumed
++++         * later if necessary.
++++         *
++++         * Calling `rl.pause()` does not immediately pause other events (including `'line'`) from being emitted by the `Interface` instance.
++++         * @since v0.3.4
++++         */
++++        pause(): this;
++++        /**
++++         * The `rl.resume()` method resumes the `input` stream if it has been paused.
++++         * @since v0.3.4
++++         */
++++        resume(): this;
++++        /**
++++         * The `rl.close()` method closes the `Interface` instance and
++++         * relinquishes control over the `input` and `output` streams. When called,
++++         * the `'close'` event will be emitted.
++++         *
++++         * Calling `rl.close()` does not immediately stop other events (including `'line'`)
++++         * from being emitted by the `Interface` instance.
++++         * @since v0.1.98
++++         */
++++        close(): void;
++++        /**
++++         * The `rl.write()` method will write either `data` or a key sequence identified
++++         * by `key` to the `output`. The `key` argument is supported only if `output` is
++++         * a `TTY` text terminal. See `TTY keybindings` for a list of key
++++         * combinations.
++++         *
++++         * If `key` is specified, `data` is ignored.
++++         *
++++         * When called, `rl.write()` will resume the `input` stream if it has been
++++         * paused.
++++         *
++++         * If the `Interface` was created with `output` set to `null` or `undefined` the `data` and `key` are not written.
++++         *
++++         * ```js
++++         * rl.write('Delete this!');
++++         * // Simulate Ctrl+U to delete the line written previously
++++         * rl.write(null, { ctrl: true, name: 'u' });
++++         * ```
++++         *
++++         * The `rl.write()` method will write the data to the `readline` `Interface`'s `input` _as if it were provided by the user_.
++++         * @since v0.1.98
++++         */
++++        write(data: string | Buffer, key?: Key): void;
++++        write(data: undefined | null | string | Buffer, key: Key): void;
++++        /**
++++         * Returns the real position of the cursor in relation to the input
++++         * prompt + string. Long input (wrapping) strings, as well as multiple
++++         * line prompts are included in the calculations.
++++         * @since v13.5.0, v12.16.0
++++         */
++++        getCursorPos(): CursorPos;
++++        /**
++++         * events.EventEmitter
++++         * 1. close
++++         * 2. line
++++         * 3. pause
++++         * 4. resume
++++         * 5. SIGCONT
++++         * 6. SIGINT
++++         * 7. SIGTSTP
++++         * 8. history
++++         */
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "line", listener: (input: string) => void): this;
++++        addListener(event: "pause", listener: () => void): this;
++++        addListener(event: "resume", listener: () => void): this;
++++        addListener(event: "SIGCONT", listener: () => void): this;
++++        addListener(event: "SIGINT", listener: () => void): this;
++++        addListener(event: "SIGTSTP", listener: () => void): this;
++++        addListener(event: "history", listener: (history: string[]) => void): this;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        emit(event: "close"): boolean;
++++        emit(event: "line", input: string): boolean;
++++        emit(event: "pause"): boolean;
++++        emit(event: "resume"): boolean;
++++        emit(event: "SIGCONT"): boolean;
++++        emit(event: "SIGINT"): boolean;
++++        emit(event: "SIGTSTP"): boolean;
++++        emit(event: "history", history: string[]): boolean;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "line", listener: (input: string) => void): this;
++++        on(event: "pause", listener: () => void): this;
++++        on(event: "resume", listener: () => void): this;
++++        on(event: "SIGCONT", listener: () => void): this;
++++        on(event: "SIGINT", listener: () => void): this;
++++        on(event: "SIGTSTP", listener: () => void): this;
++++        on(event: "history", listener: (history: string[]) => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "line", listener: (input: string) => void): this;
++++        once(event: "pause", listener: () => void): this;
++++        once(event: "resume", listener: () => void): this;
++++        once(event: "SIGCONT", listener: () => void): this;
++++        once(event: "SIGINT", listener: () => void): this;
++++        once(event: "SIGTSTP", listener: () => void): this;
++++        once(event: "history", listener: (history: string[]) => void): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "line", listener: (input: string) => void): this;
++++        prependListener(event: "pause", listener: () => void): this;
++++        prependListener(event: "resume", listener: () => void): this;
++++        prependListener(event: "SIGCONT", listener: () => void): this;
++++        prependListener(event: "SIGINT", listener: () => void): this;
++++        prependListener(event: "SIGTSTP", listener: () => void): this;
++++        prependListener(event: "history", listener: (history: string[]) => void): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "line", listener: (input: string) => void): this;
++++        prependOnceListener(event: "pause", listener: () => void): this;
++++        prependOnceListener(event: "resume", listener: () => void): this;
++++        prependOnceListener(event: "SIGCONT", listener: () => void): this;
++++        prependOnceListener(event: "SIGINT", listener: () => void): this;
++++        prependOnceListener(event: "SIGTSTP", listener: () => void): this;
++++        prependOnceListener(event: "history", listener: (history: string[]) => void): this;
++++        [Symbol.asyncIterator](): NodeJS.AsyncIterator<string>;
++++    }
++++    export type ReadLine = Interface; // type forwarded for backwards compatibility
++++    export type Completer = (line: string) => CompleterResult;
++++    export type AsyncCompleter = (
++++        line: string,
++++        callback: (err?: null | Error, result?: CompleterResult) => void,
++++    ) => void;
++++    export type CompleterResult = [string[], string];
++++    export interface ReadLineOptions {
++++        /**
++++         * The [`Readable`](https://nodejs.org/docs/latest-v20.x/api/stream.html#readable-streams) stream to listen to
++++         */
++++        input: NodeJS.ReadableStream;
++++        /**
++++         * The [`Writable`](https://nodejs.org/docs/latest-v20.x/api/stream.html#writable-streams) stream to write readline data to.
++++         */
++++        output?: NodeJS.WritableStream | undefined;
++++        /**
++++         * An optional function used for Tab autocompletion.
++++         */
++++        completer?: Completer | AsyncCompleter | undefined;
++++        /**
++++         * `true` if the `input` and `output` streams should be treated like a TTY,
++++         * and have ANSI/VT100 escape codes written to it.
++++         * Default: checking `isTTY` on the `output` stream upon instantiation.
++++         */
++++        terminal?: boolean | undefined;
++++        /**
++++         * Initial list of history lines.
++++         * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check,
++++         * otherwise the history caching mechanism is not initialized at all.
++++         * @default []
++++         */
++++        history?: string[] | undefined;
++++        /**
++++         * Maximum number of history lines retained.
++++         * To disable the history set this value to `0`.
++++         * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check,
++++         * otherwise the history caching mechanism is not initialized at all.
++++         * @default 30
++++         */
++++        historySize?: number | undefined;
++++        /**
++++         * If `true`, when a new input line added to the history list duplicates an older one,
++++         * this removes the older line from the list.
++++         * @default false
++++         */
++++        removeHistoryDuplicates?: boolean | undefined;
++++        /**
++++         * The prompt string to use.
++++         * @default "> "
++++         */
++++        prompt?: string | undefined;
++++        /**
++++         * If the delay between `\r` and `\n` exceeds `crlfDelay` milliseconds,
++++         * both `\r` and `\n` will be treated as separate end-of-line input.
++++         * `crlfDelay` will be coerced to a number no less than `100`.
++++         * It can be set to `Infinity`, in which case
++++         * `\r` followed by `\n` will always be considered a single newline
++++         * (which may be reasonable for [reading files](https://nodejs.org/docs/latest-v20.x/api/readline.html#example-read-file-stream-line-by-line) with `\r\n` line delimiter).
++++         * @default 100
++++         */
++++        crlfDelay?: number | undefined;
++++        /**
++++         * The duration `readline` will wait for a character
++++         * (when reading an ambiguous key sequence in milliseconds
++++         * one that can both form a complete key sequence using the input read so far
++++         * and can take additional input to complete a longer key sequence).
++++         * @default 500
++++         */
++++        escapeCodeTimeout?: number | undefined;
++++        /**
++++         * The number of spaces a tab is equal to (minimum 1).
++++         * @default 8
++++         */
++++        tabSize?: number | undefined;
++++        /**
++++         * Allows closing the interface using an AbortSignal.
++++         * Aborting the signal will internally call `close` on the interface.
++++         */
++++        signal?: AbortSignal | undefined;
++++    }
++++    /**
++++     * The `readline.createInterface()` method creates a new `readline.Interface` instance.
++++     *
++++     * ```js
++++     * import readline from 'node:readline';
++++     * const rl = readline.createInterface({
++++     *   input: process.stdin,
++++     *   output: process.stdout,
++++     * });
++++     * ```
++++     *
++++     * Once the `readline.Interface` instance is created, the most common case is to
++++     * listen for the `'line'` event:
++++     *
++++     * ```js
++++     * rl.on('line', (line) => {
++++     *   console.log(`Received: ${line}`);
++++     * });
++++     * ```
++++     *
++++     * If `terminal` is `true` for this instance then the `output` stream will get
++++     * the best compatibility if it defines an `output.columns` property and emits
++++     * a `'resize'` event on the `output` if or when the columns ever change
++++     * (`process.stdout` does this automatically when it is a TTY).
++++     *
++++     * When creating a `readline.Interface` using `stdin` as input, the program
++++     * will not terminate until it receives an [EOF character](https://en.wikipedia.org/wiki/End-of-file#EOF_character). To exit without
++++     * waiting for user input, call `process.stdin.unref()`.
++++     * @since v0.1.98
++++     */
++++    export function createInterface(
++++        input: NodeJS.ReadableStream,
++++        output?: NodeJS.WritableStream,
++++        completer?: Completer | AsyncCompleter,
++++        terminal?: boolean,
++++    ): Interface;
++++    export function createInterface(options: ReadLineOptions): Interface;
++++    /**
++++     * The `readline.emitKeypressEvents()` method causes the given `Readable` stream to begin emitting `'keypress'` events corresponding to received input.
++++     *
++++     * Optionally, `interface` specifies a `readline.Interface` instance for which
++++     * autocompletion is disabled when copy-pasted input is detected.
++++     *
++++     * If the `stream` is a `TTY`, then it must be in raw mode.
++++     *
++++     * This is automatically called by any readline instance on its `input` if the `input` is a terminal. Closing the `readline` instance does not stop
++++     * the `input` from emitting `'keypress'` events.
++++     *
++++     * ```js
++++     * readline.emitKeypressEvents(process.stdin);
++++     * if (process.stdin.isTTY)
++++     *   process.stdin.setRawMode(true);
++++     * ```
++++     *
++++     * ## Example: Tiny CLI
++++     *
++++     * The following example illustrates the use of `readline.Interface` class to
++++     * implement a small command-line interface:
++++     *
++++     * ```js
++++     * import readline from 'node:readline';
++++     * const rl = readline.createInterface({
++++     *   input: process.stdin,
++++     *   output: process.stdout,
++++     *   prompt: 'OHAI> ',
++++     * });
++++     *
++++     * rl.prompt();
++++     *
++++     * rl.on('line', (line) => {
++++     *   switch (line.trim()) {
++++     *     case 'hello':
++++     *       console.log('world!');
++++     *       break;
++++     *     default:
++++     *       console.log(`Say what? I might have heard '${line.trim()}'`);
++++     *       break;
++++     *   }
++++     *   rl.prompt();
++++     * }).on('close', () => {
++++     *   console.log('Have a great day!');
++++     *   process.exit(0);
++++     * });
++++     * ```
++++     *
++++     * ## Example: Read file stream line-by-Line
++++     *
++++     * A common use case for `readline` is to consume an input file one line at a
++++     * time. The easiest way to do so is leveraging the `fs.ReadStream` API as
++++     * well as a `for await...of` loop:
++++     *
++++     * ```js
++++     * import fs from 'node:fs';
++++     * import readline from 'node:readline';
++++     *
++++     * async function processLineByLine() {
++++     *   const fileStream = fs.createReadStream('input.txt');
++++     *
++++     *   const rl = readline.createInterface({
++++     *     input: fileStream,
++++     *     crlfDelay: Infinity,
++++     *   });
++++     *   // Note: we use the crlfDelay option to recognize all instances of CR LF
++++     *   // ('\r\n') in input.txt as a single line break.
++++     *
++++     *   for await (const line of rl) {
++++     *     // Each line in input.txt will be successively available here as `line`.
++++     *     console.log(`Line from file: ${line}`);
++++     *   }
++++     * }
++++     *
++++     * processLineByLine();
++++     * ```
++++     *
++++     * Alternatively, one could use the `'line'` event:
++++     *
++++     * ```js
++++     * import fs from 'node:fs';
++++     * import readline from 'node:readline';
++++     *
++++     * const rl = readline.createInterface({
++++     *   input: fs.createReadStream('sample.txt'),
++++     *   crlfDelay: Infinity,
++++     * });
++++     *
++++     * rl.on('line', (line) => {
++++     *   console.log(`Line from file: ${line}`);
++++     * });
++++     * ```
++++     *
++++     * Currently, `for await...of` loop can be a bit slower. If `async` / `await` flow and speed are both essential, a mixed approach can be applied:
++++     *
++++     * ```js
++++     * import { once } from 'node:events';
++++     * import { createReadStream } from 'node:fs';
++++     * import { createInterface } from 'node:readline';
++++     *
++++     * (async function processLineByLine() {
++++     *   try {
++++     *     const rl = createInterface({
++++     *       input: createReadStream('big-file.txt'),
++++     *       crlfDelay: Infinity,
++++     *     });
++++     *
++++     *     rl.on('line', (line) => {
++++     *       // Process the line.
++++     *     });
++++     *
++++     *     await once(rl, 'close');
++++     *
++++     *     console.log('File processed.');
++++     *   } catch (err) {
++++     *     console.error(err);
++++     *   }
++++     * })();
++++     * ```
++++     * @since v0.7.7
++++     */
++++    export function emitKeypressEvents(stream: NodeJS.ReadableStream, readlineInterface?: Interface): void;
++++    export type Direction = -1 | 0 | 1;
++++    export interface CursorPos {
++++        rows: number;
++++        cols: number;
++++    }
++++    /**
++++     * The `readline.clearLine()` method clears current line of given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) stream
++++     * in a specified direction identified by `dir`.
++++     * @since v0.7.7
++++     * @param callback Invoked once the operation completes.
++++     * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
++++     */
++++    export function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean;
++++    /**
++++     * The `readline.clearScreenDown()` method clears the given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) stream from
++++     * the current position of the cursor down.
++++     * @since v0.7.7
++++     * @param callback Invoked once the operation completes.
++++     * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
++++     */
++++    export function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean;
++++    /**
++++     * The `readline.cursorTo()` method moves cursor to the specified position in a
++++     * given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) `stream`.
++++     * @since v0.7.7
++++     * @param callback Invoked once the operation completes.
++++     * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
++++     */
++++    export function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean;
++++    /**
++++     * The `readline.moveCursor()` method moves the cursor _relative_ to its current
++++     * position in a given [TTY](https://nodejs.org/docs/https://nodejs.org/docs/latest-v20.x/api/tty.html) `stream`.
++++     * @since v0.7.7
++++     * @param callback Invoked once the operation completes.
++++     * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
++++     */
++++    export function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean;
++++}
++++declare module "node:readline" {
++++    export * from "readline";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..86754bba08ef6a5614f002ccd52efa704eac9c25
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,162 @@@@@
++++/**
++++ * @since v17.0.0
++++ * @experimental
++++ */
++++declare module "readline/promises" {
++++    import { Abortable } from "node:events";
++++    import {
++++        CompleterResult,
++++        Direction,
++++        Interface as _Interface,
++++        ReadLineOptions as _ReadLineOptions,
++++    } from "node:readline";
++++    /**
++++     * Instances of the `readlinePromises.Interface` class are constructed using the `readlinePromises.createInterface()` method. Every instance is associated with a
++++     * single `input` `Readable` stream and a single `output` `Writable` stream.
++++     * The `output` stream is used to print prompts for user input that arrives on,
++++     * and is read from, the `input` stream.
++++     * @since v17.0.0
++++     */
++++    class Interface extends _Interface {
++++        /**
++++         * The `rl.question()` method displays the `query` by writing it to the `output`,
++++         * waits for user input to be provided on `input`, then invokes the `callback` function passing the provided input as the first argument.
++++         *
++++         * When called, `rl.question()` will resume the `input` stream if it has been
++++         * paused.
++++         *
++++         * If the `Interface` was created with `output` set to `null` or `undefined` the `query` is not written.
++++         *
++++         * If the question is called after `rl.close()`, it returns a rejected promise.
++++         *
++++         * Example usage:
++++         *
++++         * ```js
++++         * const answer = await rl.question('What is your favorite food? ');
++++         * console.log(`Oh, so your favorite food is ${answer}`);
++++         * ```
++++         *
++++         * Using an `AbortSignal` to cancel a question.
++++         *
++++         * ```js
++++         * const signal = AbortSignal.timeout(10_000);
++++         *
++++         * signal.addEventListener('abort', () => {
++++         *   console.log('The food question timed out');
++++         * }, { once: true });
++++         *
++++         * const answer = await rl.question('What is your favorite food? ', { signal });
++++         * console.log(`Oh, so your favorite food is ${answer}`);
++++         * ```
++++         * @since v17.0.0
++++         * @param query A statement or query to write to `output`, prepended to the prompt.
++++         * @return A promise that is fulfilled with the user's input in response to the `query`.
++++         */
++++        question(query: string): Promise<string>;
++++        question(query: string, options: Abortable): Promise<string>;
++++    }
++++    /**
++++     * @since v17.0.0
++++     */
++++    class Readline {
++++        /**
++++         * @param stream A TTY stream.
++++         */
++++        constructor(
++++            stream: NodeJS.WritableStream,
++++            options?: {
++++                autoCommit?: boolean;
++++            },
++++        );
++++        /**
++++         * The `rl.clearLine()` method adds to the internal list of pending action an
++++         * action that clears current line of the associated `stream` in a specified
++++         * direction identified by `dir`.
++++         * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor.
++++         * @since v17.0.0
++++         * @return this
++++         */
++++        clearLine(dir: Direction): this;
++++        /**
++++         * The `rl.clearScreenDown()` method adds to the internal list of pending action an
++++         * action that clears the associated stream from the current position of the
++++         * cursor down.
++++         * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor.
++++         * @since v17.0.0
++++         * @return this
++++         */
++++        clearScreenDown(): this;
++++        /**
++++         * The `rl.commit()` method sends all the pending actions to the associated `stream` and clears the internal list of pending actions.
++++         * @since v17.0.0
++++         */
++++        commit(): Promise<void>;
++++        /**
++++         * The `rl.cursorTo()` method adds to the internal list of pending action an action
++++         * that moves cursor to the specified position in the associated `stream`.
++++         * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor.
++++         * @since v17.0.0
++++         * @return this
++++         */
++++        cursorTo(x: number, y?: number): this;
++++        /**
++++         * The `rl.moveCursor()` method adds to the internal list of pending action an
++++         * action that moves the cursor _relative_ to its current position in the
++++         * associated `stream`.
++++         * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor.
++++         * @since v17.0.0
++++         * @return this
++++         */
++++        moveCursor(dx: number, dy: number): this;
++++        /**
++++         * The `rl.rollback` methods clears the internal list of pending actions without
++++         * sending it to the associated `stream`.
++++         * @since v17.0.0
++++         * @return this
++++         */
++++        rollback(): this;
++++    }
++++    type Completer = (line: string) => CompleterResult | Promise<CompleterResult>;
++++    interface ReadLineOptions extends Omit<_ReadLineOptions, "completer"> {
++++        /**
++++         * An optional function used for Tab autocompletion.
++++         */
++++        completer?: Completer | undefined;
++++    }
++++    /**
++++     * The `readlinePromises.createInterface()` method creates a new `readlinePromises.Interface` instance.
++++     *
++++     * ```js
++++     * import readlinePromises from 'node:readline/promises';
++++     * const rl = readlinePromises.createInterface({
++++     *   input: process.stdin,
++++     *   output: process.stdout,
++++     * });
++++     * ```
++++     *
++++     * Once the `readlinePromises.Interface` instance is created, the most common case
++++     * is to listen for the `'line'` event:
++++     *
++++     * ```js
++++     * rl.on('line', (line) => {
++++     *   console.log(`Received: ${line}`);
++++     * });
++++     * ```
++++     *
++++     * If `terminal` is `true` for this instance then the `output` stream will get
++++     * the best compatibility if it defines an `output.columns` property and emits
++++     * a `'resize'` event on the `output` if or when the columns ever change
++++     * (`process.stdout` does this automatically when it is a TTY).
++++     * @since v17.0.0
++++     */
++++    function createInterface(
++++        input: NodeJS.ReadableStream,
++++        output?: NodeJS.WritableStream,
++++        completer?: Completer,
++++        terminal?: boolean,
++++    ): Interface;
++++    function createInterface(options: ReadLineOptions): Interface;
++++}
++++declare module "node:readline/promises" {
++++    export * from "readline/promises";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..8b1bb6bd1d6fb1d8529bbf65f0ec8debe2805e05
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,430 @@@@@
++++/**
++++ * The `node:repl` module provides a Read-Eval-Print-Loop (REPL) implementation
++++ * that is available both as a standalone program or includible in other
++++ * applications. It can be accessed using:
++++ *
++++ * ```js
++++ * import repl from 'node:repl';
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/repl.js)
++++ */
++++declare module "repl" {
++++    import { AsyncCompleter, Completer, Interface } from "node:readline";
++++    import { Context } from "node:vm";
++++    import { InspectOptions } from "node:util";
++++    interface ReplOptions {
++++        /**
++++         * The input prompt to display.
++++         * @default "> "
++++         */
++++        prompt?: string | undefined;
++++        /**
++++         * The `Readable` stream from which REPL input will be read.
++++         * @default process.stdin
++++         */
++++        input?: NodeJS.ReadableStream | undefined;
++++        /**
++++         * The `Writable` stream to which REPL output will be written.
++++         * @default process.stdout
++++         */
++++        output?: NodeJS.WritableStream | undefined;
++++        /**
++++         * If `true`, specifies that the output should be treated as a TTY terminal, and have
++++         * ANSI/VT100 escape codes written to it.
++++         * Default: checking the value of the `isTTY` property on the output stream upon
++++         * instantiation.
++++         */
++++        terminal?: boolean | undefined;
++++        /**
++++         * The function to be used when evaluating each given line of input.
++++         * Default: an async wrapper for the JavaScript `eval()` function. An `eval` function can
++++         * error with `repl.Recoverable` to indicate the input was incomplete and prompt for
++++         * additional lines.
++++         *
++++         * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_default_evaluation
++++         * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_custom_evaluation_functions
++++         */
++++        eval?: REPLEval | undefined;
++++        /**
++++         * Defines if the repl prints output previews or not.
++++         * @default `true` Always `false` in case `terminal` is falsy.
++++         */
++++        preview?: boolean | undefined;
++++        /**
++++         * If `true`, specifies that the default `writer` function should include ANSI color
++++         * styling to REPL output. If a custom `writer` function is provided then this has no
++++         * effect.
++++         * @default the REPL instance's `terminal` value
++++         */
++++        useColors?: boolean | undefined;
++++        /**
++++         * If `true`, specifies that the default evaluation function will use the JavaScript
++++         * `global` as the context as opposed to creating a new separate context for the REPL
++++         * instance. The node CLI REPL sets this value to `true`.
++++         * @default false
++++         */
++++        useGlobal?: boolean | undefined;
++++        /**
++++         * If `true`, specifies that the default writer will not output the return value of a
++++         * command if it evaluates to `undefined`.
++++         * @default false
++++         */
++++        ignoreUndefined?: boolean | undefined;
++++        /**
++++         * The function to invoke to format the output of each command before writing to `output`.
++++         * @default a wrapper for `util.inspect`
++++         *
++++         * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_customizing_repl_output
++++         */
++++        writer?: REPLWriter | undefined;
++++        /**
++++         * An optional function used for custom Tab auto completion.
++++         *
++++         * @see https://nodejs.org/dist/latest-v20.x/docs/api/readline.html#readline_use_of_the_completer_function
++++         */
++++        completer?: Completer | AsyncCompleter | undefined;
++++        /**
++++         * A flag that specifies whether the default evaluator executes all JavaScript commands in
++++         * strict mode or default (sloppy) mode.
++++         * Accepted values are:
++++         * - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode.
++++         * - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to
++++         *   prefacing every repl statement with `'use strict'`.
++++         */
++++        replMode?: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT | undefined;
++++        /**
++++         * Stop evaluating the current piece of code when `SIGINT` is received, i.e. `Ctrl+C` is
++++         * pressed. This cannot be used together with a custom `eval` function.
++++         * @default false
++++         */
++++        breakEvalOnSigint?: boolean | undefined;
++++    }
++++    type REPLEval = (
++++        this: REPLServer,
++++        evalCmd: string,
++++        context: Context,
++++        file: string,
++++        cb: (err: Error | null, result: any) => void,
++++    ) => void;
++++    type REPLWriter = (this: REPLServer, obj: any) => string;
++++    /**
++++     * This is the default "writer" value, if none is passed in the REPL options,
++++     * and it can be overridden by custom print functions.
++++     */
++++    const writer: REPLWriter & {
++++        options: InspectOptions;
++++    };
++++    type REPLCommandAction = (this: REPLServer, text: string) => void;
++++    interface REPLCommand {
++++        /**
++++         * Help text to be displayed when `.help` is entered.
++++         */
++++        help?: string | undefined;
++++        /**
++++         * The function to execute, optionally accepting a single string argument.
++++         */
++++        action: REPLCommandAction;
++++    }
++++    /**
++++     * Instances of `repl.REPLServer` are created using the {@link start} method
++++     * or directly using the JavaScript `new` keyword.
++++     *
++++     * ```js
++++     * import repl from 'node:repl';
++++     *
++++     * const options = { useColors: true };
++++     *
++++     * const firstInstance = repl.start(options);
++++     * const secondInstance = new repl.REPLServer(options);
++++     * ```
++++     * @since v0.1.91
++++     */
++++    class REPLServer extends Interface {
++++        /**
++++         * The `vm.Context` provided to the `eval` function to be used for JavaScript
++++         * evaluation.
++++         */
++++        readonly context: Context;
++++        /**
++++         * @deprecated since v14.3.0 - Use `input` instead.
++++         */
++++        readonly inputStream: NodeJS.ReadableStream;
++++        /**
++++         * @deprecated since v14.3.0 - Use `output` instead.
++++         */
++++        readonly outputStream: NodeJS.WritableStream;
++++        /**
++++         * The `Readable` stream from which REPL input will be read.
++++         */
++++        readonly input: NodeJS.ReadableStream;
++++        /**
++++         * The `Writable` stream to which REPL output will be written.
++++         */
++++        readonly output: NodeJS.WritableStream;
++++        /**
++++         * The commands registered via `replServer.defineCommand()`.
++++         */
++++        readonly commands: NodeJS.ReadOnlyDict<REPLCommand>;
++++        /**
++++         * A value indicating whether the REPL is currently in "editor mode".
++++         *
++++         * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_commands_and_special_keys
++++         */
++++        readonly editorMode: boolean;
++++        /**
++++         * A value indicating whether the `_` variable has been assigned.
++++         *
++++         * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
++++         */
++++        readonly underscoreAssigned: boolean;
++++        /**
++++         * The last evaluation result from the REPL (assigned to the `_` variable inside of the REPL).
++++         *
++++         * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
++++         */
++++        readonly last: any;
++++        /**
++++         * A value indicating whether the `_error` variable has been assigned.
++++         *
++++         * @since v9.8.0
++++         * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
++++         */
++++        readonly underscoreErrAssigned: boolean;
++++        /**
++++         * The last error raised inside the REPL (assigned to the `_error` variable inside of the REPL).
++++         *
++++         * @since v9.8.0
++++         * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
++++         */
++++        readonly lastError: any;
++++        /**
++++         * Specified in the REPL options, this is the function to be used when evaluating each
++++         * given line of input. If not specified in the REPL options, this is an async wrapper
++++         * for the JavaScript `eval()` function.
++++         */
++++        readonly eval: REPLEval;
++++        /**
++++         * Specified in the REPL options, this is a value indicating whether the default
++++         * `writer` function should include ANSI color styling to REPL output.
++++         */
++++        readonly useColors: boolean;
++++        /**
++++         * Specified in the REPL options, this is a value indicating whether the default `eval`
++++         * function will use the JavaScript `global` as the context as opposed to creating a new
++++         * separate context for the REPL instance.
++++         */
++++        readonly useGlobal: boolean;
++++        /**
++++         * Specified in the REPL options, this is a value indicating whether the default `writer`
++++         * function should output the result of a command if it evaluates to `undefined`.
++++         */
++++        readonly ignoreUndefined: boolean;
++++        /**
++++         * Specified in the REPL options, this is the function to invoke to format the output of
++++         * each command before writing to `outputStream`. If not specified in the REPL options,
++++         * this will be a wrapper for `util.inspect`.
++++         */
++++        readonly writer: REPLWriter;
++++        /**
++++         * Specified in the REPL options, this is the function to use for custom Tab auto-completion.
++++         */
++++        readonly completer: Completer | AsyncCompleter;
++++        /**
++++         * Specified in the REPL options, this is a flag that specifies whether the default `eval`
++++         * function should execute all JavaScript commands in strict mode or default (sloppy) mode.
++++         * Possible values are:
++++         * - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode.
++++         * - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to
++++         *    prefacing every repl statement with `'use strict'`.
++++         */
++++        readonly replMode: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT;
++++        /**
++++         * NOTE: According to the documentation:
++++         *
++++         * > Instances of `repl.REPLServer` are created using the `repl.start()` method and
++++         * > _should not_ be created directly using the JavaScript `new` keyword.
++++         *
++++         * `REPLServer` cannot be subclassed due to implementation specifics in NodeJS.
++++         *
++++         * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_class_replserver
++++         */
++++        private constructor();
++++        /**
++++         * The `replServer.defineCommand()` method is used to add new `.`\-prefixed commands
++++         * to the REPL instance. Such commands are invoked by typing a `.` followed by the `keyword`. The `cmd` is either a `Function` or an `Object` with the following
++++         * properties:
++++         *
++++         * The following example shows two new commands added to the REPL instance:
++++         *
++++         * ```js
++++         * import repl from 'node:repl';
++++         *
++++         * const replServer = repl.start({ prompt: '> ' });
++++         * replServer.defineCommand('sayhello', {
++++         *   help: 'Say hello',
++++         *   action(name) {
++++         *     this.clearBufferedCommand();
++++         *     console.log(`Hello, ${name}!`);
++++         *     this.displayPrompt();
++++         *   },
++++         * });
++++         * replServer.defineCommand('saybye', function saybye() {
++++         *   console.log('Goodbye!');
++++         *   this.close();
++++         * });
++++         * ```
++++         *
++++         * The new commands can then be used from within the REPL instance:
++++         *
++++         * ```console
++++         * > .sayhello Node.js User
++++         * Hello, Node.js User!
++++         * > .saybye
++++         * Goodbye!
++++         * ```
++++         * @since v0.3.0
++++         * @param keyword The command keyword (_without_ a leading `.` character).
++++         * @param cmd The function to invoke when the command is processed.
++++         */
++++        defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void;
++++        /**
++++         * The `replServer.displayPrompt()` method readies the REPL instance for input
++++         * from the user, printing the configured `prompt` to a new line in the `output` and resuming the `input` to accept new input.
++++         *
++++         * When multi-line input is being entered, an ellipsis is printed rather than the
++++         * 'prompt'.
++++         *
++++         * When `preserveCursor` is `true`, the cursor placement will not be reset to `0`.
++++         *
++++         * The `replServer.displayPrompt` method is primarily intended to be called from
++++         * within the action function for commands registered using the `replServer.defineCommand()` method.
++++         * @since v0.1.91
++++         */
++++        displayPrompt(preserveCursor?: boolean): void;
++++        /**
++++         * The `replServer.clearBufferedCommand()` method clears any command that has been
++++         * buffered but not yet executed. This method is primarily intended to be
++++         * called from within the action function for commands registered using the `replServer.defineCommand()` method.
++++         * @since v9.0.0
++++         */
++++        clearBufferedCommand(): void;
++++        /**
++++         * Initializes a history log file for the REPL instance. When executing the
++++         * Node.js binary and using the command-line REPL, a history file is initialized
++++         * by default. However, this is not the case when creating a REPL
++++         * programmatically. Use this method to initialize a history log file when working
++++         * with REPL instances programmatically.
++++         * @since v11.10.0
++++         * @param historyPath the path to the history file
++++         * @param callback called when history writes are ready or upon error
++++         */
++++        setupHistory(path: string, callback: (err: Error | null, repl: this) => void): void;
++++        /**
++++         * events.EventEmitter
++++         * 1. close - inherited from `readline.Interface`
++++         * 2. line - inherited from `readline.Interface`
++++         * 3. pause - inherited from `readline.Interface`
++++         * 4. resume - inherited from `readline.Interface`
++++         * 5. SIGCONT - inherited from `readline.Interface`
++++         * 6. SIGINT - inherited from `readline.Interface`
++++         * 7. SIGTSTP - inherited from `readline.Interface`
++++         * 8. exit
++++         * 9. reset
++++         */
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "line", listener: (input: string) => void): this;
++++        addListener(event: "pause", listener: () => void): this;
++++        addListener(event: "resume", listener: () => void): this;
++++        addListener(event: "SIGCONT", listener: () => void): this;
++++        addListener(event: "SIGINT", listener: () => void): this;
++++        addListener(event: "SIGTSTP", listener: () => void): this;
++++        addListener(event: "exit", listener: () => void): this;
++++        addListener(event: "reset", listener: (context: Context) => void): this;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        emit(event: "close"): boolean;
++++        emit(event: "line", input: string): boolean;
++++        emit(event: "pause"): boolean;
++++        emit(event: "resume"): boolean;
++++        emit(event: "SIGCONT"): boolean;
++++        emit(event: "SIGINT"): boolean;
++++        emit(event: "SIGTSTP"): boolean;
++++        emit(event: "exit"): boolean;
++++        emit(event: "reset", context: Context): boolean;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "line", listener: (input: string) => void): this;
++++        on(event: "pause", listener: () => void): this;
++++        on(event: "resume", listener: () => void): this;
++++        on(event: "SIGCONT", listener: () => void): this;
++++        on(event: "SIGINT", listener: () => void): this;
++++        on(event: "SIGTSTP", listener: () => void): this;
++++        on(event: "exit", listener: () => void): this;
++++        on(event: "reset", listener: (context: Context) => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "line", listener: (input: string) => void): this;
++++        once(event: "pause", listener: () => void): this;
++++        once(event: "resume", listener: () => void): this;
++++        once(event: "SIGCONT", listener: () => void): this;
++++        once(event: "SIGINT", listener: () => void): this;
++++        once(event: "SIGTSTP", listener: () => void): this;
++++        once(event: "exit", listener: () => void): this;
++++        once(event: "reset", listener: (context: Context) => void): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "line", listener: (input: string) => void): this;
++++        prependListener(event: "pause", listener: () => void): this;
++++        prependListener(event: "resume", listener: () => void): this;
++++        prependListener(event: "SIGCONT", listener: () => void): this;
++++        prependListener(event: "SIGINT", listener: () => void): this;
++++        prependListener(event: "SIGTSTP", listener: () => void): this;
++++        prependListener(event: "exit", listener: () => void): this;
++++        prependListener(event: "reset", listener: (context: Context) => void): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "line", listener: (input: string) => void): this;
++++        prependOnceListener(event: "pause", listener: () => void): this;
++++        prependOnceListener(event: "resume", listener: () => void): this;
++++        prependOnceListener(event: "SIGCONT", listener: () => void): this;
++++        prependOnceListener(event: "SIGINT", listener: () => void): this;
++++        prependOnceListener(event: "SIGTSTP", listener: () => void): this;
++++        prependOnceListener(event: "exit", listener: () => void): this;
++++        prependOnceListener(event: "reset", listener: (context: Context) => void): this;
++++    }
++++    /**
++++     * A flag passed in the REPL options. Evaluates expressions in sloppy mode.
++++     */
++++    const REPL_MODE_SLOPPY: unique symbol;
++++    /**
++++     * A flag passed in the REPL options. Evaluates expressions in strict mode.
++++     * This is equivalent to prefacing every repl statement with `'use strict'`.
++++     */
++++    const REPL_MODE_STRICT: unique symbol;
++++    /**
++++     * The `repl.start()` method creates and starts a {@link REPLServer} instance.
++++     *
++++     * If `options` is a string, then it specifies the input prompt:
++++     *
++++     * ```js
++++     * import repl from 'node:repl';
++++     *
++++     * // a Unix style prompt
++++     * repl.start('$ ');
++++     * ```
++++     * @since v0.1.91
++++     */
++++    function start(options?: string | ReplOptions): REPLServer;
++++    /**
++++     * Indicates a recoverable error that a `REPLServer` can use to support multi-line input.
++++     *
++++     * @see https://nodejs.org/dist/latest-v20.x/docs/api/repl.html#repl_recoverable_errors
++++     */
++++    class Recoverable extends SyntaxError {
++++        err: Error;
++++        constructor(err: Error);
++++    }
++++}
++++declare module "node:repl" {
++++    export * from "repl";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6f1d1eaeaf537a150df254f0f95a802dab85e6c7
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,153 @@@@@
++++/**
++++ * This feature allows the distribution of a Node.js application conveniently to a
++++ * system that does not have Node.js installed.
++++ *
++++ * Node.js supports the creation of [single executable applications](https://github.com/nodejs/single-executable) by allowing
++++ * the injection of a blob prepared by Node.js, which can contain a bundled script,
++++ * into the `node` binary. During start up, the program checks if anything has been
++++ * injected. If the blob is found, it executes the script in the blob. Otherwise
++++ * Node.js operates as it normally does.
++++ *
++++ * The single executable application feature currently only supports running a
++++ * single embedded script using the `CommonJS` module system.
++++ *
++++ * Users can create a single executable application from their bundled script
++++ * with the `node` binary itself and any tool which can inject resources into the
++++ * binary.
++++ *
++++ * Here are the steps for creating a single executable application using one such
++++ * tool, [postject](https://github.com/nodejs/postject):
++++ *
++++ * 1. Create a JavaScript file:
++++ * ```bash
++++ * echo 'console.log(`Hello, ${process.argv[2]}!`);' > hello.js
++++ * ```
++++ * 2. Create a configuration file building a blob that can be injected into the
++++ * single executable application (see `Generating single executable preparation blobs` for details):
++++ * ```bash
++++ * echo '{ "main": "hello.js", "output": "sea-prep.blob" }' > sea-config.json
++++ * ```
++++ * 3. Generate the blob to be injected:
++++ * ```bash
++++ * node --experimental-sea-config sea-config.json
++++ * ```
++++ * 4. Create a copy of the `node` executable and name it according to your needs:
++++ *    * On systems other than Windows:
++++ * ```bash
++++ * cp $(command -v node) hello
++++ * ```
++++ *    * On Windows:
++++ * ```text
++++ * node -e "require('fs').copyFileSync(process.execPath, 'hello.exe')"
++++ * ```
++++ * The `.exe` extension is necessary.
++++ * 5. Remove the signature of the binary (macOS and Windows only):
++++ *    * On macOS:
++++ * ```bash
++++ * codesign --remove-signature hello
++++ * ```
++++ *    * On Windows (optional):
++++ * [signtool](https://learn.microsoft.com/en-us/windows/win32/seccrypto/signtool) can be used from the installed [Windows SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/).
++++ * If this step is
++++ * skipped, ignore any signature-related warning from postject.
++++ * ```powershell
++++ * signtool remove /s hello.exe
++++ * ```
++++ * 6. Inject the blob into the copied binary by running `postject` with
++++ * the following options:
++++ *    * `hello` / `hello.exe` \- The name of the copy of the `node` executable
++++ *    created in step 4.
++++ *    * `NODE_SEA_BLOB` \- The name of the resource / note / section in the binary
++++ *    where the contents of the blob will be stored.
++++ *    * `sea-prep.blob` \- The name of the blob created in step 1.
++++ *    * `--sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2` \- The [fuse](https://www.electronjs.org/docs/latest/tutorial/fuses) used by the Node.js project to detect if a file has been
++++ * injected.
++++ *    * `--macho-segment-name NODE_SEA` (only needed on macOS) - The name of the
++++ *    segment in the binary where the contents of the blob will be
++++ *    stored.
++++ * To summarize, here is the required command for each platform:
++++ *    * On Linux:
++++ *    ```bash
++++ *    npx postject hello NODE_SEA_BLOB sea-prep.blob \
++++ *        --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
++++ *    ```
++++ *    * On Windows - PowerShell:
++++ *    ```powershell
++++ *    npx postject hello.exe NODE_SEA_BLOB sea-prep.blob `
++++ *        --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
++++ *    ```
++++ *    * On Windows - Command Prompt:
++++ *    ```text
++++ *    npx postject hello.exe NODE_SEA_BLOB sea-prep.blob ^
++++ *        --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
++++ *    ```
++++ *    * On macOS:
++++ *    ```bash
++++ *    npx postject hello NODE_SEA_BLOB sea-prep.blob \
++++ *        --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \
++++ *        --macho-segment-name NODE_SEA
++++ *    ```
++++ * 7. Sign the binary (macOS and Windows only):
++++ *    * On macOS:
++++ * ```bash
++++ * codesign --sign - hello
++++ * ```
++++ *    * On Windows (optional):
++++ * A certificate needs to be present for this to work. However, the unsigned
++++ * binary would still be runnable.
++++ * ```powershell
++++ * signtool sign /fd SHA256 hello.exe
++++ * ```
++++ * 8. Run the binary:
++++ *    * On systems other than Windows
++++ * ```console
++++ * $ ./hello world
++++ * Hello, world!
++++ * ```
++++ *    * On Windows
++++ * ```console
++++ * $ .\hello.exe world
++++ * Hello, world!
++++ * ```
++++ * @since v19.7.0, v18.16.0
++++ * @experimental
++++ * @see [source](https://github.com/nodejs/node/blob/v20.12.0/src/node_sea.cc)
++++ */
++++declare module "node:sea" {
++++    type AssetKey = string;
++++    /**
++++     * @since v20.12.0
++++     * @return Whether this script is running inside a single-executable application.
++++     */
++++    function isSea(): boolean;
++++    /**
++++     * This method can be used to retrieve the assets configured to be bundled into the
++++     * single-executable application at build time.
++++     * An error is thrown when no matching asset can be found.
++++     * @since v20.12.0
++++     */
++++    function getAsset(key: AssetKey): ArrayBuffer;
++++    function getAsset(key: AssetKey, encoding: string): string;
++++    /**
++++     * Similar to `sea.getAsset()`, but returns the result in a [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob).
++++     * An error is thrown when no matching asset can be found.
++++     * @since v20.12.0
++++     */
++++    function getAssetAsBlob(key: AssetKey, options?: {
++++        type: string;
++++    }): Blob;
++++    /**
++++     * This method can be used to retrieve the assets configured to be bundled into the
++++     * single-executable application at build time.
++++     * An error is thrown when no matching asset can be found.
++++     *
++++     * Unlike `sea.getRawAsset()` or `sea.getAssetAsBlob()`, this method does not
++++     * return a copy. Instead, it returns the raw asset bundled inside the executable.
++++     *
++++     * For now, users should avoid writing to the returned array buffer. If the
++++     * injected section is not marked as writable or not aligned properly,
++++     * writes to the returned array buffer is likely to result in a crash.
++++     * @since v20.12.0
++++     */
++++    function getRawAsset(key: AssetKey): string | ArrayBuffer;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f5873707293c3b9074342d303823c664dbdd08d9
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1726 @@@@@
++++/**
++++ * A stream is an abstract interface for working with streaming data in Node.js.
++++ * The `node:stream` module provides an API for implementing the stream interface.
++++ *
++++ * There are many stream objects provided by Node.js. For instance, a [request to an HTTP server](https://nodejs.org/docs/latest-v20.x/api/http.html#class-httpincomingmessage)
++++ * and [`process.stdout`](https://nodejs.org/docs/latest-v20.x/api/process.html#processstdout) are both stream instances.
++++ *
++++ * Streams can be readable, writable, or both. All streams are instances of [`EventEmitter`](https://nodejs.org/docs/latest-v20.x/api/events.html#class-eventemitter).
++++ *
++++ * To access the `node:stream` module:
++++ *
++++ * ```js
++++ * import stream from 'node:stream';
++++ * ```
++++ *
++++ * The `node:stream` module is useful for creating new types of stream instances.
++++ * It is usually not necessary to use the `node:stream` module to consume streams.
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/stream.js)
++++ */
++++declare module "stream" {
++++    import { Abortable, EventEmitter } from "node:events";
++++    import { Blob as NodeBlob } from "node:buffer";
++++    import * as streamPromises from "node:stream/promises";
++++    import * as streamConsumers from "node:stream/consumers";
++++    import * as streamWeb from "node:stream/web";
++++
++++    type ComposeFnParam = (source: any) => void;
++++
++++    class internal extends EventEmitter {
++++        pipe<T extends NodeJS.WritableStream>(
++++            destination: T,
++++            options?: {
++++                end?: boolean | undefined;
++++            },
++++        ): T;
++++        compose<T extends NodeJS.ReadableStream>(
++++            stream: T | ComposeFnParam | Iterable<T> | AsyncIterable<T>,
++++            options?: { signal: AbortSignal },
++++        ): T;
++++    }
++++    import Stream = internal.Stream;
++++    import Readable = internal.Readable;
++++    import ReadableOptions = internal.ReadableOptions;
++++    interface ArrayOptions {
++++        /**
++++         * The maximum concurrent invocations of `fn` to call on the stream at once.
++++         * @default 1
++++         */
++++        concurrency?: number;
++++        /** Allows destroying the stream if the signal is aborted. */
++++        signal?: AbortSignal;
++++    }
++++    class ReadableBase extends Stream implements NodeJS.ReadableStream {
++++        /**
++++         * A utility method for creating Readable Streams out of iterators.
++++         * @since v12.3.0, v10.17.0
++++         * @param iterable Object implementing the `Symbol.asyncIterator` or `Symbol.iterator` iterable protocol. Emits an 'error' event if a null value is passed.
++++         * @param options Options provided to `new stream.Readable([options])`. By default, `Readable.from()` will set `options.objectMode` to `true`, unless this is explicitly opted out by setting `options.objectMode` to `false`.
++++         */
++++        static from(iterable: Iterable<any> | AsyncIterable<any>, options?: ReadableOptions): Readable;
++++        /**
++++         * Returns whether the stream has been read from or cancelled.
++++         * @since v16.8.0
++++         */
++++        static isDisturbed(stream: Readable | NodeJS.ReadableStream): boolean;
++++        /**
++++         * Returns whether the stream was destroyed or errored before emitting `'end'`.
++++         * @since v16.8.0
++++         * @experimental
++++         */
++++        readonly readableAborted: boolean;
++++        /**
++++         * Is `true` if it is safe to call {@link read}, which means
++++         * the stream has not been destroyed or emitted `'error'` or `'end'`.
++++         * @since v11.4.0
++++         */
++++        readable: boolean;
++++        /**
++++         * Returns whether `'data'` has been emitted.
++++         * @since v16.7.0, v14.18.0
++++         * @experimental
++++         */
++++        readonly readableDidRead: boolean;
++++        /**
++++         * Getter for the property `encoding` of a given `Readable` stream. The `encoding` property can be set using the {@link setEncoding} method.
++++         * @since v12.7.0
++++         */
++++        readonly readableEncoding: BufferEncoding | null;
++++        /**
++++         * Becomes `true` when [`'end'`](https://nodejs.org/docs/latest-v20.x/api/stream.html#event-end) event is emitted.
++++         * @since v12.9.0
++++         */
++++        readonly readableEnded: boolean;
++++        /**
++++         * This property reflects the current state of a `Readable` stream as described
++++         * in the [Three states](https://nodejs.org/docs/latest-v20.x/api/stream.html#three-states) section.
++++         * @since v9.4.0
++++         */
++++        readonly readableFlowing: boolean | null;
++++        /**
++++         * Returns the value of `highWaterMark` passed when creating this `Readable`.
++++         * @since v9.3.0
++++         */
++++        readonly readableHighWaterMark: number;
++++        /**
++++         * This property contains the number of bytes (or objects) in the queue
++++         * ready to be read. The value provides introspection data regarding
++++         * the status of the `highWaterMark`.
++++         * @since v9.4.0
++++         */
++++        readonly readableLength: number;
++++        /**
++++         * Getter for the property `objectMode` of a given `Readable` stream.
++++         * @since v12.3.0
++++         */
++++        readonly readableObjectMode: boolean;
++++        /**
++++         * Is `true` after `readable.destroy()` has been called.
++++         * @since v8.0.0
++++         */
++++        destroyed: boolean;
++++        /**
++++         * Is `true` after `'close'` has been emitted.
++++         * @since v18.0.0
++++         */
++++        readonly closed: boolean;
++++        /**
++++         * Returns error if the stream has been destroyed with an error.
++++         * @since v18.0.0
++++         */
++++        readonly errored: Error | null;
++++        constructor(opts?: ReadableOptions);
++++        _construct?(callback: (error?: Error | null) => void): void;
++++        _read(size: number): void;
++++        /**
++++         * The `readable.read()` method reads data out of the internal buffer and
++++         * returns it. If no data is available to be read, `null` is returned. By default,
++++         * the data is returned as a `Buffer` object unless an encoding has been
++++         * specified using the `readable.setEncoding()` method or the stream is operating
++++         * in object mode.
++++         *
++++         * The optional `size` argument specifies a specific number of bytes to read. If
++++         * `size` bytes are not available to be read, `null` will be returned _unless_ the
++++         * stream has ended, in which case all of the data remaining in the internal buffer
++++         * will be returned.
++++         *
++++         * If the `size` argument is not specified, all of the data contained in the
++++         * internal buffer will be returned.
++++         *
++++         * The `size` argument must be less than or equal to 1 GiB.
++++         *
++++         * The `readable.read()` method should only be called on `Readable` streams
++++         * operating in paused mode. In flowing mode, `readable.read()` is called
++++         * automatically until the internal buffer is fully drained.
++++         *
++++         * ```js
++++         * const readable = getReadableStreamSomehow();
++++         *
++++         * // 'readable' may be triggered multiple times as data is buffered in
++++         * readable.on('readable', () => {
++++         *   let chunk;
++++         *   console.log('Stream is readable (new data received in buffer)');
++++         *   // Use a loop to make sure we read all currently available data
++++         *   while (null !== (chunk = readable.read())) {
++++         *     console.log(`Read ${chunk.length} bytes of data...`);
++++         *   }
++++         * });
++++         *
++++         * // 'end' will be triggered once when there is no more data available
++++         * readable.on('end', () => {
++++         *   console.log('Reached end of stream.');
++++         * });
++++         * ```
++++         *
++++         * Each call to `readable.read()` returns a chunk of data, or `null`. The chunks
++++         * are not concatenated. A `while` loop is necessary to consume all data
++++         * currently in the buffer. When reading a large file `.read()` may return `null`,
++++         * having consumed all buffered content so far, but there is still more data to
++++         * come not yet buffered. In this case a new `'readable'` event will be emitted
++++         * when there is more data in the buffer. Finally the `'end'` event will be
++++         * emitted when there is no more data to come.
++++         *
++++         * Therefore to read a file's whole contents from a `readable`, it is necessary
++++         * to collect chunks across multiple `'readable'` events:
++++         *
++++         * ```js
++++         * const chunks = [];
++++         *
++++         * readable.on('readable', () => {
++++         *   let chunk;
++++         *   while (null !== (chunk = readable.read())) {
++++         *     chunks.push(chunk);
++++         *   }
++++         * });
++++         *
++++         * readable.on('end', () => {
++++         *   const content = chunks.join('');
++++         * });
++++         * ```
++++         *
++++         * A `Readable` stream in object mode will always return a single item from
++++         * a call to `readable.read(size)`, regardless of the value of the `size` argument.
++++         *
++++         * If the `readable.read()` method returns a chunk of data, a `'data'` event will
++++         * also be emitted.
++++         *
++++         * Calling {@link read} after the `'end'` event has
++++         * been emitted will return `null`. No runtime error will be raised.
++++         * @since v0.9.4
++++         * @param size Optional argument to specify how much data to read.
++++         */
++++        read(size?: number): any;
++++        /**
++++         * The `readable.setEncoding()` method sets the character encoding for
++++         * data read from the `Readable` stream.
++++         *
++++         * By default, no encoding is assigned and stream data will be returned as `Buffer` objects. Setting an encoding causes the stream data
++++         * to be returned as strings of the specified encoding rather than as `Buffer` objects. For instance, calling `readable.setEncoding('utf8')` will cause the
++++         * output data to be interpreted as UTF-8 data, and passed as strings. Calling `readable.setEncoding('hex')` will cause the data to be encoded in hexadecimal
++++         * string format.
++++         *
++++         * The `Readable` stream will properly handle multi-byte characters delivered
++++         * through the stream that would otherwise become improperly decoded if simply
++++         * pulled from the stream as `Buffer` objects.
++++         *
++++         * ```js
++++         * const readable = getReadableStreamSomehow();
++++         * readable.setEncoding('utf8');
++++         * readable.on('data', (chunk) => {
++++         *   assert.equal(typeof chunk, 'string');
++++         *   console.log('Got %d characters of string data:', chunk.length);
++++         * });
++++         * ```
++++         * @since v0.9.4
++++         * @param encoding The encoding to use.
++++         */
++++        setEncoding(encoding: BufferEncoding): this;
++++        /**
++++         * The `readable.pause()` method will cause a stream in flowing mode to stop
++++         * emitting `'data'` events, switching out of flowing mode. Any data that
++++         * becomes available will remain in the internal buffer.
++++         *
++++         * ```js
++++         * const readable = getReadableStreamSomehow();
++++         * readable.on('data', (chunk) => {
++++         *   console.log(`Received ${chunk.length} bytes of data.`);
++++         *   readable.pause();
++++         *   console.log('There will be no additional data for 1 second.');
++++         *   setTimeout(() => {
++++         *     console.log('Now data will start flowing again.');
++++         *     readable.resume();
++++         *   }, 1000);
++++         * });
++++         * ```
++++         *
++++         * The `readable.pause()` method has no effect if there is a `'readable'` event listener.
++++         * @since v0.9.4
++++         */
++++        pause(): this;
++++        /**
++++         * The `readable.resume()` method causes an explicitly paused `Readable` stream to
++++         * resume emitting `'data'` events, switching the stream into flowing mode.
++++         *
++++         * The `readable.resume()` method can be used to fully consume the data from a
++++         * stream without actually processing any of that data:
++++         *
++++         * ```js
++++         * getReadableStreamSomehow()
++++         *   .resume()
++++         *   .on('end', () => {
++++         *     console.log('Reached the end, but did not read anything.');
++++         *   });
++++         * ```
++++         *
++++         * The `readable.resume()` method has no effect if there is a `'readable'` event listener.
++++         * @since v0.9.4
++++         */
++++        resume(): this;
++++        /**
++++         * The `readable.isPaused()` method returns the current operating state of the `Readable`.
++++         * This is used primarily by the mechanism that underlies the `readable.pipe()` method.
++++         * In most typical cases, there will be no reason to use this method directly.
++++         *
++++         * ```js
++++         * const readable = new stream.Readable();
++++         *
++++         * readable.isPaused(); // === false
++++         * readable.pause();
++++         * readable.isPaused(); // === true
++++         * readable.resume();
++++         * readable.isPaused(); // === false
++++         * ```
++++         * @since v0.11.14
++++         */
++++        isPaused(): boolean;
++++        /**
++++         * The `readable.unpipe()` method detaches a `Writable` stream previously attached
++++         * using the {@link pipe} method.
++++         *
++++         * If the `destination` is not specified, then _all_ pipes are detached.
++++         *
++++         * If the `destination` is specified, but no pipe is set up for it, then
++++         * the method does nothing.
++++         *
++++         * ```js
++++         * import fs from 'node:fs';
++++         * const readable = getReadableStreamSomehow();
++++         * const writable = fs.createWriteStream('file.txt');
++++         * // All the data from readable goes into 'file.txt',
++++         * // but only for the first second.
++++         * readable.pipe(writable);
++++         * setTimeout(() => {
++++         *   console.log('Stop writing to file.txt.');
++++         *   readable.unpipe(writable);
++++         *   console.log('Manually close the file stream.');
++++         *   writable.end();
++++         * }, 1000);
++++         * ```
++++         * @since v0.9.4
++++         * @param destination Optional specific stream to unpipe
++++         */
++++        unpipe(destination?: NodeJS.WritableStream): this;
++++        /**
++++         * Passing `chunk` as `null` signals the end of the stream (EOF) and behaves the
++++         * same as `readable.push(null)`, after which no more data can be written. The EOF
++++         * signal is put at the end of the buffer and any buffered data will still be
++++         * flushed.
++++         *
++++         * The `readable.unshift()` method pushes a chunk of data back into the internal
++++         * buffer. This is useful in certain situations where a stream is being consumed by
++++         * code that needs to "un-consume" some amount of data that it has optimistically
++++         * pulled out of the source, so that the data can be passed on to some other party.
++++         *
++++         * The `stream.unshift(chunk)` method cannot be called after the `'end'` event
++++         * has been emitted or a runtime error will be thrown.
++++         *
++++         * Developers using `stream.unshift()` often should consider switching to
++++         * use of a `Transform` stream instead. See the `API for stream implementers` section for more information.
++++         *
++++         * ```js
++++         * // Pull off a header delimited by \n\n.
++++         * // Use unshift() if we get too much.
++++         * // Call the callback with (error, header, stream).
++++         * import { StringDecoder } from 'node:string_decoder';
++++         * function parseHeader(stream, callback) {
++++         *   stream.on('error', callback);
++++         *   stream.on('readable', onReadable);
++++         *   const decoder = new StringDecoder('utf8');
++++         *   let header = '';
++++         *   function onReadable() {
++++         *     let chunk;
++++         *     while (null !== (chunk = stream.read())) {
++++         *       const str = decoder.write(chunk);
++++         *       if (str.includes('\n\n')) {
++++         *         // Found the header boundary.
++++         *         const split = str.split(/\n\n/);
++++         *         header += split.shift();
++++         *         const remaining = split.join('\n\n');
++++         *         const buf = Buffer.from(remaining, 'utf8');
++++         *         stream.removeListener('error', callback);
++++         *         // Remove the 'readable' listener before unshifting.
++++         *         stream.removeListener('readable', onReadable);
++++         *         if (buf.length)
++++         *           stream.unshift(buf);
++++         *         // Now the body of the message can be read from the stream.
++++         *         callback(null, header, stream);
++++         *         return;
++++         *       }
++++         *       // Still reading the header.
++++         *       header += str;
++++         *     }
++++         *   }
++++         * }
++++         * ```
++++         *
++++         * Unlike {@link push}, `stream.unshift(chunk)` will not
++++         * end the reading process by resetting the internal reading state of the stream.
++++         * This can cause unexpected results if `readable.unshift()` is called during a
++++         * read (i.e. from within a {@link _read} implementation on a
++++         * custom stream). Following the call to `readable.unshift()` with an immediate {@link push} will reset the reading state appropriately,
++++         * however it is best to simply avoid calling `readable.unshift()` while in the
++++         * process of performing a read.
++++         * @since v0.9.11
++++         * @param chunk Chunk of data to unshift onto the read queue. For streams not operating in object mode, `chunk` must
++++         * be a {string}, {Buffer}, {TypedArray}, {DataView} or `null`. For object mode streams, `chunk` may be any JavaScript value.
++++         * @param encoding Encoding of string chunks. Must be a valid `Buffer` encoding, such as `'utf8'` or `'ascii'`.
++++         */
++++        unshift(chunk: any, encoding?: BufferEncoding): void;
++++        /**
++++         * Prior to Node.js 0.10, streams did not implement the entire `node:stream` module API as it is currently defined. (See `Compatibility` for more
++++         * information.)
++++         *
++++         * When using an older Node.js library that emits `'data'` events and has a {@link pause} method that is advisory only, the `readable.wrap()` method can be used to create a `Readable`
++++         * stream that uses
++++         * the old stream as its data source.
++++         *
++++         * It will rarely be necessary to use `readable.wrap()` but the method has been
++++         * provided as a convenience for interacting with older Node.js applications and
++++         * libraries.
++++         *
++++         * ```js
++++         * import { OldReader } from './old-api-module.js';
++++         * import { Readable } from 'node:stream';
++++         * const oreader = new OldReader();
++++         * const myReader = new Readable().wrap(oreader);
++++         *
++++         * myReader.on('readable', () => {
++++         *   myReader.read(); // etc.
++++         * });
++++         * ```
++++         * @since v0.9.4
++++         * @param stream An "old style" readable stream
++++         */
++++        wrap(stream: NodeJS.ReadableStream): this;
++++        push(chunk: any, encoding?: BufferEncoding): boolean;
++++        /**
++++         * The iterator created by this method gives users the option to cancel the destruction
++++         * of the stream if the `for await...of` loop is exited by `return`, `break`, or `throw`,
++++         * or if the iterator should destroy the stream if the stream emitted an error during iteration.
++++         * @since v16.3.0
++++         * @param options.destroyOnReturn When set to `false`, calling `return` on the async iterator,
++++         * or exiting a `for await...of` iteration using a `break`, `return`, or `throw` will not destroy the stream.
++++         * **Default: `true`**.
++++         */
++++        iterator(options?: { destroyOnReturn?: boolean }): NodeJS.AsyncIterator<any>;
++++        /**
++++         * This method allows mapping over the stream. The *fn* function will be called for every chunk in the stream.
++++         * If the *fn* function returns a promise - that promise will be `await`ed before being passed to the result stream.
++++         * @since v17.4.0, v16.14.0
++++         * @param fn a function to map over every chunk in the stream. Async or not.
++++         * @returns a stream mapped with the function *fn*.
++++         */
++++        map(fn: (data: any, options?: Pick<ArrayOptions, "signal">) => any, options?: ArrayOptions): Readable;
++++        /**
++++         * This method allows filtering the stream. For each chunk in the stream the *fn* function will be called
++++         * and if it returns a truthy value, the chunk will be passed to the result stream.
++++         * If the *fn* function returns a promise - that promise will be `await`ed.
++++         * @since v17.4.0, v16.14.0
++++         * @param fn a function to filter chunks from the stream. Async or not.
++++         * @returns a stream filtered with the predicate *fn*.
++++         */
++++        filter(
++++            fn: (data: any, options?: Pick<ArrayOptions, "signal">) => boolean | Promise<boolean>,
++++            options?: ArrayOptions,
++++        ): Readable;
++++        /**
++++         * This method allows iterating a stream. For each chunk in the stream the *fn* function will be called.
++++         * If the *fn* function returns a promise - that promise will be `await`ed.
++++         *
++++         * This method is different from `for await...of` loops in that it can optionally process chunks concurrently.
++++         * In addition, a `forEach` iteration can only be stopped by having passed a `signal` option
++++         * and aborting the related AbortController while `for await...of` can be stopped with `break` or `return`.
++++         * In either case the stream will be destroyed.
++++         *
++++         * This method is different from listening to the `'data'` event in that it uses the `readable` event
++++         * in the underlying machinary and can limit the number of concurrent *fn* calls.
++++         * @since v17.5.0
++++         * @param fn a function to call on each chunk of the stream. Async or not.
++++         * @returns a promise for when the stream has finished.
++++         */
++++        forEach(
++++            fn: (data: any, options?: Pick<ArrayOptions, "signal">) => void | Promise<void>,
++++            options?: ArrayOptions,
++++        ): Promise<void>;
++++        /**
++++         * This method allows easily obtaining the contents of a stream.
++++         *
++++         * As this method reads the entire stream into memory, it negates the benefits of streams. It's intended
++++         * for interoperability and convenience, not as the primary way to consume streams.
++++         * @since v17.5.0
++++         * @returns a promise containing an array with the contents of the stream.
++++         */
++++        toArray(options?: Pick<ArrayOptions, "signal">): Promise<any[]>;
++++        /**
++++         * This method is similar to `Array.prototype.some` and calls *fn* on each chunk in the stream
++++         * until the awaited return value is `true` (or any truthy value). Once an *fn* call on a chunk
++++         * `await`ed return value is truthy, the stream is destroyed and the promise is fulfilled with `true`.
++++         * If none of the *fn* calls on the chunks return a truthy value, the promise is fulfilled with `false`.
++++         * @since v17.5.0
++++         * @param fn a function to call on each chunk of the stream. Async or not.
++++         * @returns a promise evaluating to `true` if *fn* returned a truthy value for at least one of the chunks.
++++         */
++++        some(
++++            fn: (data: any, options?: Pick<ArrayOptions, "signal">) => boolean | Promise<boolean>,
++++            options?: ArrayOptions,
++++        ): Promise<boolean>;
++++        /**
++++         * This method is similar to `Array.prototype.find` and calls *fn* on each chunk in the stream
++++         * to find a chunk with a truthy value for *fn*. Once an *fn* call's awaited return value is truthy,
++++         * the stream is destroyed and the promise is fulfilled with value for which *fn* returned a truthy value.
++++         * If all of the *fn* calls on the chunks return a falsy value, the promise is fulfilled with `undefined`.
++++         * @since v17.5.0
++++         * @param fn a function to call on each chunk of the stream. Async or not.
++++         * @returns a promise evaluating to the first chunk for which *fn* evaluated with a truthy value,
++++         * or `undefined` if no element was found.
++++         */
++++        find<T>(
++++            fn: (data: any, options?: Pick<ArrayOptions, "signal">) => data is T,
++++            options?: ArrayOptions,
++++        ): Promise<T | undefined>;
++++        find(
++++            fn: (data: any, options?: Pick<ArrayOptions, "signal">) => boolean | Promise<boolean>,
++++            options?: ArrayOptions,
++++        ): Promise<any>;
++++        /**
++++         * This method is similar to `Array.prototype.every` and calls *fn* on each chunk in the stream
++++         * to check if all awaited return values are truthy value for *fn*. Once an *fn* call on a chunk
++++         * `await`ed return value is falsy, the stream is destroyed and the promise is fulfilled with `false`.
++++         * If all of the *fn* calls on the chunks return a truthy value, the promise is fulfilled with `true`.
++++         * @since v17.5.0
++++         * @param fn a function to call on each chunk of the stream. Async or not.
++++         * @returns a promise evaluating to `true` if *fn* returned a truthy value for every one of the chunks.
++++         */
++++        every(
++++            fn: (data: any, options?: Pick<ArrayOptions, "signal">) => boolean | Promise<boolean>,
++++            options?: ArrayOptions,
++++        ): Promise<boolean>;
++++        /**
++++         * This method returns a new stream by applying the given callback to each chunk of the stream
++++         * and then flattening the result.
++++         *
++++         * It is possible to return a stream or another iterable or async iterable from *fn* and the result streams
++++         * will be merged (flattened) into the returned stream.
++++         * @since v17.5.0
++++         * @param fn a function to map over every chunk in the stream. May be async. May be a stream or generator.
++++         * @returns a stream flat-mapped with the function *fn*.
++++         */
++++        flatMap(fn: (data: any, options?: Pick<ArrayOptions, "signal">) => any, options?: ArrayOptions): Readable;
++++        /**
++++         * This method returns a new stream with the first *limit* chunks dropped from the start.
++++         * @since v17.5.0
++++         * @param limit the number of chunks to drop from the readable.
++++         * @returns a stream with *limit* chunks dropped from the start.
++++         */
++++        drop(limit: number, options?: Pick<ArrayOptions, "signal">): Readable;
++++        /**
++++         * This method returns a new stream with the first *limit* chunks.
++++         * @since v17.5.0
++++         * @param limit the number of chunks to take from the readable.
++++         * @returns a stream with *limit* chunks taken.
++++         */
++++        take(limit: number, options?: Pick<ArrayOptions, "signal">): Readable;
++++        /**
++++         * This method returns a new stream with chunks of the underlying stream paired with a counter
++++         * in the form `[index, chunk]`. The first index value is `0` and it increases by 1 for each chunk produced.
++++         * @since v17.5.0
++++         * @returns a stream of indexed pairs.
++++         */
++++        asIndexedPairs(options?: Pick<ArrayOptions, "signal">): Readable;
++++        /**
++++         * This method calls *fn* on each chunk of the stream in order, passing it the result from the calculation
++++         * on the previous element. It returns a promise for the final value of the reduction.
++++         *
++++         * If no *initial* value is supplied the first chunk of the stream is used as the initial value.
++++         * If the stream is empty, the promise is rejected with a `TypeError` with the `ERR_INVALID_ARGS` code property.
++++         *
++++         * The reducer function iterates the stream element-by-element which means that there is no *concurrency* parameter
++++         * or parallelism. To perform a reduce concurrently, you can extract the async function to `readable.map` method.
++++         * @since v17.5.0
++++         * @param fn a reducer function to call over every chunk in the stream. Async or not.
++++         * @param initial the initial value to use in the reduction.
++++         * @returns a promise for the final value of the reduction.
++++         */
++++        reduce<T = any>(
++++            fn: (previous: any, data: any, options?: Pick<ArrayOptions, "signal">) => T,
++++            initial?: undefined,
++++            options?: Pick<ArrayOptions, "signal">,
++++        ): Promise<T>;
++++        reduce<T = any>(
++++            fn: (previous: T, data: any, options?: Pick<ArrayOptions, "signal">) => T,
++++            initial: T,
++++            options?: Pick<ArrayOptions, "signal">,
++++        ): Promise<T>;
++++        _destroy(error: Error | null, callback: (error?: Error | null) => void): void;
++++        /**
++++         * Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` event (unless `emitClose` is set to `false`). After this call, the readable
++++         * stream will release any internal resources and subsequent calls to `push()` will be ignored.
++++         *
++++         * Once `destroy()` has been called any further calls will be a no-op and no
++++         * further errors except from `_destroy()` may be emitted as `'error'`.
++++         *
++++         * Implementors should not override this method, but instead implement `readable._destroy()`.
++++         * @since v8.0.0
++++         * @param error Error which will be passed as payload in `'error'` event
++++         */
++++        destroy(error?: Error): this;
++++        /**
++++         * Event emitter
++++         * The defined events on documents including:
++++         * 1. close
++++         * 2. data
++++         * 3. end
++++         * 4. error
++++         * 5. pause
++++         * 6. readable
++++         * 7. resume
++++         */
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "data", listener: (chunk: any) => void): this;
++++        addListener(event: "end", listener: () => void): this;
++++        addListener(event: "error", listener: (err: Error) => void): this;
++++        addListener(event: "pause", listener: () => void): this;
++++        addListener(event: "readable", listener: () => void): this;
++++        addListener(event: "resume", listener: () => void): this;
++++        addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        emit(event: "close"): boolean;
++++        emit(event: "data", chunk: any): boolean;
++++        emit(event: "end"): boolean;
++++        emit(event: "error", err: Error): boolean;
++++        emit(event: "pause"): boolean;
++++        emit(event: "readable"): boolean;
++++        emit(event: "resume"): boolean;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "data", listener: (chunk: any) => void): this;
++++        on(event: "end", listener: () => void): this;
++++        on(event: "error", listener: (err: Error) => void): this;
++++        on(event: "pause", listener: () => void): this;
++++        on(event: "readable", listener: () => void): this;
++++        on(event: "resume", listener: () => void): this;
++++        on(event: string | symbol, listener: (...args: any[]) => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "data", listener: (chunk: any) => void): this;
++++        once(event: "end", listener: () => void): this;
++++        once(event: "error", listener: (err: Error) => void): this;
++++        once(event: "pause", listener: () => void): this;
++++        once(event: "readable", listener: () => void): this;
++++        once(event: "resume", listener: () => void): this;
++++        once(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "data", listener: (chunk: any) => void): this;
++++        prependListener(event: "end", listener: () => void): this;
++++        prependListener(event: "error", listener: (err: Error) => void): this;
++++        prependListener(event: "pause", listener: () => void): this;
++++        prependListener(event: "readable", listener: () => void): this;
++++        prependListener(event: "resume", listener: () => void): this;
++++        prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "data", listener: (chunk: any) => void): this;
++++        prependOnceListener(event: "end", listener: () => void): this;
++++        prependOnceListener(event: "error", listener: (err: Error) => void): this;
++++        prependOnceListener(event: "pause", listener: () => void): this;
++++        prependOnceListener(event: "readable", listener: () => void): this;
++++        prependOnceListener(event: "resume", listener: () => void): this;
++++        prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        removeListener(event: "close", listener: () => void): this;
++++        removeListener(event: "data", listener: (chunk: any) => void): this;
++++        removeListener(event: "end", listener: () => void): this;
++++        removeListener(event: "error", listener: (err: Error) => void): this;
++++        removeListener(event: "pause", listener: () => void): this;
++++        removeListener(event: "readable", listener: () => void): this;
++++        removeListener(event: "resume", listener: () => void): this;
++++        removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        [Symbol.asyncIterator](): NodeJS.AsyncIterator<any>;
++++        /**
++++         * Calls `readable.destroy()` with an `AbortError` and returns a promise that fulfills when the stream is finished.
++++         * @since v20.4.0
++++         */
++++        [Symbol.asyncDispose](): Promise<void>;
++++    }
++++    import WritableOptions = internal.WritableOptions;
++++    class WritableBase extends Stream implements NodeJS.WritableStream {
++++        /**
++++         * Is `true` if it is safe to call `writable.write()`, which means
++++         * the stream has not been destroyed, errored, or ended.
++++         * @since v11.4.0
++++         */
++++        readonly writable: boolean;
++++        /**
++++         * Is `true` after `writable.end()` has been called. This property
++++         * does not indicate whether the data has been flushed, for this use `writable.writableFinished` instead.
++++         * @since v12.9.0
++++         */
++++        readonly writableEnded: boolean;
++++        /**
++++         * Is set to `true` immediately before the `'finish'` event is emitted.
++++         * @since v12.6.0
++++         */
++++        readonly writableFinished: boolean;
++++        /**
++++         * Return the value of `highWaterMark` passed when creating this `Writable`.
++++         * @since v9.3.0
++++         */
++++        readonly writableHighWaterMark: number;
++++        /**
++++         * This property contains the number of bytes (or objects) in the queue
++++         * ready to be written. The value provides introspection data regarding
++++         * the status of the `highWaterMark`.
++++         * @since v9.4.0
++++         */
++++        readonly writableLength: number;
++++        /**
++++         * Getter for the property `objectMode` of a given `Writable` stream.
++++         * @since v12.3.0
++++         */
++++        readonly writableObjectMode: boolean;
++++        /**
++++         * Number of times `writable.uncork()` needs to be
++++         * called in order to fully uncork the stream.
++++         * @since v13.2.0, v12.16.0
++++         */
++++        readonly writableCorked: number;
++++        /**
++++         * Is `true` after `writable.destroy()` has been called.
++++         * @since v8.0.0
++++         */
++++        destroyed: boolean;
++++        /**
++++         * Is `true` after `'close'` has been emitted.
++++         * @since v18.0.0
++++         */
++++        readonly closed: boolean;
++++        /**
++++         * Returns error if the stream has been destroyed with an error.
++++         * @since v18.0.0
++++         */
++++        readonly errored: Error | null;
++++        /**
++++         * Is `true` if the stream's buffer has been full and stream will emit `'drain'`.
++++         * @since v15.2.0, v14.17.0
++++         */
++++        readonly writableNeedDrain: boolean;
++++        constructor(opts?: WritableOptions);
++++        _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
++++        _writev?(
++++            chunks: Array<{
++++                chunk: any;
++++                encoding: BufferEncoding;
++++            }>,
++++            callback: (error?: Error | null) => void,
++++        ): void;
++++        _construct?(callback: (error?: Error | null) => void): void;
++++        _destroy(error: Error | null, callback: (error?: Error | null) => void): void;
++++        _final(callback: (error?: Error | null) => void): void;
++++        /**
++++         * The `writable.write()` method writes some data to the stream, and calls the
++++         * supplied `callback` once the data has been fully handled. If an error
++++         * occurs, the `callback` will be called with the error as its
++++         * first argument. The `callback` is called asynchronously and before `'error'` is
++++         * emitted.
++++         *
++++         * The return value is `true` if the internal buffer is less than the `highWaterMark` configured when the stream was created after admitting `chunk`.
++++         * If `false` is returned, further attempts to write data to the stream should
++++         * stop until the `'drain'` event is emitted.
++++         *
++++         * While a stream is not draining, calls to `write()` will buffer `chunk`, and
++++         * return false. Once all currently buffered chunks are drained (accepted for
++++         * delivery by the operating system), the `'drain'` event will be emitted.
++++         * Once `write()` returns false, do not write more chunks
++++         * until the `'drain'` event is emitted. While calling `write()` on a stream that
++++         * is not draining is allowed, Node.js will buffer all written chunks until
++++         * maximum memory usage occurs, at which point it will abort unconditionally.
++++         * Even before it aborts, high memory usage will cause poor garbage collector
++++         * performance and high RSS (which is not typically released back to the system,
++++         * even after the memory is no longer required). Since TCP sockets may never
++++         * drain if the remote peer does not read the data, writing a socket that is
++++         * not draining may lead to a remotely exploitable vulnerability.
++++         *
++++         * Writing data while the stream is not draining is particularly
++++         * problematic for a `Transform`, because the `Transform` streams are paused
++++         * by default until they are piped or a `'data'` or `'readable'` event handler
++++         * is added.
++++         *
++++         * If the data to be written can be generated or fetched on demand, it is
++++         * recommended to encapsulate the logic into a `Readable` and use {@link pipe}. However, if calling `write()` is preferred, it is
++++         * possible to respect backpressure and avoid memory issues using the `'drain'` event:
++++         *
++++         * ```js
++++         * function write(data, cb) {
++++         *   if (!stream.write(data)) {
++++         *     stream.once('drain', cb);
++++         *   } else {
++++         *     process.nextTick(cb);
++++         *   }
++++         * }
++++         *
++++         * // Wait for cb to be called before doing any other write.
++++         * write('hello', () => {
++++         *   console.log('Write completed, do more writes now.');
++++         * });
++++         * ```
++++         *
++++         * A `Writable` stream in object mode will always ignore the `encoding` argument.
++++         * @since v0.9.4
++++         * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
++++         * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
++++         * @param [encoding='utf8'] The encoding, if `chunk` is a string.
++++         * @param callback Callback for when this chunk of data is flushed.
++++         * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
++++         */
++++        write(chunk: any, callback?: (error: Error | null | undefined) => void): boolean;
++++        write(chunk: any, encoding: BufferEncoding, callback?: (error: Error | null | undefined) => void): boolean;
++++        /**
++++         * The `writable.setDefaultEncoding()` method sets the default `encoding` for a `Writable` stream.
++++         * @since v0.11.15
++++         * @param encoding The new default encoding
++++         */
++++        setDefaultEncoding(encoding: BufferEncoding): this;
++++        /**
++++         * Calling the `writable.end()` method signals that no more data will be written
++++         * to the `Writable`. The optional `chunk` and `encoding` arguments allow one
++++         * final additional chunk of data to be written immediately before closing the
++++         * stream.
++++         *
++++         * Calling the {@link write} method after calling {@link end} will raise an error.
++++         *
++++         * ```js
++++         * // Write 'hello, ' and then end with 'world!'.
++++         * import fs from 'node:fs';
++++         * const file = fs.createWriteStream('example.txt');
++++         * file.write('hello, ');
++++         * file.end('world!');
++++         * // Writing more now is not allowed!
++++         * ```
++++         * @since v0.9.4
++++         * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
++++         * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
++++         * @param encoding The encoding if `chunk` is a string
++++         * @param callback Callback for when the stream is finished.
++++         */
++++        end(cb?: () => void): this;
++++        end(chunk: any, cb?: () => void): this;
++++        end(chunk: any, encoding: BufferEncoding, cb?: () => void): this;
++++        /**
++++         * The `writable.cork()` method forces all written data to be buffered in memory.
++++         * The buffered data will be flushed when either the {@link uncork} or {@link end} methods are called.
++++         *
++++         * The primary intent of `writable.cork()` is to accommodate a situation in which
++++         * several small chunks are written to the stream in rapid succession. Instead of
++++         * immediately forwarding them to the underlying destination, `writable.cork()` buffers all the chunks until `writable.uncork()` is called, which will pass them
++++         * all to `writable._writev()`, if present. This prevents a head-of-line blocking
++++         * situation where data is being buffered while waiting for the first small chunk
++++         * to be processed. However, use of `writable.cork()` without implementing `writable._writev()` may have an adverse effect on throughput.
++++         *
++++         * See also: `writable.uncork()`, `writable._writev()`.
++++         * @since v0.11.2
++++         */
++++        cork(): void;
++++        /**
++++         * The `writable.uncork()` method flushes all data buffered since {@link cork} was called.
++++         *
++++         * When using `writable.cork()` and `writable.uncork()` to manage the buffering
++++         * of writes to a stream, defer calls to `writable.uncork()` using `process.nextTick()`. Doing so allows batching of all `writable.write()` calls that occur within a given Node.js event
++++         * loop phase.
++++         *
++++         * ```js
++++         * stream.cork();
++++         * stream.write('some ');
++++         * stream.write('data ');
++++         * process.nextTick(() => stream.uncork());
++++         * ```
++++         *
++++         * If the `writable.cork()` method is called multiple times on a stream, the
++++         * same number of calls to `writable.uncork()` must be called to flush the buffered
++++         * data.
++++         *
++++         * ```js
++++         * stream.cork();
++++         * stream.write('some ');
++++         * stream.cork();
++++         * stream.write('data ');
++++         * process.nextTick(() => {
++++         *   stream.uncork();
++++         *   // The data will not be flushed until uncork() is called a second time.
++++         *   stream.uncork();
++++         * });
++++         * ```
++++         *
++++         * See also: `writable.cork()`.
++++         * @since v0.11.2
++++         */
++++        uncork(): void;
++++        /**
++++         * Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` event (unless `emitClose` is set to `false`). After this call, the writable
++++         * stream has ended and subsequent calls to `write()` or `end()` will result in
++++         * an `ERR_STREAM_DESTROYED` error.
++++         * This is a destructive and immediate way to destroy a stream. Previous calls to `write()` may not have drained, and may trigger an `ERR_STREAM_DESTROYED` error.
++++         * Use `end()` instead of destroy if data should flush before close, or wait for
++++         * the `'drain'` event before destroying the stream.
++++         *
++++         * Once `destroy()` has been called any further calls will be a no-op and no
++++         * further errors except from `_destroy()` may be emitted as `'error'`.
++++         *
++++         * Implementors should not override this method,
++++         * but instead implement `writable._destroy()`.
++++         * @since v8.0.0
++++         * @param error Optional, an error to emit with `'error'` event.
++++         */
++++        destroy(error?: Error): this;
++++        /**
++++         * Event emitter
++++         * The defined events on documents including:
++++         * 1. close
++++         * 2. drain
++++         * 3. error
++++         * 4. finish
++++         * 5. pipe
++++         * 6. unpipe
++++         */
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "drain", listener: () => void): this;
++++        addListener(event: "error", listener: (err: Error) => void): this;
++++        addListener(event: "finish", listener: () => void): this;
++++        addListener(event: "pipe", listener: (src: Readable) => void): this;
++++        addListener(event: "unpipe", listener: (src: Readable) => void): this;
++++        addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        emit(event: "close"): boolean;
++++        emit(event: "drain"): boolean;
++++        emit(event: "error", err: Error): boolean;
++++        emit(event: "finish"): boolean;
++++        emit(event: "pipe", src: Readable): boolean;
++++        emit(event: "unpipe", src: Readable): boolean;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "drain", listener: () => void): this;
++++        on(event: "error", listener: (err: Error) => void): this;
++++        on(event: "finish", listener: () => void): this;
++++        on(event: "pipe", listener: (src: Readable) => void): this;
++++        on(event: "unpipe", listener: (src: Readable) => void): this;
++++        on(event: string | symbol, listener: (...args: any[]) => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "drain", listener: () => void): this;
++++        once(event: "error", listener: (err: Error) => void): this;
++++        once(event: "finish", listener: () => void): this;
++++        once(event: "pipe", listener: (src: Readable) => void): this;
++++        once(event: "unpipe", listener: (src: Readable) => void): this;
++++        once(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "drain", listener: () => void): this;
++++        prependListener(event: "error", listener: (err: Error) => void): this;
++++        prependListener(event: "finish", listener: () => void): this;
++++        prependListener(event: "pipe", listener: (src: Readable) => void): this;
++++        prependListener(event: "unpipe", listener: (src: Readable) => void): this;
++++        prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "drain", listener: () => void): this;
++++        prependOnceListener(event: "error", listener: (err: Error) => void): this;
++++        prependOnceListener(event: "finish", listener: () => void): this;
++++        prependOnceListener(event: "pipe", listener: (src: Readable) => void): this;
++++        prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this;
++++        prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        removeListener(event: "close", listener: () => void): this;
++++        removeListener(event: "drain", listener: () => void): this;
++++        removeListener(event: "error", listener: (err: Error) => void): this;
++++        removeListener(event: "finish", listener: () => void): this;
++++        removeListener(event: "pipe", listener: (src: Readable) => void): this;
++++        removeListener(event: "unpipe", listener: (src: Readable) => void): this;
++++        removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++    }
++++    namespace internal {
++++        class Stream extends internal {
++++            constructor(opts?: ReadableOptions);
++++        }
++++        interface StreamOptions<T extends Stream> extends Abortable {
++++            emitClose?: boolean | undefined;
++++            highWaterMark?: number | undefined;
++++            objectMode?: boolean | undefined;
++++            construct?(this: T, callback: (error?: Error | null) => void): void;
++++            destroy?(this: T, error: Error | null, callback: (error?: Error | null) => void): void;
++++            autoDestroy?: boolean | undefined;
++++        }
++++        interface ReadableOptions extends StreamOptions<Readable> {
++++            encoding?: BufferEncoding | undefined;
++++            read?(this: Readable, size: number): void;
++++        }
++++        /**
++++         * @since v0.9.4
++++         */
++++        class Readable extends ReadableBase {
++++            /**
++++             * A utility method for creating a `Readable` from a web `ReadableStream`.
++++             * @since v17.0.0
++++             * @experimental
++++             */
++++            static fromWeb(
++++                readableStream: streamWeb.ReadableStream,
++++                options?: Pick<ReadableOptions, "encoding" | "highWaterMark" | "objectMode" | "signal">,
++++            ): Readable;
++++            /**
++++             * A utility method for creating a web `ReadableStream` from a `Readable`.
++++             * @since v17.0.0
++++             * @experimental
++++             */
++++            static toWeb(streamReadable: Readable): streamWeb.ReadableStream;
++++        }
++++        interface WritableOptions extends StreamOptions<Writable> {
++++            decodeStrings?: boolean | undefined;
++++            defaultEncoding?: BufferEncoding | undefined;
++++            write?(
++++                this: Writable,
++++                chunk: any,
++++                encoding: BufferEncoding,
++++                callback: (error?: Error | null) => void,
++++            ): void;
++++            writev?(
++++                this: Writable,
++++                chunks: Array<{
++++                    chunk: any;
++++                    encoding: BufferEncoding;
++++                }>,
++++                callback: (error?: Error | null) => void,
++++            ): void;
++++            final?(this: Writable, callback: (error?: Error | null) => void): void;
++++        }
++++        /**
++++         * @since v0.9.4
++++         */
++++        class Writable extends WritableBase {
++++            /**
++++             * A utility method for creating a `Writable` from a web `WritableStream`.
++++             * @since v17.0.0
++++             * @experimental
++++             */
++++            static fromWeb(
++++                writableStream: streamWeb.WritableStream,
++++                options?: Pick<WritableOptions, "decodeStrings" | "highWaterMark" | "objectMode" | "signal">,
++++            ): Writable;
++++            /**
++++             * A utility method for creating a web `WritableStream` from a `Writable`.
++++             * @since v17.0.0
++++             * @experimental
++++             */
++++            static toWeb(streamWritable: Writable): streamWeb.WritableStream;
++++        }
++++        interface DuplexOptions extends ReadableOptions, WritableOptions {
++++            allowHalfOpen?: boolean | undefined;
++++            readableObjectMode?: boolean | undefined;
++++            writableObjectMode?: boolean | undefined;
++++            readableHighWaterMark?: number | undefined;
++++            writableHighWaterMark?: number | undefined;
++++            writableCorked?: number | undefined;
++++            construct?(this: Duplex, callback: (error?: Error | null) => void): void;
++++            read?(this: Duplex, size: number): void;
++++            write?(this: Duplex, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
++++            writev?(
++++                this: Duplex,
++++                chunks: Array<{
++++                    chunk: any;
++++                    encoding: BufferEncoding;
++++                }>,
++++                callback: (error?: Error | null) => void,
++++            ): void;
++++            final?(this: Duplex, callback: (error?: Error | null) => void): void;
++++            destroy?(this: Duplex, error: Error | null, callback: (error?: Error | null) => void): void;
++++        }
++++        /**
++++         * Duplex streams are streams that implement both the `Readable` and `Writable` interfaces.
++++         *
++++         * Examples of `Duplex` streams include:
++++         *
++++         * * `TCP sockets`
++++         * * `zlib streams`
++++         * * `crypto streams`
++++         * @since v0.9.4
++++         */
++++        class Duplex extends ReadableBase implements WritableBase {
++++            readonly writable: boolean;
++++            readonly writableEnded: boolean;
++++            readonly writableFinished: boolean;
++++            readonly writableHighWaterMark: number;
++++            readonly writableLength: number;
++++            readonly writableObjectMode: boolean;
++++            readonly writableCorked: number;
++++            readonly writableNeedDrain: boolean;
++++            readonly closed: boolean;
++++            readonly errored: Error | null;
++++            /**
++++             * If `false` then the stream will automatically end the writable side when the
++++             * readable side ends. Set initially by the `allowHalfOpen` constructor option,
++++             * which defaults to `true`.
++++             *
++++             * This can be changed manually to change the half-open behavior of an existing
++++             * `Duplex` stream instance, but must be changed before the `'end'` event is emitted.
++++             * @since v0.9.4
++++             */
++++            allowHalfOpen: boolean;
++++            constructor(opts?: DuplexOptions);
++++            /**
++++             * A utility method for creating duplex streams.
++++             *
++++             * - `Stream` converts writable stream into writable `Duplex` and readable stream
++++             *   to `Duplex`.
++++             * - `Blob` converts into readable `Duplex`.
++++             * - `string` converts into readable `Duplex`.
++++             * - `ArrayBuffer` converts into readable `Duplex`.
++++             * - `AsyncIterable` converts into a readable `Duplex`. Cannot yield `null`.
++++             * - `AsyncGeneratorFunction` converts into a readable/writable transform
++++             *   `Duplex`. Must take a source `AsyncIterable` as first parameter. Cannot yield
++++             *   `null`.
++++             * - `AsyncFunction` converts into a writable `Duplex`. Must return
++++             *   either `null` or `undefined`
++++             * - `Object ({ writable, readable })` converts `readable` and
++++             *   `writable` into `Stream` and then combines them into `Duplex` where the
++++             *   `Duplex` will write to the `writable` and read from the `readable`.
++++             * - `Promise` converts into readable `Duplex`. Value `null` is ignored.
++++             *
++++             * @since v16.8.0
++++             */
++++            static from(
++++                src:
++++                    | Stream
++++                    | NodeBlob
++++                    | ArrayBuffer
++++                    | string
++++                    | Iterable<any>
++++                    | AsyncIterable<any>
++++                    | AsyncGeneratorFunction
++++                    | Promise<any>
++++                    | Object,
++++            ): Duplex;
++++            _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
++++            _writev?(
++++                chunks: Array<{
++++                    chunk: any;
++++                    encoding: BufferEncoding;
++++                }>,
++++                callback: (error?: Error | null) => void,
++++            ): void;
++++            _destroy(error: Error | null, callback: (error?: Error | null) => void): void;
++++            _final(callback: (error?: Error | null) => void): void;
++++            write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
++++            write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
++++            setDefaultEncoding(encoding: BufferEncoding): this;
++++            end(cb?: () => void): this;
++++            end(chunk: any, cb?: () => void): this;
++++            end(chunk: any, encoding?: BufferEncoding, cb?: () => void): this;
++++            cork(): void;
++++            uncork(): void;
++++            /**
++++             * A utility method for creating a web `ReadableStream` and `WritableStream` from a `Duplex`.
++++             * @since v17.0.0
++++             * @experimental
++++             */
++++            static toWeb(streamDuplex: Duplex): {
++++                readable: streamWeb.ReadableStream;
++++                writable: streamWeb.WritableStream;
++++            };
++++            /**
++++             * A utility method for creating a `Duplex` from a web `ReadableStream` and `WritableStream`.
++++             * @since v17.0.0
++++             * @experimental
++++             */
++++            static fromWeb(
++++                duplexStream: {
++++                    readable: streamWeb.ReadableStream;
++++                    writable: streamWeb.WritableStream;
++++                },
++++                options?: Pick<
++++                    DuplexOptions,
++++                    "allowHalfOpen" | "decodeStrings" | "encoding" | "highWaterMark" | "objectMode" | "signal"
++++                >,
++++            ): Duplex;
++++            /**
++++             * Event emitter
++++             * The defined events on documents including:
++++             * 1.  close
++++             * 2.  data
++++             * 3.  drain
++++             * 4.  end
++++             * 5.  error
++++             * 6.  finish
++++             * 7.  pause
++++             * 8.  pipe
++++             * 9.  readable
++++             * 10. resume
++++             * 11. unpipe
++++             */
++++            addListener(event: "close", listener: () => void): this;
++++            addListener(event: "data", listener: (chunk: any) => void): this;
++++            addListener(event: "drain", listener: () => void): this;
++++            addListener(event: "end", listener: () => void): this;
++++            addListener(event: "error", listener: (err: Error) => void): this;
++++            addListener(event: "finish", listener: () => void): this;
++++            addListener(event: "pause", listener: () => void): this;
++++            addListener(event: "pipe", listener: (src: Readable) => void): this;
++++            addListener(event: "readable", listener: () => void): this;
++++            addListener(event: "resume", listener: () => void): this;
++++            addListener(event: "unpipe", listener: (src: Readable) => void): this;
++++            addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++            emit(event: "close"): boolean;
++++            emit(event: "data", chunk: any): boolean;
++++            emit(event: "drain"): boolean;
++++            emit(event: "end"): boolean;
++++            emit(event: "error", err: Error): boolean;
++++            emit(event: "finish"): boolean;
++++            emit(event: "pause"): boolean;
++++            emit(event: "pipe", src: Readable): boolean;
++++            emit(event: "readable"): boolean;
++++            emit(event: "resume"): boolean;
++++            emit(event: "unpipe", src: Readable): boolean;
++++            emit(event: string | symbol, ...args: any[]): boolean;
++++            on(event: "close", listener: () => void): this;
++++            on(event: "data", listener: (chunk: any) => void): this;
++++            on(event: "drain", listener: () => void): this;
++++            on(event: "end", listener: () => void): this;
++++            on(event: "error", listener: (err: Error) => void): this;
++++            on(event: "finish", listener: () => void): this;
++++            on(event: "pause", listener: () => void): this;
++++            on(event: "pipe", listener: (src: Readable) => void): this;
++++            on(event: "readable", listener: () => void): this;
++++            on(event: "resume", listener: () => void): this;
++++            on(event: "unpipe", listener: (src: Readable) => void): this;
++++            on(event: string | symbol, listener: (...args: any[]) => void): this;
++++            once(event: "close", listener: () => void): this;
++++            once(event: "data", listener: (chunk: any) => void): this;
++++            once(event: "drain", listener: () => void): this;
++++            once(event: "end", listener: () => void): this;
++++            once(event: "error", listener: (err: Error) => void): this;
++++            once(event: "finish", listener: () => void): this;
++++            once(event: "pause", listener: () => void): this;
++++            once(event: "pipe", listener: (src: Readable) => void): this;
++++            once(event: "readable", listener: () => void): this;
++++            once(event: "resume", listener: () => void): this;
++++            once(event: "unpipe", listener: (src: Readable) => void): this;
++++            once(event: string | symbol, listener: (...args: any[]) => void): this;
++++            prependListener(event: "close", listener: () => void): this;
++++            prependListener(event: "data", listener: (chunk: any) => void): this;
++++            prependListener(event: "drain", listener: () => void): this;
++++            prependListener(event: "end", listener: () => void): this;
++++            prependListener(event: "error", listener: (err: Error) => void): this;
++++            prependListener(event: "finish", listener: () => void): this;
++++            prependListener(event: "pause", listener: () => void): this;
++++            prependListener(event: "pipe", listener: (src: Readable) => void): this;
++++            prependListener(event: "readable", listener: () => void): this;
++++            prependListener(event: "resume", listener: () => void): this;
++++            prependListener(event: "unpipe", listener: (src: Readable) => void): this;
++++            prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++            prependOnceListener(event: "close", listener: () => void): this;
++++            prependOnceListener(event: "data", listener: (chunk: any) => void): this;
++++            prependOnceListener(event: "drain", listener: () => void): this;
++++            prependOnceListener(event: "end", listener: () => void): this;
++++            prependOnceListener(event: "error", listener: (err: Error) => void): this;
++++            prependOnceListener(event: "finish", listener: () => void): this;
++++            prependOnceListener(event: "pause", listener: () => void): this;
++++            prependOnceListener(event: "pipe", listener: (src: Readable) => void): this;
++++            prependOnceListener(event: "readable", listener: () => void): this;
++++            prependOnceListener(event: "resume", listener: () => void): this;
++++            prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this;
++++            prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++            removeListener(event: "close", listener: () => void): this;
++++            removeListener(event: "data", listener: (chunk: any) => void): this;
++++            removeListener(event: "drain", listener: () => void): this;
++++            removeListener(event: "end", listener: () => void): this;
++++            removeListener(event: "error", listener: (err: Error) => void): this;
++++            removeListener(event: "finish", listener: () => void): this;
++++            removeListener(event: "pause", listener: () => void): this;
++++            removeListener(event: "pipe", listener: (src: Readable) => void): this;
++++            removeListener(event: "readable", listener: () => void): this;
++++            removeListener(event: "resume", listener: () => void): this;
++++            removeListener(event: "unpipe", listener: (src: Readable) => void): this;
++++            removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        }
++++        /**
++++         * The utility function `duplexPair` returns an Array with two items,
++++         * each being a `Duplex` stream connected to the other side:
++++         *
++++         * ```js
++++         * const [ sideA, sideB ] = duplexPair();
++++         * ```
++++         *
++++         * Whatever is written to one stream is made readable on the other. It provides
++++         * behavior analogous to a network connection, where the data written by the client
++++         * becomes readable by the server, and vice-versa.
++++         *
++++         * The Duplex streams are symmetrical; one or the other may be used without any
++++         * difference in behavior.
++++         * @param options A value to pass to both {@link Duplex} constructors,
++++         * to set options such as buffering.
++++         * @since v20.17.0
++++         */
++++        function duplexPair(options?: DuplexOptions): [Duplex, Duplex];
++++        type TransformCallback = (error?: Error | null, data?: any) => void;
++++        interface TransformOptions extends DuplexOptions {
++++            construct?(this: Transform, callback: (error?: Error | null) => void): void;
++++            read?(this: Transform, size: number): void;
++++            write?(
++++                this: Transform,
++++                chunk: any,
++++                encoding: BufferEncoding,
++++                callback: (error?: Error | null) => void,
++++            ): void;
++++            writev?(
++++                this: Transform,
++++                chunks: Array<{
++++                    chunk: any;
++++                    encoding: BufferEncoding;
++++                }>,
++++                callback: (error?: Error | null) => void,
++++            ): void;
++++            final?(this: Transform, callback: (error?: Error | null) => void): void;
++++            destroy?(this: Transform, error: Error | null, callback: (error?: Error | null) => void): void;
++++            transform?(this: Transform, chunk: any, encoding: BufferEncoding, callback: TransformCallback): void;
++++            flush?(this: Transform, callback: TransformCallback): void;
++++        }
++++        /**
++++         * Transform streams are `Duplex` streams where the output is in some way
++++         * related to the input. Like all `Duplex` streams, `Transform` streams
++++         * implement both the `Readable` and `Writable` interfaces.
++++         *
++++         * Examples of `Transform` streams include:
++++         *
++++         * * `zlib streams`
++++         * * `crypto streams`
++++         * @since v0.9.4
++++         */
++++        class Transform extends Duplex {
++++            constructor(opts?: TransformOptions);
++++            _transform(chunk: any, encoding: BufferEncoding, callback: TransformCallback): void;
++++            _flush(callback: TransformCallback): void;
++++        }
++++        /**
++++         * The `stream.PassThrough` class is a trivial implementation of a `Transform` stream that simply passes the input bytes across to the output. Its purpose is
++++         * primarily for examples and testing, but there are some use cases where `stream.PassThrough` is useful as a building block for novel sorts of streams.
++++         */
++++        class PassThrough extends Transform {}
++++        /**
++++         * A stream to attach a signal to.
++++         *
++++         * Attaches an AbortSignal to a readable or writeable stream. This lets code
++++         * control stream destruction using an `AbortController`.
++++         *
++++         * Calling `abort` on the `AbortController` corresponding to the passed `AbortSignal` will behave the same way as calling `.destroy(new AbortError())` on the
++++         * stream, and `controller.error(new AbortError())` for webstreams.
++++         *
++++         * ```js
++++         * import fs from 'node:fs';
++++         *
++++         * const controller = new AbortController();
++++         * const read = addAbortSignal(
++++         *   controller.signal,
++++         *   fs.createReadStream(('object.json')),
++++         * );
++++         * // Later, abort the operation closing the stream
++++         * controller.abort();
++++         * ```
++++         *
++++         * Or using an `AbortSignal` with a readable stream as an async iterable:
++++         *
++++         * ```js
++++         * const controller = new AbortController();
++++         * setTimeout(() => controller.abort(), 10_000); // set a timeout
++++         * const stream = addAbortSignal(
++++         *   controller.signal,
++++         *   fs.createReadStream(('object.json')),
++++         * );
++++         * (async () => {
++++         *   try {
++++         *     for await (const chunk of stream) {
++++         *       await process(chunk);
++++         *     }
++++         *   } catch (e) {
++++         *     if (e.name === 'AbortError') {
++++         *       // The operation was cancelled
++++         *     } else {
++++         *       throw e;
++++         *     }
++++         *   }
++++         * })();
++++         * ```
++++         *
++++         * Or using an `AbortSignal` with a ReadableStream:
++++         *
++++         * ```js
++++         * const controller = new AbortController();
++++         * const rs = new ReadableStream({
++++         *   start(controller) {
++++         *     controller.enqueue('hello');
++++         *     controller.enqueue('world');
++++         *     controller.close();
++++         *   },
++++         * });
++++         *
++++         * addAbortSignal(controller.signal, rs);
++++         *
++++         * finished(rs, (err) => {
++++         *   if (err) {
++++         *     if (err.name === 'AbortError') {
++++         *       // The operation was cancelled
++++         *     }
++++         *   }
++++         * });
++++         *
++++         * const reader = rs.getReader();
++++         *
++++         * reader.read().then(({ value, done }) => {
++++         *   console.log(value); // hello
++++         *   console.log(done); // false
++++         *   controller.abort();
++++         * });
++++         * ```
++++         * @since v15.4.0
++++         * @param signal A signal representing possible cancellation
++++         * @param stream A stream to attach a signal to.
++++         */
++++        function addAbortSignal<T extends Stream>(signal: AbortSignal, stream: T): T;
++++        /**
++++         * Returns the default highWaterMark used by streams.
++++         * Defaults to `16384` (16 KiB), or `16` for `objectMode`.
++++         * @since v19.9.0
++++         */
++++        function getDefaultHighWaterMark(objectMode: boolean): number;
++++        /**
++++         * Sets the default highWaterMark used by streams.
++++         * @since v19.9.0
++++         * @param value highWaterMark value
++++         */
++++        function setDefaultHighWaterMark(objectMode: boolean, value: number): void;
++++        interface FinishedOptions extends Abortable {
++++            error?: boolean | undefined;
++++            readable?: boolean | undefined;
++++            writable?: boolean | undefined;
++++        }
++++        /**
++++         * A readable and/or writable stream/webstream.
++++         *
++++         * A function to get notified when a stream is no longer readable, writable
++++         * or has experienced an error or a premature close event.
++++         *
++++         * ```js
++++         * import { finished } from 'node:stream';
++++         * import fs from 'node:fs';
++++         *
++++         * const rs = fs.createReadStream('archive.tar');
++++         *
++++         * finished(rs, (err) => {
++++         *   if (err) {
++++         *     console.error('Stream failed.', err);
++++         *   } else {
++++         *     console.log('Stream is done reading.');
++++         *   }
++++         * });
++++         *
++++         * rs.resume(); // Drain the stream.
++++         * ```
++++         *
++++         * Especially useful in error handling scenarios where a stream is destroyed
++++         * prematurely (like an aborted HTTP request), and will not emit `'end'` or `'finish'`.
++++         *
++++         * The `finished` API provides [`promise version`](https://nodejs.org/docs/latest-v20.x/api/stream.html#streamfinishedstream-options).
++++         *
++++         * `stream.finished()` leaves dangling event listeners (in particular `'error'`, `'end'`, `'finish'` and `'close'`) after `callback` has been
++++         * invoked. The reason for this is so that unexpected `'error'` events (due to
++++         * incorrect stream implementations) do not cause unexpected crashes.
++++         * If this is unwanted behavior then the returned cleanup function needs to be
++++         * invoked in the callback:
++++         *
++++         * ```js
++++         * const cleanup = finished(rs, (err) => {
++++         *   cleanup();
++++         *   // ...
++++         * });
++++         * ```
++++         * @since v10.0.0
++++         * @param stream A readable and/or writable stream.
++++         * @param callback A callback function that takes an optional error argument.
++++         * @returns A cleanup function which removes all registered listeners.
++++         */
++++        function finished(
++++            stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream,
++++            options: FinishedOptions,
++++            callback: (err?: NodeJS.ErrnoException | null) => void,
++++        ): () => void;
++++        function finished(
++++            stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream,
++++            callback: (err?: NodeJS.ErrnoException | null) => void,
++++        ): () => void;
++++        namespace finished {
++++            function __promisify__(
++++                stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream,
++++                options?: FinishedOptions,
++++            ): Promise<void>;
++++        }
++++        type PipelineSourceFunction<T> = () => Iterable<T> | AsyncIterable<T>;
++++        type PipelineSource<T> = Iterable<T> | AsyncIterable<T> | NodeJS.ReadableStream | PipelineSourceFunction<T>;
++++        type PipelineTransform<S extends PipelineTransformSource<any>, U> =
++++            | NodeJS.ReadWriteStream
++++            | ((
++++                source: S extends (...args: any[]) => Iterable<infer ST> | AsyncIterable<infer ST> ? AsyncIterable<ST>
++++                    : S,
++++            ) => AsyncIterable<U>);
++++        type PipelineTransformSource<T> = PipelineSource<T> | PipelineTransform<any, T>;
++++        type PipelineDestinationIterableFunction<T> = (source: AsyncIterable<T>) => AsyncIterable<any>;
++++        type PipelineDestinationPromiseFunction<T, P> = (source: AsyncIterable<T>) => Promise<P>;
++++        type PipelineDestination<S extends PipelineTransformSource<any>, P> = S extends
++++            PipelineTransformSource<infer ST> ?
++++                | NodeJS.WritableStream
++++                | PipelineDestinationIterableFunction<ST>
++++                | PipelineDestinationPromiseFunction<ST, P>
++++            : never;
++++        type PipelineCallback<S extends PipelineDestination<any, any>> = S extends
++++            PipelineDestinationPromiseFunction<any, infer P> ? (err: NodeJS.ErrnoException | null, value: P) => void
++++            : (err: NodeJS.ErrnoException | null) => void;
++++        type PipelinePromise<S extends PipelineDestination<any, any>> = S extends
++++            PipelineDestinationPromiseFunction<any, infer P> ? Promise<P> : Promise<void>;
++++        interface PipelineOptions {
++++            signal?: AbortSignal | undefined;
++++            end?: boolean | undefined;
++++        }
++++        /**
++++         * A module method to pipe between streams and generators forwarding errors and
++++         * properly cleaning up and provide a callback when the pipeline is complete.
++++         *
++++         * ```js
++++         * import { pipeline } from 'node:stream';
++++         * import fs from 'node:fs';
++++         * import zlib from 'node:zlib';
++++         *
++++         * // Use the pipeline API to easily pipe a series of streams
++++         * // together and get notified when the pipeline is fully done.
++++         *
++++         * // A pipeline to gzip a potentially huge tar file efficiently:
++++         *
++++         * pipeline(
++++         *   fs.createReadStream('archive.tar'),
++++         *   zlib.createGzip(),
++++         *   fs.createWriteStream('archive.tar.gz'),
++++         *   (err) => {
++++         *     if (err) {
++++         *       console.error('Pipeline failed.', err);
++++         *     } else {
++++         *       console.log('Pipeline succeeded.');
++++         *     }
++++         *   },
++++         * );
++++         * ```
++++         *
++++         * The `pipeline` API provides a [`promise version`](https://nodejs.org/docs/latest-v20.x/api/stream.html#streampipelinesource-transforms-destination-options).
++++         *
++++         * `stream.pipeline()` will call `stream.destroy(err)` on all streams except:
++++         *
++++         * * `Readable` streams which have emitted `'end'` or `'close'`.
++++         * * `Writable` streams which have emitted `'finish'` or `'close'`.
++++         *
++++         * `stream.pipeline()` leaves dangling event listeners on the streams
++++         * after the `callback` has been invoked. In the case of reuse of streams after
++++         * failure, this can cause event listener leaks and swallowed errors. If the last
++++         * stream is readable, dangling event listeners will be removed so that the last
++++         * stream can be consumed later.
++++         *
++++         * `stream.pipeline()` closes all the streams when an error is raised.
++++         * The `IncomingRequest` usage with `pipeline` could lead to an unexpected behavior
++++         * once it would destroy the socket without sending the expected response.
++++         * See the example below:
++++         *
++++         * ```js
++++         * import fs from 'node:fs';
++++         * import http from 'node:http';
++++         * import { pipeline } from 'node:stream';
++++         *
++++         * const server = http.createServer((req, res) => {
++++         *   const fileStream = fs.createReadStream('./fileNotExist.txt');
++++         *   pipeline(fileStream, res, (err) => {
++++         *     if (err) {
++++         *       console.log(err); // No such file
++++         *       // this message can't be sent once `pipeline` already destroyed the socket
++++         *       return res.end('error!!!');
++++         *     }
++++         *   });
++++         * });
++++         * ```
++++         * @since v10.0.0
++++         * @param callback Called when the pipeline is fully done.
++++         */
++++        function pipeline<A extends PipelineSource<any>, B extends PipelineDestination<A, any>>(
++++            source: A,
++++            destination: B,
++++            callback: PipelineCallback<B>,
++++        ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
++++        function pipeline<
++++            A extends PipelineSource<any>,
++++            T1 extends PipelineTransform<A, any>,
++++            B extends PipelineDestination<T1, any>,
++++        >(
++++            source: A,
++++            transform1: T1,
++++            destination: B,
++++            callback: PipelineCallback<B>,
++++        ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
++++        function pipeline<
++++            A extends PipelineSource<any>,
++++            T1 extends PipelineTransform<A, any>,
++++            T2 extends PipelineTransform<T1, any>,
++++            B extends PipelineDestination<T2, any>,
++++        >(
++++            source: A,
++++            transform1: T1,
++++            transform2: T2,
++++            destination: B,
++++            callback: PipelineCallback<B>,
++++        ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
++++        function pipeline<
++++            A extends PipelineSource<any>,
++++            T1 extends PipelineTransform<A, any>,
++++            T2 extends PipelineTransform<T1, any>,
++++            T3 extends PipelineTransform<T2, any>,
++++            B extends PipelineDestination<T3, any>,
++++        >(
++++            source: A,
++++            transform1: T1,
++++            transform2: T2,
++++            transform3: T3,
++++            destination: B,
++++            callback: PipelineCallback<B>,
++++        ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
++++        function pipeline<
++++            A extends PipelineSource<any>,
++++            T1 extends PipelineTransform<A, any>,
++++            T2 extends PipelineTransform<T1, any>,
++++            T3 extends PipelineTransform<T2, any>,
++++            T4 extends PipelineTransform<T3, any>,
++++            B extends PipelineDestination<T4, any>,
++++        >(
++++            source: A,
++++            transform1: T1,
++++            transform2: T2,
++++            transform3: T3,
++++            transform4: T4,
++++            destination: B,
++++            callback: PipelineCallback<B>,
++++        ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
++++        function pipeline(
++++            streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
++++            callback: (err: NodeJS.ErrnoException | null) => void,
++++        ): NodeJS.WritableStream;
++++        function pipeline(
++++            stream1: NodeJS.ReadableStream,
++++            stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
++++            ...streams: Array<
++++                NodeJS.ReadWriteStream | NodeJS.WritableStream | ((err: NodeJS.ErrnoException | null) => void)
++++            >
++++        ): NodeJS.WritableStream;
++++        namespace pipeline {
++++            function __promisify__<A extends PipelineSource<any>, B extends PipelineDestination<A, any>>(
++++                source: A,
++++                destination: B,
++++                options?: PipelineOptions,
++++            ): PipelinePromise<B>;
++++            function __promisify__<
++++                A extends PipelineSource<any>,
++++                T1 extends PipelineTransform<A, any>,
++++                B extends PipelineDestination<T1, any>,
++++            >(
++++                source: A,
++++                transform1: T1,
++++                destination: B,
++++                options?: PipelineOptions,
++++            ): PipelinePromise<B>;
++++            function __promisify__<
++++                A extends PipelineSource<any>,
++++                T1 extends PipelineTransform<A, any>,
++++                T2 extends PipelineTransform<T1, any>,
++++                B extends PipelineDestination<T2, any>,
++++            >(
++++                source: A,
++++                transform1: T1,
++++                transform2: T2,
++++                destination: B,
++++                options?: PipelineOptions,
++++            ): PipelinePromise<B>;
++++            function __promisify__<
++++                A extends PipelineSource<any>,
++++                T1 extends PipelineTransform<A, any>,
++++                T2 extends PipelineTransform<T1, any>,
++++                T3 extends PipelineTransform<T2, any>,
++++                B extends PipelineDestination<T3, any>,
++++            >(
++++                source: A,
++++                transform1: T1,
++++                transform2: T2,
++++                transform3: T3,
++++                destination: B,
++++                options?: PipelineOptions,
++++            ): PipelinePromise<B>;
++++            function __promisify__<
++++                A extends PipelineSource<any>,
++++                T1 extends PipelineTransform<A, any>,
++++                T2 extends PipelineTransform<T1, any>,
++++                T3 extends PipelineTransform<T2, any>,
++++                T4 extends PipelineTransform<T3, any>,
++++                B extends PipelineDestination<T4, any>,
++++            >(
++++                source: A,
++++                transform1: T1,
++++                transform2: T2,
++++                transform3: T3,
++++                transform4: T4,
++++                destination: B,
++++                options?: PipelineOptions,
++++            ): PipelinePromise<B>;
++++            function __promisify__(
++++                streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
++++                options?: PipelineOptions,
++++            ): Promise<void>;
++++            function __promisify__(
++++                stream1: NodeJS.ReadableStream,
++++                stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
++++                ...streams: Array<NodeJS.ReadWriteStream | NodeJS.WritableStream | PipelineOptions>
++++            ): Promise<void>;
++++        }
++++        interface Pipe {
++++            close(): void;
++++            hasRef(): boolean;
++++            ref(): void;
++++            unref(): void;
++++        }
++++        /**
++++         * Returns whether the stream has encountered an error.
++++         * @since v17.3.0, v16.14.0
++++         * @experimental
++++         */
++++        function isErrored(stream: Readable | Writable | NodeJS.ReadableStream | NodeJS.WritableStream): boolean;
++++        /**
++++         * Returns whether the stream is readable.
++++         * @since v17.4.0, v16.14.0
++++         * @experimental
++++         */
++++        function isReadable(stream: Readable | NodeJS.ReadableStream): boolean;
++++        const promises: typeof streamPromises;
++++        const consumers: typeof streamConsumers;
++++    }
++++    export = internal;
++++}
++++declare module "node:stream" {
++++    import stream = require("stream");
++++    export = stream;
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5ad9cbab98829fd66db9effa031b885647ba251c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,12 @@@@@
++++declare module "stream/consumers" {
++++    import { Blob as NodeBlob } from "node:buffer";
++++    import { Readable } from "node:stream";
++++    function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<Buffer>;
++++    function text(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<string>;
++++    function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<ArrayBuffer>;
++++    function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<NodeBlob>;
++++    function json(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<unknown>;
++++}
++++declare module "node:stream/consumers" {
++++    export * from "stream/consumers";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..d54c14c60fa3590259439e2d02b995710966a664
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,90 @@@@@
++++declare module "stream/promises" {
++++    import {
++++        FinishedOptions as _FinishedOptions,
++++        PipelineDestination,
++++        PipelineOptions,
++++        PipelinePromise,
++++        PipelineSource,
++++        PipelineTransform,
++++    } from "node:stream";
++++    interface FinishedOptions extends _FinishedOptions {
++++        /**
++++         * If true, removes the listeners registered by this function before the promise is fulfilled.
++++         * @default false
++++         */
++++        cleanup?: boolean | undefined;
++++    }
++++    function finished(
++++        stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream,
++++        options?: FinishedOptions,
++++    ): Promise<void>;
++++    function pipeline<A extends PipelineSource<any>, B extends PipelineDestination<A, any>>(
++++        source: A,
++++        destination: B,
++++        options?: PipelineOptions,
++++    ): PipelinePromise<B>;
++++    function pipeline<
++++        A extends PipelineSource<any>,
++++        T1 extends PipelineTransform<A, any>,
++++        B extends PipelineDestination<T1, any>,
++++    >(
++++        source: A,
++++        transform1: T1,
++++        destination: B,
++++        options?: PipelineOptions,
++++    ): PipelinePromise<B>;
++++    function pipeline<
++++        A extends PipelineSource<any>,
++++        T1 extends PipelineTransform<A, any>,
++++        T2 extends PipelineTransform<T1, any>,
++++        B extends PipelineDestination<T2, any>,
++++    >(
++++        source: A,
++++        transform1: T1,
++++        transform2: T2,
++++        destination: B,
++++        options?: PipelineOptions,
++++    ): PipelinePromise<B>;
++++    function pipeline<
++++        A extends PipelineSource<any>,
++++        T1 extends PipelineTransform<A, any>,
++++        T2 extends PipelineTransform<T1, any>,
++++        T3 extends PipelineTransform<T2, any>,
++++        B extends PipelineDestination<T3, any>,
++++    >(
++++        source: A,
++++        transform1: T1,
++++        transform2: T2,
++++        transform3: T3,
++++        destination: B,
++++        options?: PipelineOptions,
++++    ): PipelinePromise<B>;
++++    function pipeline<
++++        A extends PipelineSource<any>,
++++        T1 extends PipelineTransform<A, any>,
++++        T2 extends PipelineTransform<T1, any>,
++++        T3 extends PipelineTransform<T2, any>,
++++        T4 extends PipelineTransform<T3, any>,
++++        B extends PipelineDestination<T4, any>,
++++    >(
++++        source: A,
++++        transform1: T1,
++++        transform2: T2,
++++        transform3: T3,
++++        transform4: T4,
++++        destination: B,
++++        options?: PipelineOptions,
++++    ): PipelinePromise<B>;
++++    function pipeline(
++++        streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
++++        options?: PipelineOptions,
++++    ): Promise<void>;
++++    function pipeline(
++++        stream1: NodeJS.ReadableStream,
++++        stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
++++        ...streams: Array<NodeJS.ReadWriteStream | NodeJS.WritableStream | PipelineOptions>
++++    ): Promise<void>;
++++}
++++declare module "node:stream/promises" {
++++    export * from "stream/promises";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a43ea93cf7e140f8d963a5d63087d4507528c1e5
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,524 @@@@@
++++type _ByteLengthQueuingStrategy = typeof globalThis extends { onmessage: any } ? {}
++++    : import("stream/web").ByteLengthQueuingStrategy;
++++type _CompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {}
++++    : import("stream/web").CompressionStream;
++++type _CountQueuingStrategy = typeof globalThis extends { onmessage: any } ? {}
++++    : import("stream/web").CountQueuingStrategy;
++++type _DecompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {}
++++    : import("stream/web").DecompressionStream;
++++type _ReadableByteStreamController = typeof globalThis extends { onmessage: any } ? {}
++++    : import("stream/web").ReadableByteStreamController;
++++type _ReadableStream<R = any> = typeof globalThis extends { onmessage: any } ? {}
++++    : import("stream/web").ReadableStream<R>;
++++type _ReadableStreamBYOBReader = typeof globalThis extends { onmessage: any } ? {}
++++    : import("stream/web").ReadableStreamBYOBReader;
++++type _ReadableStreamBYOBRequest = typeof globalThis extends { onmessage: any } ? {}
++++    : import("stream/web").ReadableStreamBYOBRequest;
++++type _ReadableStreamDefaultController<R = any> = typeof globalThis extends { onmessage: any } ? {}
++++    : import("stream/web").ReadableStreamDefaultController<R>;
++++type _ReadableStreamDefaultReader<R = any> = typeof globalThis extends { onmessage: any } ? {}
++++    : import("stream/web").ReadableStreamDefaultReader<R>;
++++type _TextDecoderStream = typeof globalThis extends { onmessage: any } ? {}
++++    : import("stream/web").TextDecoderStream;
++++type _TextEncoderStream = typeof globalThis extends { onmessage: any } ? {}
++++    : import("stream/web").TextEncoderStream;
++++type _TransformStream<I = any, O = any> = typeof globalThis extends { onmessage: any } ? {}
++++    : import("stream/web").TransformStream<I, O>;
++++type _TransformStreamDefaultController<O = any> = typeof globalThis extends { onmessage: any } ? {}
++++    : import("stream/web").TransformStreamDefaultController<O>;
++++type _WritableStream<W = any> = typeof globalThis extends { onmessage: any } ? {}
++++    : import("stream/web").WritableStream<W>;
++++type _WritableStreamDefaultController = typeof globalThis extends { onmessage: any } ? {}
++++    : import("stream/web").WritableStreamDefaultController;
++++type _WritableStreamDefaultWriter<W = any> = typeof globalThis extends { onmessage: any } ? {}
++++    : import("stream/web").WritableStreamDefaultWriter<W>;
++++
++++declare module "stream/web" {
++++    // stub module, pending copy&paste from .d.ts or manual impl
++++    // copy from lib.dom.d.ts
++++    interface ReadableWritablePair<R = any, W = any> {
++++        readable: ReadableStream<R>;
++++        /**
++++         * Provides a convenient, chainable way of piping this readable stream
++++         * through a transform stream (or any other { writable, readable }
++++         * pair). It simply pipes the stream into the writable side of the
++++         * supplied pair, and returns the readable side for further use.
++++         *
++++         * Piping a stream will lock it for the duration of the pipe, preventing
++++         * any other consumer from acquiring a reader.
++++         */
++++        writable: WritableStream<W>;
++++    }
++++    interface StreamPipeOptions {
++++        preventAbort?: boolean;
++++        preventCancel?: boolean;
++++        /**
++++         * Pipes this readable stream to a given writable stream destination.
++++         * The way in which the piping process behaves under various error
++++         * conditions can be customized with a number of passed options. It
++++         * returns a promise that fulfills when the piping process completes
++++         * successfully, or rejects if any errors were encountered.
++++         *
++++         * Piping a stream will lock it for the duration of the pipe, preventing
++++         * any other consumer from acquiring a reader.
++++         *
++++         * Errors and closures of the source and destination streams propagate
++++         * as follows:
++++         *
++++         * An error in this source readable stream will abort destination,
++++         * unless preventAbort is truthy. The returned promise will be rejected
++++         * with the source's error, or with any error that occurs during
++++         * aborting the destination.
++++         *
++++         * An error in destination will cancel this source readable stream,
++++         * unless preventCancel is truthy. The returned promise will be rejected
++++         * with the destination's error, or with any error that occurs during
++++         * canceling the source.
++++         *
++++         * When this source readable stream closes, destination will be closed,
++++         * unless preventClose is truthy. The returned promise will be fulfilled
++++         * once this process completes, unless an error is encountered while
++++         * closing the destination, in which case it will be rejected with that
++++         * error.
++++         *
++++         * If destination starts out closed or closing, this source readable
++++         * stream will be canceled, unless preventCancel is true. The returned
++++         * promise will be rejected with an error indicating piping to a closed
++++         * stream failed, or with any error that occurs during canceling the
++++         * source.
++++         *
++++         * The signal option can be set to an AbortSignal to allow aborting an
++++         * ongoing pipe operation via the corresponding AbortController. In this
++++         * case, this source readable stream will be canceled, and destination
++++         * aborted, unless the respective options preventCancel or preventAbort
++++         * are set.
++++         */
++++        preventClose?: boolean;
++++        signal?: AbortSignal;
++++    }
++++    interface ReadableStreamGenericReader {
++++        readonly closed: Promise<undefined>;
++++        cancel(reason?: any): Promise<void>;
++++    }
++++    type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
++++    interface ReadableStreamReadValueResult<T> {
++++        done: false;
++++        value: T;
++++    }
++++    interface ReadableStreamReadDoneResult<T> {
++++        done: true;
++++        value?: T;
++++    }
++++    type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
++++    interface ReadableByteStreamControllerCallback {
++++        (controller: ReadableByteStreamController): void | PromiseLike<void>;
++++    }
++++    interface UnderlyingSinkAbortCallback {
++++        (reason?: any): void | PromiseLike<void>;
++++    }
++++    interface UnderlyingSinkCloseCallback {
++++        (): void | PromiseLike<void>;
++++    }
++++    interface UnderlyingSinkStartCallback {
++++        (controller: WritableStreamDefaultController): any;
++++    }
++++    interface UnderlyingSinkWriteCallback<W> {
++++        (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
++++    }
++++    interface UnderlyingSourceCancelCallback {
++++        (reason?: any): void | PromiseLike<void>;
++++    }
++++    interface UnderlyingSourcePullCallback<R> {
++++        (controller: ReadableStreamController<R>): void | PromiseLike<void>;
++++    }
++++    interface UnderlyingSourceStartCallback<R> {
++++        (controller: ReadableStreamController<R>): any;
++++    }
++++    interface TransformerFlushCallback<O> {
++++        (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
++++    }
++++    interface TransformerStartCallback<O> {
++++        (controller: TransformStreamDefaultController<O>): any;
++++    }
++++    interface TransformerTransformCallback<I, O> {
++++        (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
++++    }
++++    interface UnderlyingByteSource {
++++        autoAllocateChunkSize?: number;
++++        cancel?: ReadableStreamErrorCallback;
++++        pull?: ReadableByteStreamControllerCallback;
++++        start?: ReadableByteStreamControllerCallback;
++++        type: "bytes";
++++    }
++++    interface UnderlyingSource<R = any> {
++++        cancel?: UnderlyingSourceCancelCallback;
++++        pull?: UnderlyingSourcePullCallback<R>;
++++        start?: UnderlyingSourceStartCallback<R>;
++++        type?: undefined;
++++    }
++++    interface UnderlyingSink<W = any> {
++++        abort?: UnderlyingSinkAbortCallback;
++++        close?: UnderlyingSinkCloseCallback;
++++        start?: UnderlyingSinkStartCallback;
++++        type?: undefined;
++++        write?: UnderlyingSinkWriteCallback<W>;
++++    }
++++    interface ReadableStreamErrorCallback {
++++        (reason: any): void | PromiseLike<void>;
++++    }
++++    interface ReadableStreamAsyncIterator<T> extends NodeJS.AsyncIterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
++++        [Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
++++    }
++++    /** This Streams API interface represents a readable stream of byte data. */
++++    interface ReadableStream<R = any> {
++++        readonly locked: boolean;
++++        cancel(reason?: any): Promise<void>;
++++        getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
++++        getReader(): ReadableStreamDefaultReader<R>;
++++        getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
++++        pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
++++        pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
++++        tee(): [ReadableStream<R>, ReadableStream<R>];
++++        values(options?: { preventCancel?: boolean }): ReadableStreamAsyncIterator<R>;
++++        [Symbol.asyncIterator](): ReadableStreamAsyncIterator<R>;
++++    }
++++    const ReadableStream: {
++++        prototype: ReadableStream;
++++        from<T>(iterable: Iterable<T> | AsyncIterable<T>): ReadableStream<T>;
++++        new(underlyingSource: UnderlyingByteSource, strategy?: QueuingStrategy<Uint8Array>): ReadableStream<Uint8Array>;
++++        new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
++++    };
++++    type ReadableStreamReaderMode = "byob";
++++    interface ReadableStreamGetReaderOptions {
++++        /**
++++         * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
++++         *
++++         * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
++++         */
++++        mode?: ReadableStreamReaderMode;
++++    }
++++    type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
++++    interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
++++        read(): Promise<ReadableStreamReadResult<R>>;
++++        releaseLock(): void;
++++    }
++++    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
++++    interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
++++        /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
++++        read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
++++        /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
++++        releaseLock(): void;
++++    }
++++    const ReadableStreamDefaultReader: {
++++        prototype: ReadableStreamDefaultReader;
++++        new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
++++    };
++++    const ReadableStreamBYOBReader: {
++++        prototype: ReadableStreamBYOBReader;
++++        new(stream: ReadableStream): ReadableStreamBYOBReader;
++++    };
++++    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
++++    interface ReadableStreamBYOBRequest {
++++        /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */
++++        readonly view: ArrayBufferView | null;
++++        /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */
++++        respond(bytesWritten: number): void;
++++        /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */
++++        respondWithNewView(view: ArrayBufferView): void;
++++    }
++++    const ReadableStreamBYOBRequest: {
++++        prototype: ReadableStreamBYOBRequest;
++++        new(): ReadableStreamBYOBRequest;
++++    };
++++    interface ReadableByteStreamController {
++++        readonly byobRequest: undefined;
++++        readonly desiredSize: number | null;
++++        close(): void;
++++        enqueue(chunk: ArrayBufferView): void;
++++        error(error?: any): void;
++++    }
++++    const ReadableByteStreamController: {
++++        prototype: ReadableByteStreamController;
++++        new(): ReadableByteStreamController;
++++    };
++++    interface ReadableStreamDefaultController<R = any> {
++++        readonly desiredSize: number | null;
++++        close(): void;
++++        enqueue(chunk?: R): void;
++++        error(e?: any): void;
++++    }
++++    const ReadableStreamDefaultController: {
++++        prototype: ReadableStreamDefaultController;
++++        new(): ReadableStreamDefaultController;
++++    };
++++    interface Transformer<I = any, O = any> {
++++        flush?: TransformerFlushCallback<O>;
++++        readableType?: undefined;
++++        start?: TransformerStartCallback<O>;
++++        transform?: TransformerTransformCallback<I, O>;
++++        writableType?: undefined;
++++    }
++++    interface TransformStream<I = any, O = any> {
++++        readonly readable: ReadableStream<O>;
++++        readonly writable: WritableStream<I>;
++++    }
++++    const TransformStream: {
++++        prototype: TransformStream;
++++        new<I = any, O = any>(
++++            transformer?: Transformer<I, O>,
++++            writableStrategy?: QueuingStrategy<I>,
++++            readableStrategy?: QueuingStrategy<O>,
++++        ): TransformStream<I, O>;
++++    };
++++    interface TransformStreamDefaultController<O = any> {
++++        readonly desiredSize: number | null;
++++        enqueue(chunk?: O): void;
++++        error(reason?: any): void;
++++        terminate(): void;
++++    }
++++    const TransformStreamDefaultController: {
++++        prototype: TransformStreamDefaultController;
++++        new(): TransformStreamDefaultController;
++++    };
++++    /**
++++     * This Streams API interface provides a standard abstraction for writing
++++     * streaming data to a destination, known as a sink. This object comes with
++++     * built-in back pressure and queuing.
++++     */
++++    interface WritableStream<W = any> {
++++        readonly locked: boolean;
++++        abort(reason?: any): Promise<void>;
++++        close(): Promise<void>;
++++        getWriter(): WritableStreamDefaultWriter<W>;
++++    }
++++    const WritableStream: {
++++        prototype: WritableStream;
++++        new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
++++    };
++++    /**
++++     * This Streams API interface is the object returned by
++++     * WritableStream.getWriter() and once created locks the < writer to the
++++     * WritableStream ensuring that no other streams can write to the underlying
++++     * sink.
++++     */
++++    interface WritableStreamDefaultWriter<W = any> {
++++        readonly closed: Promise<undefined>;
++++        readonly desiredSize: number | null;
++++        readonly ready: Promise<undefined>;
++++        abort(reason?: any): Promise<void>;
++++        close(): Promise<void>;
++++        releaseLock(): void;
++++        write(chunk?: W): Promise<void>;
++++    }
++++    const WritableStreamDefaultWriter: {
++++        prototype: WritableStreamDefaultWriter;
++++        new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
++++    };
++++    /**
++++     * This Streams API interface represents a controller allowing control of a
++++     * WritableStream's state. When constructing a WritableStream, the
++++     * underlying sink is given a corresponding WritableStreamDefaultController
++++     * instance to manipulate.
++++     */
++++    interface WritableStreamDefaultController {
++++        error(e?: any): void;
++++    }
++++    const WritableStreamDefaultController: {
++++        prototype: WritableStreamDefaultController;
++++        new(): WritableStreamDefaultController;
++++    };
++++    interface QueuingStrategy<T = any> {
++++        highWaterMark?: number;
++++        size?: QueuingStrategySize<T>;
++++    }
++++    interface QueuingStrategySize<T = any> {
++++        (chunk?: T): number;
++++    }
++++    interface QueuingStrategyInit {
++++        /**
++++         * Creates a new ByteLengthQueuingStrategy with the provided high water
++++         * mark.
++++         *
++++         * Note that the provided high water mark will not be validated ahead of
++++         * time. Instead, if it is negative, NaN, or not a number, the resulting
++++         * ByteLengthQueuingStrategy will cause the corresponding stream
++++         * constructor to throw.
++++         */
++++        highWaterMark: number;
++++    }
++++    /**
++++     * This Streams API interface provides a built-in byte length queuing
++++     * strategy that can be used when constructing streams.
++++     */
++++    interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
++++        readonly highWaterMark: number;
++++        readonly size: QueuingStrategySize<ArrayBufferView>;
++++    }
++++    const ByteLengthQueuingStrategy: {
++++        prototype: ByteLengthQueuingStrategy;
++++        new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
++++    };
++++    /**
++++     * This Streams API interface provides a built-in byte length queuing
++++     * strategy that can be used when constructing streams.
++++     */
++++    interface CountQueuingStrategy extends QueuingStrategy {
++++        readonly highWaterMark: number;
++++        readonly size: QueuingStrategySize;
++++    }
++++    const CountQueuingStrategy: {
++++        prototype: CountQueuingStrategy;
++++        new(init: QueuingStrategyInit): CountQueuingStrategy;
++++    };
++++    interface TextEncoderStream {
++++        /** Returns "utf-8". */
++++        readonly encoding: "utf-8";
++++        readonly readable: ReadableStream<Uint8Array>;
++++        readonly writable: WritableStream<string>;
++++        readonly [Symbol.toStringTag]: string;
++++    }
++++    const TextEncoderStream: {
++++        prototype: TextEncoderStream;
++++        new(): TextEncoderStream;
++++    };
++++    interface TextDecoderOptions {
++++        fatal?: boolean;
++++        ignoreBOM?: boolean;
++++    }
++++    type BufferSource = ArrayBufferView | ArrayBuffer;
++++    interface TextDecoderStream {
++++        /** Returns encoding's name, lower cased. */
++++        readonly encoding: string;
++++        /** Returns `true` if error mode is "fatal", and `false` otherwise. */
++++        readonly fatal: boolean;
++++        /** Returns `true` if ignore BOM flag is set, and `false` otherwise. */
++++        readonly ignoreBOM: boolean;
++++        readonly readable: ReadableStream<string>;
++++        readonly writable: WritableStream<BufferSource>;
++++        readonly [Symbol.toStringTag]: string;
++++    }
++++    const TextDecoderStream: {
++++        prototype: TextDecoderStream;
++++        new(encoding?: string, options?: TextDecoderOptions): TextDecoderStream;
++++    };
++++    interface CompressionStream {
++++        readonly readable: ReadableStream;
++++        readonly writable: WritableStream;
++++    }
++++    const CompressionStream: {
++++        prototype: CompressionStream;
++++        new(format: "deflate" | "deflate-raw" | "gzip"): CompressionStream;
++++    };
++++    interface DecompressionStream {
++++        readonly writable: WritableStream;
++++        readonly readable: ReadableStream;
++++    }
++++    const DecompressionStream: {
++++        prototype: DecompressionStream;
++++        new(format: "deflate" | "deflate-raw" | "gzip"): DecompressionStream;
++++    };
++++
++++    global {
++++        interface ByteLengthQueuingStrategy extends _ByteLengthQueuingStrategy {}
++++        var ByteLengthQueuingStrategy: typeof globalThis extends { onmessage: any; ByteLengthQueuingStrategy: infer T }
++++            ? T
++++            : typeof import("stream/web").ByteLengthQueuingStrategy;
++++
++++        interface CompressionStream extends _CompressionStream {}
++++        var CompressionStream: typeof globalThis extends {
++++            onmessage: any;
++++            // CompressionStream, DecompressionStream and ReportingObserver was introduced in the same commit.
++++            // If ReportingObserver check is removed, the type here will form a circular reference in TS5.0+lib.dom.d.ts
++++            ReportingObserver: any;
++++            CompressionStream: infer T;
++++        } ? T
++++            // TS 4.8, 4.9, 5.0
++++            : typeof globalThis extends { onmessage: any; TransformStream: { prototype: infer T } } ? {
++++                    prototype: T;
++++                    new(format: "deflate" | "deflate-raw" | "gzip"): T;
++++                }
++++            : typeof import("stream/web").CompressionStream;
++++
++++        interface CountQueuingStrategy extends _CountQueuingStrategy {}
++++        var CountQueuingStrategy: typeof globalThis extends { onmessage: any; CountQueuingStrategy: infer T } ? T
++++            : typeof import("stream/web").CountQueuingStrategy;
++++
++++        interface DecompressionStream extends _DecompressionStream {}
++++        var DecompressionStream: typeof globalThis extends {
++++            onmessage: any;
++++            // CompressionStream, DecompressionStream and ReportingObserver was introduced in the same commit.
++++            // If ReportingObserver check is removed, the type here will form a circular reference in TS5.0+lib.dom.d.ts
++++            ReportingObserver: any;
++++            DecompressionStream: infer T;
++++        } ? T
++++            // TS 4.8, 4.9, 5.0
++++            : typeof globalThis extends { onmessage: any; TransformStream: { prototype: infer T } } ? {
++++                    prototype: T;
++++                    new(format: "deflate" | "deflate-raw" | "gzip"): T;
++++                }
++++            : typeof import("stream/web").DecompressionStream;
++++
++++        interface ReadableByteStreamController extends _ReadableByteStreamController {}
++++        var ReadableByteStreamController: typeof globalThis extends
++++            { onmessage: any; ReadableByteStreamController: infer T } ? T
++++            : typeof import("stream/web").ReadableByteStreamController;
++++
++++        interface ReadableStream<R = any> extends _ReadableStream<R> {}
++++        var ReadableStream: typeof globalThis extends { onmessage: any; ReadableStream: infer T } ? T
++++            : typeof import("stream/web").ReadableStream;
++++
++++        interface ReadableStreamBYOBReader extends _ReadableStreamBYOBReader {}
++++        var ReadableStreamBYOBReader: typeof globalThis extends { onmessage: any; ReadableStreamBYOBReader: infer T }
++++            ? T
++++            : typeof import("stream/web").ReadableStreamBYOBReader;
++++
++++        interface ReadableStreamBYOBRequest extends _ReadableStreamBYOBRequest {}
++++        var ReadableStreamBYOBRequest: typeof globalThis extends { onmessage: any; ReadableStreamBYOBRequest: infer T }
++++            ? T
++++            : typeof import("stream/web").ReadableStreamBYOBRequest;
++++
++++        interface ReadableStreamDefaultController<R = any> extends _ReadableStreamDefaultController<R> {}
++++        var ReadableStreamDefaultController: typeof globalThis extends
++++            { onmessage: any; ReadableStreamDefaultController: infer T } ? T
++++            : typeof import("stream/web").ReadableStreamDefaultController;
++++
++++        interface ReadableStreamDefaultReader<R = any> extends _ReadableStreamDefaultReader<R> {}
++++        var ReadableStreamDefaultReader: typeof globalThis extends
++++            { onmessage: any; ReadableStreamDefaultReader: infer T } ? T
++++            : typeof import("stream/web").ReadableStreamDefaultReader;
++++
++++        interface TextDecoderStream extends _TextDecoderStream {}
++++        var TextDecoderStream: typeof globalThis extends { onmessage: any; TextDecoderStream: infer T } ? T
++++            : typeof import("stream/web").TextDecoderStream;
++++
++++        interface TextEncoderStream extends _TextEncoderStream {}
++++        var TextEncoderStream: typeof globalThis extends { onmessage: any; TextEncoderStream: infer T } ? T
++++            : typeof import("stream/web").TextEncoderStream;
++++
++++        interface TransformStream<I = any, O = any> extends _TransformStream<I, O> {}
++++        var TransformStream: typeof globalThis extends { onmessage: any; TransformStream: infer T } ? T
++++            : typeof import("stream/web").TransformStream;
++++
++++        interface TransformStreamDefaultController<O = any> extends _TransformStreamDefaultController<O> {}
++++        var TransformStreamDefaultController: typeof globalThis extends
++++            { onmessage: any; TransformStreamDefaultController: infer T } ? T
++++            : typeof import("stream/web").TransformStreamDefaultController;
++++
++++        interface WritableStream<W = any> extends _WritableStream<W> {}
++++        var WritableStream: typeof globalThis extends { onmessage: any; WritableStream: infer T } ? T
++++            : typeof import("stream/web").WritableStream;
++++
++++        interface WritableStreamDefaultController extends _WritableStreamDefaultController {}
++++        var WritableStreamDefaultController: typeof globalThis extends
++++            { onmessage: any; WritableStreamDefaultController: infer T } ? T
++++            : typeof import("stream/web").WritableStreamDefaultController;
++++
++++        interface WritableStreamDefaultWriter<W = any> extends _WritableStreamDefaultWriter<W> {}
++++        var WritableStreamDefaultWriter: typeof globalThis extends
++++            { onmessage: any; WritableStreamDefaultWriter: infer T } ? T
++++            : typeof import("stream/web").WritableStreamDefaultWriter;
++++    }
++++}
++++declare module "node:stream/web" {
++++    export * from "stream/web";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4a366eef679e33bc332cb08624ab92ee6f2e60d8
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,67 @@@@@
++++/**
++++ * The `node:string_decoder` module provides an API for decoding `Buffer` objects
++++ * into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16
++++ * characters. It can be accessed using:
++++ *
++++ * ```js
++++ * import { StringDecoder } from 'node:string_decoder';
++++ * ```
++++ *
++++ * The following example shows the basic use of the `StringDecoder` class.
++++ *
++++ * ```js
++++ * import { StringDecoder } from 'node:string_decoder';
++++ * const decoder = new StringDecoder('utf8');
++++ *
++++ * const cent = Buffer.from([0xC2, 0xA2]);
++++ * console.log(decoder.write(cent)); // Prints: ¢
++++ *
++++ * const euro = Buffer.from([0xE2, 0x82, 0xAC]);
++++ * console.log(decoder.write(euro)); // Prints: €
++++ * ```
++++ *
++++ * When a `Buffer` instance is written to the `StringDecoder` instance, an
++++ * internal buffer is used to ensure that the decoded string does not contain
++++ * any incomplete multibyte characters. These are held in the buffer until the
++++ * next call to `stringDecoder.write()` or until `stringDecoder.end()` is called.
++++ *
++++ * In the following example, the three UTF-8 encoded bytes of the European Euro
++++ * symbol (`€`) are written over three separate operations:
++++ *
++++ * ```js
++++ * import { StringDecoder } from 'node:string_decoder';
++++ * const decoder = new StringDecoder('utf8');
++++ *
++++ * decoder.write(Buffer.from([0xE2]));
++++ * decoder.write(Buffer.from([0x82]));
++++ * console.log(decoder.end(Buffer.from([0xAC]))); // Prints: €
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/string_decoder.js)
++++ */
++++declare module "string_decoder" {
++++    class StringDecoder {
++++        constructor(encoding?: BufferEncoding);
++++        /**
++++         * Returns a decoded string, ensuring that any incomplete multibyte characters at
++++         * the end of the `Buffer`, or `TypedArray`, or `DataView` are omitted from the
++++         * returned string and stored in an internal buffer for the next call to `stringDecoder.write()` or `stringDecoder.end()`.
++++         * @since v0.1.99
++++         * @param buffer The bytes to decode.
++++         */
++++        write(buffer: string | Buffer | NodeJS.ArrayBufferView): string;
++++        /**
++++         * Returns any remaining input stored in the internal buffer as a string. Bytes
++++         * representing incomplete UTF-8 and UTF-16 characters will be replaced with
++++         * substitution characters appropriate for the character encoding.
++++         *
++++         * If the `buffer` argument is provided, one final call to `stringDecoder.write()` is performed before returning the remaining input.
++++         * After `end()` is called, the `stringDecoder` object can be reused for new input.
++++         * @since v0.9.3
++++         * @param buffer The bytes to decode.
++++         */
++++        end(buffer?: string | Buffer | NodeJS.ArrayBufferView): string;
++++    }
++++}
++++declare module "node:string_decoder" {
++++    export * from "string_decoder";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a877fa5f976de46888bd41cbe8ea9e749301ac0b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1938 @@@@@
++++/**
++++ * The `node:test` module facilitates the creation of JavaScript tests.
++++ * To access it:
++++ *
++++ * ```js
++++ * import test from 'node:test';
++++ * ```
++++ *
++++ * This module is only available under the `node:` scheme. The following will not
++++ * work:
++++ *
++++ * ```js
++++ * import test from 'test';
++++ * ```
++++ *
++++ * Tests created via the `test` module consist of a single function that is
++++ * processed in one of three ways:
++++ *
++++ * 1. A synchronous function that is considered failing if it throws an exception,
++++ * and is considered passing otherwise.
++++ * 2. A function that returns a `Promise` that is considered failing if the `Promise` rejects, and is considered passing if the `Promise` fulfills.
++++ * 3. A function that receives a callback function. If the callback receives any
++++ * truthy value as its first argument, the test is considered failing. If a
++++ * falsy value is passed as the first argument to the callback, the test is
++++ * considered passing. If the test function receives a callback function and
++++ * also returns a `Promise`, the test will fail.
++++ *
++++ * The following example illustrates how tests are written using the `test` module.
++++ *
++++ * ```js
++++ * test('synchronous passing test', (t) => {
++++ *   // This test passes because it does not throw an exception.
++++ *   assert.strictEqual(1, 1);
++++ * });
++++ *
++++ * test('synchronous failing test', (t) => {
++++ *   // This test fails because it throws an exception.
++++ *   assert.strictEqual(1, 2);
++++ * });
++++ *
++++ * test('asynchronous passing test', async (t) => {
++++ *   // This test passes because the Promise returned by the async
++++ *   // function is settled and not rejected.
++++ *   assert.strictEqual(1, 1);
++++ * });
++++ *
++++ * test('asynchronous failing test', async (t) => {
++++ *   // This test fails because the Promise returned by the async
++++ *   // function is rejected.
++++ *   assert.strictEqual(1, 2);
++++ * });
++++ *
++++ * test('failing test using Promises', (t) => {
++++ *   // Promises can be used directly as well.
++++ *   return new Promise((resolve, reject) => {
++++ *     setImmediate(() => {
++++ *       reject(new Error('this will cause the test to fail'));
++++ *     });
++++ *   });
++++ * });
++++ *
++++ * test('callback passing test', (t, done) => {
++++ *   // done() is the callback function. When the setImmediate() runs, it invokes
++++ *   // done() with no arguments.
++++ *   setImmediate(done);
++++ * });
++++ *
++++ * test('callback failing test', (t, done) => {
++++ *   // When the setImmediate() runs, done() is invoked with an Error object and
++++ *   // the test fails.
++++ *   setImmediate(() => {
++++ *     done(new Error('callback failure'));
++++ *   });
++++ * });
++++ * ```
++++ *
++++ * If any tests fail, the process exit code is set to `1`.
++++ * @since v18.0.0, v16.17.0
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/test.js)
++++ */
++++declare module "node:test" {
++++    import { Readable } from "node:stream";
++++    /**
++++     * **Note:** `shard` is used to horizontally parallelize test running across
++++     * machines or processes, ideal for large-scale executions across varied
++++     * environments. It's incompatible with `watch` mode, tailored for rapid
++++     * code iteration by automatically rerunning tests on file changes.
++++     *
++++     * ```js
++++     * import { tap } from 'node:test/reporters';
++++     * import { run } from 'node:test';
++++     * import process from 'node:process';
++++     * import path from 'node:path';
++++     *
++++     * run({ files: [path.resolve('./tests/test.js')] })
++++     *   .compose(tap)
++++     *   .pipe(process.stdout);
++++     * ```
++++     * @since v18.9.0, v16.19.0
++++     * @param options Configuration options for running tests.
++++     */
++++    function run(options?: RunOptions): TestsStream;
++++    /**
++++     * The `test()` function is the value imported from the `test` module. Each
++++     * invocation of this function results in reporting the test to the `TestsStream`.
++++     *
++++     * The `TestContext` object passed to the `fn` argument can be used to perform
++++     * actions related to the current test. Examples include skipping the test, adding
++++     * additional diagnostic information, or creating subtests.
++++     *
++++     * `test()` returns a `Promise` that fulfills once the test completes.
++++     * if `test()` is called within a suite, it fulfills immediately.
++++     * The return value can usually be discarded for top level tests.
++++     * However, the return value from subtests should be used to prevent the parent
++++     * test from finishing first and cancelling the subtest
++++     * as shown in the following example.
++++     *
++++     * ```js
++++     * test('top level test', async (t) => {
++++     *   // The setTimeout() in the following subtest would cause it to outlive its
++++     *   // parent test if 'await' is removed on the next line. Once the parent test
++++     *   // completes, it will cancel any outstanding subtests.
++++     *   await t.test('longer running subtest', async (t) => {
++++     *     return new Promise((resolve, reject) => {
++++     *       setTimeout(resolve, 1000);
++++     *     });
++++     *   });
++++     * });
++++     * ```
++++     *
++++     * The `timeout` option can be used to fail the test if it takes longer than `timeout` milliseconds to complete. However, it is not a reliable mechanism for
++++     * canceling tests because a running test might block the application thread and
++++     * thus prevent the scheduled cancellation.
++++     * @since v18.0.0, v16.17.0
++++     * @param name The name of the test, which is displayed when reporting test results.
++++     * Defaults to the `name` property of `fn`, or `'<anonymous>'` if `fn` does not have a name.
++++     * @param options Configuration options for the test.
++++     * @param fn The function under test. The first argument to this function is a {@link TestContext} object.
++++     * If the test uses callbacks, the callback function is passed as the second argument.
++++     * @return Fulfilled with `undefined` once the test completes, or immediately if the test runs within a suite.
++++     */
++++    function test(name?: string, fn?: TestFn): Promise<void>;
++++    function test(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
++++    function test(options?: TestOptions, fn?: TestFn): Promise<void>;
++++    function test(fn?: TestFn): Promise<void>;
++++    namespace test {
++++        export { after, afterEach, before, beforeEach, describe, it, mock, only, run, skip, suite, test, todo };
++++    }
++++    /**
++++     * The `suite()` function is imported from the `node:test` module.
++++     * @param name The name of the suite, which is displayed when reporting test results.
++++     * Defaults to the `name` property of `fn`, or `'<anonymous>'` if `fn` does not have a name.
++++     * @param options Configuration options for the suite. This supports the same options as {@link test}.
++++     * @param fn The suite function declaring nested tests and suites. The first argument to this function is a {@link SuiteContext} object.
++++     * @return Immediately fulfilled with `undefined`.
++++     * @since v20.13.0
++++     */
++++    function suite(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
++++    function suite(name?: string, fn?: SuiteFn): Promise<void>;
++++    function suite(options?: TestOptions, fn?: SuiteFn): Promise<void>;
++++    function suite(fn?: SuiteFn): Promise<void>;
++++    namespace suite {
++++        /**
++++         * Shorthand for skipping a suite. This is the same as calling {@link suite} with `options.skip` set to `true`.
++++         * @since v20.13.0
++++         */
++++        function skip(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
++++        function skip(name?: string, fn?: SuiteFn): Promise<void>;
++++        function skip(options?: TestOptions, fn?: SuiteFn): Promise<void>;
++++        function skip(fn?: SuiteFn): Promise<void>;
++++        /**
++++         * Shorthand for marking a suite as `TODO`. This is the same as calling {@link suite} with `options.todo` set to `true`.
++++         * @since v20.13.0
++++         */
++++        function todo(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
++++        function todo(name?: string, fn?: SuiteFn): Promise<void>;
++++        function todo(options?: TestOptions, fn?: SuiteFn): Promise<void>;
++++        function todo(fn?: SuiteFn): Promise<void>;
++++        /**
++++         * Shorthand for marking a suite as `only`. This is the same as calling {@link suite} with `options.only` set to `true`.
++++         * @since v20.13.0
++++         */
++++        function only(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
++++        function only(name?: string, fn?: SuiteFn): Promise<void>;
++++        function only(options?: TestOptions, fn?: SuiteFn): Promise<void>;
++++        function only(fn?: SuiteFn): Promise<void>;
++++    }
++++    /**
++++     * Alias for {@link suite}.
++++     *
++++     * The `describe()` function is imported from the `node:test` module.
++++     */
++++    function describe(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
++++    function describe(name?: string, fn?: SuiteFn): Promise<void>;
++++    function describe(options?: TestOptions, fn?: SuiteFn): Promise<void>;
++++    function describe(fn?: SuiteFn): Promise<void>;
++++    namespace describe {
++++        /**
++++         * Shorthand for skipping a suite. This is the same as calling {@link describe} with `options.skip` set to `true`.
++++         * @since v18.15.0
++++         */
++++        function skip(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
++++        function skip(name?: string, fn?: SuiteFn): Promise<void>;
++++        function skip(options?: TestOptions, fn?: SuiteFn): Promise<void>;
++++        function skip(fn?: SuiteFn): Promise<void>;
++++        /**
++++         * Shorthand for marking a suite as `TODO`. This is the same as calling {@link describe} with `options.todo` set to `true`.
++++         * @since v18.15.0
++++         */
++++        function todo(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
++++        function todo(name?: string, fn?: SuiteFn): Promise<void>;
++++        function todo(options?: TestOptions, fn?: SuiteFn): Promise<void>;
++++        function todo(fn?: SuiteFn): Promise<void>;
++++        /**
++++         * Shorthand for marking a suite as `only`. This is the same as calling {@link describe} with `options.only` set to `true`.
++++         * @since v18.15.0
++++         */
++++        function only(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
++++        function only(name?: string, fn?: SuiteFn): Promise<void>;
++++        function only(options?: TestOptions, fn?: SuiteFn): Promise<void>;
++++        function only(fn?: SuiteFn): Promise<void>;
++++    }
++++    /**
++++     * Alias for {@link test}.
++++     *
++++     * The `it()` function is imported from the `node:test` module.
++++     * @since v18.6.0, v16.17.0
++++     */
++++    function it(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
++++    function it(name?: string, fn?: TestFn): Promise<void>;
++++    function it(options?: TestOptions, fn?: TestFn): Promise<void>;
++++    function it(fn?: TestFn): Promise<void>;
++++    namespace it {
++++        /**
++++         * Shorthand for skipping a test. This is the same as calling {@link it} with `options.skip` set to `true`.
++++         */
++++        function skip(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
++++        function skip(name?: string, fn?: TestFn): Promise<void>;
++++        function skip(options?: TestOptions, fn?: TestFn): Promise<void>;
++++        function skip(fn?: TestFn): Promise<void>;
++++        /**
++++         * Shorthand for marking a test as `TODO`. This is the same as calling {@link it} with `options.todo` set to `true`.
++++         */
++++        function todo(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
++++        function todo(name?: string, fn?: TestFn): Promise<void>;
++++        function todo(options?: TestOptions, fn?: TestFn): Promise<void>;
++++        function todo(fn?: TestFn): Promise<void>;
++++        /**
++++         * Shorthand for marking a test as `only`. This is the same as calling {@link it} with `options.only` set to `true`.
++++         * @since v18.15.0
++++         */
++++        function only(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
++++        function only(name?: string, fn?: TestFn): Promise<void>;
++++        function only(options?: TestOptions, fn?: TestFn): Promise<void>;
++++        function only(fn?: TestFn): Promise<void>;
++++    }
++++    /**
++++     * Shorthand for skipping a test. This is the same as calling {@link test} with `options.skip` set to `true`.
++++     * @since v20.2.0
++++     */
++++    function skip(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
++++    function skip(name?: string, fn?: TestFn): Promise<void>;
++++    function skip(options?: TestOptions, fn?: TestFn): Promise<void>;
++++    function skip(fn?: TestFn): Promise<void>;
++++    /**
++++     * Shorthand for marking a test as `TODO`. This is the same as calling {@link test} with `options.todo` set to `true`.
++++     * @since v20.2.0
++++     */
++++    function todo(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
++++    function todo(name?: string, fn?: TestFn): Promise<void>;
++++    function todo(options?: TestOptions, fn?: TestFn): Promise<void>;
++++    function todo(fn?: TestFn): Promise<void>;
++++    /**
++++     * Shorthand for marking a test as `only`. This is the same as calling {@link test} with `options.only` set to `true`.
++++     * @since v20.2.0
++++     */
++++    function only(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
++++    function only(name?: string, fn?: TestFn): Promise<void>;
++++    function only(options?: TestOptions, fn?: TestFn): Promise<void>;
++++    function only(fn?: TestFn): Promise<void>;
++++    /**
++++     * The type of a function passed to {@link test}. The first argument to this function is a {@link TestContext} object.
++++     * If the test uses callbacks, the callback function is passed as the second argument.
++++     */
++++    type TestFn = (t: TestContext, done: (result?: any) => void) => void | Promise<void>;
++++    /**
++++     * The type of a suite test function. The argument to this function is a {@link SuiteContext} object.
++++     */
++++    type SuiteFn = (s: SuiteContext) => void | Promise<void>;
++++    interface TestShard {
++++        /**
++++         * A positive integer between 1 and `total` that specifies the index of the shard to run.
++++         */
++++        index: number;
++++        /**
++++         * A positive integer that specifies the total number of shards to split the test files to.
++++         */
++++        total: number;
++++    }
++++    interface RunOptions {
++++        /**
++++         * If a number is provided, then that many test processes would run in parallel, where each process corresponds to one test file.
++++         * If `true`, it would run `os.availableParallelism() - 1` test files in parallel. If `false`, it would only run one test file at a time.
++++         * @default false
++++         */
++++        concurrency?: number | boolean | undefined;
++++        /**
++++         * An array containing the list of files to run. If omitted, files are run according to the
++++         * [test runner execution model](https://nodejs.org/docs/latest-v20.x/api/test.html#test-runner-execution-model).
++++         */
++++        files?: readonly string[] | undefined;
++++        /**
++++         * Configures the test runner to exit the process once all known
++++         * tests have finished executing even if the event loop would
++++         * otherwise remain active.
++++         * @default false
++++         */
++++        forceExit?: boolean | undefined;
++++        /**
++++         * Sets inspector port of test child process.
++++         * If a nullish value is provided, each process gets its own port,
++++         * incremented from the primary's `process.debugPort`.
++++         * @default undefined
++++         */
++++        inspectPort?: number | (() => number) | undefined;
++++        /**
++++         * If truthy, the test context will only run tests that have the `only` option set
++++         */
++++        only?: boolean | undefined;
++++        /**
++++         * A function that accepts the `TestsStream` instance and can be used to setup listeners before any tests are run.
++++         * @default undefined
++++         */
++++        setup?: ((reporter: TestsStream) => void | Promise<void>) | undefined;
++++        /**
++++         * Allows aborting an in-progress test execution.
++++         */
++++        signal?: AbortSignal | undefined;
++++        /**
++++         * If provided, only run tests whose name matches the provided pattern.
++++         * Strings are interpreted as JavaScript regular expressions.
++++         * @default undefined
++++         */
++++        testNamePatterns?: string | RegExp | ReadonlyArray<string | RegExp> | undefined;
++++        /**
++++         * The number of milliseconds after which the test execution will fail.
++++         * If unspecified, subtests inherit this value from their parent.
++++         * @default Infinity
++++         */
++++        timeout?: number | undefined;
++++        /**
++++         * Whether to run in watch mode or not.
++++         * @default false
++++         */
++++        watch?: boolean | undefined;
++++        /**
++++         * Running tests in a specific shard.
++++         * @default undefined
++++         */
++++        shard?: TestShard | undefined;
++++    }
++++    /**
++++     * A successful call to `run()` will return a new `TestsStream` object, streaming a series of events representing the execution of the tests.
++++     *
++++     * Some of the events are guaranteed to be emitted in the same order as the tests are defined, while others are emitted in the order that the tests execute.
++++     * @since v18.9.0, v16.19.0
++++     */
++++    class TestsStream extends Readable implements NodeJS.ReadableStream {
++++        addListener(event: "test:coverage", listener: (data: TestCoverage) => void): this;
++++        addListener(event: "test:complete", listener: (data: TestComplete) => void): this;
++++        addListener(event: "test:dequeue", listener: (data: TestDequeue) => void): this;
++++        addListener(event: "test:diagnostic", listener: (data: DiagnosticData) => void): this;
++++        addListener(event: "test:enqueue", listener: (data: TestEnqueue) => void): this;
++++        addListener(event: "test:fail", listener: (data: TestFail) => void): this;
++++        addListener(event: "test:pass", listener: (data: TestPass) => void): this;
++++        addListener(event: "test:plan", listener: (data: TestPlan) => void): this;
++++        addListener(event: "test:start", listener: (data: TestStart) => void): this;
++++        addListener(event: "test:stderr", listener: (data: TestStderr) => void): this;
++++        addListener(event: "test:stdout", listener: (data: TestStdout) => void): this;
++++        addListener(event: "test:watch:drained", listener: () => void): this;
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        emit(event: "test:coverage", data: TestCoverage): boolean;
++++        emit(event: "test:complete", data: TestComplete): boolean;
++++        emit(event: "test:dequeue", data: TestDequeue): boolean;
++++        emit(event: "test:diagnostic", data: DiagnosticData): boolean;
++++        emit(event: "test:enqueue", data: TestEnqueue): boolean;
++++        emit(event: "test:fail", data: TestFail): boolean;
++++        emit(event: "test:pass", data: TestPass): boolean;
++++        emit(event: "test:plan", data: TestPlan): boolean;
++++        emit(event: "test:start", data: TestStart): boolean;
++++        emit(event: "test:stderr", data: TestStderr): boolean;
++++        emit(event: "test:stdout", data: TestStdout): boolean;
++++        emit(event: "test:watch:drained"): boolean;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        on(event: "test:coverage", listener: (data: TestCoverage) => void): this;
++++        on(event: "test:complete", listener: (data: TestComplete) => void): this;
++++        on(event: "test:dequeue", listener: (data: TestDequeue) => void): this;
++++        on(event: "test:diagnostic", listener: (data: DiagnosticData) => void): this;
++++        on(event: "test:enqueue", listener: (data: TestEnqueue) => void): this;
++++        on(event: "test:fail", listener: (data: TestFail) => void): this;
++++        on(event: "test:pass", listener: (data: TestPass) => void): this;
++++        on(event: "test:plan", listener: (data: TestPlan) => void): this;
++++        on(event: "test:start", listener: (data: TestStart) => void): this;
++++        on(event: "test:stderr", listener: (data: TestStderr) => void): this;
++++        on(event: "test:stdout", listener: (data: TestStdout) => void): this;
++++        on(event: "test:watch:drained", listener: () => void): this;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        once(event: "test:coverage", listener: (data: TestCoverage) => void): this;
++++        once(event: "test:complete", listener: (data: TestComplete) => void): this;
++++        once(event: "test:dequeue", listener: (data: TestDequeue) => void): this;
++++        once(event: "test:diagnostic", listener: (data: DiagnosticData) => void): this;
++++        once(event: "test:enqueue", listener: (data: TestEnqueue) => void): this;
++++        once(event: "test:fail", listener: (data: TestFail) => void): this;
++++        once(event: "test:pass", listener: (data: TestPass) => void): this;
++++        once(event: "test:plan", listener: (data: TestPlan) => void): this;
++++        once(event: "test:start", listener: (data: TestStart) => void): this;
++++        once(event: "test:stderr", listener: (data: TestStderr) => void): this;
++++        once(event: "test:stdout", listener: (data: TestStdout) => void): this;
++++        once(event: "test:watch:drained", listener: () => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        prependListener(event: "test:coverage", listener: (data: TestCoverage) => void): this;
++++        prependListener(event: "test:complete", listener: (data: TestComplete) => void): this;
++++        prependListener(event: "test:dequeue", listener: (data: TestDequeue) => void): this;
++++        prependListener(event: "test:diagnostic", listener: (data: DiagnosticData) => void): this;
++++        prependListener(event: "test:enqueue", listener: (data: TestEnqueue) => void): this;
++++        prependListener(event: "test:fail", listener: (data: TestFail) => void): this;
++++        prependListener(event: "test:pass", listener: (data: TestPass) => void): this;
++++        prependListener(event: "test:plan", listener: (data: TestPlan) => void): this;
++++        prependListener(event: "test:start", listener: (data: TestStart) => void): this;
++++        prependListener(event: "test:stderr", listener: (data: TestStderr) => void): this;
++++        prependListener(event: "test:stdout", listener: (data: TestStdout) => void): this;
++++        prependListener(event: "test:watch:drained", listener: () => void): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "test:coverage", listener: (data: TestCoverage) => void): this;
++++        prependOnceListener(event: "test:complete", listener: (data: TestComplete) => void): this;
++++        prependOnceListener(event: "test:dequeue", listener: (data: TestDequeue) => void): this;
++++        prependOnceListener(event: "test:diagnostic", listener: (data: DiagnosticData) => void): this;
++++        prependOnceListener(event: "test:enqueue", listener: (data: TestEnqueue) => void): this;
++++        prependOnceListener(event: "test:fail", listener: (data: TestFail) => void): this;
++++        prependOnceListener(event: "test:pass", listener: (data: TestPass) => void): this;
++++        prependOnceListener(event: "test:plan", listener: (data: TestPlan) => void): this;
++++        prependOnceListener(event: "test:start", listener: (data: TestStart) => void): this;
++++        prependOnceListener(event: "test:stderr", listener: (data: TestStderr) => void): this;
++++        prependOnceListener(event: "test:stdout", listener: (data: TestStdout) => void): this;
++++        prependOnceListener(event: "test:watch:drained", listener: () => void): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++    }
++++    /**
++++     * An instance of `TestContext` is passed to each test function in order to
++++     * interact with the test runner. However, the `TestContext` constructor is not
++++     * exposed as part of the API.
++++     * @since v18.0.0, v16.17.0
++++     */
++++    class TestContext {
++++        /**
++++         * An object containing assertion methods bound to the test context.
++++         * The top-level functions from the `node:assert` module are exposed here for the purpose of creating test plans.
++++         * @since v20.15.0
++++         */
++++        readonly assert: TestContextAssert;
++++        /**
++++         * This function is used to create a hook running before subtest of the current test.
++++         * @param fn The hook function. The first argument to this function is a `TestContext` object.
++++         * If the hook uses callbacks, the callback function is passed as the second argument.
++++         * @param options Configuration options for the hook.
++++         * @since v20.1.0, v18.17.0
++++         */
++++        before(fn?: TestContextHookFn, options?: HookOptions): void;
++++        /**
++++         * This function is used to create a hook running before each subtest of the current test.
++++         * @param fn The hook function. The first argument to this function is a `TestContext` object.
++++         * If the hook uses callbacks, the callback function is passed as the second argument.
++++         * @param options Configuration options for the hook.
++++         * @since v18.8.0
++++         */
++++        beforeEach(fn?: TestContextHookFn, options?: HookOptions): void;
++++        /**
++++         * This function is used to create a hook that runs after the current test finishes.
++++         * @param fn The hook function. The first argument to this function is a `TestContext` object.
++++         * If the hook uses callbacks, the callback function is passed as the second argument.
++++         * @param options Configuration options for the hook.
++++         * @since v18.13.0
++++         */
++++        after(fn?: TestContextHookFn, options?: HookOptions): void;
++++        /**
++++         * This function is used to create a hook running after each subtest of the current test.
++++         * @param fn The hook function. The first argument to this function is a `TestContext` object.
++++         * If the hook uses callbacks, the callback function is passed as the second argument.
++++         * @param options Configuration options for the hook.
++++         * @since v18.8.0
++++         */
++++        afterEach(fn?: TestContextHookFn, options?: HookOptions): void;
++++        /**
++++         * This function is used to write diagnostics to the output. Any diagnostic
++++         * information is included at the end of the test's results. This function does
++++         * not return a value.
++++         *
++++         * ```js
++++         * test('top level test', (t) => {
++++         *   t.diagnostic('A diagnostic message');
++++         * });
++++         * ```
++++         * @since v18.0.0, v16.17.0
++++         * @param message Message to be reported.
++++         */
++++        diagnostic(message: string): void;
++++        /**
++++         * The name of the test and each of its ancestors, separated by `>`.
++++         * @since v20.16.0
++++         */
++++        readonly fullName: string;
++++        /**
++++         * The name of the test.
++++         * @since v18.8.0, v16.18.0
++++         */
++++        readonly name: string;
++++        /**
++++         * Used to set the number of assertions and subtests that are expected to run within the test.
++++         * If the number of assertions and subtests that run does not match the expected count, the test will fail.
++++         *
++++         * To make sure assertions are tracked, the assert functions on `context.assert` must be used,
++++         * instead of importing from the `node:assert` module.
++++         * ```js
++++         * test('top level test', (t) => {
++++         *   t.plan(2);
++++         *   t.assert.ok('some relevant assertion here');
++++         *   t.test('subtest', () => {});
++++         * });
++++         * ```
++++         *
++++         * When working with asynchronous code, the `plan` function can be used to ensure that the correct number of assertions are run:
++++         * ```js
++++         * test('planning with streams', (t, done) => {
++++         *   function* generate() {
++++         *     yield 'a';
++++         *     yield 'b';
++++         *     yield 'c';
++++         *   }
++++         *   const expected = ['a', 'b', 'c'];
++++         *   t.plan(expected.length);
++++         *   const stream = Readable.from(generate());
++++         *   stream.on('data', (chunk) => {
++++         *     t.assert.strictEqual(chunk, expected.shift());
++++         *   });
++++         *   stream.on('end', () => {
++++         *     done();
++++         *   });
++++         * });
++++         * ```
++++         * @since v20.15.0
++++         */
++++        plan(count: number): void;
++++        /**
++++         * If `shouldRunOnlyTests` is truthy, the test context will only run tests that
++++         * have the `only` option set. Otherwise, all tests are run. If Node.js was not
++++         * started with the `--test-only` command-line option, this function is a
++++         * no-op.
++++         *
++++         * ```js
++++         * test('top level test', (t) => {
++++         *   // The test context can be set to run subtests with the 'only' option.
++++         *   t.runOnly(true);
++++         *   return Promise.all([
++++         *     t.test('this subtest is now skipped'),
++++         *     t.test('this subtest is run', { only: true }),
++++         *   ]);
++++         * });
++++         * ```
++++         * @since v18.0.0, v16.17.0
++++         * @param shouldRunOnlyTests Whether or not to run `only` tests.
++++         */
++++        runOnly(shouldRunOnlyTests: boolean): void;
++++        /**
++++         * ```js
++++         * test('top level test', async (t) => {
++++         *   await fetch('some/uri', { signal: t.signal });
++++         * });
++++         * ```
++++         * @since v18.7.0, v16.17.0
++++         */
++++        readonly signal: AbortSignal;
++++        /**
++++         * This function causes the test's output to indicate the test as skipped. If `message` is provided, it is included in the output. Calling `skip()` does
++++         * not terminate execution of the test function. This function does not return a
++++         * value.
++++         *
++++         * ```js
++++         * test('top level test', (t) => {
++++         *   // Make sure to return here as well if the test contains additional logic.
++++         *   t.skip('this is skipped');
++++         * });
++++         * ```
++++         * @since v18.0.0, v16.17.0
++++         * @param message Optional skip message.
++++         */
++++        skip(message?: string): void;
++++        /**
++++         * This function adds a `TODO` directive to the test's output. If `message` is
++++         * provided, it is included in the output. Calling `todo()` does not terminate
++++         * execution of the test function. This function does not return a value.
++++         *
++++         * ```js
++++         * test('top level test', (t) => {
++++         *   // This test is marked as `TODO`
++++         *   t.todo('this is a todo');
++++         * });
++++         * ```
++++         * @since v18.0.0, v16.17.0
++++         * @param message Optional `TODO` message.
++++         */
++++        todo(message?: string): void;
++++        /**
++++         * This function is used to create subtests under the current test. This function behaves in
++++         * the same fashion as the top level {@link test} function.
++++         * @since v18.0.0
++++         * @param name The name of the test, which is displayed when reporting test results.
++++         * Defaults to the `name` property of `fn`, or `'<anonymous>'` if `fn` does not have a name.
++++         * @param options Configuration options for the test.
++++         * @param fn The function under test. This first argument to this function is a {@link TestContext} object.
++++         * If the test uses callbacks, the callback function is passed as the second argument.
++++         * @returns A {@link Promise} resolved with `undefined` once the test completes.
++++         */
++++        test: typeof test;
++++        /**
++++         * Each test provides its own MockTracker instance.
++++         */
++++        readonly mock: MockTracker;
++++    }
++++    interface TestContextAssert {
++++        /**
++++         * Identical to the `deepEqual` function from the `node:assert` module, but bound to the test context.
++++         */
++++        deepEqual: typeof import("node:assert").deepEqual;
++++        /**
++++         * Identical to the `deepStrictEqual` function from the `node:assert` module, but bound to the test context.
++++         *
++++         * **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
++++         * type annotation, otherwise an error will be raised by the TypeScript compiler:
++++         * ```ts
++++         * import { test, type TestContext } from 'node:test';
++++         *
++++         * // The test function's context parameter must have a type annotation.
++++         * test('example', (t: TestContext) => {
++++         *   t.assert.deepStrictEqual(actual, expected);
++++         * });
++++         *
++++         * // Omitting the type annotation will result in a compilation error.
++++         * test('example', t => {
++++         *   t.assert.deepStrictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
++++         * });
++++         * ```
++++         */
++++        deepStrictEqual: typeof import("node:assert").deepStrictEqual;
++++        /**
++++         * Identical to the `doesNotMatch` function from the `node:assert` module, but bound to the test context.
++++         */
++++        doesNotMatch: typeof import("node:assert").doesNotMatch;
++++        /**
++++         * Identical to the `doesNotReject` function from the `node:assert` module, but bound to the test context.
++++         */
++++        doesNotReject: typeof import("node:assert").doesNotReject;
++++        /**
++++         * Identical to the `doesNotThrow` function from the `node:assert` module, but bound to the test context.
++++         */
++++        doesNotThrow: typeof import("node:assert").doesNotThrow;
++++        /**
++++         * Identical to the `equal` function from the `node:assert` module, but bound to the test context.
++++         */
++++        equal: typeof import("node:assert").equal;
++++        /**
++++         * Identical to the `fail` function from the `node:assert` module, but bound to the test context.
++++         */
++++        fail: typeof import("node:assert").fail;
++++        /**
++++         * Identical to the `ifError` function from the `node:assert` module, but bound to the test context.
++++         *
++++         * **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
++++         * type annotation, otherwise an error will be raised by the TypeScript compiler:
++++         * ```ts
++++         * import { test, type TestContext } from 'node:test';
++++         *
++++         * // The test function's context parameter must have a type annotation.
++++         * test('example', (t: TestContext) => {
++++         *   t.assert.ifError(err);
++++         * });
++++         *
++++         * // Omitting the type annotation will result in a compilation error.
++++         * test('example', t => {
++++         *   t.assert.ifError(err); // Error: 't' needs an explicit type annotation.
++++         * });
++++         * ```
++++         */
++++        ifError: typeof import("node:assert").ifError;
++++        /**
++++         * Identical to the `match` function from the `node:assert` module, but bound to the test context.
++++         */
++++        match: typeof import("node:assert").match;
++++        /**
++++         * Identical to the `notDeepEqual` function from the `node:assert` module, but bound to the test context.
++++         */
++++        notDeepEqual: typeof import("node:assert").notDeepEqual;
++++        /**
++++         * Identical to the `notDeepStrictEqual` function from the `node:assert` module, but bound to the test context.
++++         */
++++        notDeepStrictEqual: typeof import("node:assert").notDeepStrictEqual;
++++        /**
++++         * Identical to the `notEqual` function from the `node:assert` module, but bound to the test context.
++++         */
++++        notEqual: typeof import("node:assert").notEqual;
++++        /**
++++         * Identical to the `notStrictEqual` function from the `node:assert` module, but bound to the test context.
++++         */
++++        notStrictEqual: typeof import("node:assert").notStrictEqual;
++++        /**
++++         * Identical to the `ok` function from the `node:assert` module, but bound to the test context.
++++         *
++++         * **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
++++         * type annotation, otherwise an error will be raised by the TypeScript compiler:
++++         * ```ts
++++         * import { test, type TestContext } from 'node:test';
++++         *
++++         * // The test function's context parameter must have a type annotation.
++++         * test('example', (t: TestContext) => {
++++         *   t.assert.ok(condition);
++++         * });
++++         *
++++         * // Omitting the type annotation will result in a compilation error.
++++         * test('example', t => {
++++         *   t.assert.ok(condition)); // Error: 't' needs an explicit type annotation.
++++         * });
++++         * ```
++++         */
++++        ok: typeof import("node:assert").ok;
++++        /**
++++         * Identical to the `rejects` function from the `node:assert` module, but bound to the test context.
++++         */
++++        rejects: typeof import("node:assert").rejects;
++++        /**
++++         * Identical to the `strictEqual` function from the `node:assert` module, but bound to the test context.
++++         *
++++         * **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
++++         * type annotation, otherwise an error will be raised by the TypeScript compiler:
++++         * ```ts
++++         * import { test, type TestContext } from 'node:test';
++++         *
++++         * // The test function's context parameter must have a type annotation.
++++         * test('example', (t: TestContext) => {
++++         *   t.assert.strictEqual(actual, expected);
++++         * });
++++         *
++++         * // Omitting the type annotation will result in a compilation error.
++++         * test('example', t => {
++++         *   t.assert.strictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
++++         * });
++++         * ```
++++         */
++++        strictEqual: typeof import("node:assert").strictEqual;
++++        /**
++++         * Identical to the `throws` function from the `node:assert` module, but bound to the test context.
++++         */
++++        throws: typeof import("node:assert").throws;
++++    }
++++
++++    /**
++++     * An instance of `SuiteContext` is passed to each suite function in order to
++++     * interact with the test runner. However, the `SuiteContext` constructor is not
++++     * exposed as part of the API.
++++     * @since v18.7.0, v16.17.0
++++     */
++++    class SuiteContext {
++++        /**
++++         * The name of the suite.
++++         * @since v18.8.0, v16.18.0
++++         */
++++        readonly name: string;
++++        /**
++++         * Can be used to abort test subtasks when the test has been aborted.
++++         * @since v18.7.0, v16.17.0
++++         */
++++        readonly signal: AbortSignal;
++++    }
++++    interface TestOptions {
++++        /**
++++         * If a number is provided, then that many tests would run in parallel.
++++         * If truthy, it would run (number of cpu cores - 1) tests in parallel.
++++         * For subtests, it will be `Infinity` tests in parallel.
++++         * If falsy, it would only run one test at a time.
++++         * If unspecified, subtests inherit this value from their parent.
++++         * @default false
++++         */
++++        concurrency?: number | boolean | undefined;
++++        /**
++++         * If truthy, and the test context is configured to run `only` tests, then this test will be
++++         * run. Otherwise, the test is skipped.
++++         * @default false
++++         */
++++        only?: boolean | undefined;
++++        /**
++++         * Allows aborting an in-progress test.
++++         * @since v18.8.0
++++         */
++++        signal?: AbortSignal | undefined;
++++        /**
++++         * If truthy, the test is skipped. If a string is provided, that string is displayed in the
++++         * test results as the reason for skipping the test.
++++         * @default false
++++         */
++++        skip?: boolean | string | undefined;
++++        /**
++++         * A number of milliseconds the test will fail after. If unspecified, subtests inherit this
++++         * value from their parent.
++++         * @default Infinity
++++         * @since v18.7.0
++++         */
++++        timeout?: number | undefined;
++++        /**
++++         * If truthy, the test marked as `TODO`. If a string is provided, that string is displayed in
++++         * the test results as the reason why the test is `TODO`.
++++         * @default false
++++         */
++++        todo?: boolean | string | undefined;
++++        /**
++++         * The number of assertions and subtests expected to be run in the test.
++++         * If the number of assertions run in the test does not match the number
++++         * specified in the plan, the test will fail.
++++         * @default undefined
++++         * @since v20.15.0
++++         */
++++        plan?: number | undefined;
++++    }
++++    /**
++++     * This function creates a hook that runs before executing a suite.
++++     *
++++     * ```js
++++     * describe('tests', async () => {
++++     *   before(() => console.log('about to run some test'));
++++     *   it('is a subtest', () => {
++++     *     assert.ok('some relevant assertion here');
++++     *   });
++++     * });
++++     * ```
++++     * @since v18.8.0, v16.18.0
++++     * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument.
++++     * @param options Configuration options for the hook.
++++     */
++++    function before(fn?: HookFn, options?: HookOptions): void;
++++    /**
++++     * This function creates a hook that runs after executing a suite.
++++     *
++++     * ```js
++++     * describe('tests', async () => {
++++     *   after(() => console.log('finished running tests'));
++++     *   it('is a subtest', () => {
++++     *     assert.ok('some relevant assertion here');
++++     *   });
++++     * });
++++     * ```
++++     * @since v18.8.0, v16.18.0
++++     * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument.
++++     * @param options Configuration options for the hook.
++++     */
++++    function after(fn?: HookFn, options?: HookOptions): void;
++++    /**
++++     * This function creates a hook that runs before each test in the current suite.
++++     *
++++     * ```js
++++     * describe('tests', async () => {
++++     *   beforeEach(() => console.log('about to run a test'));
++++     *   it('is a subtest', () => {
++++     *     assert.ok('some relevant assertion here');
++++     *   });
++++     * });
++++     * ```
++++     * @since v18.8.0, v16.18.0
++++     * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument.
++++     * @param options Configuration options for the hook.
++++     */
++++    function beforeEach(fn?: HookFn, options?: HookOptions): void;
++++    /**
++++     * This function creates a hook that runs after each test in the current suite.
++++     * The `afterEach()` hook is run even if the test fails.
++++     *
++++     * ```js
++++     * describe('tests', async () => {
++++     *   afterEach(() => console.log('finished running a test'));
++++     *   it('is a subtest', () => {
++++     *     assert.ok('some relevant assertion here');
++++     *   });
++++     * });
++++     * ```
++++     * @since v18.8.0, v16.18.0
++++     * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument.
++++     * @param options Configuration options for the hook.
++++     */
++++    function afterEach(fn?: HookFn, options?: HookOptions): void;
++++    /**
++++     * The hook function. The first argument is the context in which the hook is called.
++++     * If the hook uses callbacks, the callback function is passed as the second argument.
++++     */
++++    type HookFn = (c: TestContext | SuiteContext, done: (result?: any) => void) => any;
++++    /**
++++     * The hook function. The first argument is a `TestContext` object.
++++     * If the hook uses callbacks, the callback function is passed as the second argument.
++++     */
++++    type TestContextHookFn = (t: TestContext, done: (result?: any) => void) => any;
++++    /**
++++     * Configuration options for hooks.
++++     * @since v18.8.0
++++     */
++++    interface HookOptions {
++++        /**
++++         * Allows aborting an in-progress hook.
++++         */
++++        signal?: AbortSignal | undefined;
++++        /**
++++         * A number of milliseconds the hook will fail after. If unspecified, subtests inherit this
++++         * value from their parent.
++++         * @default Infinity
++++         */
++++        timeout?: number | undefined;
++++    }
++++    interface MockFunctionOptions {
++++        /**
++++         * The number of times that the mock will use the behavior of `implementation`.
++++         * Once the mock function has been called `times` times,
++++         * it will automatically restore the behavior of `original`.
++++         * This value must be an integer greater than zero.
++++         * @default Infinity
++++         */
++++        times?: number | undefined;
++++    }
++++    interface MockMethodOptions extends MockFunctionOptions {
++++        /**
++++         * If `true`, `object[methodName]` is treated as a getter.
++++         * This option cannot be used with the `setter` option.
++++         */
++++        getter?: boolean | undefined;
++++        /**
++++         * If `true`, `object[methodName]` is treated as a setter.
++++         * This option cannot be used with the `getter` option.
++++         */
++++        setter?: boolean | undefined;
++++    }
++++    type Mock<F extends Function> = F & {
++++        mock: MockFunctionContext<F>;
++++    };
++++    type NoOpFunction = (...args: any[]) => undefined;
++++    type FunctionPropertyNames<T> = {
++++        [K in keyof T]: T[K] extends Function ? K : never;
++++    }[keyof T];
++++    /**
++++     * The `MockTracker` class is used to manage mocking functionality. The test runner
++++     * module provides a top level `mock` export which is a `MockTracker` instance.
++++     * Each test also provides its own `MockTracker` instance via the test context's `mock` property.
++++     * @since v19.1.0, v18.13.0
++++     */
++++    class MockTracker {
++++        /**
++++         * This function is used to create a mock function.
++++         *
++++         * The following example creates a mock function that increments a counter by one
++++         * on each invocation. The `times` option is used to modify the mock behavior such
++++         * that the first two invocations add two to the counter instead of one.
++++         *
++++         * ```js
++++         * test('mocks a counting function', (t) => {
++++         *   let cnt = 0;
++++         *
++++         *   function addOne() {
++++         *     cnt++;
++++         *     return cnt;
++++         *   }
++++         *
++++         *   function addTwo() {
++++         *     cnt += 2;
++++         *     return cnt;
++++         *   }
++++         *
++++         *   const fn = t.mock.fn(addOne, addTwo, { times: 2 });
++++         *
++++         *   assert.strictEqual(fn(), 2);
++++         *   assert.strictEqual(fn(), 4);
++++         *   assert.strictEqual(fn(), 5);
++++         *   assert.strictEqual(fn(), 6);
++++         * });
++++         * ```
++++         * @since v19.1.0, v18.13.0
++++         * @param original An optional function to create a mock on.
++++         * @param implementation An optional function used as the mock implementation for `original`. This is useful for creating mocks that exhibit one behavior for a specified number of calls and
++++         * then restore the behavior of `original`.
++++         * @param options Optional configuration options for the mock function.
++++         * @return The mocked function. The mocked function contains a special `mock` property, which is an instance of {@link MockFunctionContext}, and can be used for inspecting and changing the
++++         * behavior of the mocked function.
++++         */
++++        fn<F extends Function = NoOpFunction>(original?: F, options?: MockFunctionOptions): Mock<F>;
++++        fn<F extends Function = NoOpFunction, Implementation extends Function = F>(
++++            original?: F,
++++            implementation?: Implementation,
++++            options?: MockFunctionOptions,
++++        ): Mock<F | Implementation>;
++++        /**
++++         * This function is used to create a mock on an existing object method. The
++++         * following example demonstrates how a mock is created on an existing object
++++         * method.
++++         *
++++         * ```js
++++         * test('spies on an object method', (t) => {
++++         *   const number = {
++++         *     value: 5,
++++         *     subtract(a) {
++++         *       return this.value - a;
++++         *     },
++++         *   };
++++         *
++++         *   t.mock.method(number, 'subtract');
++++         *   assert.strictEqual(number.subtract.mock.calls.length, 0);
++++         *   assert.strictEqual(number.subtract(3), 2);
++++         *   assert.strictEqual(number.subtract.mock.calls.length, 1);
++++         *
++++         *   const call = number.subtract.mock.calls[0];
++++         *
++++         *   assert.deepStrictEqual(call.arguments, [3]);
++++         *   assert.strictEqual(call.result, 2);
++++         *   assert.strictEqual(call.error, undefined);
++++         *   assert.strictEqual(call.target, undefined);
++++         *   assert.strictEqual(call.this, number);
++++         * });
++++         * ```
++++         * @since v19.1.0, v18.13.0
++++         * @param object The object whose method is being mocked.
++++         * @param methodName The identifier of the method on `object` to mock. If `object[methodName]` is not a function, an error is thrown.
++++         * @param implementation An optional function used as the mock implementation for `object[methodName]`.
++++         * @param options Optional configuration options for the mock method.
++++         * @return The mocked method. The mocked method contains a special `mock` property, which is an instance of {@link MockFunctionContext}, and can be used for inspecting and changing the
++++         * behavior of the mocked method.
++++         */
++++        method<
++++            MockedObject extends object,
++++            MethodName extends FunctionPropertyNames<MockedObject>,
++++        >(
++++            object: MockedObject,
++++            methodName: MethodName,
++++            options?: MockFunctionOptions,
++++        ): MockedObject[MethodName] extends Function ? Mock<MockedObject[MethodName]>
++++            : never;
++++        method<
++++            MockedObject extends object,
++++            MethodName extends FunctionPropertyNames<MockedObject>,
++++            Implementation extends Function,
++++        >(
++++            object: MockedObject,
++++            methodName: MethodName,
++++            implementation: Implementation,
++++            options?: MockFunctionOptions,
++++        ): MockedObject[MethodName] extends Function ? Mock<MockedObject[MethodName] | Implementation>
++++            : never;
++++        method<MockedObject extends object>(
++++            object: MockedObject,
++++            methodName: keyof MockedObject,
++++            options: MockMethodOptions,
++++        ): Mock<Function>;
++++        method<MockedObject extends object>(
++++            object: MockedObject,
++++            methodName: keyof MockedObject,
++++            implementation: Function,
++++            options: MockMethodOptions,
++++        ): Mock<Function>;
++++
++++        /**
++++         * This function is syntax sugar for `MockTracker.method` with `options.getter` set to `true`.
++++         * @since v19.3.0, v18.13.0
++++         */
++++        getter<
++++            MockedObject extends object,
++++            MethodName extends keyof MockedObject,
++++        >(
++++            object: MockedObject,
++++            methodName: MethodName,
++++            options?: MockFunctionOptions,
++++        ): Mock<() => MockedObject[MethodName]>;
++++        getter<
++++            MockedObject extends object,
++++            MethodName extends keyof MockedObject,
++++            Implementation extends Function,
++++        >(
++++            object: MockedObject,
++++            methodName: MethodName,
++++            implementation?: Implementation,
++++            options?: MockFunctionOptions,
++++        ): Mock<(() => MockedObject[MethodName]) | Implementation>;
++++        /**
++++         * This function is syntax sugar for `MockTracker.method` with `options.setter` set to `true`.
++++         * @since v19.3.0, v18.13.0
++++         */
++++        setter<
++++            MockedObject extends object,
++++            MethodName extends keyof MockedObject,
++++        >(
++++            object: MockedObject,
++++            methodName: MethodName,
++++            options?: MockFunctionOptions,
++++        ): Mock<(value: MockedObject[MethodName]) => void>;
++++        setter<
++++            MockedObject extends object,
++++            MethodName extends keyof MockedObject,
++++            Implementation extends Function,
++++        >(
++++            object: MockedObject,
++++            methodName: MethodName,
++++            implementation?: Implementation,
++++            options?: MockFunctionOptions,
++++        ): Mock<((value: MockedObject[MethodName]) => void) | Implementation>;
++++        /**
++++         * This function restores the default behavior of all mocks that were previously
++++         * created by this `MockTracker` and disassociates the mocks from the `MockTracker` instance. Once disassociated, the mocks can still be used, but the `MockTracker` instance can no longer be
++++         * used to reset their behavior or
++++         * otherwise interact with them.
++++         *
++++         * After each test completes, this function is called on the test context's `MockTracker`. If the global `MockTracker` is used extensively, calling this
++++         * function manually is recommended.
++++         * @since v19.1.0, v18.13.0
++++         */
++++        reset(): void;
++++        /**
++++         * This function restores the default behavior of all mocks that were previously
++++         * created by this `MockTracker`. Unlike `mock.reset()`, `mock.restoreAll()` does
++++         * not disassociate the mocks from the `MockTracker` instance.
++++         * @since v19.1.0, v18.13.0
++++         */
++++        restoreAll(): void;
++++        timers: MockTimers;
++++    }
++++    const mock: MockTracker;
++++    interface MockFunctionCall<
++++        F extends Function,
++++        ReturnType = F extends (...args: any) => infer T ? T
++++            : F extends abstract new(...args: any) => infer T ? T
++++            : unknown,
++++        Args = F extends (...args: infer Y) => any ? Y
++++            : F extends abstract new(...args: infer Y) => any ? Y
++++            : unknown[],
++++    > {
++++        /**
++++         * An array of the arguments passed to the mock function.
++++         */
++++        arguments: Args;
++++        /**
++++         * If the mocked function threw then this property contains the thrown value.
++++         */
++++        error: unknown | undefined;
++++        /**
++++         * The value returned by the mocked function.
++++         *
++++         * If the mocked function threw, it will be `undefined`.
++++         */
++++        result: ReturnType | undefined;
++++        /**
++++         * An `Error` object whose stack can be used to determine the callsite of the mocked function invocation.
++++         */
++++        stack: Error;
++++        /**
++++         * If the mocked function is a constructor, this field contains the class being constructed.
++++         * Otherwise this will be `undefined`.
++++         */
++++        target: F extends abstract new(...args: any) => any ? F : undefined;
++++        /**
++++         * The mocked function's `this` value.
++++         */
++++        this: unknown;
++++    }
++++    /**
++++     * The `MockFunctionContext` class is used to inspect or manipulate the behavior of
++++     * mocks created via the `MockTracker` APIs.
++++     * @since v19.1.0, v18.13.0
++++     */
++++    class MockFunctionContext<F extends Function> {
++++        /**
++++         * A getter that returns a copy of the internal array used to track calls to the
++++         * mock. Each entry in the array is an object with the following properties.
++++         * @since v19.1.0, v18.13.0
++++         */
++++        readonly calls: Array<MockFunctionCall<F>>;
++++        /**
++++         * This function returns the number of times that this mock has been invoked. This
++++         * function is more efficient than checking `ctx.calls.length` because `ctx.calls` is a getter that creates a copy of the internal call tracking array.
++++         * @since v19.1.0, v18.13.0
++++         * @return The number of times that this mock has been invoked.
++++         */
++++        callCount(): number;
++++        /**
++++         * This function is used to change the behavior of an existing mock.
++++         *
++++         * The following example creates a mock function using `t.mock.fn()`, calls the
++++         * mock function, and then changes the mock implementation to a different function.
++++         *
++++         * ```js
++++         * test('changes a mock behavior', (t) => {
++++         *   let cnt = 0;
++++         *
++++         *   function addOne() {
++++         *     cnt++;
++++         *     return cnt;
++++         *   }
++++         *
++++         *   function addTwo() {
++++         *     cnt += 2;
++++         *     return cnt;
++++         *   }
++++         *
++++         *   const fn = t.mock.fn(addOne);
++++         *
++++         *   assert.strictEqual(fn(), 1);
++++         *   fn.mock.mockImplementation(addTwo);
++++         *   assert.strictEqual(fn(), 3);
++++         *   assert.strictEqual(fn(), 5);
++++         * });
++++         * ```
++++         * @since v19.1.0, v18.13.0
++++         * @param implementation The function to be used as the mock's new implementation.
++++         */
++++        mockImplementation(implementation: F): void;
++++        /**
++++         * This function is used to change the behavior of an existing mock for a single
++++         * invocation. Once invocation `onCall` has occurred, the mock will revert to
++++         * whatever behavior it would have used had `mockImplementationOnce()` not been
++++         * called.
++++         *
++++         * The following example creates a mock function using `t.mock.fn()`, calls the
++++         * mock function, changes the mock implementation to a different function for the
++++         * next invocation, and then resumes its previous behavior.
++++         *
++++         * ```js
++++         * test('changes a mock behavior once', (t) => {
++++         *   let cnt = 0;
++++         *
++++         *   function addOne() {
++++         *     cnt++;
++++         *     return cnt;
++++         *   }
++++         *
++++         *   function addTwo() {
++++         *     cnt += 2;
++++         *     return cnt;
++++         *   }
++++         *
++++         *   const fn = t.mock.fn(addOne);
++++         *
++++         *   assert.strictEqual(fn(), 1);
++++         *   fn.mock.mockImplementationOnce(addTwo);
++++         *   assert.strictEqual(fn(), 3);
++++         *   assert.strictEqual(fn(), 4);
++++         * });
++++         * ```
++++         * @since v19.1.0, v18.13.0
++++         * @param implementation The function to be used as the mock's implementation for the invocation number specified by `onCall`.
++++         * @param onCall The invocation number that will use `implementation`. If the specified invocation has already occurred then an exception is thrown.
++++         */
++++        mockImplementationOnce(implementation: F, onCall?: number): void;
++++        /**
++++         * Resets the call history of the mock function.
++++         * @since v19.3.0, v18.13.0
++++         */
++++        resetCalls(): void;
++++        /**
++++         * Resets the implementation of the mock function to its original behavior. The
++++         * mock can still be used after calling this function.
++++         * @since v19.1.0, v18.13.0
++++         */
++++        restore(): void;
++++    }
++++    type Timer = "setInterval" | "setTimeout" | "setImmediate" | "Date";
++++
++++    interface MockTimersOptions {
++++        apis: Timer[];
++++        now?: number | Date | undefined;
++++    }
++++    /**
++++     * Mocking timers is a technique commonly used in software testing to simulate and
++++     * control the behavior of timers, such as `setInterval` and `setTimeout`,
++++     * without actually waiting for the specified time intervals.
++++     *
++++     * The MockTimers API also allows for mocking of the `Date` constructor and
++++     * `setImmediate`/`clearImmediate` functions.
++++     *
++++     * The `MockTracker` provides a top-level `timers` export
++++     * which is a `MockTimers` instance.
++++     * @since v20.4.0
++++     * @experimental
++++     */
++++    class MockTimers {
++++        /**
++++         * Enables timer mocking for the specified timers.
++++         *
++++         * **Note:** When you enable mocking for a specific timer, its associated
++++         * clear function will also be implicitly mocked.
++++         *
++++         * **Note:** Mocking `Date` will affect the behavior of the mocked timers
++++         * as they use the same internal clock.
++++         *
++++         * Example usage without setting initial time:
++++         *
++++         * ```js
++++         * import { mock } from 'node:test';
++++         * mock.timers.enable({ apis: ['setInterval', 'Date'], now: 1234 });
++++         * ```
++++         *
++++         * The above example enables mocking for the `Date` constructor, `setInterval` timer and
++++         * implicitly mocks the `clearInterval` function. Only the `Date` constructor from `globalThis`,
++++         * `setInterval` and `clearInterval` functions from `node:timers`, `node:timers/promises`, and `globalThis` will be mocked.
++++         *
++++         * Example usage with initial time set
++++         *
++++         * ```js
++++         * import { mock } from 'node:test';
++++         * mock.timers.enable({ apis: ['Date'], now: 1000 });
++++         * ```
++++         *
++++         * Example usage with initial Date object as time set
++++         *
++++         * ```js
++++         * import { mock } from 'node:test';
++++         * mock.timers.enable({ apis: ['Date'], now: new Date() });
++++         * ```
++++         *
++++         * Alternatively, if you call `mock.timers.enable()` without any parameters:
++++         *
++++         * All timers (`'setInterval'`, `'clearInterval'`, `'Date'`, `'setImmediate'`, `'clearImmediate'`, `'setTimeout'`, and `'clearTimeout'`)
++++         * will be mocked.
++++         *
++++         * The `setInterval`, `clearInterval`, `setTimeout`, and `clearTimeout` functions from `node:timers`, `node:timers/promises`,
++++         * and `globalThis` will be mocked.
++++         * The `Date` constructor from `globalThis` will be mocked.
++++         *
++++         * If there is no initial epoch set, the initial date will be based on 0 in the Unix epoch. This is `January 1st, 1970, 00:00:00 UTC`. You can
++++         * set an initial date by passing a now property to the `.enable()` method. This value will be used as the initial date for the mocked Date
++++         * object. It can either be a positive integer, or another Date object.
++++         * @since v20.4.0
++++         */
++++        enable(options?: MockTimersOptions): void;
++++        /**
++++         * You can use the `.setTime()` method to manually move the mocked date to another time. This method only accepts a positive integer.
++++         * Note: This method will execute any mocked timers that are in the past from the new time.
++++         * In the below example we are setting a new time for the mocked date.
++++         * ```js
++++         * import assert from 'node:assert';
++++         * import { test } from 'node:test';
++++         * test('sets the time of a date object', (context) => {
++++         *   // Optionally choose what to mock
++++         *   context.mock.timers.enable({ apis: ['Date'], now: 100 });
++++         *   assert.strictEqual(Date.now(), 100);
++++         *   // Advance in time will also advance the date
++++         *   context.mock.timers.setTime(1000);
++++         *   context.mock.timers.tick(200);
++++         *   assert.strictEqual(Date.now(), 1200);
++++         * });
++++         * ```
++++         */
++++        setTime(time: number): void;
++++        /**
++++         * This function restores the default behavior of all mocks that were previously
++++         * created by this `MockTimers` instance and disassociates the mocks
++++         * from the `MockTracker` instance.
++++         *
++++         * **Note:** After each test completes, this function is called on
++++         * the test context's `MockTracker`.
++++         *
++++         * ```js
++++         * import { mock } from 'node:test';
++++         * mock.timers.reset();
++++         * ```
++++         * @since v20.4.0
++++         */
++++        reset(): void;
++++        /**
++++         * Advances time for all mocked timers.
++++         *
++++         * **Note:** This diverges from how `setTimeout` in Node.js behaves and accepts
++++         * only positive numbers. In Node.js, `setTimeout` with negative numbers is
++++         * only supported for web compatibility reasons.
++++         *
++++         * The following example mocks a `setTimeout` function and
++++         * by using `.tick` advances in
++++         * time triggering all pending timers.
++++         *
++++         * ```js
++++         * import assert from 'node:assert';
++++         * import { test } from 'node:test';
++++         *
++++         * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => {
++++         *   const fn = context.mock.fn();
++++         *
++++         *   context.mock.timers.enable({ apis: ['setTimeout'] });
++++         *
++++         *   setTimeout(fn, 9999);
++++         *
++++         *   assert.strictEqual(fn.mock.callCount(), 0);
++++         *
++++         *   // Advance in time
++++         *   context.mock.timers.tick(9999);
++++         *
++++         *   assert.strictEqual(fn.mock.callCount(), 1);
++++         * });
++++         * ```
++++         *
++++         * Alternativelly, the `.tick` function can be called many times
++++         *
++++         * ```js
++++         * import assert from 'node:assert';
++++         * import { test } from 'node:test';
++++         *
++++         * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => {
++++         *   const fn = context.mock.fn();
++++         *   context.mock.timers.enable({ apis: ['setTimeout'] });
++++         *   const nineSecs = 9000;
++++         *   setTimeout(fn, nineSecs);
++++         *
++++         *   const twoSeconds = 3000;
++++         *   context.mock.timers.tick(twoSeconds);
++++         *   context.mock.timers.tick(twoSeconds);
++++         *   context.mock.timers.tick(twoSeconds);
++++         *
++++         *   assert.strictEqual(fn.mock.callCount(), 1);
++++         * });
++++         * ```
++++         *
++++         * Advancing time using `.tick` will also advance the time for any `Date` object
++++         * created after the mock was enabled (if `Date` was also set to be mocked).
++++         *
++++         * ```js
++++         * import assert from 'node:assert';
++++         * import { test } from 'node:test';
++++         *
++++         * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => {
++++         *   const fn = context.mock.fn();
++++         *
++++         *   context.mock.timers.enable({ apis: ['setTimeout', 'Date'] });
++++         *   setTimeout(fn, 9999);
++++         *
++++         *   assert.strictEqual(fn.mock.callCount(), 0);
++++         *   assert.strictEqual(Date.now(), 0);
++++         *
++++         *   // Advance in time
++++         *   context.mock.timers.tick(9999);
++++         *   assert.strictEqual(fn.mock.callCount(), 1);
++++         *   assert.strictEqual(Date.now(), 9999);
++++         * });
++++         * ```
++++         * @since v20.4.0
++++         */
++++        tick(milliseconds: number): void;
++++        /**
++++         * Triggers all pending mocked timers immediately. If the `Date` object is also
++++         * mocked, it will also advance the `Date` object to the furthest timer's time.
++++         *
++++         * The example below triggers all pending timers immediately,
++++         * causing them to execute without any delay.
++++         *
++++         * ```js
++++         * import assert from 'node:assert';
++++         * import { test } from 'node:test';
++++         *
++++         * test('runAll functions following the given order', (context) => {
++++         *   context.mock.timers.enable({ apis: ['setTimeout', 'Date'] });
++++         *   const results = [];
++++         *   setTimeout(() => results.push(1), 9999);
++++         *
++++         *   // Notice that if both timers have the same timeout,
++++         *   // the order of execution is guaranteed
++++         *   setTimeout(() => results.push(3), 8888);
++++         *   setTimeout(() => results.push(2), 8888);
++++         *
++++         *   assert.deepStrictEqual(results, []);
++++         *
++++         *   context.mock.timers.runAll();
++++         *   assert.deepStrictEqual(results, [3, 2, 1]);
++++         *   // The Date object is also advanced to the furthest timer's time
++++         *   assert.strictEqual(Date.now(), 9999);
++++         * });
++++         * ```
++++         *
++++         * **Note:** The `runAll()` function is specifically designed for
++++         * triggering timers in the context of timer mocking.
++++         * It does not have any effect on real-time system
++++         * clocks or actual timers outside of the mocking environment.
++++         * @since v20.4.0
++++         */
++++        runAll(): void;
++++        /**
++++         * Calls {@link MockTimers.reset()}.
++++         */
++++        [Symbol.dispose](): void;
++++    }
++++    export {
++++        after,
++++        afterEach,
++++        before,
++++        beforeEach,
++++        describe,
++++        it,
++++        Mock,
++++        mock,
++++        only,
++++        run,
++++        skip,
++++        suite,
++++        SuiteContext,
++++        test,
++++        test as default,
++++        TestContext,
++++        todo,
++++    };
++++}
++++
++++interface TestError extends Error {
++++    cause: Error;
++++}
++++interface TestLocationInfo {
++++    /**
++++     * The column number where the test is defined, or
++++     * `undefined` if the test was run through the REPL.
++++     */
++++    column?: number;
++++    /**
++++     * The path of the test file, `undefined` if test was run through the REPL.
++++     */
++++    file?: string;
++++    /**
++++     * The line number where the test is defined, or `undefined` if the test was run through the REPL.
++++     */
++++    line?: number;
++++}
++++interface DiagnosticData extends TestLocationInfo {
++++    /**
++++     * The diagnostic message.
++++     */
++++    message: string;
++++    /**
++++     * The nesting level of the test.
++++     */
++++    nesting: number;
++++}
++++interface TestCoverage {
++++    /**
++++     * An object containing the coverage report.
++++     */
++++    summary: {
++++        /**
++++         * An array of coverage reports for individual files.
++++         */
++++        files: Array<{
++++            /**
++++             * The absolute path of the file.
++++             */
++++            path: string;
++++            /**
++++             * The total number of lines.
++++             */
++++            totalLineCount: number;
++++            /**
++++             * The total number of branches.
++++             */
++++            totalBranchCount: number;
++++            /**
++++             * The total number of functions.
++++             */
++++            totalFunctionCount: number;
++++            /**
++++             * The number of covered lines.
++++             */
++++            coveredLineCount: number;
++++            /**
++++             * The number of covered branches.
++++             */
++++            coveredBranchCount: number;
++++            /**
++++             * The number of covered functions.
++++             */
++++            coveredFunctionCount: number;
++++            /**
++++             * The percentage of lines covered.
++++             */
++++            coveredLinePercent: number;
++++            /**
++++             * The percentage of branches covered.
++++             */
++++            coveredBranchPercent: number;
++++            /**
++++             * The percentage of functions covered.
++++             */
++++            coveredFunctionPercent: number;
++++            /**
++++             * An array of functions representing function coverage.
++++             */
++++            functions: Array<{
++++                /**
++++                 * The name of the function.
++++                 */
++++                name: string;
++++                /**
++++                 * The line number where the function is defined.
++++                 */
++++                line: number;
++++                /**
++++                 * The number of times the function was called.
++++                 */
++++                count: number;
++++            }>;
++++            /**
++++             * An array of branches representing branch coverage.
++++             */
++++            branches: Array<{
++++                /**
++++                 * The line number where the branch is defined.
++++                 */
++++                line: number;
++++                /**
++++                 * The number of times the branch was taken.
++++                 */
++++                count: number;
++++            }>;
++++            /**
++++             * An array of lines representing line numbers and the number of times they were covered.
++++             */
++++            lines: Array<{
++++                /**
++++                 * The line number.
++++                 */
++++                line: number;
++++                /**
++++                 * The number of times the line was covered.
++++                 */
++++                count: number;
++++            }>;
++++        }>;
++++        /**
++++         * An object containing a summary of coverage for all files.
++++         */
++++        totals: {
++++            /**
++++             * The total number of lines.
++++             */
++++            totalLineCount: number;
++++            /**
++++             * The total number of branches.
++++             */
++++            totalBranchCount: number;
++++            /**
++++             * The total number of functions.
++++             */
++++            totalFunctionCount: number;
++++            /**
++++             * The number of covered lines.
++++             */
++++            coveredLineCount: number;
++++            /**
++++             * The number of covered branches.
++++             */
++++            coveredBranchCount: number;
++++            /**
++++             * The number of covered functions.
++++             */
++++            coveredFunctionCount: number;
++++            /**
++++             * The percentage of lines covered.
++++             */
++++            coveredLinePercent: number;
++++            /**
++++             * The percentage of branches covered.
++++             */
++++            coveredBranchPercent: number;
++++            /**
++++             * The percentage of functions covered.
++++             */
++++            coveredFunctionPercent: number;
++++        };
++++        /**
++++         * The working directory when code coverage began. This
++++         * is useful for displaying relative path names in case
++++         * the tests changed the working directory of the Node.js process.
++++         */
++++        workingDirectory: string;
++++    };
++++    /**
++++     * The nesting level of the test.
++++     */
++++    nesting: number;
++++}
++++interface TestComplete extends TestLocationInfo {
++++    /**
++++     * Additional execution metadata.
++++     */
++++    details: {
++++        /**
++++         * Whether the test passed or not.
++++         */
++++        passed: boolean;
++++        /**
++++         * The duration of the test in milliseconds.
++++         */
++++        duration_ms: number;
++++        /**
++++         * An error wrapping the error thrown by the test if it did not pass.
++++         */
++++        error?: TestError;
++++        /**
++++         * The type of the test, used to denote whether this is a suite.
++++         */
++++        type?: "suite";
++++    };
++++    /**
++++     * The test name.
++++     */
++++    name: string;
++++    /**
++++     * The nesting level of the test.
++++     */
++++    nesting: number;
++++    /**
++++     * The ordinal number of the test.
++++     */
++++    testNumber: number;
++++    /**
++++     * Present if `context.todo` is called.
++++     */
++++    todo?: string | boolean;
++++    /**
++++     * Present if `context.skip` is called.
++++     */
++++    skip?: string | boolean;
++++}
++++interface TestDequeue extends TestLocationInfo {
++++    /**
++++     * The test name.
++++     */
++++    name: string;
++++    /**
++++     * The nesting level of the test.
++++     */
++++    nesting: number;
++++}
++++interface TestEnqueue extends TestLocationInfo {
++++    /**
++++     * The test name.
++++     */
++++    name: string;
++++    /**
++++     * The nesting level of the test.
++++     */
++++    nesting: number;
++++}
++++interface TestFail extends TestLocationInfo {
++++    /**
++++     * Additional execution metadata.
++++     */
++++    details: {
++++        /**
++++         * The duration of the test in milliseconds.
++++         */
++++        duration_ms: number;
++++        /**
++++         * An error wrapping the error thrown by the test.
++++         */
++++        error: TestError;
++++        /**
++++         * The type of the test, used to denote whether this is a suite.
++++         * @since v20.0.0, v19.9.0, v18.17.0
++++         */
++++        type?: "suite";
++++    };
++++    /**
++++     * The test name.
++++     */
++++    name: string;
++++    /**
++++     * The nesting level of the test.
++++     */
++++    nesting: number;
++++    /**
++++     * The ordinal number of the test.
++++     */
++++    testNumber: number;
++++    /**
++++     * Present if `context.todo` is called.
++++     */
++++    todo?: string | boolean;
++++    /**
++++     * Present if `context.skip` is called.
++++     */
++++    skip?: string | boolean;
++++}
++++interface TestPass extends TestLocationInfo {
++++    /**
++++     * Additional execution metadata.
++++     */
++++    details: {
++++        /**
++++         * The duration of the test in milliseconds.
++++         */
++++        duration_ms: number;
++++        /**
++++         * The type of the test, used to denote whether this is a suite.
++++         * @since 20.0.0, 19.9.0, 18.17.0
++++         */
++++        type?: "suite";
++++    };
++++    /**
++++     * The test name.
++++     */
++++    name: string;
++++    /**
++++     * The nesting level of the test.
++++     */
++++    nesting: number;
++++    /**
++++     * The ordinal number of the test.
++++     */
++++    testNumber: number;
++++    /**
++++     * Present if `context.todo` is called.
++++     */
++++    todo?: string | boolean;
++++    /**
++++     * Present if `context.skip` is called.
++++     */
++++    skip?: string | boolean;
++++}
++++interface TestPlan extends TestLocationInfo {
++++    /**
++++     * The nesting level of the test.
++++     */
++++    nesting: number;
++++    /**
++++     * The number of subtests that have ran.
++++     */
++++    count: number;
++++}
++++interface TestStart extends TestLocationInfo {
++++    /**
++++     * The test name.
++++     */
++++    name: string;
++++    /**
++++     * The nesting level of the test.
++++     */
++++    nesting: number;
++++}
++++interface TestStderr {
++++    /**
++++     * The path of the test file.
++++     */
++++    file: string;
++++    /**
++++     * The message written to `stderr`.
++++     */
++++    message: string;
++++}
++++interface TestStdout {
++++    /**
++++     * The path of the test file.
++++     */
++++    file: string;
++++    /**
++++     * The message written to `stdout`.
++++     */
++++    message: string;
++++}
++++
++++/**
++++ * The `node:test/reporters` module exposes the builtin-reporters for `node:test`.
++++ * To access it:
++++ *
++++ * ```js
++++ * import test from 'node:test/reporters';
++++ * ```
++++ *
++++ * This module is only available under the `node:` scheme. The following will not
++++ * work:
++++ *
++++ * ```js
++++ * import test from 'test/reporters';
++++ * ```
++++ * @since v19.9.0
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/test/reporters.js)
++++ */
++++declare module "node:test/reporters" {
++++    import { Transform, TransformOptions } from "node:stream";
++++
++++    type TestEvent =
++++        | { type: "test:coverage"; data: TestCoverage }
++++        | { type: "test:complete"; data: TestComplete }
++++        | { type: "test:dequeue"; data: TestDequeue }
++++        | { type: "test:diagnostic"; data: DiagnosticData }
++++        | { type: "test:enqueue"; data: TestEnqueue }
++++        | { type: "test:fail"; data: TestFail }
++++        | { type: "test:pass"; data: TestPass }
++++        | { type: "test:plan"; data: TestPlan }
++++        | { type: "test:start"; data: TestStart }
++++        | { type: "test:stderr"; data: TestStderr }
++++        | { type: "test:stdout"; data: TestStdout }
++++        | { type: "test:watch:drained"; data: undefined };
++++    type TestEventGenerator = AsyncGenerator<TestEvent, void>;
++++
++++    /**
++++     * The `dot` reporter outputs the test results in a compact format,
++++     * where each passing test is represented by a `.`,
++++     * and each failing test is represented by a `X`.
++++     * @since v20.0.0
++++     */
++++    function dot(source: TestEventGenerator): AsyncGenerator<"\n" | "." | "X", void>;
++++    /**
++++     * The `tap` reporter outputs the test results in the [TAP](https://testanything.org/) format.
++++     * @since v20.0.0
++++     */
++++    function tap(source: TestEventGenerator): AsyncGenerator<string, void>;
++++    /**
++++     * The `spec` reporter outputs the test results in a human-readable format.
++++     * @since v20.0.0
++++     */
++++    class SpecReporter extends Transform {
++++        constructor();
++++    }
++++    /**
++++     * The `junit` reporter outputs test results in a jUnit XML format.
++++     * @since v21.0.0
++++     */
++++    function junit(source: TestEventGenerator): AsyncGenerator<string, void>;
++++    class LcovReporter extends Transform {
++++        constructor(opts?: Omit<TransformOptions, "writableObjectMode">);
++++    }
++++    /**
++++     * The `lcov` reporter outputs test coverage when used with the
++++     * [`--experimental-test-coverage`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--experimental-test-coverage) flag.
++++     * @since v22.0.0
++++     */
++++    const lcov: LcovReporter;
++++
++++    export { dot, junit, lcov, SpecReporter as spec, tap, TestEvent };
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..8ffaabbaf271c600678b0e84cbe9494097ff0220
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,240 @@@@@
++++/**
++++ * The `timer` module exposes a global API for scheduling functions to
++++ * be called at some future period of time. Because the timer functions are
++++ * globals, there is no need to import `node:timers` to use the API.
++++ *
++++ * The timer functions within Node.js implement a similar API as the timers API
++++ * provided by Web Browsers but use a different internal implementation that is
++++ * built around the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout).
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/timers.js)
++++ */
++++declare module "timers" {
++++    import { Abortable } from "node:events";
++++    import {
++++        setImmediate as setImmediatePromise,
++++        setInterval as setIntervalPromise,
++++        setTimeout as setTimeoutPromise,
++++    } from "node:timers/promises";
++++    interface TimerOptions extends Abortable {
++++        /**
++++         * Set to `false` to indicate that the scheduled `Timeout`
++++         * should not require the Node.js event loop to remain active.
++++         * @default true
++++         */
++++        ref?: boolean | undefined;
++++    }
++++    let setTimeout: typeof global.setTimeout;
++++    let clearTimeout: typeof global.clearTimeout;
++++    let setInterval: typeof global.setInterval;
++++    let clearInterval: typeof global.clearInterval;
++++    let setImmediate: typeof global.setImmediate;
++++    let clearImmediate: typeof global.clearImmediate;
++++    global {
++++        namespace NodeJS {
++++            // compatibility with older typings
++++            interface Timer extends RefCounted {
++++                hasRef(): boolean;
++++                refresh(): this;
++++                [Symbol.toPrimitive](): number;
++++            }
++++            /**
++++             * This object is created internally and is returned from `setImmediate()`. It
++++             * can be passed to `clearImmediate()` in order to cancel the scheduled
++++             * actions.
++++             *
++++             * By default, when an immediate is scheduled, the Node.js event loop will continue
++++             * running as long as the immediate is active. The `Immediate` object returned by `setImmediate()` exports both `immediate.ref()` and `immediate.unref()` functions that can be used to
++++             * control this default behavior.
++++             */
++++            class Immediate implements RefCounted {
++++                /**
++++                 * When called, requests that the Node.js event loop _not_ exit so long as the `Immediate` is active. Calling `immediate.ref()` multiple times will have no
++++                 * effect.
++++                 *
++++                 * By default, all `Immediate` objects are "ref'ed", making it normally unnecessary
++++                 * to call `immediate.ref()` unless `immediate.unref()` had been called previously.
++++                 * @since v9.7.0
++++                 * @return a reference to `immediate`
++++                 */
++++                ref(): this;
++++                /**
++++                 * When called, the active `Immediate` object will not require the Node.js event
++++                 * loop to remain active. If there is no other activity keeping the event loop
++++                 * running, the process may exit before the `Immediate` object's callback is
++++                 * invoked. Calling `immediate.unref()` multiple times will have no effect.
++++                 * @since v9.7.0
++++                 * @return a reference to `immediate`
++++                 */
++++                unref(): this;
++++                /**
++++                 * If true, the `Immediate` object will keep the Node.js event loop active.
++++                 * @since v11.0.0
++++                 */
++++                hasRef(): boolean;
++++                _onImmediate: Function; // to distinguish it from the Timeout class
++++                /**
++++                 * Cancels the immediate. This is similar to calling `clearImmediate()`.
++++                 * @since v20.5.0
++++                 */
++++                [Symbol.dispose](): void;
++++            }
++++            /**
++++             * This object is created internally and is returned from `setTimeout()` and `setInterval()`. It can be passed to either `clearTimeout()` or `clearInterval()` in order to cancel the
++++             * scheduled actions.
++++             *
++++             * By default, when a timer is scheduled using either `setTimeout()` or `setInterval()`, the Node.js event loop will continue running as long as the
++++             * timer is active. Each of the `Timeout` objects returned by these functions
++++             * export both `timeout.ref()` and `timeout.unref()` functions that can be used to
++++             * control this default behavior.
++++             */
++++            class Timeout implements Timer {
++++                /**
++++                 * When called, requests that the Node.js event loop _not_ exit so long as the`Timeout` is active. Calling `timeout.ref()` multiple times will have no effect.
++++                 *
++++                 * By default, all `Timeout` objects are "ref'ed", making it normally unnecessary
++++                 * to call `timeout.ref()` unless `timeout.unref()` had been called previously.
++++                 * @since v0.9.1
++++                 * @return a reference to `timeout`
++++                 */
++++                ref(): this;
++++                /**
++++                 * When called, the active `Timeout` object will not require the Node.js event loop
++++                 * to remain active. If there is no other activity keeping the event loop running,
++++                 * the process may exit before the `Timeout` object's callback is invoked. Calling `timeout.unref()` multiple times will have no effect.
++++                 * @since v0.9.1
++++                 * @return a reference to `timeout`
++++                 */
++++                unref(): this;
++++                /**
++++                 * If true, the `Timeout` object will keep the Node.js event loop active.
++++                 * @since v11.0.0
++++                 */
++++                hasRef(): boolean;
++++                /**
++++                 * Sets the timer's start time to the current time, and reschedules the timer to
++++                 * call its callback at the previously specified duration adjusted to the current
++++                 * time. This is useful for refreshing a timer without allocating a new
++++                 * JavaScript object.
++++                 *
++++                 * Using this on a timer that has already called its callback will reactivate the
++++                 * timer.
++++                 * @since v10.2.0
++++                 * @return a reference to `timeout`
++++                 */
++++                refresh(): this;
++++                [Symbol.toPrimitive](): number;
++++                /**
++++                 * Cancels the timeout.
++++                 * @since v20.5.0
++++                 */
++++                [Symbol.dispose](): void;
++++            }
++++        }
++++        /**
++++         * Schedules execution of a one-time `callback` after `delay` milliseconds.
++++         *
++++         * The `callback` will likely not be invoked in precisely `delay` milliseconds.
++++         * Node.js makes no guarantees about the exact timing of when callbacks will fire,
++++         * nor of their ordering. The callback will be called as close as possible to the
++++         * time specified.
++++         *
++++         * When `delay` is larger than `2147483647` or less than `1`, the `delay` will be set to `1`. Non-integer delays are truncated to an integer.
++++         *
++++         * If `callback` is not a function, a `TypeError` will be thrown.
++++         *
++++         * This method has a custom variant for promises that is available using `timersPromises.setTimeout()`.
++++         * @since v0.0.1
++++         * @param callback The function to call when the timer elapses.
++++         * @param [delay=1] The number of milliseconds to wait before calling the `callback`.
++++         * @param args Optional arguments to pass when the `callback` is called.
++++         * @return for use with {@link clearTimeout}
++++         */
++++        function setTimeout<TArgs extends any[]>(
++++            callback: (...args: TArgs) => void,
++++            ms?: number,
++++            ...args: TArgs
++++        ): NodeJS.Timeout;
++++        // util.promisify no rest args compability
++++        // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
++++        function setTimeout(callback: (args: void) => void, ms?: number): NodeJS.Timeout;
++++        namespace setTimeout {
++++            const __promisify__: typeof setTimeoutPromise;
++++        }
++++        /**
++++         * Cancels a `Timeout` object created by `setTimeout()`.
++++         * @since v0.0.1
++++         * @param timeout A `Timeout` object as returned by {@link setTimeout} or the `primitive` of the `Timeout` object as a string or a number.
++++         */
++++        function clearTimeout(timeoutId: NodeJS.Timeout | string | number | undefined): void;
++++        /**
++++         * Schedules repeated execution of `callback` every `delay` milliseconds.
++++         *
++++         * When `delay` is larger than `2147483647` or less than `1`, the `delay` will be
++++         * set to `1`. Non-integer delays are truncated to an integer.
++++         *
++++         * If `callback` is not a function, a `TypeError` will be thrown.
++++         *
++++         * This method has a custom variant for promises that is available using `timersPromises.setInterval()`.
++++         * @since v0.0.1
++++         * @param callback The function to call when the timer elapses.
++++         * @param [delay=1] The number of milliseconds to wait before calling the `callback`.
++++         * @param args Optional arguments to pass when the `callback` is called.
++++         * @return for use with {@link clearInterval}
++++         */
++++        function setInterval<TArgs extends any[]>(
++++            callback: (...args: TArgs) => void,
++++            ms?: number,
++++            ...args: TArgs
++++        ): NodeJS.Timeout;
++++        // util.promisify no rest args compability
++++        // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
++++        function setInterval(callback: (args: void) => void, ms?: number): NodeJS.Timeout;
++++        namespace setInterval {
++++            const __promisify__: typeof setIntervalPromise;
++++        }
++++        /**
++++         * Cancels a `Timeout` object created by `setInterval()`.
++++         * @since v0.0.1
++++         * @param timeout A `Timeout` object as returned by {@link setInterval} or the `primitive` of the `Timeout` object as a string or a number.
++++         */
++++        function clearInterval(intervalId: NodeJS.Timeout | string | number | undefined): void;
++++        /**
++++         * Schedules the "immediate" execution of the `callback` after I/O events'
++++         * callbacks.
++++         *
++++         * When multiple calls to `setImmediate()` are made, the `callback` functions are
++++         * queued for execution in the order in which they are created. The entire callback
++++         * queue is processed every event loop iteration. If an immediate timer is queued
++++         * from inside an executing callback, that timer will not be triggered until the
++++         * next event loop iteration.
++++         *
++++         * If `callback` is not a function, a `TypeError` will be thrown.
++++         *
++++         * This method has a custom variant for promises that is available using `timersPromises.setImmediate()`.
++++         * @since v0.9.1
++++         * @param callback The function to call at the end of this turn of the Node.js `Event Loop`
++++         * @param args Optional arguments to pass when the `callback` is called.
++++         * @return for use with {@link clearImmediate}
++++         */
++++        function setImmediate<TArgs extends any[]>(
++++            callback: (...args: TArgs) => void,
++++            ...args: TArgs
++++        ): NodeJS.Immediate;
++++        // util.promisify no rest args compability
++++        // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
++++        function setImmediate(callback: (args: void) => void): NodeJS.Immediate;
++++        namespace setImmediate {
++++            const __promisify__: typeof setImmediatePromise;
++++        }
++++        /**
++++         * Cancels an `Immediate` object created by `setImmediate()`.
++++         * @since v0.9.1
++++         * @param immediate An `Immediate` object as returned by {@link setImmediate}.
++++         */
++++        function clearImmediate(immediateId: NodeJS.Immediate | undefined): void;
++++        function queueMicrotask(callback: () => void): void;
++++    }
++++}
++++declare module "node:timers" {
++++    export * from "timers";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5fa6ba7c67ef4d89f0966c0cbf3865c06b18e263
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,97 @@@@@
++++/**
++++ * The `timers/promises` API provides an alternative set of timer functions
++++ * that return `Promise` objects. The API is accessible via `import timersPromises from 'node:timers/promises'`.
++++ *
++++ * ```js
++++ * import {
++++ *   setTimeout,
++++ *   setImmediate,
++++ *   setInterval,
++++ * } from 'timers/promises';
++++ * ```
++++ * @since v15.0.0
++++ */
++++declare module "timers/promises" {
++++    import { TimerOptions } from "node:timers";
++++    /**
++++     * ```js
++++     * import {
++++     *   setTimeout,
++++     * } from 'timers/promises';
++++     *
++++     * const res = await setTimeout(100, 'result');
++++     *
++++     * console.log(res);  // Prints 'result'
++++     * ```
++++     * @since v15.0.0
++++     * @param [delay=1] The number of milliseconds to wait before fulfilling the promise.
++++     * @param value A value with which the promise is fulfilled.
++++     */
++++    function setTimeout<T = void>(delay?: number, value?: T, options?: TimerOptions): Promise<T>;
++++    /**
++++     * ```js
++++     * import {
++++     *   setImmediate,
++++     * } from 'timers/promises';
++++     *
++++     * const res = await setImmediate('result');
++++     *
++++     * console.log(res);  // Prints 'result'
++++     * ```
++++     * @since v15.0.0
++++     * @param value A value with which the promise is fulfilled.
++++     */
++++    function setImmediate<T = void>(value?: T, options?: TimerOptions): Promise<T>;
++++    /**
++++     * Returns an async iterator that generates values in an interval of `delay` ms.
++++     * If `ref` is `true`, you need to call `next()` of async iterator explicitly
++++     * or implicitly to keep the event loop alive.
++++     *
++++     * ```js
++++     * import {
++++     *   setInterval,
++++     * } from 'timers/promises';
++++     *
++++     * const interval = 100;
++++     * for await (const startTime of setInterval(interval, Date.now())) {
++++     *   const now = Date.now();
++++     *   console.log(now);
++++     *   if ((now - startTime) > 1000)
++++     *     break;
++++     * }
++++     * console.log(Date.now());
++++     * ```
++++     * @since v15.9.0
++++     */
++++    function setInterval<T = void>(delay?: number, value?: T, options?: TimerOptions): AsyncIterable<T>;
++++    interface Scheduler {
++++        /**
++++         * An experimental API defined by the [Scheduling APIs](https://github.com/WICG/scheduling-apis) draft specification being developed as a standard Web Platform API.
++++         *
++++         * Calling `timersPromises.scheduler.wait(delay, options)` is roughly equivalent to calling `timersPromises.setTimeout(delay, undefined, options)` except that the `ref`
++++         * option is not supported.
++++         *
++++         * ```js
++++         * import { scheduler } from 'node:timers/promises';
++++         *
++++         * await scheduler.wait(1000); // Wait one second before continuing
++++         * ```
++++         * @since v16.14.0
++++         * @experimental
++++         * @param [delay=1] The number of milliseconds to wait before fulfilling the promise.
++++         */
++++        wait: (delay?: number, options?: Pick<TimerOptions, "signal">) => Promise<void>;
++++        /**
++++         * An experimental API defined by the [Scheduling APIs](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html#promise-execution-tracking) draft specification
++++         * being developed as a standard Web Platform API.
++++         * Calling `timersPromises.scheduler.yield()` is equivalent to calling `timersPromises.setImmediate()` with no arguments.
++++         * @since v16.14.0
++++         * @experimental
++++         */
++++        yield: () => Promise<void>;
++++    }
++++    const scheduler: Scheduler;
++++}
++++declare module "node:timers/promises" {
++++    export * from "timers/promises";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..8406f62156ed20ea8a4ec0dae5d5e58a4c15cb6e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,1217 @@@@@
++++/**
++++ * The `node:tls` module provides an implementation of the Transport Layer Security
++++ * (TLS) and Secure Socket Layer (SSL) protocols that is built on top of OpenSSL.
++++ * The module can be accessed using:
++++ *
++++ * ```js
++++ * import tls from 'node:tls';
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/tls.js)
++++ */
++++declare module "tls" {
++++    import { X509Certificate } from "node:crypto";
++++    import * as net from "node:net";
++++    import * as stream from "stream";
++++    const CLIENT_RENEG_LIMIT: number;
++++    const CLIENT_RENEG_WINDOW: number;
++++    interface Certificate {
++++        /**
++++         * Country code.
++++         */
++++        C: string;
++++        /**
++++         * Street.
++++         */
++++        ST: string;
++++        /**
++++         * Locality.
++++         */
++++        L: string;
++++        /**
++++         * Organization.
++++         */
++++        O: string;
++++        /**
++++         * Organizational unit.
++++         */
++++        OU: string;
++++        /**
++++         * Common name.
++++         */
++++        CN: string;
++++    }
++++    interface PeerCertificate {
++++        /**
++++         * `true` if a Certificate Authority (CA), `false` otherwise.
++++         * @since v18.13.0
++++         */
++++        ca: boolean;
++++        /**
++++         * The DER encoded X.509 certificate data.
++++         */
++++        raw: Buffer;
++++        /**
++++         * The certificate subject.
++++         */
++++        subject: Certificate;
++++        /**
++++         * The certificate issuer, described in the same terms as the `subject`.
++++         */
++++        issuer: Certificate;
++++        /**
++++         * The date-time the certificate is valid from.
++++         */
++++        valid_from: string;
++++        /**
++++         * The date-time the certificate is valid to.
++++         */
++++        valid_to: string;
++++        /**
++++         * The certificate serial number, as a hex string.
++++         */
++++        serialNumber: string;
++++        /**
++++         * The SHA-1 digest of the DER encoded certificate.
++++         * It is returned as a `:` separated hexadecimal string.
++++         */
++++        fingerprint: string;
++++        /**
++++         * The SHA-256 digest of the DER encoded certificate.
++++         * It is returned as a `:` separated hexadecimal string.
++++         */
++++        fingerprint256: string;
++++        /**
++++         * The SHA-512 digest of the DER encoded certificate.
++++         * It is returned as a `:` separated hexadecimal string.
++++         */
++++        fingerprint512: string;
++++        /**
++++         * The extended key usage, a set of OIDs.
++++         */
++++        ext_key_usage?: string[];
++++        /**
++++         * A string containing concatenated names for the subject,
++++         * an alternative to the `subject` names.
++++         */
++++        subjectaltname?: string;
++++        /**
++++         * An array describing the AuthorityInfoAccess, used with OCSP.
++++         */
++++        infoAccess?: NodeJS.Dict<string[]>;
++++        /**
++++         * For RSA keys: The RSA bit size.
++++         *
++++         * For EC keys: The key size in bits.
++++         */
++++        bits?: number;
++++        /**
++++         * The RSA exponent, as a string in hexadecimal number notation.
++++         */
++++        exponent?: string;
++++        /**
++++         * The RSA modulus, as a hexadecimal string.
++++         */
++++        modulus?: string;
++++        /**
++++         * The public key.
++++         */
++++        pubkey?: Buffer;
++++        /**
++++         * The ASN.1 name of the OID of the elliptic curve.
++++         * Well-known curves are identified by an OID.
++++         * While it is unusual, it is possible that the curve
++++         * is identified by its mathematical properties,
++++         * in which case it will not have an OID.
++++         */
++++        asn1Curve?: string;
++++        /**
++++         * The NIST name for the elliptic curve, if it has one
++++         * (not all well-known curves have been assigned names by NIST).
++++         */
++++        nistCurve?: string;
++++    }
++++    interface DetailedPeerCertificate extends PeerCertificate {
++++        /**
++++         * The issuer certificate object.
++++         * For self-signed certificates, this may be a circular reference.
++++         */
++++        issuerCertificate: DetailedPeerCertificate;
++++    }
++++    interface CipherNameAndProtocol {
++++        /**
++++         * The cipher name.
++++         */
++++        name: string;
++++        /**
++++         * SSL/TLS protocol version.
++++         */
++++        version: string;
++++        /**
++++         * IETF name for the cipher suite.
++++         */
++++        standardName: string;
++++    }
++++    interface EphemeralKeyInfo {
++++        /**
++++         * The supported types are 'DH' and 'ECDH'.
++++         */
++++        type: string;
++++        /**
++++         * The name property is available only when type is 'ECDH'.
++++         */
++++        name?: string | undefined;
++++        /**
++++         * The size of parameter of an ephemeral key exchange.
++++         */
++++        size: number;
++++    }
++++    interface KeyObject {
++++        /**
++++         * Private keys in PEM format.
++++         */
++++        pem: string | Buffer;
++++        /**
++++         * Optional passphrase.
++++         */
++++        passphrase?: string | undefined;
++++    }
++++    interface PxfObject {
++++        /**
++++         * PFX or PKCS12 encoded private key and certificate chain.
++++         */
++++        buf: string | Buffer;
++++        /**
++++         * Optional passphrase.
++++         */
++++        passphrase?: string | undefined;
++++    }
++++    interface TLSSocketOptions extends SecureContextOptions, CommonConnectionOptions {
++++        /**
++++         * If true the TLS socket will be instantiated in server-mode.
++++         * Defaults to false.
++++         */
++++        isServer?: boolean | undefined;
++++        /**
++++         * An optional net.Server instance.
++++         */
++++        server?: net.Server | undefined;
++++        /**
++++         * An optional Buffer instance containing a TLS session.
++++         */
++++        session?: Buffer | undefined;
++++        /**
++++         * If true, specifies that the OCSP status request extension will be
++++         * added to the client hello and an 'OCSPResponse' event will be
++++         * emitted on the socket before establishing a secure communication
++++         */
++++        requestOCSP?: boolean | undefined;
++++    }
++++    /**
++++     * Performs transparent encryption of written data and all required TLS
++++     * negotiation.
++++     *
++++     * Instances of `tls.TLSSocket` implement the duplex `Stream` interface.
++++     *
++++     * Methods that return TLS connection metadata (e.g.{@link TLSSocket.getPeerCertificate}) will only return data while the
++++     * connection is open.
++++     * @since v0.11.4
++++     */
++++    class TLSSocket extends net.Socket {
++++        /**
++++         * Construct a new tls.TLSSocket object from an existing TCP socket.
++++         */
++++        constructor(socket: net.Socket | stream.Duplex, options?: TLSSocketOptions);
++++        /**
++++         * This property is `true` if the peer certificate was signed by one of the CAs
++++         * specified when creating the `tls.TLSSocket` instance, otherwise `false`.
++++         * @since v0.11.4
++++         */
++++        authorized: boolean;
++++        /**
++++         * Returns the reason why the peer's certificate was not been verified. This
++++         * property is set only when `tlsSocket.authorized === false`.
++++         * @since v0.11.4
++++         */
++++        authorizationError: Error;
++++        /**
++++         * Always returns `true`. This may be used to distinguish TLS sockets from regular`net.Socket` instances.
++++         * @since v0.11.4
++++         */
++++        encrypted: true;
++++        /**
++++         * String containing the selected ALPN protocol.
++++         * Before a handshake has completed, this value is always null.
++++         * When a handshake is completed but not ALPN protocol was selected, tlsSocket.alpnProtocol equals false.
++++         */
++++        alpnProtocol: string | false | null;
++++        /**
++++         * Returns an object representing the local certificate. The returned object has
++++         * some properties corresponding to the fields of the certificate.
++++         *
++++         * See {@link TLSSocket.getPeerCertificate} for an example of the certificate
++++         * structure.
++++         *
++++         * If there is no local certificate, an empty object will be returned. If the
++++         * socket has been destroyed, `null` will be returned.
++++         * @since v11.2.0
++++         */
++++        getCertificate(): PeerCertificate | object | null;
++++        /**
++++         * Returns an object containing information on the negotiated cipher suite.
++++         *
++++         * For example, a TLSv1.2 protocol with AES256-SHA cipher:
++++         *
++++         * ```json
++++         * {
++++         *     "name": "AES256-SHA",
++++         *     "standardName": "TLS_RSA_WITH_AES_256_CBC_SHA",
++++         *     "version": "SSLv3"
++++         * }
++++         * ```
++++         *
++++         * See [SSL\_CIPHER\_get\_name](https://www.openssl.org/docs/man1.1.1/man3/SSL_CIPHER_get_name.html) for more information.
++++         * @since v0.11.4
++++         */
++++        getCipher(): CipherNameAndProtocol;
++++        /**
++++         * Returns an object representing the type, name, and size of parameter of
++++         * an ephemeral key exchange in `perfect forward secrecy` on a client
++++         * connection. It returns an empty object when the key exchange is not
++++         * ephemeral. As this is only supported on a client socket; `null` is returned
++++         * if called on a server socket. The supported types are `'DH'` and `'ECDH'`. The `name` property is available only when type is `'ECDH'`.
++++         *
++++         * For example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`.
++++         * @since v5.0.0
++++         */
++++        getEphemeralKeyInfo(): EphemeralKeyInfo | object | null;
++++        /**
++++         * As the `Finished` messages are message digests of the complete handshake
++++         * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can
++++         * be used for external authentication procedures when the authentication
++++         * provided by SSL/TLS is not desired or is not enough.
++++         *
++++         * Corresponds to the `SSL_get_finished` routine in OpenSSL and may be used
++++         * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929).
++++         * @since v9.9.0
++++         * @return The latest `Finished` message that has been sent to the socket as part of a SSL/TLS handshake, or `undefined` if no `Finished` message has been sent yet.
++++         */
++++        getFinished(): Buffer | undefined;
++++        /**
++++         * Returns an object representing the peer's certificate. If the peer does not
++++         * provide a certificate, an empty object will be returned. If the socket has been
++++         * destroyed, `null` will be returned.
++++         *
++++         * If the full certificate chain was requested, each certificate will include an`issuerCertificate` property containing an object representing its issuer's
++++         * certificate.
++++         * @since v0.11.4
++++         * @param detailed Include the full certificate chain if `true`, otherwise include just the peer's certificate.
++++         * @return A certificate object.
++++         */
++++        getPeerCertificate(detailed: true): DetailedPeerCertificate;
++++        getPeerCertificate(detailed?: false): PeerCertificate;
++++        getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate;
++++        /**
++++         * As the `Finished` messages are message digests of the complete handshake
++++         * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can
++++         * be used for external authentication procedures when the authentication
++++         * provided by SSL/TLS is not desired or is not enough.
++++         *
++++         * Corresponds to the `SSL_get_peer_finished` routine in OpenSSL and may be used
++++         * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929).
++++         * @since v9.9.0
++++         * @return The latest `Finished` message that is expected or has actually been received from the socket as part of a SSL/TLS handshake, or `undefined` if there is no `Finished` message so
++++         * far.
++++         */
++++        getPeerFinished(): Buffer | undefined;
++++        /**
++++         * Returns a string containing the negotiated SSL/TLS protocol version of the
++++         * current connection. The value `'unknown'` will be returned for connected
++++         * sockets that have not completed the handshaking process. The value `null` will
++++         * be returned for server sockets or disconnected client sockets.
++++         *
++++         * Protocol versions are:
++++         *
++++         * * `'SSLv3'`
++++         * * `'TLSv1'`
++++         * * `'TLSv1.1'`
++++         * * `'TLSv1.2'`
++++         * * `'TLSv1.3'`
++++         *
++++         * See the OpenSSL [`SSL_get_version`](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html) documentation for more information.
++++         * @since v5.7.0
++++         */
++++        getProtocol(): string | null;
++++        /**
++++         * Returns the TLS session data or `undefined` if no session was
++++         * negotiated. On the client, the data can be provided to the `session` option of {@link connect} to resume the connection. On the server, it may be useful
++++         * for debugging.
++++         *
++++         * See `Session Resumption` for more information.
++++         *
++++         * Note: `getSession()` works only for TLSv1.2 and below. For TLSv1.3, applications
++++         * must use the `'session'` event (it also works for TLSv1.2 and below).
++++         * @since v0.11.4
++++         */
++++        getSession(): Buffer | undefined;
++++        /**
++++         * See [SSL\_get\_shared\_sigalgs](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_sigalgs.html) for more information.
++++         * @since v12.11.0
++++         * @return List of signature algorithms shared between the server and the client in the order of decreasing preference.
++++         */
++++        getSharedSigalgs(): string[];
++++        /**
++++         * For a client, returns the TLS session ticket if one is available, or`undefined`. For a server, always returns `undefined`.
++++         *
++++         * It may be useful for debugging.
++++         *
++++         * See `Session Resumption` for more information.
++++         * @since v0.11.4
++++         */
++++        getTLSTicket(): Buffer | undefined;
++++        /**
++++         * See `Session Resumption` for more information.
++++         * @since v0.5.6
++++         * @return `true` if the session was reused, `false` otherwise.
++++         */
++++        isSessionReused(): boolean;
++++        /**
++++         * The `tlsSocket.renegotiate()` method initiates a TLS renegotiation process.
++++         * Upon completion, the `callback` function will be passed a single argument
++++         * that is either an `Error` (if the request failed) or `null`.
++++         *
++++         * This method can be used to request a peer's certificate after the secure
++++         * connection has been established.
++++         *
++++         * When running as the server, the socket will be destroyed with an error after `handshakeTimeout` timeout.
++++         *
++++         * For TLSv1.3, renegotiation cannot be initiated, it is not supported by the
++++         * protocol.
++++         * @since v0.11.8
++++         * @param callback If `renegotiate()` returned `true`, callback is attached once to the `'secure'` event. If `renegotiate()` returned `false`, `callback` will be called in the next tick with
++++         * an error, unless the `tlsSocket` has been destroyed, in which case `callback` will not be called at all.
++++         * @return `true` if renegotiation was initiated, `false` otherwise.
++++         */
++++        renegotiate(
++++            options: {
++++                rejectUnauthorized?: boolean | undefined;
++++                requestCert?: boolean | undefined;
++++            },
++++            callback: (err: Error | null) => void,
++++        ): undefined | boolean;
++++        /**
++++         * The `tlsSocket.setMaxSendFragment()` method sets the maximum TLS fragment size.
++++         * Returns `true` if setting the limit succeeded; `false` otherwise.
++++         *
++++         * Smaller fragment sizes decrease the buffering latency on the client: larger
++++         * fragments are buffered by the TLS layer until the entire fragment is received
++++         * and its integrity is verified; large fragments can span multiple roundtrips
++++         * and their processing can be delayed due to packet loss or reordering. However,
++++         * smaller fragments add extra TLS framing bytes and CPU overhead, which may
++++         * decrease overall server throughput.
++++         * @since v0.11.11
++++         * @param [size=16384] The maximum TLS fragment size. The maximum value is `16384`.
++++         */
++++        setMaxSendFragment(size: number): boolean;
++++        /**
++++         * Disables TLS renegotiation for this `TLSSocket` instance. Once called, attempts
++++         * to renegotiate will trigger an `'error'` event on the `TLSSocket`.
++++         * @since v8.4.0
++++         */
++++        disableRenegotiation(): void;
++++        /**
++++         * When enabled, TLS packet trace information is written to `stderr`. This can be
++++         * used to debug TLS connection problems.
++++         *
++++         * The format of the output is identical to the output of`openssl s_client -trace` or `openssl s_server -trace`. While it is produced by
++++         * OpenSSL's `SSL_trace()` function, the format is undocumented, can change
++++         * without notice, and should not be relied on.
++++         * @since v12.2.0
++++         */
++++        enableTrace(): void;
++++        /**
++++         * Returns the peer certificate as an `X509Certificate` object.
++++         *
++++         * If there is no peer certificate, or the socket has been destroyed,`undefined` will be returned.
++++         * @since v15.9.0
++++         */
++++        getPeerX509Certificate(): X509Certificate | undefined;
++++        /**
++++         * Returns the local certificate as an `X509Certificate` object.
++++         *
++++         * If there is no local certificate, or the socket has been destroyed,`undefined` will be returned.
++++         * @since v15.9.0
++++         */
++++        getX509Certificate(): X509Certificate | undefined;
++++        /**
++++         * Keying material is used for validations to prevent different kind of attacks in
++++         * network protocols, for example in the specifications of IEEE 802.1X.
++++         *
++++         * Example
++++         *
++++         * ```js
++++         * const keyingMaterial = tlsSocket.exportKeyingMaterial(
++++         *   128,
++++         *   'client finished');
++++         *
++++         * /*
++++         *  Example return value of keyingMaterial:
++++         *  <Buffer 76 26 af 99 c5 56 8e 42 09 91 ef 9f 93 cb ad 6c 7b 65 f8 53 f1 d8 d9
++++         *     12 5a 33 b8 b5 25 df 7b 37 9f e0 e2 4f b8 67 83 a3 2f cd 5d 41 42 4c 91
++++         *     74 ef 2c ... 78 more bytes>
++++         *
++++         * ```
++++         *
++++         * See the OpenSSL [`SSL_export_keying_material`](https://www.openssl.org/docs/man1.1.1/man3/SSL_export_keying_material.html) documentation for more
++++         * information.
++++         * @since v13.10.0, v12.17.0
++++         * @param length number of bytes to retrieve from keying material
++++         * @param label an application specific label, typically this will be a value from the [IANA Exporter Label
++++         * Registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#exporter-labels).
++++         * @param context Optionally provide a context.
++++         * @return requested bytes of the keying material
++++         */
++++        exportKeyingMaterial(length: number, label: string, context: Buffer): Buffer;
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        addListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
++++        addListener(event: "secureConnect", listener: () => void): this;
++++        addListener(event: "session", listener: (session: Buffer) => void): this;
++++        addListener(event: "keylog", listener: (line: Buffer) => void): this;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        emit(event: "OCSPResponse", response: Buffer): boolean;
++++        emit(event: "secureConnect"): boolean;
++++        emit(event: "session", session: Buffer): boolean;
++++        emit(event: "keylog", line: Buffer): boolean;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        on(event: "OCSPResponse", listener: (response: Buffer) => void): this;
++++        on(event: "secureConnect", listener: () => void): this;
++++        on(event: "session", listener: (session: Buffer) => void): this;
++++        on(event: "keylog", listener: (line: Buffer) => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        once(event: "OCSPResponse", listener: (response: Buffer) => void): this;
++++        once(event: "secureConnect", listener: () => void): this;
++++        once(event: "session", listener: (session: Buffer) => void): this;
++++        once(event: "keylog", listener: (line: Buffer) => void): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        prependListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
++++        prependListener(event: "secureConnect", listener: () => void): this;
++++        prependListener(event: "session", listener: (session: Buffer) => void): this;
++++        prependListener(event: "keylog", listener: (line: Buffer) => void): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "OCSPResponse", listener: (response: Buffer) => void): this;
++++        prependOnceListener(event: "secureConnect", listener: () => void): this;
++++        prependOnceListener(event: "session", listener: (session: Buffer) => void): this;
++++        prependOnceListener(event: "keylog", listener: (line: Buffer) => void): this;
++++    }
++++    interface CommonConnectionOptions {
++++        /**
++++         * An optional TLS context object from tls.createSecureContext()
++++         */
++++        secureContext?: SecureContext | undefined;
++++        /**
++++         * When enabled, TLS packet trace information is written to `stderr`. This can be
++++         * used to debug TLS connection problems.
++++         * @default false
++++         */
++++        enableTrace?: boolean | undefined;
++++        /**
++++         * If true the server will request a certificate from clients that
++++         * connect and attempt to verify that certificate. Defaults to
++++         * false.
++++         */
++++        requestCert?: boolean | undefined;
++++        /**
++++         * An array of strings or a Buffer naming possible ALPN protocols.
++++         * (Protocols should be ordered by their priority.)
++++         */
++++        ALPNProtocols?: string[] | Uint8Array[] | Uint8Array | undefined;
++++        /**
++++         * SNICallback(servername, cb) <Function> A function that will be
++++         * called if the client supports SNI TLS extension. Two arguments
++++         * will be passed when called: servername and cb. SNICallback should
++++         * invoke cb(null, ctx), where ctx is a SecureContext instance.
++++         * (tls.createSecureContext(...) can be used to get a proper
++++         * SecureContext.) If SNICallback wasn't provided the default callback
++++         * with high-level API will be used (see below).
++++         */
++++        SNICallback?: ((servername: string, cb: (err: Error | null, ctx?: SecureContext) => void) => void) | undefined;
++++        /**
++++         * If true the server will reject any connection which is not
++++         * authorized with the list of supplied CAs. This option only has an
++++         * effect if requestCert is true.
++++         * @default true
++++         */
++++        rejectUnauthorized?: boolean | undefined;
++++    }
++++    interface TlsOptions extends SecureContextOptions, CommonConnectionOptions, net.ServerOpts {
++++        /**
++++         * Abort the connection if the SSL/TLS handshake does not finish in the
++++         * specified number of milliseconds. A 'tlsClientError' is emitted on
++++         * the tls.Server object whenever a handshake times out. Default:
++++         * 120000 (120 seconds).
++++         */
++++        handshakeTimeout?: number | undefined;
++++        /**
++++         * The number of seconds after which a TLS session created by the
++++         * server will no longer be resumable. See Session Resumption for more
++++         * information. Default: 300.
++++         */
++++        sessionTimeout?: number | undefined;
++++        /**
++++         * 48-bytes of cryptographically strong pseudo-random data.
++++         */
++++        ticketKeys?: Buffer | undefined;
++++        /**
++++         * @param socket
++++         * @param identity identity parameter sent from the client.
++++         * @return pre-shared key that must either be
++++         * a buffer or `null` to stop the negotiation process. Returned PSK must be
++++         * compatible with the selected cipher's digest.
++++         *
++++         * When negotiating TLS-PSK (pre-shared keys), this function is called
++++         * with the identity provided by the client.
++++         * If the return value is `null` the negotiation process will stop and an
++++         * "unknown_psk_identity" alert message will be sent to the other party.
++++         * If the server wishes to hide the fact that the PSK identity was not known,
++++         * the callback must provide some random data as `psk` to make the connection
++++         * fail with "decrypt_error" before negotiation is finished.
++++         * PSK ciphers are disabled by default, and using TLS-PSK thus
++++         * requires explicitly specifying a cipher suite with the `ciphers` option.
++++         * More information can be found in the RFC 4279.
++++         */
++++        pskCallback?(socket: TLSSocket, identity: string): DataView | NodeJS.TypedArray | null;
++++        /**
++++         * hint to send to a client to help
++++         * with selecting the identity during TLS-PSK negotiation. Will be ignored
++++         * in TLS 1.3. Upon failing to set pskIdentityHint `tlsClientError` will be
++++         * emitted with `ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED` code.
++++         */
++++        pskIdentityHint?: string | undefined;
++++    }
++++    interface PSKCallbackNegotation {
++++        psk: DataView | NodeJS.TypedArray;
++++        identity: string;
++++    }
++++    interface ConnectionOptions extends SecureContextOptions, CommonConnectionOptions {
++++        host?: string | undefined;
++++        port?: number | undefined;
++++        path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
++++        socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket
++++        checkServerIdentity?: typeof checkServerIdentity | undefined;
++++        servername?: string | undefined; // SNI TLS Extension
++++        session?: Buffer | undefined;
++++        minDHSize?: number | undefined;
++++        lookup?: net.LookupFunction | undefined;
++++        timeout?: number | undefined;
++++        /**
++++         * When negotiating TLS-PSK (pre-shared keys), this function is called
++++         * with optional identity `hint` provided by the server or `null`
++++         * in case of TLS 1.3 where `hint` was removed.
++++         * It will be necessary to provide a custom `tls.checkServerIdentity()`
++++         * for the connection as the default one will try to check hostname/IP
++++         * of the server against the certificate but that's not applicable for PSK
++++         * because there won't be a certificate present.
++++         * More information can be found in the RFC 4279.
++++         *
++++         * @param hint message sent from the server to help client
++++         * decide which identity to use during negotiation.
++++         * Always `null` if TLS 1.3 is used.
++++         * @returns Return `null` to stop the negotiation process. `psk` must be
++++         * compatible with the selected cipher's digest.
++++         * `identity` must use UTF-8 encoding.
++++         */
++++        pskCallback?(hint: string | null): PSKCallbackNegotation | null;
++++    }
++++    /**
++++     * Accepts encrypted connections using TLS or SSL.
++++     * @since v0.3.2
++++     */
++++    class Server extends net.Server {
++++        constructor(secureConnectionListener?: (socket: TLSSocket) => void);
++++        constructor(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void);
++++        /**
++++         * The `server.addContext()` method adds a secure context that will be used if
++++         * the client request's SNI name matches the supplied `hostname` (or wildcard).
++++         *
++++         * When there are multiple matching contexts, the most recently added one is
++++         * used.
++++         * @since v0.5.3
++++         * @param hostname A SNI host name or wildcard (e.g. `'*'`)
++++         * @param context An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc), or a TLS context object created
++++         * with {@link createSecureContext} itself.
++++         */
++++        addContext(hostname: string, context: SecureContextOptions): void;
++++        /**
++++         * Returns the session ticket keys.
++++         *
++++         * See `Session Resumption` for more information.
++++         * @since v3.0.0
++++         * @return A 48-byte buffer containing the session ticket keys.
++++         */
++++        getTicketKeys(): Buffer;
++++        /**
++++         * The `server.setSecureContext()` method replaces the secure context of an
++++         * existing server. Existing connections to the server are not interrupted.
++++         * @since v11.0.0
++++         * @param options An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc).
++++         */
++++        setSecureContext(options: SecureContextOptions): void;
++++        /**
++++         * Sets the session ticket keys.
++++         *
++++         * Changes to the ticket keys are effective only for future server connections.
++++         * Existing or currently pending server connections will use the previous keys.
++++         *
++++         * See `Session Resumption` for more information.
++++         * @since v3.0.0
++++         * @param keys A 48-byte buffer containing the session ticket keys.
++++         */
++++        setTicketKeys(keys: Buffer): void;
++++        /**
++++         * events.EventEmitter
++++         * 1. tlsClientError
++++         * 2. newSession
++++         * 3. OCSPRequest
++++         * 4. resumeSession
++++         * 5. secureConnection
++++         * 6. keylog
++++         */
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
++++        addListener(
++++            event: "newSession",
++++            listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void,
++++        ): this;
++++        addListener(
++++            event: "OCSPRequest",
++++            listener: (
++++                certificate: Buffer,
++++                issuer: Buffer,
++++                callback: (err: Error | null, resp: Buffer) => void,
++++            ) => void,
++++        ): this;
++++        addListener(
++++            event: "resumeSession",
++++            listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void,
++++        ): this;
++++        addListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
++++        addListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean;
++++        emit(event: "newSession", sessionId: Buffer, sessionData: Buffer, callback: () => void): boolean;
++++        emit(
++++            event: "OCSPRequest",
++++            certificate: Buffer,
++++            issuer: Buffer,
++++            callback: (err: Error | null, resp: Buffer) => void,
++++        ): boolean;
++++        emit(
++++            event: "resumeSession",
++++            sessionId: Buffer,
++++            callback: (err: Error | null, sessionData: Buffer | null) => void,
++++        ): boolean;
++++        emit(event: "secureConnection", tlsSocket: TLSSocket): boolean;
++++        emit(event: "keylog", line: Buffer, tlsSocket: TLSSocket): boolean;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        on(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
++++        on(event: "newSession", listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void): this;
++++        on(
++++            event: "OCSPRequest",
++++            listener: (
++++                certificate: Buffer,
++++                issuer: Buffer,
++++                callback: (err: Error | null, resp: Buffer) => void,
++++            ) => void,
++++        ): this;
++++        on(
++++            event: "resumeSession",
++++            listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void,
++++        ): this;
++++        on(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
++++        on(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        once(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
++++        once(
++++            event: "newSession",
++++            listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void,
++++        ): this;
++++        once(
++++            event: "OCSPRequest",
++++            listener: (
++++                certificate: Buffer,
++++                issuer: Buffer,
++++                callback: (err: Error | null, resp: Buffer) => void,
++++            ) => void,
++++        ): this;
++++        once(
++++            event: "resumeSession",
++++            listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void,
++++        ): this;
++++        once(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
++++        once(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
++++        prependListener(
++++            event: "newSession",
++++            listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void,
++++        ): this;
++++        prependListener(
++++            event: "OCSPRequest",
++++            listener: (
++++                certificate: Buffer,
++++                issuer: Buffer,
++++                callback: (err: Error | null, resp: Buffer) => void,
++++            ) => void,
++++        ): this;
++++        prependListener(
++++            event: "resumeSession",
++++            listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void,
++++        ): this;
++++        prependListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
++++        prependListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
++++        prependOnceListener(
++++            event: "newSession",
++++            listener: (sessionId: Buffer, sessionData: Buffer, callback: () => void) => void,
++++        ): this;
++++        prependOnceListener(
++++            event: "OCSPRequest",
++++            listener: (
++++                certificate: Buffer,
++++                issuer: Buffer,
++++                callback: (err: Error | null, resp: Buffer) => void,
++++            ) => void,
++++        ): this;
++++        prependOnceListener(
++++            event: "resumeSession",
++++            listener: (sessionId: Buffer, callback: (err: Error | null, sessionData: Buffer | null) => void) => void,
++++        ): this;
++++        prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
++++        prependOnceListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
++++    }
++++    /**
++++     * @deprecated since v0.11.3 Use `tls.TLSSocket` instead.
++++     */
++++    interface SecurePair {
++++        encrypted: TLSSocket;
++++        cleartext: TLSSocket;
++++    }
++++    type SecureVersion = "TLSv1.3" | "TLSv1.2" | "TLSv1.1" | "TLSv1";
++++    interface SecureContextOptions {
++++        /**
++++         * If set, this will be called when a client opens a connection using the ALPN extension.
++++         * One argument will be passed to the callback: an object containing `servername` and `protocols` fields,
++++         * respectively containing the server name from the SNI extension (if any) and an array of
++++         * ALPN protocol name strings. The callback must return either one of the strings listed in `protocols`,
++++         * which will be returned to the client as the selected ALPN protocol, or `undefined`,
++++         * to reject the connection with a fatal alert. If a string is returned that does not match one of
++++         * the client's ALPN protocols, an error will be thrown.
++++         * This option cannot be used with the `ALPNProtocols` option, and setting both options will throw an error.
++++         */
++++        ALPNCallback?: ((arg: { servername: string; protocols: string[] }) => string | undefined) | undefined;
++++        /**
++++         * Optionally override the trusted CA certificates. Default is to trust
++++         * the well-known CAs curated by Mozilla. Mozilla's CAs are completely
++++         * replaced when CAs are explicitly specified using this option.
++++         */
++++        ca?: string | Buffer | Array<string | Buffer> | undefined;
++++        /**
++++         *  Cert chains in PEM format. One cert chain should be provided per
++++         *  private key. Each cert chain should consist of the PEM formatted
++++         *  certificate for a provided private key, followed by the PEM
++++         *  formatted intermediate certificates (if any), in order, and not
++++         *  including the root CA (the root CA must be pre-known to the peer,
++++         *  see ca). When providing multiple cert chains, they do not have to
++++         *  be in the same order as their private keys in key. If the
++++         *  intermediate certificates are not provided, the peer will not be
++++         *  able to validate the certificate, and the handshake will fail.
++++         */
++++        cert?: string | Buffer | Array<string | Buffer> | undefined;
++++        /**
++++         *  Colon-separated list of supported signature algorithms. The list
++++         *  can contain digest algorithms (SHA256, MD5 etc.), public key
++++         *  algorithms (RSA-PSS, ECDSA etc.), combination of both (e.g
++++         *  'RSA+SHA384') or TLS v1.3 scheme names (e.g. rsa_pss_pss_sha512).
++++         */
++++        sigalgs?: string | undefined;
++++        /**
++++         * Cipher suite specification, replacing the default. For more
++++         * information, see modifying the default cipher suite. Permitted
++++         * ciphers can be obtained via tls.getCiphers(). Cipher names must be
++++         * uppercased in order for OpenSSL to accept them.
++++         */
++++        ciphers?: string | undefined;
++++        /**
++++         * Name of an OpenSSL engine which can provide the client certificate.
++++         */
++++        clientCertEngine?: string | undefined;
++++        /**
++++         * PEM formatted CRLs (Certificate Revocation Lists).
++++         */
++++        crl?: string | Buffer | Array<string | Buffer> | undefined;
++++        /**
++++         * `'auto'` or custom Diffie-Hellman parameters, required for non-ECDHE perfect forward secrecy.
++++         * If omitted or invalid, the parameters are silently discarded and DHE ciphers will not be available.
++++         * ECDHE-based perfect forward secrecy will still be available.
++++         */
++++        dhparam?: string | Buffer | undefined;
++++        /**
++++         * A string describing a named curve or a colon separated list of curve
++++         * NIDs or names, for example P-521:P-384:P-256, to use for ECDH key
++++         * agreement. Set to auto to select the curve automatically. Use
++++         * crypto.getCurves() to obtain a list of available curve names. On
++++         * recent releases, openssl ecparam -list_curves will also display the
++++         * name and description of each available elliptic curve. Default:
++++         * tls.DEFAULT_ECDH_CURVE.
++++         */
++++        ecdhCurve?: string | undefined;
++++        /**
++++         * Attempt to use the server's cipher suite preferences instead of the
++++         * client's. When true, causes SSL_OP_CIPHER_SERVER_PREFERENCE to be
++++         * set in secureOptions
++++         */
++++        honorCipherOrder?: boolean | undefined;
++++        /**
++++         * Private keys in PEM format. PEM allows the option of private keys
++++         * being encrypted. Encrypted keys will be decrypted with
++++         * options.passphrase. Multiple keys using different algorithms can be
++++         * provided either as an array of unencrypted key strings or buffers,
++++         * or an array of objects in the form {pem: <string|buffer>[,
++++         * passphrase: <string>]}. The object form can only occur in an array.
++++         * object.passphrase is optional. Encrypted keys will be decrypted with
++++         * object.passphrase if provided, or options.passphrase if it is not.
++++         */
++++        key?: string | Buffer | Array<string | Buffer | KeyObject> | undefined;
++++        /**
++++         * Name of an OpenSSL engine to get private key from. Should be used
++++         * together with privateKeyIdentifier.
++++         */
++++        privateKeyEngine?: string | undefined;
++++        /**
++++         * Identifier of a private key managed by an OpenSSL engine. Should be
++++         * used together with privateKeyEngine. Should not be set together with
++++         * key, because both options define a private key in different ways.
++++         */
++++        privateKeyIdentifier?: string | undefined;
++++        /**
++++         * Optionally set the maximum TLS version to allow. One
++++         * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the
++++         * `secureProtocol` option, use one or the other.
++++         * **Default:** `'TLSv1.3'`, unless changed using CLI options. Using
++++         * `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using `--tls-max-v1.3` sets the default to
++++         * `'TLSv1.3'`. If multiple of the options are provided, the highest maximum is used.
++++         */
++++        maxVersion?: SecureVersion | undefined;
++++        /**
++++         * Optionally set the minimum TLS version to allow. One
++++         * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the
++++         * `secureProtocol` option, use one or the other.  It is not recommended to use
++++         * less than TLSv1.2, but it may be required for interoperability.
++++         * **Default:** `'TLSv1.2'`, unless changed using CLI options. Using
++++         * `--tls-v1.0` sets the default to `'TLSv1'`. Using `--tls-v1.1` sets the default to
++++         * `'TLSv1.1'`. Using `--tls-min-v1.3` sets the default to
++++         * 'TLSv1.3'. If multiple of the options are provided, the lowest minimum is used.
++++         */
++++        minVersion?: SecureVersion | undefined;
++++        /**
++++         * Shared passphrase used for a single private key and/or a PFX.
++++         */
++++        passphrase?: string | undefined;
++++        /**
++++         * PFX or PKCS12 encoded private key and certificate chain. pfx is an
++++         * alternative to providing key and cert individually. PFX is usually
++++         * encrypted, if it is, passphrase will be used to decrypt it. Multiple
++++         * PFX can be provided either as an array of unencrypted PFX buffers,
++++         * or an array of objects in the form {buf: <string|buffer>[,
++++         * passphrase: <string>]}. The object form can only occur in an array.
++++         * object.passphrase is optional. Encrypted PFX will be decrypted with
++++         * object.passphrase if provided, or options.passphrase if it is not.
++++         */
++++        pfx?: string | Buffer | Array<string | Buffer | PxfObject> | undefined;
++++        /**
++++         * Optionally affect the OpenSSL protocol behavior, which is not
++++         * usually necessary. This should be used carefully if at all! Value is
++++         * a numeric bitmask of the SSL_OP_* options from OpenSSL Options
++++         */
++++        secureOptions?: number | undefined; // Value is a numeric bitmask of the `SSL_OP_*` options
++++        /**
++++         * Legacy mechanism to select the TLS protocol version to use, it does
++++         * not support independent control of the minimum and maximum version,
++++         * and does not support limiting the protocol to TLSv1.3. Use
++++         * minVersion and maxVersion instead. The possible values are listed as
++++         * SSL_METHODS, use the function names as strings. For example, use
++++         * 'TLSv1_1_method' to force TLS version 1.1, or 'TLS_method' to allow
++++         * any TLS protocol version up to TLSv1.3. It is not recommended to use
++++         * TLS versions less than 1.2, but it may be required for
++++         * interoperability. Default: none, see minVersion.
++++         */
++++        secureProtocol?: string | undefined;
++++        /**
++++         * Opaque identifier used by servers to ensure session state is not
++++         * shared between applications. Unused by clients.
++++         */
++++        sessionIdContext?: string | undefined;
++++        /**
++++         * 48-bytes of cryptographically strong pseudo-random data.
++++         * See Session Resumption for more information.
++++         */
++++        ticketKeys?: Buffer | undefined;
++++        /**
++++         * The number of seconds after which a TLS session created by the
++++         * server will no longer be resumable. See Session Resumption for more
++++         * information. Default: 300.
++++         */
++++        sessionTimeout?: number | undefined;
++++    }
++++    interface SecureContext {
++++        context: any;
++++    }
++++    /**
++++     * Verifies the certificate `cert` is issued to `hostname`.
++++     *
++++     * Returns [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object, populating it with `reason`, `host`, and `cert` on
++++     * failure. On success, returns [undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Undefined_type).
++++     *
++++     * This function is intended to be used in combination with the`checkServerIdentity` option that can be passed to {@link connect} and as
++++     * such operates on a `certificate object`. For other purposes, consider using `x509.checkHost()` instead.
++++     *
++++     * This function can be overwritten by providing an alternative function as the `options.checkServerIdentity` option that is passed to `tls.connect()`. The
++++     * overwriting function can call `tls.checkServerIdentity()` of course, to augment
++++     * the checks done with additional verification.
++++     *
++++     * This function is only called if the certificate passed all other checks, such as
++++     * being issued by trusted CA (`options.ca`).
++++     *
++++     * Earlier versions of Node.js incorrectly accepted certificates for a given`hostname` if a matching `uniformResourceIdentifier` subject alternative name
++++     * was present (see [CVE-2021-44531](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44531)). Applications that wish to accept`uniformResourceIdentifier` subject alternative names can use
++++     * a custom `options.checkServerIdentity` function that implements the desired behavior.
++++     * @since v0.8.4
++++     * @param hostname The host name or IP address to verify the certificate against.
++++     * @param cert A `certificate object` representing the peer's certificate.
++++     */
++++    function checkServerIdentity(hostname: string, cert: PeerCertificate): Error | undefined;
++++    /**
++++     * Creates a new {@link Server}. The `secureConnectionListener`, if provided, is
++++     * automatically set as a listener for the `'secureConnection'` event.
++++     *
++++     * The `ticketKeys` options is automatically shared between `node:cluster` module
++++     * workers.
++++     *
++++     * The following illustrates a simple echo server:
++++     *
++++     * ```js
++++     * import tls from 'node:tls';
++++     * import fs from 'node:fs';
++++     *
++++     * const options = {
++++     *   key: fs.readFileSync('server-key.pem'),
++++     *   cert: fs.readFileSync('server-cert.pem'),
++++     *
++++     *   // This is necessary only if using client certificate authentication.
++++     *   requestCert: true,
++++     *
++++     *   // This is necessary only if the client uses a self-signed certificate.
++++     *   ca: [ fs.readFileSync('client-cert.pem') ],
++++     * };
++++     *
++++     * const server = tls.createServer(options, (socket) => {
++++     *   console.log('server connected',
++++     *               socket.authorized ? 'authorized' : 'unauthorized');
++++     *   socket.write('welcome!\n');
++++     *   socket.setEncoding('utf8');
++++     *   socket.pipe(socket);
++++     * });
++++     * server.listen(8000, () => {
++++     *   console.log('server bound');
++++     * });
++++     * ```
++++     *
++++     * The server can be tested by connecting to it using the example client from {@link connect}.
++++     * @since v0.3.2
++++     */
++++    function createServer(secureConnectionListener?: (socket: TLSSocket) => void): Server;
++++    function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server;
++++    /**
++++     * The `callback` function, if specified, will be added as a listener for the `'secureConnect'` event.
++++     *
++++     * `tls.connect()` returns a {@link TLSSocket} object.
++++     *
++++     * Unlike the `https` API, `tls.connect()` does not enable the
++++     * SNI (Server Name Indication) extension by default, which may cause some
++++     * servers to return an incorrect certificate or reject the connection
++++     * altogether. To enable SNI, set the `servername` option in addition
++++     * to `host`.
++++     *
++++     * The following illustrates a client for the echo server example from {@link createServer}:
++++     *
++++     * ```js
++++     * // Assumes an echo server that is listening on port 8000.
++++     * import tls from 'node:tls';
++++     * import fs from 'node:fs';
++++     *
++++     * const options = {
++++     *   // Necessary only if the server requires client certificate authentication.
++++     *   key: fs.readFileSync('client-key.pem'),
++++     *   cert: fs.readFileSync('client-cert.pem'),
++++     *
++++     *   // Necessary only if the server uses a self-signed certificate.
++++     *   ca: [ fs.readFileSync('server-cert.pem') ],
++++     *
++++     *   // Necessary only if the server's cert isn't for "localhost".
++++     *   checkServerIdentity: () => { return null; },
++++     * };
++++     *
++++     * const socket = tls.connect(8000, options, () => {
++++     *   console.log('client connected',
++++     *               socket.authorized ? 'authorized' : 'unauthorized');
++++     *   process.stdin.pipe(socket);
++++     *   process.stdin.resume();
++++     * });
++++     * socket.setEncoding('utf8');
++++     * socket.on('data', (data) => {
++++     *   console.log(data);
++++     * });
++++     * socket.on('end', () => {
++++     *   console.log('server ends connection');
++++     * });
++++     * ```
++++     * @since v0.11.3
++++     */
++++    function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
++++    function connect(
++++        port: number,
++++        host?: string,
++++        options?: ConnectionOptions,
++++        secureConnectListener?: () => void,
++++    ): TLSSocket;
++++    function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
++++    /**
++++     * Creates a new secure pair object with two streams, one of which reads and writes
++++     * the encrypted data and the other of which reads and writes the cleartext data.
++++     * Generally, the encrypted stream is piped to/from an incoming encrypted data
++++     * stream and the cleartext one is used as a replacement for the initial encrypted
++++     * stream.
++++     *
++++     * `tls.createSecurePair()` returns a `tls.SecurePair` object with `cleartext` and `encrypted` stream properties.
++++     *
++++     * Using `cleartext` has the same API as {@link TLSSocket}.
++++     *
++++     * The `tls.createSecurePair()` method is now deprecated in favor of`tls.TLSSocket()`. For example, the code:
++++     *
++++     * ```js
++++     * pair = tls.createSecurePair(// ... );
++++     * pair.encrypted.pipe(socket);
++++     * socket.pipe(pair.encrypted);
++++     * ```
++++     *
++++     * can be replaced by:
++++     *
++++     * ```js
++++     * secureSocket = tls.TLSSocket(socket, options);
++++     * ```
++++     *
++++     * where `secureSocket` has the same API as `pair.cleartext`.
++++     * @since v0.3.2
++++     * @deprecated Since v0.11.3 - Use {@link TLSSocket} instead.
++++     * @param context A secure context object as returned by `tls.createSecureContext()`
++++     * @param isServer `true` to specify that this TLS connection should be opened as a server.
++++     * @param requestCert `true` to specify whether a server should request a certificate from a connecting client. Only applies when `isServer` is `true`.
++++     * @param rejectUnauthorized If not `false` a server automatically reject clients with invalid certificates. Only applies when `isServer` is `true`.
++++     */
++++    function createSecurePair(
++++        context?: SecureContext,
++++        isServer?: boolean,
++++        requestCert?: boolean,
++++        rejectUnauthorized?: boolean,
++++    ): SecurePair;
++++    /**
++++     * `{@link createServer}` sets the default value of the `honorCipherOrder` option
++++     * to `true`, other APIs that create secure contexts leave it unset.
++++     *
++++     * `{@link createServer}` uses a 128 bit truncated SHA1 hash value generated
++++     * from `process.argv` as the default value of the `sessionIdContext` option, other
++++     * APIs that create secure contexts have no default value.
++++     *
++++     * The `tls.createSecureContext()` method creates a `SecureContext` object. It is
++++     * usable as an argument to several `tls` APIs, such as `server.addContext()`,
++++     * but has no public methods. The {@link Server} constructor and the {@link createServer} method do not support the `secureContext` option.
++++     *
++++     * A key is _required_ for ciphers that use certificates. Either `key` or `pfx` can be used to provide it.
++++     *
++++     * If the `ca` option is not given, then Node.js will default to using [Mozilla's publicly trusted list of
++++     * CAs](https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt).
++++     *
++++     * Custom DHE parameters are discouraged in favor of the new `dhparam: 'auto' `option. When set to `'auto'`, well-known DHE parameters of sufficient strength
++++     * will be selected automatically. Otherwise, if necessary, `openssl dhparam` can
++++     * be used to create custom parameters. The key length must be greater than or
++++     * equal to 1024 bits or else an error will be thrown. Although 1024 bits is
++++     * permissible, use 2048 bits or larger for stronger security.
++++     * @since v0.11.13
++++     */
++++    function createSecureContext(options?: SecureContextOptions): SecureContext;
++++    /**
++++     * Returns an array with the names of the supported TLS ciphers. The names are
++++     * lower-case for historical reasons, but must be uppercased to be used in
++++     * the `ciphers` option of `{@link createSecureContext}`.
++++     *
++++     * Not all supported ciphers are enabled by default. See
++++     * [Modifying the default TLS cipher suite](https://nodejs.org/docs/latest-v20.x/api/tls.html#modifying-the-default-tls-cipher-suite).
++++     *
++++     * Cipher names that start with `'tls_'` are for TLSv1.3, all the others are for
++++     * TLSv1.2 and below.
++++     *
++++     * ```js
++++     * console.log(tls.getCiphers()); // ['aes128-gcm-sha256', 'aes128-sha', ...]
++++     * ```
++++     * @since v0.10.2
++++     */
++++    function getCiphers(): string[];
++++    /**
++++     * The default curve name to use for ECDH key agreement in a tls server.
++++     * The default value is `'auto'`. See `{@link createSecureContext()}` for further
++++     * information.
++++     * @since v0.11.13
++++     */
++++    let DEFAULT_ECDH_CURVE: string;
++++    /**
++++     * The default value of the `maxVersion` option of `{@link createSecureContext()}`.
++++     * It can be assigned any of the supported TLS protocol versions,
++++     * `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. **Default:** `'TLSv1.3'`, unless
++++     * changed using CLI options. Using `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using
++++     * `--tls-max-v1.3` sets the default to `'TLSv1.3'`. If multiple of the options
++++     * are provided, the highest maximum is used.
++++     * @since v11.4.0
++++     */
++++    let DEFAULT_MAX_VERSION: SecureVersion;
++++    /**
++++     * The default value of the `minVersion` option of `{@link createSecureContext()}`.
++++     * It can be assigned any of the supported TLS protocol versions,
++++     * `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. **Default:** `'TLSv1.2'`, unless
++++     * changed using CLI options. Using `--tls-min-v1.0` sets the default to
++++     * `'TLSv1'`. Using `--tls-min-v1.1` sets the default to `'TLSv1.1'`. Using
++++     * `--tls-min-v1.3` sets the default to `'TLSv1.3'`. If multiple of the options
++++     * are provided, the lowest minimum is used.
++++     * @since v11.4.0
++++     */
++++    let DEFAULT_MIN_VERSION: SecureVersion;
++++    /**
++++     * The default value of the `ciphers` option of `{@link createSecureContext()}`.
++++     * It can be assigned any of the supported OpenSSL ciphers.
++++     * Defaults to the content of `crypto.constants.defaultCoreCipherList`, unless
++++     * changed using CLI options using `--tls-default-ciphers`.
++++     * @since v19.8.0
++++     */
++++    let DEFAULT_CIPHERS: string;
++++    /**
++++     * An immutable array of strings representing the root certificates (in PEM format)
++++     * from the bundled Mozilla CA store as supplied by the current Node.js version.
++++     *
++++     * The bundled CA store, as supplied by Node.js, is a snapshot of Mozilla CA store
++++     * that is fixed at release time. It is identical on all supported platforms.
++++     * @since v12.3.0
++++     */
++++    const rootCertificates: readonly string[];
++++}
++++declare module "node:tls" {
++++    export * from "tls";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6d4aece8fd311f954ac93249799a5e45405c4a95
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,197 @@@@@
++++/**
++++ * The `node:trace_events` module provides a mechanism to centralize tracing information
++++ * generated by V8, Node.js core, and userspace code.
++++ *
++++ * Tracing can be enabled with the `--trace-event-categories` command-line flag
++++ * or by using the `trace_events` module. The `--trace-event-categories` flag
++++ * accepts a list of comma-separated category names.
++++ *
++++ * The available categories are:
++++ *
++++ * * `node`: An empty placeholder.
++++ * * `node.async_hooks`: Enables capture of detailed [`async_hooks`](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html) trace data.
++++ * The [`async_hooks`](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html) events have a unique `asyncId` and a special `triggerId` `triggerAsyncId` property.
++++ * * `node.bootstrap`: Enables capture of Node.js bootstrap milestones.
++++ * * `node.console`: Enables capture of `console.time()` and `console.count()` output.
++++ * * `node.threadpoolwork.sync`: Enables capture of trace data for threadpool synchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`.
++++ * * `node.threadpoolwork.async`: Enables capture of trace data for threadpool asynchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`.
++++ * * `node.dns.native`: Enables capture of trace data for DNS queries.
++++ * * `node.net.native`: Enables capture of trace data for network.
++++ * * `node.environment`: Enables capture of Node.js Environment milestones.
++++ * * `node.fs.sync`: Enables capture of trace data for file system sync methods.
++++ * * `node.fs_dir.sync`: Enables capture of trace data for file system sync directory methods.
++++ * * `node.fs.async`: Enables capture of trace data for file system async methods.
++++ * * `node.fs_dir.async`: Enables capture of trace data for file system async directory methods.
++++ * * `node.perf`: Enables capture of [Performance API](https://nodejs.org/docs/latest-v20.x/api/perf_hooks.html) measurements.
++++ *    * `node.perf.usertiming`: Enables capture of only Performance API User Timing
++++ *    measures and marks.
++++ *    * `node.perf.timerify`: Enables capture of only Performance API timerify
++++ *    measurements.
++++ * * `node.promises.rejections`: Enables capture of trace data tracking the number
++++ * of unhandled Promise rejections and handled-after-rejections.
++++ * * `node.vm.script`: Enables capture of trace data for the `node:vm` module's `runInNewContext()`, `runInContext()`, and `runInThisContext()` methods.
++++ * * `v8`: The [V8](https://nodejs.org/docs/latest-v20.x/api/v8.html) events are GC, compiling, and execution related.
++++ * * `node.http`: Enables capture of trace data for http request / response.
++++ *
++++ * By default the `node`, `node.async_hooks`, and `v8` categories are enabled.
++++ *
++++ * ```bash
++++ * node --trace-event-categories v8,node,node.async_hooks server.js
++++ * ```
++++ *
++++ * Prior versions of Node.js required the use of the `--trace-events-enabled` flag to enable trace events. This requirement has been removed. However, the `--trace-events-enabled` flag _may_ still be
++++ * used and will enable the `node`, `node.async_hooks`, and `v8` trace event categories by default.
++++ *
++++ * ```bash
++++ * node --trace-events-enabled
++++ *
++++ * # is equivalent to
++++ *
++++ * node --trace-event-categories v8,node,node.async_hooks
++++ * ```
++++ *
++++ * Alternatively, trace events may be enabled using the `node:trace_events` module:
++++ *
++++ * ```js
++++ * import trace_events from 'node:trace_events';
++++ * const tracing = trace_events.createTracing({ categories: ['node.perf'] });
++++ * tracing.enable();  // Enable trace event capture for the 'node.perf' category
++++ *
++++ * // do work
++++ *
++++ * tracing.disable();  // Disable trace event capture for the 'node.perf' category
++++ * ```
++++ *
++++ * Running Node.js with tracing enabled will produce log files that can be opened
++++ * in the [`chrome://tracing`](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool) tab of Chrome.
++++ *
++++ * The logging file is by default called `node_trace.${rotation}.log`, where `${rotation}` is an incrementing log-rotation id. The filepath pattern can
++++ * be specified with `--trace-event-file-pattern` that accepts a template
++++ * string that supports `${rotation}` and `${pid}`:
++++ *
++++ * ```bash
++++ * node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js
++++ * ```
++++ *
++++ * To guarantee that the log file is properly generated after signal events like `SIGINT`, `SIGTERM`, or `SIGBREAK`, make sure to have the appropriate handlers
++++ * in your code, such as:
++++ *
++++ * ```js
++++ * process.on('SIGINT', function onSigint() {
++++ *   console.info('Received SIGINT.');
++++ *   process.exit(130);  // Or applicable exit code depending on OS and signal
++++ * });
++++ * ```
++++ *
++++ * The tracing system uses the same time source
++++ * as the one used by `process.hrtime()`.
++++ * However the trace-event timestamps are expressed in microseconds,
++++ * unlike `process.hrtime()` which returns nanoseconds.
++++ *
++++ * The features from this module are not available in [`Worker`](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html#class-worker) threads.
++++ * @experimental
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/trace_events.js)
++++ */
++++declare module "trace_events" {
++++    /**
++++     * The `Tracing` object is used to enable or disable tracing for sets of
++++     * categories. Instances are created using the
++++     * `trace_events.createTracing()` method.
++++     *
++++     * When created, the `Tracing` object is disabled. Calling the
++++     * `tracing.enable()` method adds the categories to the set of enabled trace
++++     * event categories. Calling `tracing.disable()` will remove the categories
++++     * from the set of enabled trace event categories.
++++     */
++++    interface Tracing {
++++        /**
++++         * A comma-separated list of the trace event categories covered by this
++++         * `Tracing` object.
++++         * @since v10.0.0
++++         */
++++        readonly categories: string;
++++        /**
++++         * Disables this `Tracing` object.
++++         *
++++         * Only trace event categories _not_ covered by other enabled `Tracing`
++++         * objects and _not_ specified by the `--trace-event-categories` flag
++++         * will be disabled.
++++         *
++++         * ```js
++++         * import trace_events from 'node:trace_events';
++++         * const t1 = trace_events.createTracing({ categories: ['node', 'v8'] });
++++         * const t2 = trace_events.createTracing({ categories: ['node.perf', 'node'] });
++++         * t1.enable();
++++         * t2.enable();
++++         *
++++         * // Prints 'node,node.perf,v8'
++++         * console.log(trace_events.getEnabledCategories());
++++         *
++++         * t2.disable(); // Will only disable emission of the 'node.perf' category
++++         *
++++         * // Prints 'node,v8'
++++         * console.log(trace_events.getEnabledCategories());
++++         * ```
++++         * @since v10.0.0
++++         */
++++        disable(): void;
++++        /**
++++         * Enables this `Tracing` object for the set of categories covered by
++++         * the `Tracing` object.
++++         * @since v10.0.0
++++         */
++++        enable(): void;
++++        /**
++++         * `true` only if the `Tracing` object has been enabled.
++++         * @since v10.0.0
++++         */
++++        readonly enabled: boolean;
++++    }
++++    interface CreateTracingOptions {
++++        /**
++++         * An array of trace category names. Values included in the array are
++++         * coerced to a string when possible. An error will be thrown if the
++++         * value cannot be coerced.
++++         */
++++        categories: string[];
++++    }
++++    /**
++++     * Creates and returns a `Tracing` object for the given set of `categories`.
++++     *
++++     * ```js
++++     * import trace_events from 'node:trace_events';
++++     * const categories = ['node.perf', 'node.async_hooks'];
++++     * const tracing = trace_events.createTracing({ categories });
++++     * tracing.enable();
++++     * // do stuff
++++     * tracing.disable();
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function createTracing(options: CreateTracingOptions): Tracing;
++++    /**
++++     * Returns a comma-separated list of all currently-enabled trace event
++++     * categories. The current set of enabled trace event categories is determined
++++     * by the _union_ of all currently-enabled `Tracing` objects and any categories
++++     * enabled using the `--trace-event-categories` flag.
++++     *
++++     * Given the file `test.js` below, the command `node --trace-event-categories node.perf test.js` will print `'node.async_hooks,node.perf'` to the console.
++++     *
++++     * ```js
++++     * import trace_events from 'node:trace_events';
++++     * const t1 = trace_events.createTracing({ categories: ['node.async_hooks'] });
++++     * const t2 = trace_events.createTracing({ categories: ['node.perf'] });
++++     * const t3 = trace_events.createTracing({ categories: ['v8'] });
++++     *
++++     * t1.enable();
++++     * t2.enable();
++++     *
++++     * console.log(trace_events.getEnabledCategories());
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function getEnabledCategories(): string | undefined;
++++}
++++declare module "node:trace_events" {
++++    export * from "trace_events";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..21f72115c61b028ff22672eceddf2cad7dc789eb
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,385 @@@@@
++++declare module "buffer" {
++++    global {
++++        interface BufferConstructor {
++++            // see ../buffer.d.ts for implementation shared with all TypeScript versions
++++
++++            /**
++++             * Allocates a new buffer containing the given {str}.
++++             *
++++             * @param str String to store in buffer.
++++             * @param encoding encoding to use, optional.  Default is 'utf8'
++++             * @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead.
++++             */
++++            new(str: string, encoding?: BufferEncoding): Buffer;
++++            /**
++++             * Allocates a new buffer of {size} octets.
++++             *
++++             * @param size count of octets to allocate.
++++             * @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`).
++++             */
++++            new(size: number): Buffer;
++++            /**
++++             * Allocates a new buffer containing the given {array} of octets.
++++             *
++++             * @param array The octets to store.
++++             * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
++++             */
++++            new(array: Uint8Array): Buffer;
++++            /**
++++             * Produces a Buffer backed by the same allocated memory as
++++             * the given {ArrayBuffer}/{SharedArrayBuffer}.
++++             *
++++             * @param arrayBuffer The ArrayBuffer with which to share memory.
++++             * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead.
++++             */
++++            new(arrayBuffer: ArrayBuffer | SharedArrayBuffer): Buffer;
++++            /**
++++             * Allocates a new buffer containing the given {array} of octets.
++++             *
++++             * @param array The octets to store.
++++             * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
++++             */
++++            new(array: readonly any[]): Buffer;
++++            /**
++++             * Copies the passed {buffer} data onto a new {Buffer} instance.
++++             *
++++             * @param buffer The buffer to copy.
++++             * @deprecated since v10.0.0 - Use `Buffer.from(buffer)` instead.
++++             */
++++            new(buffer: Buffer): Buffer;
++++            /**
++++             * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`.
++++             * Array entries outside that range will be truncated to fit into it.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'.
++++             * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]);
++++             * ```
++++             *
++++             * If `array` is an `Array`\-like object (that is, one with a `length` property of
++++             * type `number`), it is treated as if it is an array, unless it is a `Buffer` or
++++             * a `Uint8Array`. This means all other `TypedArray` variants get treated as an `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use `Buffer.copyBytesFrom()`.
++++             *
++++             * A `TypeError` will be thrown if `array` is not an `Array` or another type
++++             * appropriate for `Buffer.from()` variants.
++++             *
++++             * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does.
++++             * @since v5.10.0
++++             */
++++            from(
++++                arrayBuffer: WithImplicitCoercion<ArrayBuffer | SharedArrayBuffer>,
++++                byteOffset?: number,
++++                length?: number,
++++            ): Buffer;
++++            /**
++++             * Creates a new Buffer using the passed {data}
++++             * @param data data to create a new Buffer
++++             */
++++            from(data: Uint8Array | readonly number[]): Buffer;
++++            from(data: WithImplicitCoercion<Uint8Array | readonly number[] | string>): Buffer;
++++            /**
++++             * Creates a new Buffer containing the given JavaScript string {str}.
++++             * If provided, the {encoding} parameter identifies the character encoding.
++++             * If not provided, {encoding} defaults to 'utf8'.
++++             */
++++            from(
++++                str:
++++                    | WithImplicitCoercion<string>
++++                    | {
++++                        [Symbol.toPrimitive](hint: "string"): string;
++++                    },
++++                encoding?: BufferEncoding,
++++            ): Buffer;
++++            /**
++++             * Creates a new Buffer using the passed {data}
++++             * @param values to create a new Buffer
++++             */
++++            of(...items: number[]): Buffer;
++++            /**
++++             * Returns a new `Buffer` which is the result of concatenating all the `Buffer` instances in the `list` together.
++++             *
++++             * If the list has no items, or if the `totalLength` is 0, then a new zero-length `Buffer` is returned.
++++             *
++++             * If `totalLength` is not provided, it is calculated from the `Buffer` instances
++++             * in `list` by adding their lengths.
++++             *
++++             * If `totalLength` is provided, it is coerced to an unsigned integer. If the
++++             * combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is
++++             * truncated to `totalLength`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * // Create a single `Buffer` from a list of three `Buffer` instances.
++++             *
++++             * const buf1 = Buffer.alloc(10);
++++             * const buf2 = Buffer.alloc(14);
++++             * const buf3 = Buffer.alloc(18);
++++             * const totalLength = buf1.length + buf2.length + buf3.length;
++++             *
++++             * console.log(totalLength);
++++             * // Prints: 42
++++             *
++++             * const bufA = Buffer.concat([buf1, buf2, buf3], totalLength);
++++             *
++++             * console.log(bufA);
++++             * // Prints: <Buffer 00 00 00 00 ...>
++++             * console.log(bufA.length);
++++             * // Prints: 42
++++             * ```
++++             *
++++             * `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does.
++++             * @since v0.7.11
++++             * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate.
++++             * @param totalLength Total length of the `Buffer` instances in `list` when concatenated.
++++             */
++++            concat(list: readonly Uint8Array[], totalLength?: number): Buffer;
++++            /**
++++             * Copies the underlying memory of `view` into a new `Buffer`.
++++             *
++++             * ```js
++++             * const u16 = new Uint16Array([0, 0xffff]);
++++             * const buf = Buffer.copyBytesFrom(u16, 1, 1);
++++             * u16[1] = 0;
++++             * console.log(buf.length); // 2
++++             * console.log(buf[0]); // 255
++++             * console.log(buf[1]); // 255
++++             * ```
++++             * @since v19.8.0
++++             * @param view The {TypedArray} to copy.
++++             * @param [offset=0] The starting offset within `view`.
++++             * @param [length=view.length - offset] The number of elements from `view` to copy.
++++             */
++++            copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer;
++++            /**
++++             * Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.alloc(5);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 00 00 00 00 00>
++++             * ```
++++             *
++++             * If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown.
++++             *
++++             * If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.alloc(5, 'a');
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 61 61 61 61 61>
++++             * ```
++++             *
++++             * If both `fill` and `encoding` are specified, the allocated `Buffer` will be
++++             * initialized by calling `buf.fill(fill, encoding)`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64');
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 68 65 6c 6c 6f 20 77 6f 72 6c 64>
++++             * ```
++++             *
++++             * Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance
++++             * contents will never contain sensitive data from previous allocations, including
++++             * data that might not have been allocated for `Buffer`s.
++++             *
++++             * A `TypeError` will be thrown if `size` is not a number.
++++             * @since v5.10.0
++++             * @param size The desired length of the new `Buffer`.
++++             * @param [fill=0] A value to pre-fill the new `Buffer` with.
++++             * @param [encoding='utf8'] If `fill` is a string, this is its encoding.
++++             */
++++            alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer;
++++            /**
++++             * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown.
++++             *
++++             * The underlying memory for `Buffer` instances created in this way is _not_
++++             * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.allocUnsafe(10);
++++             *
++++             * console.log(buf);
++++             * // Prints (contents may vary): <Buffer a0 8b 28 3f 01 00 00 00 50 32>
++++             *
++++             * buf.fill(0);
++++             *
++++             * console.log(buf);
++++             * // Prints: <Buffer 00 00 00 00 00 00 00 00 00 00>
++++             * ```
++++             *
++++             * A `TypeError` will be thrown if `size` is not a number.
++++             *
++++             * The `Buffer` module pre-allocates an internal `Buffer` instance of
++++             * size `Buffer.poolSize` that is used as a pool for the fast allocation of new `Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`,
++++             * and `Buffer.concat()` only when `size` is less than `Buffer.poolSize >>> 1` (floor of `Buffer.poolSize` divided by two).
++++             *
++++             * Use of this pre-allocated internal memory pool is a key difference between
++++             * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`.
++++             * Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less
++++             * than or equal to half `Buffer.poolSize`. The
++++             * difference is subtle but can be important when an application requires the
++++             * additional performance that `Buffer.allocUnsafe()` provides.
++++             * @since v5.10.0
++++             * @param size The desired length of the new `Buffer`.
++++             */
++++            allocUnsafe(size: number): Buffer;
++++            /**
++++             * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. A zero-length `Buffer` is created if
++++             * `size` is 0.
++++             *
++++             * The underlying memory for `Buffer` instances created in this way is _not_
++++             * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `buf.fill(0)` to initialize
++++             * such `Buffer` instances with zeroes.
++++             *
++++             * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances,
++++             * allocations under 4 KiB are sliced from a single pre-allocated `Buffer`. This
++++             * allows applications to avoid the garbage collection overhead of creating many
++++             * individually allocated `Buffer` instances. This approach improves both
++++             * performance and memory usage by eliminating the need to track and clean up as
++++             * many individual `ArrayBuffer` objects.
++++             *
++++             * However, in the case where a developer may need to retain a small chunk of
++++             * memory from a pool for an indeterminate amount of time, it may be appropriate
++++             * to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and
++++             * then copying out the relevant bits.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * // Need to keep around a few small chunks of memory.
++++             * const store = [];
++++             *
++++             * socket.on('readable', () => {
++++             *   let data;
++++             *   while (null !== (data = readable.read())) {
++++             *     // Allocate for retained data.
++++             *     const sb = Buffer.allocUnsafeSlow(10);
++++             *
++++             *     // Copy the data into the new allocation.
++++             *     data.copy(sb, 0, 0, 10);
++++             *
++++             *     store.push(sb);
++++             *   }
++++             * });
++++             * ```
++++             *
++++             * A `TypeError` will be thrown if `size` is not a number.
++++             * @since v5.12.0
++++             * @param size The desired length of the new `Buffer`.
++++             */
++++            allocUnsafeSlow(size: number): Buffer;
++++        }
++++        interface Buffer extends Uint8Array {
++++            // see ../buffer.d.ts for implementation shared with all TypeScript versions
++++
++++            /**
++++             * Returns a new `Buffer` that references the same memory as the original, but
++++             * offset and cropped by the `start` and `end` indices.
++++             *
++++             * This method is not compatible with the `Uint8Array.prototype.slice()`,
++++             * which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from('buffer');
++++             *
++++             * const copiedBuf = Uint8Array.prototype.slice.call(buf);
++++             * copiedBuf[0]++;
++++             * console.log(copiedBuf.toString());
++++             * // Prints: cuffer
++++             *
++++             * console.log(buf.toString());
++++             * // Prints: buffer
++++             *
++++             * // With buf.slice(), the original buffer is modified.
++++             * const notReallyCopiedBuf = buf.slice();
++++             * notReallyCopiedBuf[0]++;
++++             * console.log(notReallyCopiedBuf.toString());
++++             * // Prints: cuffer
++++             * console.log(buf.toString());
++++             * // Also prints: cuffer (!)
++++             * ```
++++             * @since v0.3.0
++++             * @deprecated Use `subarray` instead.
++++             * @param [start=0] Where the new `Buffer` will start.
++++             * @param [end=buf.length] Where the new `Buffer` will end (not inclusive).
++++             */
++++            slice(start?: number, end?: number): Buffer;
++++            /**
++++             * Returns a new `Buffer` that references the same memory as the original, but
++++             * offset and cropped by the `start` and `end` indices.
++++             *
++++             * Specifying `end` greater than `buf.length` will return the same result as
++++             * that of `end` equal to `buf.length`.
++++             *
++++             * This method is inherited from [`TypedArray.prototype.subarray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray).
++++             *
++++             * Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte
++++             * // from the original `Buffer`.
++++             *
++++             * const buf1 = Buffer.allocUnsafe(26);
++++             *
++++             * for (let i = 0; i < 26; i++) {
++++             *   // 97 is the decimal ASCII value for 'a'.
++++             *   buf1[i] = i + 97;
++++             * }
++++             *
++++             * const buf2 = buf1.subarray(0, 3);
++++             *
++++             * console.log(buf2.toString('ascii', 0, buf2.length));
++++             * // Prints: abc
++++             *
++++             * buf1[0] = 33;
++++             *
++++             * console.log(buf2.toString('ascii', 0, buf2.length));
++++             * // Prints: !bc
++++             * ```
++++             *
++++             * Specifying negative indexes causes the slice to be generated relative to the
++++             * end of `buf` rather than the beginning.
++++             *
++++             * ```js
++++             * import { Buffer } from 'node:buffer';
++++             *
++++             * const buf = Buffer.from('buffer');
++++             *
++++             * console.log(buf.subarray(-6, -1).toString());
++++             * // Prints: buffe
++++             * // (Equivalent to buf.subarray(0, 5).)
++++             *
++++             * console.log(buf.subarray(-6, -2).toString());
++++             * // Prints: buff
++++             * // (Equivalent to buf.subarray(0, 4).)
++++             *
++++             * console.log(buf.subarray(-5, -2).toString());
++++             * // Prints: uff
++++             * // (Equivalent to buf.subarray(1, 4).)
++++             * ```
++++             * @since v3.0.0
++++             * @param [start=0] Where the new `Buffer` will start.
++++             * @param [end=buf.length] Where the new `Buffer` will end (not inclusive).
++++             */
++++            subarray(start?: number, end?: number): Buffer;
++++        }
++++    }
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..0e4633b951b124338106c4101e1d88dc6e72230a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,19 @@@@@
++++export {}; // Make this a module
++++
++++declare global {
++++    namespace NodeJS {
++++        type TypedArray =
++++            | Uint8Array
++++            | Uint8ClampedArray
++++            | Uint16Array
++++            | Uint32Array
++++            | Int8Array
++++            | Int16Array
++++            | Int32Array
++++            | BigUint64Array
++++            | BigInt64Array
++++            | Float32Array
++++            | Float64Array;
++++        type ArrayBufferView = TypedArray | DataView;
++++    }
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..886b8a8418c53492df668970b4c3d52dd8b5058e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,91 @@@@@
++++/**
++++ * License for programmatically and manually incorporated
++++ * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
++++ *
++++ * Copyright Node.js contributors. All rights reserved.
++++ * Permission is hereby granted, free of charge, to any person obtaining a copy
++++ * of this software and associated documentation files (the "Software"), to
++++ * deal in the Software without restriction, including without limitation the
++++ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
++++ * sell copies of the Software, and to permit persons to whom the Software is
++++ * furnished to do so, subject to the following conditions:
++++ *
++++ * The above copyright notice and this permission notice shall be included in
++++ * all copies or substantial portions of the Software.
++++ *
++++ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++++ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++++ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
++++ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
++++ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
++++ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
++++ * IN THE SOFTWARE.
++++ */
++++
++++// NOTE: These definitions support Node.js and TypeScript 4.9 through 5.6.
++++
++++// Reference required TypeScript libs:
++++/// <reference lib="es2020" />
++++
++++// TypeScript backwards-compatibility definitions:
++++/// <reference path="../compatibility/index.d.ts" />
++++
++++// Definitions specific to TypeScript 4.9 through 5.6:
++++/// <reference path="./globals.typedarray.d.ts" />
++++/// <reference path="./buffer.buffer.d.ts" />
++++
++++// Definitions for Node.js modules that are not specific to any version of TypeScript:
++++/// <reference path="../globals.d.ts" />
++++/// <reference path="../assert.d.ts" />
++++/// <reference path="../assert/strict.d.ts" />
++++/// <reference path="../async_hooks.d.ts" />
++++/// <reference path="../buffer.d.ts" />
++++/// <reference path="../child_process.d.ts" />
++++/// <reference path="../cluster.d.ts" />
++++/// <reference path="../console.d.ts" />
++++/// <reference path="../constants.d.ts" />
++++/// <reference path="../crypto.d.ts" />
++++/// <reference path="../dgram.d.ts" />
++++/// <reference path="../diagnostics_channel.d.ts" />
++++/// <reference path="../dns.d.ts" />
++++/// <reference path="../dns/promises.d.ts" />
++++/// <reference path="../dns/promises.d.ts" />
++++/// <reference path="../domain.d.ts" />
++++/// <reference path="../dom-events.d.ts" />
++++/// <reference path="../events.d.ts" />
++++/// <reference path="../fs.d.ts" />
++++/// <reference path="../fs/promises.d.ts" />
++++/// <reference path="../http.d.ts" />
++++/// <reference path="../http2.d.ts" />
++++/// <reference path="../https.d.ts" />
++++/// <reference path="../inspector.d.ts" />
++++/// <reference path="../module.d.ts" />
++++/// <reference path="../net.d.ts" />
++++/// <reference path="../os.d.ts" />
++++/// <reference path="../path.d.ts" />
++++/// <reference path="../perf_hooks.d.ts" />
++++/// <reference path="../process.d.ts" />
++++/// <reference path="../punycode.d.ts" />
++++/// <reference path="../querystring.d.ts" />
++++/// <reference path="../readline.d.ts" />
++++/// <reference path="../readline/promises.d.ts" />
++++/// <reference path="../repl.d.ts" />
++++/// <reference path="../sea.d.ts" />
++++/// <reference path="../stream.d.ts" />
++++/// <reference path="../stream/promises.d.ts" />
++++/// <reference path="../stream/consumers.d.ts" />
++++/// <reference path="../stream/web.d.ts" />
++++/// <reference path="../string_decoder.d.ts" />
++++/// <reference path="../test.d.ts" />
++++/// <reference path="../timers.d.ts" />
++++/// <reference path="../timers/promises.d.ts" />
++++/// <reference path="../tls.d.ts" />
++++/// <reference path="../trace_events.d.ts" />
++++/// <reference path="../tty.d.ts" />
++++/// <reference path="../url.d.ts" />
++++/// <reference path="../util.d.ts" />
++++/// <reference path="../v8.d.ts" />
++++/// <reference path="../vm.d.ts" />
++++/// <reference path="../wasi.d.ts" />
++++/// <reference path="../worker_threads.d.ts" />
++++/// <reference path="../zlib.d.ts" />
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..d4b9313950ae0cae8ac2e7c67074facdc8a3f366
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,208 @@@@@
++++/**
++++ * The `node:tty` module provides the `tty.ReadStream` and `tty.WriteStream` classes. In most cases, it will not be necessary or possible to use this module
++++ * directly. However, it can be accessed using:
++++ *
++++ * ```js
++++ * import tty from 'node:tty';
++++ * ```
++++ *
++++ * When Node.js detects that it is being run with a text terminal ("TTY")
++++ * attached, `process.stdin` will, by default, be initialized as an instance of `tty.ReadStream` and both `process.stdout` and `process.stderr` will, by
++++ * default, be instances of `tty.WriteStream`. The preferred method of determining
++++ * whether Node.js is being run within a TTY context is to check that the value of
++++ * the `process.stdout.isTTY` property is `true`:
++++ *
++++ * ```console
++++ * $ node -p -e "Boolean(process.stdout.isTTY)"
++++ * true
++++ * $ node -p -e "Boolean(process.stdout.isTTY)" | cat
++++ * false
++++ * ```
++++ *
++++ * In most cases, there should be little to no reason for an application to
++++ * manually create instances of the `tty.ReadStream` and `tty.WriteStream` classes.
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/tty.js)
++++ */
++++declare module "tty" {
++++    import * as net from "node:net";
++++    /**
++++     * The `tty.isatty()` method returns `true` if the given `fd` is associated with
++++     * a TTY and `false` if it is not, including whenever `fd` is not a non-negative
++++     * integer.
++++     * @since v0.5.8
++++     * @param fd A numeric file descriptor
++++     */
++++    function isatty(fd: number): boolean;
++++    /**
++++     * Represents the readable side of a TTY. In normal circumstances `process.stdin` will be the only `tty.ReadStream` instance in a Node.js
++++     * process and there should be no reason to create additional instances.
++++     * @since v0.5.8
++++     */
++++    class ReadStream extends net.Socket {
++++        constructor(fd: number, options?: net.SocketConstructorOpts);
++++        /**
++++         * A `boolean` that is `true` if the TTY is currently configured to operate as a
++++         * raw device.
++++         *
++++         * This flag is always `false` when a process starts, even if the terminal is
++++         * operating in raw mode. Its value will change with subsequent calls to `setRawMode`.
++++         * @since v0.7.7
++++         */
++++        isRaw: boolean;
++++        /**
++++         * Allows configuration of `tty.ReadStream` so that it operates as a raw device.
++++         *
++++         * When in raw mode, input is always available character-by-character, not
++++         * including modifiers. Additionally, all special processing of characters by the
++++         * terminal is disabled, including echoing input
++++         * characters. Ctrl+C will no longer cause a `SIGINT` when
++++         * in this mode.
++++         * @since v0.7.7
++++         * @param mode If `true`, configures the `tty.ReadStream` to operate as a raw device. If `false`, configures the `tty.ReadStream` to operate in its default mode. The `readStream.isRaw`
++++         * property will be set to the resulting mode.
++++         * @return The read stream instance.
++++         */
++++        setRawMode(mode: boolean): this;
++++        /**
++++         * A `boolean` that is always `true` for `tty.ReadStream` instances.
++++         * @since v0.5.8
++++         */
++++        isTTY: boolean;
++++    }
++++    /**
++++     * -1 - to the left from cursor
++++     *  0 - the entire line
++++     *  1 - to the right from cursor
++++     */
++++    type Direction = -1 | 0 | 1;
++++    /**
++++     * Represents the writable side of a TTY. In normal circumstances, `process.stdout` and `process.stderr` will be the only`tty.WriteStream` instances created for a Node.js process and there
++++     * should be no reason to create additional instances.
++++     * @since v0.5.8
++++     */
++++    class WriteStream extends net.Socket {
++++        constructor(fd: number);
++++        addListener(event: string, listener: (...args: any[]) => void): this;
++++        addListener(event: "resize", listener: () => void): this;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        emit(event: "resize"): boolean;
++++        on(event: string, listener: (...args: any[]) => void): this;
++++        on(event: "resize", listener: () => void): this;
++++        once(event: string, listener: (...args: any[]) => void): this;
++++        once(event: "resize", listener: () => void): this;
++++        prependListener(event: string, listener: (...args: any[]) => void): this;
++++        prependListener(event: "resize", listener: () => void): this;
++++        prependOnceListener(event: string, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "resize", listener: () => void): this;
++++        /**
++++         * `writeStream.clearLine()` clears the current line of this `WriteStream` in a
++++         * direction identified by `dir`.
++++         * @since v0.7.7
++++         * @param callback Invoked once the operation completes.
++++         * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
++++         */
++++        clearLine(dir: Direction, callback?: () => void): boolean;
++++        /**
++++         * `writeStream.clearScreenDown()` clears this `WriteStream` from the current
++++         * cursor down.
++++         * @since v0.7.7
++++         * @param callback Invoked once the operation completes.
++++         * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
++++         */
++++        clearScreenDown(callback?: () => void): boolean;
++++        /**
++++         * `writeStream.cursorTo()` moves this `WriteStream`'s cursor to the specified
++++         * position.
++++         * @since v0.7.7
++++         * @param callback Invoked once the operation completes.
++++         * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
++++         */
++++        cursorTo(x: number, y?: number, callback?: () => void): boolean;
++++        cursorTo(x: number, callback: () => void): boolean;
++++        /**
++++         * `writeStream.moveCursor()` moves this `WriteStream`'s cursor _relative_ to its
++++         * current position.
++++         * @since v0.7.7
++++         * @param callback Invoked once the operation completes.
++++         * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
++++         */
++++        moveCursor(dx: number, dy: number, callback?: () => void): boolean;
++++        /**
++++         * Returns:
++++         *
++++         * * `1` for 2,
++++         * * `4` for 16,
++++         * * `8` for 256,
++++         * * `24` for 16,777,216 colors supported.
++++         *
++++         * Use this to determine what colors the terminal supports. Due to the nature of
++++         * colors in terminals it is possible to either have false positives or false
++++         * negatives. It depends on process information and the environment variables that
++++         * may lie about what terminal is used.
++++         * It is possible to pass in an `env` object to simulate the usage of a specific
++++         * terminal. This can be useful to check how specific environment settings behave.
++++         *
++++         * To enforce a specific color support, use one of the below environment settings.
++++         *
++++         * * 2 colors: `FORCE_COLOR = 0` (Disables colors)
++++         * * 16 colors: `FORCE_COLOR = 1`
++++         * * 256 colors: `FORCE_COLOR = 2`
++++         * * 16,777,216 colors: `FORCE_COLOR = 3`
++++         *
++++         * Disabling color support is also possible by using the `NO_COLOR` and `NODE_DISABLE_COLORS` environment variables.
++++         * @since v9.9.0
++++         * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal.
++++         */
++++        getColorDepth(env?: object): number;
++++        /**
++++         * Returns `true` if the `writeStream` supports at least as many colors as provided
++++         * in `count`. Minimum support is 2 (black and white).
++++         *
++++         * This has the same false positives and negatives as described in `writeStream.getColorDepth()`.
++++         *
++++         * ```js
++++         * process.stdout.hasColors();
++++         * // Returns true or false depending on if `stdout` supports at least 16 colors.
++++         * process.stdout.hasColors(256);
++++         * // Returns true or false depending on if `stdout` supports at least 256 colors.
++++         * process.stdout.hasColors({ TMUX: '1' });
++++         * // Returns true.
++++         * process.stdout.hasColors(2 ** 24, { TMUX: '1' });
++++         * // Returns false (the environment setting pretends to support 2 ** 8 colors).
++++         * ```
++++         * @since v11.13.0, v10.16.0
++++         * @param [count=16] The number of colors that are requested (minimum 2).
++++         * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal.
++++         */
++++        hasColors(count?: number): boolean;
++++        hasColors(env?: object): boolean;
++++        hasColors(count: number, env?: object): boolean;
++++        /**
++++         * `writeStream.getWindowSize()` returns the size of the TTY
++++         * corresponding to this `WriteStream`. The array is of the type `[numColumns, numRows]` where `numColumns` and `numRows` represent the number
++++         * of columns and rows in the corresponding TTY.
++++         * @since v0.7.7
++++         */
++++        getWindowSize(): [number, number];
++++        /**
++++         * A `number` specifying the number of columns the TTY currently has. This property
++++         * is updated whenever the `'resize'` event is emitted.
++++         * @since v0.7.7
++++         */
++++        columns: number;
++++        /**
++++         * A `number` specifying the number of rows the TTY currently has. This property
++++         * is updated whenever the `'resize'` event is emitted.
++++         * @since v0.7.7
++++         */
++++        rows: number;
++++        /**
++++         * A `boolean` that is always `true`.
++++         * @since v0.5.8
++++         */
++++        isTTY: boolean;
++++    }
++++}
++++declare module "node:tty" {
++++    export * from "tty";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b25560154d772180c3c4437b9180798ff9ffcf0e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,955 @@@@@
++++/**
++++ * The `node:url` module provides utilities for URL resolution and parsing. It can
++++ * be accessed using:
++++ *
++++ * ```js
++++ * import url from 'node:url';
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/url.js)
++++ */
++++declare module "url" {
++++    import { Blob as NodeBlob } from "node:buffer";
++++    import { ClientRequestArgs } from "node:http";
++++    import { ParsedUrlQuery, ParsedUrlQueryInput } from "node:querystring";
++++    // Input to `url.format`
++++    interface UrlObject {
++++        auth?: string | null | undefined;
++++        hash?: string | null | undefined;
++++        host?: string | null | undefined;
++++        hostname?: string | null | undefined;
++++        href?: string | null | undefined;
++++        pathname?: string | null | undefined;
++++        protocol?: string | null | undefined;
++++        search?: string | null | undefined;
++++        slashes?: boolean | null | undefined;
++++        port?: string | number | null | undefined;
++++        query?: string | null | ParsedUrlQueryInput | undefined;
++++    }
++++    // Output of `url.parse`
++++    interface Url {
++++        auth: string | null;
++++        hash: string | null;
++++        host: string | null;
++++        hostname: string | null;
++++        href: string;
++++        path: string | null;
++++        pathname: string | null;
++++        protocol: string | null;
++++        search: string | null;
++++        slashes: boolean | null;
++++        port: string | null;
++++        query: string | null | ParsedUrlQuery;
++++    }
++++    interface UrlWithParsedQuery extends Url {
++++        query: ParsedUrlQuery;
++++    }
++++    interface UrlWithStringQuery extends Url {
++++        query: string | null;
++++    }
++++    interface FileUrlToPathOptions {
++++        /**
++++         * `true` if the `path` should be return as a windows filepath, `false` for posix, and `undefined` for the system default.
++++         * @default undefined
++++         */
++++        windows?: boolean | undefined;
++++    }
++++    interface PathToFileUrlOptions extends FileUrlToPathOptions {}
++++    /**
++++     * The `url.parse()` method takes a URL string, parses it, and returns a URL
++++     * object.
++++     *
++++     * A `TypeError` is thrown if `urlString` is not a string.
++++     *
++++     * A `URIError` is thrown if the `auth` property is present but cannot be decoded.
++++     *
++++     * `url.parse()` uses a lenient, non-standard algorithm for parsing URL
++++     * strings. It is prone to security issues such as [host name spoofing](https://hackerone.com/reports/678487) and incorrect handling of usernames and passwords. Do not use with untrusted
++++     * input. CVEs are not issued for `url.parse()` vulnerabilities. Use the `WHATWG URL` API instead.
++++     * @since v0.1.25
++++     * @deprecated Use the WHATWG URL API instead.
++++     * @param urlString The URL string to parse.
++++     * @param [parseQueryString=false] If `true`, the `query` property will always be set to an object returned by the {@link querystring} module's `parse()` method. If `false`, the `query` property
++++     * on the returned URL object will be an unparsed, undecoded string.
++++     * @param [slashesDenoteHost=false] If `true`, the first token after the literal string `//` and preceding the next `/` will be interpreted as the `host`. For instance, given `//foo/bar`, the
++++     * result would be `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`.
++++     */
++++    function parse(urlString: string): UrlWithStringQuery;
++++    function parse(
++++        urlString: string,
++++        parseQueryString: false | undefined,
++++        slashesDenoteHost?: boolean,
++++    ): UrlWithStringQuery;
++++    function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
++++    function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
++++    /**
++++     * The `url.format()` method returns a formatted URL string derived from `urlObject`.
++++     *
++++     * ```js
++++     * import url from 'node:url';
++++     * url.format({
++++     *   protocol: 'https',
++++     *   hostname: 'example.com',
++++     *   pathname: '/some/path',
++++     *   query: {
++++     *     page: 1,
++++     *     format: 'json',
++++     *   },
++++     * });
++++     *
++++     * // => 'https://example.com/some/path?page=1&#x26;format=json'
++++     * ```
++++     *
++++     * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`.
++++     *
++++     * The formatting process operates as follows:
++++     *
++++     * * A new empty string `result` is created.
++++     * * If `urlObject.protocol` is a string, it is appended as-is to `result`.
++++     * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown.
++++     * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII
++++     * colon (`:`) character, the literal string `:` will be appended to `result`.
++++     * * If either of the following conditions is true, then the literal string `//` will be appended to `result`:
++++     *    * `urlObject.slashes` property is true;
++++     *    * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`;
++++     * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string
++++     * and appended to `result` followed by the literal string `@`.
++++     * * If the `urlObject.host` property is `undefined` then:
++++     *    * If the `urlObject.hostname` is a string, it is appended to `result`.
++++     *    * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string,
++++     *    an `Error` is thrown.
++++     *    * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`:
++++     *          * The literal string `:` is appended to `result`, and
++++     *          * The value of `urlObject.port` is coerced to a string and appended to `result`.
++++     * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`.
++++     * * If the `urlObject.pathname` property is a string that is not an empty string:
++++     *    * If the `urlObject.pathname` _does not start_ with an ASCII forward slash
++++     *    (`/`), then the literal string `'/'` is appended to `result`.
++++     *    * The value of `urlObject.pathname` is appended to `result`.
++++     * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown.
++++     * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the
++++     * `querystring` module's `stringify()` method passing the value of `urlObject.query`.
++++     * * Otherwise, if `urlObject.search` is a string:
++++     *    * If the value of `urlObject.search` _does not start_ with the ASCII question
++++     *    mark (`?`) character, the literal string `?` is appended to `result`.
++++     *    * The value of `urlObject.search` is appended to `result`.
++++     * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown.
++++     * * If the `urlObject.hash` property is a string:
++++     *    * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`)
++++     *    character, the literal string `#` is appended to `result`.
++++     *    * The value of `urlObject.hash` is appended to `result`.
++++     * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a
++++     * string, an `Error` is thrown.
++++     * * `result` is returned.
++++     * @since v0.1.25
++++     * @legacy Use the WHATWG URL API instead.
++++     * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
++++     */
++++    function format(urlObject: URL, options?: URLFormatOptions): string;
++++    /**
++++     * The `url.format()` method returns a formatted URL string derived from `urlObject`.
++++     *
++++     * ```js
++++     * import url from 'node:url';
++++     * url.format({
++++     *   protocol: 'https',
++++     *   hostname: 'example.com',
++++     *   pathname: '/some/path',
++++     *   query: {
++++     *     page: 1,
++++     *     format: 'json',
++++     *   },
++++     * });
++++     *
++++     * // => 'https://example.com/some/path?page=1&#x26;format=json'
++++     * ```
++++     *
++++     * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`.
++++     *
++++     * The formatting process operates as follows:
++++     *
++++     * * A new empty string `result` is created.
++++     * * If `urlObject.protocol` is a string, it is appended as-is to `result`.
++++     * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown.
++++     * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII
++++     * colon (`:`) character, the literal string `:` will be appended to `result`.
++++     * * If either of the following conditions is true, then the literal string `//` will be appended to `result`:
++++     *    * `urlObject.slashes` property is true;
++++     *    * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`;
++++     * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string
++++     * and appended to `result` followed by the literal string `@`.
++++     * * If the `urlObject.host` property is `undefined` then:
++++     *    * If the `urlObject.hostname` is a string, it is appended to `result`.
++++     *    * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string,
++++     *    an `Error` is thrown.
++++     *    * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`:
++++     *          * The literal string `:` is appended to `result`, and
++++     *          * The value of `urlObject.port` is coerced to a string and appended to `result`.
++++     * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`.
++++     * * If the `urlObject.pathname` property is a string that is not an empty string:
++++     *    * If the `urlObject.pathname` _does not start_ with an ASCII forward slash
++++     *    (`/`), then the literal string `'/'` is appended to `result`.
++++     *    * The value of `urlObject.pathname` is appended to `result`.
++++     * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown.
++++     * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the
++++     * `querystring` module's `stringify()` method passing the value of `urlObject.query`.
++++     * * Otherwise, if `urlObject.search` is a string:
++++     *    * If the value of `urlObject.search` _does not start_ with the ASCII question
++++     *    mark (`?`) character, the literal string `?` is appended to `result`.
++++     *    * The value of `urlObject.search` is appended to `result`.
++++     * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown.
++++     * * If the `urlObject.hash` property is a string:
++++     *    * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`)
++++     *    character, the literal string `#` is appended to `result`.
++++     *    * The value of `urlObject.hash` is appended to `result`.
++++     * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a
++++     * string, an `Error` is thrown.
++++     * * `result` is returned.
++++     * @since v0.1.25
++++     * @legacy Use the WHATWG URL API instead.
++++     * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
++++     */
++++    function format(urlObject: UrlObject | string): string;
++++    /**
++++     * The `url.resolve()` method resolves a target URL relative to a base URL in a
++++     * manner similar to that of a web browser resolving an anchor tag.
++++     *
++++     * ```js
++++     * import url from 'node:url';
++++     * url.resolve('/one/two/three', 'four');         // '/one/two/four'
++++     * url.resolve('http://example.com/', '/one');    // 'http://example.com/one'
++++     * url.resolve('http://example.com/one', '/two'); // 'http://example.com/two'
++++     * ```
++++     *
++++     * To achieve the same result using the WHATWG URL API:
++++     *
++++     * ```js
++++     * function resolve(from, to) {
++++     *   const resolvedUrl = new URL(to, new URL(from, 'resolve://'));
++++     *   if (resolvedUrl.protocol === 'resolve:') {
++++     *     // `from` is a relative URL.
++++     *     const { pathname, search, hash } = resolvedUrl;
++++     *     return pathname + search + hash;
++++     *   }
++++     *   return resolvedUrl.toString();
++++     * }
++++     *
++++     * resolve('/one/two/three', 'four');         // '/one/two/four'
++++     * resolve('http://example.com/', '/one');    // 'http://example.com/one'
++++     * resolve('http://example.com/one', '/two'); // 'http://example.com/two'
++++     * ```
++++     * @since v0.1.25
++++     * @legacy Use the WHATWG URL API instead.
++++     * @param from The base URL to use if `to` is a relative URL.
++++     * @param to The target URL to resolve.
++++     */
++++    function resolve(from: string, to: string): string;
++++    /**
++++     * Returns the [Punycode](https://tools.ietf.org/html/rfc5891#section-4.4) ASCII serialization of the `domain`. If `domain` is an
++++     * invalid domain, the empty string is returned.
++++     *
++++     * It performs the inverse operation to {@link domainToUnicode}.
++++     *
++++     * ```js
++++     * import url from 'node:url';
++++     *
++++     * console.log(url.domainToASCII('español.com'));
++++     * // Prints xn--espaol-zwa.com
++++     * console.log(url.domainToASCII('中文.com'));
++++     * // Prints xn--fiq228c.com
++++     * console.log(url.domainToASCII('xn--iñvalid.com'));
++++     * // Prints an empty string
++++     * ```
++++     * @since v7.4.0, v6.13.0
++++     */
++++    function domainToASCII(domain: string): string;
++++    /**
++++     * Returns the Unicode serialization of the `domain`. If `domain` is an invalid
++++     * domain, the empty string is returned.
++++     *
++++     * It performs the inverse operation to {@link domainToASCII}.
++++     *
++++     * ```js
++++     * import url from 'node:url';
++++     *
++++     * console.log(url.domainToUnicode('xn--espaol-zwa.com'));
++++     * // Prints español.com
++++     * console.log(url.domainToUnicode('xn--fiq228c.com'));
++++     * // Prints 中文.com
++++     * console.log(url.domainToUnicode('xn--iñvalid.com'));
++++     * // Prints an empty string
++++     * ```
++++     * @since v7.4.0, v6.13.0
++++     */
++++    function domainToUnicode(domain: string): string;
++++    /**
++++     * This function ensures the correct decodings of percent-encoded characters as
++++     * well as ensuring a cross-platform valid absolute path string.
++++     *
++++     * ```js
++++     * import { fileURLToPath } from 'node:url';
++++     *
++++     * const __filename = fileURLToPath(import.meta.url);
++++     *
++++     * new URL('file:///C:/path/').pathname;      // Incorrect: /C:/path/
++++     * fileURLToPath('file:///C:/path/');         // Correct:   C:\path\ (Windows)
++++     *
++++     * new URL('file://nas/foo.txt').pathname;    // Incorrect: /foo.txt
++++     * fileURLToPath('file://nas/foo.txt');       // Correct:   \\nas\foo.txt (Windows)
++++     *
++++     * new URL('file:///你好.txt').pathname;      // Incorrect: /%E4%BD%A0%E5%A5%BD.txt
++++     * fileURLToPath('file:///你好.txt');         // Correct:   /你好.txt (POSIX)
++++     *
++++     * new URL('file:///hello world').pathname;   // Incorrect: /hello%20world
++++     * fileURLToPath('file:///hello world');      // Correct:   /hello world (POSIX)
++++     * ```
++++     * @since v10.12.0
++++     * @param url The file URL string or URL object to convert to a path.
++++     * @return The fully-resolved platform-specific Node.js file path.
++++     */
++++    function fileURLToPath(url: string | URL, options?: FileUrlToPathOptions): string;
++++    /**
++++     * This function ensures that `path` is resolved absolutely, and that the URL
++++     * control characters are correctly encoded when converting into a File URL.
++++     *
++++     * ```js
++++     * import { pathToFileURL } from 'node:url';
++++     *
++++     * new URL('/foo#1', 'file:');           // Incorrect: file:///foo#1
++++     * pathToFileURL('/foo#1');              // Correct:   file:///foo%231 (POSIX)
++++     *
++++     * new URL('/some/path%.c', 'file:');    // Incorrect: file:///some/path%.c
++++     * pathToFileURL('/some/path%.c');       // Correct:   file:///some/path%25.c (POSIX)
++++     * ```
++++     * @since v10.12.0
++++     * @param path The path to convert to a File URL.
++++     * @return The file URL object.
++++     */
++++    function pathToFileURL(path: string, options?: PathToFileUrlOptions): URL;
++++    /**
++++     * This utility function converts a URL object into an ordinary options object as
++++     * expected by the `http.request()` and `https.request()` APIs.
++++     *
++++     * ```js
++++     * import { urlToHttpOptions } from 'node:url';
++++     * const myURL = new URL('https://a:b@測試?abc#foo');
++++     *
++++     * console.log(urlToHttpOptions(myURL));
++++     * /*
++++     * {
++++     *   protocol: 'https:',
++++     *   hostname: 'xn--g6w251d',
++++     *   hash: '#foo',
++++     *   search: '?abc',
++++     *   pathname: '/',
++++     *   path: '/?abc',
++++     *   href: 'https://a:b@xn--g6w251d/?abc#foo',
++++     *   auth: 'a:b'
++++     * }
++++     *
++++     * ```
++++     * @since v15.7.0, v14.18.0
++++     * @param url The `WHATWG URL` object to convert to an options object.
++++     * @return Options object
++++     */
++++    function urlToHttpOptions(url: URL): ClientRequestArgs;
++++    interface URLFormatOptions {
++++        /**
++++         * `true` if the serialized URL string should include the username and password, `false` otherwise.
++++         * @default true
++++         */
++++        auth?: boolean | undefined;
++++        /**
++++         * `true` if the serialized URL string should include the fragment, `false` otherwise.
++++         * @default true
++++         */
++++        fragment?: boolean | undefined;
++++        /**
++++         * `true` if the serialized URL string should include the search query, `false` otherwise.
++++         * @default true
++++         */
++++        search?: boolean | undefined;
++++        /**
++++         * `true` if Unicode characters appearing in the host component of the URL string should be encoded directly as opposed to
++++         * being Punycode encoded.
++++         * @default false
++++         */
++++        unicode?: boolean | undefined;
++++    }
++++    /**
++++     * Browser-compatible `URL` class, implemented by following the WHATWG URL
++++     * Standard. [Examples of parsed URLs](https://url.spec.whatwg.org/#example-url-parsing) may be found in the Standard itself.
++++     * The `URL` class is also available on the global object.
++++     *
++++     * In accordance with browser conventions, all properties of `URL` objects
++++     * are implemented as getters and setters on the class prototype, rather than as
++++     * data properties on the object itself. Thus, unlike `legacy urlObject`s,
++++     * using the `delete` keyword on any properties of `URL` objects (e.g. `delete myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still
++++     * return `true`.
++++     * @since v7.0.0, v6.13.0
++++     */
++++    class URL {
++++        /**
++++         * Creates a `'blob:nodedata:...'` URL string that represents the given `Blob` object and can be used to retrieve the `Blob` later.
++++         *
++++         * ```js
++++         * import {
++++         *   Blob,
++++         *   resolveObjectURL,
++++         * } from 'node:buffer';
++++         *
++++         * const blob = new Blob(['hello']);
++++         * const id = URL.createObjectURL(blob);
++++         *
++++         * // later...
++++         *
++++         * const otherBlob = resolveObjectURL(id);
++++         * console.log(otherBlob.size);
++++         * ```
++++         *
++++         * The data stored by the registered `Blob` will be retained in memory until `URL.revokeObjectURL()` is called to remove it.
++++         *
++++         * `Blob` objects are registered within the current thread. If using Worker
++++         * Threads, `Blob` objects registered within one Worker will not be available
++++         * to other workers or the main thread.
++++         * @since v16.7.0
++++         * @experimental
++++         */
++++        static createObjectURL(blob: NodeBlob): string;
++++        /**
++++         * Removes the stored `Blob` identified by the given ID. Attempting to revoke a
++++         * ID that isn't registered will silently fail.
++++         * @since v16.7.0
++++         * @experimental
++++         * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
++++         */
++++        static revokeObjectURL(id: string): void;
++++        /**
++++         * Checks if an `input` relative to the `base` can be parsed to a `URL`.
++++         *
++++         * ```js
++++         * const isValid = URL.canParse('/foo', 'https://example.org/'); // true
++++         *
++++         * const isNotValid = URL.canParse('/foo'); // false
++++         * ```
++++         * @since v19.9.0
++++         * @param input The absolute or relative input URL to parse. If `input` is relative, then `base` is required. If `input` is absolute, the `base` is ignored. If `input` is not a string, it is
++++         * `converted to a string` first.
++++         * @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first.
++++         */
++++        static canParse(input: string, base?: string): boolean;
++++        constructor(input: string | { toString: () => string }, base?: string | URL);
++++        /**
++++         * Gets and sets the fragment portion of the URL.
++++         *
++++         * ```js
++++         * const myURL = new URL('https://example.org/foo#bar');
++++         * console.log(myURL.hash);
++++         * // Prints #bar
++++         *
++++         * myURL.hash = 'baz';
++++         * console.log(myURL.href);
++++         * // Prints https://example.org/foo#baz
++++         * ```
++++         *
++++         * Invalid URL characters included in the value assigned to the `hash` property
++++         * are `percent-encoded`. The selection of which characters to
++++         * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
++++         */
++++        hash: string;
++++        /**
++++         * Gets and sets the host portion of the URL.
++++         *
++++         * ```js
++++         * const myURL = new URL('https://example.org:81/foo');
++++         * console.log(myURL.host);
++++         * // Prints example.org:81
++++         *
++++         * myURL.host = 'example.com:82';
++++         * console.log(myURL.href);
++++         * // Prints https://example.com:82/foo
++++         * ```
++++         *
++++         * Invalid host values assigned to the `host` property are ignored.
++++         */
++++        host: string;
++++        /**
++++         * Gets and sets the host name portion of the URL. The key difference between`url.host` and `url.hostname` is that `url.hostname` does _not_ include the
++++         * port.
++++         *
++++         * ```js
++++         * const myURL = new URL('https://example.org:81/foo');
++++         * console.log(myURL.hostname);
++++         * // Prints example.org
++++         *
++++         * // Setting the hostname does not change the port
++++         * myURL.hostname = 'example.com';
++++         * console.log(myURL.href);
++++         * // Prints https://example.com:81/foo
++++         *
++++         * // Use myURL.host to change the hostname and port
++++         * myURL.host = 'example.org:82';
++++         * console.log(myURL.href);
++++         * // Prints https://example.org:82/foo
++++         * ```
++++         *
++++         * Invalid host name values assigned to the `hostname` property are ignored.
++++         */
++++        hostname: string;
++++        /**
++++         * Gets and sets the serialized URL.
++++         *
++++         * ```js
++++         * const myURL = new URL('https://example.org/foo');
++++         * console.log(myURL.href);
++++         * // Prints https://example.org/foo
++++         *
++++         * myURL.href = 'https://example.com/bar';
++++         * console.log(myURL.href);
++++         * // Prints https://example.com/bar
++++         * ```
++++         *
++++         * Getting the value of the `href` property is equivalent to calling {@link toString}.
++++         *
++++         * Setting the value of this property to a new value is equivalent to creating a
++++         * new `URL` object using `new URL(value)`. Each of the `URL` object's properties will be modified.
++++         *
++++         * If the value assigned to the `href` property is not a valid URL, a `TypeError` will be thrown.
++++         */
++++        href: string;
++++        /**
++++         * Gets the read-only serialization of the URL's origin.
++++         *
++++         * ```js
++++         * const myURL = new URL('https://example.org/foo/bar?baz');
++++         * console.log(myURL.origin);
++++         * // Prints https://example.org
++++         * ```
++++         *
++++         * ```js
++++         * const idnURL = new URL('https://測試');
++++         * console.log(idnURL.origin);
++++         * // Prints https://xn--g6w251d
++++         *
++++         * console.log(idnURL.hostname);
++++         * // Prints xn--g6w251d
++++         * ```
++++         */
++++        readonly origin: string;
++++        /**
++++         * Gets and sets the password portion of the URL.
++++         *
++++         * ```js
++++         * const myURL = new URL('https://abc:xyz@example.com');
++++         * console.log(myURL.password);
++++         * // Prints xyz
++++         *
++++         * myURL.password = '123';
++++         * console.log(myURL.href);
++++         * // Prints https://abc:123@example.com/
++++         * ```
++++         *
++++         * Invalid URL characters included in the value assigned to the `password` property
++++         * are `percent-encoded`. The selection of which characters to
++++         * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
++++         */
++++        password: string;
++++        /**
++++         * Gets and sets the path portion of the URL.
++++         *
++++         * ```js
++++         * const myURL = new URL('https://example.org/abc/xyz?123');
++++         * console.log(myURL.pathname);
++++         * // Prints /abc/xyz
++++         *
++++         * myURL.pathname = '/abcdef';
++++         * console.log(myURL.href);
++++         * // Prints https://example.org/abcdef?123
++++         * ```
++++         *
++++         * Invalid URL characters included in the value assigned to the `pathname` property are `percent-encoded`. The selection of which characters
++++         * to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
++++         */
++++        pathname: string;
++++        /**
++++         * Gets and sets the port portion of the URL.
++++         *
++++         * The port value may be a number or a string containing a number in the range `0` to `65535` (inclusive). Setting the value to the default port of the `URL` objects given `protocol` will
++++         * result in the `port` value becoming
++++         * the empty string (`''`).
++++         *
++++         * The port value can be an empty string in which case the port depends on
++++         * the protocol/scheme:
++++         *
++++         * <omitted>
++++         *
++++         * Upon assigning a value to the port, the value will first be converted to a
++++         * string using `.toString()`.
++++         *
++++         * If that string is invalid but it begins with a number, the leading number is
++++         * assigned to `port`.
++++         * If the number lies outside the range denoted above, it is ignored.
++++         *
++++         * ```js
++++         * const myURL = new URL('https://example.org:8888');
++++         * console.log(myURL.port);
++++         * // Prints 8888
++++         *
++++         * // Default ports are automatically transformed to the empty string
++++         * // (HTTPS protocol's default port is 443)
++++         * myURL.port = '443';
++++         * console.log(myURL.port);
++++         * // Prints the empty string
++++         * console.log(myURL.href);
++++         * // Prints https://example.org/
++++         *
++++         * myURL.port = 1234;
++++         * console.log(myURL.port);
++++         * // Prints 1234
++++         * console.log(myURL.href);
++++         * // Prints https://example.org:1234/
++++         *
++++         * // Completely invalid port strings are ignored
++++         * myURL.port = 'abcd';
++++         * console.log(myURL.port);
++++         * // Prints 1234
++++         *
++++         * // Leading numbers are treated as a port number
++++         * myURL.port = '5678abcd';
++++         * console.log(myURL.port);
++++         * // Prints 5678
++++         *
++++         * // Non-integers are truncated
++++         * myURL.port = 1234.5678;
++++         * console.log(myURL.port);
++++         * // Prints 1234
++++         *
++++         * // Out-of-range numbers which are not represented in scientific notation
++++         * // will be ignored.
++++         * myURL.port = 1e10; // 10000000000, will be range-checked as described below
++++         * console.log(myURL.port);
++++         * // Prints 1234
++++         * ```
++++         *
++++         * Numbers which contain a decimal point,
++++         * such as floating-point numbers or numbers in scientific notation,
++++         * are not an exception to this rule.
++++         * Leading numbers up to the decimal point will be set as the URL's port,
++++         * assuming they are valid:
++++         *
++++         * ```js
++++         * myURL.port = 4.567e21;
++++         * console.log(myURL.port);
++++         * // Prints 4 (because it is the leading number in the string '4.567e21')
++++         * ```
++++         */
++++        port: string;
++++        /**
++++         * Gets and sets the protocol portion of the URL.
++++         *
++++         * ```js
++++         * const myURL = new URL('https://example.org');
++++         * console.log(myURL.protocol);
++++         * // Prints https:
++++         *
++++         * myURL.protocol = 'ftp';
++++         * console.log(myURL.href);
++++         * // Prints ftp://example.org/
++++         * ```
++++         *
++++         * Invalid URL protocol values assigned to the `protocol` property are ignored.
++++         */
++++        protocol: string;
++++        /**
++++         * Gets and sets the serialized query portion of the URL.
++++         *
++++         * ```js
++++         * const myURL = new URL('https://example.org/abc?123');
++++         * console.log(myURL.search);
++++         * // Prints ?123
++++         *
++++         * myURL.search = 'abc=xyz';
++++         * console.log(myURL.href);
++++         * // Prints https://example.org/abc?abc=xyz
++++         * ```
++++         *
++++         * Any invalid URL characters appearing in the value assigned the `search` property will be `percent-encoded`. The selection of which
++++         * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
++++         */
++++        search: string;
++++        /**
++++         * Gets the `URLSearchParams` object representing the query parameters of the
++++         * URL. This property is read-only but the `URLSearchParams` object it provides
++++         * can be used to mutate the URL instance; to replace the entirety of query
++++         * parameters of the URL, use the {@link search} setter. See `URLSearchParams` documentation for details.
++++         *
++++         * Use care when using `.searchParams` to modify the `URL` because,
++++         * per the WHATWG specification, the `URLSearchParams` object uses
++++         * different rules to determine which characters to percent-encode. For
++++         * instance, the `URL` object will not percent encode the ASCII tilde (`~`)
++++         * character, while `URLSearchParams` will always encode it:
++++         *
++++         * ```js
++++         * const myURL = new URL('https://example.org/abc?foo=~bar');
++++         *
++++         * console.log(myURL.search);  // prints ?foo=~bar
++++         *
++++         * // Modify the URL via searchParams...
++++         * myURL.searchParams.sort();
++++         *
++++         * console.log(myURL.search);  // prints ?foo=%7Ebar
++++         * ```
++++         */
++++        readonly searchParams: URLSearchParams;
++++        /**
++++         * Gets and sets the username portion of the URL.
++++         *
++++         * ```js
++++         * const myURL = new URL('https://abc:xyz@example.com');
++++         * console.log(myURL.username);
++++         * // Prints abc
++++         *
++++         * myURL.username = '123';
++++         * console.log(myURL.href);
++++         * // Prints https://123:xyz@example.com/
++++         * ```
++++         *
++++         * Any invalid URL characters appearing in the value assigned the `username` property will be `percent-encoded`. The selection of which
++++         * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
++++         */
++++        username: string;
++++        /**
++++         * The `toString()` method on the `URL` object returns the serialized URL. The
++++         * value returned is equivalent to that of {@link href} and {@link toJSON}.
++++         */
++++        toString(): string;
++++        /**
++++         * The `toJSON()` method on the `URL` object returns the serialized URL. The
++++         * value returned is equivalent to that of {@link href} and {@link toString}.
++++         *
++++         * This method is automatically called when an `URL` object is serialized
++++         * with [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify).
++++         *
++++         * ```js
++++         * const myURLs = [
++++         *   new URL('https://www.example.com'),
++++         *   new URL('https://test.example.org'),
++++         * ];
++++         * console.log(JSON.stringify(myURLs));
++++         * // Prints ["https://www.example.com/","https://test.example.org/"]
++++         * ```
++++         */
++++        toJSON(): string;
++++    }
++++    interface URLSearchParamsIterator<T> extends NodeJS.Iterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
++++        [Symbol.iterator](): URLSearchParamsIterator<T>;
++++    }
++++    /**
++++     * The `URLSearchParams` API provides read and write access to the query of a `URL`. The `URLSearchParams` class can also be used standalone with one of the
++++     * four following constructors.
++++     * The `URLSearchParams` class is also available on the global object.
++++     *
++++     * The WHATWG `URLSearchParams` interface and the `querystring` module have
++++     * similar purpose, but the purpose of the `querystring` module is more
++++     * general, as it allows the customization of delimiter characters (`&#x26;` and `=`).
++++     * On the other hand, this API is designed purely for URL query strings.
++++     *
++++     * ```js
++++     * const myURL = new URL('https://example.org/?abc=123');
++++     * console.log(myURL.searchParams.get('abc'));
++++     * // Prints 123
++++     *
++++     * myURL.searchParams.append('abc', 'xyz');
++++     * console.log(myURL.href);
++++     * // Prints https://example.org/?abc=123&#x26;abc=xyz
++++     *
++++     * myURL.searchParams.delete('abc');
++++     * myURL.searchParams.set('a', 'b');
++++     * console.log(myURL.href);
++++     * // Prints https://example.org/?a=b
++++     *
++++     * const newSearchParams = new URLSearchParams(myURL.searchParams);
++++     * // The above is equivalent to
++++     * // const newSearchParams = new URLSearchParams(myURL.search);
++++     *
++++     * newSearchParams.append('a', 'c');
++++     * console.log(myURL.href);
++++     * // Prints https://example.org/?a=b
++++     * console.log(newSearchParams.toString());
++++     * // Prints a=b&#x26;a=c
++++     *
++++     * // newSearchParams.toString() is implicitly called
++++     * myURL.search = newSearchParams;
++++     * console.log(myURL.href);
++++     * // Prints https://example.org/?a=b&#x26;a=c
++++     * newSearchParams.delete('a');
++++     * console.log(myURL.href);
++++     * // Prints https://example.org/?a=b&#x26;a=c
++++     * ```
++++     * @since v7.5.0, v6.13.0
++++     */
++++    class URLSearchParams implements Iterable<[string, string]> {
++++        constructor(
++++            init?:
++++                | URLSearchParams
++++                | string
++++                | Record<string, string | readonly string[]>
++++                | Iterable<[string, string]>
++++                | ReadonlyArray<[string, string]>,
++++        );
++++        /**
++++         * Append a new name-value pair to the query string.
++++         */
++++        append(name: string, value: string): void;
++++        /**
++++         * If `value` is provided, removes all name-value pairs
++++         * where name is `name` and value is `value`.
++++         *
++++         * If `value` is not provided, removes all name-value pairs whose name is `name`.
++++         */
++++        delete(name: string, value?: string): void;
++++        /**
++++         * Returns an ES6 `Iterator` over each of the name-value pairs in the query.
++++         * Each item of the iterator is a JavaScript `Array`. The first item of the `Array` is the `name`, the second item of the `Array` is the `value`.
++++         *
++++         * Alias for `urlSearchParams[@@iterator]()`.
++++         */
++++        entries(): URLSearchParamsIterator<[string, string]>;
++++        /**
++++         * Iterates over each name-value pair in the query and invokes the given function.
++++         *
++++         * ```js
++++         * const myURL = new URL('https://example.org/?a=b&#x26;c=d');
++++         * myURL.searchParams.forEach((value, name, searchParams) => {
++++         *   console.log(name, value, myURL.searchParams === searchParams);
++++         * });
++++         * // Prints:
++++         * //   a b true
++++         * //   c d true
++++         * ```
++++         * @param fn Invoked for each name-value pair in the query
++++         * @param thisArg To be used as `this` value for when `fn` is called
++++         */
++++        forEach<TThis = this>(
++++            fn: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void,
++++            thisArg?: TThis,
++++        ): void;
++++        /**
++++         * Returns the value of the first name-value pair whose name is `name`. If there
++++         * are no such pairs, `null` is returned.
++++         * @return or `null` if there is no name-value pair with the given `name`.
++++         */
++++        get(name: string): string | null;
++++        /**
++++         * Returns the values of all name-value pairs whose name is `name`. If there are
++++         * no such pairs, an empty array is returned.
++++         */
++++        getAll(name: string): string[];
++++        /**
++++         * Checks if the `URLSearchParams` object contains key-value pair(s) based on `name` and an optional `value` argument.
++++         *
++++         * If `value` is provided, returns `true` when name-value pair with
++++         * same `name` and `value` exists.
++++         *
++++         * If `value` is not provided, returns `true` if there is at least one name-value
++++         * pair whose name is `name`.
++++         */
++++        has(name: string, value?: string): boolean;
++++        /**
++++         * Returns an ES6 `Iterator` over the names of each name-value pair.
++++         *
++++         * ```js
++++         * const params = new URLSearchParams('foo=bar&#x26;foo=baz');
++++         * for (const name of params.keys()) {
++++         *   console.log(name);
++++         * }
++++         * // Prints:
++++         * //   foo
++++         * //   foo
++++         * ```
++++         */
++++        keys(): URLSearchParamsIterator<string>;
++++        /**
++++         * Sets the value in the `URLSearchParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`,
++++         * set the first such pair's value to `value` and remove all others. If not,
++++         * append the name-value pair to the query string.
++++         *
++++         * ```js
++++         * const params = new URLSearchParams();
++++         * params.append('foo', 'bar');
++++         * params.append('foo', 'baz');
++++         * params.append('abc', 'def');
++++         * console.log(params.toString());
++++         * // Prints foo=bar&#x26;foo=baz&#x26;abc=def
++++         *
++++         * params.set('foo', 'def');
++++         * params.set('xyz', 'opq');
++++         * console.log(params.toString());
++++         * // Prints foo=def&#x26;abc=def&#x26;xyz=opq
++++         * ```
++++         */
++++        set(name: string, value: string): void;
++++        /**
++++         * The total number of parameter entries.
++++         * @since v19.8.0
++++         */
++++        readonly size: number;
++++        /**
++++         * Sort all existing name-value pairs in-place by their names. Sorting is done
++++         * with a [stable sorting algorithm](https://en.wikipedia.org/wiki/Sorting_algorithm#Stability), so relative order between name-value pairs
++++         * with the same name is preserved.
++++         *
++++         * This method can be used, in particular, to increase cache hits.
++++         *
++++         * ```js
++++         * const params = new URLSearchParams('query[]=abc&#x26;type=search&#x26;query[]=123');
++++         * params.sort();
++++         * console.log(params.toString());
++++         * // Prints query%5B%5D=abc&#x26;query%5B%5D=123&#x26;type=search
++++         * ```
++++         * @since v7.7.0, v6.13.0
++++         */
++++        sort(): void;
++++        /**
++++         * Returns the search parameters serialized as a string, with characters
++++         * percent-encoded where necessary.
++++         */
++++        toString(): string;
++++        /**
++++         * Returns an ES6 `Iterator` over the values of each name-value pair.
++++         */
++++        values(): URLSearchParamsIterator<string>;
++++        [Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
++++    }
++++    import { URL as _URL, URLSearchParams as _URLSearchParams } from "url";
++++    global {
++++        interface URLSearchParams extends _URLSearchParams {}
++++        interface URL extends _URL {}
++++        interface Global {
++++            URL: typeof _URL;
++++            URLSearchParams: typeof _URLSearchParams;
++++        }
++++        /**
++++         * `URL` class is a global reference for `import { URL } from 'node:url'`
++++         * https://nodejs.org/api/url.html#the-whatwg-url-api
++++         * @since v10.0.0
++++         */
++++        var URL: typeof globalThis extends {
++++            onmessage: any;
++++            URL: infer T;
++++        } ? T
++++            : typeof _URL;
++++        /**
++++         * `URLSearchParams` class is a global reference for `import { URLSearchParams } from 'node:url'`
++++         * https://nodejs.org/api/url.html#class-urlsearchparams
++++         * @since v10.0.0
++++         */
++++        var URLSearchParams: typeof globalThis extends {
++++            onmessage: any;
++++            URLSearchParams: infer T;
++++        } ? T
++++            : typeof _URLSearchParams;
++++    }
++++}
++++declare module "node:url" {
++++    export * from "url";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b3c0f5cb04754e87a8955ebb86fd44f729976cce
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,2306 @@@@@
++++/**
++++ * The `node:util` module supports the needs of Node.js internal APIs. Many of the
++++ * utilities are useful for application and module developers as well. To access
++++ * it:
++++ *
++++ * ```js
++++ * import util from 'node:util';
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/util.js)
++++ */
++++declare module "util" {
++++    import * as types from "node:util/types";
++++    export interface InspectOptions {
++++        /**
++++         * If `true`, object's non-enumerable symbols and properties are included in the formatted result.
++++         * `WeakMap` and `WeakSet` entries are also included as well as user defined prototype properties (excluding method properties).
++++         * @default false
++++         */
++++        showHidden?: boolean | undefined;
++++        /**
++++         * Specifies the number of times to recurse while formatting object.
++++         * This is useful for inspecting large objects.
++++         * To recurse up to the maximum call stack size pass `Infinity` or `null`.
++++         * @default 2
++++         */
++++        depth?: number | null | undefined;
++++        /**
++++         * If `true`, the output is styled with ANSI color codes. Colors are customizable.
++++         */
++++        colors?: boolean | undefined;
++++        /**
++++         * If `false`, `[util.inspect.custom](depth, opts, inspect)` functions are not invoked.
++++         * @default true
++++         */
++++        customInspect?: boolean | undefined;
++++        /**
++++         * If `true`, `Proxy` inspection includes the target and handler objects.
++++         * @default false
++++         */
++++        showProxy?: boolean | undefined;
++++        /**
++++         * Specifies the maximum number of `Array`, `TypedArray`, `WeakMap`, and `WeakSet` elements
++++         * to include when formatting. Set to `null` or `Infinity` to show all elements.
++++         * Set to `0` or negative to show no elements.
++++         * @default 100
++++         */
++++        maxArrayLength?: number | null | undefined;
++++        /**
++++         * Specifies the maximum number of characters to
++++         * include when formatting. Set to `null` or `Infinity` to show all elements.
++++         * Set to `0` or negative to show no characters.
++++         * @default 10000
++++         */
++++        maxStringLength?: number | null | undefined;
++++        /**
++++         * The length at which input values are split across multiple lines.
++++         * Set to `Infinity` to format the input as a single line
++++         * (in combination with `compact` set to `true` or any number >= `1`).
++++         * @default 80
++++         */
++++        breakLength?: number | undefined;
++++        /**
++++         * Setting this to `false` causes each object key
++++         * to be displayed on a new line. It will also add new lines to text that is
++++         * longer than `breakLength`. If set to a number, the most `n` inner elements
++++         * are united on a single line as long as all properties fit into
++++         * `breakLength`. Short array elements are also grouped together. Note that no
++++         * text will be reduced below 16 characters, no matter the `breakLength` size.
++++         * For more information, see the example below.
++++         * @default true
++++         */
++++        compact?: boolean | number | undefined;
++++        /**
++++         * If set to `true` or a function, all properties of an object, and `Set` and `Map`
++++         * entries are sorted in the resulting string.
++++         * If set to `true` the default sort is used.
++++         * If set to a function, it is used as a compare function.
++++         */
++++        sorted?: boolean | ((a: string, b: string) => number) | undefined;
++++        /**
++++         * If set to `true`, getters are going to be
++++         * inspected as well. If set to `'get'` only getters without setter are going
++++         * to be inspected. If set to `'set'` only getters having a corresponding
++++         * setter are going to be inspected. This might cause side effects depending on
++++         * the getter function.
++++         * @default false
++++         */
++++        getters?: "get" | "set" | boolean | undefined;
++++        /**
++++         * If set to `true`, an underscore is used to separate every three digits in all bigints and numbers.
++++         * @default false
++++         */
++++        numericSeparator?: boolean | undefined;
++++    }
++++    export type Style =
++++        | "special"
++++        | "number"
++++        | "bigint"
++++        | "boolean"
++++        | "undefined"
++++        | "null"
++++        | "string"
++++        | "symbol"
++++        | "date"
++++        | "regexp"
++++        | "module";
++++    export type CustomInspectFunction = (depth: number, options: InspectOptionsStylized) => any; // TODO: , inspect: inspect
++++    export interface InspectOptionsStylized extends InspectOptions {
++++        stylize(text: string, styleType: Style): string;
++++    }
++++    /**
++++     * The `util.format()` method returns a formatted string using the first argument
++++     * as a `printf`-like format string which can contain zero or more format
++++     * specifiers. Each specifier is replaced with the converted value from the
++++     * corresponding argument. Supported specifiers are:
++++     *
++++     * If a specifier does not have a corresponding argument, it is not replaced:
++++     *
++++     * ```js
++++     * util.format('%s:%s', 'foo');
++++     * // Returns: 'foo:%s'
++++     * ```
++++     *
++++     * Values that are not part of the format string are formatted using `util.inspect()` if their type is not `string`.
++++     *
++++     * If there are more arguments passed to the `util.format()` method than the
++++     * number of specifiers, the extra arguments are concatenated to the returned
++++     * string, separated by spaces:
++++     *
++++     * ```js
++++     * util.format('%s:%s', 'foo', 'bar', 'baz');
++++     * // Returns: 'foo:bar baz'
++++     * ```
++++     *
++++     * If the first argument does not contain a valid format specifier, `util.format()` returns a string that is the concatenation of all arguments separated by spaces:
++++     *
++++     * ```js
++++     * util.format(1, 2, 3);
++++     * // Returns: '1 2 3'
++++     * ```
++++     *
++++     * If only one argument is passed to `util.format()`, it is returned as it is
++++     * without any formatting:
++++     *
++++     * ```js
++++     * util.format('%% %s');
++++     * // Returns: '%% %s'
++++     * ```
++++     *
++++     * `util.format()` is a synchronous method that is intended as a debugging tool.
++++     * Some input values can have a significant performance overhead that can block the
++++     * event loop. Use this function with care and never in a hot code path.
++++     * @since v0.5.3
++++     * @param format A `printf`-like format string.
++++     */
++++    export function format(format?: any, ...param: any[]): string;
++++    /**
++++     * This function is identical to {@link format}, except in that it takes
++++     * an `inspectOptions` argument which specifies options that are passed along to {@link inspect}.
++++     *
++++     * ```js
++++     * util.formatWithOptions({ colors: true }, 'See object %O', { foo: 42 });
++++     * // Returns 'See object { foo: 42 }', where `42` is colored as a number
++++     * // when printed to a terminal.
++++     * ```
++++     * @since v10.0.0
++++     */
++++    export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
++++    /**
++++     * Returns the string name for a numeric error code that comes from a Node.js API.
++++     * The mapping between error codes and error names is platform-dependent.
++++     * See `Common System Errors` for the names of common errors.
++++     *
++++     * ```js
++++     * fs.access('file/that/does/not/exist', (err) => {
++++     *   const name = util.getSystemErrorName(err.errno);
++++     *   console.error(name);  // ENOENT
++++     * });
++++     * ```
++++     * @since v9.7.0
++++     */
++++    export function getSystemErrorName(err: number): string;
++++    /**
++++     * Returns a Map of all system error codes available from the Node.js API.
++++     * The mapping between error codes and error names is platform-dependent.
++++     * See `Common System Errors` for the names of common errors.
++++     *
++++     * ```js
++++     * fs.access('file/that/does/not/exist', (err) => {
++++     *   const errorMap = util.getSystemErrorMap();
++++     *   const name = errorMap.get(err.errno);
++++     *   console.error(name);  // ENOENT
++++     * });
++++     * ```
++++     * @since v16.0.0, v14.17.0
++++     */
++++    export function getSystemErrorMap(): Map<number, [string, string]>;
++++    /**
++++     * The `util.log()` method prints the given `string` to `stdout` with an included
++++     * timestamp.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * util.log('Timestamped message.');
++++     * ```
++++     * @since v0.3.0
++++     * @deprecated Since v6.0.0 - Use a third party module instead.
++++     */
++++    export function log(string: string): void;
++++    /**
++++     * Returns the `string` after replacing any surrogate code points
++++     * (or equivalently, any unpaired surrogate code units) with the
++++     * Unicode "replacement character" U+FFFD.
++++     * @since v16.8.0, v14.18.0
++++     */
++++    export function toUSVString(string: string): string;
++++    /**
++++     * Creates and returns an `AbortController` instance whose `AbortSignal` is marked
++++     * as transferable and can be used with `structuredClone()` or `postMessage()`.
++++     * @since v18.11.0
++++     * @experimental
++++     * @returns A transferable AbortController
++++     */
++++    export function transferableAbortController(): AbortController;
++++    /**
++++     * Marks the given `AbortSignal` as transferable so that it can be used with`structuredClone()` and `postMessage()`.
++++     *
++++     * ```js
++++     * const signal = transferableAbortSignal(AbortSignal.timeout(100));
++++     * const channel = new MessageChannel();
++++     * channel.port2.postMessage(signal, [signal]);
++++     * ```
++++     * @since v18.11.0
++++     * @experimental
++++     * @param signal The AbortSignal
++++     * @returns The same AbortSignal
++++     */
++++    export function transferableAbortSignal(signal: AbortSignal): AbortSignal;
++++    /**
++++     * Listens to abort event on the provided `signal` and
++++     * returns a promise that is fulfilled when the `signal` is
++++     * aborted. If the passed `resource` is garbage collected before the `signal` is
++++     * aborted, the returned promise shall remain pending indefinitely.
++++     *
++++     * ```js
++++     * import { aborted } from 'node:util';
++++     *
++++     * const dependent = obtainSomethingAbortable();
++++     *
++++     * aborted(dependent.signal, dependent).then(() => {
++++     *   // Do something when dependent is aborted.
++++     * });
++++     *
++++     * dependent.on('event', () => {
++++     *   dependent.abort();
++++     * });
++++     * ```
++++     * @since v19.7.0
++++     * @experimental
++++     * @param resource Any non-null entity, reference to which is held weakly.
++++     */
++++    export function aborted(signal: AbortSignal, resource: any): Promise<void>;
++++    /**
++++     * The `util.inspect()` method returns a string representation of `object` that is
++++     * intended for debugging. The output of `util.inspect` may change at any time
++++     * and should not be depended upon programmatically. Additional `options` may be
++++     * passed that alter the result. `util.inspect()` will use the constructor's name and/or `@@toStringTag` to make
++++     * an identifiable tag for an inspected value.
++++     *
++++     * ```js
++++     * class Foo {
++++     *   get [Symbol.toStringTag]() {
++++     *     return 'bar';
++++     *   }
++++     * }
++++     *
++++     * class Bar {}
++++     *
++++     * const baz = Object.create(null, { [Symbol.toStringTag]: { value: 'foo' } });
++++     *
++++     * util.inspect(new Foo()); // 'Foo [bar] {}'
++++     * util.inspect(new Bar()); // 'Bar {}'
++++     * util.inspect(baz);       // '[foo] {}'
++++     * ```
++++     *
++++     * Circular references point to their anchor by using a reference index:
++++     *
++++     * ```js
++++     * import { inspect } from 'node:util';
++++     *
++++     * const obj = {};
++++     * obj.a = [obj];
++++     * obj.b = {};
++++     * obj.b.inner = obj.b;
++++     * obj.b.obj = obj;
++++     *
++++     * console.log(inspect(obj));
++++     * // <ref *1> {
++++     * //   a: [ [Circular *1] ],
++++     * //   b: <ref *2> { inner: [Circular *2], obj: [Circular *1] }
++++     * // }
++++     * ```
++++     *
++++     * The following example inspects all properties of the `util` object:
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * console.log(util.inspect(util, { showHidden: true, depth: null }));
++++     * ```
++++     *
++++     * The following example highlights the effect of the `compact` option:
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * const o = {
++++     *   a: [1, 2, [[
++++     *     'Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit, sed do ' +
++++     *       'eiusmod \ntempor incididunt ut labore et dolore magna aliqua.',
++++     *     'test',
++++     *     'foo']], 4],
++++     *   b: new Map([['za', 1], ['zb', 'test']]),
++++     * };
++++     * console.log(util.inspect(o, { compact: true, depth: 5, breakLength: 80 }));
++++     *
++++     * // { a:
++++     * //   [ 1,
++++     * //     2,
++++     * //     [ [ 'Lorem ipsum dolor sit amet,\nconsectetur [...]', // A long line
++++     * //           'test',
++++     * //           'foo' ] ],
++++     * //     4 ],
++++     * //   b: Map(2) { 'za' => 1, 'zb' => 'test' } }
++++     *
++++     * // Setting `compact` to false or an integer creates more reader friendly output.
++++     * console.log(util.inspect(o, { compact: false, depth: 5, breakLength: 80 }));
++++     *
++++     * // {
++++     * //   a: [
++++     * //     1,
++++     * //     2,
++++     * //     [
++++     * //       [
++++     * //         'Lorem ipsum dolor sit amet,\n' +
++++     * //           'consectetur adipiscing elit, sed do eiusmod \n' +
++++     * //           'tempor incididunt ut labore et dolore magna aliqua.',
++++     * //         'test',
++++     * //         'foo'
++++     * //       ]
++++     * //     ],
++++     * //     4
++++     * //   ],
++++     * //   b: Map(2) {
++++     * //     'za' => 1,
++++     * //     'zb' => 'test'
++++     * //   }
++++     * // }
++++     *
++++     * // Setting `breakLength` to e.g. 150 will print the "Lorem ipsum" text in a
++++     * // single line.
++++     * ```
++++     *
++++     * The `showHidden` option allows [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) and
++++     * [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries to be
++++     * inspected. If there are more entries than `maxArrayLength`, there is no
++++     * guarantee which entries are displayed. That means retrieving the same [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries twice may
++++     * result in different output. Furthermore, entries
++++     * with no remaining strong references may be garbage collected at any time.
++++     *
++++     * ```js
++++     * import { inspect } from 'node:util';
++++     *
++++     * const obj = { a: 1 };
++++     * const obj2 = { b: 2 };
++++     * const weakSet = new WeakSet([obj, obj2]);
++++     *
++++     * console.log(inspect(weakSet, { showHidden: true }));
++++     * // WeakSet { { a: 1 }, { b: 2 } }
++++     * ```
++++     *
++++     * The `sorted` option ensures that an object's property insertion order does not
++++     * impact the result of `util.inspect()`.
++++     *
++++     * ```js
++++     * import { inspect } from 'node:util';
++++     * import assert from 'node:assert';
++++     *
++++     * const o1 = {
++++     *   b: [2, 3, 1],
++++     *   a: '`a` comes before `b`',
++++     *   c: new Set([2, 3, 1]),
++++     * };
++++     * console.log(inspect(o1, { sorted: true }));
++++     * // { a: '`a` comes before `b`', b: [ 2, 3, 1 ], c: Set(3) { 1, 2, 3 } }
++++     * console.log(inspect(o1, { sorted: (a, b) => b.localeCompare(a) }));
++++     * // { c: Set(3) { 3, 2, 1 }, b: [ 2, 3, 1 ], a: '`a` comes before `b`' }
++++     *
++++     * const o2 = {
++++     *   c: new Set([2, 1, 3]),
++++     *   a: '`a` comes before `b`',
++++     *   b: [2, 3, 1],
++++     * };
++++     * assert.strict.equal(
++++     *   inspect(o1, { sorted: true }),
++++     *   inspect(o2, { sorted: true }),
++++     * );
++++     * ```
++++     *
++++     * The `numericSeparator` option adds an underscore every three digits to all
++++     * numbers.
++++     *
++++     * ```js
++++     * import { inspect } from 'node:util';
++++     *
++++     * const thousand = 1_000;
++++     * const million = 1_000_000;
++++     * const bigNumber = 123_456_789n;
++++     * const bigDecimal = 1_234.123_45;
++++     *
++++     * console.log(inspect(thousand, { numericSeparator: true }));
++++     * // 1_000
++++     * console.log(inspect(million, { numericSeparator: true }));
++++     * // 1_000_000
++++     * console.log(inspect(bigNumber, { numericSeparator: true }));
++++     * // 123_456_789n
++++     * console.log(inspect(bigDecimal, { numericSeparator: true }));
++++     * // 1_234.123_45
++++     * ```
++++     *
++++     * `util.inspect()` is a synchronous method intended for debugging. Its maximum
++++     * output length is approximately 128 MiB. Inputs that result in longer output will
++++     * be truncated.
++++     * @since v0.3.0
++++     * @param object Any JavaScript primitive or `Object`.
++++     * @return The representation of `object`.
++++     */
++++    export function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string;
++++    export function inspect(object: any, options?: InspectOptions): string;
++++    export namespace inspect {
++++        let colors: NodeJS.Dict<[number, number]>;
++++        let styles: {
++++            [K in Style]: string;
++++        };
++++        let defaultOptions: InspectOptions;
++++        /**
++++         * Allows changing inspect settings from the repl.
++++         */
++++        let replDefaults: InspectOptions;
++++        /**
++++         * That can be used to declare custom inspect functions.
++++         */
++++        const custom: unique symbol;
++++    }
++++    /**
++++     * Alias for [`Array.isArray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray).
++++     *
++++     * Returns `true` if the given `object` is an `Array`. Otherwise, returns `false`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * util.isArray([]);
++++     * // Returns: true
++++     * util.isArray(new Array());
++++     * // Returns: true
++++     * util.isArray({});
++++     * // Returns: false
++++     * ```
++++     * @since v0.6.0
++++     * @deprecated Since v4.0.0 - Use `isArray` instead.
++++     */
++++    export function isArray(object: unknown): object is unknown[];
++++    /**
++++     * Returns `true` if the given `object` is a `RegExp`. Otherwise, returns `false`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * util.isRegExp(/some regexp/);
++++     * // Returns: true
++++     * util.isRegExp(new RegExp('another regexp'));
++++     * // Returns: true
++++     * util.isRegExp({});
++++     * // Returns: false
++++     * ```
++++     * @since v0.6.0
++++     * @deprecated Since v4.0.0 - Deprecated
++++     */
++++    export function isRegExp(object: unknown): object is RegExp;
++++    /**
++++     * Returns `true` if the given `object` is a `Date`. Otherwise, returns `false`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * util.isDate(new Date());
++++     * // Returns: true
++++     * util.isDate(Date());
++++     * // false (without 'new' returns a String)
++++     * util.isDate({});
++++     * // Returns: false
++++     * ```
++++     * @since v0.6.0
++++     * @deprecated Since v4.0.0 - Use {@link types.isDate} instead.
++++     */
++++    export function isDate(object: unknown): object is Date;
++++    /**
++++     * Returns `true` if the given `object` is an `Error`. Otherwise, returns `false`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * util.isError(new Error());
++++     * // Returns: true
++++     * util.isError(new TypeError());
++++     * // Returns: true
++++     * util.isError({ name: 'Error', message: 'an error occurred' });
++++     * // Returns: false
++++     * ```
++++     *
++++     * This method relies on `Object.prototype.toString()` behavior. It is
++++     * possible to obtain an incorrect result when the `object` argument manipulates `@@toStringTag`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     * const obj = { name: 'Error', message: 'an error occurred' };
++++     *
++++     * util.isError(obj);
++++     * // Returns: false
++++     * obj[Symbol.toStringTag] = 'Error';
++++     * util.isError(obj);
++++     * // Returns: true
++++     * ```
++++     * @since v0.6.0
++++     * @deprecated Since v4.0.0 - Use {@link types.isNativeError} instead.
++++     */
++++    export function isError(object: unknown): object is Error;
++++    /**
++++     * Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and `extends` keywords to get language level inheritance support. Also note
++++     * that the two styles are [semantically incompatible](https://github.com/nodejs/node/issues/4179).
++++     *
++++     * Inherit the prototype methods from one [constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor) into another. The
++++     * prototype of `constructor` will be set to a new object created from `superConstructor`.
++++     *
++++     * This mainly adds some input validation on top of`Object.setPrototypeOf(constructor.prototype, superConstructor.prototype)`.
++++     * As an additional convenience, `superConstructor` will be accessible
++++     * through the `constructor.super_` property.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     * import EventEmitter from 'node:events';
++++     *
++++     * function MyStream() {
++++     *   EventEmitter.call(this);
++++     * }
++++     *
++++     * util.inherits(MyStream, EventEmitter);
++++     *
++++     * MyStream.prototype.write = function(data) {
++++     *   this.emit('data', data);
++++     * };
++++     *
++++     * const stream = new MyStream();
++++     *
++++     * console.log(stream instanceof EventEmitter); // true
++++     * console.log(MyStream.super_ === EventEmitter); // true
++++     *
++++     * stream.on('data', (data) => {
++++     *   console.log(`Received data: "${data}"`);
++++     * });
++++     * stream.write('It works!'); // Received data: "It works!"
++++     * ```
++++     *
++++     * ES6 example using `class` and `extends`:
++++     *
++++     * ```js
++++     * import EventEmitter from 'node:events';
++++     *
++++     * class MyStream extends EventEmitter {
++++     *   write(data) {
++++     *     this.emit('data', data);
++++     *   }
++++     * }
++++     *
++++     * const stream = new MyStream();
++++     *
++++     * stream.on('data', (data) => {
++++     *   console.log(`Received data: "${data}"`);
++++     * });
++++     * stream.write('With ES6');
++++     * ```
++++     * @since v0.3.0
++++     * @legacy Use ES2015 class syntax and `extends` keyword instead.
++++     */
++++    export function inherits(constructor: unknown, superConstructor: unknown): void;
++++    export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void;
++++    export interface DebugLogger extends DebugLoggerFunction {
++++        enabled: boolean;
++++    }
++++    /**
++++     * The `util.debuglog()` method is used to create a function that conditionally
++++     * writes debug messages to `stderr` based on the existence of the `NODE_DEBUG`environment variable. If the `section` name appears within the value of that
++++     * environment variable, then the returned function operates similar to `console.error()`. If not, then the returned function is a no-op.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     * const debuglog = util.debuglog('foo');
++++     *
++++     * debuglog('hello from foo [%d]', 123);
++++     * ```
++++     *
++++     * If this program is run with `NODE_DEBUG=foo` in the environment, then
++++     * it will output something like:
++++     *
++++     * ```console
++++     * FOO 3245: hello from foo [123]
++++     * ```
++++     *
++++     * where `3245` is the process id. If it is not run with that
++++     * environment variable set, then it will not print anything.
++++     *
++++     * The `section` supports wildcard also:
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     * const debuglog = util.debuglog('foo-bar');
++++     *
++++     * debuglog('hi there, it\'s foo-bar [%d]', 2333);
++++     * ```
++++     *
++++     * if it is run with `NODE_DEBUG=foo*` in the environment, then it will output
++++     * something like:
++++     *
++++     * ```console
++++     * FOO-BAR 3257: hi there, it's foo-bar [2333]
++++     * ```
++++     *
++++     * Multiple comma-separated `section` names may be specified in the `NODE_DEBUG`environment variable: `NODE_DEBUG=fs,net,tls`.
++++     *
++++     * The optional `callback` argument can be used to replace the logging function
++++     * with a different function that doesn't have any initialization or
++++     * unnecessary wrapping.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     * let debuglog = util.debuglog('internals', (debug) => {
++++     *   // Replace with a logging function that optimizes out
++++     *   // testing if the section is enabled
++++     *   debuglog = debug;
++++     * });
++++     * ```
++++     * @since v0.11.3
++++     * @param section A string identifying the portion of the application for which the `debuglog` function is being created.
++++     * @param callback A callback invoked the first time the logging function is called with a function argument that is a more optimized logging function.
++++     * @return The logging function
++++     */
++++    export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger;
++++    export const debug: typeof debuglog;
++++    /**
++++     * Returns `true` if the given `object` is a `Boolean`. Otherwise, returns `false`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * util.isBoolean(1);
++++     * // Returns: false
++++     * util.isBoolean(0);
++++     * // Returns: false
++++     * util.isBoolean(false);
++++     * // Returns: true
++++     * ```
++++     * @since v0.11.5
++++     * @deprecated Since v4.0.0 - Use `typeof value === 'boolean'` instead.
++++     */
++++    export function isBoolean(object: unknown): object is boolean;
++++    /**
++++     * Returns `true` if the given `object` is a `Buffer`. Otherwise, returns `false`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * util.isBuffer({ length: 0 });
++++     * // Returns: false
++++     * util.isBuffer([]);
++++     * // Returns: false
++++     * util.isBuffer(Buffer.from('hello world'));
++++     * // Returns: true
++++     * ```
++++     * @since v0.11.5
++++     * @deprecated Since v4.0.0 - Use `isBuffer` instead.
++++     */
++++    export function isBuffer(object: unknown): object is Buffer;
++++    /**
++++     * Returns `true` if the given `object` is a `Function`. Otherwise, returns `false`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * function Foo() {}
++++     * const Bar = () => {};
++++     *
++++     * util.isFunction({});
++++     * // Returns: false
++++     * util.isFunction(Foo);
++++     * // Returns: true
++++     * util.isFunction(Bar);
++++     * // Returns: true
++++     * ```
++++     * @since v0.11.5
++++     * @deprecated Since v4.0.0 - Use `typeof value === 'function'` instead.
++++     */
++++    export function isFunction(object: unknown): boolean;
++++    /**
++++     * Returns `true` if the given `object` is strictly `null`. Otherwise, returns`false`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * util.isNull(0);
++++     * // Returns: false
++++     * util.isNull(undefined);
++++     * // Returns: false
++++     * util.isNull(null);
++++     * // Returns: true
++++     * ```
++++     * @since v0.11.5
++++     * @deprecated Since v4.0.0 - Use `value === null` instead.
++++     */
++++    export function isNull(object: unknown): object is null;
++++    /**
++++     * Returns `true` if the given `object` is `null` or `undefined`. Otherwise,
++++     * returns `false`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * util.isNullOrUndefined(0);
++++     * // Returns: false
++++     * util.isNullOrUndefined(undefined);
++++     * // Returns: true
++++     * util.isNullOrUndefined(null);
++++     * // Returns: true
++++     * ```
++++     * @since v0.11.5
++++     * @deprecated Since v4.0.0 - Use `value === undefined || value === null` instead.
++++     */
++++    export function isNullOrUndefined(object: unknown): object is null | undefined;
++++    /**
++++     * Returns `true` if the given `object` is a `Number`. Otherwise, returns `false`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * util.isNumber(false);
++++     * // Returns: false
++++     * util.isNumber(Infinity);
++++     * // Returns: true
++++     * util.isNumber(0);
++++     * // Returns: true
++++     * util.isNumber(NaN);
++++     * // Returns: true
++++     * ```
++++     * @since v0.11.5
++++     * @deprecated Since v4.0.0 - Use `typeof value === 'number'` instead.
++++     */
++++    export function isNumber(object: unknown): object is number;
++++    /**
++++     * Returns `true` if the given `object` is strictly an `Object`**and** not a`Function` (even though functions are objects in JavaScript).
++++     * Otherwise, returns `false`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * util.isObject(5);
++++     * // Returns: false
++++     * util.isObject(null);
++++     * // Returns: false
++++     * util.isObject({});
++++     * // Returns: true
++++     * util.isObject(() => {});
++++     * // Returns: false
++++     * ```
++++     * @since v0.11.5
++++     * @deprecated Since v4.0.0 - Use `value !== null && typeof value === 'object'` instead.
++++     */
++++    export function isObject(object: unknown): boolean;
++++    /**
++++     * Returns `true` if the given `object` is a primitive type. Otherwise, returns`false`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * util.isPrimitive(5);
++++     * // Returns: true
++++     * util.isPrimitive('foo');
++++     * // Returns: true
++++     * util.isPrimitive(false);
++++     * // Returns: true
++++     * util.isPrimitive(null);
++++     * // Returns: true
++++     * util.isPrimitive(undefined);
++++     * // Returns: true
++++     * util.isPrimitive({});
++++     * // Returns: false
++++     * util.isPrimitive(() => {});
++++     * // Returns: false
++++     * util.isPrimitive(/^$/);
++++     * // Returns: false
++++     * util.isPrimitive(new Date());
++++     * // Returns: false
++++     * ```
++++     * @since v0.11.5
++++     * @deprecated Since v4.0.0 - Use `(typeof value !== 'object' && typeof value !== 'function') || value === null` instead.
++++     */
++++    export function isPrimitive(object: unknown): boolean;
++++    /**
++++     * Returns `true` if the given `object` is a `string`. Otherwise, returns `false`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * util.isString('');
++++     * // Returns: true
++++     * util.isString('foo');
++++     * // Returns: true
++++     * util.isString(String('foo'));
++++     * // Returns: true
++++     * util.isString(5);
++++     * // Returns: false
++++     * ```
++++     * @since v0.11.5
++++     * @deprecated Since v4.0.0 - Use `typeof value === 'string'` instead.
++++     */
++++    export function isString(object: unknown): object is string;
++++    /**
++++     * Returns `true` if the given `object` is a `Symbol`. Otherwise, returns `false`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * util.isSymbol(5);
++++     * // Returns: false
++++     * util.isSymbol('foo');
++++     * // Returns: false
++++     * util.isSymbol(Symbol('foo'));
++++     * // Returns: true
++++     * ```
++++     * @since v0.11.5
++++     * @deprecated Since v4.0.0 - Use `typeof value === 'symbol'` instead.
++++     */
++++    export function isSymbol(object: unknown): object is symbol;
++++    /**
++++     * Returns `true` if the given `object` is `undefined`. Otherwise, returns `false`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * const foo = undefined;
++++     * util.isUndefined(5);
++++     * // Returns: false
++++     * util.isUndefined(foo);
++++     * // Returns: true
++++     * util.isUndefined(null);
++++     * // Returns: false
++++     * ```
++++     * @since v0.11.5
++++     * @deprecated Since v4.0.0 - Use `value === undefined` instead.
++++     */
++++    export function isUndefined(object: unknown): object is undefined;
++++    /**
++++     * The `util.deprecate()` method wraps `fn` (which may be a function or class) in
++++     * such a way that it is marked as deprecated.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * exports.obsoleteFunction = util.deprecate(() => {
++++     *   // Do something here.
++++     * }, 'obsoleteFunction() is deprecated. Use newShinyFunction() instead.');
++++     * ```
++++     *
++++     * When called, `util.deprecate()` will return a function that will emit a `DeprecationWarning` using the `'warning'` event. The warning will
++++     * be emitted and printed to `stderr` the first time the returned function is
++++     * called. After the warning is emitted, the wrapped function is called without
++++     * emitting a warning.
++++     *
++++     * If the same optional `code` is supplied in multiple calls to `util.deprecate()`,
++++     * the warning will be emitted only once for that `code`.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * const fn1 = util.deprecate(someFunction, someMessage, 'DEP0001');
++++     * const fn2 = util.deprecate(someOtherFunction, someOtherMessage, 'DEP0001');
++++     * fn1(); // Emits a deprecation warning with code DEP0001
++++     * fn2(); // Does not emit a deprecation warning because it has the same code
++++     * ```
++++     *
++++     * If either the `--no-deprecation` or `--no-warnings` command-line flags are
++++     * used, or if the `process.noDeprecation` property is set to `true`_prior_ to
++++     * the first deprecation warning, the `util.deprecate()` method does nothing.
++++     *
++++     * If the `--trace-deprecation` or `--trace-warnings` command-line flags are set,
++++     * or the `process.traceDeprecation` property is set to `true`, a warning and a
++++     * stack trace are printed to `stderr` the first time the deprecated function is
++++     * called.
++++     *
++++     * If the `--throw-deprecation` command-line flag is set, or the `process.throwDeprecation` property is set to `true`, then an exception will be
++++     * thrown when the deprecated function is called.
++++     *
++++     * The `--throw-deprecation` command-line flag and `process.throwDeprecation` property take precedence over `--trace-deprecation` and `process.traceDeprecation`.
++++     * @since v0.8.0
++++     * @param fn The function that is being deprecated.
++++     * @param msg A warning message to display when the deprecated function is invoked.
++++     * @param code A deprecation code. See the `list of deprecated APIs` for a list of codes.
++++     * @return The deprecated function wrapped to emit a warning.
++++     */
++++    export function deprecate<T extends Function>(fn: T, msg: string, code?: string): T;
++++    /**
++++     * Returns `true` if there is deep strict equality between `val1` and `val2`.
++++     * Otherwise, returns `false`.
++++     *
++++     * See `assert.deepStrictEqual()` for more information about deep strict
++++     * equality.
++++     * @since v9.0.0
++++     */
++++    export function isDeepStrictEqual(val1: unknown, val2: unknown): boolean;
++++    /**
++++     * Returns `str` with any ANSI escape codes removed.
++++     *
++++     * ```js
++++     * console.log(util.stripVTControlCharacters('\u001B[4mvalue\u001B[0m'));
++++     * // Prints "value"
++++     * ```
++++     * @since v16.11.0
++++     */
++++    export function stripVTControlCharacters(str: string): string;
++++    /**
++++     * Takes an `async` function (or a function that returns a `Promise`) and returns a
++++     * function following the error-first callback style, i.e. taking
++++     * an `(err, value) => ...` callback as the last argument. In the callback, the
++++     * first argument will be the rejection reason (or `null` if the `Promise` resolved), and the second argument will be the resolved value.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * async function fn() {
++++     *   return 'hello world';
++++     * }
++++     * const callbackFunction = util.callbackify(fn);
++++     *
++++     * callbackFunction((err, ret) => {
++++     *   if (err) throw err;
++++     *   console.log(ret);
++++     * });
++++     * ```
++++     *
++++     * Will print:
++++     *
++++     * ```text
++++     * hello world
++++     * ```
++++     *
++++     * The callback is executed asynchronously, and will have a limited stack trace.
++++     * If the callback throws, the process will emit an `'uncaughtException'` event, and if not handled will exit.
++++     *
++++     * Since `null` has a special meaning as the first argument to a callback, if a
++++     * wrapped function rejects a `Promise` with a falsy value as a reason, the value
++++     * is wrapped in an `Error` with the original value stored in a field named `reason`.
++++     *
++++     * ```js
++++     * function fn() {
++++     *   return Promise.reject(null);
++++     * }
++++     * const callbackFunction = util.callbackify(fn);
++++     *
++++     * callbackFunction((err, ret) => {
++++     *   // When the Promise was rejected with `null` it is wrapped with an Error and
++++     *   // the original value is stored in `reason`.
++++     *   err &#x26;&#x26; Object.hasOwn(err, 'reason') &#x26;&#x26; err.reason === null;  // true
++++     * });
++++     * ```
++++     * @since v8.2.0
++++     * @param fn An `async` function
++++     * @return a callback style function
++++     */
++++    export function callbackify(fn: () => Promise<void>): (callback: (err: NodeJS.ErrnoException) => void) => void;
++++    export function callbackify<TResult>(
++++        fn: () => Promise<TResult>,
++++    ): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
++++    export function callbackify<T1>(
++++        fn: (arg1: T1) => Promise<void>,
++++    ): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void;
++++    export function callbackify<T1, TResult>(
++++        fn: (arg1: T1) => Promise<TResult>,
++++    ): (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
++++    export function callbackify<T1, T2>(
++++        fn: (arg1: T1, arg2: T2) => Promise<void>,
++++    ): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void;
++++    export function callbackify<T1, T2, TResult>(
++++        fn: (arg1: T1, arg2: T2) => Promise<TResult>,
++++    ): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
++++    export function callbackify<T1, T2, T3>(
++++        fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<void>,
++++    ): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void;
++++    export function callbackify<T1, T2, T3, TResult>(
++++        fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>,
++++    ): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
++++    export function callbackify<T1, T2, T3, T4>(
++++        fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>,
++++    ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void;
++++    export function callbackify<T1, T2, T3, T4, TResult>(
++++        fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>,
++++    ): (
++++        arg1: T1,
++++        arg2: T2,
++++        arg3: T3,
++++        arg4: T4,
++++        callback: (err: NodeJS.ErrnoException | null, result: TResult) => void,
++++    ) => void;
++++    export function callbackify<T1, T2, T3, T4, T5>(
++++        fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>,
++++    ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void;
++++    export function callbackify<T1, T2, T3, T4, T5, TResult>(
++++        fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>,
++++    ): (
++++        arg1: T1,
++++        arg2: T2,
++++        arg3: T3,
++++        arg4: T4,
++++        arg5: T5,
++++        callback: (err: NodeJS.ErrnoException | null, result: TResult) => void,
++++    ) => void;
++++    export function callbackify<T1, T2, T3, T4, T5, T6>(
++++        fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<void>,
++++    ): (
++++        arg1: T1,
++++        arg2: T2,
++++        arg3: T3,
++++        arg4: T4,
++++        arg5: T5,
++++        arg6: T6,
++++        callback: (err: NodeJS.ErrnoException) => void,
++++    ) => void;
++++    export function callbackify<T1, T2, T3, T4, T5, T6, TResult>(
++++        fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult>,
++++    ): (
++++        arg1: T1,
++++        arg2: T2,
++++        arg3: T3,
++++        arg4: T4,
++++        arg5: T5,
++++        arg6: T6,
++++        callback: (err: NodeJS.ErrnoException | null, result: TResult) => void,
++++    ) => void;
++++    export interface CustomPromisifyLegacy<TCustom extends Function> extends Function {
++++        __promisify__: TCustom;
++++    }
++++    export interface CustomPromisifySymbol<TCustom extends Function> extends Function {
++++        [promisify.custom]: TCustom;
++++    }
++++    export type CustomPromisify<TCustom extends Function> =
++++        | CustomPromisifySymbol<TCustom>
++++        | CustomPromisifyLegacy<TCustom>;
++++    /**
++++     * Takes a function following the common error-first callback style, i.e. taking
++++     * an `(err, value) => ...` callback as the last argument, and returns a version
++++     * that returns promises.
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     * import fs from 'node:fs';
++++     *
++++     * const stat = util.promisify(fs.stat);
++++     * stat('.').then((stats) => {
++++     *   // Do something with `stats`
++++     * }).catch((error) => {
++++     *   // Handle the error.
++++     * });
++++     * ```
++++     *
++++     * Or, equivalently using `async function`s:
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     * import fs from 'node:fs';
++++     *
++++     * const stat = util.promisify(fs.stat);
++++     *
++++     * async function callStat() {
++++     *   const stats = await stat('.');
++++     *   console.log(`This directory is owned by ${stats.uid}`);
++++     * }
++++     *
++++     * callStat();
++++     * ```
++++     *
++++     * If there is an `original[util.promisify.custom]` property present, `promisify` will return its value, see `Custom promisified functions`.
++++     *
++++     * `promisify()` assumes that `original` is a function taking a callback as its
++++     * final argument in all cases. If `original` is not a function, `promisify()` will throw an error. If `original` is a function but its last argument is not
++++     * an error-first callback, it will still be passed an error-first
++++     * callback as its last argument.
++++     *
++++     * Using `promisify()` on class methods or other methods that use `this` may not
++++     * work as expected unless handled specially:
++++     *
++++     * ```js
++++     * import util from 'node:util';
++++     *
++++     * class Foo {
++++     *   constructor() {
++++     *     this.a = 42;
++++     *   }
++++     *
++++     *   bar(callback) {
++++     *     callback(null, this.a);
++++     *   }
++++     * }
++++     *
++++     * const foo = new Foo();
++++     *
++++     * const naiveBar = util.promisify(foo.bar);
++++     * // TypeError: Cannot read property 'a' of undefined
++++     * // naiveBar().then(a => console.log(a));
++++     *
++++     * naiveBar.call(foo).then((a) => console.log(a)); // '42'
++++     *
++++     * const bindBar = naiveBar.bind(foo);
++++     * bindBar().then((a) => console.log(a)); // '42'
++++     * ```
++++     * @since v8.0.0
++++     */
++++    export function promisify<TCustom extends Function>(fn: CustomPromisify<TCustom>): TCustom;
++++    export function promisify<TResult>(
++++        fn: (callback: (err: any, result: TResult) => void) => void,
++++    ): () => Promise<TResult>;
++++    export function promisify(fn: (callback: (err?: any) => void) => void): () => Promise<void>;
++++    export function promisify<T1, TResult>(
++++        fn: (arg1: T1, callback: (err: any, result: TResult) => void) => void,
++++    ): (arg1: T1) => Promise<TResult>;
++++    export function promisify<T1>(fn: (arg1: T1, callback: (err?: any) => void) => void): (arg1: T1) => Promise<void>;
++++    export function promisify<T1, T2, TResult>(
++++        fn: (arg1: T1, arg2: T2, callback: (err: any, result: TResult) => void) => void,
++++    ): (arg1: T1, arg2: T2) => Promise<TResult>;
++++    export function promisify<T1, T2>(
++++        fn: (arg1: T1, arg2: T2, callback: (err?: any) => void) => void,
++++    ): (arg1: T1, arg2: T2) => Promise<void>;
++++    export function promisify<T1, T2, T3, TResult>(
++++        fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: any, result: TResult) => void) => void,
++++    ): (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
++++    export function promisify<T1, T2, T3>(
++++        fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: any) => void) => void,
++++    ): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
++++    export function promisify<T1, T2, T3, T4, TResult>(
++++        fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void,
++++    ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>;
++++    export function promisify<T1, T2, T3, T4>(
++++        fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: any) => void) => void,
++++    ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
++++    export function promisify<T1, T2, T3, T4, T5, TResult>(
++++        fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void,
++++    ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>;
++++    export function promisify<T1, T2, T3, T4, T5>(
++++        fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void,
++++    ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
++++    export function promisify(fn: Function): Function;
++++    export namespace promisify {
++++        /**
++++         * That can be used to declare custom promisified variants of functions.
++++         */
++++        const custom: unique symbol;
++++    }
++++    /**
++++     * Stability: 1.1 - Active development
++++     * Given an example `.env` file:
++++     *
++++     * ```js
++++     * import { parseEnv } from 'node:util';
++++     *
++++     * parseEnv('HELLO=world\nHELLO=oh my\n');
++++     * // Returns: { HELLO: 'oh my' }
++++     * ```
++++     * @param content The raw contents of a `.env` file.
++++     * @since v20.12.0
++++     */
++++    export function parseEnv(content: string): object;
++++    // https://nodejs.org/docs/latest/api/util.html#foreground-colors
++++    type ForegroundColors =
++++        | "black"
++++        | "blackBright"
++++        | "blue"
++++        | "blueBright"
++++        | "cyan"
++++        | "cyanBright"
++++        | "gray"
++++        | "green"
++++        | "greenBright"
++++        | "grey"
++++        | "magenta"
++++        | "magentaBright"
++++        | "red"
++++        | "redBright"
++++        | "white"
++++        | "whiteBright"
++++        | "yellow"
++++        | "yellowBright";
++++    // https://nodejs.org/docs/latest/api/util.html#background-colors
++++    type BackgroundColors =
++++        | "bgBlack"
++++        | "bgBlackBright"
++++        | "bgBlue"
++++        | "bgBlueBright"
++++        | "bgCyan"
++++        | "bgCyanBright"
++++        | "bgGray"
++++        | "bgGreen"
++++        | "bgGreenBright"
++++        | "bgGrey"
++++        | "bgMagenta"
++++        | "bgMagentaBright"
++++        | "bgRed"
++++        | "bgRedBright"
++++        | "bgWhite"
++++        | "bgWhiteBright"
++++        | "bgYellow"
++++        | "bgYellowBright";
++++    // https://nodejs.org/docs/latest/api/util.html#modifiers
++++    type Modifiers =
++++        | "blink"
++++        | "bold"
++++        | "dim"
++++        | "doubleunderline"
++++        | "framed"
++++        | "hidden"
++++        | "inverse"
++++        | "italic"
++++        | "overlined"
++++        | "reset"
++++        | "strikethrough"
++++        | "underline";
++++    /**
++++     * Stability: 1.1 - Active development
++++     *
++++     * This function returns a formatted text considering the `format` passed.
++++     *
++++     * ```js
++++     * import { styleText } from 'node:util';
++++     * const errorMessage = styleText('red', 'Error! Error!');
++++     * console.log(errorMessage);
++++     * ```
++++     *
++++     * `util.inspect.colors` also provides text formats such as `italic`, and `underline` and you can combine both:
++++     *
++++     * ```js
++++     * console.log(
++++     *   util.styleText(['underline', 'italic'], 'My italic underlined message'),
++++     * );
++++     * ```
++++     *
++++     * When passing an array of formats, the order of the format applied is left to right so the following style
++++     * might overwrite the previous one.
++++     *
++++     * ```js
++++     * console.log(
++++     *   util.styleText(['red', 'green'], 'text'), // green
++++     * );
++++     * ```
++++     *
++++     * The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-v20.x/api/util.html#modifiers).
++++     * @param format A text format or an Array of text formats defined in `util.inspect.colors`.
++++     * @param text The text to to be formatted.
++++     * @since v20.12.0
++++     */
++++    export function styleText(
++++        format:
++++            | ForegroundColors
++++            | BackgroundColors
++++            | Modifiers
++++            | Array<ForegroundColors | BackgroundColors | Modifiers>,
++++        text: string,
++++    ): string;
++++    /**
++++     * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextDecoder` API.
++++     *
++++     * ```js
++++     * const decoder = new TextDecoder();
++++     * const u8arr = new Uint8Array([72, 101, 108, 108, 111]);
++++     * console.log(decoder.decode(u8arr)); // Hello
++++     * ```
++++     * @since v8.3.0
++++     */
++++    export class TextDecoder {
++++        /**
++++         * The encoding supported by the `TextDecoder` instance.
++++         */
++++        readonly encoding: string;
++++        /**
++++         * The value will be `true` if decoding errors result in a `TypeError` being
++++         * thrown.
++++         */
++++        readonly fatal: boolean;
++++        /**
++++         * The value will be `true` if the decoding result will include the byte order
++++         * mark.
++++         */
++++        readonly ignoreBOM: boolean;
++++        constructor(
++++            encoding?: string,
++++            options?: {
++++                fatal?: boolean | undefined;
++++                ignoreBOM?: boolean | undefined;
++++            },
++++        );
++++        /**
++++         * Decodes the `input` and returns a string. If `options.stream` is `true`, any
++++         * incomplete byte sequences occurring at the end of the `input` are buffered
++++         * internally and emitted after the next call to `textDecoder.decode()`.
++++         *
++++         * If `textDecoder.fatal` is `true`, decoding errors that occur will result in a `TypeError` being thrown.
++++         * @param input An `ArrayBuffer`, `DataView`, or `TypedArray` instance containing the encoded data.
++++         */
++++        decode(
++++            input?: NodeJS.ArrayBufferView | ArrayBuffer | null,
++++            options?: {
++++                stream?: boolean | undefined;
++++            },
++++        ): string;
++++    }
++++    export interface EncodeIntoResult {
++++        /**
++++         * The read Unicode code units of input.
++++         */
++++        read: number;
++++        /**
++++         * The written UTF-8 bytes of output.
++++         */
++++        written: number;
++++    }
++++    export { types };
++++
++++    //// TextEncoder/Decoder
++++    /**
++++     * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextEncoder` API. All
++++     * instances of `TextEncoder` only support UTF-8 encoding.
++++     *
++++     * ```js
++++     * const encoder = new TextEncoder();
++++     * const uint8array = encoder.encode('this is some data');
++++     * ```
++++     *
++++     * The `TextEncoder` class is also available on the global object.
++++     * @since v8.3.0
++++     */
++++    export class TextEncoder {
++++        /**
++++         * The encoding supported by the `TextEncoder` instance. Always set to `'utf-8'`.
++++         */
++++        readonly encoding: string;
++++        /**
++++         * UTF-8 encodes the `input` string and returns a `Uint8Array` containing the
++++         * encoded bytes.
++++         * @param [input='an empty string'] The text to encode.
++++         */
++++        encode(input?: string): Uint8Array;
++++        /**
++++         * UTF-8 encodes the `src` string to the `dest` Uint8Array and returns an object
++++         * containing the read Unicode code units and written UTF-8 bytes.
++++         *
++++         * ```js
++++         * const encoder = new TextEncoder();
++++         * const src = 'this is some data';
++++         * const dest = new Uint8Array(10);
++++         * const { read, written } = encoder.encodeInto(src, dest);
++++         * ```
++++         * @param src The text to encode.
++++         * @param dest The array to hold the encode result.
++++         */
++++        encodeInto(src: string, dest: Uint8Array): EncodeIntoResult;
++++    }
++++    import { TextDecoder as _TextDecoder, TextEncoder as _TextEncoder } from "util";
++++    global {
++++        /**
++++         * `TextDecoder` class is a global reference for `import { TextDecoder } from 'node:util'`
++++         * https://nodejs.org/api/globals.html#textdecoder
++++         * @since v11.0.0
++++         */
++++        var TextDecoder: typeof globalThis extends {
++++            onmessage: any;
++++            TextDecoder: infer TextDecoder;
++++        } ? TextDecoder
++++            : typeof _TextDecoder;
++++        /**
++++         * `TextEncoder` class is a global reference for `import { TextEncoder } from 'node:util'`
++++         * https://nodejs.org/api/globals.html#textencoder
++++         * @since v11.0.0
++++         */
++++        var TextEncoder: typeof globalThis extends {
++++            onmessage: any;
++++            TextEncoder: infer TextEncoder;
++++        } ? TextEncoder
++++            : typeof _TextEncoder;
++++    }
++++
++++    //// parseArgs
++++    /**
++++     * Provides a higher level API for command-line argument parsing than interacting
++++     * with `process.argv` directly. Takes a specification for the expected arguments
++++     * and returns a structured object with the parsed options and positionals.
++++     *
++++     * ```js
++++     * import { parseArgs } from 'node:util';
++++     * const args = ['-f', '--bar', 'b'];
++++     * const options = {
++++     *   foo: {
++++     *     type: 'boolean',
++++     *     short: 'f',
++++     *   },
++++     *   bar: {
++++     *     type: 'string',
++++     *   },
++++     * };
++++     * const {
++++     *   values,
++++     *   positionals,
++++     * } = parseArgs({ args, options });
++++     * console.log(values, positionals);
++++     * // Prints: [Object: null prototype] { foo: true, bar: 'b' } []
++++     * ```
++++     * @since v18.3.0, v16.17.0
++++     * @param config Used to provide arguments for parsing and to configure the parser. `config` supports the following properties:
++++     * @return The parsed command line arguments:
++++     */
++++    export function parseArgs<T extends ParseArgsConfig>(config?: T): ParsedResults<T>;
++++    interface ParseArgsOptionConfig {
++++        /**
++++         * Type of argument.
++++         */
++++        type: "string" | "boolean";
++++        /**
++++         * Whether this option can be provided multiple times.
++++         * If `true`, all values will be collected in an array.
++++         * If `false`, values for the option are last-wins.
++++         * @default false.
++++         */
++++        multiple?: boolean | undefined;
++++        /**
++++         * A single character alias for the option.
++++         */
++++        short?: string | undefined;
++++        /**
++++         * The default option value when it is not set by args.
++++         * It must be of the same type as the the `type` property.
++++         * When `multiple` is `true`, it must be an array.
++++         * @since v18.11.0
++++         */
++++        default?: string | boolean | string[] | boolean[] | undefined;
++++    }
++++    interface ParseArgsOptionsConfig {
++++        [longOption: string]: ParseArgsOptionConfig;
++++    }
++++    export interface ParseArgsConfig {
++++        /**
++++         * Array of argument strings.
++++         */
++++        args?: string[] | undefined;
++++        /**
++++         * Used to describe arguments known to the parser.
++++         */
++++        options?: ParseArgsOptionsConfig | undefined;
++++        /**
++++         * Should an error be thrown when unknown arguments are encountered,
++++         * or when arguments are passed that do not match the `type` configured in `options`.
++++         * @default true
++++         */
++++        strict?: boolean | undefined;
++++        /**
++++         * Whether this command accepts positional arguments.
++++         */
++++        allowPositionals?: boolean | undefined;
++++        /**
++++         * If `true`, allows explicitly setting boolean options to `false` by prefixing the option name with `--no-`.
++++         * @default false
++++         * @since v20.16.0
++++         */
++++        allowNegative?: boolean | undefined;
++++        /**
++++         * Return the parsed tokens. This is useful for extending the built-in behavior,
++++         * from adding additional checks through to reprocessing the tokens in different ways.
++++         * @default false
++++         */
++++        tokens?: boolean | undefined;
++++    }
++++    /*
++++    IfDefaultsTrue and IfDefaultsFalse are helpers to handle default values for missing boolean properties.
++++    TypeScript does not have exact types for objects: https://github.com/microsoft/TypeScript/issues/12936
++++    This means it is impossible to distinguish between "field X is definitely not present" and "field X may or may not be present".
++++    But we expect users to generally provide their config inline or `as const`, which means TS will always know whether a given field is present.
++++    So this helper treats "not definitely present" (i.e., not `extends boolean`) as being "definitely not present", i.e. it should have its default value.
++++    This is technically incorrect but is a much nicer UX for the common case.
++++    The IfDefaultsTrue version is for things which default to true; the IfDefaultsFalse version is for things which default to false.
++++    */
++++    type IfDefaultsTrue<T, IfTrue, IfFalse> = T extends true ? IfTrue
++++        : T extends false ? IfFalse
++++        : IfTrue;
++++
++++    // we put the `extends false` condition first here because `undefined` compares like `any` when `strictNullChecks: false`
++++    type IfDefaultsFalse<T, IfTrue, IfFalse> = T extends false ? IfFalse
++++        : T extends true ? IfTrue
++++        : IfFalse;
++++
++++    type ExtractOptionValue<T extends ParseArgsConfig, O extends ParseArgsOptionConfig> = IfDefaultsTrue<
++++        T["strict"],
++++        O["type"] extends "string" ? string : O["type"] extends "boolean" ? boolean : string | boolean,
++++        string | boolean
++++    >;
++++
++++    type ApplyOptionalModifiers<O extends ParseArgsOptionsConfig, V extends Record<keyof O, unknown>> = (
++++        & { -readonly [LongOption in keyof O]?: V[LongOption] }
++++        & { [LongOption in keyof O as O[LongOption]["default"] extends {} ? LongOption : never]: V[LongOption] }
++++    ) extends infer P ? { [K in keyof P]: P[K] } : never; // resolve intersection to object
++++
++++    type ParsedValues<T extends ParseArgsConfig> =
++++        & IfDefaultsTrue<T["strict"], unknown, { [longOption: string]: undefined | string | boolean }>
++++        & (T["options"] extends ParseArgsOptionsConfig ? ApplyOptionalModifiers<
++++                T["options"],
++++                {
++++                    [LongOption in keyof T["options"]]: IfDefaultsFalse<
++++                        T["options"][LongOption]["multiple"],
++++                        Array<ExtractOptionValue<T, T["options"][LongOption]>>,
++++                        ExtractOptionValue<T, T["options"][LongOption]>
++++                    >;
++++                }
++++            >
++++            : {});
++++
++++    type ParsedPositionals<T extends ParseArgsConfig> = IfDefaultsTrue<
++++        T["strict"],
++++        IfDefaultsFalse<T["allowPositionals"], string[], []>,
++++        IfDefaultsTrue<T["allowPositionals"], string[], []>
++++    >;
++++
++++    type PreciseTokenForOptions<
++++        K extends string,
++++        O extends ParseArgsOptionConfig,
++++    > = O["type"] extends "string" ? {
++++            kind: "option";
++++            index: number;
++++            name: K;
++++            rawName: string;
++++            value: string;
++++            inlineValue: boolean;
++++        }
++++        : O["type"] extends "boolean" ? {
++++                kind: "option";
++++                index: number;
++++                name: K;
++++                rawName: string;
++++                value: undefined;
++++                inlineValue: undefined;
++++            }
++++        : OptionToken & { name: K };
++++
++++    type TokenForOptions<
++++        T extends ParseArgsConfig,
++++        K extends keyof T["options"] = keyof T["options"],
++++    > = K extends unknown
++++        ? T["options"] extends ParseArgsOptionsConfig ? PreciseTokenForOptions<K & string, T["options"][K]>
++++        : OptionToken
++++        : never;
++++
++++    type ParsedOptionToken<T extends ParseArgsConfig> = IfDefaultsTrue<T["strict"], TokenForOptions<T>, OptionToken>;
++++
++++    type ParsedPositionalToken<T extends ParseArgsConfig> = IfDefaultsTrue<
++++        T["strict"],
++++        IfDefaultsFalse<T["allowPositionals"], { kind: "positional"; index: number; value: string }, never>,
++++        IfDefaultsTrue<T["allowPositionals"], { kind: "positional"; index: number; value: string }, never>
++++    >;
++++
++++    type ParsedTokens<T extends ParseArgsConfig> = Array<
++++        ParsedOptionToken<T> | ParsedPositionalToken<T> | { kind: "option-terminator"; index: number }
++++    >;
++++
++++    type PreciseParsedResults<T extends ParseArgsConfig> = IfDefaultsFalse<
++++        T["tokens"],
++++        {
++++            values: ParsedValues<T>;
++++            positionals: ParsedPositionals<T>;
++++            tokens: ParsedTokens<T>;
++++        },
++++        {
++++            values: ParsedValues<T>;
++++            positionals: ParsedPositionals<T>;
++++        }
++++    >;
++++
++++    type OptionToken =
++++        | { kind: "option"; index: number; name: string; rawName: string; value: string; inlineValue: boolean }
++++        | {
++++            kind: "option";
++++            index: number;
++++            name: string;
++++            rawName: string;
++++            value: undefined;
++++            inlineValue: undefined;
++++        };
++++
++++    type Token =
++++        | OptionToken
++++        | { kind: "positional"; index: number; value: string }
++++        | { kind: "option-terminator"; index: number };
++++
++++    // If ParseArgsConfig extends T, then the user passed config constructed elsewhere.
++++    // So we can't rely on the `"not definitely present" implies "definitely not present"` assumption mentioned above.
++++    type ParsedResults<T extends ParseArgsConfig> = ParseArgsConfig extends T ? {
++++            values: {
++++                [longOption: string]: undefined | string | boolean | Array<string | boolean>;
++++            };
++++            positionals: string[];
++++            tokens?: Token[];
++++        }
++++        : PreciseParsedResults<T>;
++++
++++    /**
++++     * An implementation of [the MIMEType class](https://bmeck.github.io/node-proposal-mime-api/).
++++     *
++++     * In accordance with browser conventions, all properties of `MIMEType` objects
++++     * are implemented as getters and setters on the class prototype, rather than as
++++     * data properties on the object itself.
++++     *
++++     * A MIME string is a structured string containing multiple meaningful
++++     * components. When parsed, a `MIMEType` object is returned containing
++++     * properties for each of these components.
++++     * @since v19.1.0, v18.13.0
++++     * @experimental
++++     */
++++    export class MIMEType {
++++        /**
++++         * Creates a new MIMEType object by parsing the input.
++++         *
++++         * A `TypeError` will be thrown if the `input` is not a valid MIME.
++++         * Note that an effort will be made to coerce the given values into strings.
++++         * @param input The input MIME to parse.
++++         */
++++        constructor(input: string | { toString: () => string });
++++
++++        /**
++++         * Gets and sets the type portion of the MIME.
++++         *
++++         * ```js
++++         * import { MIMEType } from 'node:util';
++++         *
++++         * const myMIME = new MIMEType('text/javascript');
++++         * console.log(myMIME.type);
++++         * // Prints: text
++++         * myMIME.type = 'application';
++++         * console.log(myMIME.type);
++++         * // Prints: application
++++         * console.log(String(myMIME));
++++         * // Prints: application/javascript
++++         * ```
++++         */
++++        type: string;
++++        /**
++++         * Gets and sets the subtype portion of the MIME.
++++         *
++++         * ```js
++++         * import { MIMEType } from 'node:util';
++++         *
++++         * const myMIME = new MIMEType('text/ecmascript');
++++         * console.log(myMIME.subtype);
++++         * // Prints: ecmascript
++++         * myMIME.subtype = 'javascript';
++++         * console.log(myMIME.subtype);
++++         * // Prints: javascript
++++         * console.log(String(myMIME));
++++         * // Prints: text/javascript
++++         * ```
++++         */
++++        subtype: string;
++++        /**
++++         * Gets the essence of the MIME. This property is read only.
++++         * Use `mime.type` or `mime.subtype` to alter the MIME.
++++         *
++++         * ```js
++++         * import { MIMEType } from 'node:util';
++++         *
++++         * const myMIME = new MIMEType('text/javascript;key=value');
++++         * console.log(myMIME.essence);
++++         * // Prints: text/javascript
++++         * myMIME.type = 'application';
++++         * console.log(myMIME.essence);
++++         * // Prints: application/javascript
++++         * console.log(String(myMIME));
++++         * // Prints: application/javascript;key=value
++++         * ```
++++         */
++++        readonly essence: string;
++++        /**
++++         * Gets the `MIMEParams` object representing the
++++         * parameters of the MIME. This property is read-only. See `MIMEParams` documentation for details.
++++         */
++++        readonly params: MIMEParams;
++++        /**
++++         * The `toString()` method on the `MIMEType` object returns the serialized MIME.
++++         *
++++         * Because of the need for standard compliance, this method does not allow users
++++         * to customize the serialization process of the MIME.
++++         */
++++        toString(): string;
++++    }
++++    /**
++++     * The `MIMEParams` API provides read and write access to the parameters of a `MIMEType`.
++++     * @since v19.1.0, v18.13.0
++++     */
++++    export class MIMEParams {
++++        /**
++++         * Remove all name-value pairs whose name is `name`.
++++         */
++++        delete(name: string): void;
++++        /**
++++         * Returns an iterator over each of the name-value pairs in the parameters.
++++         * Each item of the iterator is a JavaScript `Array`. The first item of the array
++++         * is the `name`, the second item of the array is the `value`.
++++         */
++++        entries(): NodeJS.Iterator<[name: string, value: string]>;
++++        /**
++++         * Returns the value of the first name-value pair whose name is `name`. If there
++++         * are no such pairs, `null` is returned.
++++         * @return or `null` if there is no name-value pair with the given `name`.
++++         */
++++        get(name: string): string | null;
++++        /**
++++         * Returns `true` if there is at least one name-value pair whose name is `name`.
++++         */
++++        has(name: string): boolean;
++++        /**
++++         * Returns an iterator over the names of each name-value pair.
++++         *
++++         * ```js
++++         * import { MIMEType } from 'node:util';
++++         *
++++         * const { params } = new MIMEType('text/plain;foo=0;bar=1');
++++         * for (const name of params.keys()) {
++++         *   console.log(name);
++++         * }
++++         * // Prints:
++++         * //   foo
++++         * //   bar
++++         * ```
++++         */
++++        keys(): NodeJS.Iterator<string>;
++++        /**
++++         * Sets the value in the `MIMEParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`,
++++         * set the first such pair's value to `value`.
++++         *
++++         * ```js
++++         * import { MIMEType } from 'node:util';
++++         *
++++         * const { params } = new MIMEType('text/plain;foo=0;bar=1');
++++         * params.set('foo', 'def');
++++         * params.set('baz', 'xyz');
++++         * console.log(params.toString());
++++         * // Prints: foo=def;bar=1;baz=xyz
++++         * ```
++++         */
++++        set(name: string, value: string): void;
++++        /**
++++         * Returns an iterator over the values of each name-value pair.
++++         */
++++        values(): NodeJS.Iterator<string>;
++++        /**
++++         * Returns an iterator over each of the name-value pairs in the parameters.
++++         */
++++        [Symbol.iterator](): NodeJS.Iterator<[name: string, value: string]>;
++++    }
++++}
++++declare module "util/types" {
++++    import { KeyObject, webcrypto } from "node:crypto";
++++    /**
++++     * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) or
++++     * [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance.
++++     *
++++     * See also `util.types.isArrayBuffer()` and `util.types.isSharedArrayBuffer()`.
++++     *
++++     * ```js
++++     * util.types.isAnyArrayBuffer(new ArrayBuffer());  // Returns true
++++     * util.types.isAnyArrayBuffer(new SharedArrayBuffer());  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isAnyArrayBuffer(object: unknown): object is ArrayBufferLike;
++++    /**
++++     * Returns `true` if the value is an `arguments` object.
++++     *
++++     * ```js
++++     * function foo() {
++++     *   util.types.isArgumentsObject(arguments);  // Returns true
++++     * }
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isArgumentsObject(object: unknown): object is IArguments;
++++    /**
++++     * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instance.
++++     * This does _not_ include [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances. Usually, it is
++++     * desirable to test for both; See `util.types.isAnyArrayBuffer()` for that.
++++     *
++++     * ```js
++++     * util.types.isArrayBuffer(new ArrayBuffer());  // Returns true
++++     * util.types.isArrayBuffer(new SharedArrayBuffer());  // Returns false
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isArrayBuffer(object: unknown): object is ArrayBuffer;
++++    /**
++++     * Returns `true` if the value is an instance of one of the [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) views, such as typed
++++     * array objects or [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView). Equivalent to
++++     * [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView).
++++     *
++++     * ```js
++++     * util.types.isArrayBufferView(new Int8Array());  // true
++++     * util.types.isArrayBufferView(Buffer.from('hello world')); // true
++++     * util.types.isArrayBufferView(new DataView(new ArrayBuffer(16)));  // true
++++     * util.types.isArrayBufferView(new ArrayBuffer());  // false
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isArrayBufferView(object: unknown): object is NodeJS.ArrayBufferView;
++++    /**
++++     * Returns `true` if the value is an [async function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function).
++++     * This only reports back what the JavaScript engine is seeing;
++++     * in particular, the return value may not match the original source code if
++++     * a transpilation tool was used.
++++     *
++++     * ```js
++++     * util.types.isAsyncFunction(function foo() {});  // Returns false
++++     * util.types.isAsyncFunction(async function foo() {});  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isAsyncFunction(object: unknown): boolean;
++++    /**
++++     * Returns `true` if the value is a `BigInt64Array` instance.
++++     *
++++     * ```js
++++     * util.types.isBigInt64Array(new BigInt64Array());   // Returns true
++++     * util.types.isBigInt64Array(new BigUint64Array());  // Returns false
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isBigInt64Array(value: unknown): value is BigInt64Array;
++++    /**
++++     * Returns `true` if the value is a `BigUint64Array` instance.
++++     *
++++     * ```js
++++     * util.types.isBigUint64Array(new BigInt64Array());   // Returns false
++++     * util.types.isBigUint64Array(new BigUint64Array());  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isBigUint64Array(value: unknown): value is BigUint64Array;
++++    /**
++++     * Returns `true` if the value is a boolean object, e.g. created
++++     * by `new Boolean()`.
++++     *
++++     * ```js
++++     * util.types.isBooleanObject(false);  // Returns false
++++     * util.types.isBooleanObject(true);   // Returns false
++++     * util.types.isBooleanObject(new Boolean(false)); // Returns true
++++     * util.types.isBooleanObject(new Boolean(true));  // Returns true
++++     * util.types.isBooleanObject(Boolean(false)); // Returns false
++++     * util.types.isBooleanObject(Boolean(true));  // Returns false
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isBooleanObject(object: unknown): object is Boolean;
++++    /**
++++     * Returns `true` if the value is any boxed primitive object, e.g. created
++++     * by `new Boolean()`, `new String()` or `Object(Symbol())`.
++++     *
++++     * For example:
++++     *
++++     * ```js
++++     * util.types.isBoxedPrimitive(false); // Returns false
++++     * util.types.isBoxedPrimitive(new Boolean(false)); // Returns true
++++     * util.types.isBoxedPrimitive(Symbol('foo')); // Returns false
++++     * util.types.isBoxedPrimitive(Object(Symbol('foo'))); // Returns true
++++     * util.types.isBoxedPrimitive(Object(BigInt(5))); // Returns true
++++     * ```
++++     * @since v10.11.0
++++     */
++++    function isBoxedPrimitive(object: unknown): object is String | Number | BigInt | Boolean | Symbol;
++++    /**
++++     * Returns `true` if the value is a built-in [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView) instance.
++++     *
++++     * ```js
++++     * const ab = new ArrayBuffer(20);
++++     * util.types.isDataView(new DataView(ab));  // Returns true
++++     * util.types.isDataView(new Float64Array());  // Returns false
++++     * ```
++++     *
++++     * See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView).
++++     * @since v10.0.0
++++     */
++++    function isDataView(object: unknown): object is DataView;
++++    /**
++++     * Returns `true` if the value is a built-in [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance.
++++     *
++++     * ```js
++++     * util.types.isDate(new Date());  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isDate(object: unknown): object is Date;
++++    /**
++++     * Returns `true` if the value is a native `External` value.
++++     *
++++     * A native `External` value is a special type of object that contains a
++++     * raw C++ pointer (`void*`) for access from native code, and has no other
++++     * properties. Such objects are created either by Node.js internals or native
++++     * addons. In JavaScript, they are [frozen](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze) objects with a`null` prototype.
++++     *
++++     * ```c
++++     * #include <js_native_api.h>
++++     * #include <stdlib.h>
++++     * napi_value result;
++++     * static napi_value MyNapi(napi_env env, napi_callback_info info) {
++++     *   int* raw = (int*) malloc(1024);
++++     *   napi_status status = napi_create_external(env, (void*) raw, NULL, NULL, &#x26;result);
++++     *   if (status != napi_ok) {
++++     *     napi_throw_error(env, NULL, "napi_create_external failed");
++++     *     return NULL;
++++     *   }
++++     *   return result;
++++     * }
++++     * ...
++++     * DECLARE_NAPI_PROPERTY("myNapi", MyNapi)
++++     * ...
++++     * ```
++++     *
++++     * ```js
++++     * const native =require('napi_addon.node');
++++     * const data = native.myNapi();
++++     * util.types.isExternal(data); // returns true
++++     * util.types.isExternal(0); // returns false
++++     * util.types.isExternal(new String('foo')); // returns false
++++     * ```
++++     *
++++     * For further information on `napi_create_external`, refer to `napi_create_external()`.
++++     * @since v10.0.0
++++     */
++++    function isExternal(object: unknown): boolean;
++++    /**
++++     * Returns `true` if the value is a built-in [`Float32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array) instance.
++++     *
++++     * ```js
++++     * util.types.isFloat32Array(new ArrayBuffer());  // Returns false
++++     * util.types.isFloat32Array(new Float32Array());  // Returns true
++++     * util.types.isFloat32Array(new Float64Array());  // Returns false
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isFloat32Array(object: unknown): object is Float32Array;
++++    /**
++++     * Returns `true` if the value is a built-in [`Float64Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array) instance.
++++     *
++++     * ```js
++++     * util.types.isFloat64Array(new ArrayBuffer());  // Returns false
++++     * util.types.isFloat64Array(new Uint8Array());  // Returns false
++++     * util.types.isFloat64Array(new Float64Array());  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isFloat64Array(object: unknown): object is Float64Array;
++++    /**
++++     * Returns `true` if the value is a generator function.
++++     * This only reports back what the JavaScript engine is seeing;
++++     * in particular, the return value may not match the original source code if
++++     * a transpilation tool was used.
++++     *
++++     * ```js
++++     * util.types.isGeneratorFunction(function foo() {});  // Returns false
++++     * util.types.isGeneratorFunction(function* foo() {});  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isGeneratorFunction(object: unknown): object is GeneratorFunction;
++++    /**
++++     * Returns `true` if the value is a generator object as returned from a
++++     * built-in generator function.
++++     * This only reports back what the JavaScript engine is seeing;
++++     * in particular, the return value may not match the original source code if
++++     * a transpilation tool was used.
++++     *
++++     * ```js
++++     * function* foo() {}
++++     * const generator = foo();
++++     * util.types.isGeneratorObject(generator);  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isGeneratorObject(object: unknown): object is Generator;
++++    /**
++++     * Returns `true` if the value is a built-in [`Int8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array) instance.
++++     *
++++     * ```js
++++     * util.types.isInt8Array(new ArrayBuffer());  // Returns false
++++     * util.types.isInt8Array(new Int8Array());  // Returns true
++++     * util.types.isInt8Array(new Float64Array());  // Returns false
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isInt8Array(object: unknown): object is Int8Array;
++++    /**
++++     * Returns `true` if the value is a built-in [`Int16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array) instance.
++++     *
++++     * ```js
++++     * util.types.isInt16Array(new ArrayBuffer());  // Returns false
++++     * util.types.isInt16Array(new Int16Array());  // Returns true
++++     * util.types.isInt16Array(new Float64Array());  // Returns false
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isInt16Array(object: unknown): object is Int16Array;
++++    /**
++++     * Returns `true` if the value is a built-in [`Int32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array) instance.
++++     *
++++     * ```js
++++     * util.types.isInt32Array(new ArrayBuffer());  // Returns false
++++     * util.types.isInt32Array(new Int32Array());  // Returns true
++++     * util.types.isInt32Array(new Float64Array());  // Returns false
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isInt32Array(object: unknown): object is Int32Array;
++++    /**
++++     * Returns `true` if the value is a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance.
++++     *
++++     * ```js
++++     * util.types.isMap(new Map());  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isMap<T>(
++++        object: T | {},
++++    ): object is T extends ReadonlyMap<any, any> ? (unknown extends T ? never : ReadonlyMap<any, any>)
++++        : Map<unknown, unknown>;
++++    /**
++++     * Returns `true` if the value is an iterator returned for a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance.
++++     *
++++     * ```js
++++     * const map = new Map();
++++     * util.types.isMapIterator(map.keys());  // Returns true
++++     * util.types.isMapIterator(map.values());  // Returns true
++++     * util.types.isMapIterator(map.entries());  // Returns true
++++     * util.types.isMapIterator(map[Symbol.iterator]());  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isMapIterator(object: unknown): boolean;
++++    /**
++++     * Returns `true` if the value is an instance of a [Module Namespace Object](https://tc39.github.io/ecma262/#sec-module-namespace-exotic-objects).
++++     *
++++     * ```js
++++     * import * as ns from './a.js';
++++     *
++++     * util.types.isModuleNamespaceObject(ns);  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isModuleNamespaceObject(value: unknown): boolean;
++++    /**
++++     * Returns `true` if the value was returned by the constructor of a [built-in `Error` type](https://tc39.es/ecma262/#sec-error-objects).
++++     *
++++     * ```js
++++     * console.log(util.types.isNativeError(new Error()));  // true
++++     * console.log(util.types.isNativeError(new TypeError()));  // true
++++     * console.log(util.types.isNativeError(new RangeError()));  // true
++++     * ```
++++     *
++++     * Subclasses of the native error types are also native errors:
++++     *
++++     * ```js
++++     * class MyError extends Error {}
++++     * console.log(util.types.isNativeError(new MyError()));  // true
++++     * ```
++++     *
++++     * A value being `instanceof` a native error class is not equivalent to `isNativeError()` returning `true` for that value. `isNativeError()` returns `true` for errors
++++     * which come from a different [realm](https://tc39.es/ecma262/#realm) while `instanceof Error` returns `false` for these errors:
++++     *
++++     * ```js
++++     * import vm from 'node:vm';
++++     * const context = vm.createContext({});
++++     * const myError = vm.runInContext('new Error()', context);
++++     * console.log(util.types.isNativeError(myError)); // true
++++     * console.log(myError instanceof Error); // false
++++     * ```
++++     *
++++     * Conversely, `isNativeError()` returns `false` for all objects which were not
++++     * returned by the constructor of a native error. That includes values
++++     * which are `instanceof` native errors:
++++     *
++++     * ```js
++++     * const myError = { __proto__: Error.prototype };
++++     * console.log(util.types.isNativeError(myError)); // false
++++     * console.log(myError instanceof Error); // true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isNativeError(object: unknown): object is Error;
++++    /**
++++     * Returns `true` if the value is a number object, e.g. created
++++     * by `new Number()`.
++++     *
++++     * ```js
++++     * util.types.isNumberObject(0);  // Returns false
++++     * util.types.isNumberObject(new Number(0));   // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isNumberObject(object: unknown): object is Number;
++++    /**
++++     * Returns `true` if the value is a built-in [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).
++++     *
++++     * ```js
++++     * util.types.isPromise(Promise.resolve(42));  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isPromise(object: unknown): object is Promise<unknown>;
++++    /**
++++     * Returns `true` if the value is a [`Proxy`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) instance.
++++     *
++++     * ```js
++++     * const target = {};
++++     * const proxy = new Proxy(target, {});
++++     * util.types.isProxy(target);  // Returns false
++++     * util.types.isProxy(proxy);  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isProxy(object: unknown): boolean;
++++    /**
++++     * Returns `true` if the value is a regular expression object.
++++     *
++++     * ```js
++++     * util.types.isRegExp(/abc/);  // Returns true
++++     * util.types.isRegExp(new RegExp('abc'));  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isRegExp(object: unknown): object is RegExp;
++++    /**
++++     * Returns `true` if the value is a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance.
++++     *
++++     * ```js
++++     * util.types.isSet(new Set());  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isSet<T>(
++++        object: T | {},
++++    ): object is T extends ReadonlySet<any> ? (unknown extends T ? never : ReadonlySet<any>) : Set<unknown>;
++++    /**
++++     * Returns `true` if the value is an iterator returned for a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance.
++++     *
++++     * ```js
++++     * const set = new Set();
++++     * util.types.isSetIterator(set.keys());  // Returns true
++++     * util.types.isSetIterator(set.values());  // Returns true
++++     * util.types.isSetIterator(set.entries());  // Returns true
++++     * util.types.isSetIterator(set[Symbol.iterator]());  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isSetIterator(object: unknown): boolean;
++++    /**
++++     * Returns `true` if the value is a built-in [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance.
++++     * This does _not_ include [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instances. Usually, it is
++++     * desirable to test for both; See `util.types.isAnyArrayBuffer()` for that.
++++     *
++++     * ```js
++++     * util.types.isSharedArrayBuffer(new ArrayBuffer());  // Returns false
++++     * util.types.isSharedArrayBuffer(new SharedArrayBuffer());  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isSharedArrayBuffer(object: unknown): object is SharedArrayBuffer;
++++    /**
++++     * Returns `true` if the value is a string object, e.g. created
++++     * by `new String()`.
++++     *
++++     * ```js
++++     * util.types.isStringObject('foo');  // Returns false
++++     * util.types.isStringObject(new String('foo'));   // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isStringObject(object: unknown): object is String;
++++    /**
++++     * Returns `true` if the value is a symbol object, created
++++     * by calling `Object()` on a `Symbol` primitive.
++++     *
++++     * ```js
++++     * const symbol = Symbol('foo');
++++     * util.types.isSymbolObject(symbol);  // Returns false
++++     * util.types.isSymbolObject(Object(symbol));   // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isSymbolObject(object: unknown): object is Symbol;
++++    /**
++++     * Returns `true` if the value is a built-in [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) instance.
++++     *
++++     * ```js
++++     * util.types.isTypedArray(new ArrayBuffer());  // Returns false
++++     * util.types.isTypedArray(new Uint8Array());  // Returns true
++++     * util.types.isTypedArray(new Float64Array());  // Returns true
++++     * ```
++++     *
++++     * See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView).
++++     * @since v10.0.0
++++     */
++++    function isTypedArray(object: unknown): object is NodeJS.TypedArray;
++++    /**
++++     * Returns `true` if the value is a built-in [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) instance.
++++     *
++++     * ```js
++++     * util.types.isUint8Array(new ArrayBuffer());  // Returns false
++++     * util.types.isUint8Array(new Uint8Array());  // Returns true
++++     * util.types.isUint8Array(new Float64Array());  // Returns false
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isUint8Array(object: unknown): object is Uint8Array;
++++    /**
++++     * Returns `true` if the value is a built-in [`Uint8ClampedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray) instance.
++++     *
++++     * ```js
++++     * util.types.isUint8ClampedArray(new ArrayBuffer());  // Returns false
++++     * util.types.isUint8ClampedArray(new Uint8ClampedArray());  // Returns true
++++     * util.types.isUint8ClampedArray(new Float64Array());  // Returns false
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isUint8ClampedArray(object: unknown): object is Uint8ClampedArray;
++++    /**
++++     * Returns `true` if the value is a built-in [`Uint16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array) instance.
++++     *
++++     * ```js
++++     * util.types.isUint16Array(new ArrayBuffer());  // Returns false
++++     * util.types.isUint16Array(new Uint16Array());  // Returns true
++++     * util.types.isUint16Array(new Float64Array());  // Returns false
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isUint16Array(object: unknown): object is Uint16Array;
++++    /**
++++     * Returns `true` if the value is a built-in [`Uint32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array) instance.
++++     *
++++     * ```js
++++     * util.types.isUint32Array(new ArrayBuffer());  // Returns false
++++     * util.types.isUint32Array(new Uint32Array());  // Returns true
++++     * util.types.isUint32Array(new Float64Array());  // Returns false
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isUint32Array(object: unknown): object is Uint32Array;
++++    /**
++++     * Returns `true` if the value is a built-in [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) instance.
++++     *
++++     * ```js
++++     * util.types.isWeakMap(new WeakMap());  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isWeakMap(object: unknown): object is WeakMap<object, unknown>;
++++    /**
++++     * Returns `true` if the value is a built-in [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) instance.
++++     *
++++     * ```js
++++     * util.types.isWeakSet(new WeakSet());  // Returns true
++++     * ```
++++     * @since v10.0.0
++++     */
++++    function isWeakSet(object: unknown): object is WeakSet<object>;
++++    /**
++++     * Returns `true` if `value` is a `KeyObject`, `false` otherwise.
++++     * @since v16.2.0
++++     */
++++    function isKeyObject(object: unknown): object is KeyObject;
++++    /**
++++     * Returns `true` if `value` is a `CryptoKey`, `false` otherwise.
++++     * @since v16.2.0
++++     */
++++    function isCryptoKey(object: unknown): object is webcrypto.CryptoKey;
++++}
++++declare module "node:util" {
++++    export * from "util";
++++}
++++declare module "node:util/types" {
++++    export * from "util/types";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..15b0b1675a785811a58ffc8b2c79d227a43bdfe5
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,808 @@@@@
++++/**
++++ * The `node:v8` module exposes APIs that are specific to the version of [V8](https://developers.google.com/v8/) built into the Node.js binary. It can be accessed using:
++++ *
++++ * ```js
++++ * import v8 from 'node:v8';
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/v8.js)
++++ */
++++declare module "v8" {
++++    import { Readable } from "node:stream";
++++    interface HeapSpaceInfo {
++++        space_name: string;
++++        space_size: number;
++++        space_used_size: number;
++++        space_available_size: number;
++++        physical_space_size: number;
++++    }
++++    // ** Signifies if the --zap_code_space option is enabled or not.  1 == enabled, 0 == disabled. */
++++    type DoesZapCodeSpaceFlag = 0 | 1;
++++    interface HeapInfo {
++++        total_heap_size: number;
++++        total_heap_size_executable: number;
++++        total_physical_size: number;
++++        total_available_size: number;
++++        used_heap_size: number;
++++        heap_size_limit: number;
++++        malloced_memory: number;
++++        peak_malloced_memory: number;
++++        does_zap_garbage: DoesZapCodeSpaceFlag;
++++        number_of_native_contexts: number;
++++        number_of_detached_contexts: number;
++++        total_global_handles_size: number;
++++        used_global_handles_size: number;
++++        external_memory: number;
++++    }
++++    interface HeapCodeStatistics {
++++        code_and_metadata_size: number;
++++        bytecode_and_metadata_size: number;
++++        external_script_source_size: number;
++++    }
++++    interface HeapSnapshotOptions {
++++        /**
++++         * If true, expose internals in the heap snapshot.
++++         * @default false
++++         */
++++        exposeInternals?: boolean;
++++        /**
++++         * If true, expose numeric values in artificial fields.
++++         * @default false
++++         */
++++        exposeNumericValues?: boolean;
++++    }
++++    /**
++++     * Returns an integer representing a version tag derived from the V8 version,
++++     * command-line flags, and detected CPU features. This is useful for determining
++++     * whether a `vm.Script` `cachedData` buffer is compatible with this instance
++++     * of V8.
++++     *
++++     * ```js
++++     * console.log(v8.cachedDataVersionTag()); // 3947234607
++++     * // The value returned by v8.cachedDataVersionTag() is derived from the V8
++++     * // version, command-line flags, and detected CPU features. Test that the value
++++     * // does indeed update when flags are toggled.
++++     * v8.setFlagsFromString('--allow_natives_syntax');
++++     * console.log(v8.cachedDataVersionTag()); // 183726201
++++     * ```
++++     * @since v8.0.0
++++     */
++++    function cachedDataVersionTag(): number;
++++    /**
++++     * Returns an object with the following properties:
++++     *
++++     * `does_zap_garbage` is a 0/1 boolean, which signifies whether the `--zap_code_space` option is enabled or not. This makes V8 overwrite heap
++++     * garbage with a bit pattern. The RSS footprint (resident set size) gets bigger
++++     * because it continuously touches all heap pages and that makes them less likely
++++     * to get swapped out by the operating system.
++++     *
++++     * `number_of_native_contexts` The value of native\_context is the number of the
++++     * top-level contexts currently active. Increase of this number over time indicates
++++     * a memory leak.
++++     *
++++     * `number_of_detached_contexts` The value of detached\_context is the number
++++     * of contexts that were detached and not yet garbage collected. This number
++++     * being non-zero indicates a potential memory leak.
++++     *
++++     * `total_global_handles_size` The value of total\_global\_handles\_size is the
++++     * total memory size of V8 global handles.
++++     *
++++     * `used_global_handles_size` The value of used\_global\_handles\_size is the
++++     * used memory size of V8 global handles.
++++     *
++++     * `external_memory` The value of external\_memory is the memory size of array
++++     * buffers and external strings.
++++     *
++++     * ```js
++++     * {
++++     *   total_heap_size: 7326976,
++++     *   total_heap_size_executable: 4194304,
++++     *   total_physical_size: 7326976,
++++     *   total_available_size: 1152656,
++++     *   used_heap_size: 3476208,
++++     *   heap_size_limit: 1535115264,
++++     *   malloced_memory: 16384,
++++     *   peak_malloced_memory: 1127496,
++++     *   does_zap_garbage: 0,
++++     *   number_of_native_contexts: 1,
++++     *   number_of_detached_contexts: 0,
++++     *   total_global_handles_size: 8192,
++++     *   used_global_handles_size: 3296,
++++     *   external_memory: 318824
++++     * }
++++     * ```
++++     * @since v1.0.0
++++     */
++++    function getHeapStatistics(): HeapInfo;
++++    /**
++++     * Returns statistics about the V8 heap spaces, i.e. the segments which make up
++++     * the V8 heap. Neither the ordering of heap spaces, nor the availability of a
++++     * heap space can be guaranteed as the statistics are provided via the
++++     * V8 [`GetHeapSpaceStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#ac673576f24fdc7a33378f8f57e1d13a4) function and may change from one V8 version to the
++++     * next.
++++     *
++++     * The value returned is an array of objects containing the following properties:
++++     *
++++     * ```json
++++     * [
++++     *   {
++++     *     "space_name": "new_space",
++++     *     "space_size": 2063872,
++++     *     "space_used_size": 951112,
++++     *     "space_available_size": 80824,
++++     *     "physical_space_size": 2063872
++++     *   },
++++     *   {
++++     *     "space_name": "old_space",
++++     *     "space_size": 3090560,
++++     *     "space_used_size": 2493792,
++++     *     "space_available_size": 0,
++++     *     "physical_space_size": 3090560
++++     *   },
++++     *   {
++++     *     "space_name": "code_space",
++++     *     "space_size": 1260160,
++++     *     "space_used_size": 644256,
++++     *     "space_available_size": 960,
++++     *     "physical_space_size": 1260160
++++     *   },
++++     *   {
++++     *     "space_name": "map_space",
++++     *     "space_size": 1094160,
++++     *     "space_used_size": 201608,
++++     *     "space_available_size": 0,
++++     *     "physical_space_size": 1094160
++++     *   },
++++     *   {
++++     *     "space_name": "large_object_space",
++++     *     "space_size": 0,
++++     *     "space_used_size": 0,
++++     *     "space_available_size": 1490980608,
++++     *     "physical_space_size": 0
++++     *   }
++++     * ]
++++     * ```
++++     * @since v6.0.0
++++     */
++++    function getHeapSpaceStatistics(): HeapSpaceInfo[];
++++    /**
++++     * The `v8.setFlagsFromString()` method can be used to programmatically set
++++     * V8 command-line flags. This method should be used with care. Changing settings
++++     * after the VM has started may result in unpredictable behavior, including
++++     * crashes and data loss; or it may simply do nothing.
++++     *
++++     * The V8 options available for a version of Node.js may be determined by running `node --v8-options`.
++++     *
++++     * Usage:
++++     *
++++     * ```js
++++     * // Print GC events to stdout for one minute.
++++     * import v8 from 'node:v8';
++++     * v8.setFlagsFromString('--trace_gc');
++++     * setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3);
++++     * ```
++++     * @since v1.0.0
++++     */
++++    function setFlagsFromString(flags: string): void;
++++    /**
++++     * This is similar to the [`queryObjects()` console API](https://developer.chrome.com/docs/devtools/console/utilities#queryObjects-function)
++++     * provided by the Chromium DevTools console. It can be used to search for objects that have the matching constructor on its prototype chain
++++     * in the heap after a full garbage collection, which can be useful for memory leak regression tests. To avoid surprising results, users should
++++     * avoid using this API on constructors whose implementation they don't control, or on constructors that can be invoked by other parties in the
++++     * application.
++++     *
++++     * To avoid accidental leaks, this API does not return raw references to the objects found. By default, it returns the count of the objects
++++     * found. If `options.format` is `'summary'`, it returns an array containing brief string representations for each object. The visibility provided
++++     * in this API is similar to what the heap snapshot provides, while users can save the cost of serialization and parsing and directly filter the
++++     * target objects during the search.
++++     *
++++     * Only objects created in the current execution context are included in the results.
++++     *
++++     * ```js
++++     * import { queryObjects } from 'node:v8';
++++     * class A { foo = 'bar'; }
++++     * console.log(queryObjects(A)); // 0
++++     * const a = new A();
++++     * console.log(queryObjects(A)); // 1
++++     * // [ "A { foo: 'bar' }" ]
++++     * console.log(queryObjects(A, { format: 'summary' }));
++++     *
++++     * class B extends A { bar = 'qux'; }
++++     * const b = new B();
++++     * console.log(queryObjects(B)); // 1
++++     * // [ "B { foo: 'bar', bar: 'qux' }" ]
++++     * console.log(queryObjects(B, { format: 'summary' }));
++++     *
++++     * // Note that, when there are child classes inheriting from a constructor,
++++     * // the constructor also shows up in the prototype chain of the child
++++     * // classes's prototoype, so the child classes's prototoype would also be
++++     * // included in the result.
++++     * console.log(queryObjects(A));  // 3
++++     * // [ "B { foo: 'bar', bar: 'qux' }", 'A {}', "A { foo: 'bar' }" ]
++++     * console.log(queryObjects(A, { format: 'summary' }));
++++     * ```
++++     * @param ctor The constructor that can be used to search on the prototype chain in order to filter target objects in the heap.
++++     * @since v20.13.0
++++     * @experimental
++++     */
++++    function queryObjects(ctor: Function): number | string[];
++++    function queryObjects(ctor: Function, options: { format: "count" }): number;
++++    function queryObjects(ctor: Function, options: { format: "summary" }): string[];
++++    /**
++++     * Generates a snapshot of the current V8 heap and returns a Readable
++++     * Stream that may be used to read the JSON serialized representation.
++++     * This JSON stream format is intended to be used with tools such as
++++     * Chrome DevTools. The JSON schema is undocumented and specific to the
++++     * V8 engine. Therefore, the schema may change from one version of V8 to the next.
++++     *
++++     * Creating a heap snapshot requires memory about twice the size of the heap at
++++     * the time the snapshot is created. This results in the risk of OOM killers
++++     * terminating the process.
++++     *
++++     * Generating a snapshot is a synchronous operation which blocks the event loop
++++     * for a duration depending on the heap size.
++++     *
++++     * ```js
++++     * // Print heap snapshot to the console
++++     * import v8 from 'node:v8';
++++     * const stream = v8.getHeapSnapshot();
++++     * stream.pipe(process.stdout);
++++     * ```
++++     * @since v11.13.0
++++     * @return A Readable containing the V8 heap snapshot.
++++     */
++++    function getHeapSnapshot(options?: HeapSnapshotOptions): Readable;
++++    /**
++++     * Generates a snapshot of the current V8 heap and writes it to a JSON
++++     * file. This file is intended to be used with tools such as Chrome
++++     * DevTools. The JSON schema is undocumented and specific to the V8
++++     * engine, and may change from one version of V8 to the next.
++++     *
++++     * A heap snapshot is specific to a single V8 isolate. When using `worker threads`, a heap snapshot generated from the main thread will
++++     * not contain any information about the workers, and vice versa.
++++     *
++++     * Creating a heap snapshot requires memory about twice the size of the heap at
++++     * the time the snapshot is created. This results in the risk of OOM killers
++++     * terminating the process.
++++     *
++++     * Generating a snapshot is a synchronous operation which blocks the event loop
++++     * for a duration depending on the heap size.
++++     *
++++     * ```js
++++     * import { writeHeapSnapshot } from 'node:v8';
++++     * import {
++++     *   Worker,
++++     *   isMainThread,
++++     *   parentPort,
++++     * } from 'node:worker_threads';
++++     *
++++     * if (isMainThread) {
++++     *   const worker = new Worker(__filename);
++++     *
++++     *   worker.once('message', (filename) => {
++++     *     console.log(`worker heapdump: ${filename}`);
++++     *     // Now get a heapdump for the main thread.
++++     *     console.log(`main thread heapdump: ${writeHeapSnapshot()}`);
++++     *   });
++++     *
++++     *   // Tell the worker to create a heapdump.
++++     *   worker.postMessage('heapdump');
++++     * } else {
++++     *   parentPort.once('message', (message) => {
++++     *     if (message === 'heapdump') {
++++     *       // Generate a heapdump for the worker
++++     *       // and return the filename to the parent.
++++     *       parentPort.postMessage(writeHeapSnapshot());
++++     *     }
++++     *   });
++++     * }
++++     * ```
++++     * @since v11.13.0
++++     * @param filename The file path where the V8 heap snapshot is to be saved. If not specified, a file name with the pattern `'Heap-${yyyymmdd}-${hhmmss}-${pid}-${thread_id}.heapsnapshot'` will be
++++     * generated, where `{pid}` will be the PID of the Node.js process, `{thread_id}` will be `0` when `writeHeapSnapshot()` is called from the main Node.js thread or the id of a
++++     * worker thread.
++++     * @return The filename where the snapshot was saved.
++++     */
++++    function writeHeapSnapshot(filename?: string, options?: HeapSnapshotOptions): string;
++++    /**
++++     * Get statistics about code and its metadata in the heap, see
++++     * V8 [`GetHeapCodeAndMetadataStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#a6079122af17612ef54ef3348ce170866) API. Returns an object with the
++++     * following properties:
++++     *
++++     * ```js
++++     * {
++++     *   code_and_metadata_size: 212208,
++++     *   bytecode_and_metadata_size: 161368,
++++     *   external_script_source_size: 1410794,
++++     *   cpu_profiler_metadata_size: 0,
++++     * }
++++     * ```
++++     * @since v12.8.0
++++     */
++++    function getHeapCodeStatistics(): HeapCodeStatistics;
++++    /**
++++     * @since v8.0.0
++++     */
++++    class Serializer {
++++        /**
++++         * Writes out a header, which includes the serialization format version.
++++         */
++++        writeHeader(): void;
++++        /**
++++         * Serializes a JavaScript value and adds the serialized representation to the
++++         * internal buffer.
++++         *
++++         * This throws an error if `value` cannot be serialized.
++++         */
++++        writeValue(val: any): boolean;
++++        /**
++++         * Returns the stored internal buffer. This serializer should not be used once
++++         * the buffer is released. Calling this method results in undefined behavior
++++         * if a previous write has failed.
++++         */
++++        releaseBuffer(): Buffer;
++++        /**
++++         * Marks an `ArrayBuffer` as having its contents transferred out of band.
++++         * Pass the corresponding `ArrayBuffer` in the deserializing context to `deserializer.transferArrayBuffer()`.
++++         * @param id A 32-bit unsigned integer.
++++         * @param arrayBuffer An `ArrayBuffer` instance.
++++         */
++++        transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void;
++++        /**
++++         * Write a raw 32-bit unsigned integer.
++++         * For use inside of a custom `serializer._writeHostObject()`.
++++         */
++++        writeUint32(value: number): void;
++++        /**
++++         * Write a raw 64-bit unsigned integer, split into high and low 32-bit parts.
++++         * For use inside of a custom `serializer._writeHostObject()`.
++++         */
++++        writeUint64(hi: number, lo: number): void;
++++        /**
++++         * Write a JS `number` value.
++++         * For use inside of a custom `serializer._writeHostObject()`.
++++         */
++++        writeDouble(value: number): void;
++++        /**
++++         * Write raw bytes into the serializer's internal buffer. The deserializer
++++         * will require a way to compute the length of the buffer.
++++         * For use inside of a custom `serializer._writeHostObject()`.
++++         */
++++        writeRawBytes(buffer: NodeJS.TypedArray): void;
++++    }
++++    /**
++++     * A subclass of `Serializer` that serializes `TypedArray`(in particular `Buffer`) and `DataView` objects as host objects, and only
++++     * stores the part of their underlying `ArrayBuffer`s that they are referring to.
++++     * @since v8.0.0
++++     */
++++    class DefaultSerializer extends Serializer {}
++++    /**
++++     * @since v8.0.0
++++     */
++++    class Deserializer {
++++        constructor(data: NodeJS.TypedArray);
++++        /**
++++         * Reads and validates a header (including the format version).
++++         * May, for example, reject an invalid or unsupported wire format. In that case,
++++         * an `Error` is thrown.
++++         */
++++        readHeader(): boolean;
++++        /**
++++         * Deserializes a JavaScript value from the buffer and returns it.
++++         */
++++        readValue(): any;
++++        /**
++++         * Marks an `ArrayBuffer` as having its contents transferred out of band.
++++         * Pass the corresponding `ArrayBuffer` in the serializing context to `serializer.transferArrayBuffer()` (or return the `id` from `serializer._getSharedArrayBufferId()` in the case of
++++         * `SharedArrayBuffer`s).
++++         * @param id A 32-bit unsigned integer.
++++         * @param arrayBuffer An `ArrayBuffer` instance.
++++         */
++++        transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void;
++++        /**
++++         * Reads the underlying wire format version. Likely mostly to be useful to
++++         * legacy code reading old wire format versions. May not be called before `.readHeader()`.
++++         */
++++        getWireFormatVersion(): number;
++++        /**
++++         * Read a raw 32-bit unsigned integer and return it.
++++         * For use inside of a custom `deserializer._readHostObject()`.
++++         */
++++        readUint32(): number;
++++        /**
++++         * Read a raw 64-bit unsigned integer and return it as an array `[hi, lo]` with two 32-bit unsigned integer entries.
++++         * For use inside of a custom `deserializer._readHostObject()`.
++++         */
++++        readUint64(): [number, number];
++++        /**
++++         * Read a JS `number` value.
++++         * For use inside of a custom `deserializer._readHostObject()`.
++++         */
++++        readDouble(): number;
++++        /**
++++         * Read raw bytes from the deserializer's internal buffer. The `length` parameter
++++         * must correspond to the length of the buffer that was passed to `serializer.writeRawBytes()`.
++++         * For use inside of a custom `deserializer._readHostObject()`.
++++         */
++++        readRawBytes(length: number): Buffer;
++++    }
++++    /**
++++     * A subclass of `Deserializer` corresponding to the format written by `DefaultSerializer`.
++++     * @since v8.0.0
++++     */
++++    class DefaultDeserializer extends Deserializer {}
++++    /**
++++     * Uses a `DefaultSerializer` to serialize `value` into a buffer.
++++     *
++++     * `ERR_BUFFER_TOO_LARGE` will be thrown when trying to
++++     * serialize a huge object which requires buffer
++++     * larger than `buffer.constants.MAX_LENGTH`.
++++     * @since v8.0.0
++++     */
++++    function serialize(value: any): Buffer;
++++    /**
++++     * Uses a `DefaultDeserializer` with default options to read a JS value
++++     * from a buffer.
++++     * @since v8.0.0
++++     * @param buffer A buffer returned by {@link serialize}.
++++     */
++++    function deserialize(buffer: NodeJS.TypedArray): any;
++++    /**
++++     * The `v8.takeCoverage()` method allows the user to write the coverage started by `NODE_V8_COVERAGE` to disk on demand. This method can be invoked multiple
++++     * times during the lifetime of the process. Each time the execution counter will
++++     * be reset and a new coverage report will be written to the directory specified
++++     * by `NODE_V8_COVERAGE`.
++++     *
++++     * When the process is about to exit, one last coverage will still be written to
++++     * disk unless {@link stopCoverage} is invoked before the process exits.
++++     * @since v15.1.0, v14.18.0, v12.22.0
++++     */
++++    function takeCoverage(): void;
++++    /**
++++     * The `v8.stopCoverage()` method allows the user to stop the coverage collection
++++     * started by `NODE_V8_COVERAGE`, so that V8 can release the execution count
++++     * records and optimize code. This can be used in conjunction with {@link takeCoverage} if the user wants to collect the coverage on demand.
++++     * @since v15.1.0, v14.18.0, v12.22.0
++++     */
++++    function stopCoverage(): void;
++++    /**
++++     * The API is a no-op if `--heapsnapshot-near-heap-limit` is already set from the command line or the API is called more than once.
++++     * `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--heapsnapshot-near-heap-limitmax_count) for more information.
++++     * @experimental
++++     * @since v18.10.0, v16.18.0
++++     */
++++    function setHeapSnapshotNearHeapLimit(limit: number): void;
++++    /**
++++     * This API collects GC data in current thread.
++++     * @since v19.6.0, v18.15.0
++++     */
++++    class GCProfiler {
++++        /**
++++         * Start collecting GC data.
++++         * @since v19.6.0, v18.15.0
++++         */
++++        start(): void;
++++        /**
++++         * Stop collecting GC data and return an object. The content of object
++++         * is as follows.
++++         *
++++         * ```json
++++         * {
++++         *   "version": 1,
++++         *   "startTime": 1674059033862,
++++         *   "statistics": [
++++         *     {
++++         *       "gcType": "Scavenge",
++++         *       "beforeGC": {
++++         *         "heapStatistics": {
++++         *           "totalHeapSize": 5005312,
++++         *           "totalHeapSizeExecutable": 524288,
++++         *           "totalPhysicalSize": 5226496,
++++         *           "totalAvailableSize": 4341325216,
++++         *           "totalGlobalHandlesSize": 8192,
++++         *           "usedGlobalHandlesSize": 2112,
++++         *           "usedHeapSize": 4883840,
++++         *           "heapSizeLimit": 4345298944,
++++         *           "mallocedMemory": 254128,
++++         *           "externalMemory": 225138,
++++         *           "peakMallocedMemory": 181760
++++         *         },
++++         *         "heapSpaceStatistics": [
++++         *           {
++++         *             "spaceName": "read_only_space",
++++         *             "spaceSize": 0,
++++         *             "spaceUsedSize": 0,
++++         *             "spaceAvailableSize": 0,
++++         *             "physicalSpaceSize": 0
++++         *           }
++++         *         ]
++++         *       },
++++         *       "cost": 1574.14,
++++         *       "afterGC": {
++++         *         "heapStatistics": {
++++         *           "totalHeapSize": 6053888,
++++         *           "totalHeapSizeExecutable": 524288,
++++         *           "totalPhysicalSize": 5500928,
++++         *           "totalAvailableSize": 4341101384,
++++         *           "totalGlobalHandlesSize": 8192,
++++         *           "usedGlobalHandlesSize": 2112,
++++         *           "usedHeapSize": 4059096,
++++         *           "heapSizeLimit": 4345298944,
++++         *           "mallocedMemory": 254128,
++++         *           "externalMemory": 225138,
++++         *           "peakMallocedMemory": 181760
++++         *         },
++++         *         "heapSpaceStatistics": [
++++         *           {
++++         *             "spaceName": "read_only_space",
++++         *             "spaceSize": 0,
++++         *             "spaceUsedSize": 0,
++++         *             "spaceAvailableSize": 0,
++++         *             "physicalSpaceSize": 0
++++         *           }
++++         *         ]
++++         *       }
++++         *     }
++++         *   ],
++++         *   "endTime": 1674059036865
++++         * }
++++         * ```
++++         *
++++         * Here's an example.
++++         *
++++         * ```js
++++         * import { GCProfiler } from 'node:v8';
++++         * const profiler = new GCProfiler();
++++         * profiler.start();
++++         * setTimeout(() => {
++++         *   console.log(profiler.stop());
++++         * }, 1000);
++++         * ```
++++         * @since v19.6.0, v18.15.0
++++         */
++++        stop(): GCProfilerResult;
++++    }
++++    interface GCProfilerResult {
++++        version: number;
++++        startTime: number;
++++        endTime: number;
++++        statistics: Array<{
++++            gcType: string;
++++            cost: number;
++++            beforeGC: {
++++                heapStatistics: HeapStatistics;
++++                heapSpaceStatistics: HeapSpaceStatistics[];
++++            };
++++            afterGC: {
++++                heapStatistics: HeapStatistics;
++++                heapSpaceStatistics: HeapSpaceStatistics[];
++++            };
++++        }>;
++++    }
++++    interface HeapStatistics {
++++        totalHeapSize: number;
++++        totalHeapSizeExecutable: number;
++++        totalPhysicalSize: number;
++++        totalAvailableSize: number;
++++        totalGlobalHandlesSize: number;
++++        usedGlobalHandlesSize: number;
++++        usedHeapSize: number;
++++        heapSizeLimit: number;
++++        mallocedMemory: number;
++++        externalMemory: number;
++++        peakMallocedMemory: number;
++++    }
++++    interface HeapSpaceStatistics {
++++        spaceName: string;
++++        spaceSize: number;
++++        spaceUsedSize: number;
++++        spaceAvailableSize: number;
++++        physicalSpaceSize: number;
++++    }
++++    /**
++++     * Called when a promise is constructed. This does not mean that corresponding before/after events will occur, only that the possibility exists. This will
++++     * happen if a promise is created without ever getting a continuation.
++++     * @since v17.1.0, v16.14.0
++++     * @param promise The promise being created.
++++     * @param parent The promise continued from, if applicable.
++++     */
++++    interface Init {
++++        (promise: Promise<unknown>, parent: Promise<unknown>): void;
++++    }
++++    /**
++++     * Called before a promise continuation executes. This can be in the form of `then()`, `catch()`, or `finally()` handlers or an await resuming.
++++     *
++++     * The before callback will be called 0 to N times. The before callback will typically be called 0 times if no continuation was ever made for the promise.
++++     * The before callback may be called many times in the case where many continuations have been made from the same promise.
++++     * @since v17.1.0, v16.14.0
++++     */
++++    interface Before {
++++        (promise: Promise<unknown>): void;
++++    }
++++    /**
++++     * Called immediately after a promise continuation executes. This may be after a `then()`, `catch()`, or `finally()` handler or before an await after another await.
++++     * @since v17.1.0, v16.14.0
++++     */
++++    interface After {
++++        (promise: Promise<unknown>): void;
++++    }
++++    /**
++++     * Called when the promise receives a resolution or rejection value. This may occur synchronously in the case of {@link Promise.resolve()} or
++++     * {@link Promise.reject()}.
++++     * @since v17.1.0, v16.14.0
++++     */
++++    interface Settled {
++++        (promise: Promise<unknown>): void;
++++    }
++++    /**
++++     * Key events in the lifetime of a promise have been categorized into four areas: creation of a promise, before/after a continuation handler is called or
++++     * around an await, and when the promise resolves or rejects.
++++     *
++++     * Because promises are asynchronous resources whose lifecycle is tracked via the promise hooks mechanism, the `init()`, `before()`, `after()`, and
++++     * `settled()` callbacks must not be async functions as they create more promises which would produce an infinite loop.
++++     * @since v17.1.0, v16.14.0
++++     */
++++    interface HookCallbacks {
++++        init?: Init;
++++        before?: Before;
++++        after?: After;
++++        settled?: Settled;
++++    }
++++    interface PromiseHooks {
++++        /**
++++         * The `init` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.
++++         * @since v17.1.0, v16.14.0
++++         * @param init The {@link Init | `init` callback} to call when a promise is created.
++++         * @return Call to stop the hook.
++++         */
++++        onInit: (init: Init) => Function;
++++        /**
++++         * The `settled` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.
++++         * @since v17.1.0, v16.14.0
++++         * @param settled The {@link Settled | `settled` callback} to call when a promise is created.
++++         * @return Call to stop the hook.
++++         */
++++        onSettled: (settled: Settled) => Function;
++++        /**
++++         * The `before` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.
++++         * @since v17.1.0, v16.14.0
++++         * @param before The {@link Before | `before` callback} to call before a promise continuation executes.
++++         * @return Call to stop the hook.
++++         */
++++        onBefore: (before: Before) => Function;
++++        /**
++++         * The `after` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.
++++         * @since v17.1.0, v16.14.0
++++         * @param after The {@link After | `after` callback} to call after a promise continuation executes.
++++         * @return Call to stop the hook.
++++         */
++++        onAfter: (after: After) => Function;
++++        /**
++++         * Registers functions to be called for different lifetime events of each promise.
++++         * The callbacks `init()`/`before()`/`after()`/`settled()` are called for the respective events during a promise's lifetime.
++++         * All callbacks are optional. For example, if only promise creation needs to be tracked, then only the init callback needs to be passed.
++++         * The hook callbacks must be plain functions. Providing async functions will throw as it would produce an infinite microtask loop.
++++         * @since v17.1.0, v16.14.0
++++         * @param callbacks The {@link HookCallbacks | Hook Callbacks} to register
++++         * @return Used for disabling hooks
++++         */
++++        createHook: (callbacks: HookCallbacks) => Function;
++++    }
++++    /**
++++     * The `promiseHooks` interface can be used to track promise lifecycle events.
++++     * @since v17.1.0, v16.14.0
++++     */
++++    const promiseHooks: PromiseHooks;
++++    type StartupSnapshotCallbackFn = (args: any) => any;
++++    interface StartupSnapshot {
++++        /**
++++         * Add a callback that will be called when the Node.js instance is about to get serialized into a snapshot and exit.
++++         * This can be used to release resources that should not or cannot be serialized or to convert user data into a form more suitable for serialization.
++++         * @since v18.6.0, v16.17.0
++++         */
++++        addSerializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void;
++++        /**
++++         * Add a callback that will be called when the Node.js instance is deserialized from a snapshot.
++++         * The `callback` and the `data` (if provided) will be serialized into the snapshot, they can be used to re-initialize the state of the application or
++++         * to re-acquire resources that the application needs when the application is restarted from the snapshot.
++++         * @since v18.6.0, v16.17.0
++++         */
++++        addDeserializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void;
++++        /**
++++         * This sets the entry point of the Node.js application when it is deserialized from a snapshot. This can be called only once in the snapshot building script.
++++         * If called, the deserialized application no longer needs an additional entry point script to start up and will simply invoke the callback along with the deserialized
++++         * data (if provided), otherwise an entry point script still needs to be provided to the deserialized application.
++++         * @since v18.6.0, v16.17.0
++++         */
++++        setDeserializeMainFunction(callback: StartupSnapshotCallbackFn, data?: any): void;
++++        /**
++++         * Returns true if the Node.js instance is run to build a snapshot.
++++         * @since v18.6.0, v16.17.0
++++         */
++++        isBuildingSnapshot(): boolean;
++++    }
++++    /**
++++     * The `v8.startupSnapshot` interface can be used to add serialization and deserialization hooks for custom startup snapshots.
++++     *
++++     * ```bash
++++     * $ node --snapshot-blob snapshot.blob --build-snapshot entry.js
++++     * # This launches a process with the snapshot
++++     * $ node --snapshot-blob snapshot.blob
++++     * ```
++++     *
++++     * In the example above, `entry.js` can use methods from the `v8.startupSnapshot` interface to specify how to save information for custom objects
++++     * in the snapshot during serialization and how the information can be used to synchronize these objects during deserialization of the snapshot.
++++     * For example, if the `entry.js` contains the following script:
++++     *
++++     * ```js
++++     * 'use strict';
++++     *
++++     * import fs from 'node:fs';
++++     * import zlib from 'node:zlib';
++++     * import path from 'node:path';
++++     * import assert from 'node:assert';
++++     *
++++     * import v8 from 'node:v8';
++++     *
++++     * class BookShelf {
++++     *   storage = new Map();
++++     *
++++     *   // Reading a series of files from directory and store them into storage.
++++     *   constructor(directory, books) {
++++     *     for (const book of books) {
++++     *       this.storage.set(book, fs.readFileSync(path.join(directory, book)));
++++     *     }
++++     *   }
++++     *
++++     *   static compressAll(shelf) {
++++     *     for (const [ book, content ] of shelf.storage) {
++++     *       shelf.storage.set(book, zlib.gzipSync(content));
++++     *     }
++++     *   }
++++     *
++++     *   static decompressAll(shelf) {
++++     *     for (const [ book, content ] of shelf.storage) {
++++     *       shelf.storage.set(book, zlib.gunzipSync(content));
++++     *     }
++++     *   }
++++     * }
++++     *
++++     * // __dirname here is where the snapshot script is placed
++++     * // during snapshot building time.
++++     * const shelf = new BookShelf(__dirname, [
++++     *   'book1.en_US.txt',
++++     *   'book1.es_ES.txt',
++++     *   'book2.zh_CN.txt',
++++     * ]);
++++     *
++++     * assert(v8.startupSnapshot.isBuildingSnapshot());
++++     * // On snapshot serialization, compress the books to reduce size.
++++     * v8.startupSnapshot.addSerializeCallback(BookShelf.compressAll, shelf);
++++     * // On snapshot deserialization, decompress the books.
++++     * v8.startupSnapshot.addDeserializeCallback(BookShelf.decompressAll, shelf);
++++     * v8.startupSnapshot.setDeserializeMainFunction((shelf) => {
++++     *   // process.env and process.argv are refreshed during snapshot
++++     *   // deserialization.
++++     *   const lang = process.env.BOOK_LANG || 'en_US';
++++     *   const book = process.argv[1];
++++     *   const name = `${book}.${lang}.txt`;
++++     *   console.log(shelf.storage.get(name));
++++     * }, shelf);
++++     * ```
++++     *
++++     * The resulted binary will get print the data deserialized from the snapshot during start up, using the refreshed `process.env` and `process.argv` of the launched process:
++++     *
++++     * ```bash
++++     * $ BOOK_LANG=es_ES node --snapshot-blob snapshot.blob book1
++++     * # Prints content of book1.es_ES.txt deserialized from the snapshot.
++++     * ```
++++     *
++++     * Currently the application deserialized from a user-land snapshot cannot be snapshotted again, so these APIs are only available to applications that are not deserialized from a user-land snapshot.
++++     *
++++     * @experimental
++++     * @since v18.6.0, v16.17.0
++++     */
++++    const startupSnapshot: StartupSnapshot;
++++}
++++declare module "node:v8" {
++++    export * from "v8";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..00d73914dca35ed4412d547d93de5292fdf16599
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,922 @@@@@
++++/**
++++ * The `node:vm` module enables compiling and running code within V8 Virtual
++++ * Machine contexts.
++++ *
++++ * **The `node:vm` module is not a security**
++++ * **mechanism. Do not use it to run untrusted code.**
++++ *
++++ * JavaScript code can be compiled and run immediately or
++++ * compiled, saved, and run later.
++++ *
++++ * A common use case is to run the code in a different V8 Context. This means
++++ * invoked code has a different global object than the invoking code.
++++ *
++++ * One can provide the context by `contextifying` an
++++ * object. The invoked code treats any property in the context like a
++++ * global variable. Any changes to global variables caused by the invoked
++++ * code are reflected in the context object.
++++ *
++++ * ```js
++++ * import vm from 'node:vm';
++++ *
++++ * const x = 1;
++++ *
++++ * const context = { x: 2 };
++++ * vm.createContext(context); // Contextify the object.
++++ *
++++ * const code = 'x += 40; var y = 17;';
++++ * // `x` and `y` are global variables in the context.
++++ * // Initially, x has the value 2 because that is the value of context.x.
++++ * vm.runInContext(code, context);
++++ *
++++ * console.log(context.x); // 42
++++ * console.log(context.y); // 17
++++ *
++++ * console.log(x); // 1; y is not defined.
++++ * ```
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/vm.js)
++++ */
++++declare module "vm" {
++++    import { ImportAttributes } from "node:module";
++++    interface Context extends NodeJS.Dict<any> {}
++++    interface BaseOptions {
++++        /**
++++         * Specifies the filename used in stack traces produced by this script.
++++         * @default ''
++++         */
++++        filename?: string | undefined;
++++        /**
++++         * Specifies the line number offset that is displayed in stack traces produced by this script.
++++         * @default 0
++++         */
++++        lineOffset?: number | undefined;
++++        /**
++++         * Specifies the column number offset that is displayed in stack traces produced by this script.
++++         * @default 0
++++         */
++++        columnOffset?: number | undefined;
++++    }
++++    interface ScriptOptions extends BaseOptions {
++++        /**
++++         * V8's code cache data for the supplied source.
++++         */
++++        cachedData?: Buffer | NodeJS.ArrayBufferView | undefined;
++++        /** @deprecated in favor of `script.createCachedData()` */
++++        produceCachedData?: boolean | undefined;
++++        /**
++++         * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
++++         * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
++++         * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v20.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
++++         */
++++        importModuleDynamically?:
++++            | ((specifier: string, script: Script, importAttributes: ImportAttributes) => Module)
++++            | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
++++            | undefined;
++++    }
++++    interface RunningScriptOptions extends BaseOptions {
++++        /**
++++         * When `true`, if an `Error` occurs while compiling the `code`, the line of code causing the error is attached to the stack trace.
++++         * @default true
++++         */
++++        displayErrors?: boolean | undefined;
++++        /**
++++         * Specifies the number of milliseconds to execute code before terminating execution.
++++         * If execution is terminated, an `Error` will be thrown. This value must be a strictly positive integer.
++++         */
++++        timeout?: number | undefined;
++++        /**
++++         * If `true`, the execution will be terminated when `SIGINT` (Ctrl+C) is received.
++++         * Existing handlers for the event that have been attached via `process.on('SIGINT')` will be disabled during script execution, but will continue to work after that.
++++         * If execution is terminated, an `Error` will be thrown.
++++         * @default false
++++         */
++++        breakOnSigint?: boolean | undefined;
++++    }
++++    interface RunningScriptInNewContextOptions extends RunningScriptOptions {
++++        /**
++++         * Human-readable name of the newly created context.
++++         */
++++        contextName?: CreateContextOptions["name"];
++++        /**
++++         * Origin corresponding to the newly created context for display purposes. The origin should be formatted like a URL,
++++         * but with only the scheme, host, and port (if necessary), like the value of the `url.origin` property of a `URL` object.
++++         * Most notably, this string should omit the trailing slash, as that denotes a path.
++++         */
++++        contextOrigin?: CreateContextOptions["origin"];
++++        contextCodeGeneration?: CreateContextOptions["codeGeneration"];
++++        /**
++++         * If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
++++         */
++++        microtaskMode?: CreateContextOptions["microtaskMode"];
++++    }
++++    interface RunningCodeOptions extends RunningScriptOptions {
++++        cachedData?: ScriptOptions["cachedData"];
++++        importModuleDynamically?: ScriptOptions["importModuleDynamically"];
++++    }
++++    interface RunningCodeInNewContextOptions extends RunningScriptInNewContextOptions {
++++        cachedData?: ScriptOptions["cachedData"];
++++        importModuleDynamically?: ScriptOptions["importModuleDynamically"];
++++    }
++++    interface CompileFunctionOptions extends BaseOptions {
++++        /**
++++         * Provides an optional data with V8's code cache data for the supplied source.
++++         */
++++        cachedData?: Buffer | undefined;
++++        /**
++++         * Specifies whether to produce new cache data.
++++         * @default false
++++         */
++++        produceCachedData?: boolean | undefined;
++++        /**
++++         * The sandbox/context in which the said function should be compiled in.
++++         */
++++        parsingContext?: Context | undefined;
++++        /**
++++         * An array containing a collection of context extensions (objects wrapping the current scope) to be applied while compiling
++++         */
++++        contextExtensions?: Object[] | undefined;
++++    }
++++    interface CreateContextOptions {
++++        /**
++++         * Human-readable name of the newly created context.
++++         * @default 'VM Context i' Where i is an ascending numerical index of the created context.
++++         */
++++        name?: string | undefined;
++++        /**
++++         * Corresponds to the newly created context for display purposes.
++++         * The origin should be formatted like a `URL`, but with only the scheme, host, and port (if necessary),
++++         * like the value of the `url.origin` property of a URL object.
++++         * Most notably, this string should omit the trailing slash, as that denotes a path.
++++         * @default ''
++++         */
++++        origin?: string | undefined;
++++        codeGeneration?:
++++            | {
++++                /**
++++                 * If set to false any calls to eval or function constructors (Function, GeneratorFunction, etc)
++++                 * will throw an EvalError.
++++                 * @default true
++++                 */
++++                strings?: boolean | undefined;
++++                /**
++++                 * If set to false any attempt to compile a WebAssembly module will throw a WebAssembly.CompileError.
++++                 * @default true
++++                 */
++++                wasm?: boolean | undefined;
++++            }
++++            | undefined;
++++        /**
++++         * If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
++++         */
++++        microtaskMode?: "afterEvaluate" | undefined;
++++    }
++++    type MeasureMemoryMode = "summary" | "detailed";
++++    interface MeasureMemoryOptions {
++++        /**
++++         * @default 'summary'
++++         */
++++        mode?: MeasureMemoryMode | undefined;
++++        /**
++++         * @default 'default'
++++         */
++++        execution?: "default" | "eager" | undefined;
++++    }
++++    interface MemoryMeasurement {
++++        total: {
++++            jsMemoryEstimate: number;
++++            jsMemoryRange: [number, number];
++++        };
++++    }
++++    /**
++++     * Instances of the `vm.Script` class contain precompiled scripts that can be
++++     * executed in specific contexts.
++++     * @since v0.3.1
++++     */
++++    class Script {
++++        constructor(code: string, options?: ScriptOptions | string);
++++        /**
++++         * Runs the compiled code contained by the `vm.Script` object within the given `contextifiedObject` and returns the result. Running code does not have access
++++         * to local scope.
++++         *
++++         * The following example compiles code that increments a global variable, sets
++++         * the value of another global variable, then execute the code multiple times.
++++         * The globals are contained in the `context` object.
++++         *
++++         * ```js
++++         * import vm from 'node:vm';
++++         *
++++         * const context = {
++++         *   animal: 'cat',
++++         *   count: 2,
++++         * };
++++         *
++++         * const script = new vm.Script('count += 1; name = "kitty";');
++++         *
++++         * vm.createContext(context);
++++         * for (let i = 0; i < 10; ++i) {
++++         *   script.runInContext(context);
++++         * }
++++         *
++++         * console.log(context);
++++         * // Prints: { animal: 'cat', count: 12, name: 'kitty' }
++++         * ```
++++         *
++++         * Using the `timeout` or `breakOnSigint` options will result in new event loops
++++         * and corresponding threads being started, which have a non-zero performance
++++         * overhead.
++++         * @since v0.3.1
++++         * @param contextifiedObject A `contextified` object as returned by the `vm.createContext()` method.
++++         * @return the result of the very last statement executed in the script.
++++         */
++++        runInContext(contextifiedObject: Context, options?: RunningScriptOptions): any;
++++        /**
++++         * First contextifies the given `contextObject`, runs the compiled code contained
++++         * by the `vm.Script` object within the created context, and returns the result.
++++         * Running code does not have access to local scope.
++++         *
++++         * The following example compiles code that sets a global variable, then executes
++++         * the code multiple times in different contexts. The globals are set on and
++++         * contained within each individual `context`.
++++         *
++++         * ```js
++++         * import vm from 'node:vm';
++++         *
++++         * const script = new vm.Script('globalVar = "set"');
++++         *
++++         * const contexts = [{}, {}, {}];
++++         * contexts.forEach((context) => {
++++         *   script.runInNewContext(context);
++++         * });
++++         *
++++         * console.log(contexts);
++++         * // Prints: [{ globalVar: 'set' }, { globalVar: 'set' }, { globalVar: 'set' }]
++++         * ```
++++         * @since v0.3.1
++++         * @param contextObject An object that will be `contextified`. If `undefined`, a new object will be created.
++++         * @return the result of the very last statement executed in the script.
++++         */
++++        runInNewContext(contextObject?: Context, options?: RunningScriptInNewContextOptions): any;
++++        /**
++++         * Runs the compiled code contained by the `vm.Script` within the context of the
++++         * current `global` object. Running code does not have access to local scope, but _does_ have access to the current `global` object.
++++         *
++++         * The following example compiles code that increments a `global` variable then
++++         * executes that code multiple times:
++++         *
++++         * ```js
++++         * import vm from 'node:vm';
++++         *
++++         * global.globalVar = 0;
++++         *
++++         * const script = new vm.Script('globalVar += 1', { filename: 'myfile.vm' });
++++         *
++++         * for (let i = 0; i < 1000; ++i) {
++++         *   script.runInThisContext();
++++         * }
++++         *
++++         * console.log(globalVar);
++++         *
++++         * // 1000
++++         * ```
++++         * @since v0.3.1
++++         * @return the result of the very last statement executed in the script.
++++         */
++++        runInThisContext(options?: RunningScriptOptions): any;
++++        /**
++++         * Creates a code cache that can be used with the `Script` constructor's `cachedData` option. Returns a `Buffer`. This method may be called at any
++++         * time and any number of times.
++++         *
++++         * The code cache of the `Script` doesn't contain any JavaScript observable
++++         * states. The code cache is safe to be saved along side the script source and
++++         * used to construct new `Script` instances multiple times.
++++         *
++++         * Functions in the `Script` source can be marked as lazily compiled and they are
++++         * not compiled at construction of the `Script`. These functions are going to be
++++         * compiled when they are invoked the first time. The code cache serializes the
++++         * metadata that V8 currently knows about the `Script` that it can use to speed up
++++         * future compilations.
++++         *
++++         * ```js
++++         * const script = new vm.Script(`
++++         * function add(a, b) {
++++         *   return a + b;
++++         * }
++++         *
++++         * const x = add(1, 2);
++++         * `);
++++         *
++++         * const cacheWithoutAdd = script.createCachedData();
++++         * // In `cacheWithoutAdd` the function `add()` is marked for full compilation
++++         * // upon invocation.
++++         *
++++         * script.runInThisContext();
++++         *
++++         * const cacheWithAdd = script.createCachedData();
++++         * // `cacheWithAdd` contains fully compiled function `add()`.
++++         * ```
++++         * @since v10.6.0
++++         */
++++        createCachedData(): Buffer;
++++        /** @deprecated in favor of `script.createCachedData()` */
++++        cachedDataProduced?: boolean | undefined;
++++        /**
++++         * When `cachedData` is supplied to create the `vm.Script`, this value will be set
++++         * to either `true` or `false` depending on acceptance of the data by V8.
++++         * Otherwise the value is `undefined`.
++++         * @since v5.7.0
++++         */
++++        cachedDataRejected?: boolean | undefined;
++++        cachedData?: Buffer | undefined;
++++        /**
++++         * When the script is compiled from a source that contains a source map magic
++++         * comment, this property will be set to the URL of the source map.
++++         *
++++         * ```js
++++         * import vm from 'node:vm';
++++         *
++++         * const script = new vm.Script(`
++++         * function myFunc() {}
++++         * //# sourceMappingURL=sourcemap.json
++++         * `);
++++         *
++++         * console.log(script.sourceMapURL);
++++         * // Prints: sourcemap.json
++++         * ```
++++         * @since v19.1.0, v18.13.0
++++         */
++++        sourceMapURL?: string | undefined;
++++    }
++++    /**
++++     * If given a `contextObject`, the `vm.createContext()` method will
++++     * [prepare that object](https://nodejs.org/docs/latest-v20.x/api/vm.html#what-does-it-mean-to-contextify-an-object)
++++     * and return a reference to it so that it can be used in `{@link runInContext}` or
++++     * [`script.runInContext()`](https://nodejs.org/docs/latest-v20.x/api/vm.html#scriptrunincontextcontextifiedobject-options). Inside such
++++     * scripts, the `contextObject` will be the global object, retaining all of its
++++     * existing properties but also having the built-in objects and functions any
++++     * standard [global object](https://es5.github.io/#x15.1) has. Outside of scripts run by the vm module, global
++++     * variables will remain unchanged.
++++     *
++++     * ```js
++++     * import vm from 'node:vm';
++++     *
++++     * global.globalVar = 3;
++++     *
++++     * const context = { globalVar: 1 };
++++     * vm.createContext(context);
++++     *
++++     * vm.runInContext('globalVar *= 2;', context);
++++     *
++++     * console.log(context);
++++     * // Prints: { globalVar: 2 }
++++     *
++++     * console.log(global.globalVar);
++++     * // Prints: 3
++++     * ```
++++     *
++++     * If `contextObject` is omitted (or passed explicitly as `undefined`), a new,
++++     * empty `contextified` object will be returned.
++++     *
++++     * The `vm.createContext()` method is primarily useful for creating a single
++++     * context that can be used to run multiple scripts. For instance, if emulating a
++++     * web browser, the method can be used to create a single context representing a
++++     * window's global object, then run all `<script>` tags together within that
++++     * context.
++++     *
++++     * The provided `name` and `origin` of the context are made visible through the
++++     * Inspector API.
++++     * @since v0.3.1
++++     * @return contextified object.
++++     */
++++    function createContext(sandbox?: Context, options?: CreateContextOptions): Context;
++++    /**
++++     * Returns `true` if the given `object` object has been `contextified` using {@link createContext}.
++++     * @since v0.11.7
++++     */
++++    function isContext(sandbox: Context): boolean;
++++    /**
++++     * The `vm.runInContext()` method compiles `code`, runs it within the context of
++++     * the `contextifiedObject`, then returns the result. Running code does not have
++++     * access to the local scope. The `contextifiedObject` object _must_ have been
++++     * previously `contextified` using the {@link createContext} method.
++++     *
++++     * If `options` is a string, then it specifies the filename.
++++     *
++++     * The following example compiles and executes different scripts using a single `contextified` object:
++++     *
++++     * ```js
++++     * import vm from 'node:vm';
++++     *
++++     * const contextObject = { globalVar: 1 };
++++     * vm.createContext(contextObject);
++++     *
++++     * for (let i = 0; i < 10; ++i) {
++++     *   vm.runInContext('globalVar *= 2;', contextObject);
++++     * }
++++     * console.log(contextObject);
++++     * // Prints: { globalVar: 1024 }
++++     * ```
++++     * @since v0.3.1
++++     * @param code The JavaScript code to compile and run.
++++     * @param contextifiedObject The `contextified` object that will be used as the `global` when the `code` is compiled and run.
++++     * @return the result of the very last statement executed in the script.
++++     */
++++    function runInContext(code: string, contextifiedObject: Context, options?: RunningCodeOptions | string): any;
++++    /**
++++     * The `vm.runInNewContext()` first contextifies the given `contextObject` (or
++++     * creates a new `contextObject` if passed as `undefined`), compiles the `code`,
++++     * runs it within the created context, then returns the result. Running code
++++     * does not have access to the local scope.
++++     *
++++     * If `options` is a string, then it specifies the filename.
++++     *
++++     * The following example compiles and executes code that increments a global
++++     * variable and sets a new one. These globals are contained in the `contextObject`.
++++     *
++++     * ```js
++++     * import vm from 'node:vm';
++++     *
++++     * const contextObject = {
++++     *   animal: 'cat',
++++     *   count: 2,
++++     * };
++++     *
++++     * vm.runInNewContext('count += 1; name = "kitty"', contextObject);
++++     * console.log(contextObject);
++++     * // Prints: { animal: 'cat', count: 3, name: 'kitty' }
++++     * ```
++++     * @since v0.3.1
++++     * @param code The JavaScript code to compile and run.
++++     * @param contextObject An object that will be `contextified`. If `undefined`, a new object will be created.
++++     * @return the result of the very last statement executed in the script.
++++     */
++++    function runInNewContext(
++++        code: string,
++++        contextObject?: Context,
++++        options?: RunningCodeInNewContextOptions | string,
++++    ): any;
++++    /**
++++     * `vm.runInThisContext()` compiles `code`, runs it within the context of the
++++     * current `global` and returns the result. Running code does not have access to
++++     * local scope, but does have access to the current `global` object.
++++     *
++++     * If `options` is a string, then it specifies the filename.
++++     *
++++     * The following example illustrates using both `vm.runInThisContext()` and
++++     * the JavaScript [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) function to run the same code:
++++     *
++++     * ```js
++++     * import vm from 'node:vm';
++++     * let localVar = 'initial value';
++++     *
++++     * const vmResult = vm.runInThisContext('localVar = "vm";');
++++     * console.log(`vmResult: '${vmResult}', localVar: '${localVar}'`);
++++     * // Prints: vmResult: 'vm', localVar: 'initial value'
++++     *
++++     * const evalResult = eval('localVar = "eval";');
++++     * console.log(`evalResult: '${evalResult}', localVar: '${localVar}'`);
++++     * // Prints: evalResult: 'eval', localVar: 'eval'
++++     * ```
++++     *
++++     * Because `vm.runInThisContext()` does not have access to the local scope, `localVar` is unchanged. In contrast,
++++     * [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) _does_ have access to the
++++     * local scope, so the value `localVar` is changed. In this way `vm.runInThisContext()` is much like an [indirect `eval()` call](https://es5.github.io/#x10.4.2), e.g.`(0,eval)('code')`.
++++     *
++++     * ## Example: Running an HTTP server within a VM
++++     *
++++     * When using either `script.runInThisContext()` or {@link runInThisContext}, the code is executed within the current V8 global
++++     * context. The code passed to this VM context will have its own isolated scope.
++++     *
++++     * In order to run a simple web server using the `node:http` module the code passed
++++     * to the context must either call `require('node:http')` on its own, or have a
++++     * reference to the `node:http` module passed to it. For instance:
++++     *
++++     * ```js
++++     * 'use strict';
++++     * import vm from 'node:vm';
++++     *
++++     * const code = `
++++     * ((require) => {
++++     *   const http = require('node:http');
++++     *   http.createServer((request, response) => {
++++     *     response.writeHead(200, { 'Content-Type': 'text/plain' });
++++     *     response.end('Hello World\\n');
++++     *   }).listen(8124);
++++     *
++++     *   console.log('Server running at http://127.0.0.1:8124/');
++++     * })`;
++++     *
++++     * vm.runInThisContext(code)(require);
++++     * ```
++++     *
++++     * The `require()` in the above case shares the state with the context it is
++++     * passed from. This may introduce risks when untrusted code is executed, e.g.
++++     * altering objects in the context in unwanted ways.
++++     * @since v0.3.1
++++     * @param code The JavaScript code to compile and run.
++++     * @return the result of the very last statement executed in the script.
++++     */
++++    function runInThisContext(code: string, options?: RunningCodeOptions | string): any;
++++    /**
++++     * Compiles the given code into the provided context (if no context is
++++     * supplied, the current context is used), and returns it wrapped inside a
++++     * function with the given `params`.
++++     * @since v10.10.0
++++     * @param code The body of the function to compile.
++++     * @param params An array of strings containing all parameters for the function.
++++     */
++++    function compileFunction(
++++        code: string,
++++        params?: readonly string[],
++++        options?: CompileFunctionOptions,
++++    ): Function & {
++++        cachedData?: Script["cachedData"] | undefined;
++++        cachedDataProduced?: Script["cachedDataProduced"] | undefined;
++++        cachedDataRejected?: Script["cachedDataRejected"] | undefined;
++++    };
++++    /**
++++     * Measure the memory known to V8 and used by all contexts known to the
++++     * current V8 isolate, or the main context.
++++     *
++++     * The format of the object that the returned Promise may resolve with is
++++     * specific to the V8 engine and may change from one version of V8 to the next.
++++     *
++++     * The returned result is different from the statistics returned by `v8.getHeapSpaceStatistics()` in that `vm.measureMemory()` measure the
++++     * memory reachable by each V8 specific contexts in the current instance of
++++     * the V8 engine, while the result of `v8.getHeapSpaceStatistics()` measure
++++     * the memory occupied by each heap space in the current V8 instance.
++++     *
++++     * ```js
++++     * import vm from 'node:vm';
++++     * // Measure the memory used by the main context.
++++     * vm.measureMemory({ mode: 'summary' })
++++     *   // This is the same as vm.measureMemory()
++++     *   .then((result) => {
++++     *     // The current format is:
++++     *     // {
++++     *     //   total: {
++++     *     //      jsMemoryEstimate: 2418479, jsMemoryRange: [ 2418479, 2745799 ]
++++     *     //    }
++++     *     // }
++++     *     console.log(result);
++++     *   });
++++     *
++++     * const context = vm.createContext({ a: 1 });
++++     * vm.measureMemory({ mode: 'detailed', execution: 'eager' })
++++     *   .then((result) => {
++++     *     // Reference the context here so that it won't be GC'ed
++++     *     // until the measurement is complete.
++++     *     console.log(context.a);
++++     *     // {
++++     *     //   total: {
++++     *     //     jsMemoryEstimate: 2574732,
++++     *     //     jsMemoryRange: [ 2574732, 2904372 ]
++++     *     //   },
++++     *     //   current: {
++++     *     //     jsMemoryEstimate: 2438996,
++++     *     //     jsMemoryRange: [ 2438996, 2768636 ]
++++     *     //   },
++++     *     //   other: [
++++     *     //     {
++++     *     //       jsMemoryEstimate: 135736,
++++     *     //       jsMemoryRange: [ 135736, 465376 ]
++++     *     //     }
++++     *     //   ]
++++     *     // }
++++     *     console.log(result);
++++     *   });
++++     * ```
++++     * @since v13.10.0
++++     * @experimental
++++     */
++++    function measureMemory(options?: MeasureMemoryOptions): Promise<MemoryMeasurement>;
++++    interface ModuleEvaluateOptions {
++++        timeout?: RunningScriptOptions["timeout"] | undefined;
++++        breakOnSigint?: RunningScriptOptions["breakOnSigint"] | undefined;
++++    }
++++    type ModuleLinker = (
++++        specifier: string,
++++        referencingModule: Module,
++++        extra: {
++++            /** @deprecated Use `attributes` instead */
++++            assert: ImportAttributes;
++++            attributes: ImportAttributes;
++++        },
++++    ) => Module | Promise<Module>;
++++    type ModuleStatus = "unlinked" | "linking" | "linked" | "evaluating" | "evaluated" | "errored";
++++    /**
++++     * This feature is only available with the `--experimental-vm-modules` command
++++     * flag enabled.
++++     *
++++     * The `vm.Module` class provides a low-level interface for using
++++     * ECMAScript modules in VM contexts. It is the counterpart of the `vm.Script` class that closely mirrors [Module Record](https://262.ecma-international.org/14.0/#sec-abstract-module-records) s as
++++     * defined in the ECMAScript
++++     * specification.
++++     *
++++     * Unlike `vm.Script` however, every `vm.Module` object is bound to a context from
++++     * its creation. Operations on `vm.Module` objects are intrinsically asynchronous,
++++     * in contrast with the synchronous nature of `vm.Script` objects. The use of
++++     * 'async' functions can help with manipulating `vm.Module` objects.
++++     *
++++     * Using a `vm.Module` object requires three distinct steps: creation/parsing,
++++     * linking, and evaluation. These three steps are illustrated in the following
++++     * example.
++++     *
++++     * This implementation lies at a lower level than the `ECMAScript Module
++++     * loader`. There is also no way to interact with the Loader yet, though
++++     * support is planned.
++++     *
++++     * ```js
++++     * import vm from 'node:vm';
++++     *
++++     * const contextifiedObject = vm.createContext({
++++     *   secret: 42,
++++     *   print: console.log,
++++     * });
++++     *
++++     * // Step 1
++++     * //
++++     * // Create a Module by constructing a new `vm.SourceTextModule` object. This
++++     * // parses the provided source text, throwing a `SyntaxError` if anything goes
++++     * // wrong. By default, a Module is created in the top context. But here, we
++++     * // specify `contextifiedObject` as the context this Module belongs to.
++++     * //
++++     * // Here, we attempt to obtain the default export from the module "foo", and
++++     * // put it into local binding "secret".
++++     *
++++     * const bar = new vm.SourceTextModule(`
++++     *   import s from 'foo';
++++     *   s;
++++     *   print(s);
++++     * `, { context: contextifiedObject });
++++     *
++++     * // Step 2
++++     * //
++++     * // "Link" the imported dependencies of this Module to it.
++++     * //
++++     * // The provided linking callback (the "linker") accepts two arguments: the
++++     * // parent module (`bar` in this case) and the string that is the specifier of
++++     * // the imported module. The callback is expected to return a Module that
++++     * // corresponds to the provided specifier, with certain requirements documented
++++     * // in `module.link()`.
++++     * //
++++     * // If linking has not started for the returned Module, the same linker
++++     * // callback will be called on the returned Module.
++++     * //
++++     * // Even top-level Modules without dependencies must be explicitly linked. The
++++     * // callback provided would never be called, however.
++++     * //
++++     * // The link() method returns a Promise that will be resolved when all the
++++     * // Promises returned by the linker resolve.
++++     * //
++++     * // Note: This is a contrived example in that the linker function creates a new
++++     * // "foo" module every time it is called. In a full-fledged module system, a
++++     * // cache would probably be used to avoid duplicated modules.
++++     *
++++     * async function linker(specifier, referencingModule) {
++++     *   if (specifier === 'foo') {
++++     *     return new vm.SourceTextModule(`
++++     *       // The "secret" variable refers to the global variable we added to
++++     *       // "contextifiedObject" when creating the context.
++++     *       export default secret;
++++     *     `, { context: referencingModule.context });
++++     *
++++     *     // Using `contextifiedObject` instead of `referencingModule.context`
++++     *     // here would work as well.
++++     *   }
++++     *   throw new Error(`Unable to resolve dependency: ${specifier}`);
++++     * }
++++     * await bar.link(linker);
++++     *
++++     * // Step 3
++++     * //
++++     * // Evaluate the Module. The evaluate() method returns a promise which will
++++     * // resolve after the module has finished evaluating.
++++     *
++++     * // Prints 42.
++++     * await bar.evaluate();
++++     * ```
++++     * @since v13.0.0, v12.16.0
++++     * @experimental
++++     */
++++    class Module {
++++        /**
++++         * The specifiers of all dependencies of this module. The returned array is frozen
++++         * to disallow any changes to it.
++++         *
++++         * Corresponds to the `[[RequestedModules]]` field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in
++++         * the ECMAScript specification.
++++         */
++++        dependencySpecifiers: readonly string[];
++++        /**
++++         * If the `module.status` is `'errored'`, this property contains the exception
++++         * thrown by the module during evaluation. If the status is anything else,
++++         * accessing this property will result in a thrown exception.
++++         *
++++         * The value `undefined` cannot be used for cases where there is not a thrown
++++         * exception due to possible ambiguity with `throw undefined;`.
++++         *
++++         * Corresponds to the `[[EvaluationError]]` field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s
++++         * in the ECMAScript specification.
++++         */
++++        error: any;
++++        /**
++++         * The identifier of the current module, as set in the constructor.
++++         */
++++        identifier: string;
++++        context: Context;
++++        /**
++++         * The namespace object of the module. This is only available after linking
++++         * (`module.link()`) has completed.
++++         *
++++         * Corresponds to the [GetModuleNamespace](https://tc39.es/ecma262/#sec-getmodulenamespace) abstract operation in the ECMAScript
++++         * specification.
++++         */
++++        namespace: Object;
++++        /**
++++         * The current status of the module. Will be one of:
++++         *
++++         * * `'unlinked'`: `module.link()` has not yet been called.
++++         * * `'linking'`: `module.link()` has been called, but not all Promises returned
++++         * by the linker function have been resolved yet.
++++         * * `'linked'`: The module has been linked successfully, and all of its
++++         * dependencies are linked, but `module.evaluate()` has not yet been called.
++++         * * `'evaluating'`: The module is being evaluated through a `module.evaluate()` on
++++         * itself or a parent module.
++++         * * `'evaluated'`: The module has been successfully evaluated.
++++         * * `'errored'`: The module has been evaluated, but an exception was thrown.
++++         *
++++         * Other than `'errored'`, this status string corresponds to the specification's [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records)'s `[[Status]]` field. `'errored'`
++++         * corresponds to `'evaluated'` in the specification, but with `[[EvaluationError]]` set to a
++++         * value that is not `undefined`.
++++         */
++++        status: ModuleStatus;
++++        /**
++++         * Evaluate the module.
++++         *
++++         * This must be called after the module has been linked; otherwise it will reject.
++++         * It could be called also when the module has already been evaluated, in which
++++         * case it will either do nothing if the initial evaluation ended in success
++++         * (`module.status` is `'evaluated'`) or it will re-throw the exception that the
++++         * initial evaluation resulted in (`module.status` is `'errored'`).
++++         *
++++         * This method cannot be called while the module is being evaluated
++++         * (`module.status` is `'evaluating'`).
++++         *
++++         * Corresponds to the [Evaluate() concrete method](https://tc39.es/ecma262/#sec-moduleevaluation) field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in the
++++         * ECMAScript specification.
++++         * @return Fulfills with `undefined` upon success.
++++         */
++++        evaluate(options?: ModuleEvaluateOptions): Promise<void>;
++++        /**
++++         * Link module dependencies. This method must be called before evaluation, and
++++         * can only be called once per module.
++++         *
++++         * The function is expected to return a `Module` object or a `Promise` that
++++         * eventually resolves to a `Module` object. The returned `Module` must satisfy the
++++         * following two invariants:
++++         *
++++         * * It must belong to the same context as the parent `Module`.
++++         * * Its `status` must not be `'errored'`.
++++         *
++++         * If the returned `Module`'s `status` is `'unlinked'`, this method will be
++++         * recursively called on the returned `Module` with the same provided `linker` function.
++++         *
++++         * `link()` returns a `Promise` that will either get resolved when all linking
++++         * instances resolve to a valid `Module`, or rejected if the linker function either
++++         * throws an exception or returns an invalid `Module`.
++++         *
++++         * The linker function roughly corresponds to the implementation-defined [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) abstract operation in the
++++         * ECMAScript
++++         * specification, with a few key differences:
++++         *
++++         * * The linker function is allowed to be asynchronous while [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) is synchronous.
++++         *
++++         * The actual [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) implementation used during module
++++         * linking is one that returns the modules linked during linking. Since at
++++         * that point all modules would have been fully linked already, the [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) implementation is fully synchronous per
++++         * specification.
++++         *
++++         * Corresponds to the [Link() concrete method](https://tc39.es/ecma262/#sec-moduledeclarationlinking) field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in
++++         * the ECMAScript specification.
++++         */
++++        link(linker: ModuleLinker): Promise<void>;
++++    }
++++    interface SourceTextModuleOptions {
++++        /**
++++         * String used in stack traces.
++++         * @default 'vm:module(i)' where i is a context-specific ascending index.
++++         */
++++        identifier?: string | undefined;
++++        cachedData?: ScriptOptions["cachedData"] | undefined;
++++        context?: Context | undefined;
++++        lineOffset?: BaseOptions["lineOffset"] | undefined;
++++        columnOffset?: BaseOptions["columnOffset"] | undefined;
++++        /**
++++         * Called during evaluation of this module to initialize the `import.meta`.
++++         */
++++        initializeImportMeta?: ((meta: ImportMeta, module: SourceTextModule) => void) | undefined;
++++        importModuleDynamically?: ScriptOptions["importModuleDynamically"] | undefined;
++++    }
++++    /**
++++     * This feature is only available with the `--experimental-vm-modules` command
++++     * flag enabled.
++++     *
++++     * The `vm.SourceTextModule` class provides the [Source Text Module Record](https://tc39.es/ecma262/#sec-source-text-module-records) as
++++     * defined in the ECMAScript specification.
++++     * @since v9.6.0
++++     * @experimental
++++     */
++++    class SourceTextModule extends Module {
++++        /**
++++         * Creates a new `SourceTextModule` instance.
++++         * @param code JavaScript Module code to parse
++++         */
++++        constructor(code: string, options?: SourceTextModuleOptions);
++++    }
++++    interface SyntheticModuleOptions {
++++        /**
++++         * String used in stack traces.
++++         * @default 'vm:module(i)' where i is a context-specific ascending index.
++++         */
++++        identifier?: string | undefined;
++++        /**
++++         * The contextified object as returned by the `vm.createContext()` method, to compile and evaluate this module in.
++++         */
++++        context?: Context | undefined;
++++    }
++++    /**
++++     * This feature is only available with the `--experimental-vm-modules` command
++++     * flag enabled.
++++     *
++++     * The `vm.SyntheticModule` class provides the [Synthetic Module Record](https://heycam.github.io/webidl/#synthetic-module-records) as
++++     * defined in the WebIDL specification. The purpose of synthetic modules is to
++++     * provide a generic interface for exposing non-JavaScript sources to ECMAScript
++++     * module graphs.
++++     *
++++     * ```js
++++     * import vm from 'node:vm';
++++     *
++++     * const source = '{ "a": 1 }';
++++     * const module = new vm.SyntheticModule(['default'], function() {
++++     *   const obj = JSON.parse(source);
++++     *   this.setExport('default', obj);
++++     * });
++++     *
++++     * // Use `module` in linking...
++++     * ```
++++     * @since v13.0.0, v12.16.0
++++     * @experimental
++++     */
++++    class SyntheticModule extends Module {
++++        /**
++++         * Creates a new `SyntheticModule` instance.
++++         * @param exportNames Array of names that will be exported from the module.
++++         * @param evaluateCallback Called when the module is evaluated.
++++         */
++++        constructor(
++++            exportNames: string[],
++++            evaluateCallback: (this: SyntheticModule) => void,
++++            options?: SyntheticModuleOptions,
++++        );
++++        /**
++++         * This method is used after the module is linked to set the values of exports. If
++++         * it is called before the module is linked, an `ERR_VM_MODULE_STATUS` error
++++         * will be thrown.
++++         *
++++         * ```js
++++         * import vm from 'node:vm';
++++         *
++++         * const m = new vm.SyntheticModule(['x'], () => {
++++         *   m.setExport('x', 1);
++++         * });
++++         *
++++         * await m.link(() => {});
++++         * await m.evaluate();
++++         *
++++         * assert.strictEqual(m.namespace.x, 1);
++++         * ```
++++         * @since v13.0.0, v12.16.0
++++         * @param name Name of the export to set.
++++         * @param value The value to set the export to.
++++         */
++++        setExport(name: string, value: any): void;
++++    }
++++    /**
++++     * Returns an object containing commonly used constants for VM operations.
++++     * @since v20.12.0
++++     */
++++    namespace constants {
++++        /**
++++         * A constant that can be used as the `importModuleDynamically` option to `vm.Script`
++++         * and `vm.compileFunction()` so that Node.js uses the default ESM loader from the main
++++         * context to load the requested module.
++++         *
++++         * For detailed information, see [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v20.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
++++         * @since v20.12.0
++++         */
++++        const USE_MAIN_CONTEXT_DEFAULT_LOADER: number;
++++    }
++++}
++++declare module "node:vm" {
++++    export * from "vm";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..fbf29ac261c851a920c7f9980647cbedacdca9da
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,181 @@@@@
++++/**
++++ * **The `node:wasi` module does not currently provide the**
++++ * **comprehensive file system security properties provided by some WASI runtimes.**
++++ * **Full support for secure file system sandboxing may or may not be implemented in**
++++ * **future. In the mean time, do not rely on it to run untrusted code.**
++++ *
++++ * The WASI API provides an implementation of the [WebAssembly System Interface](https://wasi.dev/) specification. WASI gives WebAssembly applications access to the underlying
++++ * operating system via a collection of POSIX-like functions.
++++ *
++++ * ```js
++++ * import { readFile } from 'node:fs/promises';
++++ * import { WASI } from 'wasi';
++++ * import { argv, env } from 'node:process';
++++ *
++++ * const wasi = new WASI({
++++ *   version: 'preview1',
++++ *   args: argv,
++++ *   env,
++++ *   preopens: {
++++ *     '/local': '/some/real/path/that/wasm/can/access',
++++ *   },
++++ * });
++++ *
++++ * const wasm = await WebAssembly.compile(
++++ *   await readFile(new URL('./demo.wasm', import.meta.url)),
++++ * );
++++ * const instance = await WebAssembly.instantiate(wasm, wasi.getImportObject());
++++ *
++++ * wasi.start(instance);
++++ * ```
++++ *
++++ * To run the above example, create a new WebAssembly text format file named `demo.wat`:
++++ *
++++ * ```text
++++ * (module
++++ *     ;; Import the required fd_write WASI function which will write the given io vectors to stdout
++++ *     ;; The function signature for fd_write is:
++++ *     ;; (File Descriptor, *iovs, iovs_len, nwritten) -> Returns number of bytes written
++++ *     (import "wasi_snapshot_preview1" "fd_write" (func $fd_write (param i32 i32 i32 i32) (result i32)))
++++ *
++++ *     (memory 1)
++++ *     (export "memory" (memory 0))
++++ *
++++ *     ;; Write 'hello world\n' to memory at an offset of 8 bytes
++++ *     ;; Note the trailing newline which is required for the text to appear
++++ *     (data (i32.const 8) "hello world\n")
++++ *
++++ *     (func $main (export "_start")
++++ *         ;; Creating a new io vector within linear memory
++++ *         (i32.store (i32.const 0) (i32.const 8))  ;; iov.iov_base - This is a pointer to the start of the 'hello world\n' string
++++ *         (i32.store (i32.const 4) (i32.const 12))  ;; iov.iov_len - The length of the 'hello world\n' string
++++ *
++++ *         (call $fd_write
++++ *             (i32.const 1) ;; file_descriptor - 1 for stdout
++++ *             (i32.const 0) ;; *iovs - The pointer to the iov array, which is stored at memory location 0
++++ *             (i32.const 1) ;; iovs_len - We're printing 1 string stored in an iov - so one.
++++ *             (i32.const 20) ;; nwritten - A place in memory to store the number of bytes written
++++ *         )
++++ *         drop ;; Discard the number of bytes written from the top of the stack
++++ *     )
++++ * )
++++ * ```
++++ *
++++ * Use [wabt](https://github.com/WebAssembly/wabt) to compile `.wat` to `.wasm`
++++ *
++++ * ```bash
++++ * wat2wasm demo.wat
++++ * ```
++++ * @experimental
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/wasi.js)
++++ */
++++declare module "wasi" {
++++    interface WASIOptions {
++++        /**
++++         * An array of strings that the WebAssembly application will
++++         * see as command line arguments. The first argument is the virtual path to the
++++         * WASI command itself.
++++         * @default []
++++         */
++++        args?: string[] | undefined;
++++        /**
++++         * An object similar to `process.env` that the WebAssembly
++++         * application will see as its environment.
++++         * @default {}
++++         */
++++        env?: object | undefined;
++++        /**
++++         * This object represents the WebAssembly application's
++++         * sandbox directory structure. The string keys of `preopens` are treated as
++++         * directories within the sandbox. The corresponding values in `preopens` are
++++         * the real paths to those directories on the host machine.
++++         */
++++        preopens?: NodeJS.Dict<string> | undefined;
++++        /**
++++         * By default, when WASI applications call `__wasi_proc_exit()`
++++         * `wasi.start()` will return with the exit code specified rather than terminatng the process.
++++         * Setting this option to `false` will cause the Node.js process to exit with
++++         * the specified exit code instead.
++++         * @default true
++++         */
++++        returnOnExit?: boolean | undefined;
++++        /**
++++         * The file descriptor used as standard input in the WebAssembly application.
++++         * @default 0
++++         */
++++        stdin?: number | undefined;
++++        /**
++++         * The file descriptor used as standard output in the WebAssembly application.
++++         * @default 1
++++         */
++++        stdout?: number | undefined;
++++        /**
++++         * The file descriptor used as standard error in the WebAssembly application.
++++         * @default 2
++++         */
++++        stderr?: number | undefined;
++++        /**
++++         * The version of WASI requested.
++++         * Currently the only supported versions are `'unstable'` and `'preview1'`. This option is mandatory.
++++         * @since v19.8.0
++++         */
++++        version: "unstable" | "preview1";
++++    }
++++    /**
++++     * The `WASI` class provides the WASI system call API and additional convenience
++++     * methods for working with WASI-based applications. Each `WASI` instance
++++     * represents a distinct environment.
++++     * @since v13.3.0, v12.16.0
++++     */
++++    class WASI {
++++        constructor(options?: WASIOptions);
++++        /**
++++         * Return an import object that can be passed to `WebAssembly.instantiate()` if no other WASM imports are needed beyond those provided by WASI.
++++         *
++++         * If version `unstable` was passed into the constructor it will return:
++++         *
++++         * ```js
++++         * { wasi_unstable: wasi.wasiImport }
++++         * ```
++++         *
++++         * If version `preview1` was passed into the constructor or no version was specified it will return:
++++         *
++++         * ```js
++++         * { wasi_snapshot_preview1: wasi.wasiImport }
++++         * ```
++++         * @since v19.8.0
++++         */
++++        getImportObject(): object;
++++        /**
++++         * Attempt to begin execution of `instance` as a WASI command by invoking its `_start()` export. If `instance` does not contain a `_start()` export, or if `instance` contains an `_initialize()`
++++         * export, then an exception is thrown.
++++         *
++++         * `start()` requires that `instance` exports a [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) named `memory`. If
++++         * `instance` does not have a `memory` export an exception is thrown.
++++         *
++++         * If `start()` is called more than once, an exception is thrown.
++++         * @since v13.3.0, v12.16.0
++++         */
++++        start(instance: object): number; // TODO: avoid DOM dependency until WASM moved to own lib.
++++        /**
++++         * Attempt to initialize `instance` as a WASI reactor by invoking its `_initialize()` export, if it is present. If `instance` contains a `_start()` export, then an exception is thrown.
++++         *
++++         * `initialize()` requires that `instance` exports a [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) named `memory`.
++++         * If `instance` does not have a `memory` export an exception is thrown.
++++         *
++++         * If `initialize()` is called more than once, an exception is thrown.
++++         * @since v14.6.0, v12.19.0
++++         */
++++        initialize(instance: object): void; // TODO: avoid DOM dependency until WASM moved to own lib.
++++        /**
++++         * `wasiImport` is an object that implements the WASI system call API. This object
++++         * should be passed as the `wasi_snapshot_preview1` import during the instantiation
++++         * of a [`WebAssembly.Instance`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance).
++++         * @since v13.3.0, v12.16.0
++++         */
++++        readonly wasiImport: NodeJS.Dict<any>; // TODO: Narrow to DOM types
++++    }
++++}
++++declare module "node:wasi" {
++++    export * from "wasi";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..72f30d4baaa519fde6fb889e0a722ce9318adec9
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,694 @@@@@
++++/**
++++ * The `node:worker_threads` module enables the use of threads that execute
++++ * JavaScript in parallel. To access it:
++++ *
++++ * ```js
++++ * import worker from 'node:worker_threads';
++++ * ```
++++ *
++++ * Workers (threads) are useful for performing CPU-intensive JavaScript operations.
++++ * They do not help much with I/O-intensive work. The Node.js built-in
++++ * asynchronous I/O operations are more efficient than Workers can be.
++++ *
++++ * Unlike `child_process` or `cluster`, `worker_threads` can share memory. They do
++++ * so by transferring `ArrayBuffer` instances or sharing `SharedArrayBuffer` instances.
++++ *
++++ * ```js
++++ * import {
++++ *   Worker, isMainThread, parentPort, workerData,
++++ * } from 'node:worker_threads';
++++ * import { parse } = from 'some-js-parsing-library';
++++ *
++++ * if (isMainThread) {
++++ *   module.exports = function parseJSAsync(script) {
++++ *     return new Promise((resolve, reject) => {
++++ *       const worker = new Worker(__filename, {
++++ *         workerData: script,
++++ *       });
++++ *       worker.on('message', resolve);
++++ *       worker.on('error', reject);
++++ *       worker.on('exit', (code) => {
++++ *         if (code !== 0)
++++ *           reject(new Error(`Worker stopped with exit code ${code}`));
++++ *       });
++++ *     });
++++ *   };
++++ * } else {
++++ *   const script = workerData;
++++ *   parentPort.postMessage(parse(script));
++++ * }
++++ * ```
++++ *
++++ * The above example spawns a Worker thread for each `parseJSAsync()` call. In
++++ * practice, use a pool of Workers for these kinds of tasks. Otherwise, the
++++ * overhead of creating Workers would likely exceed their benefit.
++++ *
++++ * When implementing a worker pool, use the `AsyncResource` API to inform
++++ * diagnostic tools (e.g. to provide asynchronous stack traces) about the
++++ * correlation between tasks and their outcomes. See `"Using AsyncResource for a Worker thread pool"` in the `async_hooks` documentation for an example implementation.
++++ *
++++ * Worker threads inherit non-process-specific options by default. Refer to `Worker constructor options` to know how to customize worker thread options,
++++ * specifically `argv` and `execArgv` options.
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/worker_threads.js)
++++ */
++++declare module "worker_threads" {
++++    import { Blob } from "node:buffer";
++++    import { Context } from "node:vm";
++++    import { EventEmitter } from "node:events";
++++    import { EventLoopUtilityFunction } from "node:perf_hooks";
++++    import { FileHandle } from "node:fs/promises";
++++    import { Readable, Writable } from "node:stream";
++++    import { URL } from "node:url";
++++    import { X509Certificate } from "node:crypto";
++++    const isMainThread: boolean;
++++    const parentPort: null | MessagePort;
++++    const resourceLimits: ResourceLimits;
++++    const SHARE_ENV: unique symbol;
++++    const threadId: number;
++++    const workerData: any;
++++    /**
++++     * Instances of the `worker.MessageChannel` class represent an asynchronous,
++++     * two-way communications channel.
++++     * The `MessageChannel` has no methods of its own. `new MessageChannel()` yields an object with `port1` and `port2` properties, which refer to linked `MessagePort` instances.
++++     *
++++     * ```js
++++     * import { MessageChannel } from 'node:worker_threads';
++++     *
++++     * const { port1, port2 } = new MessageChannel();
++++     * port1.on('message', (message) => console.log('received', message));
++++     * port2.postMessage({ foo: 'bar' });
++++     * // Prints: received { foo: 'bar' } from the `port1.on('message')` listener
++++     * ```
++++     * @since v10.5.0
++++     */
++++    class MessageChannel {
++++        readonly port1: MessagePort;
++++        readonly port2: MessagePort;
++++    }
++++    interface WorkerPerformance {
++++        eventLoopUtilization: EventLoopUtilityFunction;
++++    }
++++    type TransferListItem = ArrayBuffer | MessagePort | FileHandle | X509Certificate | Blob;
++++    /**
++++     * Instances of the `worker.MessagePort` class represent one end of an
++++     * asynchronous, two-way communications channel. It can be used to transfer
++++     * structured data, memory regions and other `MessagePort`s between different `Worker`s.
++++     *
++++     * This implementation matches [browser `MessagePort`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort) s.
++++     * @since v10.5.0
++++     */
++++    class MessagePort extends EventEmitter {
++++        /**
++++         * Disables further sending of messages on either side of the connection.
++++         * This method can be called when no further communication will happen over this `MessagePort`.
++++         *
++++         * The `'close' event` is emitted on both `MessagePort` instances that
++++         * are part of the channel.
++++         * @since v10.5.0
++++         */
++++        close(): void;
++++        /**
++++         * Sends a JavaScript value to the receiving side of this channel. `value` is transferred in a way which is compatible with
++++         * the [HTML structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm).
++++         *
++++         * In particular, the significant differences to `JSON` are:
++++         *
++++         * * `value` may contain circular references.
++++         * * `value` may contain instances of builtin JS types such as `RegExp`s, `BigInt`s, `Map`s, `Set`s, etc.
++++         * * `value` may contain typed arrays, both using `ArrayBuffer`s
++++         * and `SharedArrayBuffer`s.
++++         * * `value` may contain [`WebAssembly.Module`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module) instances.
++++         * * `value` may not contain native (C++-backed) objects other than:
++++         *
++++         * ```js
++++         * import { MessageChannel } from 'node:worker_threads';
++++         * const { port1, port2 } = new MessageChannel();
++++         *
++++         * port1.on('message', (message) => console.log(message));
++++         *
++++         * const circularData = {};
++++         * circularData.foo = circularData;
++++         * // Prints: { foo: [Circular] }
++++         * port2.postMessage(circularData);
++++         * ```
++++         *
++++         * `transferList` may be a list of [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer), `MessagePort`, and `FileHandle` objects.
++++         * After transferring, they are not usable on the sending side of the channel
++++         * anymore (even if they are not contained in `value`). Unlike with `child processes`, transferring handles such as network sockets is currently
++++         * not supported.
++++         *
++++         * If `value` contains [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances, those are accessible
++++         * from either thread. They cannot be listed in `transferList`.
++++         *
++++         * `value` may still contain `ArrayBuffer` instances that are not in `transferList`; in that case, the underlying memory is copied rather than moved.
++++         *
++++         * ```js
++++         * import { MessageChannel } from 'node:worker_threads';
++++         * const { port1, port2 } = new MessageChannel();
++++         *
++++         * port1.on('message', (message) => console.log(message));
++++         *
++++         * const uint8Array = new Uint8Array([ 1, 2, 3, 4 ]);
++++         * // This posts a copy of `uint8Array`:
++++         * port2.postMessage(uint8Array);
++++         * // This does not copy data, but renders `uint8Array` unusable:
++++         * port2.postMessage(uint8Array, [ uint8Array.buffer ]);
++++         *
++++         * // The memory for the `sharedUint8Array` is accessible from both the
++++         * // original and the copy received by `.on('message')`:
++++         * const sharedUint8Array = new Uint8Array(new SharedArrayBuffer(4));
++++         * port2.postMessage(sharedUint8Array);
++++         *
++++         * // This transfers a freshly created message port to the receiver.
++++         * // This can be used, for example, to create communication channels between
++++         * // multiple `Worker` threads that are children of the same parent thread.
++++         * const otherChannel = new MessageChannel();
++++         * port2.postMessage({ port: otherChannel.port1 }, [ otherChannel.port1 ]);
++++         * ```
++++         *
++++         * The message object is cloned immediately, and can be modified after
++++         * posting without having side effects.
++++         *
++++         * For more information on the serialization and deserialization mechanisms
++++         * behind this API, see the `serialization API of the node:v8 module`.
++++         * @since v10.5.0
++++         */
++++        postMessage(value: any, transferList?: readonly TransferListItem[]): void;
++++        /**
++++         * Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does _not_ let the program exit if it's the only active handle left (the default
++++         * behavior). If the port is `ref()`ed, calling `ref()` again has no effect.
++++         *
++++         * If listeners are attached or removed using `.on('message')`, the port
++++         * is `ref()`ed and `unref()`ed automatically depending on whether
++++         * listeners for the event exist.
++++         * @since v10.5.0
++++         */
++++        ref(): void;
++++        /**
++++         * Calling `unref()` on a port allows the thread to exit if this is the only
++++         * active handle in the event system. If the port is already `unref()`ed calling `unref()` again has no effect.
++++         *
++++         * If listeners are attached or removed using `.on('message')`, the port is `ref()`ed and `unref()`ed automatically depending on whether
++++         * listeners for the event exist.
++++         * @since v10.5.0
++++         */
++++        unref(): void;
++++        /**
++++         * Starts receiving messages on this `MessagePort`. When using this port
++++         * as an event emitter, this is called automatically once `'message'` listeners are attached.
++++         *
++++         * This method exists for parity with the Web `MessagePort` API. In Node.js,
++++         * it is only useful for ignoring messages when no event listener is present.
++++         * Node.js also diverges in its handling of `.onmessage`. Setting it
++++         * automatically calls `.start()`, but unsetting it lets messages queue up
++++         * until a new handler is set or the port is discarded.
++++         * @since v10.5.0
++++         */
++++        start(): void;
++++        addListener(event: "close", listener: () => void): this;
++++        addListener(event: "message", listener: (value: any) => void): this;
++++        addListener(event: "messageerror", listener: (error: Error) => void): this;
++++        addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        emit(event: "close"): boolean;
++++        emit(event: "message", value: any): boolean;
++++        emit(event: "messageerror", error: Error): boolean;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        on(event: "close", listener: () => void): this;
++++        on(event: "message", listener: (value: any) => void): this;
++++        on(event: "messageerror", listener: (error: Error) => void): this;
++++        on(event: string | symbol, listener: (...args: any[]) => void): this;
++++        once(event: "close", listener: () => void): this;
++++        once(event: "message", listener: (value: any) => void): this;
++++        once(event: "messageerror", listener: (error: Error) => void): this;
++++        once(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependListener(event: "close", listener: () => void): this;
++++        prependListener(event: "message", listener: (value: any) => void): this;
++++        prependListener(event: "messageerror", listener: (error: Error) => void): this;
++++        prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "close", listener: () => void): this;
++++        prependOnceListener(event: "message", listener: (value: any) => void): this;
++++        prependOnceListener(event: "messageerror", listener: (error: Error) => void): this;
++++        prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        removeListener(event: "close", listener: () => void): this;
++++        removeListener(event: "message", listener: (value: any) => void): this;
++++        removeListener(event: "messageerror", listener: (error: Error) => void): this;
++++        removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        off(event: "close", listener: () => void): this;
++++        off(event: "message", listener: (value: any) => void): this;
++++        off(event: "messageerror", listener: (error: Error) => void): this;
++++        off(event: string | symbol, listener: (...args: any[]) => void): this;
++++        addEventListener: EventTarget["addEventListener"];
++++        dispatchEvent: EventTarget["dispatchEvent"];
++++        removeEventListener: EventTarget["removeEventListener"];
++++    }
++++    interface WorkerOptions {
++++        /**
++++         * List of arguments which would be stringified and appended to
++++         * `process.argv` in the worker. This is mostly similar to the `workerData`
++++         * but the values will be available on the global `process.argv` as if they
++++         * were passed as CLI options to the script.
++++         */
++++        argv?: any[] | undefined;
++++        env?: NodeJS.Dict<string> | typeof SHARE_ENV | undefined;
++++        eval?: boolean | undefined;
++++        workerData?: any;
++++        stdin?: boolean | undefined;
++++        stdout?: boolean | undefined;
++++        stderr?: boolean | undefined;
++++        execArgv?: string[] | undefined;
++++        resourceLimits?: ResourceLimits | undefined;
++++        /**
++++         * Additional data to send in the first worker message.
++++         */
++++        transferList?: TransferListItem[] | undefined;
++++        /**
++++         * @default true
++++         */
++++        trackUnmanagedFds?: boolean | undefined;
++++        /**
++++         * An optional `name` to be appended to the worker title
++++         * for debuggin/identification purposes, making the final title as
++++         * `[worker ${id}] ${name}`.
++++         */
++++        name?: string | undefined;
++++    }
++++    interface ResourceLimits {
++++        /**
++++         * The maximum size of a heap space for recently created objects.
++++         */
++++        maxYoungGenerationSizeMb?: number | undefined;
++++        /**
++++         * The maximum size of the main heap in MB.
++++         */
++++        maxOldGenerationSizeMb?: number | undefined;
++++        /**
++++         * The size of a pre-allocated memory range used for generated code.
++++         */
++++        codeRangeSizeMb?: number | undefined;
++++        /**
++++         * The default maximum stack size for the thread. Small values may lead to unusable Worker instances.
++++         * @default 4
++++         */
++++        stackSizeMb?: number | undefined;
++++    }
++++    /**
++++     * The `Worker` class represents an independent JavaScript execution thread.
++++     * Most Node.js APIs are available inside of it.
++++     *
++++     * Notable differences inside a Worker environment are:
++++     *
++++     * * The `process.stdin`, `process.stdout`, and `process.stderr` streams may be redirected by the parent thread.
++++     * * The `import { isMainThread } from 'node:worker_threads'` property is set to `false`.
++++     * * The `import { parentPort } from 'node:worker_threads'` message port is available.
++++     * * `process.exit()` does not stop the whole program, just the single thread,
++++     * and `process.abort()` is not available.
++++     * * `process.chdir()` and `process` methods that set group or user ids
++++     * are not available.
++++     * * `process.env` is a copy of the parent thread's environment variables,
++++     * unless otherwise specified. Changes to one copy are not visible in other
++++     * threads, and are not visible to native add-ons (unless `worker.SHARE_ENV` is passed as the `env` option to the `Worker` constructor). On Windows, unlike the main thread, a copy of the
++++     * environment variables operates in a case-sensitive manner.
++++     * * `process.title` cannot be modified.
++++     * * Signals are not delivered through `process.on('...')`.
++++     * * Execution may stop at any point as a result of `worker.terminate()` being invoked.
++++     * * IPC channels from parent processes are not accessible.
++++     * * The `trace_events` module is not supported.
++++     * * Native add-ons can only be loaded from multiple threads if they fulfill `certain conditions`.
++++     *
++++     * Creating `Worker` instances inside of other `Worker`s is possible.
++++     *
++++     * Like [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) and the `node:cluster module`, two-way communication
++++     * can be achieved through inter-thread message passing. Internally, a `Worker` has
++++     * a built-in pair of `MessagePort` s that are already associated with each
++++     * other when the `Worker` is created. While the `MessagePort` object on the parent
++++     * side is not directly exposed, its functionalities are exposed through `worker.postMessage()` and the `worker.on('message')` event
++++     * on the `Worker` object for the parent thread.
++++     *
++++     * To create custom messaging channels (which is encouraged over using the default
++++     * global channel because it facilitates separation of concerns), users can create
++++     * a `MessageChannel` object on either thread and pass one of the`MessagePort`s on that `MessageChannel` to the other thread through a
++++     * pre-existing channel, such as the global one.
++++     *
++++     * See `port.postMessage()` for more information on how messages are passed,
++++     * and what kind of JavaScript values can be successfully transported through
++++     * the thread barrier.
++++     *
++++     * ```js
++++     * import assert from 'node:assert';
++++     * import {
++++     *   Worker, MessageChannel, MessagePort, isMainThread, parentPort,
++++     * } from 'node:worker_threads';
++++     * if (isMainThread) {
++++     *   const worker = new Worker(__filename);
++++     *   const subChannel = new MessageChannel();
++++     *   worker.postMessage({ hereIsYourPort: subChannel.port1 }, [subChannel.port1]);
++++     *   subChannel.port2.on('message', (value) => {
++++     *     console.log('received:', value);
++++     *   });
++++     * } else {
++++     *   parentPort.once('message', (value) => {
++++     *     assert(value.hereIsYourPort instanceof MessagePort);
++++     *     value.hereIsYourPort.postMessage('the worker is sending this');
++++     *     value.hereIsYourPort.close();
++++     *   });
++++     * }
++++     * ```
++++     * @since v10.5.0
++++     */
++++    class Worker extends EventEmitter {
++++        /**
++++         * If `stdin: true` was passed to the `Worker` constructor, this is a
++++         * writable stream. The data written to this stream will be made available in
++++         * the worker thread as `process.stdin`.
++++         * @since v10.5.0
++++         */
++++        readonly stdin: Writable | null;
++++        /**
++++         * This is a readable stream which contains data written to `process.stdout` inside the worker thread. If `stdout: true` was not passed to the `Worker` constructor, then data is piped to the
++++         * parent thread's `process.stdout` stream.
++++         * @since v10.5.0
++++         */
++++        readonly stdout: Readable;
++++        /**
++++         * This is a readable stream which contains data written to `process.stderr` inside the worker thread. If `stderr: true` was not passed to the `Worker` constructor, then data is piped to the
++++         * parent thread's `process.stderr` stream.
++++         * @since v10.5.0
++++         */
++++        readonly stderr: Readable;
++++        /**
++++         * An integer identifier for the referenced thread. Inside the worker thread,
++++         * it is available as `import { threadId } from 'node:node:worker_threads'`.
++++         * This value is unique for each `Worker` instance inside a single process.
++++         * @since v10.5.0
++++         */
++++        readonly threadId: number;
++++        /**
++++         * Provides the set of JS engine resource constraints for this Worker thread.
++++         * If the `resourceLimits` option was passed to the `Worker` constructor,
++++         * this matches its values.
++++         *
++++         * If the worker has stopped, the return value is an empty object.
++++         * @since v13.2.0, v12.16.0
++++         */
++++        readonly resourceLimits?: ResourceLimits | undefined;
++++        /**
++++         * An object that can be used to query performance information from a worker
++++         * instance. Similar to `perf_hooks.performance`.
++++         * @since v15.1.0, v14.17.0, v12.22.0
++++         */
++++        readonly performance: WorkerPerformance;
++++        /**
++++         * @param filename  The path to the Worker’s main script or module.
++++         *                  Must be either an absolute path or a relative path (i.e. relative to the current working directory) starting with ./ or ../,
++++         *                  or a WHATWG URL object using file: protocol. If options.eval is true, this is a string containing JavaScript code rather than a path.
++++         */
++++        constructor(filename: string | URL, options?: WorkerOptions);
++++        /**
++++         * Send a message to the worker that is received via `require('node:worker_threads').parentPort.on('message')`.
++++         * See `port.postMessage()` for more details.
++++         * @since v10.5.0
++++         */
++++        postMessage(value: any, transferList?: readonly TransferListItem[]): void;
++++        /**
++++         * Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does _not_ let the program exit if it's the only active handle left (the default
++++         * behavior). If the worker is `ref()`ed, calling `ref()` again has
++++         * no effect.
++++         * @since v10.5.0
++++         */
++++        ref(): void;
++++        /**
++++         * Calling `unref()` on a worker allows the thread to exit if this is the only
++++         * active handle in the event system. If the worker is already `unref()`ed calling `unref()` again has no effect.
++++         * @since v10.5.0
++++         */
++++        unref(): void;
++++        /**
++++         * Stop all JavaScript execution in the worker thread as soon as possible.
++++         * Returns a Promise for the exit code that is fulfilled when the `'exit' event` is emitted.
++++         * @since v10.5.0
++++         */
++++        terminate(): Promise<number>;
++++        /**
++++         * Returns a readable stream for a V8 snapshot of the current state of the Worker.
++++         * See `v8.getHeapSnapshot()` for more details.
++++         *
++++         * If the Worker thread is no longer running, which may occur before the `'exit' event` is emitted, the returned `Promise` is rejected
++++         * immediately with an `ERR_WORKER_NOT_RUNNING` error.
++++         * @since v13.9.0, v12.17.0
++++         * @return A promise for a Readable Stream containing a V8 heap snapshot
++++         */
++++        getHeapSnapshot(): Promise<Readable>;
++++        addListener(event: "error", listener: (err: Error) => void): this;
++++        addListener(event: "exit", listener: (exitCode: number) => void): this;
++++        addListener(event: "message", listener: (value: any) => void): this;
++++        addListener(event: "messageerror", listener: (error: Error) => void): this;
++++        addListener(event: "online", listener: () => void): this;
++++        addListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        emit(event: "error", err: Error): boolean;
++++        emit(event: "exit", exitCode: number): boolean;
++++        emit(event: "message", value: any): boolean;
++++        emit(event: "messageerror", error: Error): boolean;
++++        emit(event: "online"): boolean;
++++        emit(event: string | symbol, ...args: any[]): boolean;
++++        on(event: "error", listener: (err: Error) => void): this;
++++        on(event: "exit", listener: (exitCode: number) => void): this;
++++        on(event: "message", listener: (value: any) => void): this;
++++        on(event: "messageerror", listener: (error: Error) => void): this;
++++        on(event: "online", listener: () => void): this;
++++        on(event: string | symbol, listener: (...args: any[]) => void): this;
++++        once(event: "error", listener: (err: Error) => void): this;
++++        once(event: "exit", listener: (exitCode: number) => void): this;
++++        once(event: "message", listener: (value: any) => void): this;
++++        once(event: "messageerror", listener: (error: Error) => void): this;
++++        once(event: "online", listener: () => void): this;
++++        once(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependListener(event: "error", listener: (err: Error) => void): this;
++++        prependListener(event: "exit", listener: (exitCode: number) => void): this;
++++        prependListener(event: "message", listener: (value: any) => void): this;
++++        prependListener(event: "messageerror", listener: (error: Error) => void): this;
++++        prependListener(event: "online", listener: () => void): this;
++++        prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        prependOnceListener(event: "error", listener: (err: Error) => void): this;
++++        prependOnceListener(event: "exit", listener: (exitCode: number) => void): this;
++++        prependOnceListener(event: "message", listener: (value: any) => void): this;
++++        prependOnceListener(event: "messageerror", listener: (error: Error) => void): this;
++++        prependOnceListener(event: "online", listener: () => void): this;
++++        prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        removeListener(event: "error", listener: (err: Error) => void): this;
++++        removeListener(event: "exit", listener: (exitCode: number) => void): this;
++++        removeListener(event: "message", listener: (value: any) => void): this;
++++        removeListener(event: "messageerror", listener: (error: Error) => void): this;
++++        removeListener(event: "online", listener: () => void): this;
++++        removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
++++        off(event: "error", listener: (err: Error) => void): this;
++++        off(event: "exit", listener: (exitCode: number) => void): this;
++++        off(event: "message", listener: (value: any) => void): this;
++++        off(event: "messageerror", listener: (error: Error) => void): this;
++++        off(event: "online", listener: () => void): this;
++++        off(event: string | symbol, listener: (...args: any[]) => void): this;
++++    }
++++    interface BroadcastChannel extends NodeJS.RefCounted {}
++++    /**
++++     * Instances of `BroadcastChannel` allow asynchronous one-to-many communication
++++     * with all other `BroadcastChannel` instances bound to the same channel name.
++++     *
++++     * ```js
++++     * 'use strict';
++++     *
++++     * import {
++++     *   isMainThread,
++++     *   BroadcastChannel,
++++     *   Worker,
++++     * } from 'node:worker_threads';
++++     *
++++     * const bc = new BroadcastChannel('hello');
++++     *
++++     * if (isMainThread) {
++++     *   let c = 0;
++++     *   bc.onmessage = (event) => {
++++     *     console.log(event.data);
++++     *     if (++c === 10) bc.close();
++++     *   };
++++     *   for (let n = 0; n < 10; n++)
++++     *     new Worker(__filename);
++++     * } else {
++++     *   bc.postMessage('hello from every worker');
++++     *   bc.close();
++++     * }
++++     * ```
++++     * @since v15.4.0
++++     */
++++    class BroadcastChannel {
++++        readonly name: string;
++++        /**
++++         * Invoked with a single \`MessageEvent\` argument when a message is received.
++++         * @since v15.4.0
++++         */
++++        onmessage: (message: unknown) => void;
++++        /**
++++         * Invoked with a received message cannot be deserialized.
++++         * @since v15.4.0
++++         */
++++        onmessageerror: (message: unknown) => void;
++++        constructor(name: string);
++++        /**
++++         * Closes the `BroadcastChannel` connection.
++++         * @since v15.4.0
++++         */
++++        close(): void;
++++        /**
++++         * @since v15.4.0
++++         * @param message Any cloneable JavaScript value.
++++         */
++++        postMessage(message: unknown): void;
++++    }
++++    /**
++++     * Mark an object as not transferable. If `object` occurs in the transfer list of
++++     * a `port.postMessage()` call, it is ignored.
++++     *
++++     * In particular, this makes sense for objects that can be cloned, rather than
++++     * transferred, and which are used by other objects on the sending side.
++++     * For example, Node.js marks the `ArrayBuffer`s it uses for its `Buffer pool` with this.
++++     *
++++     * This operation cannot be undone.
++++     *
++++     * ```js
++++     * import { MessageChannel, markAsUntransferable } from 'node:worker_threads';
++++     *
++++     * const pooledBuffer = new ArrayBuffer(8);
++++     * const typedArray1 = new Uint8Array(pooledBuffer);
++++     * const typedArray2 = new Float64Array(pooledBuffer);
++++     *
++++     * markAsUntransferable(pooledBuffer);
++++     *
++++     * const { port1 } = new MessageChannel();
++++     * port1.postMessage(typedArray1, [ typedArray1.buffer ]);
++++     *
++++     * // The following line prints the contents of typedArray1 -- it still owns
++++     * // its memory and has been cloned, not transferred. Without
++++     * // `markAsUntransferable()`, this would print an empty Uint8Array.
++++     * // typedArray2 is intact as well.
++++     * console.log(typedArray1);
++++     * console.log(typedArray2);
++++     * ```
++++     *
++++     * There is no equivalent to this API in browsers.
++++     * @since v14.5.0, v12.19.0
++++     */
++++    function markAsUntransferable(object: object): void;
++++    /**
++++     * Transfer a `MessagePort` to a different `vm` Context. The original `port` object is rendered unusable, and the returned `MessagePort` instance
++++     * takes its place.
++++     *
++++     * The returned `MessagePort` is an object in the target context and
++++     * inherits from its global `Object` class. Objects passed to the [`port.onmessage()`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage) listener are also created in the
++++     * target context
++++     * and inherit from its global `Object` class.
++++     *
++++     * However, the created `MessagePort` no longer inherits from [`EventTarget`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget), and only
++++     * [`port.onmessage()`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage) can be used to receive
++++     * events using it.
++++     * @since v11.13.0
++++     * @param port The message port to transfer.
++++     * @param contextifiedSandbox A `contextified` object as returned by the `vm.createContext()` method.
++++     */
++++    function moveMessagePortToContext(port: MessagePort, contextifiedSandbox: Context): MessagePort;
++++    /**
++++     * Receive a single message from a given `MessagePort`. If no message is available,`undefined` is returned, otherwise an object with a single `message` property
++++     * that contains the message payload, corresponding to the oldest message in the `MessagePort`'s queue.
++++     *
++++     * ```js
++++     * import { MessageChannel, receiveMessageOnPort } from 'node:worker_threads';
++++     * const { port1, port2 } = new MessageChannel();
++++     * port1.postMessage({ hello: 'world' });
++++     *
++++     * console.log(receiveMessageOnPort(port2));
++++     * // Prints: { message: { hello: 'world' } }
++++     * console.log(receiveMessageOnPort(port2));
++++     * // Prints: undefined
++++     * ```
++++     *
++++     * When this function is used, no `'message'` event is emitted and the `onmessage` listener is not invoked.
++++     * @since v12.3.0
++++     */
++++    function receiveMessageOnPort(port: MessagePort):
++++        | {
++++            message: any;
++++        }
++++        | undefined;
++++    type Serializable = string | object | number | boolean | bigint;
++++    /**
++++     * Within a worker thread, `worker.getEnvironmentData()` returns a clone
++++     * of data passed to the spawning thread's `worker.setEnvironmentData()`.
++++     * Every new `Worker` receives its own copy of the environment data
++++     * automatically.
++++     *
++++     * ```js
++++     * import {
++++     *   Worker,
++++     *   isMainThread,
++++     *   setEnvironmentData,
++++     *   getEnvironmentData,
++++     * } from 'node:worker_threads';
++++     *
++++     * if (isMainThread) {
++++     *   setEnvironmentData('Hello', 'World!');
++++     *   const worker = new Worker(__filename);
++++     * } else {
++++     *   console.log(getEnvironmentData('Hello'));  // Prints 'World!'.
++++     * }
++++     * ```
++++     * @since v15.12.0, v14.18.0
++++     * @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
++++     */
++++    function getEnvironmentData(key: Serializable): Serializable;
++++    /**
++++     * The `worker.setEnvironmentData()` API sets the content of `worker.getEnvironmentData()` in the current thread and all new `Worker` instances spawned from the current context.
++++     * @since v15.12.0, v14.18.0
++++     * @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
++++     * @param value Any arbitrary, cloneable JavaScript value that will be cloned and passed automatically to all new `Worker` instances. If `value` is passed as `undefined`, any previously set value
++++     * for the `key` will be deleted.
++++     */
++++    function setEnvironmentData(key: Serializable, value: Serializable): void;
++++
++++    import {
++++        BroadcastChannel as _BroadcastChannel,
++++        MessageChannel as _MessageChannel,
++++        MessagePort as _MessagePort,
++++    } from "worker_threads";
++++    global {
++++        /**
++++         * `BroadcastChannel` class is a global reference for `import { BroadcastChannel } from 'node:worker_threads'`
++++         * https://nodejs.org/api/globals.html#broadcastchannel
++++         * @since v18.0.0
++++         */
++++        var BroadcastChannel: typeof globalThis extends {
++++            onmessage: any;
++++            BroadcastChannel: infer T;
++++        } ? T
++++            : typeof _BroadcastChannel;
++++        /**
++++         * `MessageChannel` class is a global reference for `import { MessageChannel } from 'node:worker_threads'`
++++         * https://nodejs.org/api/globals.html#messagechannel
++++         * @since v15.0.0
++++         */
++++        var MessageChannel: typeof globalThis extends {
++++            onmessage: any;
++++            MessageChannel: infer T;
++++        } ? T
++++            : typeof _MessageChannel;
++++        /**
++++         * `MessagePort` class is a global reference for `import { MessagePort } from 'node:worker_threads'`
++++         * https://nodejs.org/api/globals.html#messageport
++++         * @since v15.0.0
++++         */
++++        var MessagePort: typeof globalThis extends {
++++            onmessage: any;
++++            MessagePort: infer T;
++++        } ? T
++++            : typeof _MessagePort;
++++    }
++++}
++++declare module "node:worker_threads" {
++++    export * from "worker_threads";
++++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..98d122bdac3606e5d1e5a4d3d8b16530e2b9f837
new file mode 100644 (file)
--- /dev/null
--- /dev/null
--- /dev/null
--- /dev/null
@@@@@ -1,0 -1,0 -1,0 -1,0 +1,539 @@@@@
++++/**
++++ * The `node:zlib` module provides compression functionality implemented using
++++ * Gzip, Deflate/Inflate, and Brotli.
++++ *
++++ * To access it:
++++ *
++++ * ```js
++++ * import zlib from 'node:zlib';
++++ * ```
++++ *
++++ * Compression and decompression are built around the Node.js
++++ * [Streams API](https://nodejs.org/docs/latest-v20.x/api/stream.html).
++++ *
++++ * Compressing or decompressing a stream (such as a file) can be accomplished by
++++ * piping the source stream through a `zlib` `Transform` stream into a destination
++++ * stream:
++++ *
++++ * ```js
++++ * import { createGzip } from 'node:zlib';
++++ * import { pipeline } from 'node:stream';
++++ * import {
++++ *   createReadStream,
++++ *   createWriteStream,
++++ * } from 'node:fs';
++++ *
++++ * const gzip = createGzip();
++++ * const source = createReadStream('input.txt');
++++ * const destination = createWriteStream('input.txt.gz');
++++ *
++++ * pipeline(source, gzip, destination, (err) => {
++++ *   if (err) {
++++ *     console.error('An error occurred:', err);
++++ *     process.exitCode = 1;
++++ *   }
++++ * });
++++ *
++++ * // Or, Promisified
++++ *
++++ * import { promisify } from 'node:util';
++++ * const pipe = promisify(pipeline);
++++ *
++++ * async function do_gzip(input, output) {
++++ *   const gzip = createGzip();
++++ *   const source = createReadStream(input);
++++ *   const destination = createWriteStream(output);
++++ *   await pipe(source, gzip, destination);
++++ * }
++++ *
++++ * do_gzip('input.txt', 'input.txt.gz')
++++ *   .catch((err) => {
++++ *     console.error('An error occurred:', err);
++++ *     process.exitCode = 1;
++++ *   });
++++ * ```
++++ *
++++ * It is also possible to compress or decompress data in a single step:
++++ *
++++ * ```js
++++ * import { deflate, unzip } from 'node:zlib';
++++ *
++++ * const input = '.................................';
++++ * deflate(input, (err, buffer) => {
++++ *   if (err) {
++++ *     console.error('An error occurred:', err);
++++ *     process.exitCode = 1;
++++ *   }
++++ *   console.log(buffer.toString('base64'));
++++ * });
++++ *
++++ * const buffer = Buffer.from('eJzT0yMAAGTvBe8=', 'base64');
++++ * unzip(buffer, (err, buffer) => {
++++ *   if (err) {
++++ *     console.error('An error occurred:', err);
++++ *     process.exitCode = 1;
++++ *   }
++++ *   console.log(buffer.toString());
++++ * });
++++ *
++++ * // Or, Promisified
++++ *
++++ * import { promisify } from 'node:util';
++++ * const do_unzip = promisify(unzip);
++++ *
++++ * do_unzip(buffer)
++++ *   .then((buf) => console.log(buf.toString()))
++++ *   .catch((err) => {
++++ *     console.error('An error occurred:', err);
++++ *     process.exitCode = 1;
++++ *   });
++++ * ```
++++ * @since v0.5.8
++++ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/zlib.js)
++++ */
++++declare module "zlib" {
++++    import * as stream from "node:stream";
++++    interface ZlibOptions {
++++        /**
++++         * @default constants.Z_NO_FLUSH
++++         */
++++        flush?: number | undefined;
++++        /**
++++         * @default constants.Z_FINISH
++++         */
++++        finishFlush?: number | undefined;
++++        /**
++++         * @default 16*1024
++++         */
++++        chunkSize?: number | undefined;
++++        windowBits?: number | undefined;
++++        level?: number | undefined; // compression only
++++        memLevel?: number | undefined; // compression only
++++        strategy?: number | undefined; // compression only
++++        dictionary?: NodeJS.ArrayBufferView | ArrayBuffer | undefined; // deflate/inflate only, empty dictionary by default
++++        /**
++++         * If `true`, returns an object with `buffer` and `engine`.
++++         */
++++        info?: boolean | undefined;
++++        /**
++++         * Limits output size when using convenience methods.
++++         * @default buffer.kMaxLength
++++         */
++++        maxOutputLength?: number | undefined;
++++    }
++++    interface BrotliOptions {
++++        /**
++++         * @default constants.BROTLI_OPERATION_PROCESS
++++         */
++++        flush?: number | undefined;
++++        /**
++++         * @default constants.BROTLI_OPERATION_FINISH
++++         */
++++        finishFlush?: number | undefined;
++++        /**
++++         * @default 16*1024
++++         */
++++        chunkSize?: number | undefined;
++++        params?:
++++            | {
++++                /**
++++                 * Each key is a `constants.BROTLI_*` constant.
++++                 */
++++                [key: number]: boolean | number;
++++            }
++++            | undefined;
++++        /**
++++         * Limits output size when using [convenience methods](https://nodejs.org/docs/latest-v20.x/api/zlib.html#convenience-methods).
++++         * @default buffer.kMaxLength
++++         */
++++        maxOutputLength?: number | undefined;
++++    }
++++    interface Zlib {
++++        /** @deprecated Use bytesWritten instead. */
++++        readonly bytesRead: number;
++++        readonly bytesWritten: number;
++++        shell?: boolean | string | undefined;
++++        close(callback?: () => void): void;
++++        flush(kind?: number, callback?: () => void): void;
++++        flush(callback?: () => void): void;
++++    }
++++    interface ZlibParams {
++++        params(level: number, strategy: number, callback: () => void): void;
++++    }
++++    interface ZlibReset {
++++        reset(): void;
++++    }
++++    interface BrotliCompress extends stream.Transform, Zlib {}
++++    interface BrotliDecompress extends stream.Transform, Zlib {}
++++    interface Gzip extends stream.Transform, Zlib {}
++++    interface Gunzip extends stream.Transform, Zlib {}
++++    interface Deflate extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
++++    interface Inflate extends stream.Transform, Zlib, ZlibReset {}
++++    interface DeflateRaw extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
++++    interface InflateRaw extends stream.Transform, Zlib, ZlibReset {}
++++    interface Unzip extends stream.Transform, Zlib {}
++++    /**
++++     * Computes a 32-bit [Cyclic Redundancy Check](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) checksum of `data`.
++++     * If `value` is specified, it is used as the starting value of the checksum, otherwise, 0 is used as the starting value.
++++     * @param data When `data` is a string, it will be encoded as UTF-8 before being used for computation.
++++     * @param value An optional starting value. It must be a 32-bit unsigned integer. @default 0
++++     * @returns A 32-bit unsigned integer containing the checksum.
++++     * @since v20.15.0
++++     */
++++    function crc32(data: string | Buffer | NodeJS.ArrayBufferView, value?: number): number;
++++    /**
++++     * Creates and returns a new `BrotliCompress` object.
++++     * @since v11.7.0, v10.16.0
++++     */
++++    function createBrotliCompress(options?: BrotliOptions): BrotliCompress;
++++    /**
++++     * Creates and returns a new `BrotliDecompress` object.
++++     * @since v11.7.0, v10.16.0
++++     */
++++    function createBrotliDecompress(options?: BrotliOptions): BrotliDecompress;
++++    /**
++++     * Creates and returns a new `Gzip` object.
++++     * See `example`.
++++     * @since v0.5.8
++++     */
++++    function createGzip(options?: ZlibOptions): Gzip;
++++    /**
++++     * Creates and returns a new `Gunzip` object.
++++     * @since v0.5.8
++++     */
++++    function createGunzip(options?: ZlibOptions): Gunzip;
++++    /**
++++     * Creates and returns a new `Deflate` object.
++++     * @since v0.5.8
++++     */
++++    function createDeflate(options?: ZlibOptions): Deflate;
++++    /**
++++     * Creates and returns a new `Inflate` object.
++++     * @since v0.5.8
++++     */
++++    function createInflate(options?: ZlibOptions): Inflate;
++++    /**
++++     * Creates and returns a new `DeflateRaw` object.
++++     *
++++     * An upgrade of zlib from 1.2.8 to 1.2.11 changed behavior when `windowBits` is set to 8 for raw deflate streams. zlib would automatically set `windowBits` to 9 if was initially set to 8. Newer
++++     * versions of zlib will throw an exception,
++++     * so Node.js restored the original behavior of upgrading a value of 8 to 9,
++++     * since passing `windowBits = 9` to zlib actually results in a compressed stream
++++     * that effectively uses an 8-bit window only.
++++     * @since v0.5.8
++++     */
++++    function createDeflateRaw(options?: ZlibOptions): DeflateRaw;
++++    /**
++++     * Creates and returns a new `InflateRaw` object.
++++     * @since v0.5.8
++++     */
++++    function createInflateRaw(options?: ZlibOptions): InflateRaw;
++++    /**
++++     * Creates and returns a new `Unzip` object.
++++     * @since v0.5.8
++++     */
++++    function createUnzip(options?: ZlibOptions): Unzip;
++++    type InputType = string | ArrayBuffer | NodeJS.ArrayBufferView;
++++    type CompressCallback = (error: Error | null, result: Buffer) => void;
++++    /**
++++     * @since v11.7.0, v10.16.0
++++     */
++++    function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
++++    function brotliCompress(buf: InputType, callback: CompressCallback): void;
++++    namespace brotliCompress {
++++        function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
++++    }
++++    /**
++++     * Compress a chunk of data with `BrotliCompress`.
++++     * @since v11.7.0, v10.16.0
++++     */
++++    function brotliCompressSync(buf: InputType, options?: BrotliOptions): Buffer;
++++    /**
++++     * @since v11.7.0, v10.16.0
++++     */
++++    function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
++++    function brotliDecompress(buf: InputType, callback: CompressCallback): void;
++++    namespace brotliDecompress {
++++        function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
++++    }
++++    /**
++++     * Decompress a chunk of data with `BrotliDecompress`.
++++     * @since v11.7.0, v10.16.0
++++     */
++++    function brotliDecompressSync(buf: InputType, options?: BrotliOptions): Buffer;
++++    /**
++++     * @since v0.6.0
++++     */
++++    function deflate(buf: InputType, callback: CompressCallback): void;
++++    function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
++++    namespace deflate {
++++        function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
++++    }
++++    /**
++++     * Compress a chunk of data with `Deflate`.
++++     * @since v0.11.12
++++     */
++++    function deflateSync(buf: InputType, options?: ZlibOptions): Buffer;
++++    /**
++++     * @since v0.6.0
++++     */
++++    function deflateRaw(buf: InputType, callback: CompressCallback): void;
++++    function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
++++    namespace deflateRaw {
++++        function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
++++    }
++++    /**
++++     * Compress a chunk of data with `DeflateRaw`.
++++     * @since v0.11.12
++++     */
++++    function deflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
++++    /**
++++     * @since v0.6.0
++++     */
++++    function gzip(buf: InputType, callback: CompressCallback): void;
++++    function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
++++    namespace gzip {
++++        function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
++++    }
++++    /**
++++     * Compress a chunk of data with `Gzip`.
++++     * @since v0.11.12
++++     */
++++    function gzipSync(buf: InputType, options?: ZlibOptions): Buffer;
++++    /**
++++     * @since v0.6.0
++++     */
++++    function gunzip(buf: InputType, callback: CompressCallback): void;
++++    function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
++++    namespace gunzip {
++++        function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
++++    }
++++    /**
++++     * Decompress a chunk of data with `Gunzip`.
++++     * @since v0.11.12
++++     */
++++    function gunzipSync(buf: InputType, options?: ZlibOptions): Buffer;
++++    /**
++++     * @since v0.6.0
++++     */
++++    function inflate(buf: InputType, callback: CompressCallback): void;
++++    function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
++++    namespace inflate {
++++        function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
++++    }
++++    /**
++++     * Decompress a chunk of data with `Inflate`.
++++     * @since v0.11.12
++++     */
++++    function inflateSync(buf: InputType, options?: ZlibOptions): Buffer;
++++    /**
++++     * @since v0.6.0
++++     */
++++    function inflateRaw(buf: InputType, callback: CompressCallback): void;
++++    function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
++++    namespace inflateRaw {
++++        function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
++++    }
++++    /**
++++     * Decompress a chunk of data with `InflateRaw`.
++++     * @since v0.11.12
++++     */
++++    function inflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
++++    /**
++++     * @since v0.6.0
++++     */
++++    function unzip(buf: InputType, callback: CompressCallback): void;
++++    function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
++++    namespace unzip {
++++        function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
++++    }
++++    /**
++++     * Decompress a chunk of data with `Unzip`.
++++     * @since v0.11.12
++++     */
++++    function unzipSync(buf: InputType, options?: ZlibOptions): Buffer;
++++    namespace constants {
++++        const BROTLI_DECODE: number;
++++        const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
++++        const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: number;
++++        const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: number;
++++        const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: number;
++++        const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: number;
++++        const BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: number;
++++        const BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: number;
++++        const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: number;
++++        const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: number;
++++        const BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: number;
++++        const BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: number;
++++        const BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: number;
++++        const BROTLI_DECODER_ERROR_FORMAT_DISTANCE: number;
++++        const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: number;
++++        const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: number;
++++        const BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: number;
++++        const BROTLI_DECODER_ERROR_FORMAT_PADDING_1: number;
++++        const BROTLI_DECODER_ERROR_FORMAT_PADDING_2: number;
++++        const BROTLI_DECODER_ERROR_FORMAT_RESERVED: number;
++++        const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: number;
++++        const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: number;
++++        const BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: number;
++++        const BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: number;
++++        const BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: number;
++++        const BROTLI_DECODER_ERROR_UNREACHABLE: number;
++++        const BROTLI_DECODER_NEEDS_MORE_INPUT: number;
++++        const BROTLI_DECODER_NEEDS_MORE_OUTPUT: number;
++++        const BROTLI_DECODER_NO_ERROR: number;
++++        const BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: number;
++++        const BROTLI_DECODER_PARAM_LARGE_WINDOW: number;
++++        const BROTLI_DECODER_RESULT_ERROR: number;
++++        const BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: number;
++++        const BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: number;
++++        const BROTLI_DECODER_RESULT_SUCCESS: number;
++++        const BROTLI_DECODER_SUCCESS: number;
++++        const BROTLI_DEFAULT_MODE: number;
++++        const BROTLI_DEFAULT_QUALITY: number;
++++        const BROTLI_DEFAULT_WINDOW: number;
++++        const BROTLI_ENCODE: number;
++++        const BROTLI_LARGE_MAX_WINDOW_BITS: number;
++++        const BROTLI_MAX_INPUT_BLOCK_BITS: number;
++++        const BROTLI_MAX_QUALITY: number;
++++        const BROTLI_MAX_WINDOW_BITS: number;
++++        const BROTLI_MIN_INPUT_BLOCK_BITS: number;
++++        const BROTLI_MIN_QUALITY: number;
++++        const BROTLI_MIN_WINDOW_BITS: number;
++++        const BROTLI_MODE_FONT: number;
++++        const BROTLI_MODE_GENERIC: number;
++++        const BROTLI_MODE_TEXT: number;
++++        const BROTLI_OPERATION_EMIT_METADATA: number;
++++        const BROTLI_OPERATION_FINISH: number;
++++        const BROTLI_OPERATION_FLUSH: number;
++++        const BROTLI_OPERATION_PROCESS: number;
++++        const BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: number;
++++        const BROTLI_PARAM_LARGE_WINDOW: number;
++++        const BROTLI_PARAM_LGBLOCK: number;
++++        const BROTLI_PARAM_LGWIN: number;
++++        const BROTLI_PARAM_MODE: number;
++++        const BROTLI_PARAM_NDIRECT: number;
++++        const BROTLI_PARAM_NPOSTFIX: number;
++++        const BROTLI_PARAM_QUALITY: number;
++++        const BROTLI_PARAM_SIZE_HINT: number;
++++        const DEFLATE: number;
++++        const DEFLATERAW: number;
++++        const GUNZIP: number;
++++        const GZIP: number;
++++        const INFLATE: number;
++++        const INFLATERAW: number;
++++        const UNZIP: number;
++++        // Allowed flush values.
++++        const Z_NO_FLUSH: number;
++++        const Z_PARTIAL_FLUSH: number;
++++        const Z_SYNC_FLUSH: number;
++++        const Z_FULL_FLUSH: number;
++++        const Z_FINISH: number;
++++        const Z_BLOCK: number;
++++        const Z_TREES: number;
++++        // Return codes for the compression/decompression functions.
++++        // Negative values are errors, positive values are used for special but normal events.
++++        const Z_OK: number;
++++        const Z_STREAM_END: number;
++++        const Z_NEED_DICT: number;
++++        const Z_ERRNO: number;
++++        const Z_STREAM_ERROR: number;
++++        const Z_DATA_ERROR: number;
++++        const Z_MEM_ERROR: number;
++++        const Z_BUF_ERROR: number;
++++        const Z_VERSION_ERROR: number;
++++        // Compression levels.
++++        const Z_NO_COMPRESSION: number;
++++        const Z_BEST_SPEED: number;
++++        const Z_BEST_COMPRESSION: number;
++++        const Z_DEFAULT_COMPRESSION: number;
++++        // Compression strategy.
++++        const Z_FILTERED: number;
++++        const Z_HUFFMAN_ONLY: number;
++++        const Z_RLE: number;
++++        const Z_FIXED: number;
++++        const Z_DEFAULT_STRATEGY: number;
++++        const Z_DEFAULT_WINDOWBITS: number;
++++
++++        const Z_MIN_WINDOWBITS: number;
++++        const Z_MAX_WINDOWBITS: number;
++++        const Z_MIN_CHUNK: number;
++++        const Z_MAX_CHUNK: number;
++++        const Z_DEFAULT_CHUNK: number;
++++        const Z_MIN_MEMLEVEL: number;
++++        const Z_MAX_MEMLEVEL: number;
++++        const Z_DEFAULT_MEMLEVEL: number;
++++        const Z_MIN_LEVEL: number;
++++        const Z_MAX_LEVEL: number;
++++        const Z_DEFAULT_LEVEL: number;
++++        const ZLIB_VERNUM: number;
++++    }
++++    // Allowed flush values.
++++    /** @deprecated Use `constants.Z_NO_FLUSH` */
++++    const Z_NO_FLUSH: number;
++++    /** @deprecated Use `constants.Z_PARTIAL_FLUSH` */
++++    const Z_PARTIAL_FLUSH: number;
++++    /** @deprecated Use `constants.Z_SYNC_FLUSH` */
++++    const Z_SYNC_FLUSH: number;
++++    /** @deprecated Use `constants.Z_FULL_FLUSH` */
++++    const Z_FULL_FLUSH: number;
++++    /** @deprecated Use `constants.Z_FINISH` */
++++    const Z_FINISH: number;
++++    /** @deprecated Use `constants.Z_BLOCK` */
++++    const Z_BLOCK: number;
++++    /** @deprecated Use `constants.Z_TREES` */
++++    const Z_TREES: number;
++++    // Return codes for the compression/decompression functions.
++++    // Negative values are errors, positive values are used for special but normal events.
++++    /** @deprecated Use `constants.Z_OK` */
++++    const Z_OK: number;
++++    /** @deprecated Use `constants.Z_STREAM_END` */
++++    const Z_STREAM_END: number;
++++    /** @deprecated Use `constants.Z_NEED_DICT` */
++++    const Z_NEED_DICT: number;
++++    /** @deprecated Use `constants.Z_ERRNO` */
++++    const Z_ERRNO: number;
++++    /** @deprecated Use `constants.Z_STREAM_ERROR` */
++++    const Z_STREAM_ERROR: number;
++++    /** @deprecated Use `constants.Z_DATA_ERROR` */
++++    const Z_DATA_ERROR: number;
++++    /** @deprecated Use `constants.Z_MEM_ERROR` */
++++    const Z_MEM_ERROR: number;
++++    /** @deprecated Use `constants.Z_BUF_ERROR` */
++++    const Z_BUF_ERROR: number;
++++    /** @deprecated Use `constants.Z_VERSION_ERROR` */
++++    const Z_VERSION_ERROR: number;
++++    // Compression levels.
++++    /** @deprecated Use `constants.Z_NO_COMPRESSION` */
++++    const Z_NO_COMPRESSION: number;
++++    /** @deprecated Use `constants.Z_BEST_SPEED` */
++++    const Z_BEST_SPEED: number;
++++    /** @deprecated Use `constants.Z_BEST_COMPRESSION` */
++++    const Z_BEST_COMPRESSION: number;
++++    /** @deprecated Use `constants.Z_DEFAULT_COMPRESSION` */
++++    const Z_DEFAULT_COMPRESSION: number;
++++    // Compression strategy.
++++    /** @deprecated Use `constants.Z_FILTERED` */
++++    const Z_FILTERED: number;
++++    /** @deprecated Use `constants.Z_HUFFMAN_ONLY` */
++++    const Z_HUFFMAN_ONLY: number;
++++    /** @deprecated Use `constants.Z_RLE` */
++++    const Z_RLE: number;
++++    /** @deprecated Use `constants.Z_FIXED` */
++++    const Z_FIXED: number;
++++    /** @deprecated Use `constants.Z_DEFAULT_STRATEGY` */
++++    const Z_DEFAULT_STRATEGY: number;
++++    /** @deprecated */
++++    const Z_BINARY: number;
++++    /** @deprecated */
++++    const Z_TEXT: number;
++++    /** @deprecated */
++++    const Z_ASCII: number;
++++    /** @deprecated  */
++++    const Z_UNKNOWN: number;
++++    /** @deprecated */
++++    const Z_DEFLATED: number;
++++}
++++declare module "node:zlib" {
++++    export * from "zlib";
++++}